@tagadapay/headless-sdk 1.9.0 → 1.13.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 +233 -216
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/modules/checkout.d.ts +15 -0
- package/dist/core/modules/checkout.d.ts.map +1 -1
- package/dist/core/modules/checkout.js +14 -0
- package/dist/core/modules/checkout.js.map +1 -1
- package/dist/core/modules/customer.d.ts +28 -2
- package/dist/core/modules/customer.d.ts.map +1 -1
- package/dist/core/modules/customer.js +40 -6
- package/dist/core/modules/customer.js.map +1 -1
- package/dist/core/modules/payment.d.ts +35 -0
- package/dist/core/modules/payment.d.ts.map +1 -1
- package/dist/core/modules/payment.js +70 -2
- package/dist/core/modules/payment.js.map +1 -1
- package/dist/core/types.d.ts +9 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/react/hooks/useCheckout.d.ts +23 -0
- package/dist/react/hooks/useCheckout.d.ts.map +1 -1
- package/dist/react/hooks/useCheckout.js +12 -0
- package/dist/react/hooks/useCheckout.js.map +1 -1
- package/dist/react/hooks/useOrder.d.ts +60 -0
- package/dist/react/hooks/useOrder.d.ts.map +1 -0
- package/dist/react/hooks/useOrder.js +103 -0
- package/dist/react/hooks/useOrder.js.map +1 -0
- package/dist/react/hooks/usePayment.d.ts +4 -0
- package/dist/react/hooks/usePayment.d.ts.map +1 -1
- package/dist/react/hooks/usePayment.js.map +1 -1
- package/dist/react/index.d.ts +3 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +3 -0
- package/dist/react/index.js.map +1 -1
- package/dist/tagada-headless-react.min.js +2 -2
- package/dist/tagada-headless-react.min.js.map +4 -4
- package/dist/tagada-headless.js +115 -12
- package/dist/tagada-headless.min.js +2 -2
- package/dist/tagada-headless.min.js.map +3 -3
- package/package.json +79 -79
package/package.json
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tagadapay/headless-sdk",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Headless SDK for using TagadaPay as a checkout, offers, and CRM backend from any external website",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/core/index.js",
|
|
7
|
-
"types": "dist/core/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/core/index.d.ts",
|
|
11
|
-
"import": "./dist/core/index.js",
|
|
12
|
-
"require": "./dist/core/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
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsc && node build-cdn.js",
|
|
22
|
-
"build:types": "tsc",
|
|
23
|
-
"build:cdn": "node build-cdn.js",
|
|
24
|
-
"clean": "rm -rf dist",
|
|
25
|
-
"dev": "tsc --watch",
|
|
26
|
-
"lint": "echo \"No linting configured\"",
|
|
27
|
-
"test": "vitest run",
|
|
28
|
-
"prepublishOnly": "npm run clean && npm run build"
|
|
29
|
-
},
|
|
30
|
-
"keywords": [
|
|
31
|
-
"tagadapay",
|
|
32
|
-
"headless",
|
|
33
|
-
"checkout",
|
|
34
|
-
"payment",
|
|
35
|
-
"sdk",
|
|
36
|
-
"offers",
|
|
37
|
-
"ecommerce"
|
|
38
|
-
],
|
|
39
|
-
"author": "Tagada Pay",
|
|
40
|
-
"license": "MIT",
|
|
41
|
-
"dependencies": {},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@stripe/stripe-js": "^8.11.0",
|
|
44
|
-
"@tagadapay/core-js": "workspace:*",
|
|
45
|
-
"@types/node": "^18.0.0",
|
|
46
|
-
"@types/react": "^19",
|
|
47
|
-
"esbuild": "^0.20.0",
|
|
48
|
-
"typescript": "^5.0.0",
|
|
49
|
-
"vitest": "^3.2.4"
|
|
50
|
-
},
|
|
51
|
-
"peerDependencies": {
|
|
52
|
-
"@stripe/stripe-js": "^7.0.0 || ^8.0.0",
|
|
53
|
-
"@tagadapay/core-js": "^3.0.0",
|
|
54
|
-
"react": "^18.0.0 || ^19.0.0"
|
|
55
|
-
},
|
|
56
|
-
"peerDependenciesMeta": {
|
|
57
|
-
"@stripe/stripe-js": {
|
|
58
|
-
"optional": true
|
|
59
|
-
},
|
|
60
|
-
"@tagadapay/core-js": {
|
|
61
|
-
"optional": true
|
|
62
|
-
},
|
|
63
|
-
"react": {
|
|
64
|
-
"optional": true
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"files": [
|
|
68
|
-
"dist/**/*",
|
|
69
|
-
"README.md"
|
|
70
|
-
],
|
|
71
|
-
"repository": {
|
|
72
|
-
"type": "git",
|
|
73
|
-
"url": "https://github.com/tagadapay/tagadapay.git",
|
|
74
|
-
"directory": "packages/headless-sdk"
|
|
75
|
-
},
|
|
76
|
-
"publishConfig": {
|
|
77
|
-
"access": "public"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tagadapay/headless-sdk",
|
|
3
|
+
"version": "1.13.0",
|
|
4
|
+
"description": "Headless SDK for using TagadaPay as a checkout, offers, and CRM backend from any external website",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/core/index.js",
|
|
7
|
+
"types": "dist/core/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/core/index.d.ts",
|
|
11
|
+
"import": "./dist/core/index.js",
|
|
12
|
+
"require": "./dist/core/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
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc && node build-cdn.js",
|
|
22
|
+
"build:types": "tsc",
|
|
23
|
+
"build:cdn": "node build-cdn.js",
|
|
24
|
+
"clean": "rm -rf dist",
|
|
25
|
+
"dev": "tsc --watch",
|
|
26
|
+
"lint": "echo \"No linting configured\"",
|
|
27
|
+
"test": "vitest run",
|
|
28
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"tagadapay",
|
|
32
|
+
"headless",
|
|
33
|
+
"checkout",
|
|
34
|
+
"payment",
|
|
35
|
+
"sdk",
|
|
36
|
+
"offers",
|
|
37
|
+
"ecommerce"
|
|
38
|
+
],
|
|
39
|
+
"author": "Tagada Pay",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"dependencies": {},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@stripe/stripe-js": "^8.11.0",
|
|
44
|
+
"@tagadapay/core-js": "workspace:*",
|
|
45
|
+
"@types/node": "^18.0.0",
|
|
46
|
+
"@types/react": "^19",
|
|
47
|
+
"esbuild": "^0.20.0",
|
|
48
|
+
"typescript": "^5.0.0",
|
|
49
|
+
"vitest": "^3.2.4"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@stripe/stripe-js": "^7.0.0 || ^8.0.0",
|
|
53
|
+
"@tagadapay/core-js": "^3.0.0",
|
|
54
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
55
|
+
},
|
|
56
|
+
"peerDependenciesMeta": {
|
|
57
|
+
"@stripe/stripe-js": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"@tagadapay/core-js": {
|
|
61
|
+
"optional": true
|
|
62
|
+
},
|
|
63
|
+
"react": {
|
|
64
|
+
"optional": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"dist/**/*",
|
|
69
|
+
"README.md"
|
|
70
|
+
],
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "https://github.com/tagadapay/tagadapay.git",
|
|
74
|
+
"directory": "packages/headless-sdk"
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public"
|
|
78
|
+
}
|
|
79
|
+
}
|