webs-sdk 0.18.40 → 0.18.41
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 +451 -451
- package/dist/components/ARFilters/ARFilters.js +54 -54
- package/dist/components/AvatarAI.js +4 -4
- package/dist/components/CookieConsent/constants.js +31 -31
- package/dist/components/CreativeFaceSwap.js +12 -12
- package/dist/components/MemeGenerator.js +12 -12
- package/dist/components/PasswordReset/PasswordResetForm.d.ts +3 -0
- package/dist/components/PasswordReset/PasswordResetForm.d.ts.map +1 -0
- package/dist/components/PasswordReset/PasswordResetForm.js +130 -0
- package/dist/components/PasswordReset/PasswordResetForm.js.map +1 -0
- package/dist/components/PasswordReset/PasswordResetRequest.d.ts +3 -0
- package/dist/components/PasswordReset/PasswordResetRequest.d.ts.map +1 -0
- package/dist/components/PasswordReset/PasswordResetRequest.js +102 -0
- package/dist/components/PasswordReset/PasswordResetRequest.js.map +1 -0
- package/dist/components/PasswordReset/constants.d.ts +6 -0
- package/dist/components/PasswordReset/constants.d.ts.map +1 -0
- package/dist/components/PasswordReset/constants.js +55 -0
- package/dist/components/PasswordReset/constants.js.map +1 -0
- package/dist/components/PasswordReset/index.d.ts +5 -0
- package/dist/components/PasswordReset/index.d.ts.map +1 -0
- package/dist/components/PasswordReset/index.js +10 -0
- package/dist/components/PasswordReset/index.js.map +1 -0
- package/dist/components/PasswordReset/translations.d.ts +3 -0
- package/dist/components/PasswordReset/translations.d.ts.map +1 -0
- package/dist/components/PasswordReset/translations.js +72 -0
- package/dist/components/PasswordReset/translations.js.map +1 -0
- package/dist/components/PasswordReset/types.d.ts +89 -0
- package/dist/components/PasswordReset/types.d.ts.map +1 -0
- package/dist/components/PasswordReset/types.js +3 -0
- package/dist/components/PasswordReset/types.js.map +1 -0
- package/dist/components/SpinningWheel/SpinningWheel.js +7 -7
- package/dist/utils/videoValidation.d.ts.map +1 -1
- package/dist/utils/videoValidation.js +59 -4
- package/dist/utils/videoValidation.js.map +1 -1
- package/package.json +78 -78
- package/public/spin2win/assets/border-afristream.svg +26 -26
- package/public/spin2win/assets/border-efc.svg +23 -23
- package/public/spin2win/assets/border-totalgym.svg +27 -27
- package/public/spin2win/assets/border-womantoday.svg +26 -26
- package/public/spin2win/assets/indicator-afristream.svg +28 -28
- package/public/spin2win/assets/indicator-efc.svg +29 -29
- package/public/spin2win/assets/indicator-totalgym.svg +29 -29
- package/public/spin2win/fonts/switzer/README.md +22 -22
- package/dist/libraries/globals.d.ts +0 -17
- package/dist/libraries/globals.d.ts.map +0 -1
- package/dist/libraries/globals.js +0 -38
- package/dist/libraries/globals.js.map +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PASSWORD_RESET_CSS = exports.DEFAULT_PASSWORD_RULES = exports.DEFAULT_THEME = exports.STYLE_ID = void 0;
|
|
4
|
+
exports.STYLE_ID = 'webs-sdk-password-reset';
|
|
5
|
+
exports.DEFAULT_THEME = {
|
|
6
|
+
backgroundColor: '#000000',
|
|
7
|
+
cardBackgroundColor: '#1c1c1c',
|
|
8
|
+
accentColor: '#e53e3e',
|
|
9
|
+
textColor: '#ffffff',
|
|
10
|
+
mutedTextColor: 'rgba(255,255,255,0.45)',
|
|
11
|
+
inputBackgroundColor: '#2a2a2a',
|
|
12
|
+
inputBorderColor: 'transparent',
|
|
13
|
+
errorColor: '#fc8181',
|
|
14
|
+
successColor: '#68d391',
|
|
15
|
+
cardBorderRadius: '16px',
|
|
16
|
+
fontFamily: 'inherit',
|
|
17
|
+
};
|
|
18
|
+
exports.DEFAULT_PASSWORD_RULES = {
|
|
19
|
+
minLength: 8,
|
|
20
|
+
requireUppercase: true,
|
|
21
|
+
requireNumber: true,
|
|
22
|
+
requireSpecialChar: false,
|
|
23
|
+
};
|
|
24
|
+
exports.PASSWORD_RESET_CSS = `
|
|
25
|
+
.pr-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px 16px;box-sizing:border-box}
|
|
26
|
+
.pr-logo-wrap{margin-bottom:24px;text-align:center}
|
|
27
|
+
.pr-logo{display:block;max-width:180px;max-height:52px;width:auto;height:auto;object-fit:contain;margin:0 auto}
|
|
28
|
+
.pr-card{width:100%;max-width:448px;padding:40px 36px;box-sizing:border-box}
|
|
29
|
+
@media(max-width:480px){.pr-card{padding:32px 20px}}
|
|
30
|
+
.pr-title{font-size:22px;font-weight:700;text-align:center;margin:0 0 8px 0;line-height:1.25}
|
|
31
|
+
.pr-subtitle{font-size:14px;text-align:center;margin:0 0 28px 0;line-height:1.55}
|
|
32
|
+
.pr-field{margin-bottom:18px}
|
|
33
|
+
.pr-label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}
|
|
34
|
+
.pr-input-wrap{position:relative;display:flex;align-items:center}
|
|
35
|
+
.pr-input-icon{position:absolute;left:14px;width:17px;height:17px;flex-shrink:0;pointer-events:none;display:flex;align-items:center;justify-content:center}
|
|
36
|
+
.pr-input-icon svg{width:17px;height:17px;display:block}
|
|
37
|
+
.pr-input{width:100%;padding:13px 44px;border-radius:999px;border:1.5px solid;font-size:14px;outline:none;transition:border-color .18s;box-sizing:border-box;font-family:inherit;line-height:1.4}
|
|
38
|
+
.pr-input::placeholder{color:var(--pr-ph,rgba(255,255,255,0.35))}
|
|
39
|
+
.pr-input-eye{position:absolute;right:14px;background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:opacity .18s;line-height:0}
|
|
40
|
+
.pr-input-eye svg{width:17px;height:17px;display:block}
|
|
41
|
+
.pr-btn{width:100%;padding:14px 24px;border-radius:999px;border:none;font-size:15px;font-weight:700;cursor:pointer;transition:opacity .18s,transform .1s;margin-top:12px;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;line-height:1}
|
|
42
|
+
.pr-btn:hover:not(:disabled){opacity:.85}
|
|
43
|
+
.pr-btn:active:not(:disabled){transform:scale(.98)}
|
|
44
|
+
.pr-btn:disabled{cursor:not-allowed;opacity:.5}
|
|
45
|
+
.pr-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:pr-spin .65s linear infinite;flex-shrink:0}
|
|
46
|
+
@keyframes pr-spin{to{transform:rotate(360deg)}}
|
|
47
|
+
.pr-error-msg{font-size:13px;text-align:center;margin:14px 0 0 0;line-height:1.5}
|
|
48
|
+
.pr-success{text-align:center;padding:8px 0}
|
|
49
|
+
.pr-success-icon{font-size:42px;margin-bottom:16px;line-height:1}
|
|
50
|
+
.pr-success-text{font-size:15px;line-height:1.65;margin:0}
|
|
51
|
+
.pr-rules{margin:10px 0 4px 6px;display:flex;flex-direction:column;gap:7px}
|
|
52
|
+
.pr-rule{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.3;transition:color .2s}
|
|
53
|
+
.pr-rule-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;transition:background-color .2s}
|
|
54
|
+
`;
|
|
55
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/PasswordReset/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG,yBAAyB,CAAC;AAErC,QAAA,aAAa,GAAiC;IACzD,eAAe,EAAE,SAAS;IAC1B,mBAAmB,EAAE,SAAS;IAC9B,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,SAAS;IACpB,cAAc,EAAE,wBAAwB;IACxC,oBAAoB,EAAE,SAAS;IAC/B,gBAAgB,EAAE,aAAa;IAC/B,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,SAAS;IACvB,gBAAgB,EAAE,MAAM;IACxB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEW,QAAA,sBAAsB,GAA4B;IAC7D,SAAS,EAAE,CAAC;IACZ,gBAAgB,EAAE,IAAI;IACtB,aAAa,EAAE,IAAI;IACnB,kBAAkB,EAAE,KAAK;CAC1B,CAAC;AASW,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BjC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { PasswordResetRequest } from './PasswordResetRequest';
|
|
2
|
+
export { PasswordResetForm } from './PasswordResetForm';
|
|
3
|
+
export { getPasswordResetTexts } from './translations';
|
|
4
|
+
export type { PasswordResetRequestProps, PasswordResetFormProps, PasswordResetTheme, PasswordResetTexts, PasswordRules, PasswordResetRequestPayload, PasswordResetConfirmPayload, IdentifierType, WebsiteMeta, } from './types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordReset/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EACV,yBAAyB,EACzB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,2BAA2B,EAC3B,2BAA2B,EAC3B,cAAc,EACd,WAAW,GACZ,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPasswordResetTexts = exports.PasswordResetForm = exports.PasswordResetRequest = void 0;
|
|
4
|
+
var PasswordResetRequest_1 = require("./PasswordResetRequest");
|
|
5
|
+
Object.defineProperty(exports, "PasswordResetRequest", { enumerable: true, get: function () { return PasswordResetRequest_1.PasswordResetRequest; } });
|
|
6
|
+
var PasswordResetForm_1 = require("./PasswordResetForm");
|
|
7
|
+
Object.defineProperty(exports, "PasswordResetForm", { enumerable: true, get: function () { return PasswordResetForm_1.PasswordResetForm; } });
|
|
8
|
+
var translations_1 = require("./translations");
|
|
9
|
+
Object.defineProperty(exports, "getPasswordResetTexts", { enumerable: true, get: function () { return translations_1.getPasswordResetTexts; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/PasswordReset/index.ts"],"names":[],"mappings":";;;AAAA,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAC1B,+CAAuD;AAA9C,qHAAA,qBAAqB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordReset/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAgFlD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAExE"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPasswordResetTexts = getPasswordResetTexts;
|
|
4
|
+
const PASSWORD_RESET_TEXTS = {
|
|
5
|
+
en: {
|
|
6
|
+
requestTitle: 'Reset your password',
|
|
7
|
+
requestSubtitle: "Enter your details below and we'll send you instructions to reset your password.",
|
|
8
|
+
identifierLabelEmail: 'Email address',
|
|
9
|
+
identifierPlaceholderEmail: 'Enter your email address',
|
|
10
|
+
identifierLabelPhone: 'Phone number',
|
|
11
|
+
identifierPlaceholderPhone: 'Enter your phone number',
|
|
12
|
+
identifierLabelUsername: 'Username',
|
|
13
|
+
identifierPlaceholderUsername: 'Enter your username',
|
|
14
|
+
submitRequestButton: 'Send reset instructions',
|
|
15
|
+
submitRequestLoadingButton: 'Sending…',
|
|
16
|
+
requestSuccessMessage: "Check your inbox — if an account exists for the details you provided, you'll receive an email with instructions shortly.",
|
|
17
|
+
formTitle: 'Set new password',
|
|
18
|
+
formSubtitle: 'Choose a strong password for your account.',
|
|
19
|
+
newPasswordLabel: 'New password',
|
|
20
|
+
newPasswordPlaceholder: 'Enter your new password',
|
|
21
|
+
confirmPasswordLabel: 'Confirm password',
|
|
22
|
+
confirmPasswordPlaceholder: 'Repeat your new password',
|
|
23
|
+
submitFormButton: 'Update password',
|
|
24
|
+
submitFormLoadingButton: 'Updating…',
|
|
25
|
+
formSuccessMessage: 'Your password has been updated successfully.',
|
|
26
|
+
errorRequired: 'This field is required.',
|
|
27
|
+
errorInvalidEmail: 'Please enter a valid email address.',
|
|
28
|
+
errorPasswordMismatch: 'Passwords do not match.',
|
|
29
|
+
errorPasswordInvalid: 'Your password does not meet the required rules.',
|
|
30
|
+
errorGeneric: 'Something went wrong. Please try again.',
|
|
31
|
+
ruleMinLength: 'At least {n} characters',
|
|
32
|
+
ruleUppercase: 'One uppercase letter',
|
|
33
|
+
ruleNumber: 'One number',
|
|
34
|
+
ruleSpecialChar: 'One special character (!@#$…)',
|
|
35
|
+
},
|
|
36
|
+
es: {
|
|
37
|
+
requestTitle: 'Restablecer contraseña',
|
|
38
|
+
requestSubtitle: 'Introduce tus datos y te enviaremos las instrucciones para restablecer tu contraseña.',
|
|
39
|
+
identifierLabelEmail: 'Correo electrónico',
|
|
40
|
+
identifierPlaceholderEmail: 'Introduce tu correo electrónico',
|
|
41
|
+
identifierLabelPhone: 'Número de teléfono',
|
|
42
|
+
identifierPlaceholderPhone: 'Introduce tu número de teléfono',
|
|
43
|
+
identifierLabelUsername: 'Nombre de usuario',
|
|
44
|
+
identifierPlaceholderUsername: 'Introduce tu nombre de usuario',
|
|
45
|
+
submitRequestButton: 'Enviar instrucciones',
|
|
46
|
+
submitRequestLoadingButton: 'Enviando…',
|
|
47
|
+
requestSuccessMessage: 'Revisa tu bandeja de entrada — si existe una cuenta con los datos proporcionados, recibirás un correo con las instrucciones en breve.',
|
|
48
|
+
formTitle: 'Nueva contraseña',
|
|
49
|
+
formSubtitle: 'Elige una contraseña segura para tu cuenta.',
|
|
50
|
+
newPasswordLabel: 'Nueva contraseña',
|
|
51
|
+
newPasswordPlaceholder: 'Introduce tu nueva contraseña',
|
|
52
|
+
confirmPasswordLabel: 'Confirmar contraseña',
|
|
53
|
+
confirmPasswordPlaceholder: 'Repite tu nueva contraseña',
|
|
54
|
+
submitFormButton: 'Actualizar contraseña',
|
|
55
|
+
submitFormLoadingButton: 'Actualizando…',
|
|
56
|
+
formSuccessMessage: 'Tu contraseña se ha actualizado correctamente.',
|
|
57
|
+
errorRequired: 'Este campo es obligatorio.',
|
|
58
|
+
errorInvalidEmail: 'Introduce un correo electrónico válido.',
|
|
59
|
+
errorPasswordMismatch: 'Las contraseñas no coinciden.',
|
|
60
|
+
errorPasswordInvalid: 'Tu contraseña no cumple los requisitos establecidos.',
|
|
61
|
+
errorGeneric: 'Algo ha salido mal. Inténtalo de nuevo.',
|
|
62
|
+
ruleMinLength: 'Al menos {n} caracteres',
|
|
63
|
+
ruleUppercase: 'Una letra mayúscula',
|
|
64
|
+
ruleNumber: 'Un número',
|
|
65
|
+
ruleSpecialChar: 'Un carácter especial (!@#$…)',
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
function getPasswordResetTexts(locale) {
|
|
69
|
+
var _a;
|
|
70
|
+
return (_a = PASSWORD_RESET_TEXTS[locale]) !== null && _a !== void 0 ? _a : PASSWORD_RESET_TEXTS['en'];
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=translations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.js","sourceRoot":"","sources":["../../../src/components/PasswordReset/translations.ts"],"names":[],"mappings":";;AAgFA,sDAEC;AAhFD,MAAM,oBAAoB,GAAuC;IAC/D,EAAE,EAAE;QACF,YAAY,EAAE,qBAAqB;QACnC,eAAe,EAAE,kFAAkF;QAEnG,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5C,0BAA0B,EAAE,4BAA4B;QACxD,gBAAgB,EAAE,uBAAuB;QACzC,uBAAuB,EAAE,eAAe;QACxC,kBAAkB,EAAE,gDAAgD;QAEpE,aAAa,EAAE,4BAA4B;QAC3C,iBAAiB,EAAE,yCAAyC;QAC5D,qBAAqB,EAAE,+BAA+B;QACtD,oBAAoB,EAAE,sDAAsD;QAC5E,YAAY,EAAE,yCAAyC;QAEvD,aAAa,EAAE,yBAAyB;QACxC,aAAa,EAAE,qBAAqB;QACpC,UAAU,EAAE,WAAW;QACvB,eAAe,EAAE,8BAA8B;KAChD;CACF,CAAC;AAEF,SAAgB,qBAAqB,CAAC,MAAc;;IAClD,OAAO,MAAA,oBAAoB,CAAC,MAAM,CAAC,mCAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export type IdentifierType = 'email' | 'username' | 'phone';
|
|
2
|
+
export type WebsiteMeta = Record<string, unknown>;
|
|
3
|
+
export interface PasswordRules {
|
|
4
|
+
minLength?: number;
|
|
5
|
+
requireUppercase?: boolean;
|
|
6
|
+
requireNumber?: boolean;
|
|
7
|
+
requireSpecialChar?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PasswordResetTheme {
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
cardBackgroundColor?: string;
|
|
12
|
+
accentColor?: string;
|
|
13
|
+
textColor?: string;
|
|
14
|
+
mutedTextColor?: string;
|
|
15
|
+
inputBackgroundColor?: string;
|
|
16
|
+
inputBorderColor?: string;
|
|
17
|
+
errorColor?: string;
|
|
18
|
+
successColor?: string;
|
|
19
|
+
cardBorderRadius?: string;
|
|
20
|
+
fontFamily?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PasswordResetTexts {
|
|
23
|
+
requestTitle: string;
|
|
24
|
+
requestSubtitle?: string;
|
|
25
|
+
identifierLabelEmail: string;
|
|
26
|
+
identifierPlaceholderEmail: string;
|
|
27
|
+
identifierLabelPhone: string;
|
|
28
|
+
identifierPlaceholderPhone: string;
|
|
29
|
+
identifierLabelUsername: string;
|
|
30
|
+
identifierPlaceholderUsername: string;
|
|
31
|
+
submitRequestButton: string;
|
|
32
|
+
submitRequestLoadingButton: string;
|
|
33
|
+
requestSuccessMessage: string;
|
|
34
|
+
formTitle: string;
|
|
35
|
+
formSubtitle?: string;
|
|
36
|
+
newPasswordLabel: string;
|
|
37
|
+
newPasswordPlaceholder: string;
|
|
38
|
+
confirmPasswordLabel: string;
|
|
39
|
+
confirmPasswordPlaceholder: string;
|
|
40
|
+
submitFormButton: string;
|
|
41
|
+
submitFormLoadingButton: string;
|
|
42
|
+
formSuccessMessage: string;
|
|
43
|
+
errorRequired: string;
|
|
44
|
+
errorInvalidEmail: string;
|
|
45
|
+
errorPasswordMismatch: string;
|
|
46
|
+
errorPasswordInvalid: string;
|
|
47
|
+
errorGeneric: string;
|
|
48
|
+
ruleMinLength: string;
|
|
49
|
+
ruleUppercase: string;
|
|
50
|
+
ruleNumber: string;
|
|
51
|
+
ruleSpecialChar: string;
|
|
52
|
+
}
|
|
53
|
+
export interface PasswordResetRequestPayload {
|
|
54
|
+
identifier: string;
|
|
55
|
+
identifierType: IdentifierType;
|
|
56
|
+
websiteId: string;
|
|
57
|
+
websiteMeta?: WebsiteMeta;
|
|
58
|
+
}
|
|
59
|
+
export interface PasswordResetConfirmPayload {
|
|
60
|
+
token: string;
|
|
61
|
+
newPassword: string;
|
|
62
|
+
confirmPassword: string;
|
|
63
|
+
websiteId: string;
|
|
64
|
+
}
|
|
65
|
+
export interface PasswordResetRequestProps {
|
|
66
|
+
websiteId: string;
|
|
67
|
+
identifierType: IdentifierType;
|
|
68
|
+
locale?: string;
|
|
69
|
+
logoUrl?: string;
|
|
70
|
+
logoAlt?: string;
|
|
71
|
+
theme?: Partial<PasswordResetTheme>;
|
|
72
|
+
texts?: Partial<PasswordResetTexts>;
|
|
73
|
+
websiteMeta?: WebsiteMeta;
|
|
74
|
+
onSuccess: (payload: PasswordResetRequestPayload) => void | Promise<void>;
|
|
75
|
+
onError?: (error: Error) => void;
|
|
76
|
+
}
|
|
77
|
+
export interface PasswordResetFormProps {
|
|
78
|
+
token: string;
|
|
79
|
+
websiteId: string;
|
|
80
|
+
locale?: string;
|
|
81
|
+
logoUrl?: string;
|
|
82
|
+
logoAlt?: string;
|
|
83
|
+
theme?: Partial<PasswordResetTheme>;
|
|
84
|
+
texts?: Partial<PasswordResetTexts>;
|
|
85
|
+
passwordRules?: PasswordRules;
|
|
86
|
+
onSuccess: (payload: PasswordResetConfirmPayload) => void | Promise<void>;
|
|
87
|
+
onError?: (error: Error) => void;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordReset/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAElD,MAAM,WAAW,aAAa;IAE5B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IAEjC,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,YAA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|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/PasswordReset/types.ts"],"names":[],"mappings":""}
|
|
@@ -231,13 +231,13 @@ function SpinningWheel({ config: configProp, onResult, onError, canSpin = true,
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
const backgroundAsset = currentTheme.backgroundAsset;
|
|
234
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: { position: 'relative', display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '32px', padding: '32px', minHeight: '100vh', overflow: 'hidden' }, children: [backgroundAsset && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("style", { children: `
|
|
235
|
-
.sw-bg-desktop { display: block; }
|
|
236
|
-
.sw-bg-mobile { display: none; }
|
|
237
|
-
@media (max-width: 767px) {
|
|
238
|
-
.sw-bg-desktop { display: none; }
|
|
239
|
-
.sw-bg-mobile { display: block; }
|
|
240
|
-
}
|
|
234
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: { position: 'relative', display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '32px', padding: '32px', minHeight: '100vh', overflow: 'hidden' }, children: [backgroundAsset && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("style", { children: `
|
|
235
|
+
.sw-bg-desktop { display: block; }
|
|
236
|
+
.sw-bg-mobile { display: none; }
|
|
237
|
+
@media (max-width: 767px) {
|
|
238
|
+
.sw-bg-desktop { display: none; }
|
|
239
|
+
.sw-bg-mobile { display: block; }
|
|
240
|
+
}
|
|
241
241
|
` }), (0, jsx_runtime_1.jsx)("img", { src: backgroundAsset.desktop, alt: "", className: "sw-bg-desktop", style: {
|
|
242
242
|
position: 'absolute',
|
|
243
243
|
top: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"videoValidation.d.ts","sourceRoot":"","sources":["../../src/utils/videoValidation.ts"],"names":[],"mappings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,qBAA0B,GACjC,OAAO,CAAC,oBAAoB,CAAC,CA4D/B;AAQD,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EAAE,EACd,WAAW,SAAI,EACf,MAAM,GAAE,qBAA0B,GACjC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAa5C"}
|
|
@@ -37,6 +37,54 @@ function cleanExpiredCache(ttl = DEFAULT_CONFIG.cacheTTL) {
|
|
|
37
37
|
}
|
|
38
38
|
return removed;
|
|
39
39
|
}
|
|
40
|
+
function isHLSUrl(url) {
|
|
41
|
+
try {
|
|
42
|
+
const { pathname } = new URL(url);
|
|
43
|
+
return /\.m3u8$/i.test(pathname);
|
|
44
|
+
}
|
|
45
|
+
catch (_a) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async function validateHLSManifest(url, config) {
|
|
50
|
+
try {
|
|
51
|
+
const controller = new AbortController();
|
|
52
|
+
const timeoutId = setTimeout(() => controller.abort(), config.headRequestTimeout);
|
|
53
|
+
try {
|
|
54
|
+
const response = await fetch(url, {
|
|
55
|
+
method: 'GET',
|
|
56
|
+
signal: controller.signal,
|
|
57
|
+
cache: 'no-cache',
|
|
58
|
+
});
|
|
59
|
+
clearTimeout(timeoutId);
|
|
60
|
+
if (!response.ok) {
|
|
61
|
+
if (config.verbose)
|
|
62
|
+
console.warn(`[Video Validation] HLS manifest fetch failed (${response.status}): ${url.substring(0, 50)}`);
|
|
63
|
+
return 'invalid';
|
|
64
|
+
}
|
|
65
|
+
const text = await response.text();
|
|
66
|
+
if (text.trimStart().startsWith('#EXTM3U')) {
|
|
67
|
+
if (config.verbose)
|
|
68
|
+
console.log(`[Video Validation] ✅ Valid HLS manifest confirmed: ${url.substring(0, 50)}`);
|
|
69
|
+
return 'valid';
|
|
70
|
+
}
|
|
71
|
+
if (config.verbose)
|
|
72
|
+
console.log(`[Video Validation] HLS URL accessible (non-standard manifest body): ${url.substring(0, 50)}`);
|
|
73
|
+
return 'valid';
|
|
74
|
+
}
|
|
75
|
+
catch (_a) {
|
|
76
|
+
clearTimeout(timeoutId);
|
|
77
|
+
if (config.verbose)
|
|
78
|
+
console.log(`[Video Validation] HLS manifest unreachable via fetch (CORS/network) — passing to player: ${url.substring(0, 50)}`);
|
|
79
|
+
return 'valid';
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
catch (error) {
|
|
83
|
+
if (config.verbose)
|
|
84
|
+
console.warn('[Video Validation] HLS manifest validation exception:', error);
|
|
85
|
+
return 'valid';
|
|
86
|
+
}
|
|
87
|
+
}
|
|
40
88
|
async function validateVideoUrl(url, config = {}) {
|
|
41
89
|
const cfg = Object.assign(Object.assign({}, DEFAULT_CONFIG), config);
|
|
42
90
|
if (!url || url.trim().length === 0) {
|
|
@@ -68,10 +116,17 @@ async function validateVideoUrl(url, config = {}) {
|
|
|
68
116
|
try {
|
|
69
117
|
if (cfg.verbose)
|
|
70
118
|
console.log(`[Video Validation] Validating URL: ${trimmedUrl.substring(0, 50)}...`);
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
73
|
-
exports.validationCache.set(trimmedUrl, { state, timestamp: now });
|
|
74
|
-
return
|
|
119
|
+
const headState = await validateWithHeadRequest(trimmedUrl, cfg);
|
|
120
|
+
if (headState === 'valid') {
|
|
121
|
+
exports.validationCache.set(trimmedUrl, { state: 'valid', timestamp: now });
|
|
122
|
+
return 'valid';
|
|
123
|
+
}
|
|
124
|
+
if (isHLSUrl(trimmedUrl)) {
|
|
125
|
+
if (cfg.verbose)
|
|
126
|
+
console.log('[Video Validation] HLS URL detected — using manifest validation instead of video element');
|
|
127
|
+
const hlsState = await validateHLSManifest(trimmedUrl, cfg);
|
|
128
|
+
exports.validationCache.set(trimmedUrl, { state: hlsState, timestamp: now });
|
|
129
|
+
return hlsState;
|
|
75
130
|
}
|
|
76
131
|
if (cfg.verbose)
|
|
77
132
|
console.log('[Video Validation] HEAD request failed/inconclusive, trying video element...');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"videoValidation.js","sourceRoot":"","sources":["../../src/utils/videoValidation.ts"],"names":[],"mappings":";;;AAwCA,sCASC;AAGD,oDAEC;AAGD,8CAUC;
|
|
1
|
+
{"version":3,"file":"videoValidation.js","sourceRoot":"","sources":["../../src/utils/videoValidation.ts"],"names":[],"mappings":";;;AAwCA,sCASC;AAGD,oDAEC;AAGD,8CAUC;AAiFD,4CA+DC;AAQD,gDAiBC;AA/MD,MAAM,cAAc,GAAoC;IACtD,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;IACvB,kBAAkB,EAAE,IAAI;IACxB,mBAAmB,EAAE,KAAK;IAC1B,OAAO,EAAE,KAAK;CACf,CAAC;AAGW,QAAA,eAAe,GAAG,IAAI,GAAG,EAAsB,CAAC;AAG7D,SAAgB,aAAa;IAC3B,OAAO;QACL,IAAI,EAAE,uBAAe,CAAC,IAAI;QAC1B,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,uBAAe,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;YACpE,GAAG,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK;YACjC,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,SAAS;SAClC,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC;AAGD,SAAgB,oBAAoB;IAClC,uBAAe,CAAC,KAAK,EAAE,CAAC;AAC1B,CAAC;AAGD,SAAgB,iBAAiB,CAAC,MAAc,cAAc,CAAC,QAAQ;IACrE,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACvB,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,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AS,CAAC,CAAC;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAEnB,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC;QAC3B,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QAChB,KAAK,CAAC,IAAI,EAAE,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "webs-sdk",
|
|
3
|
-
"version": "0.18.
|
|
4
|
-
"private": false,
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"require": "./dist/index.js",
|
|
12
|
-
"import": "./dist/index.js",
|
|
13
|
-
"default": "./dist/index.js"
|
|
14
|
-
},
|
|
15
|
-
"./ui": {
|
|
16
|
-
"types": "./dist/components/ui/index.d.ts",
|
|
17
|
-
"require": "./dist/components/ui/index.js",
|
|
18
|
-
"import": "./dist/components/ui/index.js",
|
|
19
|
-
"default": "./dist/components/ui/index.js"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist/**/*",
|
|
24
|
-
"public/**/*"
|
|
25
|
-
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"dev": "next dev --turbopack",
|
|
28
|
-
"build": "tsc --project tsconfig.build.json",
|
|
29
|
-
"build:watch": "tsc --project tsconfig.build.json --watch",
|
|
30
|
-
"prepublishOnly": "npm run build",
|
|
31
|
-
"start": "next start",
|
|
32
|
-
"lint": "next lint"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@radix-ui/react-accordion": "^1.2.12",
|
|
36
|
-
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
37
|
-
"@radix-ui/react-aspect-ratio": "^1.1.7",
|
|
38
|
-
"@radix-ui/react-avatar": "^1.1.10",
|
|
39
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
40
|
-
"@radix-ui/react-collapsible": "^1.1.12",
|
|
41
|
-
"@radix-ui/react-context-menu": "^2.2.16",
|
|
42
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
43
|
-
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
44
|
-
"@radix-ui/react-hover-card": "^1.1.15",
|
|
45
|
-
"@radix-ui/react-label": "^2.1.7",
|
|
46
|
-
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
47
|
-
"@radix-ui/react-select": "^2.2.6",
|
|
48
|
-
"@radix-ui/react-separator": "^1.1.7",
|
|
49
|
-
"@radix-ui/react-slot": "^1.2.4",
|
|
50
|
-
"@radix-ui/react-tabs": "^1.1.13",
|
|
51
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
|
-
"class-variance-authority": "^0.7.1",
|
|
53
|
-
"clsx": "^2.1.1",
|
|
54
|
-
"embla-carousel-react": "^8.3.2",
|
|
55
|
-
"mixpanel-browser": "^2.72.0",
|
|
56
|
-
"motion": "^12.38.0",
|
|
57
|
-
"sonner": "^2.0.7",
|
|
58
|
-
"tailwind-merge": "^3.6.0"
|
|
59
|
-
},
|
|
60
|
-
"peerDependencies": {
|
|
61
|
-
"lucide-react": "^1.14.0",
|
|
62
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
63
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
64
|
-
},
|
|
65
|
-
"devDependencies": {
|
|
66
|
-
"@eslint/eslintrc": "^3",
|
|
67
|
-
"@types/node": "^24.3.0",
|
|
68
|
-
"@types/react": "^19.2.14",
|
|
69
|
-
"@types/react-dom": "^19.2.3",
|
|
70
|
-
"eslint": "^9",
|
|
71
|
-
"eslint-config-next": "^15.5.2",
|
|
72
|
-
"lucide-react": "^1.14.0",
|
|
73
|
-
"next": "^16.0.8",
|
|
74
|
-
"react": "^19.0.0",
|
|
75
|
-
"react-dom": "^19.0.0",
|
|
76
|
-
"typescript": "^5.9.3"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "webs-sdk",
|
|
3
|
+
"version": "0.18.41",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./ui": {
|
|
16
|
+
"types": "./dist/components/ui/index.d.ts",
|
|
17
|
+
"require": "./dist/components/ui/index.js",
|
|
18
|
+
"import": "./dist/components/ui/index.js",
|
|
19
|
+
"default": "./dist/components/ui/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist/**/*",
|
|
24
|
+
"public/**/*"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "next dev --turbopack",
|
|
28
|
+
"build": "tsc --project tsconfig.build.json",
|
|
29
|
+
"build:watch": "tsc --project tsconfig.build.json --watch",
|
|
30
|
+
"prepublishOnly": "npm run build",
|
|
31
|
+
"start": "next start",
|
|
32
|
+
"lint": "next lint"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@radix-ui/react-accordion": "^1.2.12",
|
|
36
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
37
|
+
"@radix-ui/react-aspect-ratio": "^1.1.7",
|
|
38
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
39
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
40
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
41
|
+
"@radix-ui/react-context-menu": "^2.2.16",
|
|
42
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
43
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
44
|
+
"@radix-ui/react-hover-card": "^1.1.15",
|
|
45
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
46
|
+
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
47
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
48
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
49
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
50
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
51
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
|
+
"class-variance-authority": "^0.7.1",
|
|
53
|
+
"clsx": "^2.1.1",
|
|
54
|
+
"embla-carousel-react": "^8.3.2",
|
|
55
|
+
"mixpanel-browser": "^2.72.0",
|
|
56
|
+
"motion": "^12.38.0",
|
|
57
|
+
"sonner": "^2.0.7",
|
|
58
|
+
"tailwind-merge": "^3.6.0"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"lucide-react": "^1.14.0",
|
|
62
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
63
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@eslint/eslintrc": "^3",
|
|
67
|
+
"@types/node": "^24.3.0",
|
|
68
|
+
"@types/react": "^19.2.14",
|
|
69
|
+
"@types/react-dom": "^19.2.3",
|
|
70
|
+
"eslint": "^9",
|
|
71
|
+
"eslint-config-next": "^15.5.2",
|
|
72
|
+
"lucide-react": "^1.14.0",
|
|
73
|
+
"next": "^16.0.8",
|
|
74
|
+
"react": "^19.0.0",
|
|
75
|
+
"react-dom": "^19.0.0",
|
|
76
|
+
"typescript": "^5.9.3"
|
|
77
|
+
}
|
|
78
|
+
}
|