Skip to content

Commit c5cee3c

Browse files
authored
docs(input): update Maskito documentation (according to the latest major release 2.0.0) (#3402)
1 parent 0e7b70f commit c5cee3c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

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

+2-2
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/v7/input/mask/angular/example_component_ts.md

+2-2
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 } from '@maskito/core';
4+
import { MaskitoOptions, MaskitoElementPredicate } from '@maskito/core';
55

66
@Component({
77
selector: 'app-example',
@@ -26,6 +26,6 @@ export class ExampleComponent {
2626
],
2727
};
2828

29-
readonly maskPredicate: MaskitoElementPredicateAsync = async (el) => (el as HTMLIonInputElement).getInputElement();
29+
readonly maskPredicate: MaskitoElementPredicate = async (el) => (el as HTMLIonInputElement).getInputElement();
3030
}
3131
```

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

+7-7
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': '^2.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': '^2.0.0',
32+
'@maskito/core': '^2.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': '^2.0.0',
41+
'@maskito/core': '^2.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': '^2.0.0',
52+
'@maskito/core': '^2.0.0',
5353
},
5454
},
5555
}}

0 commit comments

Comments
 (0)