@thunderid/vue 0.5.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 +79 -13
- 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-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 +79 -13
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -5778,7 +5778,7 @@ const matchesSocialProvider = (actionId, eventType, buttonText, provider) => {
|
|
|
5778
5778
|
/**
|
|
5779
5779
|
* Create an auth component (VNode) from a flow component configuration.
|
|
5780
5780
|
*/
|
|
5781
|
-
const createAuthComponentFromFlow = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options = {}) => {
|
|
5781
|
+
const createAuthComponentFromFlow = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options = {}) => {
|
|
5782
5782
|
const key = options.key ?? component.id;
|
|
5783
5783
|
/** Resolve any remaining {{t()}} or {{meta()}} template expressions in a string at render time. */
|
|
5784
5784
|
const resolve = (text) => {
|
|
@@ -5814,7 +5814,14 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5814
5814
|
const eventType = component.eventType || "";
|
|
5815
5815
|
const buttonText = resolve(component.label);
|
|
5816
5816
|
const componentVariant = component.variant || "";
|
|
5817
|
-
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";
|
|
5818
5825
|
const handleClick = () => {
|
|
5819
5826
|
if (options.onSubmit) {
|
|
5820
5827
|
const formData = {};
|
|
@@ -5837,7 +5844,11 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5837
5844
|
})) };
|
|
5838
5845
|
formData["consent_decisions"] = JSON.stringify(decisions);
|
|
5839
5846
|
}
|
|
5840
|
-
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
|
+
}
|
|
5841
5852
|
}
|
|
5842
5853
|
};
|
|
5843
5854
|
if (matchesSocialProvider(actionId, eventType, buttonText, "google")) return (0, vue.h)(GoogleButton_default, {
|
|
@@ -5890,7 +5901,8 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5890
5901
|
key,
|
|
5891
5902
|
onClick: handleClick,
|
|
5892
5903
|
startIcon: startIconVNode ?? void 0,
|
|
5893
|
-
variant: component.variant?.toLowerCase() === "primary" ? "solid" : "outline"
|
|
5904
|
+
variant: component.variant?.toLowerCase() === "primary" ? "solid" : "outline",
|
|
5905
|
+
type: buttonType
|
|
5894
5906
|
}, { default: () => buttonText || "Submit" });
|
|
5895
5907
|
}
|
|
5896
5908
|
case __thunderid_browser.EmbeddedFlowComponentType.Text: {
|
|
@@ -5932,7 +5944,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5932
5944
|
}
|
|
5933
5945
|
case __thunderid_browser.EmbeddedFlowComponentType.Block:
|
|
5934
5946
|
if (component.components && component.components.length > 0) {
|
|
5935
|
-
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, {
|
|
5936
5948
|
...options,
|
|
5937
5949
|
key: childComponent.id || `${component.id}_${index}`
|
|
5938
5950
|
})).filter(Boolean);
|
|
@@ -5977,7 +5989,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5977
5989
|
gap: `${gap * .5}rem`,
|
|
5978
5990
|
justifyContent: justify
|
|
5979
5991
|
};
|
|
5980
|
-
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, {
|
|
5981
5993
|
...options,
|
|
5982
5994
|
inStack: true,
|
|
5983
5995
|
key: childComponent.id || `${component.id}_${index}`
|
|
@@ -6008,7 +6020,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
6008
6020
|
/**
|
|
6009
6021
|
* Processes an array of components and renders them as VNodes for sign-in.
|
|
6010
6022
|
*/
|
|
6011
|
-
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, {
|
|
6012
6024
|
...options,
|
|
6013
6025
|
key: component.id || index
|
|
6014
6026
|
})).filter((v) => v !== null);
|
|
@@ -6016,7 +6028,7 @@ const renderSignInComponents = (components, formValues, touchedFields, formError
|
|
|
6016
6028
|
* Processes an array of components and renders them as VNodes for sign-up.
|
|
6017
6029
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
6018
6030
|
*/
|
|
6019
|
-
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, {
|
|
6020
6032
|
...options,
|
|
6021
6033
|
key: component.id || index
|
|
6022
6034
|
})).filter((v) => v !== null);
|
|
@@ -6024,7 +6036,7 @@ const renderSignUpComponents = (components, formValues, touchedFields, formError
|
|
|
6024
6036
|
* Processes an array of components and renders them as VNodes for invite-user flows.
|
|
6025
6037
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
6026
6038
|
*/
|
|
6027
|
-
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, {
|
|
6028
6040
|
...options,
|
|
6029
6041
|
key: component.id || index
|
|
6030
6042
|
})).filter((v) => v !== null);
|
|
@@ -6368,7 +6380,23 @@ const BaseSignIn = (0, vue.defineComponent)({
|
|
|
6368
6380
|
isSubmitting.value = false;
|
|
6369
6381
|
}
|
|
6370
6382
|
};
|
|
6371
|
-
|
|
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, {
|
|
6372
6400
|
additionalData: props.additionalData,
|
|
6373
6401
|
buttonClassName: props.buttonClassName,
|
|
6374
6402
|
inputClassName: props.inputClassName,
|
|
@@ -7218,6 +7246,22 @@ const BaseSignUp = (0, vue.defineComponent)({
|
|
|
7218
7246
|
isValid: valid
|
|
7219
7247
|
};
|
|
7220
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
|
+
};
|
|
7221
7265
|
const handleInputChange = (name, value) => {
|
|
7222
7266
|
formValues.value = {
|
|
7223
7267
|
...formValues.value,
|
|
@@ -7479,7 +7523,7 @@ const BaseSignUp = (0, vue.defineComponent)({
|
|
|
7479
7523
|
}, () => (0, vue.h)(Alert_default, { variant: "error" }, () => t("errors.signup.flow.initialization.failure") || "Failed to initialize sign-up flow"));
|
|
7480
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");
|
|
7481
7525
|
const meta = flowMetaRef.value;
|
|
7482
|
-
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, {
|
|
7483
7527
|
buttonClassName: props.buttonClassName,
|
|
7484
7528
|
inputClassName: props.inputClassName,
|
|
7485
7529
|
meta,
|
|
@@ -8736,6 +8780,17 @@ const BaseAcceptInvite = (0, vue.defineComponent)({
|
|
|
8736
8780
|
isValid: Object.keys(errors).length === 0
|
|
8737
8781
|
};
|
|
8738
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
|
+
};
|
|
8739
8794
|
const handleSubmit = async (component, data) => {
|
|
8740
8795
|
if (!currentFlow.value) return;
|
|
8741
8796
|
const validation = validateForm(currentFlow.value.data?.components || []);
|
|
@@ -8910,7 +8965,7 @@ const BaseAcceptInvite = (0, vue.defineComponent)({
|
|
|
8910
8965
|
variant: "solid"
|
|
8911
8966
|
}, () => "Sign In")]) : null
|
|
8912
8967
|
])]);
|
|
8913
|
-
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, {
|
|
8914
8969
|
meta,
|
|
8915
8970
|
onInputBlur: handleInputBlur,
|
|
8916
8971
|
onSubmit: handleSubmit,
|
|
@@ -9266,6 +9321,17 @@ const BaseInviteUser = (0, vue.defineComponent)({
|
|
|
9266
9321
|
emailSent.value = false;
|
|
9267
9322
|
initializationAttempted = false;
|
|
9268
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
|
+
};
|
|
9269
9335
|
(0, vue.watch)(() => [props.isInitialized, isFlowInitialized.value], ([initialized, flowInit]) => {
|
|
9270
9336
|
if (initialized && !flowInit && !initializationAttempted) {
|
|
9271
9337
|
initializationAttempted = true;
|
|
@@ -9385,7 +9451,7 @@ const BaseInviteUser = (0, vue.defineComponent)({
|
|
|
9385
9451
|
variant: "outline"
|
|
9386
9452
|
}, () => "Invite Another User")])
|
|
9387
9453
|
])]);
|
|
9388
|
-
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, {
|
|
9389
9455
|
meta,
|
|
9390
9456
|
onInputBlur: handleInputBlur,
|
|
9391
9457
|
onSubmit: handleSubmit,
|
|
@@ -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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,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,EAA4C,MAAM,oBAAoB,CAAC;AACnG,OAAO,EACL,KAAK,SAAS,EAUf,MAAM,KAAK,CAAC;AAeb;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,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;QACF,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,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,YA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AM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC5D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAC9E,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,gBAAgB,EAAE,
|
|
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,oBAAoB,CAAC;AACnG,OAAO,EACL,KAAK,SAAS,EAUf,MAAM,KAAK,CAAC;AAeb;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,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,CAA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AS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC5D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAC9E,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,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":"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E,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,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,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C,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
|
@@ -5752,7 +5752,7 @@ const matchesSocialProvider = (actionId, eventType, buttonText, provider) => {
|
|
|
5752
5752
|
/**
|
|
5753
5753
|
* Create an auth component (VNode) from a flow component configuration.
|
|
5754
5754
|
*/
|
|
5755
|
-
const createAuthComponentFromFlow = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options = {}) => {
|
|
5755
|
+
const createAuthComponentFromFlow = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options = {}) => {
|
|
5756
5756
|
const key = options.key ?? component.id;
|
|
5757
5757
|
/** Resolve any remaining {{t()}} or {{meta()}} template expressions in a string at render time. */
|
|
5758
5758
|
const resolve = (text) => {
|
|
@@ -5788,7 +5788,14 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5788
5788
|
const eventType = component.eventType || "";
|
|
5789
5789
|
const buttonText = resolve(component.label);
|
|
5790
5790
|
const componentVariant = component.variant || "";
|
|
5791
|
-
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";
|
|
5792
5799
|
const handleClick = () => {
|
|
5793
5800
|
if (options.onSubmit) {
|
|
5794
5801
|
const formData = {};
|
|
@@ -5811,7 +5818,11 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5811
5818
|
})) };
|
|
5812
5819
|
formData["consent_decisions"] = JSON.stringify(decisions);
|
|
5813
5820
|
}
|
|
5814
|
-
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
|
+
}
|
|
5815
5826
|
}
|
|
5816
5827
|
};
|
|
5817
5828
|
if (matchesSocialProvider(actionId, eventType, buttonText, "google")) return h(GoogleButton_default, {
|
|
@@ -5864,7 +5875,8 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5864
5875
|
key,
|
|
5865
5876
|
onClick: handleClick,
|
|
5866
5877
|
startIcon: startIconVNode ?? void 0,
|
|
5867
|
-
variant: component.variant?.toLowerCase() === "primary" ? "solid" : "outline"
|
|
5878
|
+
variant: component.variant?.toLowerCase() === "primary" ? "solid" : "outline",
|
|
5879
|
+
type: buttonType
|
|
5868
5880
|
}, { default: () => buttonText || "Submit" });
|
|
5869
5881
|
}
|
|
5870
5882
|
case EmbeddedFlowComponentType$1.Text: {
|
|
@@ -5906,7 +5918,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5906
5918
|
}
|
|
5907
5919
|
case EmbeddedFlowComponentType$1.Block:
|
|
5908
5920
|
if (component.components && component.components.length > 0) {
|
|
5909
|
-
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, {
|
|
5910
5922
|
...options,
|
|
5911
5923
|
key: childComponent.id || `${component.id}_${index}`
|
|
5912
5924
|
})).filter(Boolean);
|
|
@@ -5951,7 +5963,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5951
5963
|
gap: `${gap * .5}rem`,
|
|
5952
5964
|
justifyContent: justify
|
|
5953
5965
|
};
|
|
5954
|
-
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, {
|
|
5955
5967
|
...options,
|
|
5956
5968
|
inStack: true,
|
|
5957
5969
|
key: childComponent.id || `${component.id}_${index}`
|
|
@@ -5982,7 +5994,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
|
|
|
5982
5994
|
/**
|
|
5983
5995
|
* Processes an array of components and renders them as VNodes for sign-in.
|
|
5984
5996
|
*/
|
|
5985
|
-
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, {
|
|
5986
5998
|
...options,
|
|
5987
5999
|
key: component.id || index
|
|
5988
6000
|
})).filter((v) => v !== null);
|
|
@@ -5990,7 +6002,7 @@ const renderSignInComponents = (components, formValues, touchedFields, formError
|
|
|
5990
6002
|
* Processes an array of components and renders them as VNodes for sign-up.
|
|
5991
6003
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
5992
6004
|
*/
|
|
5993
|
-
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, {
|
|
5994
6006
|
...options,
|
|
5995
6007
|
key: component.id || index
|
|
5996
6008
|
})).filter((v) => v !== null);
|
|
@@ -5998,7 +6010,7 @@ const renderSignUpComponents = (components, formValues, touchedFields, formError
|
|
|
5998
6010
|
* Processes an array of components and renders them as VNodes for invite-user flows.
|
|
5999
6011
|
* Identical to renderSignInComponents — separated for semantic clarity.
|
|
6000
6012
|
*/
|
|
6001
|
-
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, {
|
|
6002
6014
|
...options,
|
|
6003
6015
|
key: component.id || index
|
|
6004
6016
|
})).filter((v) => v !== null);
|
|
@@ -6342,7 +6354,23 @@ const BaseSignIn = defineComponent({
|
|
|
6342
6354
|
isSubmitting.value = false;
|
|
6343
6355
|
}
|
|
6344
6356
|
};
|
|
6345
|
-
|
|
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, {
|
|
6346
6374
|
additionalData: props.additionalData,
|
|
6347
6375
|
buttonClassName: props.buttonClassName,
|
|
6348
6376
|
inputClassName: props.inputClassName,
|
|
@@ -7192,6 +7220,22 @@ const BaseSignUp = defineComponent({
|
|
|
7192
7220
|
isValid: valid
|
|
7193
7221
|
};
|
|
7194
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
|
+
};
|
|
7195
7239
|
const handleInputChange = (name, value) => {
|
|
7196
7240
|
formValues.value = {
|
|
7197
7241
|
...formValues.value,
|
|
@@ -7453,7 +7497,7 @@ const BaseSignUp = defineComponent({
|
|
|
7453
7497
|
}, () => h(Alert_default, { variant: "error" }, () => t("errors.signup.flow.initialization.failure") || "Failed to initialize sign-up flow"));
|
|
7454
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");
|
|
7455
7499
|
const meta = flowMetaRef.value;
|
|
7456
|
-
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, {
|
|
7457
7501
|
buttonClassName: props.buttonClassName,
|
|
7458
7502
|
inputClassName: props.inputClassName,
|
|
7459
7503
|
meta,
|
|
@@ -8710,6 +8754,17 @@ const BaseAcceptInvite = defineComponent({
|
|
|
8710
8754
|
isValid: Object.keys(errors).length === 0
|
|
8711
8755
|
};
|
|
8712
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
|
+
};
|
|
8713
8768
|
const handleSubmit = async (component, data) => {
|
|
8714
8769
|
if (!currentFlow.value) return;
|
|
8715
8770
|
const validation = validateForm(currentFlow.value.data?.components || []);
|
|
@@ -8884,7 +8939,7 @@ const BaseAcceptInvite = defineComponent({
|
|
|
8884
8939
|
variant: "solid"
|
|
8885
8940
|
}, () => "Sign In")]) : null
|
|
8886
8941
|
])]);
|
|
8887
|
-
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, {
|
|
8888
8943
|
meta,
|
|
8889
8944
|
onInputBlur: handleInputBlur,
|
|
8890
8945
|
onSubmit: handleSubmit,
|
|
@@ -9240,6 +9295,17 @@ const BaseInviteUser = defineComponent({
|
|
|
9240
9295
|
emailSent.value = false;
|
|
9241
9296
|
initializationAttempted = false;
|
|
9242
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
|
+
};
|
|
9243
9309
|
watch(() => [props.isInitialized, isFlowInitialized.value], ([initialized, flowInit]) => {
|
|
9244
9310
|
if (initialized && !flowInit && !initializationAttempted) {
|
|
9245
9311
|
initializationAttempted = true;
|
|
@@ -9359,7 +9425,7 @@ const BaseInviteUser = defineComponent({
|
|
|
9359
9425
|
variant: "outline"
|
|
9360
9426
|
}, () => "Invite Another User")])
|
|
9361
9427
|
])]);
|
|
9362
|
-
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, {
|
|
9363
9429
|
meta,
|
|
9364
9430
|
onInputBlur: handleInputBlur,
|
|
9365
9431
|
onSubmit: handleSubmit,
|
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"
|