idmission-web-sdk 2.6.3-changeset-release-develop-8a04e04 → 2.6.3-changeset-release-develop-a0d6141
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 +70 -9
- package/dist/props.json +5 -5
- package/dist/sdk2.cjs.development.js +60 -4
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +60 -4
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +60 -4
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/package.json +1 -1
package/dist/sdk2.esm.js
CHANGED
|
@@ -48573,7 +48573,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48573
48573
|
});
|
|
48574
48574
|
}
|
|
48575
48575
|
|
|
48576
|
-
var webSdkVersion = '2.6.3-changeset-release-develop-
|
|
48576
|
+
var webSdkVersion = '2.6.3-changeset-release-develop-a0d6141';
|
|
48577
48577
|
|
|
48578
48578
|
// GENERATED by scripts/styleBagTypes.mjs from
|
|
48579
48579
|
// src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
|
|
@@ -51086,6 +51086,59 @@ function isBag(value) {
|
|
|
51086
51086
|
var proto = Object.getPrototypeOf(value);
|
|
51087
51087
|
return proto === null || Object.getPrototypeOf(proto) === null;
|
|
51088
51088
|
}
|
|
51089
|
+
/**
|
|
51090
|
+
* Top-level style keys a flow forwards to its 3.0 view beyond the 2.x paths,
|
|
51091
|
+
* so the 2.x check below must not call them typos. `satisfies` keeps each list
|
|
51092
|
+
* in step with the type it mirrors.
|
|
51093
|
+
*/
|
|
51094
|
+
var FORWARDED_STYLE_KEYS = {
|
|
51095
|
+
DocumentCapture: {
|
|
51096
|
+
classNames: {
|
|
51097
|
+
cameraFeedWrapper: true,
|
|
51098
|
+
cameraFeed: true,
|
|
51099
|
+
previewImage: true,
|
|
51100
|
+
captureContainer: true,
|
|
51101
|
+
headingRow: true,
|
|
51102
|
+
heading: true,
|
|
51103
|
+
guideOverlay: true,
|
|
51104
|
+
footerRow: true,
|
|
51105
|
+
instructions: true,
|
|
51106
|
+
buttonsRow: true,
|
|
51107
|
+
retryCameraAccessBtn: true,
|
|
51108
|
+
retryCaptureBtn: true,
|
|
51109
|
+
uploadBtn: true,
|
|
51110
|
+
uploadProgressBtn: true,
|
|
51111
|
+
captureBtn: true,
|
|
51112
|
+
autoCaptureGuidance: true,
|
|
51113
|
+
manualCaptureHint: true,
|
|
51114
|
+
reviewContainer: true,
|
|
51115
|
+
reviewCard: true,
|
|
51116
|
+
reviewHeading: true
|
|
51117
|
+
},
|
|
51118
|
+
verbiage: {
|
|
51119
|
+
headingText: true,
|
|
51120
|
+
loadingBtnText: true,
|
|
51121
|
+
retryCameraAccessBtnText: true,
|
|
51122
|
+
exitBtnText: true,
|
|
51123
|
+
captureBtnText: true,
|
|
51124
|
+
capturingBtnText: true,
|
|
51125
|
+
retryCaptureBtnText: true,
|
|
51126
|
+
uploadBtnText: true,
|
|
51127
|
+
uploadingBtnText: true,
|
|
51128
|
+
retryUploadBtnText: true,
|
|
51129
|
+
successBtnText: true,
|
|
51130
|
+
autoCaptureNoDocumentText: true,
|
|
51131
|
+
autoCaptureTooCloseText: true,
|
|
51132
|
+
autoCaptureTooFarText: true,
|
|
51133
|
+
autoCaptureNotStableText: true,
|
|
51134
|
+
autoCaptureOutOfFocusText: true,
|
|
51135
|
+
autoCaptureHoldStillText: true,
|
|
51136
|
+
manualCaptureHintText: true,
|
|
51137
|
+
reviewHeadingText: true,
|
|
51138
|
+
reviewImageAltText: true
|
|
51139
|
+
}
|
|
51140
|
+
}
|
|
51141
|
+
};
|
|
51089
51142
|
/**
|
|
51090
51143
|
* Warns once per page load for each style-bag key the caller set that 2.x
|
|
51091
51144
|
* never had — a typo a type checker would have caught, which plain-JS
|
|
@@ -51095,22 +51148,25 @@ function isBag(value) {
|
|
|
51095
51148
|
* is reported too, since nothing reads it.
|
|
51096
51149
|
*/
|
|
51097
51150
|
function reportStyleKeys(flow, props) {
|
|
51151
|
+
var _a;
|
|
51098
51152
|
if (getLogLevel() < LogLevel.Warn) return;
|
|
51099
51153
|
var drops = STYLE_BAG_DROPS[flow] || {};
|
|
51100
51154
|
var _loop_1 = function _loop_1(bag) {
|
|
51101
51155
|
if (!hasOwn.call(STYLE_BAG_KEYS, bag)) return "continue";
|
|
51102
|
-
var
|
|
51103
|
-
flows =
|
|
51104
|
-
aliases =
|
|
51156
|
+
var _b = STYLE_BAG_KEYS[bag],
|
|
51157
|
+
flows = _b.flows,
|
|
51158
|
+
aliases = _b.aliases;
|
|
51105
51159
|
var bagValue = props[bag];
|
|
51106
51160
|
if (!hasOwn.call(flows, flow) || !isBag(bagValue)) return "continue";
|
|
51107
51161
|
var bagDrops = drops[bag] || {};
|
|
51162
|
+
var forwarded = ((_a = FORWARDED_STYLE_KEYS[flow]) === null || _a === void 0 ? void 0 : _a[bag]) || {};
|
|
51108
51163
|
var _walk = function walk(value, alias, prefix) {
|
|
51109
51164
|
var keys = aliases[alias];
|
|
51110
51165
|
for (var key in value) {
|
|
51111
51166
|
if (!hasOwn.call(value, key) || value[key] === undefined) continue;
|
|
51112
51167
|
var path = prefix + key;
|
|
51113
51168
|
if (!hasOwn.call(keys, key)) {
|
|
51169
|
+
if (prefix === '' && hasOwn.call(forwarded, key)) continue;
|
|
51114
51170
|
report(flow, bag + '.' + path, 'is not a 2.x `' + bag + '` key, so it has no effect.');
|
|
51115
51171
|
} else if (hasOwn.call(bagDrops, path)) {
|
|
51116
51172
|
report(flow, bag + '.' + path, 'has no effect in 3.0: ' + NO_EFFECT[bagDrops[path]]);
|