idmission-web-sdk 2.5.81-changeset-release-develop-3ddb15a → 2.5.81-react16compat.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/index.d.ts +1 -1
- package/dist/props.json +1 -1
- package/dist/sdk2.cjs.development.js +1057 -159
- 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 +1048 -150
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +34 -12
- 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 +12 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('platform'), require('tus-js-client'), require('styled-components'), require('react-dom')
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react', 'platform', 'tus-js-client', 'styled-components', 'react-dom'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Sdk2 = {}, global.React, global.platform, global.tus, global.styled, global.ReactDOM
|
|
5
|
-
})(this, (function (exports, React, platform, tusJsClient, sc$1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('platform'), require('tus-js-client'), require('styled-components'), require('react-dom')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', 'platform', 'tus-js-client', 'styled-components', 'react-dom'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Sdk2 = {}, global.React, global.platform, global.tus, global.styled, global.ReactDOM));
|
|
5
|
+
})(this, (function (exports, React, platform, tusJsClient, sc$1, ReactDOM) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
// Extracted from the barrel so modules inside this package can read the
|
|
27
27
|
// version without importing index.ts (which would be circular).
|
|
28
|
-
var webSdkUiVersion = '0.
|
|
28
|
+
var webSdkUiVersion = '0.4.0';
|
|
29
29
|
|
|
30
30
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
31
31
|
try {
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$A(r) || _nonIterableSpread();
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
var webSdkCoreVersion = '0.
|
|
494
|
+
var webSdkCoreVersion = '0.4.0';
|
|
495
495
|
|
|
496
496
|
var maxTime = 86400000;
|
|
497
497
|
var maxCount = 1000000;
|
|
@@ -11686,7 +11686,7 @@
|
|
|
11686
11686
|
});
|
|
11687
11687
|
var portalLocation = document.getElementById('idmission-above-guides-content');
|
|
11688
11688
|
if (!portalLocation) return element;
|
|
11689
|
-
return /*#__PURE__*/
|
|
11689
|
+
return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
|
|
11690
11690
|
}
|
|
11691
11691
|
var DebugStatsPaneDiv = styled.span(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-family: monospace;\n position: absolute;\n left: 20px;\n bottom: 20px;\n margin-right: 20px;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10002;\n pointer-events: none;\n"])));
|
|
11692
11692
|
var ObjectDetectionDebugOverlayDiv = styled.div(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1001;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n pointer-events: none;\n ", "\n transform-style: preserve-3d;\n"])), function (_ref3) {
|
|
@@ -12089,7 +12089,7 @@
|
|
|
12089
12089
|
}, []);
|
|
12090
12090
|
if (!target) return null;
|
|
12091
12091
|
var bottomColor = hiddenBottomColor != null ? hiddenBottomColor : color;
|
|
12092
|
-
return /*#__PURE__*/
|
|
12092
|
+
return /*#__PURE__*/ReactDOM.createPortal(jsxs(Fragment, {
|
|
12093
12093
|
children: [jsx(EdgeStrip, {
|
|
12094
12094
|
"$edge": "top",
|
|
12095
12095
|
"$color": color,
|
|
@@ -12203,7 +12203,7 @@
|
|
|
12203
12203
|
var element = jsx(GuidanceMessageContainerDiv, _extends({}, props));
|
|
12204
12204
|
var portalLocation = document.getElementById('idmission-above-guides-content');
|
|
12205
12205
|
if (!portalLocation) return element;
|
|
12206
|
-
return /*#__PURE__*/
|
|
12206
|
+
return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
|
|
12207
12207
|
};
|
|
12208
12208
|
var GuidanceMessage = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n border-radius: 8px;\n z-index: 10001;\n padding: 16px 24px;\n font-size: 18px;\n font-weight: bold;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])), function (props) {
|
|
12209
12209
|
var _ref3, _props$$background, _props$theme, _props$$variant;
|
|
@@ -54108,7 +54108,7 @@
|
|
|
54108
54108
|
});
|
|
54109
54109
|
}
|
|
54110
54110
|
|
|
54111
|
-
var webSdkVersion = '2.5.81-
|
|
54111
|
+
var webSdkVersion = '2.5.81-react16compat.0';
|
|
54112
54112
|
|
|
54113
54113
|
// GENERATED by scripts/styleBagTypes.mjs from
|
|
54114
54114
|
// src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
|
|
@@ -56998,6 +56998,25 @@
|
|
|
56998
56998
|
}, mapCustomerIdAndBiometricsEnrollmentProps(props, ctx)), props.children);
|
|
56999
56999
|
};
|
|
57000
57000
|
|
|
57001
|
+
/**
|
|
57002
|
+
* react-16-compat: React 16/17 have no `createRoot`, so this adapts the legacy
|
|
57003
|
+
* `ReactDOM.render` API to the root shape the rest of this module expects.
|
|
57004
|
+
* Keeping that shape means the teardown logic below stays byte-identical to
|
|
57005
|
+
* develop and merges cleanly. Runs on React 16.14 through 18; React 19
|
|
57006
|
+
* removed `ReactDOM.render`, which is why this build's peer range stops at 18.
|
|
57007
|
+
*/
|
|
57008
|
+
function createRoot(container) {
|
|
57009
|
+
return {
|
|
57010
|
+
render: function render(element) {
|
|
57011
|
+
// eslint-disable-next-line react/no-deprecated -- the only mount API React 16 has
|
|
57012
|
+
ReactDOM.render(element, container);
|
|
57013
|
+
},
|
|
57014
|
+
unmount: function unmount() {
|
|
57015
|
+
// eslint-disable-next-line react/no-deprecated -- pairs with ReactDOM.render above
|
|
57016
|
+
ReactDOM.unmountComponentAtNode(container);
|
|
57017
|
+
}
|
|
57018
|
+
};
|
|
57019
|
+
}
|
|
57001
57020
|
/**
|
|
57002
57021
|
* Targets whose `remove` this module has already wrapped. Permanent: the
|
|
57003
57022
|
* wrapper is installed at most once per element, so repeat renders can never
|
|
@@ -57025,8 +57044,7 @@
|
|
|
57025
57044
|
targetElement = document.createElement('div');
|
|
57026
57045
|
document.body.append(targetElement);
|
|
57027
57046
|
}
|
|
57028
|
-
var root =
|
|
57029
|
-
root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
|
|
57047
|
+
var root = createRoot(targetElement);
|
|
57030
57048
|
if ('remove' in targetElement) {
|
|
57031
57049
|
var element_1 = targetElement;
|
|
57032
57050
|
// Always point at the newest root, even when the wrapper is already
|
|
@@ -57076,6 +57094,10 @@
|
|
|
57076
57094
|
};
|
|
57077
57095
|
}
|
|
57078
57096
|
}
|
|
57097
|
+
// react-16-compat: render LAST. A legacy root mounts synchronously, so layout
|
|
57098
|
+
// effects (e.g. a customer `loadingSpinner`) run inside this call; one that
|
|
57099
|
+
// calls `.remove()` must already hit the wrapper above, not the native method.
|
|
57100
|
+
root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
|
|
57079
57101
|
return targetElement;
|
|
57080
57102
|
}
|
|
57081
57103
|
function renderComponent(Component, targetElement, options) {
|