@tonder.io/ionic-full-sdk 0.0.16-beta → 0.0.18-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/helpers/skyflow.ts +11 -1
- package/src/helpers/template.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonder.io/ionic-full-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18-beta",
|
|
4
4
|
"description": "Tonder ionic full SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@tonder.io/ionic-lite-sdk": "^0.0.
|
|
13
|
+
"@tonder.io/ionic-lite-sdk": "^0.0.26-beta",
|
|
14
14
|
"crypto-js": "^4.1.1",
|
|
15
15
|
"skyflow-js": "^1.34.1"
|
|
16
16
|
},
|
package/src/helpers/skyflow.ts
CHANGED
|
@@ -77,6 +77,16 @@ export async function initSkyflow(
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
const regexJustText = /^[A-Za-z\s]*$/;
|
|
81
|
+
|
|
82
|
+
const regexJustTextRule = {
|
|
83
|
+
type: Skyflow.ValidationRuleType.REGEX_MATCH_RULE,
|
|
84
|
+
params: {
|
|
85
|
+
regex: regexJustText,
|
|
86
|
+
error: "Debe contener solo letras"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
80
90
|
const cardHolderNameElement: CollectElement | RevealElement | ComposableElement = await collectContainer.create({
|
|
81
91
|
table: "cards",
|
|
82
92
|
column: "cardholder_name",
|
|
@@ -84,7 +94,7 @@ export async function initSkyflow(
|
|
|
84
94
|
label: "Titular de la tarjeta",
|
|
85
95
|
placeholder: "Nombre como aparece en la tarjeta",
|
|
86
96
|
type: Skyflow.ElementType.CARDHOLDER_NAME,
|
|
87
|
-
validations: [regexMatchRule, lengthMatchRule],
|
|
97
|
+
validations: [regexMatchRule, lengthMatchRule, regexJustTextRule],
|
|
88
98
|
});
|
|
89
99
|
|
|
90
100
|
// Create collect elements.
|