Skip to content

Commit

Permalink
chore: upgrade maskito dependencies to v1 (#3005)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-perkins authored Jun 21, 2023
1 parent 78934cd commit dc99a6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions static/usage/v7/input/mask/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ import angular_example_component_ts from './angular/example_component_ts.md';
'index.ts': javascript_index_ts,
},
dependencies: {
'@maskito/core': '^0.16.0',
'@maskito/core': '^1.0.0',
},
},
react: {
files: {
'src/main.tsx': react_main_tsx,
},
dependencies: {
'@maskito/react': '^0.16.0',
'@maskito/core': '^0.16.0',
'@maskito/react': '^1.0.0',
'@maskito/core': '^1.0.0',
},
},
vue: {
files: {
'src/components/Example.vue': vue_example_vue,
},
dependencies: {
'@maskito/vue': '^0.16.0',
'@maskito/core': '^0.16.0',
'@maskito/vue': '^1.0.0',
'@maskito/core': '^1.0.0',
},
},
angular: {
Expand All @@ -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': '^0.16.0',
'@maskito/core': '^0.16.0',
'@maskito/angular': '^1.0.0',
'@maskito/core': '^1.0.0',
},
},
}}
Expand Down
6 changes: 4 additions & 2 deletions static/usage/v7/input/mask/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ function Example() {
<IonInput
ref={async (cardRef) => {
if (cardRef) {
cardMask(await cardRef.getInputElement());
const input = await cardRef.getInputElement();
cardMask(input);
}
}}
label="Card number"
Expand All @@ -41,7 +42,8 @@ function Example() {
<IonInput
ref={async (phoneInput) => {
if (phoneInput) {
phoneMask(await phoneInput.getInputElement());
const input = await phoneInput.getInputElement();
phoneMask(input);
}
}}
label="US phone number"
Expand Down

1 comment on commit dc99a6e

@vercel
Copy link

@vercel vercel bot commented on dc99a6e Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-ionic1.vercel.app
ionic-docs-gqykycf8t.vercel.app
ionic-docs-git-main-ionic1.vercel.app

Please sign in to comment.