idmission-web-sdk 2.6.3-t3code-shared-flow-settings-07ab804 → 2.6.3-t3code-shared-flow-settings-e5702c2

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/index.d.ts CHANGED
@@ -11274,7 +11274,7 @@ declare global {
11274
11274
  var IDmissionSDK: IDmissionSDK;
11275
11275
  }
11276
11276
 
11277
- declare const webSdkVersion = "2.6.3-t3code-shared-flow-settings-07ab804";
11277
+ declare const webSdkVersion = "2.6.3-t3code-shared-flow-settings-e5702c2";
11278
11278
 
11279
11279
  /**
11280
11280
  * sdk2's imperative handle on the video-signature capture screen
package/dist/props.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$comment": "GENERATED by scripts/propsManifest.mjs at build time. Each customer flow's props, read off dist/index.d.ts.",
3
3
  "schemaVersion": 1,
4
- "version": "2.6.3-t3code-shared-flow-settings-07ab804",
4
+ "version": "2.6.3-t3code-shared-flow-settings-e5702c2",
5
5
  "components": {
6
6
  "IdValidation": {
7
7
  "description": "Render a fullscreen ID capture component that instructs the user to\nphotograph both sides of their ID card, or the full page of their passport.",
@@ -7573,12 +7573,17 @@ var SdkLanguageContext = /*#__PURE__*/React.createContext(undefined);
7573
7573
  * Binds one rendered SDK tree to its requested language. A fixed translator
7574
7574
  * avoids waiting for a post-render changeLanguage() effect and keeps SSR and
7575
7575
  * concurrently mounted SDK views independent of the shared detector instance.
7576
+ *
7577
+ * An unset `lang` keeps whatever scope encloses it (or none), so a caller can
7578
+ * render the provider unconditionally: toggling `lang` between unset and set
7579
+ * then never changes the element tree, and never remounts the subtree.
7576
7580
  */
7577
7581
  function SdkLanguageProvider(_ref) {
7578
7582
  var children = _ref.children,
7579
7583
  lang = _ref.lang;
7584
+ var inherited = React.useContext(SdkLanguageContext);
7580
7585
  return /*#__PURE__*/React.createElement(SdkLanguageContext.Provider, {
7581
- value: lang === 'auto' ? detectedLanguage : lang
7586
+ value: lang === undefined ? inherited : lang === 'auto' ? detectedLanguage : lang
7582
7587
  }, children);
7583
7588
  }
7584
7589
  /**
@@ -40415,7 +40420,7 @@ function FlowChassis(_ref) {
40415
40420
  client: client,
40416
40421
  children: [jsxRuntime.jsx(RemoteDiagnosticsMount, {
40417
40422
  remoteDiagnostics: remoteDiagnostics
40418
- }), jsxRuntime.jsx(FlowLanguage, {
40423
+ }), jsxRuntime.jsx(SdkLanguageProvider, {
40419
40424
  lang: lang,
40420
40425
  children: jsxRuntime.jsx(ThemeProvider, {
40421
40426
  theme: theme,
@@ -40443,17 +40448,8 @@ function FlowChassis(_ref) {
40443
40448
  })
40444
40449
  });
40445
40450
  }
40446
- /** Scopes the flow's own screens to `lang`; a no-op when the flow sets none. */
40447
- function FlowLanguage(_ref2) {
40448
- var lang = _ref2.lang,
40449
- children = _ref2.children;
40450
- return lang === undefined ? children : jsxRuntime.jsx(SdkLanguageProvider, {
40451
- lang: lang,
40452
- children: children
40453
- });
40454
- }
40455
- function AuthGate(_ref3) {
40456
- var children = _ref3.children;
40451
+ function AuthGate(_ref2) {
40452
+ var children = _ref2.children;
40457
40453
  var _useAuthState = useAuthState(),
40458
40454
  state = _useAuthState.state,
40459
40455
  retry = _useAuthState.retry;
@@ -40504,10 +40500,10 @@ function AuthGate(_ref3) {
40504
40500
  * enrollment-ID banner sits outside that body, so stages and their in-body
40505
40501
  * overlays lay out below it instead of over it.
40506
40502
  */
40507
- function FlowPage(_ref4) {
40508
- var className = _ref4.className,
40509
- enrollmentId = _ref4.enrollmentId,
40510
- children = _ref4.children;
40503
+ function FlowPage(_ref3) {
40504
+ var className = _ref3.className,
40505
+ enrollmentId = _ref3.enrollmentId,
40506
+ children = _ref3.children;
40511
40507
  var _useTheme = styledComponents.useTheme(),
40512
40508
  Header = _useTheme.header,
40513
40509
  Footer = _useTheme.footer;
@@ -40617,8 +40613,8 @@ function impliedSkipSuccessScreen(explicit, introActive) {
40617
40613
  */
40618
40614
  function inheritFlowSettings(step, flow) {
40619
40615
  var inherited = {};
40620
- for (var _i = 0, _Object$keys = Object.keys(flow); _i < _Object$keys.length; _i++) {
40621
- var key = _Object$keys[_i];
40616
+ for (var key in flow) {
40617
+ if (!Object.prototype.hasOwnProperty.call(flow, key)) continue;
40622
40618
  if ((step == null ? void 0 : step[key]) === undefined && flow[key] !== undefined) {
40623
40619
  inherited[key] = flow[key];
40624
40620
  }
@@ -48890,7 +48886,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48890
48886
  });
48891
48887
  }
48892
48888
 
48893
- var webSdkVersion = '2.6.3-t3code-shared-flow-settings-07ab804';
48889
+ var webSdkVersion = '2.6.3-t3code-shared-flow-settings-e5702c2';
48894
48890
 
48895
48891
  // GENERATED by scripts/styleBagTypes.mjs from
48896
48892
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not