idmission-web-sdk 2.6.3-changeset-release-develop-8a04e04 → 2.6.3-changeset-release-develop-c1e1b02

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.
@@ -54993,7 +54993,7 @@
54993
54993
  });
54994
54994
  }
54995
54995
 
54996
- var webSdkVersion = '2.6.3-changeset-release-develop-8a04e04';
54996
+ var webSdkVersion = '2.6.3-changeset-release-develop-c1e1b02';
54997
54997
 
54998
54998
  // GENERATED by scripts/styleBagTypes.mjs from
54999
54999
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
@@ -57506,6 +57506,59 @@
57506
57506
  var proto = Object.getPrototypeOf(value);
57507
57507
  return proto === null || Object.getPrototypeOf(proto) === null;
57508
57508
  }
57509
+ /**
57510
+ * Top-level style keys a flow forwards to its 3.0 view beyond the 2.x paths,
57511
+ * so the 2.x check below must not call them typos. `satisfies` keeps each list
57512
+ * in step with the type it mirrors.
57513
+ */
57514
+ var FORWARDED_STYLE_KEYS = {
57515
+ DocumentCapture: {
57516
+ classNames: {
57517
+ cameraFeedWrapper: true,
57518
+ cameraFeed: true,
57519
+ previewImage: true,
57520
+ captureContainer: true,
57521
+ headingRow: true,
57522
+ heading: true,
57523
+ guideOverlay: true,
57524
+ footerRow: true,
57525
+ instructions: true,
57526
+ buttonsRow: true,
57527
+ retryCameraAccessBtn: true,
57528
+ retryCaptureBtn: true,
57529
+ uploadBtn: true,
57530
+ uploadProgressBtn: true,
57531
+ captureBtn: true,
57532
+ autoCaptureGuidance: true,
57533
+ manualCaptureHint: true,
57534
+ reviewContainer: true,
57535
+ reviewCard: true,
57536
+ reviewHeading: true
57537
+ },
57538
+ verbiage: {
57539
+ headingText: true,
57540
+ loadingBtnText: true,
57541
+ retryCameraAccessBtnText: true,
57542
+ exitBtnText: true,
57543
+ captureBtnText: true,
57544
+ capturingBtnText: true,
57545
+ retryCaptureBtnText: true,
57546
+ uploadBtnText: true,
57547
+ uploadingBtnText: true,
57548
+ retryUploadBtnText: true,
57549
+ successBtnText: true,
57550
+ autoCaptureNoDocumentText: true,
57551
+ autoCaptureTooCloseText: true,
57552
+ autoCaptureTooFarText: true,
57553
+ autoCaptureNotStableText: true,
57554
+ autoCaptureOutOfFocusText: true,
57555
+ autoCaptureHoldStillText: true,
57556
+ manualCaptureHintText: true,
57557
+ reviewHeadingText: true,
57558
+ reviewImageAltText: true
57559
+ }
57560
+ }
57561
+ };
57509
57562
  /**
57510
57563
  * Warns once per page load for each style-bag key the caller set that 2.x
57511
57564
  * never had — a typo a type checker would have caught, which plain-JS
@@ -57515,22 +57568,25 @@
57515
57568
  * is reported too, since nothing reads it.
57516
57569
  */
57517
57570
  function reportStyleKeys(flow, props) {
57571
+ var _a;
57518
57572
  if (getLogLevel() < LogLevel.Warn) return;
57519
57573
  var drops = STYLE_BAG_DROPS[flow] || {};
57520
57574
  var _loop_1 = function _loop_1(bag) {
57521
57575
  if (!hasOwn.call(STYLE_BAG_KEYS, bag)) return "continue";
57522
- var _a = STYLE_BAG_KEYS[bag],
57523
- flows = _a.flows,
57524
- aliases = _a.aliases;
57576
+ var _b = STYLE_BAG_KEYS[bag],
57577
+ flows = _b.flows,
57578
+ aliases = _b.aliases;
57525
57579
  var bagValue = props[bag];
57526
57580
  if (!hasOwn.call(flows, flow) || !isBag(bagValue)) return "continue";
57527
57581
  var bagDrops = drops[bag] || {};
57582
+ var forwarded = ((_a = FORWARDED_STYLE_KEYS[flow]) === null || _a === void 0 ? void 0 : _a[bag]) || {};
57528
57583
  var _walk = function walk(value, alias, prefix) {
57529
57584
  var keys = aliases[alias];
57530
57585
  for (var key in value) {
57531
57586
  if (!hasOwn.call(value, key) || value[key] === undefined) continue;
57532
57587
  var path = prefix + key;
57533
57588
  if (!hasOwn.call(keys, key)) {
57589
+ if (prefix === '' && hasOwn.call(forwarded, key)) continue;
57534
57590
  report(flow, bag + '.' + path, 'is not a 2.x `' + bag + '` key, so it has no effect.');
57535
57591
  } else if (hasOwn.call(bagDrops, path)) {
57536
57592
  report(flow, bag + '.' + path, 'has no effect in 3.0: ' + NO_EFFECT[bagDrops[path]]);