@unidy.io/sdk 1.1.2 → 1.1.3
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/auth-B95hXtvh.js +571 -0
- package/dist/sdk/auth-B95hXtvh.js.map +1 -0
- package/dist/sdk/auth-BiFlsRm-.js +6821 -0
- package/dist/sdk/auth-BiFlsRm-.js.map +1 -0
- package/dist/sdk/auth-store-BzXDlgNb.js +179 -0
- package/dist/sdk/auth-store-BzXDlgNb.js.map +1 -0
- package/dist/sdk/auth-store-Mjo3PyJP.js +179 -0
- package/dist/sdk/auth-store-Mjo3PyJP.js.map +1 -0
- package/dist/sdk/auth-wavto6GW.js +6822 -0
- package/dist/sdk/auth-wavto6GW.js.map +1 -0
- package/dist/sdk/auth-y_LsX4Zn.js +6822 -0
- package/dist/sdk/auth-y_LsX4Zn.js.map +1 -0
- package/dist/sdk/flash-store-Cgu7WoSN.js +48 -0
- package/dist/sdk/flash-store-Cgu7WoSN.js.map +1 -0
- package/dist/sdk/flash-store-DXuduRA_.js +48 -0
- package/dist/sdk/flash-store-DXuduRA_.js.map +1 -0
- package/dist/sdk/i18n-CRBOSzNq.js +3242 -0
- package/dist/sdk/i18n-CRBOSzNq.js.map +1 -0
- package/dist/sdk/i18n-CacW7WuC.js +3242 -0
- package/dist/sdk/i18n-CacW7WuC.js.map +1 -0
- package/dist/sdk/index-BDX4bHnk.js +15349 -0
- package/dist/sdk/index-BDX4bHnk.js.map +1 -0
- package/dist/sdk/index-C5jZjlU8.js +49640 -0
- package/dist/sdk/index-C5jZjlU8.js.map +1 -0
- package/dist/sdk/index-CKre5JEG.js +15349 -0
- package/dist/sdk/index-CKre5JEG.js.map +1 -0
- package/dist/sdk/index-CYip1Wgu.js +43 -0
- package/dist/sdk/index-CYip1Wgu.js.map +1 -0
- package/dist/sdk/index-CoYUNBeF.js +43 -0
- package/dist/sdk/index-CoYUNBeF.js.map +1 -0
- package/dist/sdk/index-CvfZ-LfN.js +43 -0
- package/dist/sdk/index-CvfZ-LfN.js.map +1 -0
- package/dist/sdk/index-DJUE7Ceb.js +6254 -0
- package/dist/sdk/index-DJUE7Ceb.js.map +1 -0
- package/dist/sdk/index-DOyWRKSD.js +43 -0
- package/dist/sdk/index-DOyWRKSD.js.map +1 -0
- package/dist/sdk/index-O6h7SI7-.js +212 -0
- package/dist/sdk/index-O6h7SI7-.js.map +1 -0
- package/dist/sdk/index-XIuHpSzj.js +212 -0
- package/dist/sdk/index-XIuHpSzj.js.map +1 -0
- package/dist/sdk/index-mfIOXLHL.js +49640 -0
- package/dist/sdk/index-mfIOXLHL.js.map +1 -0
- package/dist/sdk/index.esm.js +10 -10
- package/dist/sdk/newsletter-helpers-C3t2fsCe.js +276 -0
- package/dist/sdk/newsletter-helpers-C3t2fsCe.js.map +1 -0
- package/dist/sdk/newsletter-helpers-CLSTOCvO.js +276 -0
- package/dist/sdk/newsletter-helpers-CLSTOCvO.js.map +1 -0
- package/dist/sdk/newsletter-helpers-CnufIbIZ.js +276 -0
- package/dist/sdk/newsletter-helpers-CnufIbIZ.js.map +1 -0
- package/dist/sdk/newsletter-helpers-MgFueAV9.js +276 -0
- package/dist/sdk/newsletter-helpers-MgFueAV9.js.map +1 -0
- package/dist/sdk/newsletter-store-CPY2gFnU.js +39 -0
- package/dist/sdk/newsletter-store-CPY2gFnU.js.map +1 -0
- package/dist/sdk/newsletter-store-CqD-GcDC.js +39 -0
- package/dist/sdk/newsletter-store-CqD-GcDC.js.map +1 -0
- package/dist/sdk/profile-helpers-Bdz6gmG8.js +36 -0
- package/dist/sdk/profile-helpers-Bdz6gmG8.js.map +1 -0
- package/dist/sdk/profile-helpers-mfEp18Tq.js +36 -0
- package/dist/sdk/profile-helpers-mfEp18Tq.js.map +1 -0
- package/dist/sdk/profile-store-BZKApsQm.js +18 -0
- package/dist/sdk/profile-store-BZKApsQm.js.map +1 -0
- package/dist/sdk/profile-store-Dr1DP9Te.js +18 -0
- package/dist/sdk/profile-store-Dr1DP9Te.js.map +1 -0
- package/dist/sdk/sdk.esm.js +2 -2
- package/dist/sdk/u-conditional-render.entry.js +11 -11
- package/dist/sdk/u-config.entry.js +11 -11
- package/dist/sdk/u-email-field.entry.js +6 -6
- package/dist/sdk/u-error-message.entry.js +6 -6
- package/dist/sdk/u-field.entry.js +5 -5
- package/dist/sdk/u-flash-message.entry.js +3 -3
- package/dist/sdk/u-full-profile.entry.js +5 -5
- package/dist/sdk/u-logout-button.entry.js +10 -10
- package/dist/sdk/u-magic-code-field.entry.js +9 -9
- package/dist/sdk/u-missing-field.entry.js +4 -4
- package/dist/sdk/u-missing-fields-submit-button.entry.js +8 -8
- package/dist/sdk/u-newsletter-checkbox.entry.js +12 -12
- package/dist/sdk/u-newsletter-logout-button.entry.js +11 -11
- package/dist/sdk/u-newsletter-preference-checkbox.entry.js +12 -12
- package/dist/sdk/u-newsletter-resend-doi-button.entry.js +11 -11
- package/dist/sdk/u-newsletter-root.entry.js +12 -12
- package/dist/sdk/u-newsletter-toggle-subscription-button.entry.js +12 -12
- package/dist/sdk/u-pagination-button.entry.js +1 -1
- package/dist/sdk/u-pagination-page.entry.js +1 -1
- package/dist/sdk/u-passkey.entry.js +9 -9
- package/dist/sdk/u-password-field.entry.js +5 -5
- package/dist/sdk/u-profile.entry.esm.js.map +1 -1
- package/dist/sdk/u-profile.entry.js +14 -13
- package/dist/sdk/u-raw-field.entry.js +3 -3
- package/dist/sdk/u-registration-button.entry.js +5 -5
- package/dist/sdk/u-reset-password-button.entry.js +9 -9
- package/dist/sdk/u-send-magic-code-button.entry.js +9 -9
- package/dist/sdk/u-signed-in.entry.js +4 -4
- package/dist/sdk/u-signin-root.entry.js +4 -4
- package/dist/sdk/u-signin-step.entry.js +10 -10
- package/dist/sdk/u-signin-strategy.entry.js +4 -4
- package/dist/sdk/u-social-login-button.entry.js +6 -6
- package/dist/sdk/u-spinner.entry.js +1 -1
- package/dist/sdk/u-submit-button.entry.js +7 -7
- package/dist/sdk/u-ticketable-list.entry.js +6 -6
- package/dist/sdk/unidy-store-CtifvCkV.js +38 -0
- package/dist/sdk/unidy-store-CtifvCkV.js.map +1 -0
- package/dist/sdk/unidy-store-DPcuwuXf.js +38 -0
- package/dist/sdk/unidy-store-DPcuwuXf.js.map +1 -0
- package/dist/types/auth/api/auth.d.ts +27 -27
- package/dist/types/auth/auth-helpers.d.ts +59 -59
- package/dist/types/profile/api/profile.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as Host } from './index-C5jZjlU8.js';
|
|
2
2
|
|
|
3
3
|
const spinnerCss = "/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme{:host,:root{--u-font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--u-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--u-animate-spin:spin 1s linear infinite;--u-default-font-family:var(--u-font-sans);--u-default-mono-font-family:var(--u-font-mono);--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{font-family:var(--u-default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--u-default-font-feature-settings,normal);font-variation-settings:var(--u-default-font-variation-settings,normal);-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--u-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--u-default-mono-font-feature-settings,normal);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--u-default-mono-font-variation-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:currentColor;color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.u\\:inline-flex{display:inline-flex}.u\\:h-\\[1em\\]{height:1em}.u\\:w-\\[1em\\]{width:1em}.u\\:animate-spin{animation:var(--u-animate-spin)}.u\\:items-center{align-items:center}.u\\:justify-center{justify-content:center}.u\\:rounded-\\[50\\%\\]{border-radius:50%}}@keyframes spin{to{transform:rotate(1turn)}} /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-ring-offset-width:0px;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer base{}@layer components;@layer utilities{.container{width:100%}.border{border-style:var(--tw-border-style);border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}:host{font-size:var(--spinner-font-size,20px)}.spinner-inner{border-top:.1em solid var(--spinner-color-secondary,#ccc);border:.1em solid var(--spinner-color-secondary,#ccc);border-top-color:var(--spinner-color-primary,#333)}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}";
|
|
4
4
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, f as getElement, h } from './index-
|
|
2
|
-
import { t } from './i18n-
|
|
3
|
-
import { s as state } from './auth-store-
|
|
1
|
+
import { r as registerInstance, f as getElement, h } from './index-C5jZjlU8.js';
|
|
2
|
+
import { t } from './i18n-CacW7WuC.js';
|
|
3
|
+
import { s as state } from './auth-store-BzXDlgNb.js';
|
|
4
4
|
import { g as getParentSigninStep } from './helpers-DUHc_Cx7.js';
|
|
5
|
-
import { n as newsletterStore } from './newsletter-store-
|
|
5
|
+
import { n as newsletterStore } from './newsletter-store-CqD-GcDC.js';
|
|
6
6
|
import { g as getParentNewsletterRoot } from './helpers-BqFCd65h.js';
|
|
7
|
-
import { s as state$1 } from './profile-store-
|
|
7
|
+
import { s as state$1 } from './profile-store-BZKApsQm.js';
|
|
8
8
|
import { h as hasSlotContent } from './component-utils-D1lzXl_Z.js';
|
|
9
|
-
import './unidy-store-
|
|
10
|
-
import './index-
|
|
9
|
+
import './unidy-store-CtifvCkV.js';
|
|
10
|
+
import './index-O6h7SI7-.js';
|
|
11
11
|
|
|
12
12
|
const authContext = {
|
|
13
13
|
handleClick: async (event, el, _forProp) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { U as UnidyComponent, r as registerInstance, f as getElement, h, a as Host } from './index-
|
|
2
|
-
import { h as getDefaultExportFromCjs, f as createPaginationStore, g as getUnidyClient } from './index-
|
|
3
|
-
import { w as waitForConfig, u as unidyState } from './unidy-store-
|
|
4
|
-
import { t } from './i18n-
|
|
5
|
-
import './profile-store-
|
|
6
|
-
import './index-
|
|
1
|
+
import { U as UnidyComponent, r as registerInstance, f as getElement, h, a as Host } from './index-C5jZjlU8.js';
|
|
2
|
+
import { h as getDefaultExportFromCjs, f as createPaginationStore, g as getUnidyClient } from './index-BDX4bHnk.js';
|
|
3
|
+
import { w as waitForConfig, u as unidyState } from './unidy-store-CtifvCkV.js';
|
|
4
|
+
import { t } from './i18n-CacW7WuC.js';
|
|
5
|
+
import './profile-store-BZKApsQm.js';
|
|
6
|
+
import './index-O6h7SI7-.js';
|
|
7
7
|
|
|
8
8
|
var format$1 = {};
|
|
9
9
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { c as createStore } from './index-O6h7SI7-.js';
|
|
2
|
+
|
|
3
|
+
const initialState = {
|
|
4
|
+
mode: "production",
|
|
5
|
+
apiKey: "",
|
|
6
|
+
baseUrl: "",
|
|
7
|
+
locale: "en",
|
|
8
|
+
isConfigured: false,
|
|
9
|
+
backendConnected: true,
|
|
10
|
+
};
|
|
11
|
+
const store = createStore(initialState);
|
|
12
|
+
const unidyState = store.state;
|
|
13
|
+
const reset = store.reset;
|
|
14
|
+
const onChange = store.onChange;
|
|
15
|
+
const CONFIG_TIMEOUT_MS = 1000;
|
|
16
|
+
function waitForConfig() {
|
|
17
|
+
if (unidyState.isConfigured) {
|
|
18
|
+
return Promise.resolve();
|
|
19
|
+
}
|
|
20
|
+
return new Promise((resolve, reject) => {
|
|
21
|
+
const timeout = setTimeout(() => {
|
|
22
|
+
unsubscribe();
|
|
23
|
+
reject(new Error(`Unidy SDK: <u-config> not found or not loaded within ${CONFIG_TIMEOUT_MS}ms`));
|
|
24
|
+
}, CONFIG_TIMEOUT_MS);
|
|
25
|
+
const unsubscribe = onChange("isConfigured", (value) => {
|
|
26
|
+
if (value) {
|
|
27
|
+
clearTimeout(timeout);
|
|
28
|
+
unsubscribe();
|
|
29
|
+
resolve();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { onChange as o, unidyState as u, waitForConfig as w };
|
|
36
|
+
//# sourceMappingURL=unidy-store-CtifvCkV.js.map
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=unidy-store-CtifvCkV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unidy-store-CtifvCkV.js","sources":["src/shared/store/unidy-store.ts"],"sourcesContent":["import { createStore } from \"@stencil/store\";\n\nexport interface UnidyState {\n mode: \"production\" | \"development\";\n apiKey: string;\n baseUrl: string;\n locale: string;\n\n isConfigured: boolean;\n backendConnected: boolean;\n}\n\nconst initialState: UnidyState = {\n mode: \"production\",\n apiKey: \"\",\n baseUrl: \"\",\n locale: \"en\",\n\n isConfigured: false,\n backendConnected: true,\n};\n\nconst store = createStore<UnidyState>(initialState);\n\nexport const unidyState = store.state;\nexport const reset = store.reset;\nexport const onChange: <K extends keyof UnidyState>(prop: K, cb: (value: UnidyState[K]) => void) => () => void = store.onChange;\n\nconst CONFIG_TIMEOUT_MS = 1000;\n\nexport function waitForConfig(): Promise<void> {\n if (unidyState.isConfigured) {\n return Promise.resolve();\n }\n\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => {\n unsubscribe();\n reject(new Error(`Unidy SDK: <u-config> not found or not loaded within ${CONFIG_TIMEOUT_MS}ms`));\n }, CONFIG_TIMEOUT_MS);\n\n const unsubscribe = onChange(\"isConfigured\", (value) => {\n if (value) {\n clearTimeout(timeout);\n unsubscribe();\n resolve();\n }\n });\n });\n}\n"],"names":[],"mappings":";;AAYA,MAAM,YAAY,GAAe;AAC/B,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,MAAM,EAAE,IAAI;AAEZ,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,gBAAgB,EAAE,IAAI;CACvB;AAED,MAAM,KAAK,GAAG,WAAW,CAAa,YAAY,CAAC;AAEtC,MAAA,UAAU,GAAG,KAAK,CAAC;AACzB,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK;AACnB,MAAA,QAAQ,GAA4F,KAAK,CAAC;AAEvH,MAAM,iBAAiB,GAAG,IAAI;SAEd,aAAa,GAAA;AAC3B,IAAA,IAAI,UAAU,CAAC,YAAY,EAAE;AAC3B,QAAA,OAAO,OAAO,CAAC,OAAO,EAAE;;IAG1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAI;AACrC,QAAA,MAAM,OAAO,GAAG,UAAU,CAAC,MAAK;AAC9B,YAAA,WAAW,EAAE;YACb,MAAM,CAAC,IAAI,KAAK,CAAC,wDAAwD,iBAAiB,CAAA,EAAA,CAAI,CAAC,CAAC;SACjG,EAAE,iBAAiB,CAAC;QAErB,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC,KAAK,KAAI;YACrD,IAAI,KAAK,EAAE;gBACT,YAAY,CAAC,OAAO,CAAC;AACrB,gBAAA,WAAW,EAAE;AACb,gBAAA,OAAO,EAAE;;AAEb,SAAC,CAAC;AACJ,KAAC,CAAC;AACJ;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { c as createStore } from './index-XIuHpSzj.js';
|
|
2
|
+
|
|
3
|
+
const initialState = {
|
|
4
|
+
mode: "production",
|
|
5
|
+
apiKey: "",
|
|
6
|
+
baseUrl: "",
|
|
7
|
+
locale: "en",
|
|
8
|
+
isConfigured: false,
|
|
9
|
+
backendConnected: true,
|
|
10
|
+
};
|
|
11
|
+
const store = createStore(initialState);
|
|
12
|
+
const unidyState = store.state;
|
|
13
|
+
const reset = store.reset;
|
|
14
|
+
const onChange = store.onChange;
|
|
15
|
+
const CONFIG_TIMEOUT_MS = 1000;
|
|
16
|
+
function waitForConfig() {
|
|
17
|
+
if (unidyState.isConfigured) {
|
|
18
|
+
return Promise.resolve();
|
|
19
|
+
}
|
|
20
|
+
return new Promise((resolve, reject) => {
|
|
21
|
+
const timeout = setTimeout(() => {
|
|
22
|
+
unsubscribe();
|
|
23
|
+
reject(new Error(`Unidy SDK: <u-config> not found or not loaded within ${CONFIG_TIMEOUT_MS}ms`));
|
|
24
|
+
}, CONFIG_TIMEOUT_MS);
|
|
25
|
+
const unsubscribe = onChange("isConfigured", (value) => {
|
|
26
|
+
if (value) {
|
|
27
|
+
clearTimeout(timeout);
|
|
28
|
+
unsubscribe();
|
|
29
|
+
resolve();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { onChange as o, unidyState as u, waitForConfig as w };
|
|
36
|
+
//# sourceMappingURL=unidy-store-DPcuwuXf.js.map
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=unidy-store-DPcuwuXf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unidy-store-DPcuwuXf.js","sources":["src/shared/store/unidy-store.ts"],"sourcesContent":["import { createStore } from \"@stencil/store\";\n\nexport interface UnidyState {\n mode: \"production\" | \"development\";\n apiKey: string;\n baseUrl: string;\n locale: string;\n\n isConfigured: boolean;\n backendConnected: boolean;\n}\n\nconst initialState: UnidyState = {\n mode: \"production\",\n apiKey: \"\",\n baseUrl: \"\",\n locale: \"en\",\n\n isConfigured: false,\n backendConnected: true,\n};\n\nconst store = createStore<UnidyState>(initialState);\n\nexport const unidyState = store.state;\nexport const reset = store.reset;\nexport const onChange: <K extends keyof UnidyState>(prop: K, cb: (value: UnidyState[K]) => void) => () => void = store.onChange;\n\nconst CONFIG_TIMEOUT_MS = 1000;\n\nexport function waitForConfig(): Promise<void> {\n if (unidyState.isConfigured) {\n return Promise.resolve();\n }\n\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => {\n unsubscribe();\n reject(new Error(`Unidy SDK: <u-config> not found or not loaded within ${CONFIG_TIMEOUT_MS}ms`));\n }, CONFIG_TIMEOUT_MS);\n\n const unsubscribe = onChange(\"isConfigured\", (value) => {\n if (value) {\n clearTimeout(timeout);\n unsubscribe();\n resolve();\n }\n });\n });\n}\n"],"names":[],"mappings":";;AAYA,MAAM,YAAY,GAAe;AAC/B,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,OAAO,EAAE,EAAE;AACX,IAAA,MAAM,EAAE,IAAI;AAEZ,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,gBAAgB,EAAE,IAAI;CACvB;AAED,MAAM,KAAK,GAAG,WAAW,CAAa,YAAY,CAAC;AAEtC,MAAA,UAAU,GAAG,KAAK,CAAC;AACzB,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK;AACnB,MAAA,QAAQ,GAA4F,KAAK,CAAC;AAEvH,MAAM,iBAAiB,GAAG,IAAI;SAEd,aAAa,GAAA;AAC3B,IAAA,IAAI,UAAU,CAAC,YAAY,EAAE;AAC3B,QAAA,OAAO,OAAO,CAAC,OAAO,EAAE;;IAG1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAI;AACrC,QAAA,MAAM,OAAO,GAAG,UAAU,CAAC,MAAK;AAC9B,YAAA,WAAW,EAAE;YACb,MAAM,CAAC,IAAI,KAAK,CAAC,wDAAwD,iBAAiB,CAAA,EAAA,CAAI,CAAC,CAAC;SACjG,EAAE,iBAAiB,CAAC;QAErB,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC,KAAK,KAAI;YACrD,IAAI,KAAK,EAAE;gBACT,YAAY,CAAC,OAAO,CAAC;AACrB,gBAAA,WAAW,EAAE;AACb,gBAAA,OAAO,EAAE;;AAEb,SAAC,CAAC;AACJ,KAAC,CAAC;AACJ;;;;"}
|
|
@@ -52,19 +52,23 @@ declare const RequiredFieldsResponseSchema: z.ZodObject<{
|
|
|
52
52
|
textarea: "textarea";
|
|
53
53
|
}>;
|
|
54
54
|
}, z.core.$strict>>;
|
|
55
|
-
|
|
55
|
+
salutation: z.ZodOptional<z.ZodObject<{
|
|
56
56
|
required: z.ZodBoolean;
|
|
57
57
|
label: z.ZodString;
|
|
58
58
|
attr_name: z.ZodString;
|
|
59
59
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
60
60
|
locked_text: z.ZodOptional<z.ZodString>;
|
|
61
|
-
value: z.ZodUnion<readonly [z.ZodString, z.
|
|
61
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"_NOT_SET_">, z.ZodBoolean]>>;
|
|
62
62
|
type: z.ZodEnum<{
|
|
63
|
-
|
|
64
|
-
textarea: "textarea";
|
|
63
|
+
radio: "radio";
|
|
65
64
|
}>;
|
|
65
|
+
radio_options: z.ZodArray<z.ZodObject<{
|
|
66
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"_NOT_SET_">, z.ZodBoolean]>>;
|
|
67
|
+
label: z.ZodString;
|
|
68
|
+
checked: z.ZodBoolean;
|
|
69
|
+
}, z.core.$strict>>;
|
|
66
70
|
}, z.core.$strict>>;
|
|
67
|
-
|
|
71
|
+
first_name: z.ZodOptional<z.ZodObject<{
|
|
68
72
|
required: z.ZodBoolean;
|
|
69
73
|
label: z.ZodString;
|
|
70
74
|
attr_name: z.ZodString;
|
|
@@ -76,21 +80,17 @@ declare const RequiredFieldsResponseSchema: z.ZodObject<{
|
|
|
76
80
|
textarea: "textarea";
|
|
77
81
|
}>;
|
|
78
82
|
}, z.core.$strict>>;
|
|
79
|
-
|
|
83
|
+
last_name: z.ZodOptional<z.ZodObject<{
|
|
80
84
|
required: z.ZodBoolean;
|
|
81
85
|
label: z.ZodString;
|
|
82
86
|
attr_name: z.ZodString;
|
|
83
87
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
84
88
|
locked_text: z.ZodOptional<z.ZodString>;
|
|
85
|
-
value: z.
|
|
89
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
86
90
|
type: z.ZodEnum<{
|
|
87
|
-
|
|
91
|
+
text: "text";
|
|
92
|
+
textarea: "textarea";
|
|
88
93
|
}>;
|
|
89
|
-
radio_options: z.ZodArray<z.ZodObject<{
|
|
90
|
-
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"_NOT_SET_">, z.ZodBoolean]>>;
|
|
91
|
-
label: z.ZodString;
|
|
92
|
-
checked: z.ZodBoolean;
|
|
93
|
-
}, z.core.$strict>>;
|
|
94
94
|
}, z.core.$strict>>;
|
|
95
95
|
phone_number: z.ZodOptional<z.ZodObject<{
|
|
96
96
|
required: z.ZodBoolean;
|
|
@@ -103,18 +103,6 @@ declare const RequiredFieldsResponseSchema: z.ZodObject<{
|
|
|
103
103
|
tel: "tel";
|
|
104
104
|
}>;
|
|
105
105
|
}, z.core.$strict>>;
|
|
106
|
-
date_of_birth: z.ZodOptional<z.ZodObject<{
|
|
107
|
-
required: z.ZodBoolean;
|
|
108
|
-
label: z.ZodString;
|
|
109
|
-
attr_name: z.ZodString;
|
|
110
|
-
locked: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
-
locked_text: z.ZodOptional<z.ZodString>;
|
|
112
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
113
|
-
type: z.ZodEnum<{
|
|
114
|
-
date: "date";
|
|
115
|
-
"datetime-local": "datetime-local";
|
|
116
|
-
}>;
|
|
117
|
-
}, z.core.$strict>>;
|
|
118
106
|
company_name: z.ZodOptional<z.ZodObject<{
|
|
119
107
|
required: z.ZodBoolean;
|
|
120
108
|
label: z.ZodString;
|
|
@@ -190,6 +178,18 @@ declare const RequiredFieldsResponseSchema: z.ZodObject<{
|
|
|
190
178
|
label: z.ZodString;
|
|
191
179
|
}, z.core.$strict>>;
|
|
192
180
|
}, z.core.$strict>>;
|
|
181
|
+
date_of_birth: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
required: z.ZodBoolean;
|
|
183
|
+
label: z.ZodString;
|
|
184
|
+
attr_name: z.ZodString;
|
|
185
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
locked_text: z.ZodOptional<z.ZodString>;
|
|
187
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
188
|
+
type: z.ZodEnum<{
|
|
189
|
+
date: "date";
|
|
190
|
+
"datetime-local": "datetime-local";
|
|
191
|
+
}>;
|
|
192
|
+
}, z.core.$strict>>;
|
|
193
193
|
preferred_language: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
194
194
|
required: z.ZodBoolean;
|
|
195
195
|
label: z.ZodString;
|
|
@@ -213,13 +213,13 @@ declare const RequiredFieldsResponseSchema: z.ZodObject<{
|
|
|
213
213
|
number: "number";
|
|
214
214
|
boolean: "boolean";
|
|
215
215
|
date: "date";
|
|
216
|
+
radio: "radio";
|
|
216
217
|
text: "text";
|
|
217
218
|
textarea: "textarea";
|
|
219
|
+
tel: "tel";
|
|
218
220
|
select: "select";
|
|
219
|
-
radio: "radio";
|
|
220
221
|
"datetime-local": "datetime-local";
|
|
221
222
|
checkbox: "checkbox";
|
|
222
|
-
tel: "tel";
|
|
223
223
|
}>;
|
|
224
224
|
readonly: z.ZodBoolean;
|
|
225
225
|
radio_options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3,7 +3,7 @@ export declare class AuthHelpers {
|
|
|
3
3
|
private client;
|
|
4
4
|
private logger;
|
|
5
5
|
constructor(client: UnidyClient);
|
|
6
|
-
createSignIn(email: string, password?: string, sendMagicCode?: boolean): Promise<readonly ["
|
|
6
|
+
createSignIn(email: string, password?: string, sendMagicCode?: boolean): Promise<readonly ["account_not_found" | "magic_code_recently_created" | "invalid_password" | "account_locked" | "sign_in_expired" | "connection_failed" | "schema_validation_error" | "sign_in_not_found" | "missing_required_fields", {
|
|
7
7
|
error_identifier: string;
|
|
8
8
|
errors: string[];
|
|
9
9
|
} | {
|
|
@@ -19,12 +19,6 @@ export declare class AuthHelpers {
|
|
|
19
19
|
social_logins: string[];
|
|
20
20
|
passkey: boolean;
|
|
21
21
|
};
|
|
22
|
-
} | {
|
|
23
|
-
jwt: string;
|
|
24
|
-
sid?: string;
|
|
25
|
-
} | {
|
|
26
|
-
enable_resend_after: number;
|
|
27
|
-
sid?: string;
|
|
28
22
|
} | {
|
|
29
23
|
error_identifier: "missing_required_fields";
|
|
30
24
|
fields: {
|
|
@@ -37,16 +31,21 @@ export declare class AuthHelpers {
|
|
|
37
31
|
locked_text?: string;
|
|
38
32
|
value?: string;
|
|
39
33
|
};
|
|
40
|
-
|
|
34
|
+
salutation?: {
|
|
41
35
|
required: boolean;
|
|
42
36
|
label: string;
|
|
43
37
|
attr_name: string;
|
|
44
|
-
type: "
|
|
38
|
+
type: "radio";
|
|
39
|
+
radio_options: {
|
|
40
|
+
label: string;
|
|
41
|
+
checked: boolean;
|
|
42
|
+
value?: string | boolean;
|
|
43
|
+
}[];
|
|
45
44
|
locked?: boolean;
|
|
46
45
|
locked_text?: string;
|
|
47
|
-
value?: string;
|
|
46
|
+
value?: string | boolean;
|
|
48
47
|
};
|
|
49
|
-
|
|
48
|
+
first_name?: {
|
|
50
49
|
required: boolean;
|
|
51
50
|
label: string;
|
|
52
51
|
attr_name: string;
|
|
@@ -55,19 +54,14 @@ export declare class AuthHelpers {
|
|
|
55
54
|
locked_text?: string;
|
|
56
55
|
value?: string;
|
|
57
56
|
};
|
|
58
|
-
|
|
57
|
+
last_name?: {
|
|
59
58
|
required: boolean;
|
|
60
59
|
label: string;
|
|
61
60
|
attr_name: string;
|
|
62
|
-
type: "
|
|
63
|
-
radio_options: {
|
|
64
|
-
label: string;
|
|
65
|
-
checked: boolean;
|
|
66
|
-
value?: string | boolean;
|
|
67
|
-
}[];
|
|
61
|
+
type: "text" | "textarea";
|
|
68
62
|
locked?: boolean;
|
|
69
63
|
locked_text?: string;
|
|
70
|
-
value?: string
|
|
64
|
+
value?: string;
|
|
71
65
|
};
|
|
72
66
|
phone_number?: {
|
|
73
67
|
required: boolean;
|
|
@@ -78,15 +72,6 @@ export declare class AuthHelpers {
|
|
|
78
72
|
locked_text?: string;
|
|
79
73
|
value?: string;
|
|
80
74
|
};
|
|
81
|
-
date_of_birth?: {
|
|
82
|
-
required: boolean;
|
|
83
|
-
label: string;
|
|
84
|
-
attr_name: string;
|
|
85
|
-
type: "date" | "datetime-local";
|
|
86
|
-
locked?: boolean;
|
|
87
|
-
locked_text?: string;
|
|
88
|
-
value?: string;
|
|
89
|
-
};
|
|
90
75
|
company_name?: {
|
|
91
76
|
required: boolean;
|
|
92
77
|
label: string;
|
|
@@ -145,6 +130,15 @@ export declare class AuthHelpers {
|
|
|
145
130
|
locked_text?: string;
|
|
146
131
|
value?: string;
|
|
147
132
|
};
|
|
133
|
+
date_of_birth?: {
|
|
134
|
+
required: boolean;
|
|
135
|
+
label: string;
|
|
136
|
+
attr_name: string;
|
|
137
|
+
type: "date" | "datetime-local";
|
|
138
|
+
locked?: boolean;
|
|
139
|
+
locked_text?: string;
|
|
140
|
+
value?: string;
|
|
141
|
+
};
|
|
148
142
|
preferred_language?: {
|
|
149
143
|
required: boolean;
|
|
150
144
|
label: string;
|
|
@@ -158,7 +152,7 @@ export declare class AuthHelpers {
|
|
|
158
152
|
required: boolean;
|
|
159
153
|
label: string;
|
|
160
154
|
attr_name: string;
|
|
161
|
-
type: "number" | "boolean" | "date" | "text" | "textarea" | "
|
|
155
|
+
type: "number" | "boolean" | "date" | "radio" | "text" | "textarea" | "tel" | "select" | "datetime-local" | "checkbox";
|
|
162
156
|
readonly: boolean;
|
|
163
157
|
locked?: boolean;
|
|
164
158
|
locked_text?: string;
|
|
@@ -175,13 +169,19 @@ export declare class AuthHelpers {
|
|
|
175
169
|
}>;
|
|
176
170
|
};
|
|
177
171
|
sid?: string;
|
|
172
|
+
} | {
|
|
173
|
+
jwt: string;
|
|
174
|
+
sid?: string;
|
|
178
175
|
} | {
|
|
179
176
|
error_identifier: string;
|
|
180
177
|
enable_resend_after: number;
|
|
178
|
+
} | {
|
|
179
|
+
enable_resend_after: number;
|
|
180
|
+
sid?: string;
|
|
181
181
|
}]>;
|
|
182
182
|
authenticateWithPassword(password: string): Promise<void>;
|
|
183
183
|
private handleAuthError;
|
|
184
|
-
logout(): Promise<readonly ["
|
|
184
|
+
logout(): Promise<readonly ["connection_failed" | "schema_validation_error" | "sign_in_not_found" | "missing_id_token" | "invalid_id_token", {
|
|
185
185
|
error_identifier: string;
|
|
186
186
|
errors: string[];
|
|
187
187
|
} | {
|
|
@@ -189,7 +189,7 @@ export declare class AuthHelpers {
|
|
|
189
189
|
}]>;
|
|
190
190
|
refreshToken(): Promise<void>;
|
|
191
191
|
handleSocialAuthRedirect(): void;
|
|
192
|
-
sendMagicCode(): Promise<readonly ["
|
|
192
|
+
sendMagicCode(): Promise<readonly ["account_not_found" | "magic_code_recently_created" | "invalid_password" | "account_locked" | "sign_in_expired" | "connection_failed" | "schema_validation_error" | "sign_in_not_found" | "missing_required_fields", {
|
|
193
193
|
error_identifier: string;
|
|
194
194
|
errors: string[];
|
|
195
195
|
} | {
|
|
@@ -205,12 +205,6 @@ export declare class AuthHelpers {
|
|
|
205
205
|
social_logins: string[];
|
|
206
206
|
passkey: boolean;
|
|
207
207
|
};
|
|
208
|
-
} | {
|
|
209
|
-
jwt: string;
|
|
210
|
-
sid?: string;
|
|
211
|
-
} | {
|
|
212
|
-
enable_resend_after: number;
|
|
213
|
-
sid?: string;
|
|
214
208
|
} | {
|
|
215
209
|
error_identifier: "missing_required_fields";
|
|
216
210
|
fields: {
|
|
@@ -223,16 +217,21 @@ export declare class AuthHelpers {
|
|
|
223
217
|
locked_text?: string;
|
|
224
218
|
value?: string;
|
|
225
219
|
};
|
|
226
|
-
|
|
220
|
+
salutation?: {
|
|
227
221
|
required: boolean;
|
|
228
222
|
label: string;
|
|
229
223
|
attr_name: string;
|
|
230
|
-
type: "
|
|
224
|
+
type: "radio";
|
|
225
|
+
radio_options: {
|
|
226
|
+
label: string;
|
|
227
|
+
checked: boolean;
|
|
228
|
+
value?: string | boolean;
|
|
229
|
+
}[];
|
|
231
230
|
locked?: boolean;
|
|
232
231
|
locked_text?: string;
|
|
233
|
-
value?: string;
|
|
232
|
+
value?: string | boolean;
|
|
234
233
|
};
|
|
235
|
-
|
|
234
|
+
first_name?: {
|
|
236
235
|
required: boolean;
|
|
237
236
|
label: string;
|
|
238
237
|
attr_name: string;
|
|
@@ -241,19 +240,14 @@ export declare class AuthHelpers {
|
|
|
241
240
|
locked_text?: string;
|
|
242
241
|
value?: string;
|
|
243
242
|
};
|
|
244
|
-
|
|
243
|
+
last_name?: {
|
|
245
244
|
required: boolean;
|
|
246
245
|
label: string;
|
|
247
246
|
attr_name: string;
|
|
248
|
-
type: "
|
|
249
|
-
radio_options: {
|
|
250
|
-
label: string;
|
|
251
|
-
checked: boolean;
|
|
252
|
-
value?: string | boolean;
|
|
253
|
-
}[];
|
|
247
|
+
type: "text" | "textarea";
|
|
254
248
|
locked?: boolean;
|
|
255
249
|
locked_text?: string;
|
|
256
|
-
value?: string
|
|
250
|
+
value?: string;
|
|
257
251
|
};
|
|
258
252
|
phone_number?: {
|
|
259
253
|
required: boolean;
|
|
@@ -264,15 +258,6 @@ export declare class AuthHelpers {
|
|
|
264
258
|
locked_text?: string;
|
|
265
259
|
value?: string;
|
|
266
260
|
};
|
|
267
|
-
date_of_birth?: {
|
|
268
|
-
required: boolean;
|
|
269
|
-
label: string;
|
|
270
|
-
attr_name: string;
|
|
271
|
-
type: "date" | "datetime-local";
|
|
272
|
-
locked?: boolean;
|
|
273
|
-
locked_text?: string;
|
|
274
|
-
value?: string;
|
|
275
|
-
};
|
|
276
261
|
company_name?: {
|
|
277
262
|
required: boolean;
|
|
278
263
|
label: string;
|
|
@@ -331,6 +316,15 @@ export declare class AuthHelpers {
|
|
|
331
316
|
locked_text?: string;
|
|
332
317
|
value?: string;
|
|
333
318
|
};
|
|
319
|
+
date_of_birth?: {
|
|
320
|
+
required: boolean;
|
|
321
|
+
label: string;
|
|
322
|
+
attr_name: string;
|
|
323
|
+
type: "date" | "datetime-local";
|
|
324
|
+
locked?: boolean;
|
|
325
|
+
locked_text?: string;
|
|
326
|
+
value?: string;
|
|
327
|
+
};
|
|
334
328
|
preferred_language?: {
|
|
335
329
|
required: boolean;
|
|
336
330
|
label: string;
|
|
@@ -344,7 +338,7 @@ export declare class AuthHelpers {
|
|
|
344
338
|
required: boolean;
|
|
345
339
|
label: string;
|
|
346
340
|
attr_name: string;
|
|
347
|
-
type: "number" | "boolean" | "date" | "text" | "textarea" | "
|
|
341
|
+
type: "number" | "boolean" | "date" | "radio" | "text" | "textarea" | "tel" | "select" | "datetime-local" | "checkbox";
|
|
348
342
|
readonly: boolean;
|
|
349
343
|
locked?: boolean;
|
|
350
344
|
locked_text?: string;
|
|
@@ -361,9 +355,15 @@ export declare class AuthHelpers {
|
|
|
361
355
|
}>;
|
|
362
356
|
};
|
|
363
357
|
sid?: string;
|
|
358
|
+
} | {
|
|
359
|
+
jwt: string;
|
|
360
|
+
sid?: string;
|
|
364
361
|
} | {
|
|
365
362
|
error_identifier: string;
|
|
366
363
|
enable_resend_after: number;
|
|
364
|
+
} | {
|
|
365
|
+
enable_resend_after: number;
|
|
366
|
+
sid?: string;
|
|
367
367
|
}]>;
|
|
368
368
|
authenticateWithMagicCode(code: string): Promise<void>;
|
|
369
369
|
sendResetPasswordEmail(): Promise<void>;
|
|
@@ -174,13 +174,13 @@ export declare const UserProfileSchema: z.ZodObject<{
|
|
|
174
174
|
number: "number";
|
|
175
175
|
boolean: "boolean";
|
|
176
176
|
date: "date";
|
|
177
|
+
radio: "radio";
|
|
177
178
|
text: "text";
|
|
178
179
|
textarea: "textarea";
|
|
180
|
+
tel: "tel";
|
|
179
181
|
select: "select";
|
|
180
|
-
radio: "radio";
|
|
181
182
|
"datetime-local": "datetime-local";
|
|
182
183
|
checkbox: "checkbox";
|
|
183
|
-
tel: "tel";
|
|
184
184
|
}>;
|
|
185
185
|
readonly: z.ZodBoolean;
|
|
186
186
|
radio_options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|