@thunderid/vue 0.4.0 → 0.6.0
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/cjs/index.cjs +129 -43
- package/dist/components/auth/Callback.d.ts.map +1 -1
- package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts +3 -3
- package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts.map +1 -1
- package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -1
- package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
- package/dist/components/auth/sign-up/BaseSignUp.d.ts.map +1 -1
- package/dist/components/presentation/accept-invite/BaseAcceptInvite.d.ts.map +1 -1
- package/dist/components/presentation/invite-user/BaseInviteUser.d.ts.map +1 -1
- package/dist/index.js +130 -44
- package/dist/models/contexts.d.ts +5 -0
- package/dist/models/contexts.d.ts.map +1 -1
- package/dist/plugins/ThunderIDPlugin.d.ts +5 -0
- package/dist/plugins/ThunderIDPlugin.d.ts.map +1 -1
- package/dist/providers/I18nProvider.d.ts.map +1 -1
- package/dist/providers/ThunderIDProvider.d.ts.map +1 -1
- package/dist/styles/injectStyles.d.ts +4 -1
- package/dist/styles/injectStyles.d.ts.map +1 -1
- package/dist/utils/oauth.d.ts +2 -1
- package/dist/utils/oauth.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -300,7 +300,6 @@ const createVueLogger = (component) => (0, __thunderid_browser.createPackageComp
|
|
|
300
300
|
//#endregion
|
|
301
301
|
//#region src/providers/I18nProvider.ts
|
|
302
302
|
const logger$4 = createVueLogger("I18nProvider");
|
|
303
|
-
const DEFAULT_STORAGE_KEY = "thunderid-i18n-language";
|
|
304
303
|
const DEFAULT_URL_PARAM = "lang";
|
|
305
304
|
const deriveRootDomain = (hostname) => {
|
|
306
305
|
const parts = hostname.split(".");
|
|
@@ -365,14 +364,20 @@ const detectBrowserLanguage = () => {
|
|
|
365
364
|
};
|
|
366
365
|
const I18nProvider = (0, vue.defineComponent)({
|
|
367
366
|
name: "I18nProvider",
|
|
368
|
-
props: {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
367
|
+
props: {
|
|
368
|
+
preferences: {
|
|
369
|
+
default: void 0,
|
|
370
|
+
type: Object
|
|
371
|
+
},
|
|
372
|
+
vendor: {
|
|
373
|
+
default: void 0,
|
|
374
|
+
type: String
|
|
375
|
+
}
|
|
376
|
+
},
|
|
372
377
|
setup(props, { slots }) {
|
|
373
378
|
const defaultBundles = (0, __thunderid_browser.getDefaultI18nBundles)();
|
|
374
379
|
const storageStrategy = props.preferences?.storageStrategy ?? "cookie";
|
|
375
|
-
const storageKey = props.preferences?.storageKey ??
|
|
380
|
+
const storageKey = props.preferences?.storageKey ?? `${(0, __thunderid_browser.getVendorPrefix)(props.vendor)}-i18n-language`;
|
|
376
381
|
const urlParamConfig = props.preferences?.urlParam === void 0 ? DEFAULT_URL_PARAM : props.preferences.urlParam;
|
|
377
382
|
const storage = createStorageAdapter(storageStrategy, storageKey, storageStrategy === "cookie" ? props.preferences?.cookieDomain ?? (typeof window !== "undefined" ? deriveRootDomain(window.location.hostname) : void 0) : void 0);
|
|
378
383
|
const determineInitialLanguage = () => {
|
|
@@ -903,10 +908,15 @@ const ThunderIDProvider = (0, vue.defineComponent)({
|
|
|
903
908
|
syncSession: {
|
|
904
909
|
default: void 0,
|
|
905
910
|
type: Boolean
|
|
911
|
+
},
|
|
912
|
+
vendor: {
|
|
913
|
+
default: void 0,
|
|
914
|
+
type: String
|
|
906
915
|
}
|
|
907
916
|
},
|
|
908
917
|
setup(props, { slots }) {
|
|
909
918
|
const client = new ThunderIDVueClient_default(props.instanceId);
|
|
919
|
+
const vendor = (0, __thunderid_browser.getVendorPrefix)(props.vendor);
|
|
910
920
|
const isSignedIn = (0, vue.ref)(false);
|
|
911
921
|
const isInitialized = (0, vue.ref)(false);
|
|
912
922
|
const isLoading = (0, vue.ref)(true);
|
|
@@ -930,7 +940,8 @@ const ThunderIDProvider = (0, vue.defineComponent)({
|
|
|
930
940
|
signInUrl: props.signInUrl,
|
|
931
941
|
signUpUrl: props.signUpUrl,
|
|
932
942
|
storage: props.storage,
|
|
933
|
-
syncSession: props.syncSession
|
|
943
|
+
syncSession: props.syncSession,
|
|
944
|
+
vendor
|
|
934
945
|
};
|
|
935
946
|
}
|
|
936
947
|
async function updateSession() {
|
|
@@ -1027,14 +1038,15 @@ const ThunderIDProvider = (0, vue.defineComponent)({
|
|
|
1027
1038
|
signUp,
|
|
1028
1039
|
signUpUrl: props.signUpUrl,
|
|
1029
1040
|
storage: props.storage,
|
|
1030
|
-
user
|
|
1041
|
+
user,
|
|
1042
|
+
vendor
|
|
1031
1043
|
});
|
|
1032
1044
|
(0, vue.onMounted)(async () => {
|
|
1033
1045
|
const config = buildConfig();
|
|
1034
1046
|
await client.initialize(config);
|
|
1035
1047
|
await client.getDiscoveryResponse();
|
|
1036
1048
|
const initializedConfig = await client.getConfiguration();
|
|
1037
|
-
if (initializedConfig?.baseUrl) sessionStorage.setItem(
|
|
1049
|
+
if (initializedConfig?.baseUrl) sessionStorage.setItem(`${vendor}_base_url`, initializedConfig.baseUrl);
|
|
1038
1050
|
try {
|
|
1039
1051
|
isInitialized.value = await client.isInitialized();
|
|
1040
1052
|
} catch {
|
|
@@ -1050,7 +1062,7 @@ const ThunderIDProvider = (0, vue.defineComponent)({
|
|
|
1050
1062
|
const urlParams = currentUrl.searchParams;
|
|
1051
1063
|
const code = urlParams.get("code");
|
|
1052
1064
|
const executionIdFromUrl = urlParams.get("executionId");
|
|
1053
|
-
const storedExecutionId = sessionStorage.getItem(
|
|
1065
|
+
const storedExecutionId = sessionStorage.getItem(`${vendor}_execution_id`);
|
|
1054
1066
|
if (code && !executionIdFromUrl && !storedExecutionId) await signIn();
|
|
1055
1067
|
} catch (error) {
|
|
1056
1068
|
throw new __thunderid_browser.ThunderIDRuntimeError(`Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`, "thunderid-signIn-Error", "vue", "An error occurred while trying to sign in.");
|
|
@@ -1082,7 +1094,7 @@ const ThunderIDProvider = (0, vue.defineComponent)({
|
|
|
1082
1094
|
if (signInCheckInterval) clearInterval(signInCheckInterval);
|
|
1083
1095
|
if (loadingCheckInterval) clearInterval(loadingCheckInterval);
|
|
1084
1096
|
});
|
|
1085
|
-
return () => (0, vue.h)(I18nProvider_default,
|
|
1097
|
+
return () => (0, vue.h)(I18nProvider_default, { vendor }, { default: () => (0, vue.h)(FlowMetaProvider_default, { enabled: true }, { default: () => (0, vue.h)(ThemeProvider_default, null, { default: () => (0, vue.h)(FlowProvider_default, null, { default: () => (0, vue.h)(UserProvider_default, {
|
|
1086
1098
|
onUpdateProfile: (updatedUser) => {
|
|
1087
1099
|
user.value = updatedUser;
|
|
1088
1100
|
userProfile.value = {
|
|
@@ -3603,7 +3615,6 @@ var Typography_css_default = TYPOGRAPHY_CSS;
|
|
|
3603
3615
|
|
|
3604
3616
|
//#endregion
|
|
3605
3617
|
//#region src/styles/injectStyles.ts
|
|
3606
|
-
const STYLE_ID = "thunderid-vue-styles";
|
|
3607
3618
|
/**
|
|
3608
3619
|
* Assembled CSS for all ThunderID Vue components.
|
|
3609
3620
|
* Order is intentional:
|
|
@@ -3634,12 +3645,16 @@ const STYLES = [
|
|
|
3634
3645
|
/**
|
|
3635
3646
|
* Injects ThunderID Vue component styles into the document `<head>` once.
|
|
3636
3647
|
* Subsequent calls are no-ops (idempotent).
|
|
3648
|
+
*
|
|
3649
|
+
* @param vendor - Vendor/brand namespace used to derive the dedupe `<style>` element id
|
|
3650
|
+
* (e.g. `${vendor}-vue-styles`). Defaults to `VendorConstants.VENDOR_PREFIX`.
|
|
3637
3651
|
*/
|
|
3638
|
-
function injectStyles() {
|
|
3652
|
+
function injectStyles(vendor) {
|
|
3639
3653
|
if (typeof document === "undefined") return;
|
|
3640
|
-
|
|
3654
|
+
const styleId = `${(0, __thunderid_browser.getVendorPrefix)(vendor)}-vue-styles`;
|
|
3655
|
+
if (document.getElementById(styleId)) return;
|
|
3641
3656
|
const style = document.createElement("style");
|
|
3642
|
-
style.id =
|
|
3657
|
+
style.id = styleId;
|
|
3643
3658
|
style.textContent = STYLES;
|
|
3644
3659
|
document.head.appendChild(style);
|
|
3645
3660
|
}
|
|
@@ -3673,7 +3688,7 @@ function injectStyles() {
|
|
|
3673
3688
|
* ```
|
|
3674
3689
|
*/
|
|
3675
3690
|
const ThunderIDPlugin = { install(app, options) {
|
|
3676
|
-
injectStyles();
|
|
3691
|
+
injectStyles(options?.vendor);
|
|
3677
3692
|
if (options?.mode === "delegated") return;
|
|
3678
3693
|
app.component("ThunderIDProvider", ThunderIDProvider_default);
|
|
3679
3694
|
} };
|
|
@@ -5256,6 +5271,7 @@ const Callback = (0, vue.defineComponent)({
|
|
|
5256
5271
|
}
|
|
5257
5272
|
},
|
|
5258
5273
|
setup(props) {
|
|
5274
|
+
const vendor = (0, __thunderid_browser.getVendorPrefix)((0, vue.inject)(THUNDERID_KEY, null)?.vendor);
|
|
5259
5275
|
const navigate$4 = (path) => {
|
|
5260
5276
|
if (props.onNavigate) props.onNavigate(path);
|
|
5261
5277
|
else (0, __thunderid_browser.navigate)(path);
|
|
@@ -5281,7 +5297,7 @@ const Callback = (0, vue.defineComponent)({
|
|
|
5281
5297
|
return;
|
|
5282
5298
|
}
|
|
5283
5299
|
if (!state) throw new Error("Missing OAuth state parameter - possible security issue");
|
|
5284
|
-
const storedData = sessionStorage.getItem(
|
|
5300
|
+
const storedData = sessionStorage.getItem(`${vendor}_oauth_${state}`);
|
|
5285
5301
|
if (!storedData) {
|
|
5286
5302
|
if (oauthError) {
|
|
5287
5303
|
const errorMsg = errorDescription || oauthError || "OAuth authentication failed";
|
|
@@ -5298,10 +5314,10 @@ const Callback = (0, vue.defineComponent)({
|
|
|
5298
5314
|
const { path, timestamp } = JSON.parse(storedData);
|
|
5299
5315
|
returnPath = path || "/";
|
|
5300
5316
|
if (Date.now() - timestamp > 3e5) {
|
|
5301
|
-
sessionStorage.removeItem(
|
|
5317
|
+
sessionStorage.removeItem(`${vendor}_oauth_${state}`);
|
|
5302
5318
|
throw new Error("OAuth state expired - please try again");
|
|
5303
5319
|
}
|
|
5304
|
-
sessionStorage.removeItem(
|
|
5320
|
+
sessionStorage.removeItem(`${vendor}_oauth_${state}`);
|
|
5305
5321
|
if (oauthError) {
|
|
5306
5322
|
const errorMsg = errorDescription || oauthError || "OAuth authentication failed";
|
|
5307
5323
|
const err = new Error(errorMsg);
|
|
@@ -5762,7 +5778,7 @@ const matchesSocialProvider = (actionId, eventType, buttonText, provider) => {
|
|
|
5762
5778
|
/**
|
|
5763
5779
|
* Create an auth component (VNode) from a flow component configuration.
|
|
5764
5780
|
*/
|
|
5765
|
-
const createAuthComponentFromFlow = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options = {}) => {
|
|
5781
|
+
const createAuthComponentFromFlow = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options = {}) => {
|
|
5766
5782
|
const key = options.key ?? component.id;
|
|
5767
5783
|
/** Resolve any remaining {{t()}} or {{meta()}} template expressions in a string at render time. */
|
|
5768
5784
|
const resolve = (text) => {
|
|
@@ -5798,7 +5814,14 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5798
5814
|
const eventType = component.eventType || "";
|
|
5799
5815
|
const buttonText = resolve(component.label);
|
|
5800
5816
|
const componentVariant = component.variant || "";
|
|
5801
|
-
const shouldSkipValidation = eventType.toUpperCase()
|
|
5817
|
+
const shouldSkipValidation = eventType.toUpperCase() !== __thunderid_browser.EmbeddedFlowEventType.Submit;
|
|
5818
|
+
const buttonType = {
|
|
5819
|
+
[__thunderid_browser.EmbeddedFlowEventType.Submit]: "submit",
|
|
5820
|
+
[__thunderid_browser.EmbeddedFlowEventType.Reset]: "reset",
|
|
5821
|
+
[__thunderid_browser.EmbeddedFlowEventType.Cancel]: "button",
|
|
5822
|
+
[__thunderid_browser.EmbeddedFlowEventType.Trigger]: "button",
|
|
5823
|
+
[__thunderid_browser.EmbeddedFlowEventType.Back]: "button"
|
|
5824
|
+
}[eventType.toUpperCase()] ?? "submit";
|
|
5802
5825
|
const handleClick = () => {
|
|
5803
5826
|
if (options.onSubmit) {
|
|
5804
5827
|
const formData = {};
|
|
@@ -5821,7 +5844,11 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5821
5844
|
})) };
|
|
5822
5845
|
formData["consent_decisions"] = JSON.stringify(decisions);
|
|
5823
5846
|
}
|
|
5824
|
-
options.onSubmit(component, formData, shouldSkipValidation);
|
|
5847
|
+
if (eventType.toUpperCase() === __thunderid_browser.EmbeddedFlowEventType.Submit) options.onSubmit(component, formData, shouldSkipValidation);
|
|
5848
|
+
else {
|
|
5849
|
+
resetForm();
|
|
5850
|
+
options.onSubmit(component, {}, shouldSkipValidation);
|
|
5851
|
+
}
|
|
5825
5852
|
}
|
|
5826
5853
|
};
|
|
5827
5854
|
if (matchesSocialProvider(actionId, eventType, buttonText, "google")) return (0, vue.h)(GoogleButton_default, {
|
|
@@ -5874,7 +5901,8 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5874
5901
|
key,
|
|
5875
5902
|
onClick: handleClick,
|
|
5876
5903
|
startIcon: startIconVNode ?? void 0,
|
|
5877
|
-
variant: component.variant?.toLowerCase() === "primary" ? "solid" : "outline"
|
|
5904
|
+
variant: component.variant?.toLowerCase() === "primary" ? "solid" : "outline",
|
|
5905
|
+
type: buttonType
|
|
5878
5906
|
}, { default: () => buttonText || "Submit" });
|
|
5879
5907
|
}
|
|
5880
5908
|
case __thunderid_browser.EmbeddedFlowComponentType.Text: {
|
|
@@ -5916,7 +5944,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5916
5944
|
}
|
|
5917
5945
|
case __thunderid_browser.EmbeddedFlowComponentType.Block:
|
|
5918
5946
|
if (component.components && component.components.length > 0) {
|
|
5919
|
-
const blockChildren = component.components.map((childComponent, index) => createAuthComponentFromFlow(childComponent, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
5947
|
+
const blockChildren = component.components.map((childComponent, index) => createAuthComponentFromFlow(childComponent, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
5920
5948
|
...options,
|
|
5921
5949
|
key: childComponent.id || `${component.id}_${index}`
|
|
5922
5950
|
})).filter(Boolean);
|
|
@@ -5961,7 +5989,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5961
5989
|
gap: `${gap * .5}rem`,
|
|
5962
5990
|
justifyContent: justify
|
|
5963
5991
|
};
|
|
5964
|
-
const stackChildren = component.components ? component.components.map((childComponent, index) => createAuthComponentFromFlow(childComponent, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
5992
|
+
const stackChildren = component.components ? component.components.map((childComponent, index) => createAuthComponentFromFlow(childComponent, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
5965
5993
|
...options,
|
|
5966
5994
|
inStack: true,
|
|
5967
5995
|
key: childComponent.id || `${component.id}_${index}`
|
|
@@ -5992,7 +6020,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5992
6020
|
/**
|
|
5993
6021
|
* Processes an array of components and renders them as VNodes for sign-in.
|
|
5994
6022
|
*/
|
|
5995
|
-
const renderSignInComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
6023
|
+
const renderSignInComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
5996
6024
|
...options,
|
|
5997
6025
|
key: component.id || index
|
|
5998
6026
|
})).filter((v) => v !== null);
|
|
@@ -6000,7 +6028,7 @@ const renderSignInComponents = (components, formValues, touchedFields, formError
|
|
|
6000
6028
|
* Processes an array of components and renders them as VNodes for sign-up.
|
|
6001
6029
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
6002
6030
|
*/
|
|
6003
|
-
const renderSignUpComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
6031
|
+
const renderSignUpComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
6004
6032
|
...options,
|
|
6005
6033
|
key: component.id || index
|
|
6006
6034
|
})).filter((v) => v !== null);
|
|
@@ -6008,7 +6036,7 @@ const renderSignUpComponents = (components, formValues, touchedFields, formError
|
|
|
6008
6036
|
* Processes an array of components and renders them as VNodes for invite-user flows.
|
|
6009
6037
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
6010
6038
|
*/
|
|
6011
|
-
const renderInviteUserComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
6039
|
+
const renderInviteUserComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
6012
6040
|
...options,
|
|
6013
6041
|
key: component.id || index
|
|
6014
6042
|
})).filter((v) => v !== null);
|
|
@@ -6352,7 +6380,23 @@ const BaseSignIn = (0, vue.defineComponent)({
|
|
|
6352
6380
|
isSubmitting.value = false;
|
|
6353
6381
|
}
|
|
6354
6382
|
};
|
|
6355
|
-
|
|
6383
|
+
/**
|
|
6384
|
+
*
|
|
6385
|
+
* Reset the formvalues
|
|
6386
|
+
*/
|
|
6387
|
+
const resetForm = () => {
|
|
6388
|
+
const fields = extractFormFields$1(props.components || []);
|
|
6389
|
+
const freshValues = {};
|
|
6390
|
+
fields.forEach((f) => {
|
|
6391
|
+
freshValues[f.name] = "";
|
|
6392
|
+
});
|
|
6393
|
+
formValues.value = freshValues;
|
|
6394
|
+
touchedFields.value = {};
|
|
6395
|
+
isSubmitting.value = false;
|
|
6396
|
+
apiError.value = null;
|
|
6397
|
+
clearMessages();
|
|
6398
|
+
};
|
|
6399
|
+
const renderComponents = () => renderSignInComponents(props.components || [], formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, resetForm, handleInputChange, {
|
|
6356
6400
|
additionalData: props.additionalData,
|
|
6357
6401
|
buttonClassName: props.buttonClassName,
|
|
6358
6402
|
inputClassName: props.inputClassName,
|
|
@@ -6423,13 +6467,14 @@ var BaseSignIn_default = BaseSignIn;
|
|
|
6423
6467
|
* Generates random state, stores return path in sessionStorage, and redirects to OAuth provider.
|
|
6424
6468
|
*
|
|
6425
6469
|
* @param redirectURL - OAuth authorization URL from the server
|
|
6470
|
+
* @param vendor - Vendor/brand namespace used to prefix the sessionStorage key. Defaults to `'thunderid'`.
|
|
6426
6471
|
*/
|
|
6427
|
-
function initiateOAuthRedirect(redirectURL) {
|
|
6472
|
+
function initiateOAuthRedirect(redirectURL, vendor) {
|
|
6428
6473
|
const basePath = document.querySelector("base")?.getAttribute("href") || "";
|
|
6429
6474
|
let returnPath = window.location.pathname;
|
|
6430
6475
|
if (basePath && returnPath.startsWith(basePath)) returnPath = returnPath.slice(basePath.length) || "/";
|
|
6431
6476
|
const state = crypto.randomUUID();
|
|
6432
|
-
sessionStorage.setItem(
|
|
6477
|
+
sessionStorage.setItem(`${(0, __thunderid_browser.getVendorPrefix)(vendor)}_oauth_${state}`, JSON.stringify({
|
|
6433
6478
|
path: returnPath,
|
|
6434
6479
|
timestamp: Date.now()
|
|
6435
6480
|
}));
|
|
@@ -6526,7 +6571,6 @@ const handlePasskeyAuthentication = async (challengeData) => {
|
|
|
6526
6571
|
|
|
6527
6572
|
//#endregion
|
|
6528
6573
|
//#region src/components/auth/sign-in/SignIn.ts
|
|
6529
|
-
const EXECUTION_ID_STORAGE_KEY = "thunderid_execution_id";
|
|
6530
6574
|
/**
|
|
6531
6575
|
* SignIn — app-native sign-in component with full flow lifecycle management.
|
|
6532
6576
|
*
|
|
@@ -6565,9 +6609,10 @@ const SignIn = (0, vue.defineComponent)({
|
|
|
6565
6609
|
},
|
|
6566
6610
|
emits: ["error", "success"],
|
|
6567
6611
|
setup(props, { slots, emit, attrs }) {
|
|
6568
|
-
const { applicationId, afterSignInUrl, signIn, isInitialized, isLoading: sdkLoading, scopes, getStorageManager } = useThunderID_default();
|
|
6612
|
+
const { applicationId, afterSignInUrl, signIn, isInitialized, isLoading: sdkLoading, scopes, getStorageManager, vendor } = useThunderID_default();
|
|
6569
6613
|
const { meta: flowMeta } = useFlowMeta_default();
|
|
6570
6614
|
const { t } = useI18n_default();
|
|
6615
|
+
const executionIdStorageKey = `${vendor}_execution_id`;
|
|
6571
6616
|
const components = (0, vue.ref)([]);
|
|
6572
6617
|
const additionalData = (0, vue.ref)({});
|
|
6573
6618
|
const currentExecutionId = (0, vue.ref)(null);
|
|
@@ -6588,8 +6633,8 @@ const SignIn = (0, vue.defineComponent)({
|
|
|
6588
6633
|
let passkeyProcessed = false;
|
|
6589
6634
|
const persistExecutionId = (executionId) => {
|
|
6590
6635
|
currentExecutionId.value = executionId;
|
|
6591
|
-
if (executionId) sessionStorage.setItem(
|
|
6592
|
-
else sessionStorage.removeItem(
|
|
6636
|
+
if (executionId) sessionStorage.setItem(executionIdStorageKey, executionId);
|
|
6637
|
+
else sessionStorage.removeItem(executionIdStorageKey);
|
|
6593
6638
|
};
|
|
6594
6639
|
const clearFlowState = async () => {
|
|
6595
6640
|
persistExecutionId(null);
|
|
@@ -6669,7 +6714,7 @@ const SignIn = (0, vue.defineComponent)({
|
|
|
6669
6714
|
const sm = getStorageManager();
|
|
6670
6715
|
if (sm) await sm.setHybridDataParameter("authId", urlParams.authId);
|
|
6671
6716
|
}
|
|
6672
|
-
initiateOAuthRedirect(redirectURL);
|
|
6717
|
+
initiateOAuthRedirect(redirectURL, vendor);
|
|
6673
6718
|
return;
|
|
6674
6719
|
}
|
|
6675
6720
|
}
|
|
@@ -6743,7 +6788,7 @@ const SignIn = (0, vue.defineComponent)({
|
|
|
6743
6788
|
const sm = getStorageManager();
|
|
6744
6789
|
if (sm) await sm.setHybridDataParameter("authId", urlParams.authId);
|
|
6745
6790
|
}
|
|
6746
|
-
initiateOAuthRedirect(redirectURL);
|
|
6791
|
+
initiateOAuthRedirect(redirectURL, vendor);
|
|
6747
6792
|
return;
|
|
6748
6793
|
}
|
|
6749
6794
|
}
|
|
@@ -6876,7 +6921,7 @@ const SignIn = (0, vue.defineComponent)({
|
|
|
6876
6921
|
}, { deep: true });
|
|
6877
6922
|
useOAuthCallback({
|
|
6878
6923
|
currentFlowId: currentExecutionId,
|
|
6879
|
-
flowIdStorageKey:
|
|
6924
|
+
flowIdStorageKey: executionIdStorageKey,
|
|
6880
6925
|
isInitialized,
|
|
6881
6926
|
isSubmitting,
|
|
6882
6927
|
onError: (err) => {
|
|
@@ -7201,6 +7246,22 @@ const BaseSignUp = (0, vue.defineComponent)({
|
|
|
7201
7246
|
isValid: valid
|
|
7202
7247
|
};
|
|
7203
7248
|
};
|
|
7249
|
+
/**
|
|
7250
|
+
*
|
|
7251
|
+
* Reset the formvalues
|
|
7252
|
+
*/
|
|
7253
|
+
const resetForm = () => {
|
|
7254
|
+
const fields = extractFormFields(props.components || []);
|
|
7255
|
+
const freshValues = {};
|
|
7256
|
+
fields.forEach((f) => {
|
|
7257
|
+
freshValues[f.name] = "";
|
|
7258
|
+
});
|
|
7259
|
+
formValues.value = freshValues;
|
|
7260
|
+
touchedFields.value = {};
|
|
7261
|
+
apiError.value = null;
|
|
7262
|
+
formErrors.value = {};
|
|
7263
|
+
isFormValid.value = true;
|
|
7264
|
+
};
|
|
7204
7265
|
const handleInputChange = (name, value) => {
|
|
7205
7266
|
formValues.value = {
|
|
7206
7267
|
...formValues.value,
|
|
@@ -7462,7 +7523,7 @@ const BaseSignUp = (0, vue.defineComponent)({
|
|
|
7462
7523
|
}, () => (0, vue.h)(Alert_default, { variant: "error" }, () => t("errors.signup.flow.initialization.failure") || "Failed to initialize sign-up flow"));
|
|
7463
7524
|
const { title, subtitle, componentsWithoutHeadings } = getAuthComponentHeadings_default(currentFlow.value.data?.components || [], void 0, void 0, t("signup.heading") || "Sign Up", t("signup.subheading") || "Create your account");
|
|
7464
7525
|
const meta = flowMetaRef.value;
|
|
7465
|
-
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderSignUpComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, handleInputChange, {
|
|
7526
|
+
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderSignUpComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, resetForm, handleInputChange, {
|
|
7466
7527
|
buttonClassName: props.buttonClassName,
|
|
7467
7528
|
inputClassName: props.inputClassName,
|
|
7468
7529
|
meta,
|
|
@@ -8619,6 +8680,8 @@ const BaseAcceptInvite = (0, vue.defineComponent)({
|
|
|
8619
8680
|
setup(props, { slots }) {
|
|
8620
8681
|
const { meta: metaRef } = useFlowMeta_default();
|
|
8621
8682
|
const { t } = useI18n_default();
|
|
8683
|
+
const vendor = (0, __thunderid_browser.getVendorPrefix)((0, vue.inject)(THUNDERID_KEY, null)?.vendor);
|
|
8684
|
+
const flowIdStorageKey = `${vendor}_flow_id`;
|
|
8622
8685
|
const isLoading = (0, vue.ref)(false);
|
|
8623
8686
|
const isValidatingToken = (0, vue.ref)(true);
|
|
8624
8687
|
const isTokenInvalid = (0, vue.ref)(false);
|
|
@@ -8656,6 +8719,7 @@ const BaseAcceptInvite = (0, vue.defineComponent)({
|
|
|
8656
8719
|
};
|
|
8657
8720
|
useOAuthCallback({
|
|
8658
8721
|
currentFlowId: (0, vue.ref)(props.flowId ?? null),
|
|
8722
|
+
flowIdStorageKey,
|
|
8659
8723
|
isInitialized: (0, vue.ref)(true),
|
|
8660
8724
|
onComplete: () => {
|
|
8661
8725
|
isComplete.value = true;
|
|
@@ -8716,6 +8780,17 @@ const BaseAcceptInvite = (0, vue.defineComponent)({
|
|
|
8716
8780
|
isValid: Object.keys(errors).length === 0
|
|
8717
8781
|
};
|
|
8718
8782
|
};
|
|
8783
|
+
/**
|
|
8784
|
+
*
|
|
8785
|
+
* Reset the formvalues
|
|
8786
|
+
*/
|
|
8787
|
+
const resetForm = () => {
|
|
8788
|
+
formValues.value = {};
|
|
8789
|
+
formErrors.value = {};
|
|
8790
|
+
touchedFields.value = {};
|
|
8791
|
+
apiError.value = null;
|
|
8792
|
+
isFormValid.value = true;
|
|
8793
|
+
};
|
|
8719
8794
|
const handleSubmit = async (component, data) => {
|
|
8720
8795
|
if (!currentFlow.value) return;
|
|
8721
8796
|
const validation = validateForm(currentFlow.value.data?.components || []);
|
|
@@ -8748,7 +8823,7 @@ const BaseAcceptInvite = (0, vue.defineComponent)({
|
|
|
8748
8823
|
if (response.type === "REDIRECTION") {
|
|
8749
8824
|
const redirectURL = response.data?.redirectURL || response?.redirectURL;
|
|
8750
8825
|
if (redirectURL) {
|
|
8751
|
-
initiateOAuthRedirect(redirectURL);
|
|
8826
|
+
initiateOAuthRedirect(redirectURL, vendor);
|
|
8752
8827
|
return;
|
|
8753
8828
|
}
|
|
8754
8829
|
}
|
|
@@ -8789,7 +8864,7 @@ const BaseAcceptInvite = (0, vue.defineComponent)({
|
|
|
8789
8864
|
isValidatingToken.value = true;
|
|
8790
8865
|
apiError.value = null;
|
|
8791
8866
|
try {
|
|
8792
|
-
if (flowId) sessionStorage.setItem(
|
|
8867
|
+
if (flowId) sessionStorage.setItem(flowIdStorageKey, flowId);
|
|
8793
8868
|
const payload = {
|
|
8794
8869
|
flowId,
|
|
8795
8870
|
inputs: { inviteToken },
|
|
@@ -8890,7 +8965,7 @@ const BaseAcceptInvite = (0, vue.defineComponent)({
|
|
|
8890
8965
|
variant: "solid"
|
|
8891
8966
|
}, () => "Sign In")]) : null
|
|
8892
8967
|
])]);
|
|
8893
|
-
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderInviteUserComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, handleInputChange, {
|
|
8968
|
+
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderInviteUserComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, resetForm, handleInputChange, {
|
|
8894
8969
|
meta,
|
|
8895
8970
|
onInputBlur: handleInputBlur,
|
|
8896
8971
|
onSubmit: handleSubmit,
|
|
@@ -9246,6 +9321,17 @@ const BaseInviteUser = (0, vue.defineComponent)({
|
|
|
9246
9321
|
emailSent.value = false;
|
|
9247
9322
|
initializationAttempted = false;
|
|
9248
9323
|
};
|
|
9324
|
+
/**
|
|
9325
|
+
*
|
|
9326
|
+
* Reset the formvalues
|
|
9327
|
+
*/
|
|
9328
|
+
const resetForm = () => {
|
|
9329
|
+
formValues.value = {};
|
|
9330
|
+
formErrors.value = {};
|
|
9331
|
+
touchedFields.value = {};
|
|
9332
|
+
apiError.value = null;
|
|
9333
|
+
isFormValid.value = true;
|
|
9334
|
+
};
|
|
9249
9335
|
(0, vue.watch)(() => [props.isInitialized, isFlowInitialized.value], ([initialized, flowInit]) => {
|
|
9250
9336
|
if (initialized && !flowInit && !initializationAttempted) {
|
|
9251
9337
|
initializationAttempted = true;
|
|
@@ -9365,7 +9451,7 @@ const BaseInviteUser = (0, vue.defineComponent)({
|
|
|
9365
9451
|
variant: "outline"
|
|
9366
9452
|
}, () => "Invite Another User")])
|
|
9367
9453
|
])]);
|
|
9368
|
-
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderInviteUserComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, handleInputChange, {
|
|
9454
|
+
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderInviteUserComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, resetForm, handleInputChange, {
|
|
9369
9455
|
meta,
|
|
9370
9456
|
onInputBlur: handleInputBlur,
|
|
9371
9457
|
onSubmit: handleSubmit,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callback.d.ts","sourceRoot":"","sources":["../../../src/components/auth/Callback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"Callback.d.ts","sourceRoot":"","sources":["../../../src/components/auth/Callback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,SAAS,EAAqC,MAAM,KAAK,CAAC;AAYvE;;;;;;;;;;GAUG;AACH,QAAA,MAAM,QAAQ,EAAE,SAmId,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -22,7 +22,7 @@ export type { TranslationFn };
|
|
|
22
22
|
/**
|
|
23
23
|
* Processes an array of components and renders them as VNodes for sign-in.
|
|
24
24
|
*/
|
|
25
|
-
export declare const renderSignInComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, onInputChange: (name: string, value: string) => void, options?: {
|
|
25
|
+
export declare const renderSignInComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, resetForm: () => void, onInputChange: (name: string, value: string) => void, options?: {
|
|
26
26
|
additionalData?: Record<string, any>;
|
|
27
27
|
buttonClassName?: string;
|
|
28
28
|
inputClassName?: string;
|
|
@@ -38,7 +38,7 @@ export declare const renderSignInComponents: (components: EmbeddedFlowComponent[
|
|
|
38
38
|
* Processes an array of components and renders them as VNodes for sign-up.
|
|
39
39
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
40
40
|
*/
|
|
41
|
-
export declare const renderSignUpComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, onInputChange: (name: string, value: string) => void, options?: {
|
|
41
|
+
export declare const renderSignUpComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, resetForm: () => void, onInputChange: (name: string, value: string) => void, options?: {
|
|
42
42
|
additionalData?: Record<string, any>;
|
|
43
43
|
buttonClassName?: string;
|
|
44
44
|
inputClassName?: string;
|
|
@@ -54,7 +54,7 @@ export declare const renderSignUpComponents: (components: EmbeddedFlowComponent[
|
|
|
54
54
|
* Processes an array of components and renders them as VNodes for invite-user flows.
|
|
55
55
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
56
56
|
*/
|
|
57
|
-
export declare const renderInviteUserComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, onInputChange: (name: string, value: string) => void, options?: {
|
|
57
|
+
export declare const renderInviteUserComponents: (components: EmbeddedFlowComponent[], formValues: Record<string, string>, touchedFields: Record<string, boolean>, formErrors: Record<string, string>, isLoading: boolean, isFormValid: boolean, resetForm: () => void, onInputChange: (name: string, value: string) => void, options?: {
|
|
58
58
|
additionalData?: Record<string, any>;
|
|
59
59
|
buttonClassName?: string;
|
|
60
60
|
inputClassName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthOptionFactoryCore.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/sign-in/AuthOptionFactoryCore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEL,oBAAoB,EACpB,qBAAqB,EAYtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAI,KAAK,KAAK,EAAC,MAAM,KAAK,CAAC;AA+ClC,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"AuthOptionFactoryCore.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/sign-in/AuthOptionFactoryCore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEL,oBAAoB,EACpB,qBAAqB,EAYtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAI,KAAK,KAAK,EAAC,MAAM,KAAK,CAAC;AA+ClC,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AA0YvF,YAAY,EAAC,aAAa,EAAC,CAAC;AAE5B;;GAEG;AACH,eAAO,MAAM,sBAAsB,GACjC,YAAY,qBAAqB,EAAE,EACnC,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,eAAe,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,WAAW,OAAO,EAClB,aAAa,OAAO,EACpB,WAAW,MAAM,IAAI,EACrB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,EACpD,UAAU;IACR,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,eAAe,CAAC,EAAE,M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AAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,yBAAyB,EAAE,SAAS,EAAE,qBAAqB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnG,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;CAC5C;AAwBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,QAAA,MAAM,UAAU,EAAE,SAuRhB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/sign-in/SignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,qBAAqB,EAErB,yBAAyB,EAIzB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EAWf,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/sign-in/SignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,qBAAqB,EAErB,yBAAyB,EAIzB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,SAAS,EAWf,MAAM,KAAK,CAAC;AAmBb;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE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;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;CAC5C;AA8BD;;;;;GAKG;AACH,QAAA,MAAM,UAAU,EAAE,SAilBhB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseAcceptInvite.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/accept-invite/BaseAcceptInvite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"BaseAcceptInvite.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/accept-invite/BaseAcceptInvite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAA4C,MAAM,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AE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;CACnC;AAED;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,EAAE,SAmdtB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInviteUser.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/invite-user/BaseInviteUser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAmB,oBAAoB,EAA2B,MAAM,oBAAoB,CAAC;AACpG,OAAO,EACL,KAAK,SAAS,EASf,MAAM,KAAK,CAAC;AAWb;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE;QACL,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,EAAE;YACL,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;SACpB,CAAC;KACH,CAAC;IACF,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAA;SAAC,CAAC;QACpE,OAAO,EAAE;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAA;SAAC,CAAC;KACjE,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,YAAY,GAAG,UAAU,GAAG,OAAO,CAAC;IAChD,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,GAAG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AO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAChF,qBAAqB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC5E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;CACnC;AAED;;;;GAIG;AACH,QAAA,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"BaseInviteUser.d.ts","sourceRoot":"","sources":["../../../../src/components/presentation/invite-user/BaseInviteUser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAmB,oBAAoB,EAA2B,MAAM,oBAAoB,CAAC;AACpG,OAAO,EACL,KAAK,SAAS,EASf,MAAM,KAAK,CAAC;AAWb;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE;QACL,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,EAAE;YACL,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;SACpB,CAAC;KACH,CAAC;IACF,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAA;SAAC,CAAC;QACpE,OAAO,EAAE;YAAC,G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,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC1D,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAChF,qBAAqB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC5E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;CACnC;AAED;;;;GAIG;AACH,QAAA,MAAM,cAAc,EAAE,SAqcpB,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, TranslationBundleConstants, WellKnownSchemaIds, arrayBufferToBase64url, base64urlToArrayBuffer, createClassObserver, createClassObserver as createClassObserver$1, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createPackageComponentLogger, createPackageLogger, createTheme, deepMerge, detectThemeMode, detectThemeMode as detectThemeMode$1, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, extractEmojiFromUri, extractUserClaimsFromIdToken, flattenUserSchema, generateFlattenedUserProfile, generateUserProfile, get, getActiveTheme, getDefaultI18nBundles, getFlowMeta, getSchemas, getScim2Me, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, http, isEmojiUri, isEmpty, navigate, navigate as navigate$1, normalizeTranslations, resolveFlowTemplateLiterals, updateMeProfile, withVendorCSSClassPrefix } from "@thunderid/browser";
|
|
1
|
+
import { DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, TranslationBundleConstants, WellKnownSchemaIds, arrayBufferToBase64url, base64urlToArrayBuffer, createClassObserver, createClassObserver as createClassObserver$1, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createPackageComponentLogger, createPackageLogger, createTheme, deepMerge, detectThemeMode, detectThemeMode as detectThemeMode$1, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, extractEmojiFromUri, extractUserClaimsFromIdToken, flattenUserSchema, generateFlattenedUserProfile, generateUserProfile, get, getActiveTheme, getDefaultI18nBundles, getFlowMeta, getSchemas, getScim2Me, getVendorPrefix, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, http, isEmojiUri, isEmpty, navigate, navigate as navigate$1, normalizeTranslations, resolveFlowTemplateLiterals, updateMeProfile, withVendorCSSClassPrefix } from "@thunderid/browser";
|
|
2
2
|
import { Fragment, computed, defineComponent, h, inject, nextTick, onBeforeUnmount, onMounted, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, watch } from "vue";
|
|
3
3
|
import DOMPurify from "dompurify";
|
|
4
4
|
|
|
@@ -274,7 +274,6 @@ const createVueLogger = (component) => createPackageComponentLogger(PACKAGE_NAME
|
|
|
274
274
|
//#endregion
|
|
275
275
|
//#region src/providers/I18nProvider.ts
|
|
276
276
|
const logger$4 = createVueLogger("I18nProvider");
|
|
277
|
-
const DEFAULT_STORAGE_KEY = "thunderid-i18n-language";
|
|
278
277
|
const DEFAULT_URL_PARAM = "lang";
|
|
279
278
|
const deriveRootDomain = (hostname) => {
|
|
280
279
|
const parts = hostname.split(".");
|
|
@@ -339,14 +338,20 @@ const detectBrowserLanguage = () => {
|
|
|
339
338
|
};
|
|
340
339
|
const I18nProvider = defineComponent({
|
|
341
340
|
name: "I18nProvider",
|
|
342
|
-
props: {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
341
|
+
props: {
|
|
342
|
+
preferences: {
|
|
343
|
+
default: void 0,
|
|
344
|
+
type: Object
|
|
345
|
+
},
|
|
346
|
+
vendor: {
|
|
347
|
+
default: void 0,
|
|
348
|
+
type: String
|
|
349
|
+
}
|
|
350
|
+
},
|
|
346
351
|
setup(props, { slots }) {
|
|
347
352
|
const defaultBundles = getDefaultI18nBundles();
|
|
348
353
|
const storageStrategy = props.preferences?.storageStrategy ?? "cookie";
|
|
349
|
-
const storageKey = props.preferences?.storageKey ??
|
|
354
|
+
const storageKey = props.preferences?.storageKey ?? `${getVendorPrefix(props.vendor)}-i18n-language`;
|
|
350
355
|
const urlParamConfig = props.preferences?.urlParam === void 0 ? DEFAULT_URL_PARAM : props.preferences.urlParam;
|
|
351
356
|
const storage = createStorageAdapter(storageStrategy, storageKey, storageStrategy === "cookie" ? props.preferences?.cookieDomain ?? (typeof window !== "undefined" ? deriveRootDomain(window.location.hostname) : void 0) : void 0);
|
|
352
357
|
const determineInitialLanguage = () => {
|
|
@@ -877,10 +882,15 @@ const ThunderIDProvider = defineComponent({
|
|
|
877
882
|
syncSession: {
|
|
878
883
|
default: void 0,
|
|
879
884
|
type: Boolean
|
|
885
|
+
},
|
|
886
|
+
vendor: {
|
|
887
|
+
default: void 0,
|
|
888
|
+
type: String
|
|
880
889
|
}
|
|
881
890
|
},
|
|
882
891
|
setup(props, { slots }) {
|
|
883
892
|
const client = new ThunderIDVueClient_default(props.instanceId);
|
|
893
|
+
const vendor = getVendorPrefix(props.vendor);
|
|
884
894
|
const isSignedIn = ref(false);
|
|
885
895
|
const isInitialized = ref(false);
|
|
886
896
|
const isLoading = ref(true);
|
|
@@ -904,7 +914,8 @@ const ThunderIDProvider = defineComponent({
|
|
|
904
914
|
signInUrl: props.signInUrl,
|
|
905
915
|
signUpUrl: props.signUpUrl,
|
|
906
916
|
storage: props.storage,
|
|
907
|
-
syncSession: props.syncSession
|
|
917
|
+
syncSession: props.syncSession,
|
|
918
|
+
vendor
|
|
908
919
|
};
|
|
909
920
|
}
|
|
910
921
|
async function updateSession() {
|
|
@@ -1001,14 +1012,15 @@ const ThunderIDProvider = defineComponent({
|
|
|
1001
1012
|
signUp,
|
|
1002
1013
|
signUpUrl: props.signUpUrl,
|
|
1003
1014
|
storage: props.storage,
|
|
1004
|
-
user
|
|
1015
|
+
user,
|
|
1016
|
+
vendor
|
|
1005
1017
|
});
|
|
1006
1018
|
onMounted(async () => {
|
|
1007
1019
|
const config = buildConfig();
|
|
1008
1020
|
await client.initialize(config);
|
|
1009
1021
|
await client.getDiscoveryResponse();
|
|
1010
1022
|
const initializedConfig = await client.getConfiguration();
|
|
1011
|
-
if (initializedConfig?.baseUrl) sessionStorage.setItem(
|
|
1023
|
+
if (initializedConfig?.baseUrl) sessionStorage.setItem(`${vendor}_base_url`, initializedConfig.baseUrl);
|
|
1012
1024
|
try {
|
|
1013
1025
|
isInitialized.value = await client.isInitialized();
|
|
1014
1026
|
} catch {
|
|
@@ -1024,7 +1036,7 @@ const ThunderIDProvider = defineComponent({
|
|
|
1024
1036
|
const urlParams = currentUrl.searchParams;
|
|
1025
1037
|
const code = urlParams.get("code");
|
|
1026
1038
|
const executionIdFromUrl = urlParams.get("executionId");
|
|
1027
|
-
const storedExecutionId = sessionStorage.getItem(
|
|
1039
|
+
const storedExecutionId = sessionStorage.getItem(`${vendor}_execution_id`);
|
|
1028
1040
|
if (code && !executionIdFromUrl && !storedExecutionId) await signIn();
|
|
1029
1041
|
} catch (error) {
|
|
1030
1042
|
throw new ThunderIDRuntimeError$1(`Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`, "thunderid-signIn-Error", "vue", "An error occurred while trying to sign in.");
|
|
@@ -1056,7 +1068,7 @@ const ThunderIDProvider = defineComponent({
|
|
|
1056
1068
|
if (signInCheckInterval) clearInterval(signInCheckInterval);
|
|
1057
1069
|
if (loadingCheckInterval) clearInterval(loadingCheckInterval);
|
|
1058
1070
|
});
|
|
1059
|
-
return () => h(I18nProvider_default,
|
|
1071
|
+
return () => h(I18nProvider_default, { vendor }, { default: () => h(FlowMetaProvider_default, { enabled: true }, { default: () => h(ThemeProvider_default, null, { default: () => h(FlowProvider_default, null, { default: () => h(UserProvider_default, {
|
|
1060
1072
|
onUpdateProfile: (updatedUser) => {
|
|
1061
1073
|
user.value = updatedUser;
|
|
1062
1074
|
userProfile.value = {
|
|
@@ -3577,7 +3589,6 @@ var Typography_css_default = TYPOGRAPHY_CSS;
|
|
|
3577
3589
|
|
|
3578
3590
|
//#endregion
|
|
3579
3591
|
//#region src/styles/injectStyles.ts
|
|
3580
|
-
const STYLE_ID = "thunderid-vue-styles";
|
|
3581
3592
|
/**
|
|
3582
3593
|
* Assembled CSS for all ThunderID Vue components.
|
|
3583
3594
|
* Order is intentional:
|
|
@@ -3608,12 +3619,16 @@ const STYLES = [
|
|
|
3608
3619
|
/**
|
|
3609
3620
|
* Injects ThunderID Vue component styles into the document `<head>` once.
|
|
3610
3621
|
* Subsequent calls are no-ops (idempotent).
|
|
3622
|
+
*
|
|
3623
|
+
* @param vendor - Vendor/brand namespace used to derive the dedupe `<style>` element id
|
|
3624
|
+
* (e.g. `${vendor}-vue-styles`). Defaults to `VendorConstants.VENDOR_PREFIX`.
|
|
3611
3625
|
*/
|
|
3612
|
-
function injectStyles() {
|
|
3626
|
+
function injectStyles(vendor) {
|
|
3613
3627
|
if (typeof document === "undefined") return;
|
|
3614
|
-
|
|
3628
|
+
const styleId = `${getVendorPrefix(vendor)}-vue-styles`;
|
|
3629
|
+
if (document.getElementById(styleId)) return;
|
|
3615
3630
|
const style = document.createElement("style");
|
|
3616
|
-
style.id =
|
|
3631
|
+
style.id = styleId;
|
|
3617
3632
|
style.textContent = STYLES;
|
|
3618
3633
|
document.head.appendChild(style);
|
|
3619
3634
|
}
|
|
@@ -3647,7 +3662,7 @@ function injectStyles() {
|
|
|
3647
3662
|
* ```
|
|
3648
3663
|
*/
|
|
3649
3664
|
const ThunderIDPlugin = { install(app, options) {
|
|
3650
|
-
injectStyles();
|
|
3665
|
+
injectStyles(options?.vendor);
|
|
3651
3666
|
if (options?.mode === "delegated") return;
|
|
3652
3667
|
app.component("ThunderIDProvider", ThunderIDProvider_default);
|
|
3653
3668
|
} };
|
|
@@ -5230,6 +5245,7 @@ const Callback = defineComponent({
|
|
|
5230
5245
|
}
|
|
5231
5246
|
},
|
|
5232
5247
|
setup(props) {
|
|
5248
|
+
const vendor = getVendorPrefix(inject(THUNDERID_KEY, null)?.vendor);
|
|
5233
5249
|
const navigate$2 = (path) => {
|
|
5234
5250
|
if (props.onNavigate) props.onNavigate(path);
|
|
5235
5251
|
else navigate$1(path);
|
|
@@ -5255,7 +5271,7 @@ const Callback = defineComponent({
|
|
|
5255
5271
|
return;
|
|
5256
5272
|
}
|
|
5257
5273
|
if (!state) throw new Error("Missing OAuth state parameter - possible security issue");
|
|
5258
|
-
const storedData = sessionStorage.getItem(
|
|
5274
|
+
const storedData = sessionStorage.getItem(`${vendor}_oauth_${state}`);
|
|
5259
5275
|
if (!storedData) {
|
|
5260
5276
|
if (oauthError) {
|
|
5261
5277
|
const errorMsg = errorDescription || oauthError || "OAuth authentication failed";
|
|
@@ -5272,10 +5288,10 @@ const Callback = defineComponent({
|
|
|
5272
5288
|
const { path, timestamp } = JSON.parse(storedData);
|
|
5273
5289
|
returnPath = path || "/";
|
|
5274
5290
|
if (Date.now() - timestamp > 3e5) {
|
|
5275
|
-
sessionStorage.removeItem(
|
|
5291
|
+
sessionStorage.removeItem(`${vendor}_oauth_${state}`);
|
|
5276
5292
|
throw new Error("OAuth state expired - please try again");
|
|
5277
5293
|
}
|
|
5278
|
-
sessionStorage.removeItem(
|
|
5294
|
+
sessionStorage.removeItem(`${vendor}_oauth_${state}`);
|
|
5279
5295
|
if (oauthError) {
|
|
5280
5296
|
const errorMsg = errorDescription || oauthError || "OAuth authentication failed";
|
|
5281
5297
|
const err = new Error(errorMsg);
|
|
@@ -5736,7 +5752,7 @@ const matchesSocialProvider = (actionId, eventType, buttonText, provider) => {
|
|
|
5736
5752
|
/**
|
|
5737
5753
|
* Create an auth component (VNode) from a flow component configuration.
|
|
5738
5754
|
*/
|
|
5739
|
-
const createAuthComponentFromFlow = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options = {}) => {
|
|
5755
|
+
const createAuthComponentFromFlow = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options = {}) => {
|
|
5740
5756
|
const key = options.key ?? component.id;
|
|
5741
5757
|
/** Resolve any remaining {{t()}} or {{meta()}} template expressions in a string at render time. */
|
|
5742
5758
|
const resolve = (text) => {
|
|
@@ -5772,7 +5788,14 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5772
5788
|
const eventType = component.eventType || "";
|
|
5773
5789
|
const buttonText = resolve(component.label);
|
|
5774
5790
|
const componentVariant = component.variant || "";
|
|
5775
|
-
const shouldSkipValidation = eventType.toUpperCase()
|
|
5791
|
+
const shouldSkipValidation = eventType.toUpperCase() !== EmbeddedFlowEventType$1.Submit;
|
|
5792
|
+
const buttonType = {
|
|
5793
|
+
[EmbeddedFlowEventType$1.Submit]: "submit",
|
|
5794
|
+
[EmbeddedFlowEventType$1.Reset]: "reset",
|
|
5795
|
+
[EmbeddedFlowEventType$1.Cancel]: "button",
|
|
5796
|
+
[EmbeddedFlowEventType$1.Trigger]: "button",
|
|
5797
|
+
[EmbeddedFlowEventType$1.Back]: "button"
|
|
5798
|
+
}[eventType.toUpperCase()] ?? "submit";
|
|
5776
5799
|
const handleClick = () => {
|
|
5777
5800
|
if (options.onSubmit) {
|
|
5778
5801
|
const formData = {};
|
|
@@ -5795,7 +5818,11 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5795
5818
|
})) };
|
|
5796
5819
|
formData["consent_decisions"] = JSON.stringify(decisions);
|
|
5797
5820
|
}
|
|
5798
|
-
options.onSubmit(component, formData, shouldSkipValidation);
|
|
5821
|
+
if (eventType.toUpperCase() === EmbeddedFlowEventType$1.Submit) options.onSubmit(component, formData, shouldSkipValidation);
|
|
5822
|
+
else {
|
|
5823
|
+
resetForm();
|
|
5824
|
+
options.onSubmit(component, {}, shouldSkipValidation);
|
|
5825
|
+
}
|
|
5799
5826
|
}
|
|
5800
5827
|
};
|
|
5801
5828
|
if (matchesSocialProvider(actionId, eventType, buttonText, "google")) return h(GoogleButton_default, {
|
|
@@ -5848,7 +5875,8 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5848
5875
|
key,
|
|
5849
5876
|
onClick: handleClick,
|
|
5850
5877
|
startIcon: startIconVNode ?? void 0,
|
|
5851
|
-
variant: component.variant?.toLowerCase() === "primary" ? "solid" : "outline"
|
|
5878
|
+
variant: component.variant?.toLowerCase() === "primary" ? "solid" : "outline",
|
|
5879
|
+
type: buttonType
|
|
5852
5880
|
}, { default: () => buttonText || "Submit" });
|
|
5853
5881
|
}
|
|
5854
5882
|
case EmbeddedFlowComponentType$1.Text: {
|
|
@@ -5890,7 +5918,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5890
5918
|
}
|
|
5891
5919
|
case EmbeddedFlowComponentType$1.Block:
|
|
5892
5920
|
if (component.components && component.components.length > 0) {
|
|
5893
|
-
const blockChildren = component.components.map((childComponent, index) => createAuthComponentFromFlow(childComponent, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
5921
|
+
const blockChildren = component.components.map((childComponent, index) => createAuthComponentFromFlow(childComponent, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
5894
5922
|
...options,
|
|
5895
5923
|
key: childComponent.id || `${component.id}_${index}`
|
|
5896
5924
|
})).filter(Boolean);
|
|
@@ -5935,7 +5963,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5935
5963
|
gap: `${gap * .5}rem`,
|
|
5936
5964
|
justifyContent: justify
|
|
5937
5965
|
};
|
|
5938
|
-
const stackChildren = component.components ? component.components.map((childComponent, index) => createAuthComponentFromFlow(childComponent, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
5966
|
+
const stackChildren = component.components ? component.components.map((childComponent, index) => createAuthComponentFromFlow(childComponent, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
5939
5967
|
...options,
|
|
5940
5968
|
inStack: true,
|
|
5941
5969
|
key: childComponent.id || `${component.id}_${index}`
|
|
@@ -5966,7 +5994,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5966
5994
|
/**
|
|
5967
5995
|
* Processes an array of components and renders them as VNodes for sign-in.
|
|
5968
5996
|
*/
|
|
5969
|
-
const renderSignInComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
5997
|
+
const renderSignInComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
5970
5998
|
...options,
|
|
5971
5999
|
key: component.id || index
|
|
5972
6000
|
})).filter((v) => v !== null);
|
|
@@ -5974,7 +6002,7 @@ const renderSignInComponents = (components, formValues, touchedFields, formError
|
|
|
5974
6002
|
* Processes an array of components and renders them as VNodes for sign-up.
|
|
5975
6003
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
5976
6004
|
*/
|
|
5977
|
-
const renderSignUpComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
6005
|
+
const renderSignUpComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
5978
6006
|
...options,
|
|
5979
6007
|
key: component.id || index
|
|
5980
6008
|
})).filter((v) => v !== null);
|
|
@@ -5982,7 +6010,7 @@ const renderSignUpComponents = (components, formValues, touchedFields, formError
|
|
|
5982
6010
|
* Processes an array of components and renders them as VNodes for invite-user flows.
|
|
5983
6011
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
5984
6012
|
*/
|
|
5985
|
-
const renderInviteUserComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, {
|
|
6013
|
+
const renderInviteUserComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
|
|
5986
6014
|
...options,
|
|
5987
6015
|
key: component.id || index
|
|
5988
6016
|
})).filter((v) => v !== null);
|
|
@@ -6326,7 +6354,23 @@ const BaseSignIn = defineComponent({
|
|
|
6326
6354
|
isSubmitting.value = false;
|
|
6327
6355
|
}
|
|
6328
6356
|
};
|
|
6329
|
-
|
|
6357
|
+
/**
|
|
6358
|
+
*
|
|
6359
|
+
* Reset the formvalues
|
|
6360
|
+
*/
|
|
6361
|
+
const resetForm = () => {
|
|
6362
|
+
const fields = extractFormFields$1(props.components || []);
|
|
6363
|
+
const freshValues = {};
|
|
6364
|
+
fields.forEach((f) => {
|
|
6365
|
+
freshValues[f.name] = "";
|
|
6366
|
+
});
|
|
6367
|
+
formValues.value = freshValues;
|
|
6368
|
+
touchedFields.value = {};
|
|
6369
|
+
isSubmitting.value = false;
|
|
6370
|
+
apiError.value = null;
|
|
6371
|
+
clearMessages();
|
|
6372
|
+
};
|
|
6373
|
+
const renderComponents = () => renderSignInComponents(props.components || [], formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, resetForm, handleInputChange, {
|
|
6330
6374
|
additionalData: props.additionalData,
|
|
6331
6375
|
buttonClassName: props.buttonClassName,
|
|
6332
6376
|
inputClassName: props.inputClassName,
|
|
@@ -6397,13 +6441,14 @@ var BaseSignIn_default = BaseSignIn;
|
|
|
6397
6441
|
* Generates random state, stores return path in sessionStorage, and redirects to OAuth provider.
|
|
6398
6442
|
*
|
|
6399
6443
|
* @param redirectURL - OAuth authorization URL from the server
|
|
6444
|
+
* @param vendor - Vendor/brand namespace used to prefix the sessionStorage key. Defaults to `'thunderid'`.
|
|
6400
6445
|
*/
|
|
6401
|
-
function initiateOAuthRedirect(redirectURL) {
|
|
6446
|
+
function initiateOAuthRedirect(redirectURL, vendor) {
|
|
6402
6447
|
const basePath = document.querySelector("base")?.getAttribute("href") || "";
|
|
6403
6448
|
let returnPath = window.location.pathname;
|
|
6404
6449
|
if (basePath && returnPath.startsWith(basePath)) returnPath = returnPath.slice(basePath.length) || "/";
|
|
6405
6450
|
const state = crypto.randomUUID();
|
|
6406
|
-
sessionStorage.setItem(
|
|
6451
|
+
sessionStorage.setItem(`${getVendorPrefix(vendor)}_oauth_${state}`, JSON.stringify({
|
|
6407
6452
|
path: returnPath,
|
|
6408
6453
|
timestamp: Date.now()
|
|
6409
6454
|
}));
|
|
@@ -6500,7 +6545,6 @@ const handlePasskeyAuthentication = async (challengeData) => {
|
|
|
6500
6545
|
|
|
6501
6546
|
//#endregion
|
|
6502
6547
|
//#region src/components/auth/sign-in/SignIn.ts
|
|
6503
|
-
const EXECUTION_ID_STORAGE_KEY = "thunderid_execution_id";
|
|
6504
6548
|
/**
|
|
6505
6549
|
* SignIn — app-native sign-in component with full flow lifecycle management.
|
|
6506
6550
|
*
|
|
@@ -6539,9 +6583,10 @@ const SignIn = defineComponent({
|
|
|
6539
6583
|
},
|
|
6540
6584
|
emits: ["error", "success"],
|
|
6541
6585
|
setup(props, { slots, emit, attrs }) {
|
|
6542
|
-
const { applicationId, afterSignInUrl, signIn, isInitialized, isLoading: sdkLoading, scopes, getStorageManager } = useThunderID_default();
|
|
6586
|
+
const { applicationId, afterSignInUrl, signIn, isInitialized, isLoading: sdkLoading, scopes, getStorageManager, vendor } = useThunderID_default();
|
|
6543
6587
|
const { meta: flowMeta } = useFlowMeta_default();
|
|
6544
6588
|
const { t } = useI18n_default();
|
|
6589
|
+
const executionIdStorageKey = `${vendor}_execution_id`;
|
|
6545
6590
|
const components = ref([]);
|
|
6546
6591
|
const additionalData = ref({});
|
|
6547
6592
|
const currentExecutionId = ref(null);
|
|
@@ -6562,8 +6607,8 @@ const SignIn = defineComponent({
|
|
|
6562
6607
|
let passkeyProcessed = false;
|
|
6563
6608
|
const persistExecutionId = (executionId) => {
|
|
6564
6609
|
currentExecutionId.value = executionId;
|
|
6565
|
-
if (executionId) sessionStorage.setItem(
|
|
6566
|
-
else sessionStorage.removeItem(
|
|
6610
|
+
if (executionId) sessionStorage.setItem(executionIdStorageKey, executionId);
|
|
6611
|
+
else sessionStorage.removeItem(executionIdStorageKey);
|
|
6567
6612
|
};
|
|
6568
6613
|
const clearFlowState = async () => {
|
|
6569
6614
|
persistExecutionId(null);
|
|
@@ -6643,7 +6688,7 @@ const SignIn = defineComponent({
|
|
|
6643
6688
|
const sm = getStorageManager();
|
|
6644
6689
|
if (sm) await sm.setHybridDataParameter("authId", urlParams.authId);
|
|
6645
6690
|
}
|
|
6646
|
-
initiateOAuthRedirect(redirectURL);
|
|
6691
|
+
initiateOAuthRedirect(redirectURL, vendor);
|
|
6647
6692
|
return;
|
|
6648
6693
|
}
|
|
6649
6694
|
}
|
|
@@ -6717,7 +6762,7 @@ const SignIn = defineComponent({
|
|
|
6717
6762
|
const sm = getStorageManager();
|
|
6718
6763
|
if (sm) await sm.setHybridDataParameter("authId", urlParams.authId);
|
|
6719
6764
|
}
|
|
6720
|
-
initiateOAuthRedirect(redirectURL);
|
|
6765
|
+
initiateOAuthRedirect(redirectURL, vendor);
|
|
6721
6766
|
return;
|
|
6722
6767
|
}
|
|
6723
6768
|
}
|
|
@@ -6850,7 +6895,7 @@ const SignIn = defineComponent({
|
|
|
6850
6895
|
}, { deep: true });
|
|
6851
6896
|
useOAuthCallback({
|
|
6852
6897
|
currentFlowId: currentExecutionId,
|
|
6853
|
-
flowIdStorageKey:
|
|
6898
|
+
flowIdStorageKey: executionIdStorageKey,
|
|
6854
6899
|
isInitialized,
|
|
6855
6900
|
isSubmitting,
|
|
6856
6901
|
onError: (err) => {
|
|
@@ -7175,6 +7220,22 @@ const BaseSignUp = defineComponent({
|
|
|
7175
7220
|
isValid: valid
|
|
7176
7221
|
};
|
|
7177
7222
|
};
|
|
7223
|
+
/**
|
|
7224
|
+
*
|
|
7225
|
+
* Reset the formvalues
|
|
7226
|
+
*/
|
|
7227
|
+
const resetForm = () => {
|
|
7228
|
+
const fields = extractFormFields(props.components || []);
|
|
7229
|
+
const freshValues = {};
|
|
7230
|
+
fields.forEach((f) => {
|
|
7231
|
+
freshValues[f.name] = "";
|
|
7232
|
+
});
|
|
7233
|
+
formValues.value = freshValues;
|
|
7234
|
+
touchedFields.value = {};
|
|
7235
|
+
apiError.value = null;
|
|
7236
|
+
formErrors.value = {};
|
|
7237
|
+
isFormValid.value = true;
|
|
7238
|
+
};
|
|
7178
7239
|
const handleInputChange = (name, value) => {
|
|
7179
7240
|
formValues.value = {
|
|
7180
7241
|
...formValues.value,
|
|
@@ -7436,7 +7497,7 @@ const BaseSignUp = defineComponent({
|
|
|
7436
7497
|
}, () => h(Alert_default, { variant: "error" }, () => t("errors.signup.flow.initialization.failure") || "Failed to initialize sign-up flow"));
|
|
7437
7498
|
const { title, subtitle, componentsWithoutHeadings } = getAuthComponentHeadings_default(currentFlow.value.data?.components || [], void 0, void 0, t("signup.heading") || "Sign Up", t("signup.subheading") || "Create your account");
|
|
7438
7499
|
const meta = flowMetaRef.value;
|
|
7439
|
-
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderSignUpComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, handleInputChange, {
|
|
7500
|
+
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderSignUpComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, resetForm, handleInputChange, {
|
|
7440
7501
|
buttonClassName: props.buttonClassName,
|
|
7441
7502
|
inputClassName: props.inputClassName,
|
|
7442
7503
|
meta,
|
|
@@ -8593,6 +8654,8 @@ const BaseAcceptInvite = defineComponent({
|
|
|
8593
8654
|
setup(props, { slots }) {
|
|
8594
8655
|
const { meta: metaRef } = useFlowMeta_default();
|
|
8595
8656
|
const { t } = useI18n_default();
|
|
8657
|
+
const vendor = getVendorPrefix(inject(THUNDERID_KEY, null)?.vendor);
|
|
8658
|
+
const flowIdStorageKey = `${vendor}_flow_id`;
|
|
8596
8659
|
const isLoading = ref(false);
|
|
8597
8660
|
const isValidatingToken = ref(true);
|
|
8598
8661
|
const isTokenInvalid = ref(false);
|
|
@@ -8630,6 +8693,7 @@ const BaseAcceptInvite = defineComponent({
|
|
|
8630
8693
|
};
|
|
8631
8694
|
useOAuthCallback({
|
|
8632
8695
|
currentFlowId: ref(props.flowId ?? null),
|
|
8696
|
+
flowIdStorageKey,
|
|
8633
8697
|
isInitialized: ref(true),
|
|
8634
8698
|
onComplete: () => {
|
|
8635
8699
|
isComplete.value = true;
|
|
@@ -8690,6 +8754,17 @@ const BaseAcceptInvite = defineComponent({
|
|
|
8690
8754
|
isValid: Object.keys(errors).length === 0
|
|
8691
8755
|
};
|
|
8692
8756
|
};
|
|
8757
|
+
/**
|
|
8758
|
+
*
|
|
8759
|
+
* Reset the formvalues
|
|
8760
|
+
*/
|
|
8761
|
+
const resetForm = () => {
|
|
8762
|
+
formValues.value = {};
|
|
8763
|
+
formErrors.value = {};
|
|
8764
|
+
touchedFields.value = {};
|
|
8765
|
+
apiError.value = null;
|
|
8766
|
+
isFormValid.value = true;
|
|
8767
|
+
};
|
|
8693
8768
|
const handleSubmit = async (component, data) => {
|
|
8694
8769
|
if (!currentFlow.value) return;
|
|
8695
8770
|
const validation = validateForm(currentFlow.value.data?.components || []);
|
|
@@ -8722,7 +8797,7 @@ const BaseAcceptInvite = defineComponent({
|
|
|
8722
8797
|
if (response.type === "REDIRECTION") {
|
|
8723
8798
|
const redirectURL = response.data?.redirectURL || response?.redirectURL;
|
|
8724
8799
|
if (redirectURL) {
|
|
8725
|
-
initiateOAuthRedirect(redirectURL);
|
|
8800
|
+
initiateOAuthRedirect(redirectURL, vendor);
|
|
8726
8801
|
return;
|
|
8727
8802
|
}
|
|
8728
8803
|
}
|
|
@@ -8763,7 +8838,7 @@ const BaseAcceptInvite = defineComponent({
|
|
|
8763
8838
|
isValidatingToken.value = true;
|
|
8764
8839
|
apiError.value = null;
|
|
8765
8840
|
try {
|
|
8766
|
-
if (flowId) sessionStorage.setItem(
|
|
8841
|
+
if (flowId) sessionStorage.setItem(flowIdStorageKey, flowId);
|
|
8767
8842
|
const payload = {
|
|
8768
8843
|
flowId,
|
|
8769
8844
|
inputs: { inviteToken },
|
|
@@ -8864,7 +8939,7 @@ const BaseAcceptInvite = defineComponent({
|
|
|
8864
8939
|
variant: "solid"
|
|
8865
8940
|
}, () => "Sign In")]) : null
|
|
8866
8941
|
])]);
|
|
8867
|
-
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderInviteUserComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, handleInputChange, {
|
|
8942
|
+
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderInviteUserComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, resetForm, handleInputChange, {
|
|
8868
8943
|
meta,
|
|
8869
8944
|
onInputBlur: handleInputBlur,
|
|
8870
8945
|
onSubmit: handleSubmit,
|
|
@@ -9220,6 +9295,17 @@ const BaseInviteUser = defineComponent({
|
|
|
9220
9295
|
emailSent.value = false;
|
|
9221
9296
|
initializationAttempted = false;
|
|
9222
9297
|
};
|
|
9298
|
+
/**
|
|
9299
|
+
*
|
|
9300
|
+
* Reset the formvalues
|
|
9301
|
+
*/
|
|
9302
|
+
const resetForm = () => {
|
|
9303
|
+
formValues.value = {};
|
|
9304
|
+
formErrors.value = {};
|
|
9305
|
+
touchedFields.value = {};
|
|
9306
|
+
apiError.value = null;
|
|
9307
|
+
isFormValid.value = true;
|
|
9308
|
+
};
|
|
9223
9309
|
watch(() => [props.isInitialized, isFlowInitialized.value], ([initialized, flowInit]) => {
|
|
9224
9310
|
if (initialized && !flowInit && !initializationAttempted) {
|
|
9225
9311
|
initializationAttempted = true;
|
|
@@ -9339,7 +9425,7 @@ const BaseInviteUser = defineComponent({
|
|
|
9339
9425
|
variant: "outline"
|
|
9340
9426
|
}, () => "Invite Another User")])
|
|
9341
9427
|
])]);
|
|
9342
|
-
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderInviteUserComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, handleInputChange, {
|
|
9428
|
+
const renderedComponents = componentsWithoutHeadings.length > 0 ? renderInviteUserComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading.value, isFormValid.value, resetForm, handleInputChange, {
|
|
9343
9429
|
meta,
|
|
9344
9430
|
onInputBlur: handleInputBlur,
|
|
9345
9431
|
onSubmit: handleSubmit,
|
|
@@ -69,6 +69,11 @@ export interface ThunderIDContext {
|
|
|
69
69
|
storage: ThunderIDVueConfig['storage'] | undefined;
|
|
70
70
|
/** The current user object, or `null` if not signed in. */
|
|
71
71
|
user: Readonly<Ref<any | null>>;
|
|
72
|
+
/**
|
|
73
|
+
* Vendor/brand namespace used to prefix storage keys, cookie names, and CSS class names.
|
|
74
|
+
* Resolved from the `vendor` config option, defaulting to `VendorConstants.VENDOR_PREFIX`.
|
|
75
|
+
*/
|
|
76
|
+
vendor: string;
|
|
72
77
|
}
|
|
73
78
|
/**
|
|
74
79
|
* Shape of the User context exposed by `useUser()`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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@@ export interface ThunderIDPluginOptions {
|
|
|
40
40
|
* initialisation so it is safe to call during SSR.
|
|
41
41
|
*/
|
|
42
42
|
mode?: 'browser' | 'delegated';
|
|
43
|
+
/**
|
|
44
|
+
* Vendor/brand namespace used to prefix the injected `<style>` element's dedupe id.
|
|
45
|
+
* Should match the `vendor` passed to `<ThunderIDProvider>`. Defaults to `VendorConstants.VENDOR_PREFIX`.
|
|
46
|
+
*/
|
|
47
|
+
vendor?: string;
|
|
43
48
|
}
|
|
44
49
|
/**
|
|
45
50
|
* Vue plugin for ThunderID authentication.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderIDPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/ThunderIDPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAM,MAAM,EAAC,MAAM,KAAK,CAAC;AAIrC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ThunderIDPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/ThunderIDPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAM,MAAM,EAAC,MAAM,KAAK,CAAC;AAIrC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAE/B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,eAAe,EAAE,MAAM,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAYtD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../src/providers/I18nProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../src/providers/I18nProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAaH,OAAO,EAQL,KAAK,SAAS,EAKf,MAAM,KAAK,CAAC;AA6Gb,QAAA,MAAM,YAAY,EAAE,SAoLlB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderIDProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ThunderIDProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"ThunderIDProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ThunderIDProvider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAiBH,OAAO,EACL,KAAK,SAAS,EAaf,MAAM,KAAK,CAAC;AAyCb;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB,EAAE,SA2ZvB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
/**
|
|
19
19
|
* Injects ThunderID Vue component styles into the document `<head>` once.
|
|
20
20
|
* Subsequent calls are no-ops (idempotent).
|
|
21
|
+
*
|
|
22
|
+
* @param vendor - Vendor/brand namespace used to derive the dedupe `<style>` element id
|
|
23
|
+
* (e.g. `${vendor}-vue-styles`). Defaults to `VendorConstants.VENDOR_PREFIX`.
|
|
21
24
|
*/
|
|
22
|
-
export declare function injectStyles(): void;
|
|
25
|
+
export declare function injectStyles(vendor?: string): void;
|
|
23
26
|
export default injectStyles;
|
|
24
27
|
//# sourceMappingURL=injectStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectStyles.d.ts","sourceRoot":"","sources":["../../src/styles/injectStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"injectStyles.d.ts","sourceRoot":"","sources":["../../src/styles/injectStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AA2EH;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAWlD;AAED,eAAe,YAAY,CAAC"}
|
package/dist/utils/oauth.d.ts
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
* Generates random state, stores return path in sessionStorage, and redirects to OAuth provider.
|
|
21
21
|
*
|
|
22
22
|
* @param redirectURL - OAuth authorization URL from the server
|
|
23
|
+
* @param vendor - Vendor/brand namespace used to prefix the sessionStorage key. Defaults to `'thunderid'`.
|
|
23
24
|
*/
|
|
24
|
-
export declare function initiateOAuthRedirect(redirectURL: string): void;
|
|
25
|
+
export declare function initiateOAuthRedirect(redirectURL: string, vendor?: string): void;
|
|
25
26
|
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/utils/oauth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/utils/oauth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAsBhF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thunderid/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Vue SDK for ThunderID",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"thunderid",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"dompurify": "3.4.11",
|
|
60
60
|
"tslib": "2.8.1",
|
|
61
|
-
"@thunderid/browser": "^0.
|
|
61
|
+
"@thunderid/browser": "^0.6.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|