idmission-web-sdk 2.2.112 → 2.2.114
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.map +1 -1
- package/dist/sdk2.cjs.development.js +14 -6
- 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 +14 -5
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +18 -9
- 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/dist/version.d.ts +1 -1
- package/package.json +3 -3
package/dist/sdk2.esm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { forwardRef, useState, useEffect, useRef, useContext, createContext, useReducer, useCallback, useMemo, useLayoutEffect } from 'react';
|
|
3
|
-
import * as ReactDOM from 'react-dom/client';
|
|
4
3
|
import platform from 'platform';
|
|
5
4
|
import styled, { keyframes, useTheme, ThemeProvider as ThemeProvider$1 } from 'styled-components';
|
|
6
5
|
import { useTranslation, initReactI18next } from 'react-i18next';
|
|
@@ -203,7 +202,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
203
202
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
204
203
|
};
|
|
205
204
|
|
|
206
|
-
var webSdkVersion = '2.2.
|
|
205
|
+
var webSdkVersion = '2.2.114';
|
|
207
206
|
|
|
208
207
|
function getPlatform() {
|
|
209
208
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -17650,13 +17649,23 @@ function renderElement(component, targetElement) {
|
|
|
17650
17649
|
targetElement = document.createElement('div');
|
|
17651
17650
|
document.body.append(targetElement);
|
|
17652
17651
|
}
|
|
17653
|
-
|
|
17654
|
-
root
|
|
17652
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17653
|
+
var root;
|
|
17654
|
+
import('react-dom/client').then(function (_a) {
|
|
17655
|
+
var createRoot = _a.createRoot;
|
|
17656
|
+
root = createRoot(targetElement);
|
|
17657
|
+
root.render( /*#__PURE__*/React__default.createElement(OverlayContainer, null, component));
|
|
17658
|
+
})["catch"](function () {
|
|
17659
|
+
import('react-dom').then(function (ReactDOM) {
|
|
17660
|
+
// @ts-expect-error - createRoot is not defined in React 18
|
|
17661
|
+
ReactDOM.render( /*#__PURE__*/React__default.createElement(OverlayContainer, null, component)); // eslint-disable-line react/no-deprecated
|
|
17662
|
+
});
|
|
17663
|
+
});
|
|
17655
17664
|
if ('remove' in targetElement) {
|
|
17656
17665
|
var originalRemove_1 = targetElement.remove;
|
|
17657
17666
|
targetElement.remove = function () {
|
|
17658
17667
|
try {
|
|
17659
|
-
root.unmount();
|
|
17668
|
+
root === null || root === void 0 ? void 0 : root.unmount();
|
|
17660
17669
|
originalRemove_1();
|
|
17661
17670
|
} catch (e) {
|
|
17662
17671
|
debug('failed to unmount', e);
|