chayns-api 1.0.45 → 1.0.48
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/cjs/calls/dialogs/chaynsDialog.js +6 -3
- package/dist/cjs/calls/dialogs/date.js +12 -39
- package/dist/cjs/calls/dialogs/fileSelect.js +2 -1
- package/dist/cjs/calls/dialogs/input.js +3 -2
- package/dist/cjs/calls/dialogs/select.js +3 -2
- package/dist/cjs/calls/getUserInfo.js +2 -1
- package/dist/cjs/calls/index.js +121 -114
- package/dist/cjs/calls/sendMessage.js +8 -8
- package/dist/cjs/calls/visibilityChangeListener.js +4 -4
- package/dist/cjs/components/AppDialogWrapper.js +7 -5
- package/dist/cjs/components/ChaynsContext.js +4 -2
- package/dist/cjs/components/ChaynsProvider.js +5 -4
- package/dist/cjs/components/ErrorBoundary.js +31 -0
- package/dist/cjs/components/moduleWrapper.js +3 -2
- package/dist/cjs/components/withCompatMode.js +3 -3
- package/dist/cjs/hooks/geoLocationListener.js +4 -4
- package/dist/cjs/hooks/scrollListener.js +8 -8
- package/dist/cjs/hooks/useAccessToken.js +3 -2
- 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 +6 -6
- 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 +2 -1
- package/dist/cjs/host/iframe/HostIframe.js +5 -3
- package/dist/cjs/host/iframe/utils/useUpdateData.js +2 -1
- package/dist/cjs/host/module/ModuleHost.js +4 -3
- package/dist/cjs/host/module/utils/loadComponent.js +1 -1
- package/dist/cjs/host/module/utils/useDynamicScript.js +6 -4
- package/dist/cjs/index.js +5 -4
- package/dist/cjs/types/IChaynsReact.js +134 -114
- package/dist/cjs/util/appCall.js +4 -3
- package/dist/cjs/util/deviceHelper.js +5 -4
- package/dist/cjs/util/transferNestedFunctions.js +2 -2
- package/dist/cjs/wrapper/AppWrapper.js +3 -3
- package/dist/cjs/wrapper/FrameWrapper.js +2 -2
- package/dist/cjs/wrapper/StaticChaynsApi.js +2 -1
- package/dist/esm/calls/dialogs/date.js +34 -34
- package/dist/esm/calls/index.js +106 -106
- package/dist/esm/calls/sendMessage.js +8 -8
- package/dist/esm/calls/visibilityChangeListener.js +4 -4
- package/dist/esm/components/AppDialogWrapper.js +3 -2
- package/dist/esm/components/ChaynsProvider.js +1 -1
- package/dist/esm/components/ErrorBoundary.js +23 -0
- package/dist/esm/handler/DialogHandler.js +2 -2
- package/dist/esm/hooks/geoLocationListener.js +4 -4
- package/dist/esm/hooks/scrollListener.js +8 -8
- package/dist/esm/hooks/useAccessToken.js +3 -2
- 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 +6 -6
- 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/iframe/HostIframe.js +1 -0
- package/dist/esm/host/module/utils/loadComponent.js +1 -1
- package/dist/esm/types/IChaynsReact.js +108 -117
- package/dist/esm/util/appCall.js +2 -2
- package/dist/esm/util/deviceHelper.js +3 -3
- package/dist/esm/wrapper/AppWrapper.js +3 -3
- package/dist/esm/wrapper/FrameWrapper.js +2 -2
- package/dist/esm/wrapper/StaticChaynsApi.js +2 -2
- 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 +251 -251
- 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 -0
- 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/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 -5
- package/dist/types/hooks/useCurrentPage.d.ts +4 -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 +30 -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 +27 -27
- package/dist/types/host/module/utils/loadComponent.d.ts +1 -1
- package/dist/types/host/module/utils/useDynamicScript.d.ts +9 -9
- package/dist/types/index.d.ts +19 -19
- package/dist/types/types/IChaynsReact.d.ts +809 -809
- 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 +9 -9
- package/package.json +78 -78
- package/toolkit.config.js +20 -20
- package/tsconfig.json +56 -56
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useContextSelector } from 'use-context-selector';
|
|
2
2
|
import { ChaynsContext, ChaynsFunctionsContext } from '../components/ChaynsContext';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* @category Hooks
|
|
4
|
+
/**
|
|
5
|
+
* @category Hooks
|
|
6
6
|
*/
|
|
7
7
|
export const useDialogState = () => {
|
|
8
8
|
const setResult = useContextSelector(ChaynsFunctionsContext, v => v === null || v === void 0 ? void 0 : v.setDialogResult);
|
|
@@ -10,7 +10,7 @@ export const useDialogState = () => {
|
|
|
10
10
|
const addDataListener = useContextSelector(ChaynsFunctionsContext, v => v === null || v === void 0 ? void 0 : v.addDialogHostEventListener);
|
|
11
11
|
const isClosingRequested = useContextSelector(ChaynsContext, v => {
|
|
12
12
|
var _v$dialog;
|
|
13
|
-
return v === null || v === void 0
|
|
13
|
+
return v === null || v === void 0 ? void 0 : (_v$dialog = v.dialog) === null || _v$dialog === void 0 ? void 0 : _v$dialog.isClosingRequested;
|
|
14
14
|
});
|
|
15
15
|
return {
|
|
16
16
|
setResult,
|
|
@@ -20,13 +20,13 @@ export const useDialogState = () => {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* @category Hooks
|
|
23
|
+
/**
|
|
24
|
+
* @category Hooks
|
|
25
25
|
*/
|
|
26
26
|
export const useDialogData = () => {
|
|
27
27
|
const inputData = useContextSelector(ChaynsContext, v => {
|
|
28
28
|
var _v$dialog2;
|
|
29
|
-
return v === null || v === void 0
|
|
29
|
+
return v === null || v === void 0 ? void 0 : (_v$dialog2 = v.dialog) === null || _v$dialog2 === void 0 ? void 0 : _v$dialog2.dialogInput;
|
|
30
30
|
});
|
|
31
31
|
return inputData;
|
|
32
32
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContextSelector } from 'use-context-selector';
|
|
2
2
|
import { ChaynsContext } from '../components/ChaynsContext';
|
|
3
|
-
/**
|
|
4
|
-
* @category Hooks
|
|
3
|
+
/**
|
|
4
|
+
* @category Hooks
|
|
5
5
|
*/
|
|
6
6
|
export const useEnvironment = () => useContextSelector(ChaynsContext, v => v === null || v === void 0 ? void 0 : v.environment);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContextSelector } from "use-context-selector";
|
|
2
2
|
import { ChaynsFunctionsContext } from "../components/ChaynsContext";
|
|
3
|
-
/**
|
|
4
|
-
* @category Hooks
|
|
3
|
+
/**
|
|
4
|
+
* @category Hooks
|
|
5
5
|
*/
|
|
6
6
|
export const useFunctions = () => {
|
|
7
7
|
const t = useContextSelector(ChaynsFunctionsContext, f => f || {});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContextSelector } from 'use-context-selector';
|
|
2
2
|
import { ChaynsContext } from '../components/ChaynsContext';
|
|
3
|
-
/**
|
|
4
|
-
* @category Hooks
|
|
3
|
+
/**
|
|
4
|
+
* @category Hooks
|
|
5
5
|
*/
|
|
6
6
|
export const useLanguage = () => useContextSelector(ChaynsContext, v => v === null || v === void 0 ? void 0 : v.language);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useContextSelector } from 'use-context-selector';
|
|
2
2
|
import { ChaynsContext } from '../components/ChaynsContext';
|
|
3
3
|
import { moduleWrapper } from '../components/moduleWrapper';
|
|
4
|
-
/**
|
|
5
|
-
* @category Hooks
|
|
4
|
+
/**
|
|
5
|
+
* @category Hooks
|
|
6
6
|
*/
|
|
7
7
|
export const usePages = function () {
|
|
8
8
|
let {
|
|
@@ -16,8 +16,8 @@ export const usePages = function () {
|
|
|
16
16
|
}
|
|
17
17
|
return pages;
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
20
|
-
* @category Hooks
|
|
19
|
+
/**
|
|
20
|
+
* @category Hooks
|
|
21
21
|
*/
|
|
22
22
|
export const usePage = _ref => {
|
|
23
23
|
let {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContextSelector } from 'use-context-selector';
|
|
2
2
|
import { ChaynsContext } from '../components/ChaynsContext';
|
|
3
|
-
/**
|
|
4
|
-
* @category Hooks
|
|
3
|
+
/**
|
|
4
|
+
* @category Hooks
|
|
5
5
|
*/
|
|
6
6
|
export const useParameters = () => useContextSelector(ChaynsContext, v => (v === null || v === void 0 ? void 0 : v.parameters) || []);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContextSelector } from 'use-context-selector';
|
|
2
2
|
import { ChaynsContext } from '../components/ChaynsContext';
|
|
3
|
-
/**
|
|
4
|
-
* @category Hooks
|
|
3
|
+
/**
|
|
4
|
+
* @category Hooks
|
|
5
5
|
*/
|
|
6
6
|
export const useSite = () => useContextSelector(ChaynsContext, v => v === null || v === void 0 ? void 0 : v.site);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContextSelector } from 'use-context-selector';
|
|
2
2
|
import { ChaynsContext } from '../components/ChaynsContext';
|
|
3
|
-
/**
|
|
4
|
-
* @category Hooks
|
|
3
|
+
/**
|
|
4
|
+
* @category Hooks
|
|
5
5
|
*/
|
|
6
6
|
export const useUser = () => useContextSelector(ChaynsContext, v => (v === null || v === void 0 ? void 0 : v.user) || {});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContextSelector } from 'use-context-selector';
|
|
2
2
|
import { ChaynsContext } from '../components/ChaynsContext';
|
|
3
|
-
/**
|
|
4
|
-
* @category Hooks
|
|
3
|
+
/**
|
|
4
|
+
* @category Hooks
|
|
5
5
|
*/
|
|
6
6
|
export const useValues = () => {
|
|
7
7
|
const t = useContextSelector(ChaynsContext, v => v || {});
|
|
@@ -2,8 +2,8 @@ import { useContextSelector } from 'use-context-selector';
|
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { ChaynsFunctionsContext } from '../components/ChaynsContext';
|
|
4
4
|
import { ScreenSize } from '../types/IChaynsReact';
|
|
5
|
-
/**
|
|
6
|
-
* @category Hooks
|
|
5
|
+
/**
|
|
6
|
+
* @category Hooks
|
|
7
7
|
*/
|
|
8
8
|
export const useWindowMetricsListener = () => {
|
|
9
9
|
const addListener = useContextSelector(ChaynsFunctionsContext, v => v.addWindowMetricsListener);
|
|
@@ -18,8 +18,8 @@ export const useWindowMetricsListener = () => {
|
|
|
18
18
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
19
19
|
}, []);
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
* @category Hooks
|
|
21
|
+
/**
|
|
22
|
+
* @category Hooks
|
|
23
23
|
*/
|
|
24
24
|
export const useWindowMetrics = function () {
|
|
25
25
|
let {
|
|
@@ -31,6 +31,7 @@ const HostIframe = _ref => {
|
|
|
31
31
|
if (!eventTarget.current) {
|
|
32
32
|
eventTarget.current = global.document ? document.createElement('div') : undefined; // global.EventTarget ? new EventTarget() : undefined
|
|
33
33
|
}
|
|
34
|
+
|
|
34
35
|
const setHeight = value => {
|
|
35
36
|
if (ref.current) {
|
|
36
37
|
ref.current.style.height = `${value}px`;
|
|
@@ -46,7 +46,7 @@ export default function loadComponent(scope, module, url) {
|
|
|
46
46
|
environment
|
|
47
47
|
} = Module.default;
|
|
48
48
|
const matchReactVersion = requiredVersion && semver.satisfies(hostVersion, requiredVersion) && !Object.keys(__webpack_share_scopes__.default.react).some(version => {
|
|
49
|
-
return semver.gt(version, hostVersion) && semver.satisfies(version, requiredVersion);
|
|
49
|
+
return semver.gt(version, hostVersion) && semver.satisfies(version, requiredVersion) || scope === __webpack_share_scopes__.default.react[version].from.split('-').join('_');
|
|
50
50
|
});
|
|
51
51
|
if (!matchReactVersion || environment !== 'production' || process.env.NODE_ENV === 'development') {
|
|
52
52
|
return {
|
|
@@ -1,71 +1,63 @@
|
|
|
1
|
-
export let DateType
|
|
1
|
+
export let DateType;
|
|
2
|
+
(function (DateType) {
|
|
2
3
|
DateType[DateType["DATE"] = 0] = "DATE";
|
|
3
4
|
DateType[DateType["TIME"] = 1] = "TIME";
|
|
4
5
|
DateType[DateType["DATE_TIME"] = 2] = "DATE_TIME";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
})(DateType || (DateType = {}));
|
|
7
|
+
export let ToastType;
|
|
8
|
+
(function (ToastType) {
|
|
8
9
|
ToastType[ToastType["NEUTRAL"] = 1] = "NEUTRAL";
|
|
9
10
|
ToastType[ToastType["SUCCESS"] = 2] = "SUCCESS";
|
|
10
11
|
ToastType[ToastType["WARNING"] = 3] = "WARNING";
|
|
11
12
|
ToastType[ToastType["ERROR"] = 4] = "ERROR";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
})(ToastType || (ToastType = {}));
|
|
14
|
+
export let DialogInputType;
|
|
15
|
+
(function (DialogInputType) {
|
|
15
16
|
DialogInputType["NUMBER"] = "number";
|
|
16
17
|
DialogInputType["PASSWORD"] = "password";
|
|
17
18
|
DialogInputType["TELEPHONE"] = "tel";
|
|
18
19
|
DialogInputType["TEXT"] = "text";
|
|
19
20
|
DialogInputType["TEXTAREA"] = "textarea";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
})(DialogInputType || (DialogInputType = {}));
|
|
22
|
+
export let DialogSelectType;
|
|
23
|
+
(function (DialogSelectType) {
|
|
23
24
|
DialogSelectType[DialogSelectType["DEFAULT"] = 0] = "DEFAULT";
|
|
24
25
|
DialogSelectType[DialogSelectType["ICON"] = 1] = "ICON";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
})(DialogSelectType || (DialogSelectType = {}));
|
|
27
|
+
export let DialogButtonType;
|
|
28
|
+
(function (DialogButtonType) {
|
|
28
29
|
DialogButtonType[DialogButtonType["OK"] = 1] = "OK";
|
|
29
30
|
DialogButtonType[DialogButtonType["CANCEL"] = -1] = "CANCEL";
|
|
30
31
|
DialogButtonType[DialogButtonType["NEGATIVE"] = 0] = "NEGATIVE";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
})(DialogButtonType || (DialogButtonType = {}));
|
|
33
|
+
export let ScreenSize;
|
|
34
|
+
(function (ScreenSize) {
|
|
34
35
|
ScreenSize[ScreenSize["XS"] = 0] = "XS";
|
|
35
36
|
ScreenSize[ScreenSize["SM"] = 1] = "SM";
|
|
36
37
|
ScreenSize[ScreenSize["MD"] = 2] = "MD";
|
|
37
38
|
ScreenSize[ScreenSize["LG"] = 3] = "LG";
|
|
38
39
|
ScreenSize[ScreenSize["XL"] = 4] = "XL";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @ignore
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @ignore
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
export let AccessMode = /*#__PURE__*/function (AccessMode) {
|
|
40
|
+
})(ScreenSize || (ScreenSize = {}));
|
|
41
|
+
export let AccessMode;
|
|
42
|
+
(function (AccessMode) {
|
|
51
43
|
AccessMode[AccessMode["public"] = 0] = "public";
|
|
52
44
|
AccessMode[AccessMode["protected"] = 1] = "protected";
|
|
53
45
|
AccessMode[AccessMode["private"] = 2] = "private";
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
})(AccessMode || (AccessMode = {}));
|
|
47
|
+
export let ScanQrCodeCodeType;
|
|
48
|
+
(function (ScanQrCodeCodeType) {
|
|
57
49
|
ScanQrCodeCodeType[ScanQrCodeCodeType["QR"] = 0] = "QR";
|
|
58
50
|
ScanQrCodeCodeType[ScanQrCodeCodeType["BARCODE"] = 0] = "BARCODE";
|
|
59
51
|
ScanQrCodeCodeType[ScanQrCodeCodeType["ALL"] = 2] = "ALL";
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
})(ScanQrCodeCodeType || (ScanQrCodeCodeType = {}));
|
|
53
|
+
export let ScanQrCodeCameraTypes;
|
|
54
|
+
(function (ScanQrCodeCameraTypes) {
|
|
63
55
|
ScanQrCodeCameraTypes[ScanQrCodeCameraTypes["AUTO"] = 0] = "AUTO";
|
|
64
56
|
ScanQrCodeCameraTypes[ScanQrCodeCameraTypes["BACK"] = 1] = "BACK";
|
|
65
57
|
ScanQrCodeCameraTypes[ScanQrCodeCameraTypes["FRONT"] = 2] = "FRONT";
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
})(ScanQrCodeCameraTypes || (ScanQrCodeCameraTypes = {}));
|
|
59
|
+
var IOSFeedbackVibration;
|
|
60
|
+
(function (IOSFeedbackVibration) {
|
|
69
61
|
IOSFeedbackVibration[IOSFeedbackVibration["Unknown"] = 0] = "Unknown";
|
|
70
62
|
IOSFeedbackVibration[IOSFeedbackVibration["SelectionChanged"] = 1] = "SelectionChanged";
|
|
71
63
|
IOSFeedbackVibration[IOSFeedbackVibration["NotificationError"] = 2] = "NotificationError";
|
|
@@ -76,25 +68,25 @@ var IOSFeedbackVibration = /*#__PURE__*/function (IOSFeedbackVibration) {
|
|
|
76
68
|
IOSFeedbackVibration[IOSFeedbackVibration["Heavy"] = 7] = "Heavy";
|
|
77
69
|
IOSFeedbackVibration[IOSFeedbackVibration["Soft"] = 8] = "Soft";
|
|
78
70
|
IOSFeedbackVibration[IOSFeedbackVibration["Rigid"] = 9] = "Rigid";
|
|
79
|
-
|
|
80
|
-
}(IOSFeedbackVibration || {});
|
|
71
|
+
})(IOSFeedbackVibration || (IOSFeedbackVibration = {}));
|
|
81
72
|
// region design settings
|
|
82
|
-
var SnapshotType
|
|
73
|
+
var SnapshotType;
|
|
74
|
+
(function (SnapshotType) {
|
|
83
75
|
SnapshotType["Background"] = "background";
|
|
84
76
|
SnapshotType["Settings"] = "settings";
|
|
85
77
|
SnapshotType["ColorScheme"] = "colorScheme";
|
|
86
78
|
SnapshotType["Cover"] = "cover";
|
|
87
79
|
SnapshotType["Tapp"] = "tapp";
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
80
|
+
})(SnapshotType || (SnapshotType = {}));
|
|
81
|
+
var DesignSettingsUpdateBackgroundType;
|
|
82
|
+
(function (DesignSettingsUpdateBackgroundType) {
|
|
91
83
|
DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["None"] = 0] = "None";
|
|
92
84
|
DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["Image"] = 1] = "Image";
|
|
93
85
|
DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["Video"] = 2] = "Video";
|
|
94
86
|
DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["Color"] = 3] = "Color";
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
87
|
+
})(DesignSettingsUpdateBackgroundType || (DesignSettingsUpdateBackgroundType = {}));
|
|
88
|
+
var DesignSettingsUpdateSeasonTypes;
|
|
89
|
+
(function (DesignSettingsUpdateSeasonTypes) {
|
|
98
90
|
DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["None"] = 0] = "None";
|
|
99
91
|
DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Snowm"] = 1] = "Snowm";
|
|
100
92
|
DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Confetti"] = 2] = "Confetti";
|
|
@@ -104,88 +96,88 @@ var DesignSettingsUpdateSeasonTypes = /*#__PURE__*/function (DesignSettingsUpdat
|
|
|
104
96
|
DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Eastern"] = 6] = "Eastern";
|
|
105
97
|
DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Clover"] = 7] = "Clover";
|
|
106
98
|
DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Coins"] = 8] = "Coins";
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
})(DesignSettingsUpdateSeasonTypes || (DesignSettingsUpdateSeasonTypes = {}));
|
|
100
|
+
var DesignSettingsUpdateGalleryAnimationTypes;
|
|
101
|
+
(function (DesignSettingsUpdateGalleryAnimationTypes) {
|
|
110
102
|
DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["Swipe"] = 0] = "Swipe";
|
|
111
103
|
DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["Fade"] = 1] = "Fade";
|
|
112
104
|
DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["Parallax"] = 2] = "Parallax";
|
|
113
105
|
DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["KenBurns"] = 3] = "KenBurns";
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
})(DesignSettingsUpdateGalleryAnimationTypes || (DesignSettingsUpdateGalleryAnimationTypes = {}));
|
|
107
|
+
var DesignSettingsUpdateCoverTypes;
|
|
108
|
+
(function (DesignSettingsUpdateCoverTypes) {
|
|
117
109
|
DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Image"] = 0] = "Image";
|
|
118
110
|
DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Video"] = 1] = "Video";
|
|
119
111
|
DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Slideshow"] = 2] = "Slideshow";
|
|
120
112
|
DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Frame"] = 3] = "Frame";
|
|
121
113
|
DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["None"] = 4] = "None";
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
114
|
+
})(DesignSettingsUpdateCoverTypes || (DesignSettingsUpdateCoverTypes = {}));
|
|
115
|
+
var DesignSettingsUpdateColorSchemeMode;
|
|
116
|
+
(function (DesignSettingsUpdateColorSchemeMode) {
|
|
125
117
|
DesignSettingsUpdateColorSchemeMode[DesignSettingsUpdateColorSchemeMode["Normal"] = 0] = "Normal";
|
|
126
118
|
DesignSettingsUpdateColorSchemeMode[DesignSettingsUpdateColorSchemeMode["Dark"] = 1] = "Dark";
|
|
127
119
|
DesignSettingsUpdateColorSchemeMode[DesignSettingsUpdateColorSchemeMode["Bright"] = 2] = "Bright";
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
120
|
+
})(DesignSettingsUpdateColorSchemeMode || (DesignSettingsUpdateColorSchemeMode = {}));
|
|
121
|
+
var DesignSettingsUpdateTappViewModes;
|
|
122
|
+
(function (DesignSettingsUpdateTappViewModes) {
|
|
131
123
|
DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Normal"] = 0] = "Normal";
|
|
132
124
|
DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Exclusive"] = 1] = "Exclusive";
|
|
133
125
|
DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Wide"] = 2] = "Wide";
|
|
134
126
|
DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Fullscreen"] = 3] = "Fullscreen";
|
|
135
127
|
DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["FullscreenWithBackground"] = 4] = "FullscreenWithBackground";
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
128
|
+
})(DesignSettingsUpdateTappViewModes || (DesignSettingsUpdateTappViewModes = {}));
|
|
129
|
+
var LoginState;
|
|
130
|
+
(function (LoginState) {
|
|
139
131
|
LoginState[LoginState["FACEBOOK"] = 0] = "FACEBOOK";
|
|
140
132
|
LoginState[LoginState["T_WEB"] = 1] = "T_WEB";
|
|
141
133
|
LoginState[LoginState["LoginFailed"] = 2] = "LoginFailed";
|
|
142
134
|
LoginState[LoginState["AlreadyLoggedIn"] = 3] = "AlreadyLoggedIn";
|
|
143
135
|
LoginState[LoginState["SUCCESS"] = 4] = "SUCCESS";
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
136
|
+
})(LoginState || (LoginState = {}));
|
|
137
|
+
export let FloatingButtonPosition;
|
|
138
|
+
(function (FloatingButtonPosition) {
|
|
147
139
|
FloatingButtonPosition[FloatingButtonPosition["Right"] = 0] = "Right";
|
|
148
140
|
FloatingButtonPosition[FloatingButtonPosition["Center"] = 1] = "Center";
|
|
149
141
|
FloatingButtonPosition[FloatingButtonPosition["Left"] = 2] = "Left";
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
142
|
+
})(FloatingButtonPosition || (FloatingButtonPosition = {}));
|
|
143
|
+
export let SharingApp;
|
|
144
|
+
(function (SharingApp) {
|
|
153
145
|
SharingApp[SharingApp["Mail"] = 0] = "Mail";
|
|
154
146
|
SharingApp[SharingApp["WhatsApp"] = 1] = "WhatsApp";
|
|
155
147
|
SharingApp[SharingApp["Facebook"] = 2] = "Facebook";
|
|
156
148
|
SharingApp[SharingApp["FacebookMessenger"] = 3] = "FacebookMessenger";
|
|
157
149
|
SharingApp[SharingApp["GooglePlus"] = 4] = "GooglePlus";
|
|
158
150
|
SharingApp[SharingApp["Twitter"] = 5] = "Twitter";
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
151
|
+
})(SharingApp || (SharingApp = {}));
|
|
152
|
+
export let TappEvent;
|
|
153
|
+
(function (TappEvent) {
|
|
162
154
|
TappEvent[TappEvent["OnShow"] = 0] = "OnShow";
|
|
163
155
|
TappEvent[TappEvent["OnHide"] = 1] = "OnHide";
|
|
164
156
|
TappEvent[TappEvent["OnRefresh"] = 2] = "OnRefresh";
|
|
165
157
|
TappEvent[TappEvent["OnOpenCcScanner"] = 3] = "OnOpenCcScanner";
|
|
166
158
|
TappEvent[TappEvent["OnCloseCcScanner"] = 4] = "OnCloseCcScanner";
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
159
|
+
})(TappEvent || (TappEvent = {}));
|
|
160
|
+
export let IconType;
|
|
161
|
+
(function (IconType) {
|
|
170
162
|
IconType[IconType["Font"] = 0] = "Font";
|
|
171
163
|
IconType[IconType["Base64"] = 1] = "Base64";
|
|
172
164
|
IconType[IconType["Url"] = 2] = "Url";
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
165
|
+
})(IconType || (IconType = {}));
|
|
166
|
+
export let Gender;
|
|
167
|
+
(function (Gender) {
|
|
176
168
|
Gender[Gender["Unknown"] = 0] = "Unknown";
|
|
177
169
|
Gender[Gender["male"] = 1] = "male";
|
|
178
170
|
Gender[Gender["female"] = 2] = "female";
|
|
179
171
|
Gender[Gender["diverse"] = 9] = "diverse";
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
172
|
+
})(Gender || (Gender = {}));
|
|
173
|
+
export let ColorMode;
|
|
174
|
+
(function (ColorMode) {
|
|
183
175
|
ColorMode[ColorMode["Classic"] = 0] = "Classic";
|
|
184
176
|
ColorMode[ColorMode["Dark"] = 1] = "Dark";
|
|
185
177
|
ColorMode[ColorMode["Light"] = 2] = "Light";
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
178
|
+
})(ColorMode || (ColorMode = {}));
|
|
179
|
+
export let Language;
|
|
180
|
+
(function (Language) {
|
|
189
181
|
Language["Unknown"] = "unknown";
|
|
190
182
|
Language["German"] = "de";
|
|
191
183
|
Language["English"] = "en";
|
|
@@ -197,27 +189,27 @@ export let Language = /*#__PURE__*/function (Language) {
|
|
|
197
189
|
Language["Turkish"] = "tr";
|
|
198
190
|
Language["Polish"] = "pl";
|
|
199
191
|
Language["Ukrainian"] = "uk";
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
192
|
+
})(Language || (Language = {}));
|
|
193
|
+
export let RuntimeEnviroment;
|
|
194
|
+
(function (RuntimeEnviroment) {
|
|
203
195
|
RuntimeEnviroment[RuntimeEnviroment["Unknown"] = 0] = "Unknown";
|
|
204
196
|
RuntimeEnviroment[RuntimeEnviroment["ChaynsDe"] = 1] = "ChaynsDe";
|
|
205
197
|
RuntimeEnviroment[RuntimeEnviroment["ChaynsWeb"] = 2] = "ChaynsWeb";
|
|
206
198
|
RuntimeEnviroment[RuntimeEnviroment["ChaynsRuntime"] = 3] = "ChaynsRuntime";
|
|
207
199
|
RuntimeEnviroment[RuntimeEnviroment["IntercomPlugin"] = 4] = "IntercomPlugin";
|
|
208
200
|
RuntimeEnviroment[RuntimeEnviroment["PagemakerPlugin"] = 5] = "PagemakerPlugin";
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
201
|
+
})(RuntimeEnviroment || (RuntimeEnviroment = {}));
|
|
202
|
+
export let DeviceOs;
|
|
203
|
+
(function (DeviceOs) {
|
|
212
204
|
DeviceOs["Unknown"] = "unknown";
|
|
213
205
|
DeviceOs["Android"] = "android";
|
|
214
206
|
DeviceOs["IOS"] = "ios";
|
|
215
207
|
DeviceOs["Windows"] = "windows";
|
|
216
208
|
DeviceOs["MacOs"] = "macos";
|
|
217
209
|
DeviceOs["Linux"] = "linux";
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
210
|
+
})(DeviceOs || (DeviceOs = {}));
|
|
211
|
+
export let AppName;
|
|
212
|
+
(function (AppName) {
|
|
221
213
|
AppName[AppName["Unknown"] = 0] = "Unknown";
|
|
222
214
|
AppName[AppName["David"] = 1] = "David";
|
|
223
215
|
AppName[AppName["Chayns"] = 2] = "Chayns";
|
|
@@ -226,24 +218,24 @@ export let AppName = /*#__PURE__*/function (AppName) {
|
|
|
226
218
|
AppName[AppName["ChaynsLauncher"] = 5] = "ChaynsLauncher";
|
|
227
219
|
AppName[AppName["TobitChat"] = 6] = "TobitChat";
|
|
228
220
|
AppName[AppName["Sidekick"] = 7] = "Sidekick";
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
221
|
+
})(AppName || (AppName = {}));
|
|
222
|
+
export let BrowserName;
|
|
223
|
+
(function (BrowserName) {
|
|
232
224
|
BrowserName["Unknown"] = "unknown";
|
|
233
225
|
BrowserName["Chrome"] = "chrome";
|
|
234
226
|
BrowserName["Safari"] = "safari";
|
|
235
227
|
BrowserName["Firefox"] = "firefox";
|
|
236
228
|
BrowserName["Edge"] = "edge";
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
229
|
+
})(BrowserName || (BrowserName = {}));
|
|
230
|
+
export let Environment;
|
|
231
|
+
(function (Environment) {
|
|
240
232
|
Environment[Environment["Development"] = 0] = "Development";
|
|
241
233
|
Environment[Environment["Qa"] = 1] = "Qa";
|
|
242
234
|
Environment[Environment["Staging"] = 2] = "Staging";
|
|
243
235
|
Environment[Environment["Production"] = 3] = "Production";
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
236
|
+
})(Environment || (Environment = {}));
|
|
237
|
+
export let Font;
|
|
238
|
+
(function (Font) {
|
|
247
239
|
Font[Font["Unknown"] = 0] = "Unknown";
|
|
248
240
|
Font[Font["Roboto"] = 1] = "Roboto";
|
|
249
241
|
Font[Font["OpenSans"] = 2] = "OpenSans";
|
|
@@ -272,14 +264,14 @@ export let Font = /*#__PURE__*/function (Font) {
|
|
|
272
264
|
Font[Font["RobotoBold"] = 25] = "RobotoBold";
|
|
273
265
|
Font[Font["RobotoRegular"] = 26] = "RobotoRegular";
|
|
274
266
|
Font[Font["Inter"] = 27] = "Inter";
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
267
|
+
})(Font || (Font = {}));
|
|
268
|
+
var selectType;
|
|
269
|
+
(function (selectType) {
|
|
278
270
|
selectType[selectType["DEFAULT"] = 0] = "DEFAULT";
|
|
279
271
|
selectType[selectType["ICON"] = 1] = "ICON";
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
272
|
+
})(selectType || (selectType = {}));
|
|
273
|
+
export let DialogType;
|
|
274
|
+
(function (DialogType) {
|
|
283
275
|
DialogType["ALERT"] = "alert";
|
|
284
276
|
DialogType["CONFIRM"] = "confirm";
|
|
285
277
|
DialogType["DATE"] = "date";
|
|
@@ -289,20 +281,19 @@ export let DialogType = /*#__PURE__*/function (DialogType) {
|
|
|
289
281
|
DialogType["INPUT"] = "input";
|
|
290
282
|
DialogType["SELECT"] = "select";
|
|
291
283
|
DialogType["TOAST"] = "toast";
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
284
|
+
})(DialogType || (DialogType = {}));
|
|
285
|
+
export let MediaType;
|
|
286
|
+
(function (MediaType) {
|
|
295
287
|
MediaType["IMAGE"] = "image";
|
|
296
288
|
MediaType["VIDEO"] = "video";
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
289
|
+
})(MediaType || (MediaType = {}));
|
|
290
|
+
export let DialogAnimation;
|
|
291
|
+
(function (DialogAnimation) {
|
|
300
292
|
DialogAnimation["CONFETTI"] = "confetti";
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
293
|
+
})(DialogAnimation || (DialogAnimation = {}));
|
|
294
|
+
export let DialogIconType;
|
|
295
|
+
(function (DialogIconType) {
|
|
304
296
|
DialogIconType["SuccessIcon"] = "%%DialogSuccessIcon%%";
|
|
305
297
|
DialogIconType["WarningIcon"] = "%%DialogWarningIcon%%";
|
|
306
298
|
DialogIconType["ErrorIcon"] = "%%DialogErrorIcon%%";
|
|
307
|
-
|
|
308
|
-
}({});
|
|
299
|
+
})(DialogIconType || (DialogIconType = {}));
|
package/dist/esm/util/appCall.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
const invokeAppCall = call => {
|
|
4
|
-
var _window$webkit, _window$chaynsApp, _window$chaynsElectro;
|
|
4
|
+
var _window$webkit, _window$webkit$messag, _window$chaynsApp, _window$chaynsElectro;
|
|
5
5
|
call = JSON.stringify(call);
|
|
6
|
-
if ((_window$webkit = window.webkit) !== null && _window$webkit !== void 0 && (_window$webkit = _window$webkit.messageHandlers) !== null && _window$webkit !== void 0 && _window$webkit.jsonCall) {
|
|
6
|
+
if ((_window$webkit = window.webkit) !== null && _window$webkit !== void 0 && (_window$webkit$messag = _window$webkit.messageHandlers) !== null && _window$webkit$messag !== void 0 && _window$webkit$messag.jsonCall) {
|
|
7
7
|
window.webkit.messageHandlers.jsonCall.postMessage(call);
|
|
8
8
|
} else if ((_window$chaynsApp = window.chaynsApp) !== null && _window$chaynsApp !== void 0 && _window$chaynsApp.jsonCall) {
|
|
9
9
|
window.chaynsApp.jsonCall(call);
|
|
@@ -9,9 +9,9 @@ const getDeviceInfo = (userAgent, acceptHeader) => {
|
|
|
9
9
|
appName = AppName.TobitChat;
|
|
10
10
|
} else if (/\ssidekick\/\d+/i.test(userAgent)) {
|
|
11
11
|
appName = AppName.Sidekick;
|
|
12
|
-
} else if ((match === null || match === void 0
|
|
12
|
+
} else if ((match === null || match === void 0 ? void 0 : (_match$groups = match.groups) === null || _match$groups === void 0 ? void 0 : _match$groups.siteId) === '60021-08989') {
|
|
13
13
|
appName = AppName.Chayns;
|
|
14
|
-
} else if ((match === null || match === void 0
|
|
14
|
+
} else if ((match === null || match === void 0 ? void 0 : (_match$groups2 = match.groups) === null || _match$groups2 === void 0 ? void 0 : _match$groups2.siteId) === '77892-10814') {
|
|
15
15
|
appName = AppName.David;
|
|
16
16
|
} else if (match) {
|
|
17
17
|
appName = AppName.Location;
|
|
@@ -22,7 +22,7 @@ const getDeviceInfo = (userAgent, acceptHeader) => {
|
|
|
22
22
|
result.browser = {
|
|
23
23
|
name: parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.name,
|
|
24
24
|
version: parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.version,
|
|
25
|
-
majorVersion: Number.parseInt((_parsedUA$version$spl = parsedUA === null || parsedUA === void 0
|
|
25
|
+
majorVersion: Number.parseInt((_parsedUA$version$spl = parsedUA === null || parsedUA === void 0 ? void 0 : (_parsedUA$version = parsedUA.version) === null || _parsedUA$version === void 0 ? void 0 : _parsedUA$version.split('.')[0]) !== null && _parsedUA$version$spl !== void 0 ? _parsedUA$version$spl : '0', 10) || 0,
|
|
26
26
|
isWebPSupported: acceptHeader.includes('image/webp')
|
|
27
27
|
};
|
|
28
28
|
result.app = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(
|
|
3
|
-
function _toPrimitive(
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
|
|
@@ -248,7 +248,7 @@ export class AppWrapper {
|
|
|
248
248
|
let {
|
|
249
249
|
retVal
|
|
250
250
|
} = _ref;
|
|
251
|
-
callback === null || callback === void 0
|
|
251
|
+
callback === null || callback === void 0 ? void 0 : callback(retVal);
|
|
252
252
|
delete window[callbackName];
|
|
253
253
|
};
|
|
254
254
|
const callObj = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(
|
|
3
|
-
function _toPrimitive(
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
5
5
|
import * as comlink from 'comlink';
|
|
6
6
|
import DialogHandler from '../handler/DialogHandler';
|