Skip to content

Commit 8bc3e54

Browse files
authored
docs(input): update Maskito documentation (according to the latest major release 3.0.0) (#3742)
1 parent 703b648 commit 8bc3e54

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

static/usage/v7/input/mask/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ import angular_example_component_ts from './angular/example_component_ts.md';
2020
'index.ts': javascript_index_ts,
2121
},
2222
dependencies: {
23-
'@maskito/core': '^2.0.0',
23+
'@maskito/core': '^3.0.0',
2424
},
2525
},
2626
react: {
2727
files: {
2828
'src/main.tsx': react_main_tsx,
2929
},
3030
dependencies: {
31-
'@maskito/react': '^2.0.0',
32-
'@maskito/core': '^2.0.0',
31+
'@maskito/react': '^3.0.0',
32+
'@maskito/core': '^3.0.0',
3333
},
3434
},
3535
vue: {
3636
files: {
3737
'src/components/Example.vue': vue_example_vue,
3838
},
3939
dependencies: {
40-
'@maskito/vue': '^2.0.0',
41-
'@maskito/core': '^2.0.0',
40+
'@maskito/vue': '^3.0.0',
41+
'@maskito/core': '^3.0.0',
4242
},
4343
},
4444
angular: {
@@ -48,8 +48,8 @@ import angular_example_component_ts from './angular/example_component_ts.md';
4848
'src/app/example.component.ts': angular_example_component_ts,
4949
},
5050
dependencies: {
51-
'@maskito/angular': '^2.0.0',
52-
'@maskito/core': '^2.0.0',
51+
'@maskito/angular': '^3.0.0',
52+
'@maskito/core': '^3.0.0',
5353
},
5454
},
5555
}}

static/usage/v8/input/mask/angular/app_module_ts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { IonicModule } from '@ionic/angular';
88
import { AppComponent } from './app.component';
99
import { ExampleComponent } from './example.component';
1010

11-
import { MaskitoModule } from '@maskito/angular';
11+
import { MaskitoDirective } from '@maskito/angular';
1212

1313
@NgModule({
14-
imports: [BrowserModule, FormsModule, MaskitoModule, IonicModule.forRoot({})],
14+
imports: [BrowserModule, FormsModule, MaskitoDirective, IonicModule.forRoot({})],
1515
declarations: [AppComponent, ExampleComponent],
1616
bootstrap: [AppComponent],
1717
})

static/usage/v8/input/mask/angular/example_component_ts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```ts
22
import { Component } from '@angular/core';
33

4-
import { MaskitoOptions, MaskitoElementPredicateAsync, maskitoTransform } from '@maskito/core';
4+
import { MaskitoOptions, MaskitoElementPredicate, maskitoTransform } from '@maskito/core';
55

66
@Component({
77
selector: 'app-example',
@@ -29,6 +29,6 @@ export class ExampleComponent {
2929
],
3030
};
3131

32-
readonly maskPredicate: MaskitoElementPredicateAsync = async (el) => (el as HTMLIonInputElement).getInputElement();
32+
readonly maskPredicate: MaskitoElementPredicate = async (el) => (el as HTMLIonInputElement).getInputElement();
3333
}
3434
```

static/usage/v8/input/mask/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ import angular_example_component_ts from './angular/example_component_ts.md';
2020
'index.ts': javascript_index_ts,
2121
},
2222
dependencies: {
23-
'@maskito/core': '^1.0.0',
23+
'@maskito/core': '^3.0.0',
2424
},
2525
},
2626
react: {
2727
files: {
2828
'src/main.tsx': react_main_tsx,
2929
},
3030
dependencies: {
31-
'@maskito/react': '^1.0.0',
32-
'@maskito/core': '^1.0.0',
31+
'@maskito/react': '^3.0.0',
32+
'@maskito/core': '^3.0.0',
3333
},
3434
},
3535
vue: {
3636
files: {
3737
'src/components/Example.vue': vue_example_vue,
3838
},
3939
dependencies: {
40-
'@maskito/vue': '^1.0.0',
41-
'@maskito/core': '^1.0.0',
40+
'@maskito/vue': '^3.0.0',
41+
'@maskito/core': '^3.0.0',
4242
},
4343
},
4444
angular: {
@@ -48,8 +48,8 @@ import angular_example_component_ts from './angular/example_component_ts.md';
4848
'src/app/example.component.ts': angular_example_component_ts,
4949
},
5050
dependencies: {
51-
'@maskito/angular': '^1.0.0',
52-
'@maskito/core': '^1.0.0',
51+
'@maskito/angular': '^3.0.0',
52+
'@maskito/core': '^3.0.0',
5353
},
5454
},
5555
}}

0 commit comments

Comments
 (0)