recur-tw 0.0.4-beta.3 → 0.0.4-beta.4
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/recur.umd.js +5 -1
- package/package.json +12 -12
package/dist/recur.umd.js
CHANGED
|
@@ -1487,5 +1487,9 @@
|
|
|
1487
1487
|
z-index: 1;
|
|
1488
1488
|
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
|
|
1489
1489
|
`,s.onclick=()=>{r.remove(),t&&t()};let l=document.createElement("iframe");l.style.cssText="width: 100%; height: 100%; border: none;",l.srcdoc=e,i.appendChild(s),i.appendChild(l),r.appendChild(i),document.body.appendChild(r),window.addEventListener("message",async n=>{if(n.data.type==="recur-mock-payment-success"){if(n.data.showToast){let{RecurToast:d}=await Promise.resolve().then(()=>(b(),g));d.show(n.data.showToast.message,n.data.showToast.type||"success",5e3)}r.remove(),t&&t()}})}showMockIframe(e,t,r){if(!t)throw new Error("Container is required for iframe mode");let i=typeof t=="string"?document.getElementById(t)||document.querySelector(t):t;if(!i)throw new Error("Container element not found");i.innerHTML="";let s=document.createElement("iframe");s.style.cssText="width: 100%; height: 100%; border: none; min-height: 600px;",s.srcdoc=e,i.appendChild(s),window.addEventListener("message",async l=>{if(l.data.type==="recur-mock-payment-success"){if(l.data.showToast){let{RecurToast:n}=await Promise.resolve().then(()=>(b(),g));n.show(l.data.showToast.message,l.data.showToast.type||"success",5e3)}r&&r()}})}};function V(a){return new v(a)}var Q={init:V,RecurCheckout:v,RecurElements:h,createElements:R};return Z(ee);})();
|
|
1490
|
-
if (typeof window !== "undefined") {
|
|
1490
|
+
if (typeof window !== "undefined") {
|
|
1491
|
+
window.RecurCheckout = RecurCheckout.default;
|
|
1492
|
+
window.RecurElements = RecurCheckout.RecurElements;
|
|
1493
|
+
window.createElements = RecurCheckout.createElements;
|
|
1494
|
+
}
|
|
1491
1495
|
//# sourceMappingURL=recur.umd.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "recur-tw",
|
|
3
|
-
"version": "0.0.4-beta.
|
|
3
|
+
"version": "0.0.4-beta.4",
|
|
4
4
|
"description": "React & Vanilla JS SDK for embedding subscription checkout flows (Taiwan / PAYUNi)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -27,6 +27,14 @@
|
|
|
27
27
|
"url": "https://github.com/your-org/recur-sdk/issues"
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/your-org/recur-sdk#readme",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsup",
|
|
32
|
+
"dev": "tsup --watch",
|
|
33
|
+
"lint": "eslint .",
|
|
34
|
+
"lint:fix": "eslint . --fix",
|
|
35
|
+
"type-check": "tsc --noEmit",
|
|
36
|
+
"examples": "npx http-server examples -p 8080 -o"
|
|
37
|
+
},
|
|
30
38
|
"main": "./dist/index.js",
|
|
31
39
|
"module": "./dist/index.js",
|
|
32
40
|
"types": "./dist/index.d.ts",
|
|
@@ -67,6 +75,7 @@
|
|
|
67
75
|
"@types/node": "^20.19.9",
|
|
68
76
|
"@types/react": "^19.1.9",
|
|
69
77
|
"@types/react-dom": "^19.1.7",
|
|
78
|
+
"@workspace/typescript-config": "workspace:*",
|
|
70
79
|
"autoprefixer": "^10.4.22",
|
|
71
80
|
"eslint": "^9",
|
|
72
81
|
"eslint-plugin-react": "^7.37.5",
|
|
@@ -77,15 +86,6 @@
|
|
|
77
86
|
"tailwindcss": "^4.1.11",
|
|
78
87
|
"tsup": "^8.3.5",
|
|
79
88
|
"typescript": "^5.9.2",
|
|
80
|
-
"typescript-eslint": "^8.47.0"
|
|
81
|
-
"@workspace/typescript-config": "0.0.0"
|
|
82
|
-
},
|
|
83
|
-
"scripts": {
|
|
84
|
-
"build": "tsup",
|
|
85
|
-
"dev": "tsup --watch",
|
|
86
|
-
"lint": "eslint .",
|
|
87
|
-
"lint:fix": "eslint . --fix",
|
|
88
|
-
"type-check": "tsc --noEmit",
|
|
89
|
-
"examples": "npx http-server examples -p 8080 -o"
|
|
89
|
+
"typescript-eslint": "^8.47.0"
|
|
90
90
|
}
|
|
91
|
-
}
|
|
91
|
+
}
|