chayns-api 1.0.67 → 1.0.68-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/.babelrc +30 -30
- package/.eslintrc +17 -17
- package/.github/workflows/deploy_docs.yml +28 -28
- package/.github/workflows/publish.yml +21 -21
- package/LICENSE +21 -21
- package/README.md +54 -54
- package/dist/chayns-api.js +2 -0
- package/dist/chayns-api.js.LICENSE.txt +51 -0
- package/dist/cjs/calls/dialogs/date.js +34 -34
- package/dist/cjs/calls/index.js +108 -108
- package/dist/cjs/calls/sendMessage.js +8 -8
- package/dist/cjs/calls/visibilityChangeListener.js +4 -4
- package/dist/cjs/components/AppDialogWrapper.js +2 -2
- package/dist/cjs/components/ChaynsProvider.js +1 -1
- package/dist/cjs/components/ErrorBoundary.js +1 -1
- package/dist/cjs/components/withCompatMode.js +2 -2
- package/dist/cjs/components/withHydrationBoundary.js +54 -0
- package/dist/cjs/constants/hydrationContext.js +16 -0
- package/dist/cjs/constants/index.js +16 -0
- package/dist/cjs/constants/languages.js +19 -0
- package/dist/cjs/hooks/geoLocationListener.js +4 -4
- package/dist/cjs/hooks/scrollListener.js +8 -8
- package/dist/cjs/hooks/useAccessToken.js +3 -3
- package/dist/cjs/hooks/useCurrentPage.js +2 -2
- package/dist/cjs/hooks/useCustomData.js +2 -2
- package/dist/cjs/hooks/useDevice.js +2 -2
- package/dist/cjs/hooks/useDialogState.js +4 -4
- package/dist/cjs/hooks/useEnvironment.js +2 -2
- package/dist/cjs/hooks/useFunctions.js +2 -2
- package/dist/cjs/hooks/useIsAdminMode.js +2 -2
- package/dist/cjs/hooks/useLanguage.js +2 -2
- package/dist/cjs/hooks/usePages.js +4 -4
- package/dist/cjs/hooks/useParameters.js +2 -2
- package/dist/cjs/hooks/useSite.js +2 -2
- package/dist/cjs/hooks/useUser.js +2 -2
- package/dist/cjs/hooks/useValues.js +2 -2
- package/dist/cjs/hooks/windowMetricsListener.js +4 -4
- package/dist/cjs/host/ChaynsHost.js +21 -40
- package/dist/cjs/host/iframe/HostIframe.js +2 -2
- package/dist/cjs/host/module/ModuleHost.js +5 -20
- package/dist/cjs/host/module/utils/loadComponent.js +98 -53
- package/dist/cjs/index.js +36 -1
- package/dist/cjs/types/IChaynsReact.js +4 -4
- package/dist/cjs/util/heightHelper.js +1 -1
- package/dist/cjs/util/url.js +1 -1
- package/dist/cjs/wrapper/AppWrapper.js +12 -7
- package/dist/cjs/wrapper/FrameWrapper.js +1 -1
- package/dist/cjs/wrapper/ModuleFederationWrapper.js +1 -1
- package/dist/esm/calls/dialogs/date.js +34 -34
- package/dist/esm/calls/index.js +108 -108
- package/dist/esm/calls/sendMessage.js +8 -8
- package/dist/esm/calls/visibilityChangeListener.js +4 -4
- package/dist/esm/components/AppDialogWrapper.js +1 -1
- package/dist/esm/components/withCompatMode.js +1 -1
- package/dist/esm/components/withHydrationBoundary.js +47 -0
- package/dist/esm/constants/hydrationContext.js +10 -0
- package/dist/esm/constants/index.js +1 -0
- package/dist/esm/constants/languages.js +13 -0
- package/dist/esm/handler/DialogHandler.js +1 -1
- package/dist/esm/hooks/geoLocationListener.js +4 -4
- package/dist/esm/hooks/scrollListener.js +8 -8
- package/dist/esm/hooks/useAccessToken.js +3 -3
- package/dist/esm/hooks/useCurrentPage.js +2 -2
- package/dist/esm/hooks/useCustomData.js +2 -2
- package/dist/esm/hooks/useDevice.js +2 -2
- package/dist/esm/hooks/useDialogState.js +4 -4
- package/dist/esm/hooks/useEnvironment.js +2 -2
- package/dist/esm/hooks/useFunctions.js +2 -2
- package/dist/esm/hooks/useIsAdminMode.js +2 -2
- package/dist/esm/hooks/useLanguage.js +2 -2
- package/dist/esm/hooks/usePages.js +4 -4
- package/dist/esm/hooks/useParameters.js +2 -2
- package/dist/esm/hooks/useSite.js +2 -2
- package/dist/esm/hooks/useUser.js +2 -2
- package/dist/esm/hooks/useValues.js +2 -2
- package/dist/esm/hooks/windowMetricsListener.js +4 -4
- package/dist/esm/host/ChaynsHost.js +18 -39
- package/dist/esm/host/iframe/HostIframe.js +1 -1
- package/dist/esm/host/module/ModuleHost.js +4 -19
- package/dist/esm/host/module/utils/loadComponent.js +99 -53
- package/dist/esm/index.js +3 -0
- package/dist/esm/types/IChaynsReact.js +4 -4
- package/dist/esm/util/url.js +2 -2
- package/dist/esm/wrapper/AppWrapper.js +12 -7
- package/dist/esm/wrapper/FrameWrapper.js +1 -1
- package/dist/esm/wrapper/StaticChaynsApi.js +1 -1
- package/dist/types/calls/dialogs/alert.d.ts +1 -1
- package/dist/types/calls/dialogs/chaynsDialog.d.ts +24 -24
- package/dist/types/calls/dialogs/close.d.ts +1 -1
- package/dist/types/calls/dialogs/communication.d.ts +3 -3
- package/dist/types/calls/dialogs/confirm.d.ts +13 -13
- package/dist/types/calls/dialogs/date.d.ts +96 -96
- package/dist/types/calls/dialogs/dropUpAlert.d.ts +5 -5
- package/dist/types/calls/dialogs/fileSelect.d.ts +16 -16
- package/dist/types/calls/dialogs/iFrame.d.ts +10 -10
- package/dist/types/calls/dialogs/index.d.ts +14 -14
- package/dist/types/calls/dialogs/input.d.ts +15 -15
- package/dist/types/calls/dialogs/mediaSelect.d.ts +8 -8
- package/dist/types/calls/dialogs/open.d.ts +1 -1
- package/dist/types/calls/dialogs/select.d.ts +6 -6
- package/dist/types/calls/dialogs/signature.d.ts +7 -7
- package/dist/types/calls/dialogs/toast.d.ts +1 -1
- package/dist/types/calls/dialogs/utils/callback.d.ts +1 -1
- package/dist/types/calls/dialogs/utils/is.d.ts +4 -4
- package/dist/types/calls/getUserInfo.d.ts +9 -9
- package/dist/types/calls/index.d.ts +255 -259
- package/dist/types/calls/sendMessage.d.ts +13 -13
- package/dist/types/calls/visibilityChangeListener.d.ts +9 -9
- package/dist/types/components/AppDialogWrapper.d.ts +5 -5
- package/dist/types/components/ChaynsContext.d.ts +3 -3
- package/dist/types/components/ChaynsProvider.d.ts +11 -11
- package/dist/types/components/ErrorBoundary.d.ts +13 -13
- package/dist/types/components/WaitUntil.d.ts +7 -7
- package/dist/types/components/moduleWrapper.d.ts +4 -4
- package/dist/types/components/withCompatMode.d.ts +13 -13
- package/dist/types/components/withHydrationBoundary.d.ts +17 -0
- package/dist/types/constants/hydrationContext.d.ts +9 -0
- package/dist/types/constants/index.d.ts +1 -0
- package/dist/types/constants/languages.d.ts +12 -0
- package/dist/types/handler/DialogHandler.d.ts +18 -18
- package/dist/types/helper/apiListenerHelper.d.ts +6 -6
- package/dist/types/hooks/geoLocationListener.d.ts +18 -18
- package/dist/types/hooks/index.d.ts +17 -17
- package/dist/types/hooks/scrollListener.d.ts +28 -28
- package/dist/types/hooks/useAccessToken.d.ts +6 -6
- package/dist/types/hooks/useCurrentPage.d.ts +7 -4
- package/dist/types/hooks/useCustomData.d.ts +4 -4
- package/dist/types/hooks/useDevice.d.ts +5 -5
- package/dist/types/hooks/useDialogState.d.ts +9 -9
- package/dist/types/hooks/useEnvironment.d.ts +5 -5
- package/dist/types/hooks/useFunctions.d.ts +5 -5
- package/dist/types/hooks/useIsAdminMode.d.ts +4 -4
- package/dist/types/hooks/useLanguage.d.ts +5 -5
- package/dist/types/hooks/usePages.d.ts +18 -18
- package/dist/types/hooks/useParameters.d.ts +5 -5
- package/dist/types/hooks/useSite.d.ts +5 -5
- package/dist/types/hooks/useUser.d.ts +5 -5
- package/dist/types/hooks/useValues.d.ts +5 -5
- package/dist/types/hooks/windowMetricsListener.d.ts +11 -11
- package/dist/types/host/ChaynsHost.d.ts +29 -30
- package/dist/types/host/iframe/HostIframe.d.ts +26 -26
- package/dist/types/host/iframe/utils/useUpdateData.d.ts +3 -3
- package/dist/types/host/module/ModuleHost.d.ts +28 -27
- package/dist/types/host/module/utils/loadComponent.d.ts +3 -1
- package/dist/types/index.d.ts +22 -19
- package/dist/types/types/IChaynsReact.d.ts +820 -820
- package/dist/types/types/dialog.d.ts +41 -41
- package/dist/types/util/appCall.d.ts +2 -2
- package/dist/types/util/deviceHelper.d.ts +7 -7
- package/dist/types/util/heightHelper.d.ts +1 -1
- package/dist/types/util/postIframeForm.d.ts +1 -1
- package/dist/types/util/transferNestedFunctions.d.ts +1 -1
- package/dist/types/util/url.d.ts +1 -1
- package/dist/types/wrapper/AppWrapper.d.ts +22 -22
- package/dist/types/wrapper/FrameWrapper.d.ts +15 -15
- package/dist/types/wrapper/ModuleFederationWrapper.d.ts +10 -10
- package/dist/types/wrapper/SsrWrapper.d.ts +11 -11
- package/dist/types/wrapper/StaticChaynsApi.d.ts +16 -16
- package/package.json +86 -78
- package/toolkit.config.js +20 -20
- package/tsconfig.json +56 -56
- package/dist/cjs/host/module/utils/useDynamicScript.js +0 -59
- package/dist/esm/host/module/utils/useDynamicScript.js +0 -50
- package/dist/types/host/module/utils/useDynamicScript.d.ts +0 -9
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* scheduler.production.min.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** @license React v0.20.2
|
|
18
|
+
* scheduler.production.min.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/** @license React v17.0.2
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/** @license React v17.0.2
|
|
36
|
+
* react-jsx-runtime.production.min.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/** @license React v17.0.2
|
|
45
|
+
* react.production.min.js
|
|
46
|
+
*
|
|
47
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the MIT license found in the
|
|
50
|
+
* LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/
|
|
@@ -10,32 +10,32 @@ var _chaynsDialog = require("./chaynsDialog");
|
|
|
10
10
|
var _is = require("./utils/is");
|
|
11
11
|
var _open = require("./open");
|
|
12
12
|
var _index = require("../index");
|
|
13
|
-
/**
|
|
14
|
-
* The config object for date dialog
|
|
15
|
-
* @typedef {Object} dateConfig
|
|
16
|
-
* @property {Date} preSelect - The date object which should be preselected.
|
|
17
|
-
* @property {Date} minDate - The min date which you could select.
|
|
18
|
-
* @property {Date} maxDate - The max date which you could select.
|
|
19
|
-
* @property {dateDialogType} dateType - The type of dialog you want to display.
|
|
20
|
-
* @property {number} minuteIntervall - The interval for special minutes, possible are 2, 3, 4, 5, 6, 12, 15, 20, 30. Default is 1.
|
|
21
|
-
* @property {string} message - The message that is displayed above the date dialog, only in apps supported
|
|
22
|
-
* @property {string} title - The title that is displayed above the message, only in apps supported
|
|
13
|
+
/**
|
|
14
|
+
* The config object for date dialog
|
|
15
|
+
* @typedef {Object} dateConfig
|
|
16
|
+
* @property {Date} preSelect - The date object which should be preselected.
|
|
17
|
+
* @property {Date} minDate - The min date which you could select.
|
|
18
|
+
* @property {Date} maxDate - The max date which you could select.
|
|
19
|
+
* @property {dateDialogType} dateType - The type of dialog you want to display.
|
|
20
|
+
* @property {number} minuteIntervall - The interval for special minutes, possible are 2, 3, 4, 5, 6, 12, 15, 20, 30. Default is 1.
|
|
21
|
+
* @property {string} message - The message that is displayed above the date dialog, only in apps supported
|
|
22
|
+
* @property {string} title - The title that is displayed above the message, only in apps supported
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
/**
|
|
26
|
-
* This call will open a date select dialog.
|
|
27
|
-
* <div>Call: 30</div>
|
|
28
|
-
* @param {dateConfig} config - Define the configuration of this call
|
|
29
|
-
* @return {Promise} contains a timestamp as result
|
|
30
|
-
* @example chayns.dialog.date({
|
|
31
|
-
* 'dateType': chayns.dialog.dateType.DATE_TIME,
|
|
32
|
-
* 'preSelect': new Date(2018, 6, 14, 0, 0, 0),
|
|
33
|
-
* 'minDate': new Date(2018, 6, 1, 15, 0, 0),
|
|
34
|
-
* 'maxDate': new Date(2019, 6, 1, 0, 23, 0),
|
|
35
|
-
* 'minuteInterval': 15
|
|
36
|
-
* ).then(function (data) {
|
|
37
|
-
* console.log(data);
|
|
38
|
-
* });
|
|
25
|
+
/**
|
|
26
|
+
* This call will open a date select dialog.
|
|
27
|
+
* <div>Call: 30</div>
|
|
28
|
+
* @param {dateConfig} config - Define the configuration of this call
|
|
29
|
+
* @return {Promise} contains a timestamp as result
|
|
30
|
+
* @example chayns.dialog.date({
|
|
31
|
+
* 'dateType': chayns.dialog.dateType.DATE_TIME,
|
|
32
|
+
* 'preSelect': new Date(2018, 6, 14, 0, 0, 0),
|
|
33
|
+
* 'minDate': new Date(2018, 6, 1, 15, 0, 0),
|
|
34
|
+
* 'maxDate': new Date(2019, 6, 1, 0, 23, 0),
|
|
35
|
+
* 'minuteInterval': 15
|
|
36
|
+
* ).then(function (data) {
|
|
37
|
+
* console.log(data);
|
|
38
|
+
* });
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
function date(config = {}) {
|
|
@@ -170,18 +170,18 @@ function advancedDate(config = {}) {
|
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
/**
|
|
174
|
-
* @typedef {number} dateDialogType
|
|
173
|
+
/**
|
|
174
|
+
* @typedef {number} dateDialogType
|
|
175
175
|
*/
|
|
176
176
|
|
|
177
|
-
/**
|
|
178
|
-
* Enum for date dialog
|
|
179
|
-
* <div>DATE will open a dialog where you can select a special day</div>
|
|
180
|
-
* <div>TIME will open a dialog where you can only select a special time</div>
|
|
181
|
-
* <div>DATE_TIME will open a dialog where you can select a special time on a special day</div>
|
|
182
|
-
* @readonly
|
|
183
|
-
* @enum {dateDialogType}
|
|
184
|
-
* @type {{DATE: number, TIME: number, DATE_TIME: number}}
|
|
177
|
+
/**
|
|
178
|
+
* Enum for date dialog
|
|
179
|
+
* <div>DATE will open a dialog where you can select a special day</div>
|
|
180
|
+
* <div>TIME will open a dialog where you can only select a special time</div>
|
|
181
|
+
* <div>DATE_TIME will open a dialog where you can select a special time on a special day</div>
|
|
182
|
+
* @readonly
|
|
183
|
+
* @enum {dateDialogType}
|
|
184
|
+
* @type {{DATE: number, TIME: number, DATE_TIME: number}}
|
|
185
185
|
*/
|
|
186
186
|
const dateType = exports.dateType = {
|
|
187
187
|
'DATE': 1,
|
package/dist/cjs/calls/index.js
CHANGED
|
@@ -5,68 +5,68 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.vibrate = exports.user = exports.storageSetItem = exports.storageRemoveItem = exports.storageGetItem = exports.site = exports.setWaitCursor = exports.setTempDesignSettings = exports.setScanQrCode = exports.setRefreshScrollEnabled = exports.setOverlay = exports.setHeight = exports.setFloatingButton = exports.setDisplayTimeout = exports.setAdminMode = exports.sendMessageToUser = exports.sendMessageToPage = exports.sendMessageToGroup = exports.selectPage = exports.scrollToY = exports.scrollByY = exports.removeWindowMetricsListener = exports.removeVisibilityChangeListener = exports.removeToolbarChangeListener = exports.removeScrollListener = exports.removeGeoLocationListener = exports.refreshData = exports.refreshAccessToken = exports.parameters = exports.pages = exports.openVideo = exports.openUrl = exports.openMedia = exports.openImage = exports.navigateBack = exports.logout = exports.login = exports.language = exports.invokeDialogCall = exports.invokeCall = exports.getWindowMetrics = exports.getUserInfo = exports.getUser = exports.getSite = exports.getScrollPosition = exports.getParameters = exports.getPages = exports.getLanguage = exports.getGeoLocation = exports.getEnvironment = exports.getDevice = exports.getCurrentPage = exports.getAvailableSharingServices = exports.getAccessToken = exports.environment = exports.device = exports.customCallbackFunction = exports.createDialog = exports.addWindowMetricsListener = exports.addVisibilityChangeListener = exports.addToolbarChangeListener = exports.addScrollListener = exports.addGeoLocationListener = exports.addAnonymousAccount = void 0;
|
|
7
7
|
var _moduleWrapper = require("../components/moduleWrapper");
|
|
8
|
-
/**
|
|
9
|
-
* This adds a listener to determine your location.
|
|
10
|
-
* @category Event listener
|
|
8
|
+
/**
|
|
9
|
+
* This adds a listener to determine your location.
|
|
10
|
+
* @category Event listener
|
|
11
11
|
*/
|
|
12
12
|
const addGeoLocationListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.addGeoLocationListener(...args);
|
|
13
|
-
/**
|
|
14
|
-
* Adds a listener for scroll event by user.
|
|
15
|
-
* @category Event listener
|
|
13
|
+
/**
|
|
14
|
+
* Adds a listener for scroll event by user.
|
|
15
|
+
* @category Event listener
|
|
16
16
|
*/
|
|
17
17
|
exports.addGeoLocationListener = addGeoLocationListener;
|
|
18
18
|
const addScrollListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.addScrollListener(...args);
|
|
19
|
-
/**
|
|
20
|
-
* This method will be executed when the page gets displayed or hidden.
|
|
21
|
-
* @category Event listener
|
|
19
|
+
/**
|
|
20
|
+
* This method will be executed when the page gets displayed or hidden.
|
|
21
|
+
* @category Event listener
|
|
22
22
|
*/
|
|
23
23
|
exports.addScrollListener = addScrollListener;
|
|
24
24
|
const addVisibilityChangeListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.addVisibilityChangeListener(...args);
|
|
25
|
-
/**
|
|
26
|
-
* This method will be executed when the toolbar gets displayed or hidden.
|
|
27
|
-
* @category Event listener
|
|
25
|
+
/**
|
|
26
|
+
* This method will be executed when the toolbar gets displayed or hidden.
|
|
27
|
+
* @category Event listener
|
|
28
28
|
*/
|
|
29
29
|
exports.addVisibilityChangeListener = addVisibilityChangeListener;
|
|
30
30
|
const addToolbarChangeListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.addToolbarChangeListener(...args);
|
|
31
31
|
|
|
32
|
-
/**
|
|
33
|
-
* This adds a listener to get the actual height of the page.
|
|
34
|
-
* @category Event listener
|
|
32
|
+
/**
|
|
33
|
+
* This adds a listener to get the actual height of the page.
|
|
34
|
+
* @category Event listener
|
|
35
35
|
*/
|
|
36
36
|
exports.addToolbarChangeListener = addToolbarChangeListener;
|
|
37
|
-
const addWindowMetricsListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.addWindowMetricsListener(...args); /**
|
|
38
|
-
* Allows a custom callback function to be defined
|
|
37
|
+
const addWindowMetricsListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.addWindowMetricsListener(...args); /**
|
|
38
|
+
* Allows a custom callback function to be defined
|
|
39
39
|
*/
|
|
40
40
|
exports.addWindowMetricsListener = addWindowMetricsListener;
|
|
41
41
|
const customCallbackFunction = (...args) => _moduleWrapper.moduleWrapper.current.functions.customCallbackFunction(...args);
|
|
42
|
-
/**
|
|
43
|
-
* Get the accessToken from the user.
|
|
42
|
+
/**
|
|
43
|
+
* Get the accessToken from the user.
|
|
44
44
|
*/
|
|
45
45
|
exports.customCallbackFunction = customCallbackFunction;
|
|
46
46
|
const getAccessToken = (...args) => _moduleWrapper.moduleWrapper.current.functions.getAccessToken(...args);
|
|
47
|
-
/**
|
|
48
|
-
* This method returns a list of installed share/social media apps.
|
|
47
|
+
/**
|
|
48
|
+
* This method returns a list of installed share/social media apps.
|
|
49
49
|
*/
|
|
50
50
|
exports.getAccessToken = getAccessToken;
|
|
51
51
|
const getAvailableSharingServices = (...args) => _moduleWrapper.moduleWrapper.current.functions.getAvailableSharingServices(...args);
|
|
52
|
-
/**
|
|
53
|
-
* This method determines your location. If you want to track a route, use addGeoLocationListener.
|
|
52
|
+
/**
|
|
53
|
+
* This method determines your location. If you want to track a route, use addGeoLocationListener.
|
|
54
54
|
*/
|
|
55
55
|
exports.getAvailableSharingServices = getAvailableSharingServices;
|
|
56
56
|
const getGeoLocation = (...args) => _moduleWrapper.moduleWrapper.current.functions.getGeoLocation(...args);
|
|
57
|
-
/**
|
|
58
|
-
* This method returns user information for a specific user.
|
|
59
|
-
* @category User functions
|
|
57
|
+
/**
|
|
58
|
+
* This method returns user information for a specific user.
|
|
59
|
+
* @category User functions
|
|
60
60
|
*/
|
|
61
61
|
exports.getGeoLocation = getGeoLocation;
|
|
62
62
|
const getUserInfo = (...args) => _moduleWrapper.moduleWrapper.current.functions.getUserInfo(...args);
|
|
63
|
-
/**
|
|
64
|
-
* Return the current scroll position of the top frame
|
|
63
|
+
/**
|
|
64
|
+
* Return the current scroll position of the top frame
|
|
65
65
|
*/
|
|
66
66
|
exports.getUserInfo = getUserInfo;
|
|
67
67
|
const getScrollPosition = (...args) => _moduleWrapper.moduleWrapper.current.functions.getScrollPosition(...args);
|
|
68
|
-
/**
|
|
69
|
-
* Returns the window metrics.
|
|
68
|
+
/**
|
|
69
|
+
* Returns the window metrics.
|
|
70
70
|
*/
|
|
71
71
|
exports.getScrollPosition = getScrollPosition;
|
|
72
72
|
const getWindowMetrics = (...args) => _moduleWrapper.moduleWrapper.current.functions.getWindowMetrics(...args);
|
|
@@ -76,190 +76,190 @@ const invokeCall = (...args) => _moduleWrapper.moduleWrapper.current.functions.i
|
|
|
76
76
|
/** @internal */
|
|
77
77
|
exports.invokeCall = invokeCall;
|
|
78
78
|
const invokeDialogCall = (...args) => _moduleWrapper.moduleWrapper.current.functions.invokeDialogCall(...args);
|
|
79
|
-
/**
|
|
80
|
-
* This method will show a login dialog where the user has the opportunity to log in.
|
|
79
|
+
/**
|
|
80
|
+
* This method will show a login dialog where the user has the opportunity to log in.
|
|
81
81
|
*/
|
|
82
82
|
exports.invokeDialogCall = invokeDialogCall;
|
|
83
83
|
const login = (...args) => _moduleWrapper.moduleWrapper.current.functions.login(...args);
|
|
84
|
-
/**
|
|
85
|
-
* This method will logout the user
|
|
84
|
+
/**
|
|
85
|
+
* This method will logout the user
|
|
86
86
|
*/
|
|
87
87
|
exports.login = login;
|
|
88
88
|
const logout = (...args) => _moduleWrapper.moduleWrapper.current.functions.logout(...args);
|
|
89
|
-
/**
|
|
90
|
-
* This function navigates you to the previous site.
|
|
89
|
+
/**
|
|
90
|
+
* This function navigates you to the previous site.
|
|
91
91
|
*/
|
|
92
92
|
exports.logout = logout;
|
|
93
93
|
const navigateBack = (...args) => _moduleWrapper.moduleWrapper.current.functions.navigateBack(...args);
|
|
94
|
-
/**
|
|
95
|
-
* The images specified in the url array is shown in gallery mode.
|
|
94
|
+
/**
|
|
95
|
+
* The images specified in the url array is shown in gallery mode.
|
|
96
96
|
*/
|
|
97
97
|
exports.navigateBack = navigateBack;
|
|
98
98
|
const openImage = (...args) => _moduleWrapper.moduleWrapper.current.functions.openImage(...args);
|
|
99
|
-
/**
|
|
100
|
-
* The images and videos specified in the items array is shown in gallery mode.
|
|
99
|
+
/**
|
|
100
|
+
* The images and videos specified in the items array is shown in gallery mode.
|
|
101
101
|
*/
|
|
102
102
|
exports.openImage = openImage;
|
|
103
103
|
const openMedia = (...args) => _moduleWrapper.moduleWrapper.current.functions.openMedia(...args);
|
|
104
|
-
/**
|
|
105
|
-
* Opens an URL in the chayns environment.
|
|
104
|
+
/**
|
|
105
|
+
* Opens an URL in the chayns environment.
|
|
106
106
|
*/
|
|
107
107
|
exports.openMedia = openMedia;
|
|
108
108
|
const openUrl = (...args) => _moduleWrapper.moduleWrapper.current.functions.openUrl(...args);
|
|
109
|
-
/**
|
|
110
|
-
* The video specified in the URL is shown in video mode.
|
|
109
|
+
/**
|
|
110
|
+
* The video specified in the URL is shown in video mode.
|
|
111
111
|
*/
|
|
112
112
|
exports.openUrl = openUrl;
|
|
113
113
|
const openVideo = (...args) => _moduleWrapper.moduleWrapper.current.functions.openVideo(...args);
|
|
114
|
-
/**
|
|
115
|
-
* Refresh badge count in navigation, user information and pages
|
|
114
|
+
/**
|
|
115
|
+
* Refresh badge count in navigation, user information and pages
|
|
116
116
|
*/
|
|
117
117
|
exports.openVideo = openVideo;
|
|
118
118
|
const refreshData = (...args) => _moduleWrapper.moduleWrapper.current.functions.refreshData(...args);
|
|
119
|
-
/**
|
|
120
|
-
* Refresh accesstoken, should only be used when user object changes, not when token is invalid
|
|
119
|
+
/**
|
|
120
|
+
* Refresh accesstoken, should only be used when user object changes, not when token is invalid
|
|
121
121
|
*/
|
|
122
122
|
exports.refreshData = refreshData;
|
|
123
123
|
const refreshAccessToken = (...args) => _moduleWrapper.moduleWrapper.current.functions.refreshAccessToken(...args);
|
|
124
|
-
/**
|
|
125
|
-
* This removes a listener to determine your location.
|
|
126
|
-
* @category Event listener
|
|
124
|
+
/**
|
|
125
|
+
* This removes a listener to determine your location.
|
|
126
|
+
* @category Event listener
|
|
127
127
|
*/
|
|
128
128
|
exports.refreshAccessToken = refreshAccessToken;
|
|
129
129
|
const removeGeoLocationListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.removeGeoLocationListener(...args);
|
|
130
|
-
/**
|
|
131
|
-
* This removes a listener for changing toolbar visibility
|
|
132
|
-
* @category Event listener
|
|
130
|
+
/**
|
|
131
|
+
* This removes a listener for changing toolbar visibility
|
|
132
|
+
* @category Event listener
|
|
133
133
|
*/
|
|
134
134
|
exports.removeGeoLocationListener = removeGeoLocationListener;
|
|
135
135
|
const removeToolbarChangeListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.removeToolbarChangeListener(...args);
|
|
136
|
-
/**
|
|
137
|
-
* Removes scroll listener.
|
|
138
|
-
* @category Event listener
|
|
136
|
+
/**
|
|
137
|
+
* Removes scroll listener.
|
|
138
|
+
* @category Event listener
|
|
139
139
|
*/
|
|
140
140
|
exports.removeToolbarChangeListener = removeToolbarChangeListener;
|
|
141
141
|
const removeScrollListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.removeScrollListener(...args);
|
|
142
|
-
/**
|
|
143
|
-
* Removes visibility change listener.
|
|
144
|
-
* @category Event listener
|
|
142
|
+
/**
|
|
143
|
+
* Removes visibility change listener.
|
|
144
|
+
* @category Event listener
|
|
145
145
|
*/
|
|
146
146
|
exports.removeScrollListener = removeScrollListener;
|
|
147
147
|
const removeVisibilityChangeListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.removeVisibilityChangeListener(...args);
|
|
148
|
-
/**
|
|
149
|
-
* Removes window metrics listener.
|
|
150
|
-
* @category Event listener
|
|
148
|
+
/**
|
|
149
|
+
* Removes window metrics listener.
|
|
150
|
+
* @category Event listener
|
|
151
151
|
*/
|
|
152
152
|
exports.removeVisibilityChangeListener = removeVisibilityChangeListener;
|
|
153
153
|
const removeWindowMetricsListener = (...args) => _moduleWrapper.moduleWrapper.current.functions.removeWindowMetricsListener(...args);
|
|
154
|
-
/**
|
|
155
|
-
* Select other page on chayns site.
|
|
154
|
+
/**
|
|
155
|
+
* Select other page on chayns site.
|
|
156
156
|
*/
|
|
157
157
|
exports.removeWindowMetricsListener = removeWindowMetricsListener;
|
|
158
158
|
const selectPage = (...args) => _moduleWrapper.moduleWrapper.current.functions.selectPage(...args);
|
|
159
|
-
/**
|
|
160
|
-
* Scrolls by specific amount.
|
|
159
|
+
/**
|
|
160
|
+
* Scrolls by specific amount.
|
|
161
161
|
*/
|
|
162
162
|
exports.selectPage = selectPage;
|
|
163
163
|
const scrollByY = (...args) => _moduleWrapper.moduleWrapper.current.functions.scrollByY(...args);
|
|
164
|
-
/**
|
|
165
|
-
* Scrolls to specific position.
|
|
164
|
+
/**
|
|
165
|
+
* Scrolls to specific position.
|
|
166
166
|
*/
|
|
167
167
|
exports.scrollByY = scrollByY;
|
|
168
168
|
const scrollToY = (...args) => _moduleWrapper.moduleWrapper.current.functions.scrollToY(...args);
|
|
169
|
-
/**
|
|
170
|
-
* Sends intercom message to group.
|
|
169
|
+
/**
|
|
170
|
+
* Sends intercom message to group.
|
|
171
171
|
*/
|
|
172
172
|
exports.scrollToY = scrollToY;
|
|
173
173
|
const sendMessageToGroup = (...args) => _moduleWrapper.moduleWrapper.current.functions.sendMessageToGroup(...args);
|
|
174
|
-
/**
|
|
175
|
-
* Sends intercom message to page.
|
|
174
|
+
/**
|
|
175
|
+
* Sends intercom message to page.
|
|
176
176
|
*/
|
|
177
177
|
exports.sendMessageToGroup = sendMessageToGroup;
|
|
178
178
|
const sendMessageToPage = (...args) => _moduleWrapper.moduleWrapper.current.functions.sendMessageToPage(...args);
|
|
179
|
-
/**
|
|
180
|
-
* Sends intercom message to an user.
|
|
179
|
+
/**
|
|
180
|
+
* Sends intercom message to an user.
|
|
181
181
|
*/
|
|
182
182
|
exports.sendMessageToPage = sendMessageToPage;
|
|
183
183
|
const sendMessageToUser = (...args) => _moduleWrapper.moduleWrapper.current.functions.sendMessageToUser(...args);
|
|
184
|
-
/**
|
|
185
|
-
* Switches admin mode, also toggles admin switch in top frame.
|
|
184
|
+
/**
|
|
185
|
+
* Switches admin mode, also toggles admin switch in top frame.
|
|
186
186
|
*/
|
|
187
187
|
exports.sendMessageToUser = sendMessageToUser;
|
|
188
188
|
const setAdminMode = (...args) => _moduleWrapper.moduleWrapper.current.functions.setAdminMode(...args);
|
|
189
|
-
/**
|
|
190
|
-
* Sets the display timeout, only works in chayns App.
|
|
189
|
+
/**
|
|
190
|
+
* Sets the display timeout, only works in chayns App.
|
|
191
191
|
*/
|
|
192
192
|
exports.setAdminMode = setAdminMode;
|
|
193
193
|
const setDisplayTimeout = (...args) => _moduleWrapper.moduleWrapper.current.functions.setDisplayTimeout(...args);
|
|
194
|
-
/**
|
|
195
|
-
* Enables or disables a button which floats over the page.
|
|
194
|
+
/**
|
|
195
|
+
* Enables or disables a button which floats over the page.
|
|
196
196
|
*/
|
|
197
197
|
exports.setDisplayTimeout = setDisplayTimeout;
|
|
198
198
|
const setFloatingButton = (...args) => _moduleWrapper.moduleWrapper.current.functions.setFloatingButton(...args);
|
|
199
|
-
/**
|
|
200
|
-
* Sets the height of the page.
|
|
199
|
+
/**
|
|
200
|
+
* Sets the height of the page.
|
|
201
201
|
*/
|
|
202
202
|
exports.setFloatingButton = setFloatingButton;
|
|
203
203
|
const setHeight = (...args) => _moduleWrapper.moduleWrapper.current.functions.setHeight(...args);
|
|
204
|
-
/**
|
|
205
|
-
* Enables or disables the ability to refresh a page
|
|
204
|
+
/**
|
|
205
|
+
* Enables or disables the ability to refresh a page
|
|
206
206
|
*/
|
|
207
207
|
exports.setHeight = setHeight;
|
|
208
208
|
const setRefreshScrollEnabled = (...args) => _moduleWrapper.moduleWrapper.current.functions.setRefreshScrollEnabled(...args);
|
|
209
|
-
/**
|
|
210
|
-
* Scans a qr-code and returns the result
|
|
209
|
+
/**
|
|
210
|
+
* Scans a qr-code and returns the result
|
|
211
211
|
*/
|
|
212
212
|
exports.setRefreshScrollEnabled = setRefreshScrollEnabled;
|
|
213
213
|
const setScanQrCode = (...args) => _moduleWrapper.moduleWrapper.current.functions.setScanQrCode(...args);
|
|
214
|
-
/**
|
|
215
|
-
* Temporarily change design settings in top frame
|
|
214
|
+
/**
|
|
215
|
+
* Temporarily change design settings in top frame
|
|
216
216
|
*/
|
|
217
217
|
exports.setScanQrCode = setScanQrCode;
|
|
218
218
|
const setTempDesignSettings = (...args) => _moduleWrapper.moduleWrapper.current.functions.setTempDesignSettings(...args);
|
|
219
|
-
/**
|
|
220
|
-
* Shows or hide a waitcursor
|
|
219
|
+
/**
|
|
220
|
+
* Shows or hide a waitcursor
|
|
221
221
|
*/
|
|
222
222
|
exports.setTempDesignSettings = setTempDesignSettings;
|
|
223
223
|
const setWaitCursor = (...args) => _moduleWrapper.moduleWrapper.current.functions.setWaitCursor(...args);
|
|
224
|
-
/**
|
|
225
|
-
* Retrieves the value that is assigned to the key from a storage outside the frame
|
|
224
|
+
/**
|
|
225
|
+
* Retrieves the value that is assigned to the key from a storage outside the frame
|
|
226
226
|
*/
|
|
227
227
|
exports.setWaitCursor = setWaitCursor;
|
|
228
228
|
const storageGetItem = (...args) => _moduleWrapper.moduleWrapper.current.functions.storageGetItem(...args);
|
|
229
|
-
/**
|
|
230
|
-
* Removes the value that is assigned to the key from a storage outside the frame
|
|
229
|
+
/**
|
|
230
|
+
* Removes the value that is assigned to the key from a storage outside the frame
|
|
231
231
|
*/
|
|
232
232
|
exports.storageGetItem = storageGetItem;
|
|
233
233
|
const storageRemoveItem = (...args) => _moduleWrapper.moduleWrapper.current.functions.storageRemoveItem(...args);
|
|
234
|
-
/**
|
|
235
|
-
* Sets the value that is assigned to the key from a storage outside the frame
|
|
234
|
+
/**
|
|
235
|
+
* Sets the value that is assigned to the key from a storage outside the frame
|
|
236
236
|
*/
|
|
237
237
|
exports.storageRemoveItem = storageRemoveItem;
|
|
238
238
|
const storageSetItem = (...args) => _moduleWrapper.moduleWrapper.current.functions.storageSetItem(...args);
|
|
239
|
-
/**
|
|
240
|
-
* This method lets a smartphone vibrate for the given time.
|
|
239
|
+
/**
|
|
240
|
+
* This method lets a smartphone vibrate for the given time.
|
|
241
241
|
*/
|
|
242
242
|
exports.storageSetItem = storageSetItem;
|
|
243
243
|
const vibrate = (...args) => _moduleWrapper.moduleWrapper.current.functions.vibrate(...args);
|
|
244
|
-
/**
|
|
245
|
-
* This method creates a dialog
|
|
244
|
+
/**
|
|
245
|
+
* This method creates a dialog
|
|
246
246
|
*/
|
|
247
247
|
exports.vibrate = vibrate;
|
|
248
248
|
const createDialog = (...args) => _moduleWrapper.moduleWrapper.current.functions.createDialog(...args);
|
|
249
|
-
/**
|
|
250
|
-
* Displays an overlay
|
|
249
|
+
/**
|
|
250
|
+
* Displays an overlay
|
|
251
251
|
*/
|
|
252
252
|
exports.createDialog = createDialog;
|
|
253
253
|
const setOverlay = (...args) => _moduleWrapper.moduleWrapper.current.functions.setOverlay(...args);
|
|
254
254
|
|
|
255
|
-
/**
|
|
256
|
-
* Generates a temp accesstoken, only valid for short period of time (~3 days), works only when no user is logged in
|
|
255
|
+
/**
|
|
256
|
+
* Generates a temp accesstoken, only valid for short period of time (~3 days), works only when no user is logged in
|
|
257
257
|
*/
|
|
258
258
|
exports.setOverlay = setOverlay;
|
|
259
259
|
const addAnonymousAccount = () => _moduleWrapper.moduleWrapper.current.functions.addAnonymousAccount();
|
|
260
|
-
/**
|
|
261
|
-
* Returns user information, only when user is logged in
|
|
262
|
-
* @category User functions
|
|
260
|
+
/**
|
|
261
|
+
* Returns user information, only when user is logged in
|
|
262
|
+
* @category User functions
|
|
263
263
|
*/
|
|
264
264
|
exports.addAnonymousAccount = addAnonymousAccount;
|
|
265
265
|
const getUser = () => _moduleWrapper.moduleWrapper.current.values.user;
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.sendMessageToUser = exports.sendMessageToPage = exports.sendMessageToGroup = void 0;
|
|
7
7
|
const INTERCOM_URL = 'https://sub54.tobit.com/rest/api';
|
|
8
|
-
/**
|
|
9
|
-
* @category Intercom functions
|
|
8
|
+
/**
|
|
9
|
+
* @category Intercom functions
|
|
10
10
|
*/
|
|
11
11
|
const sendMessageToUser = async (api, object, receiverUserId) => {
|
|
12
12
|
var _api$values$user;
|
|
@@ -40,8 +40,8 @@ const sendMessageToUser = async (api, object, receiverUserId) => {
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
/**
|
|
44
|
-
* @category Intercom functions
|
|
43
|
+
/**
|
|
44
|
+
* @category Intercom functions
|
|
45
45
|
*/
|
|
46
46
|
exports.sendMessageToUser = sendMessageToUser;
|
|
47
47
|
const sendMessageToPage = async (api, object) => {
|
|
@@ -73,8 +73,8 @@ const sendMessageToPage = async (api, object) => {
|
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
/**
|
|
77
|
-
* @category Intercom functions
|
|
76
|
+
/**
|
|
77
|
+
* @category Intercom functions
|
|
78
78
|
*/
|
|
79
79
|
exports.sendMessageToPage = sendMessageToPage;
|
|
80
80
|
const sendMessageToGroup = async (api, object, groupId) => {
|
|
@@ -104,8 +104,8 @@ const sendMessageToGroup = async (api, object, groupId) => {
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
/**
|
|
108
|
-
* @category Intercom functions
|
|
107
|
+
/**
|
|
108
|
+
* @category Intercom functions
|
|
109
109
|
*/
|
|
110
110
|
exports.sendMessageToGroup = sendMessageToGroup;
|
|
111
111
|
function sendMessage(endpoint, token, body) {
|
|
@@ -12,8 +12,8 @@ const handleVisibilityChange = () => {
|
|
|
12
12
|
});
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* @category Event listener
|
|
15
|
+
/**
|
|
16
|
+
* @category Event listener
|
|
17
17
|
*/
|
|
18
18
|
const addVisibilityChangeListener = callback => {
|
|
19
19
|
const {
|
|
@@ -25,8 +25,8 @@ const addVisibilityChangeListener = callback => {
|
|
|
25
25
|
}
|
|
26
26
|
return id;
|
|
27
27
|
};
|
|
28
|
-
/**
|
|
29
|
-
* @category Event listener
|
|
28
|
+
/**
|
|
29
|
+
* @category Event listener
|
|
30
30
|
*/
|
|
31
31
|
exports.addVisibilityChangeListener = addVisibilityChangeListener;
|
|
32
32
|
const removeVisibilityChangeListener = id => {
|
|
@@ -8,10 +8,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _ChaynsHost = _interopRequireDefault(require("../host/ChaynsHost"));
|
|
9
9
|
var _hooks = require("../hooks");
|
|
10
10
|
var _ErrorBoundary = _interopRequireDefault(require("./ErrorBoundary"));
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
function _extends() {
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
const AppDialogWrapper = ({
|
|
16
16
|
dialogEventTarget
|
|
17
17
|
}) => {
|
|
@@ -17,7 +17,7 @@ var _AppDialogWrapper = _interopRequireDefault(require("./AppDialogWrapper"));
|
|
|
17
17
|
var _moduleWrapper = require("./moduleWrapper");
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
-
function _interopRequireDefault(
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
22
22
|
|
|
23
23
|
const isServer = typeof window === 'undefined';
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
class ErrorBoundary extends _react.default.Component {
|
|
10
10
|
constructor(props) {
|
|
11
11
|
super(props);
|
|
@@ -7,10 +7,10 @@ exports.withCompatMode = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
9
|
var _ErrorBoundary = _interopRequireDefault(require("./ErrorBoundary"));
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
-
function _extends() {
|
|
13
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /* eslint-disable react/jsx-props-no-spreading */
|
|
14
14
|
let ReactDOMClient;
|
|
15
15
|
try {
|
|
16
16
|
ReactDOMClient = require('react-dom/client');
|