@tagadapay/plugin-sdk 3.1.10 → 3.1.12
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/README.md +1129 -1129
- package/build-cdn.js +113 -223
- package/dist/external-tracker.js +2 -3
- package/dist/external-tracker.min.js +2 -2
- package/dist/external-tracker.min.js.map +3 -3
- package/dist/react/hooks/useShippingRates.d.ts +6 -0
- package/dist/react/hooks/useShippingRates.js +38 -0
- package/dist/react/providers/TagadaProvider.js +5 -5
- package/dist/react/services/apiService.d.ts +21 -0
- package/dist/react/services/apiService.js +10 -0
- package/dist/v2/core/funnelClient.d.ts +14 -15
- package/dist/v2/core/funnelClient.js +1 -1
- package/dist/v2/core/resources/shippingRates.d.ts +15 -0
- package/dist/v2/core/resources/shippingRates.js +11 -0
- package/dist/v2/core/utils/currency.d.ts +0 -14
- package/dist/v2/core/utils/currency.js +0 -40
- package/dist/v2/core/utils/index.d.ts +0 -1
- package/dist/v2/core/utils/index.js +0 -2
- package/dist/v2/core/utils/pluginConfig.d.ts +0 -8
- package/dist/v2/core/utils/pluginConfig.js +0 -28
- package/dist/v2/core/utils/previewModeIndicator.js +101 -101
- package/dist/v2/index.d.ts +1 -1
- package/dist/v2/react/components/ApplePayButton.js +13 -4
- package/dist/v2/react/components/FunnelScriptInjector.js +30 -30
- package/dist/v2/react/hooks/useFunnel.d.ts +1 -2
- package/dist/v2/react/hooks/useGoogleAutocomplete.js +82 -33
- package/dist/v2/react/hooks/usePixelTracking.d.ts +5 -0
- package/dist/v2/react/hooks/usePixelTracking.js +108 -0
- package/dist/v2/react/hooks/useShippingRatesQuery.d.ts +6 -0
- package/dist/v2/react/hooks/useShippingRatesQuery.js +36 -1
- package/dist/v2/react/hooks/useStepConfig.d.ts +2 -8
- package/dist/v2/react/hooks/useStepConfig.js +1 -1
- package/dist/v2/react/providers/TagadaProvider.js +5 -5
- package/dist/v2/standalone/index.js +1 -1
- package/package.json +112 -112
- package/dist/tagada-sdk.js +0 -10164
- package/dist/tagada-sdk.min.js +0 -45
- package/dist/tagada-sdk.min.js.map +0 -7
package/package.json
CHANGED
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tagadapay/plugin-sdk",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"description": "Modern React SDK for building Tagada Pay plugins",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./react": {
|
|
14
|
-
"types": "./dist/react/index.d.ts",
|
|
15
|
-
"import": "./dist/react/index.js",
|
|
16
|
-
"require": "./dist/react/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./v2": {
|
|
19
|
-
"types": "./dist/v2/index.d.ts",
|
|
20
|
-
"import": "./dist/v2/index.js",
|
|
21
|
-
"require": "./dist/v2/index.js"
|
|
22
|
-
},
|
|
23
|
-
"./v2/standalone": {
|
|
24
|
-
"types": "./dist/v2/standalone/index.d.ts",
|
|
25
|
-
"import": "./dist/v2/standalone/index.js",
|
|
26
|
-
"require": "./dist/v2/standalone/index.js"
|
|
27
|
-
},
|
|
28
|
-
"./external-tracker": {
|
|
29
|
-
"browser": "./dist/external-tracker.min.js",
|
|
30
|
-
"default": "./dist/external-tracker.min.js"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"build": "tsc && npm run build:cdn",
|
|
35
|
-
"build:cdn": "node build-cdn.js",
|
|
36
|
-
"build:ts": "tsc",
|
|
37
|
-
"clean": "rm -rf dist",
|
|
38
|
-
"lint": "echo \"No linting configured\"",
|
|
39
|
-
"test": "jest --no-watchman",
|
|
40
|
-
"test:watch": "jest --watch --no-watchman",
|
|
41
|
-
"test:coverage": "jest --coverage --no-watchman",
|
|
42
|
-
"dev": "tsc --watch",
|
|
43
|
-
"prepublishOnly": "npm run clean && npm run build",
|
|
44
|
-
"publish:patch": "npm version patch && npm publish",
|
|
45
|
-
"publish:minor": "npm version minor && npm publish",
|
|
46
|
-
"publish:major": "npm version major && npm publish",
|
|
47
|
-
"publish:beta": "npm version prerelease --preid=beta && npm publish --tag beta",
|
|
48
|
-
"publish:alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha",
|
|
49
|
-
"version:patch": "npm version patch",
|
|
50
|
-
"version:minor": "npm version minor",
|
|
51
|
-
"version:major": "npm version major",
|
|
52
|
-
"version:beta": "npm version prerelease --preid=beta",
|
|
53
|
-
"version:alpha": "npm version prerelease --preid=alpha",
|
|
54
|
-
"version:check": "node version-sync.js check",
|
|
55
|
-
"version:sync": "node version-sync.js sync",
|
|
56
|
-
"version:list": "node version-sync.js list",
|
|
57
|
-
"version:next": "node version-sync.js next",
|
|
58
|
-
"postversion": "echo \"✅ Version updated to $(node -p 'require(\"./package.json\").version')\" && (git push && git push --tags || echo \"⚠️ Git push failed - you may need to pull and push manually\")"
|
|
59
|
-
},
|
|
60
|
-
"keywords": [
|
|
61
|
-
"tagadapay",
|
|
62
|
-
"cms",
|
|
63
|
-
"plugin",
|
|
64
|
-
"sdk",
|
|
65
|
-
"react",
|
|
66
|
-
"typescript"
|
|
67
|
-
],
|
|
68
|
-
"author": "Tagada Pay",
|
|
69
|
-
"license": "MIT",
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"@basis-theory/apple-pay-js": "^2.0.2",
|
|
72
|
-
"@basis-theory/basis-theory-js": "^4.30.0",
|
|
73
|
-
"@basis-theory/basis-theory-react": "^1.32.5",
|
|
74
|
-
"@basis-theory/web-threeds": "^1.0.1",
|
|
75
|
-
"@google-pay/button-react": "^3.0.10",
|
|
76
|
-
"@tagadapay/plugin-sdk": "link:",
|
|
77
|
-
"@tanstack/react-query": "^5.90.2",
|
|
78
|
-
"@ua-parser-js/pro-enterprise": "^2.0.6",
|
|
79
|
-
"axios": "^1.10.0",
|
|
80
|
-
"iso3166-2-db": "^2.3.11",
|
|
81
|
-
"path-to-regexp": "^8.2.0",
|
|
82
|
-
"react-intl": "^7.1.11",
|
|
83
|
-
"swr": "^2.3.6"
|
|
84
|
-
},
|
|
85
|
-
"devDependencies": {
|
|
86
|
-
"@types/jest": "^29.5.0",
|
|
87
|
-
"@types/node": "^18.0.0",
|
|
88
|
-
"@types/react": "^19",
|
|
89
|
-
"@types/react-dom": "^19",
|
|
90
|
-
"esbuild": "^0.24.2",
|
|
91
|
-
"jest": "^29.5.0",
|
|
92
|
-
"ts-jest": "^29.1.0",
|
|
93
|
-
"typescript": "^5.0.0"
|
|
94
|
-
},
|
|
95
|
-
"peerDependencies": {
|
|
96
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
97
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
98
|
-
},
|
|
99
|
-
"files": [
|
|
100
|
-
"dist/**/*",
|
|
101
|
-
"README.md",
|
|
102
|
-
"build-cdn.js"
|
|
103
|
-
],
|
|
104
|
-
"repository": {
|
|
105
|
-
"type": "git",
|
|
106
|
-
"url": "git+https://github.com/tagadapay/plugin-sdk.git"
|
|
107
|
-
},
|
|
108
|
-
"bugs": {
|
|
109
|
-
"url": "https://github.com/tagadapay/plugin-sdk/issues"
|
|
110
|
-
},
|
|
111
|
-
"homepage": "https://github.com/tagadapay/plugin-sdk#readme"
|
|
112
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tagadapay/plugin-sdk",
|
|
3
|
+
"version": "3.1.12",
|
|
4
|
+
"description": "Modern React SDK for building Tagada Pay plugins",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./react": {
|
|
14
|
+
"types": "./dist/react/index.d.ts",
|
|
15
|
+
"import": "./dist/react/index.js",
|
|
16
|
+
"require": "./dist/react/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./v2": {
|
|
19
|
+
"types": "./dist/v2/index.d.ts",
|
|
20
|
+
"import": "./dist/v2/index.js",
|
|
21
|
+
"require": "./dist/v2/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./v2/standalone": {
|
|
24
|
+
"types": "./dist/v2/standalone/index.d.ts",
|
|
25
|
+
"import": "./dist/v2/standalone/index.js",
|
|
26
|
+
"require": "./dist/v2/standalone/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./external-tracker": {
|
|
29
|
+
"browser": "./dist/external-tracker.min.js",
|
|
30
|
+
"default": "./dist/external-tracker.min.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsc && npm run build:cdn",
|
|
35
|
+
"build:cdn": "node build-cdn.js",
|
|
36
|
+
"build:ts": "tsc",
|
|
37
|
+
"clean": "rm -rf dist",
|
|
38
|
+
"lint": "echo \"No linting configured\"",
|
|
39
|
+
"test": "jest --no-watchman",
|
|
40
|
+
"test:watch": "jest --watch --no-watchman",
|
|
41
|
+
"test:coverage": "jest --coverage --no-watchman",
|
|
42
|
+
"dev": "tsc --watch",
|
|
43
|
+
"prepublishOnly": "npm run clean && npm run build",
|
|
44
|
+
"publish:patch": "npm version patch && npm publish",
|
|
45
|
+
"publish:minor": "npm version minor && npm publish",
|
|
46
|
+
"publish:major": "npm version major && npm publish",
|
|
47
|
+
"publish:beta": "npm version prerelease --preid=beta && npm publish --tag beta",
|
|
48
|
+
"publish:alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha",
|
|
49
|
+
"version:patch": "npm version patch",
|
|
50
|
+
"version:minor": "npm version minor",
|
|
51
|
+
"version:major": "npm version major",
|
|
52
|
+
"version:beta": "npm version prerelease --preid=beta",
|
|
53
|
+
"version:alpha": "npm version prerelease --preid=alpha",
|
|
54
|
+
"version:check": "node version-sync.js check",
|
|
55
|
+
"version:sync": "node version-sync.js sync",
|
|
56
|
+
"version:list": "node version-sync.js list",
|
|
57
|
+
"version:next": "node version-sync.js next",
|
|
58
|
+
"postversion": "echo \"✅ Version updated to $(node -p 'require(\"./package.json\").version')\" && (git push && git push --tags || echo \"⚠️ Git push failed - you may need to pull and push manually\")"
|
|
59
|
+
},
|
|
60
|
+
"keywords": [
|
|
61
|
+
"tagadapay",
|
|
62
|
+
"cms",
|
|
63
|
+
"plugin",
|
|
64
|
+
"sdk",
|
|
65
|
+
"react",
|
|
66
|
+
"typescript"
|
|
67
|
+
],
|
|
68
|
+
"author": "Tagada Pay",
|
|
69
|
+
"license": "MIT",
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@basis-theory/apple-pay-js": "^2.0.2",
|
|
72
|
+
"@basis-theory/basis-theory-js": "^4.30.0",
|
|
73
|
+
"@basis-theory/basis-theory-react": "^1.32.5",
|
|
74
|
+
"@basis-theory/web-threeds": "^1.0.1",
|
|
75
|
+
"@google-pay/button-react": "^3.0.10",
|
|
76
|
+
"@tagadapay/plugin-sdk": "link:",
|
|
77
|
+
"@tanstack/react-query": "^5.90.2",
|
|
78
|
+
"@ua-parser-js/pro-enterprise": "^2.0.6",
|
|
79
|
+
"axios": "^1.10.0",
|
|
80
|
+
"iso3166-2-db": "^2.3.11",
|
|
81
|
+
"path-to-regexp": "^8.2.0",
|
|
82
|
+
"react-intl": "^7.1.11",
|
|
83
|
+
"swr": "^2.3.6"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@types/jest": "^29.5.0",
|
|
87
|
+
"@types/node": "^18.0.0",
|
|
88
|
+
"@types/react": "^19",
|
|
89
|
+
"@types/react-dom": "^19",
|
|
90
|
+
"esbuild": "^0.24.2",
|
|
91
|
+
"jest": "^29.5.0",
|
|
92
|
+
"ts-jest": "^29.1.0",
|
|
93
|
+
"typescript": "^5.0.0"
|
|
94
|
+
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
97
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
98
|
+
},
|
|
99
|
+
"files": [
|
|
100
|
+
"dist/**/*",
|
|
101
|
+
"README.md",
|
|
102
|
+
"build-cdn.js"
|
|
103
|
+
],
|
|
104
|
+
"repository": {
|
|
105
|
+
"type": "git",
|
|
106
|
+
"url": "git+https://github.com/tagadapay/plugin-sdk.git"
|
|
107
|
+
},
|
|
108
|
+
"bugs": {
|
|
109
|
+
"url": "https://github.com/tagadapay/plugin-sdk/issues"
|
|
110
|
+
},
|
|
111
|
+
"homepage": "https://github.com/tagadapay/plugin-sdk#readme"
|
|
112
|
+
}
|