@polyguard/sdk 1.3.1 → 1.3.2
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/sdk.esm.js +3 -3
- package/dist/sdk.js +3 -3
- package/package.json +1 -1
- package/src/ui.js +3 -3
package/dist/sdk.esm.js
CHANGED
|
@@ -10839,7 +10839,7 @@ var reconnecting_websocket_mjs_default = ReconnectingWebSocket;
|
|
|
10839
10839
|
|
|
10840
10840
|
// src/ui.js
|
|
10841
10841
|
var import_qrcode = __toESM(require_browser(), 1);
|
|
10842
|
-
var LOADING_SPINNER = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
10842
|
+
var LOADING_SPINNER = `<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200" fill="none">
|
|
10843
10843
|
<style>
|
|
10844
10844
|
.spinner-circle {
|
|
10845
10845
|
animation: spin 1s linear infinite;
|
|
@@ -10869,11 +10869,11 @@ function buildModal() {
|
|
|
10869
10869
|
modal.style.overflowY = "auto";
|
|
10870
10870
|
modal.style.paddingTop = "24px";
|
|
10871
10871
|
modal.innerHTML = `
|
|
10872
|
-
<div id="polyguard-modal-content" style="background: #fff; color: #222; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 26px 19px 19px 19px; max-width:
|
|
10872
|
+
<div id="polyguard-modal-content" style="background: #fff; color: #222; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 26px 19px 19px 19px; max-width: 312px; width: 100%; text-align: center; position: relative; font-family: 'IBM Plex Sans', 'Inter', 'Helvetica', 'Arial', sans-serif; margin: 0 auto; box-sizing: border-box;">
|
|
10873
10873
|
<button id="polyguard-modal-close" style="position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 18px; color: #222; cursor: pointer; z-index: 2;">×</button>
|
|
10874
10874
|
<h2 style="margin-top: 0; font-size: 1.04rem; font-weight: 700; color: #222;">Quick Identity Verification</h2>
|
|
10875
10875
|
<div style="font-size: 10px; color: #888; margin-bottom: 10px; font-weight: 500;">Powered by Polyguard</div>
|
|
10876
|
-
<div id="polyguard-qr" style="width:
|
|
10876
|
+
<div id="polyguard-qr" style="width: 200px; height: 200px; margin: 0 auto 13px auto; display: flex; align-items: center; justify-content: center; background: #f4f8fb; border-radius: 10px;"></div>
|
|
10877
10877
|
<div style="margin-bottom: 10px; font-weight: 600; font-size: 13px; color: #222;">Scan this QR code to verify your identity.</div>
|
|
10878
10878
|
<ul style="text-align: left; margin: 0 0 13px 0; padding-left: 16px; font-size: 11px; color: #444;">
|
|
10879
10879
|
<li>We use the Polyguard service to verify your identity.</li>
|
package/dist/sdk.js
CHANGED
|
@@ -10872,7 +10872,7 @@ var Polyguard = (() => {
|
|
|
10872
10872
|
|
|
10873
10873
|
// src/ui.js
|
|
10874
10874
|
var import_qrcode = __toESM(require_browser(), 1);
|
|
10875
|
-
var LOADING_SPINNER = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
10875
|
+
var LOADING_SPINNER = `<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200" fill="none">
|
|
10876
10876
|
<style>
|
|
10877
10877
|
.spinner-circle {
|
|
10878
10878
|
animation: spin 1s linear infinite;
|
|
@@ -10902,11 +10902,11 @@ var Polyguard = (() => {
|
|
|
10902
10902
|
modal.style.overflowY = "auto";
|
|
10903
10903
|
modal.style.paddingTop = "24px";
|
|
10904
10904
|
modal.innerHTML = `
|
|
10905
|
-
<div id="polyguard-modal-content" style="background: #fff; color: #222; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 26px 19px 19px 19px; max-width:
|
|
10905
|
+
<div id="polyguard-modal-content" style="background: #fff; color: #222; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 26px 19px 19px 19px; max-width: 312px; width: 100%; text-align: center; position: relative; font-family: 'IBM Plex Sans', 'Inter', 'Helvetica', 'Arial', sans-serif; margin: 0 auto; box-sizing: border-box;">
|
|
10906
10906
|
<button id="polyguard-modal-close" style="position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 18px; color: #222; cursor: pointer; z-index: 2;">×</button>
|
|
10907
10907
|
<h2 style="margin-top: 0; font-size: 1.04rem; font-weight: 700; color: #222;">Quick Identity Verification</h2>
|
|
10908
10908
|
<div style="font-size: 10px; color: #888; margin-bottom: 10px; font-weight: 500;">Powered by Polyguard</div>
|
|
10909
|
-
<div id="polyguard-qr" style="width:
|
|
10909
|
+
<div id="polyguard-qr" style="width: 200px; height: 200px; margin: 0 auto 13px auto; display: flex; align-items: center; justify-content: center; background: #f4f8fb; border-radius: 10px;"></div>
|
|
10910
10910
|
<div style="margin-bottom: 10px; font-weight: 600; font-size: 13px; color: #222;">Scan this QR code to verify your identity.</div>
|
|
10911
10911
|
<ul style="text-align: left; margin: 0 0 13px 0; padding-left: 16px; font-size: 11px; color: #444;">
|
|
10912
10912
|
<li>We use the Polyguard service to verify your identity.</li>
|
package/package.json
CHANGED
package/src/ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import QRCode from 'qrcode';
|
|
2
2
|
|
|
3
3
|
// Animated spinner SVG
|
|
4
|
-
export const LOADING_SPINNER = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
4
|
+
export const LOADING_SPINNER = `<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200" fill="none">
|
|
5
5
|
<style>
|
|
6
6
|
.spinner-circle {
|
|
7
7
|
animation: spin 1s linear infinite;
|
|
@@ -32,11 +32,11 @@ export function buildModal() {
|
|
|
32
32
|
modal.style.overflowY = 'auto';
|
|
33
33
|
modal.style.paddingTop = '24px';
|
|
34
34
|
modal.innerHTML = `
|
|
35
|
-
<div id="polyguard-modal-content" style="background: #fff; color: #222; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 26px 19px 19px 19px; max-width:
|
|
35
|
+
<div id="polyguard-modal-content" style="background: #fff; color: #222; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 26px 19px 19px 19px; max-width: 312px; width: 100%; text-align: center; position: relative; font-family: 'IBM Plex Sans', 'Inter', 'Helvetica', 'Arial', sans-serif; margin: 0 auto; box-sizing: border-box;">
|
|
36
36
|
<button id="polyguard-modal-close" style="position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 18px; color: #222; cursor: pointer; z-index: 2;">×</button>
|
|
37
37
|
<h2 style="margin-top: 0; font-size: 1.04rem; font-weight: 700; color: #222;">Quick Identity Verification</h2>
|
|
38
38
|
<div style="font-size: 10px; color: #888; margin-bottom: 10px; font-weight: 500;">Powered by Polyguard</div>
|
|
39
|
-
<div id="polyguard-qr" style="width:
|
|
39
|
+
<div id="polyguard-qr" style="width: 200px; height: 200px; margin: 0 auto 13px auto; display: flex; align-items: center; justify-content: center; background: #f4f8fb; border-radius: 10px;"></div>
|
|
40
40
|
<div style="margin-bottom: 10px; font-weight: 600; font-size: 13px; color: #222;">Scan this QR code to verify your identity.</div>
|
|
41
41
|
<ul style="text-align: left; margin: 0 0 13px 0; padding-left: 16px; font-size: 11px; color: #444;">
|
|
42
42
|
<li>We use the Polyguard service to verify your identity.</li>
|