@paykka/card-checkout-ui 0.7.0 → 0.8.0
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/card-checkout-ui.js +19 -19
- package/dist/card-checkout-ui.umd.cjs +19 -19
- package/dist/es/api/modules/checkout/map.js +11 -0
- package/dist/es/components/AliPay/index.js +39 -29
- package/dist/es/components/ApplePay/index.js +14 -7
- package/dist/es/components/Card/index.js +42 -39
- package/dist/es/components/DropIn/index.js +210 -0
- package/dist/es/components/GooglePay/index.js +11 -4
- package/dist/es/components/Sepa/index.js +5 -3
- package/dist/es/components/WechatPay/index.js +26 -17
- package/dist/es/components/index.js +1 -0
- package/dist/es/components/internal/Modal/Modal.js +1 -1
- package/dist/es/components/internal/icons/IconCard.js +42 -0
- package/dist/es/constant.js +10 -0
- package/dist/es/core/PayKKaCheckout.js +10 -0
- package/dist/es/hooks/usePayState.js +3 -1
- package/dist/es/i18n/locales/de-DE.js +3 -0
- package/dist/es/i18n/locales/en-GB.js +3 -0
- package/dist/es/i18n/locales/es-ES.js +3 -0
- package/dist/es/i18n/locales/fr-FR.js +3 -0
- package/dist/es/i18n/locales/ja-JP.js +3 -0
- package/dist/es/i18n/locales/ko-KR.js +3 -0
- package/dist/es/i18n/locales/pt-PT.js +3 -0
- package/dist/es/i18n/locales/ru-RU.js +3 -0
- package/dist/es/i18n/locales/zh-CN.js +3 -0
- package/dist/es/i18n/locales/zh-HK.js +3 -0
- package/dist/es/i18n/locales/zh-TW.js +3 -0
- package/dist/es/i18n/util.js +11 -0
- package/dist/es/index.js +4 -0
- package/dist/es/style.css +103 -7
- package/dist/style.css +1 -1
- package/dist/types/api/modules/checkout/map.d.ts +2 -1
- package/dist/types/api/modules/checkout/type.d.ts +11 -2
- package/dist/types/components/AliPay/AliPay.d.ts +2 -1
- package/dist/types/components/AliPay/type.d.ts +1 -2
- package/dist/types/components/ApplePay/ApplePay.d.ts +2 -1
- package/dist/types/components/ApplePay/type.d.ts +9 -6
- package/dist/types/components/Card/Card.d.ts +2 -1
- package/dist/types/components/Card/type.d.ts +2 -2
- package/dist/types/components/DropIn/DropIn.d.ts +6 -0
- package/dist/types/components/DropIn/components/PaymentTabs/PaymentTabs.d.ts +3 -0
- package/dist/types/components/DropIn/components/PaymentTabs/index.d.ts +2 -0
- package/dist/types/components/DropIn/components/PaymentTabs/type.d.ts +11 -0
- package/dist/types/components/DropIn/index.d.ts +2 -0
- package/dist/types/components/DropIn/type.d.ts +49 -0
- package/dist/types/components/GooglePay/GooglePay.d.ts +2 -1
- package/dist/types/components/GooglePay/type.d.ts +20 -9
- package/dist/types/components/Sepa/Sepa.d.ts +2 -1
- package/dist/types/components/Sepa/type.d.ts +1 -2
- package/dist/types/components/WechatPay/WechatPay.d.ts +2 -1
- package/dist/types/components/WechatPay/type.d.ts +1 -2
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/internal/Modal/index.d.ts +2 -0
- package/dist/types/components/internal/Modal/type.d.ts +1 -1
- package/dist/types/components/internal/icons/IconCard.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +1 -0
- package/dist/types/constant.d.ts +11 -0
- package/dist/types/core/PayKKaCheckout.d.ts +1 -0
- package/dist/types/i18n/locales/de-DE.d.ts +2 -0
- package/dist/types/i18n/locales/en-GB.d.ts +2 -0
- package/dist/types/i18n/locales/es-ES.d.ts +2 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +2 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +2 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +2 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +2 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +2 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +2 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +2 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +2 -0
- package/dist/types/i18n/util.d.ts +5 -0
- package/dist/types/types/index.d.ts +24 -4
- package/package.json +63 -63
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@paykka/card-checkout-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "dist/paykka-card-checkout-ui.umd.js",
|
|
6
|
-
"module": "dist/es/index.js",
|
|
7
|
-
"typings": "dist/types/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/es/index.js",
|
|
11
|
-
"require": "./dist/paykka-card-checkout-ui.umd.js",
|
|
12
|
-
"types": "./dist/types/index.d.ts"
|
|
13
|
-
},
|
|
14
|
-
"./*": "./dist/*"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist"
|
|
18
|
-
],
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@paykka/card-checkout-ui",
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/paykka-card-checkout-ui.umd.js",
|
|
6
|
+
"module": "dist/es/index.js",
|
|
7
|
+
"typings": "dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/es/index.js",
|
|
11
|
+
"require": "./dist/paykka-card-checkout-ui.umd.js",
|
|
12
|
+
"types": "./dist/types/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./*": "./dist/*"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "vite --host",
|
|
21
|
+
"build": "pnpm type-check && pnpm build:npm && pnpm build:inner && pnpm copy-dist-to-cdn && pnpm build:outer",
|
|
22
|
+
"build:npm": "tsx ./build/run.ts",
|
|
23
|
+
"build:inner": "tsx ./build/runInner.ts",
|
|
24
|
+
"build:outer": "tsx ./build/runOuter.ts",
|
|
25
|
+
"build:type": "tsc -p ./tsconfig.build.json",
|
|
26
|
+
"copy-dist-to-cdn": "tsx ./build/copyDist2CDN.ts",
|
|
27
|
+
"changeset": "changeset",
|
|
28
|
+
"changeset:pre": "changeset pre enter beta",
|
|
29
|
+
"changeset:pre-exit": "changeset pre exit",
|
|
30
|
+
"changeset:version": "changeset version",
|
|
31
|
+
"changeset:release": "changeset publish",
|
|
32
|
+
"changeset:prelease": "changeset publish --tag beta",
|
|
33
|
+
"release:prod": "pnpm build && pnpm changeset:release",
|
|
34
|
+
"release:noprod": "pnpm build && pnpm changeset:pre-exit && pnpm changeset:prelease",
|
|
35
|
+
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"registry": "https://packages.aliyun.com/640edee5a84870ae9d591e48/npm/npm-registry/"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@ctrl/tinycolor": "^4.0.3",
|
|
42
|
+
"@fingerprintjs/fingerprintjs": "^4.2.2",
|
|
43
|
+
"@preact/signals": "^1.3.0",
|
|
44
|
+
"@types/applepayjs": "^14.0.9",
|
|
45
|
+
"@types/googlepay": "^0.7.6",
|
|
46
|
+
"preact": "^10.24.3",
|
|
47
|
+
"ts-toolbelt": "^9.6.0",
|
|
48
|
+
"unfetch": "^5.0.0",
|
|
49
|
+
"vue-tsc": "^2.1.10"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@changesets/cli": "^2.27.1",
|
|
53
|
+
"@preact/preset-vite": "^2.9.1",
|
|
54
|
+
"@types/node": "^20.12.7",
|
|
55
|
+
"autoprefixer": "^10.4.18",
|
|
56
|
+
"execa": "^8.0.1",
|
|
57
|
+
"fast-glob": "^3.3.2",
|
|
58
|
+
"sass": "^1.71.1",
|
|
59
|
+
"tsx": "^4.7.3",
|
|
60
|
+
"typescript": "^5.4.5",
|
|
61
|
+
"vite": "^5.2.10"
|
|
62
|
+
}
|
|
63
|
+
}
|