Skip to content

Commit dc99a6e

Browse files
authored
chore: upgrade maskito dependencies to v1 (#3005)
1 parent 78934cd commit dc99a6e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
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': '^0.16.0',
23+
'@maskito/core': '^1.0.0',
2424
},
2525
},
2626
react: {
2727
files: {
2828
'src/main.tsx': react_main_tsx,
2929
},
3030
dependencies: {
31-
'@maskito/react': '^0.16.0',
32-
'@maskito/core': '^0.16.0',
31+
'@maskito/react': '^1.0.0',
32+
'@maskito/core': '^1.0.0',
3333
},
3434
},
3535
vue: {
3636
files: {
3737
'src/components/Example.vue': vue_example_vue,
3838
},
3939
dependencies: {
40-
'@maskito/vue': '^0.16.0',
41-
'@maskito/core': '^0.16.0',
40+
'@maskito/vue': '^1.0.0',
41+
'@maskito/core': '^1.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': '^0.16.0',
52-
'@maskito/core': '^0.16.0',
51+
'@maskito/angular': '^1.0.0',
52+
'@maskito/core': '^1.0.0',
5353
},
5454
},
5555
}}

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ function Example() {
3030
<IonInput
3131
ref={async (cardRef) => {
3232
if (cardRef) {
33-
cardMask(await cardRef.getInputElement());
33+
const input = await cardRef.getInputElement();
34+
cardMask(input);
3435
}
3536
}}
3637
label="Card number"
@@ -41,7 +42,8 @@ function Example() {
4142
<IonInput
4243
ref={async (phoneInput) => {
4344
if (phoneInput) {
44-
phoneMask(await phoneInput.getInputElement());
45+
const input = await phoneInput.getInputElement();
46+
phoneMask(input);
4547
}
4648
}}
4749
label="US phone number"

0 commit comments

Comments
 (0)