@incodetech/web 2.2.0-rc.0 → 2.2.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ae-signature/ae-signature.es.js +3 -3
- package/dist/antifraud/antifraud.es.js +3 -3
- package/dist/authentication/authentication.es.js +4 -4
- package/dist/{autoFocusTitle-gLba2mgp.js → autoFocusTitle-Edt8-trP.js} +1 -1
- package/dist/certificate-issuance/certificate-issuance.es.js +9 -9
- package/dist/{checkbox-C38Elx0O.js → checkbox-gbHumlEi.js} +3 -3
- package/dist/{connectionError-DAeXp8sE.js → connectionError-CvH1vnCt.js} +3 -3
- package/dist/consent/consent.es.js +7 -7
- package/dist/{countrySelector-2t-ZTgGo.js → countrySelector-DzLvpCfs.js} +2 -2
- package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
- package/dist/curp-validation/curp-validation.es.js +14 -14
- package/dist/{customFields-B8HQZ7Mh.js → customFields-DiOcfhlB.js} +9 -9
- package/dist/{customWatchlist-_tUmZ855.js → customWatchlist-CC9ZN7fk.js} +5 -5
- package/dist/{dashboardTheme-CVliZSR-.js → dashboardTheme-FtPiizV0.js} +2 -2
- package/dist/{dateInputComposed-eRcbt_SL.js → dateInputComposed-3jXySs6M.js} +4 -4
- package/dist/dateInputComposed-BMauTxWJ.js +1 -0
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-CcnnR36G.js +2 -0
- package/dist/{documentCapture-BvEGCYj-.js → documentCapture-Dc9Q2wYc.js} +14 -14
- package/dist/{dropdownComposed-OHDHzt1Q.js → dropdownComposed-Bk8viDop.js} +3 -3
- package/dist/dropdownComposed-DLaj01jA.js +1 -0
- package/dist/{dynamicForms-P-4E42IA.js → dynamicForms-BZB8JDkM.js} +10 -10
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-DmjkzVWE.js → ekybModule-C9UhcxKV.js} +13 -13
- package/dist/ekybModule-QcD4hQFD.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-Da1Fm7ai.js → ekycModule-Cp7kPhFr.js} +11 -11
- package/dist/ekycModule-DqX1bTFN.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-yamI6zHM.js → electronic-signature-DGL6y3os.js} +9 -9
- package/dist/email/email.es.js +7 -7
- package/dist/{emailInput-B0P2Q-pk.js → emailInput-Du_BH960.js} +3 -3
- package/dist/{expiredId-BXXE3srN.js → expiredId-Cf7_dJQE.js} +5 -5
- package/dist/{extensibility-iJYzpW6H.js → extensibility-CFhCNmsm.js} +23 -24
- package/dist/extensibility.es.js +21 -21
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-VtEZvsen.js → faceMatch-BOJD6ZCq.js} +7 -7
- package/dist/faceMatch-Dhm-H0Pg.js +2 -0
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/{fieldComparison-NLdDSOEh.js → fieldComparison-D_cMCcwa.js} +8 -8
- package/dist/fieldComparison-Fnup635x.js +2 -0
- package/dist/{finalSuccessScreen-DryADx1n.js → finalSuccessScreen-DL08U8_o.js} +9 -9
- package/dist/fiscal-qr/fiscal-qr.es.js +8 -8
- package/dist/flow/flow.es.js +15 -15
- package/dist/geolocation/geolocation.es.js +7 -7
- package/dist/government-validation/government-validation.es.js +8 -8
- package/dist/{homeScreen-Pv3v_0ji.js → homeScreen-D2XpU5z_.js} +6 -6
- package/dist/{icons--ezYG2Fb.js → icons-CIjsoS44.js} +1 -1
- package/dist/id/id.es.js +19 -20
- package/dist/id-selfie-flow/id-selfie-flow.es.js +8 -9
- package/dist/id-verification/id-verification.es.js +4 -4
- package/dist/{idOcr-gsIXHq6R.js → idOcr-DkmZyLVu.js} +9 -9
- package/dist/identity-reuse/identity-reuse.es.js +5 -5
- package/dist/{incode-logo-rGFjZHqi.js → incode-logo-DkPbEPiI.js} +1 -1
- package/dist/{incodeComponent-K9ZWg302.js → incodeComponent-B6hBTDEE.js} +59 -14
- package/dist/{incodeModule-CcLzar_X.js → incodeModule-CCI32xbn.js} +9 -3
- package/dist/index.es.js +2 -2
- package/dist/{inputComposed-BeROn635.js → inputComposed-CGB8zKbd.js} +3 -3
- package/dist/inputComposed-DDFdXKT3.js +1 -0
- package/dist/{mandatoryConsent-BtqB-FxY.js → mandatoryConsent-L7Tpj3tg.js} +7 -7
- package/dist/{manualCaptureButton-t_oIol88.js → manualCaptureButton-B3ZD52_f.js} +4 -4
- package/dist/{manualCaptureButton-quGa2ufS.js → manualCaptureButton-ByWujoAK.js} +9 -11
- package/dist/{modal-BjjJFpZu.js → modal-9-lPt5Hj.js} +2 -2
- package/dist/{optionAccessibleLabel-DgfHD_mx.js → optionAccessibleLabel-Cc91L4JK.js} +4 -4
- package/dist/{otpInput-D5dLXrmC.js → otpInput-BWiL_nBW.js} +5 -5
- package/dist/{pdfViewer-vud1VZv6.js → pdfViewer-BbRv7mHX.js} +2 -2
- package/dist/pdfViewer-DHgpC35P.js +2 -0
- package/dist/phone/phone.es.js +8 -8
- package/dist/{phoneInputComposed-CeVWTS_O.js → phoneInputComposed-Bvy15RAe.js} +4 -4
- package/dist/{processing-BsvHyDWa.js → processing-DN0NyNqR.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +3 -3
- package/dist/{radioGroupComposed-DzNGUbZQ.js → radioGroupComposed-CPFZJOtR.js} +5 -5
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +12 -12
- package/dist/{richText-CTHBpZOw.js → richText-DnGJiTPl.js} +1 -1
- package/dist/selfie/selfie.es.js +7 -7
- package/dist/signature/signature.es.js +7 -7
- package/dist/{snackbar-C9Mqrh0e.js → snackbar-zbTKBgCx.js} +1 -1
- package/dist/{spacer-CDlQd12V.js → spacer-C6GdxqM-.js} +2 -2
- package/dist/{spinner-CLZ2fz4u.js → spinner-CaEPC8gQ.js} +4 -4
- package/dist/{statusPage--GVFSUJp.js → statusPage-C-2V2g63.js} +3 -3
- package/dist/{tabs-DweBZTV2.js → tabs-BjLPiKhZ.js} +1 -1
- package/dist/{tutorial-BZZC93Ur.js → tutorial-B1F5C8Si.js} +9 -9
- package/dist/types/ae-signature.d.ts +28 -2
- package/dist/types/antifraud.d.ts +28 -2
- package/dist/types/authentication.d.ts +28 -2
- package/dist/types/certificate-issuance.d.ts +28 -2
- package/dist/types/consent.d.ts +28 -2
- package/dist/types/cross-document-data-match.d.ts +28 -2
- package/dist/types/curp-validation.d.ts +28 -2
- package/dist/types/document-capture.d.ts +28 -2
- package/dist/types/ekyb.d.ts +28 -2
- package/dist/types/ekyc.d.ts +28 -2
- package/dist/types/electronic-signature.d.ts +28 -2
- package/dist/types/email.d.ts +28 -2
- package/dist/types/extensibility.d.ts +58 -2
- package/dist/types/face-match.d.ts +28 -2
- package/dist/types/field-comparison.d.ts +28 -2
- package/dist/types/fiscal-qr.d.ts +28 -2
- package/dist/types/flow.d.ts +43 -3
- package/dist/types/geolocation.d.ts +28 -2
- package/dist/types/government-validation.d.ts +28 -2
- package/dist/types/id-selfie-flow.d.ts +28 -2
- package/dist/types/id-verification.d.ts +28 -2
- package/dist/types/id.d.ts +28 -2
- package/dist/types/identity-reuse.d.ts +28 -2
- package/dist/types/index.d.ts +49 -0
- package/dist/types/phone.d.ts +28 -2
- package/dist/types/qe-signature.d.ts +28 -2
- package/dist/types/selfie.d.ts +28 -2
- package/dist/types/signature.d.ts +28 -2
- package/dist/types/video-selfie.d.ts +28 -2
- package/dist/types/watchlist.d.ts +28 -2
- package/dist/types/workflow.d.ts +44 -3
- package/dist/{uiConfig-B5ASPUL4.js → uiConfig-D7ezQeZ7.js} +42 -5
- package/dist/{useModuleLoader-D_YpuVsS.js → useModuleLoader-DVvqx4RT.js} +18 -18
- package/dist/{verificationResult-B8HwR07t.js → verificationResult-tgNeUuHO.js} +7 -7
- package/dist/video-selfie/video-selfie.es.js +14 -15
- package/dist/watchlist/watchlist.es.js +5 -5
- package/dist/{watchlistForBusiness-D8Is99bZ.js → watchlistForBusiness-3bO7BVcy.js} +8 -8
- package/dist/workflow/workflow.es.js +12 -12
- package/package.json +2 -2
- package/dist/dateInputComposed-ks0-opuq.js +0 -1
- package/dist/documentCapture-DdHdRPzR.js +0 -2
- package/dist/dropdownComposed-kjG4UblM.js +0 -1
- package/dist/ekybModule-CiaxFHXo.js +0 -2
- package/dist/ekycModule-BVt10kgv.js +0 -2
- package/dist/faceMatch-D4XFihTc.js +0 -2
- package/dist/fieldComparison-B_r9Bal7.js +0 -2
- package/dist/inputComposed-CADVQW-o.js +0 -1
- package/dist/pdfViewer-CZb6obcZ.js +0 -2
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
package/dist/types/ekyb.d.ts
CHANGED
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
package/dist/types/ekyc.d.ts
CHANGED
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
package/dist/types/email.d.ts
CHANGED
|
@@ -120,15 +120,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* Per-instance
|
|
123
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
124
124
|
*
|
|
125
125
|
* These ride on the module's `config` prop and are published once at the
|
|
126
126
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
127
|
-
* reads them via {@link useInstanceOverrides} without
|
|
127
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
128
|
+
* any prop drilling.
|
|
128
129
|
*/
|
|
129
130
|
declare type InstanceOverrides = {
|
|
130
131
|
assets?: AssetOverrides;
|
|
131
132
|
animations?: AnimationOverrides;
|
|
133
|
+
spinner?: SpinnerPresentation;
|
|
132
134
|
};
|
|
133
135
|
|
|
134
136
|
declare type LottieAnimationData = {
|
|
@@ -140,6 +142,30 @@ declare type LottieAnimationData = {
|
|
|
140
142
|
h: number;
|
|
141
143
|
};
|
|
142
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Host-facing loader presentation, settable globally via
|
|
147
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
148
|
+
*
|
|
149
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
150
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
151
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
152
|
+
* leaves one source of truth for user-facing strings.
|
|
153
|
+
*/
|
|
154
|
+
declare type SpinnerPresentation = {
|
|
155
|
+
renderMode?: SpinnerRenderMode;
|
|
156
|
+
size?: SpinnerSize;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Which parts of a loader render.
|
|
161
|
+
*
|
|
162
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
163
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
164
|
+
*/
|
|
165
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
166
|
+
|
|
167
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
168
|
+
|
|
143
169
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
144
170
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
145
171
|
|
|
@@ -630,15 +630,17 @@ declare type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'class' |
|
|
|
630
630
|
};
|
|
631
631
|
|
|
632
632
|
/**
|
|
633
|
-
* Per-instance
|
|
633
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
634
634
|
*
|
|
635
635
|
* These ride on the module's `config` prop and are published once at the
|
|
636
636
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
637
|
-
* reads them via {@link useInstanceOverrides} without
|
|
637
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
638
|
+
* any prop drilling.
|
|
638
639
|
*/
|
|
639
640
|
declare type InstanceOverrides = {
|
|
640
641
|
assets?: AssetOverrides;
|
|
641
642
|
animations?: AnimationOverrides;
|
|
643
|
+
spinner?: SpinnerPresentation;
|
|
642
644
|
};
|
|
643
645
|
|
|
644
646
|
export declare function LandscapeBlocker(): VNode | null;
|
|
@@ -994,6 +996,9 @@ export declare const SelfieTutorial: ({ manager, ageAssurance }: TutorialProps)
|
|
|
994
996
|
|
|
995
997
|
/**
|
|
996
998
|
* Sets global UI configuration defaults for `@incodetech/ui`.
|
|
999
|
+
*
|
|
1000
|
+
* Replaces (does not merge with) the previous host-supplied config, so omitting
|
|
1001
|
+
* a field clears it. The dashboard theme is held separately and is unaffected.
|
|
997
1002
|
*/
|
|
998
1003
|
export declare function setUiConfig(next: UiConfig): void;
|
|
999
1004
|
|
|
@@ -1007,6 +1012,37 @@ declare type SpacerProps = {
|
|
|
1007
1012
|
|
|
1008
1013
|
export declare const Spinner: FC<SpinnerProps>;
|
|
1009
1014
|
|
|
1015
|
+
/**
|
|
1016
|
+
* The presentation fields plus the legacy inline copy accepted by
|
|
1017
|
+
* `<incode-flow>` / `<incode-workflow>`.
|
|
1018
|
+
*/
|
|
1019
|
+
export declare type SpinnerConfig = SpinnerPresentation & {
|
|
1020
|
+
/**
|
|
1021
|
+
* @deprecated Set loader copy via i18n translations (`loadingCircle.holdOn`).
|
|
1022
|
+
* TODO(2.3.0): remove.
|
|
1023
|
+
*/
|
|
1024
|
+
title?: string;
|
|
1025
|
+
/**
|
|
1026
|
+
* @deprecated Set loader copy via i18n translations (`loadingCircle.validating`).
|
|
1027
|
+
* TODO(2.3.0): remove.
|
|
1028
|
+
*/
|
|
1029
|
+
subtitle?: string;
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Host-facing loader presentation, settable globally via
|
|
1034
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
1035
|
+
*
|
|
1036
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
1037
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
1038
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
1039
|
+
* leaves one source of truth for user-facing strings.
|
|
1040
|
+
*/
|
|
1041
|
+
export declare type SpinnerPresentation = {
|
|
1042
|
+
renderMode?: SpinnerRenderMode;
|
|
1043
|
+
size?: SpinnerSize;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1010
1046
|
declare type SpinnerProps = {
|
|
1011
1047
|
/** Title text to display below the spinner */
|
|
1012
1048
|
title?: string;
|
|
@@ -1029,8 +1065,23 @@ declare type SpinnerProps = {
|
|
|
1029
1065
|
* screen reader must not be able to swipe into or hear it behind that prompt.
|
|
1030
1066
|
*/
|
|
1031
1067
|
presentational?: boolean;
|
|
1068
|
+
/**
|
|
1069
|
+
* Render the title/subtitle without the spinning icon.
|
|
1070
|
+
*
|
|
1071
|
+
* Backs `renderMode: 'textOnly'`, for hosts that animate their own copy and
|
|
1072
|
+
* want no icon competing with it.
|
|
1073
|
+
*/
|
|
1074
|
+
hideIcon?: boolean;
|
|
1032
1075
|
};
|
|
1033
1076
|
|
|
1077
|
+
/**
|
|
1078
|
+
* Which parts of a loader render.
|
|
1079
|
+
*
|
|
1080
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
1081
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
1082
|
+
*/
|
|
1083
|
+
export declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
1084
|
+
|
|
1034
1085
|
export declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
1035
1086
|
|
|
1036
1087
|
export declare const SuccessIcon: FC<SuccessIconProps>;
|
|
@@ -1114,6 +1165,11 @@ export declare type UiConfig = {
|
|
|
1114
1165
|
hideFooterBranding?: boolean;
|
|
1115
1166
|
assets?: AssetOverrides;
|
|
1116
1167
|
animations?: AnimationOverrides;
|
|
1168
|
+
/**
|
|
1169
|
+
* Global loader presentation. Copy stays in i18n — see
|
|
1170
|
+
* {@link SpinnerPresentation}.
|
|
1171
|
+
*/
|
|
1172
|
+
spinner?: SpinnerPresentation;
|
|
1117
1173
|
};
|
|
1118
1174
|
|
|
1119
1175
|
/**
|
|
@@ -120,15 +120,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* Per-instance
|
|
123
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
124
124
|
*
|
|
125
125
|
* These ride on the module's `config` prop and are published once at the
|
|
126
126
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
127
|
-
* reads them via {@link useInstanceOverrides} without
|
|
127
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
128
|
+
* any prop drilling.
|
|
128
129
|
*/
|
|
129
130
|
declare type InstanceOverrides = {
|
|
130
131
|
assets?: AssetOverrides;
|
|
131
132
|
animations?: AnimationOverrides;
|
|
133
|
+
spinner?: SpinnerPresentation;
|
|
132
134
|
};
|
|
133
135
|
|
|
134
136
|
declare type LottieAnimationData = {
|
|
@@ -140,6 +142,30 @@ declare type LottieAnimationData = {
|
|
|
140
142
|
h: number;
|
|
141
143
|
};
|
|
142
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Host-facing loader presentation, settable globally via
|
|
147
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
148
|
+
*
|
|
149
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
150
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
151
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
152
|
+
* leaves one source of truth for user-facing strings.
|
|
153
|
+
*/
|
|
154
|
+
declare type SpinnerPresentation = {
|
|
155
|
+
renderMode?: SpinnerRenderMode;
|
|
156
|
+
size?: SpinnerSize;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Which parts of a loader render.
|
|
161
|
+
*
|
|
162
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
163
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
164
|
+
*/
|
|
165
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
166
|
+
|
|
167
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
168
|
+
|
|
143
169
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
144
170
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
145
171
|
|
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
|
@@ -117,15 +117,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Per-instance
|
|
120
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
121
121
|
*
|
|
122
122
|
* These ride on the module's `config` prop and are published once at the
|
|
123
123
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
124
|
-
* reads them via {@link useInstanceOverrides} without
|
|
124
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
125
|
+
* any prop drilling.
|
|
125
126
|
*/
|
|
126
127
|
declare type InstanceOverrides = {
|
|
127
128
|
assets?: AssetOverrides;
|
|
128
129
|
animations?: AnimationOverrides;
|
|
130
|
+
spinner?: SpinnerPresentation;
|
|
129
131
|
};
|
|
130
132
|
|
|
131
133
|
declare type LottieAnimationData = {
|
|
@@ -137,6 +139,30 @@ declare type LottieAnimationData = {
|
|
|
137
139
|
h: number;
|
|
138
140
|
};
|
|
139
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Host-facing loader presentation, settable globally via
|
|
144
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
145
|
+
*
|
|
146
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
147
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
148
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
149
|
+
* leaves one source of truth for user-facing strings.
|
|
150
|
+
*/
|
|
151
|
+
declare type SpinnerPresentation = {
|
|
152
|
+
renderMode?: SpinnerRenderMode;
|
|
153
|
+
size?: SpinnerSize;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Which parts of a loader render.
|
|
158
|
+
*
|
|
159
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
160
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
161
|
+
*/
|
|
162
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
163
|
+
|
|
164
|
+
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
165
|
+
|
|
140
166
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|
|
141
167
|
declare type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
142
168
|
|
package/dist/types/flow.d.ts
CHANGED
|
@@ -105,6 +105,11 @@ declare type FlowUiConfig = {
|
|
|
105
105
|
assets?: AssetOverrides;
|
|
106
106
|
/** Per-instance Lottie-animation overrides for this flow. */
|
|
107
107
|
animations?: AnimationOverrides;
|
|
108
|
+
/**
|
|
109
|
+
* Per-instance loader presentation for this flow and its modules. Overrides
|
|
110
|
+
* the global `setup({ uiConfig: { spinner } })` value. Copy stays in i18n.
|
|
111
|
+
*/
|
|
112
|
+
spinner?: SpinnerPresentation;
|
|
108
113
|
};
|
|
109
114
|
|
|
110
115
|
/**
|
|
@@ -167,15 +172,17 @@ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown, TCon
|
|
|
167
172
|
};
|
|
168
173
|
|
|
169
174
|
/**
|
|
170
|
-
* Per-instance
|
|
175
|
+
* Per-instance overrides for a single mounted SDK module.
|
|
171
176
|
*
|
|
172
177
|
* These ride on the module's `config` prop and are published once at the
|
|
173
178
|
* module root by `registerIncodeModuleElement`, so a deep `<Asset>`/`<AnimatedAsset>`
|
|
174
|
-
* reads them via {@link useInstanceOverrides} without
|
|
179
|
+
* or `<TransitionSpinner>` reads them via {@link useInstanceOverrides} without
|
|
180
|
+
* any prop drilling.
|
|
175
181
|
*/
|
|
176
182
|
declare type InstanceOverrides = {
|
|
177
183
|
assets?: AssetOverrides;
|
|
178
184
|
animations?: AnimationOverrides;
|
|
185
|
+
spinner?: SpinnerPresentation;
|
|
179
186
|
};
|
|
180
187
|
|
|
181
188
|
declare type LottieAnimationData = {
|
|
@@ -214,12 +221,45 @@ declare type SelfLoadingFlowRuntimeConfig = FlowBaseConfig & SelfLoadingSessionO
|
|
|
214
221
|
|
|
215
222
|
declare type SelfLoadingSessionOptions = Pick<CreateSessionOptions, 'configurationId' | 'externalId' | 'externalCustomerId' | 'customFields' | 'uuid' | 'urlUuid' | 'interviewId' | 'loginHint'>;
|
|
216
223
|
|
|
217
|
-
|
|
224
|
+
/**
|
|
225
|
+
* The presentation fields plus the legacy inline copy accepted by
|
|
226
|
+
* `<incode-flow>` / `<incode-workflow>`.
|
|
227
|
+
*/
|
|
228
|
+
declare type SpinnerConfig = SpinnerPresentation & {
|
|
229
|
+
/**
|
|
230
|
+
* @deprecated Set loader copy via i18n translations (`loadingCircle.holdOn`).
|
|
231
|
+
* TODO(2.3.0): remove.
|
|
232
|
+
*/
|
|
218
233
|
title?: string;
|
|
234
|
+
/**
|
|
235
|
+
* @deprecated Set loader copy via i18n translations (`loadingCircle.validating`).
|
|
236
|
+
* TODO(2.3.0): remove.
|
|
237
|
+
*/
|
|
219
238
|
subtitle?: string;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Host-facing loader presentation, settable globally via
|
|
243
|
+
* `setup({ uiConfig: { spinner } })` or per element via `config.spinner`.
|
|
244
|
+
*
|
|
245
|
+
* Copy is deliberately absent. Loader text comes from i18n (`loadingCircle.*`),
|
|
246
|
+
* which keeps it localizable — a literal string here would freeze in whatever
|
|
247
|
+
* language the host typed it in when the user switches language mid-flow — and
|
|
248
|
+
* leaves one source of truth for user-facing strings.
|
|
249
|
+
*/
|
|
250
|
+
declare type SpinnerPresentation = {
|
|
251
|
+
renderMode?: SpinnerRenderMode;
|
|
220
252
|
size?: SpinnerSize;
|
|
221
253
|
};
|
|
222
254
|
|
|
255
|
+
/**
|
|
256
|
+
* Which parts of a loader render.
|
|
257
|
+
*
|
|
258
|
+
* An enum rather than a pair of booleans so the meaningless fourth state —
|
|
259
|
+
* neither icon nor text, i.e. a blank screen — is unrepresentable.
|
|
260
|
+
*/
|
|
261
|
+
declare type SpinnerRenderMode = 'spinnerAndText' | 'spinnerOnly' | 'textOnly';
|
|
262
|
+
|
|
223
263
|
declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
224
264
|
|
|
225
265
|
/** An SVG imported as a Preact component (the `?react` import shape). */
|