From 254655bcd72d89d2d7013341870ffbce556f66ab Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Mon, 22 Jan 2024 10:39:12 +0300 Subject: [PATCH] docs(input): update `Maskito` documentation (according to the latest major release `2.0.0`) --- .../usage/v7/input/mask/angular/app_module_ts.md | 4 ++-- .../v7/input/mask/angular/example_component_ts.md | 4 ++-- static/usage/v7/input/mask/index.md | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/static/usage/v7/input/mask/angular/app_module_ts.md b/static/usage/v7/input/mask/angular/app_module_ts.md index 653793d4262..7eb78206d7f 100644 --- a/static/usage/v7/input/mask/angular/app_module_ts.md +++ b/static/usage/v7/input/mask/angular/app_module_ts.md @@ -8,10 +8,10 @@ import { IonicModule } from '@ionic/angular'; import { AppComponent } from './app.component'; import { ExampleComponent } from './example.component'; -import { MaskitoModule } from '@maskito/angular'; +import { MaskitoDirective } from '@maskito/angular'; @NgModule({ - imports: [BrowserModule, FormsModule, MaskitoModule, IonicModule.forRoot({})], + imports: [BrowserModule, FormsModule, MaskitoDirective, IonicModule.forRoot({})], declarations: [AppComponent, ExampleComponent], bootstrap: [AppComponent], }) diff --git a/static/usage/v7/input/mask/angular/example_component_ts.md b/static/usage/v7/input/mask/angular/example_component_ts.md index 1edb7f8c662..151a5bcac16 100644 --- a/static/usage/v7/input/mask/angular/example_component_ts.md +++ b/static/usage/v7/input/mask/angular/example_component_ts.md @@ -1,7 +1,7 @@ ```ts import { Component } from '@angular/core'; -import { MaskitoOptions, MaskitoElementPredicateAsync } from '@maskito/core'; +import { MaskitoOptions, MaskitoElementPredicate } from '@maskito/core'; @Component({ selector: 'app-example', @@ -26,6 +26,6 @@ export class ExampleComponent { ], }; - readonly maskPredicate: MaskitoElementPredicateAsync = async (el) => (el as HTMLIonInputElement).getInputElement(); + readonly maskPredicate: MaskitoElementPredicate = async (el) => (el as HTMLIonInputElement).getInputElement(); } ``` diff --git a/static/usage/v7/input/mask/index.md b/static/usage/v7/input/mask/index.md index 174aabc1e30..f2539daed83 100644 --- a/static/usage/v7/input/mask/index.md +++ b/static/usage/v7/input/mask/index.md @@ -20,7 +20,7 @@ import angular_example_component_ts from './angular/example_component_ts.md'; 'index.ts': javascript_index_ts, }, dependencies: { - '@maskito/core': '^1.0.0', + '@maskito/core': '^2.0.0', }, }, react: { @@ -28,8 +28,8 @@ import angular_example_component_ts from './angular/example_component_ts.md'; 'src/main.tsx': react_main_tsx, }, dependencies: { - '@maskito/react': '^1.0.0', - '@maskito/core': '^1.0.0', + '@maskito/react': '^2.0.0', + '@maskito/core': '^2.0.0', }, }, vue: { @@ -37,8 +37,8 @@ import angular_example_component_ts from './angular/example_component_ts.md'; 'src/components/Example.vue': vue_example_vue, }, dependencies: { - '@maskito/vue': '^1.0.0', - '@maskito/core': '^1.0.0', + '@maskito/vue': '^2.0.0', + '@maskito/core': '^2.0.0', }, }, angular: { @@ -48,8 +48,8 @@ import angular_example_component_ts from './angular/example_component_ts.md'; 'src/app/example.component.ts': angular_example_component_ts, }, dependencies: { - '@maskito/angular': '^1.0.0', - '@maskito/core': '^1.0.0', + '@maskito/angular': '^2.0.0', + '@maskito/core': '^2.0.0', }, }, }}