unshared-clientjs-sdk 2.1.0-rc.4 → 2.1.0-rc.5

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.
@@ -1 +1 @@
1
- export function generateGatePage(n){return`<!doctype html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<meta name="robots" content="noindex,nofollow">\n<title>Verification required</title>\n<style>html,body{margin:0;height:100%;background:#0b0b0c;font-family:system-ui,sans-serif}</style>\n</head>\n<body>\n<noscript>Verification is required to continue. Please enable JavaScript.</noscript>\n<script src="${n}/fp.js"><\/script>\n<script>\n(function(){\n function boot(){\n try{\n var ns = window.UnsharedBrowser;\n if(!ns || !ns.UnsharedBrowser){ return; }\n var sdk = new ns.UnsharedBrowser({ baseUrl: '' });\n sdk.showInterstitial({ onComplete: function(){ try{ location.reload(); }catch(e){} } });\n }catch(e){}\n }\n if(window.UnsharedBrowser){ boot(); return; }\n var tries = 0;\n var timer = setInterval(function(){\n if(window.UnsharedBrowser || tries++ > 50){ clearInterval(timer); boot(); }\n }, 100);\n})();\n<\/script>\n</body>\n</html>`}
1
+ export function generateGatePage(n){return`<!doctype html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<meta name="robots" content="noindex,nofollow">\n<title>Verification required</title>\n<style>\nhtml,body{margin:0;height:100%;background:#0b0b0c;font-family:system-ui,sans-serif}\n#__unshared_gate_fallback{\n position:fixed;inset:0;display:flex;flex-direction:column;\n align-items:center;justify-content:center;gap:16px;padding:24px;\n text-align:center;color:#e5e7eb;\n}\n#__unshared_gate_fallback p{margin:0;font-size:16px;line-height:1.5;max-width:360px}\n#__unshared_gate_fallback button{\n display:none;padding:10px 20px;font-size:15px;font-weight:600;cursor:pointer;\n color:#fff;background:#4f46e5;border:none;border-radius:8px;font-family:inherit;\n}\n</style>\n</head>\n<body>\n<noscript>Verification is required to continue. Please enable JavaScript.</noscript>\n\x3c!-- Always-visible fallback so a slow/failed modal render is never a blank black void.\n The interstitial modal (full-viewport overlay, z-index 2147483647) covers this once\n it mounts; if it never mounts, the user sees a legible message instead of nothing. --\x3e\n<div id="__unshared_gate_fallback" role="status" aria-live="polite">\n <p id="__unshared_gate_msg">Verifying your account&hellip;</p>\n <button id="__unshared_gate_reload" type="button">Refresh to try again</button>\n</div>\n<script src="${n}/fp.js"><\/script>\n<script>\n(function(){\n function showError(){\n try{\n var msg = document.getElementById('__unshared_gate_msg');\n var btn = document.getElementById('__unshared_gate_reload');\n if(msg){ msg.textContent = "We couldn't load verification. Refresh to try again."; }\n if(btn){ btn.style.display = 'inline-block'; btn.onclick = function(){ try{ location.reload(); }catch(e){} }; }\n }catch(e){}\n }\n function boot(){\n try{\n var ns = window.UnsharedBrowser;\n if(!ns || !ns.UnsharedBrowser){ showError(); return; }\n var sdk = new ns.UnsharedBrowser({ baseUrl: '' });\n Promise.resolve(sdk.showInterstitial({ onComplete: function(){ try{ location.reload(); }catch(e){} } }))\n .then(function(res){ if(!res || !res.success){ showError(); } })\n .catch(function(){ showError(); });\n }catch(e){ showError(); }\n }\n if(window.UnsharedBrowser){ boot(); return; }\n var tries = 0;\n var timer = setInterval(function(){\n if(window.UnsharedBrowser || tries++ > 50){ clearInterval(timer); boot(); }\n }, 100);\n})();\n<\/script>\n</body>\n</html>`}
@@ -1 +1 @@
1
- "use strict";function generateGatePage(n){return`<!doctype html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<meta name="robots" content="noindex,nofollow">\n<title>Verification required</title>\n<style>html,body{margin:0;height:100%;background:#0b0b0c;font-family:system-ui,sans-serif}</style>\n</head>\n<body>\n<noscript>Verification is required to continue. Please enable JavaScript.</noscript>\n<script src="${n}/fp.js"><\/script>\n<script>\n(function(){\n function boot(){\n try{\n var ns = window.UnsharedBrowser;\n if(!ns || !ns.UnsharedBrowser){ return; }\n var sdk = new ns.UnsharedBrowser({ baseUrl: '' });\n sdk.showInterstitial({ onComplete: function(){ try{ location.reload(); }catch(e){} } });\n }catch(e){}\n }\n if(window.UnsharedBrowser){ boot(); return; }\n var tries = 0;\n var timer = setInterval(function(){\n if(window.UnsharedBrowser || tries++ > 50){ clearInterval(timer); boot(); }\n }, 100);\n})();\n<\/script>\n</body>\n</html>`}Object.defineProperty(exports,"t",{value:!0}),exports.generateGatePage=generateGatePage;
1
+ "use strict";function generateGatePage(n){return`<!doctype html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<meta name="robots" content="noindex,nofollow">\n<title>Verification required</title>\n<style>\nhtml,body{margin:0;height:100%;background:#0b0b0c;font-family:system-ui,sans-serif}\n#__unshared_gate_fallback{\n position:fixed;inset:0;display:flex;flex-direction:column;\n align-items:center;justify-content:center;gap:16px;padding:24px;\n text-align:center;color:#e5e7eb;\n}\n#__unshared_gate_fallback p{margin:0;font-size:16px;line-height:1.5;max-width:360px}\n#__unshared_gate_fallback button{\n display:none;padding:10px 20px;font-size:15px;font-weight:600;cursor:pointer;\n color:#fff;background:#4f46e5;border:none;border-radius:8px;font-family:inherit;\n}\n</style>\n</head>\n<body>\n<noscript>Verification is required to continue. Please enable JavaScript.</noscript>\n\x3c!-- Always-visible fallback so a slow/failed modal render is never a blank black void.\n The interstitial modal (full-viewport overlay, z-index 2147483647) covers this once\n it mounts; if it never mounts, the user sees a legible message instead of nothing. --\x3e\n<div id="__unshared_gate_fallback" role="status" aria-live="polite">\n <p id="__unshared_gate_msg">Verifying your account&hellip;</p>\n <button id="__unshared_gate_reload" type="button">Refresh to try again</button>\n</div>\n<script src="${n}/fp.js"><\/script>\n<script>\n(function(){\n function showError(){\n try{\n var msg = document.getElementById('__unshared_gate_msg');\n var btn = document.getElementById('__unshared_gate_reload');\n if(msg){ msg.textContent = "We couldn't load verification. Refresh to try again."; }\n if(btn){ btn.style.display = 'inline-block'; btn.onclick = function(){ try{ location.reload(); }catch(e){} }; }\n }catch(e){}\n }\n function boot(){\n try{\n var ns = window.UnsharedBrowser;\n if(!ns || !ns.UnsharedBrowser){ showError(); return; }\n var sdk = new ns.UnsharedBrowser({ baseUrl: '' });\n Promise.resolve(sdk.showInterstitial({ onComplete: function(){ try{ location.reload(); }catch(e){} } }))\n .then(function(res){ if(!res || !res.success){ showError(); } })\n .catch(function(){ showError(); });\n }catch(e){ showError(); }\n }\n if(window.UnsharedBrowser){ boot(); return; }\n var tries = 0;\n var timer = setInterval(function(){\n if(window.UnsharedBrowser || tries++ > 50){ clearInterval(timer); boot(); }\n }, 100);\n})();\n<\/script>\n</body>\n</html>`}Object.defineProperty(exports,"t",{value:!0}),exports.generateGatePage=generateGatePage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unshared-clientjs-sdk",
3
- "version": "2.1.0-rc.4",
3
+ "version": "2.1.0-rc.5",
4
4
  "description": "Server-side Node.js SDK for the Unshared Labs V2 API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.mjs",
@@ -52,7 +52,7 @@
52
52
  "author": "",
53
53
  "license": "MIT",
54
54
  "dependencies": {
55
- "unshared-frontend-sdk": "2.1.0-rc.4"
55
+ "unshared-frontend-sdk": "2.1.0-rc.5"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@unshared-labs/shared-types": "file:../../../shared/types",