@tagadapay/plugin-sdk 4.0.6 → 4.1.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/README.md +25 -46
- package/dist/external-tracker.js +103 -36
- package/dist/external-tracker.min.js +2 -2
- package/dist/external-tracker.min.js.map +3 -3
- package/dist/react/types.d.ts +2 -2
- package/dist/tagada-react-sdk-minimal.min.js +2 -2
- package/dist/tagada-react-sdk-minimal.min.js.map +3 -3
- package/dist/tagada-react-sdk.js +148 -28
- package/dist/tagada-react-sdk.min.js +2 -2
- package/dist/tagada-react-sdk.min.js.map +4 -4
- package/dist/tagada-sdk.js +125 -45
- package/dist/tagada-sdk.min.js +2 -2
- package/dist/tagada-sdk.min.js.map +4 -4
- package/dist/v2/core/funnelClient.js +14 -9
- package/dist/v2/core/pixelMapping.d.ts +84 -0
- package/dist/v2/core/pixelMapping.js +102 -0
- package/dist/v2/core/pixelTracker.d.ts +1 -6
- package/dist/v2/core/pixelTracker.js +36 -2
- package/dist/v2/core/resources/credits.d.ts +13 -0
- package/dist/v2/core/resources/credits.js +7 -0
- package/dist/v2/core/resources/offers.d.ts +5 -1
- package/dist/v2/core/resources/offers.js +3 -2
- package/dist/v2/core/resources/payments.d.ts +1 -0
- package/dist/v2/core/resources/payments.js +1 -0
- package/dist/v2/core/types.d.ts +17 -2
- package/dist/v2/core/utils/authHandoff.d.ts +2 -1
- package/dist/v2/index.d.ts +3 -1
- package/dist/v2/index.js +4 -1
- package/dist/v2/react/components/FunnelScriptInjector.js +42 -7
- package/dist/v2/react/hooks/useAuth.d.ts +1 -0
- package/dist/v2/react/hooks/useAuth.js +1 -0
- package/dist/v2/react/hooks/useClubOffers.d.ts +16 -0
- package/dist/v2/react/hooks/useClubOffers.js +29 -3
- package/dist/v2/react/hooks/useCustomer.d.ts +1 -0
- package/dist/v2/react/hooks/useCustomer.js +1 -0
- package/dist/v2/react/hooks/useStore.d.ts +5 -0
- package/dist/v2/react/hooks/useStore.js +16 -0
- package/dist/v2/react/index.d.ts +1 -0
- package/dist/v2/react/index.js +1 -0
- package/dist/v2/standalone/index.js +134 -46
- package/dist/v2/standalone/payment-service.d.ts +2 -1
- package/dist/v2/standalone/payment-service.js +6 -4
- package/package.json +113 -115
package/package.json
CHANGED
|
@@ -1,115 +1,113 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tagadapay/plugin-sdk",
|
|
3
|
-
"version": "4.0
|
|
4
|
-
"description": "Modern React SDK for building Tagada Pay plugins",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"sideEffects": false,
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js",
|
|
12
|
-
"require": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./react": {
|
|
15
|
-
"types": "./dist/react/index.d.ts",
|
|
16
|
-
"import": "./dist/react/index.js",
|
|
17
|
-
"require": "./dist/react/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./v2": {
|
|
20
|
-
"types": "./dist/v2/index.d.ts",
|
|
21
|
-
"import": "./dist/v2/index.js",
|
|
22
|
-
"require": "./dist/v2/index.js"
|
|
23
|
-
},
|
|
24
|
-
"./v2/standalone": {
|
|
25
|
-
"types": "./dist/v2/standalone/index.d.ts",
|
|
26
|
-
"import": "./dist/v2/standalone/index.js",
|
|
27
|
-
"require": "./dist/v2/standalone/index.js"
|
|
28
|
-
},
|
|
29
|
-
"./external-tracker": {
|
|
30
|
-
"browser": "./dist/external-tracker.min.js",
|
|
31
|
-
"default": "./dist/external-tracker.min.js"
|
|
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
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"homepage": "https://github.com/tagadapay/plugin-sdk#readme"
|
|
115
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tagadapay/plugin-sdk",
|
|
3
|
+
"version": "4.1.0",
|
|
4
|
+
"description": "Modern React SDK for building Tagada Pay plugins",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./react": {
|
|
15
|
+
"types": "./dist/react/index.d.ts",
|
|
16
|
+
"import": "./dist/react/index.js",
|
|
17
|
+
"require": "./dist/react/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./v2": {
|
|
20
|
+
"types": "./dist/v2/index.d.ts",
|
|
21
|
+
"import": "./dist/v2/index.js",
|
|
22
|
+
"require": "./dist/v2/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./v2/standalone": {
|
|
25
|
+
"types": "./dist/v2/standalone/index.d.ts",
|
|
26
|
+
"import": "./dist/v2/standalone/index.js",
|
|
27
|
+
"require": "./dist/v2/standalone/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./external-tracker": {
|
|
30
|
+
"browser": "./dist/external-tracker.min.js",
|
|
31
|
+
"default": "./dist/external-tracker.min.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"tagadapay",
|
|
36
|
+
"cms",
|
|
37
|
+
"plugin",
|
|
38
|
+
"sdk",
|
|
39
|
+
"react",
|
|
40
|
+
"typescript"
|
|
41
|
+
],
|
|
42
|
+
"author": "Tagada Pay",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@basis-theory/apple-pay-js": "^2.0.2",
|
|
46
|
+
"@basis-theory/basis-theory-js": "^4.30.0",
|
|
47
|
+
"@basis-theory/basis-theory-react": "^1.32.5",
|
|
48
|
+
"@basis-theory/web-threeds": "^1.0.1",
|
|
49
|
+
"@google-pay/button-react": "^3.0.10",
|
|
50
|
+
"@stripe/react-stripe-js": "^5.6.1",
|
|
51
|
+
"@stripe/stripe-js": "^8.11.0",
|
|
52
|
+
"@tanstack/react-query": "^5.90.2",
|
|
53
|
+
"@whop/checkout": "^0.0.40",
|
|
54
|
+
"axios": "^1.10.0",
|
|
55
|
+
"path-to-regexp": "^8.2.0",
|
|
56
|
+
"react-intl": "^7.1.11",
|
|
57
|
+
"swr": "^2.3.6",
|
|
58
|
+
"@tagadapay/core-js": "3.1.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@types/jest": "^29.5.0",
|
|
62
|
+
"@types/node": "^18.19.130",
|
|
63
|
+
"@types/react": "^19",
|
|
64
|
+
"@types/react-dom": "^19",
|
|
65
|
+
"esbuild": "^0.24.2",
|
|
66
|
+
"jest": "^29.5.0",
|
|
67
|
+
"ts-jest": "^29.1.0",
|
|
68
|
+
"typescript": "^5.0.0"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
72
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
73
|
+
},
|
|
74
|
+
"files": [
|
|
75
|
+
"dist/**/*",
|
|
76
|
+
"README.md",
|
|
77
|
+
"build-cdn.js"
|
|
78
|
+
],
|
|
79
|
+
"repository": {
|
|
80
|
+
"type": "git",
|
|
81
|
+
"url": "git+https://github.com/tagadapay/plugin-sdk.git"
|
|
82
|
+
},
|
|
83
|
+
"bugs": {
|
|
84
|
+
"url": "https://github.com/tagadapay/plugin-sdk/issues"
|
|
85
|
+
},
|
|
86
|
+
"homepage": "https://github.com/tagadapay/plugin-sdk#readme",
|
|
87
|
+
"scripts": {
|
|
88
|
+
"build": "tsc && npm run build:cdn",
|
|
89
|
+
"build:cdn": "node build-cdn.js",
|
|
90
|
+
"build:ts": "tsc",
|
|
91
|
+
"clean": "rm -rf dist",
|
|
92
|
+
"lint": "echo \"No linting configured\"",
|
|
93
|
+
"test": "jest --no-watchman",
|
|
94
|
+
"test:watch": "jest --watch --no-watchman",
|
|
95
|
+
"test:coverage": "jest --coverage --no-watchman",
|
|
96
|
+
"dev": "tsc --watch",
|
|
97
|
+
"publish:patch": "npm version patch && pnpm publish --no-git-checks",
|
|
98
|
+
"publish:minor": "npm version minor && pnpm publish --no-git-checks",
|
|
99
|
+
"publish:major": "npm version major && pnpm publish --no-git-checks",
|
|
100
|
+
"publish:beta": "npm version prerelease --preid=beta && pnpm publish --tag beta --no-git-checks",
|
|
101
|
+
"publish:alpha": "npm version prerelease --preid=alpha && pnpm publish --tag alpha --no-git-checks",
|
|
102
|
+
"version:patch": "npm version patch",
|
|
103
|
+
"version:minor": "npm version minor",
|
|
104
|
+
"version:major": "npm version major",
|
|
105
|
+
"version:beta": "npm version prerelease --preid=beta",
|
|
106
|
+
"version:alpha": "npm version prerelease --preid=alpha",
|
|
107
|
+
"version:check": "node version-sync.js check",
|
|
108
|
+
"version:sync": "node version-sync.js sync",
|
|
109
|
+
"version:list": "node version-sync.js list",
|
|
110
|
+
"version:next": "node version-sync.js next",
|
|
111
|
+
"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\")"
|
|
112
|
+
}
|
|
113
|
+
}
|