chayns-api 1.0.1 → 1.0.3
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 -0
- package/LICENSE +21 -21
- package/README.md +47 -47
- package/dist/cjs/calls/dialogs/alert.js +0 -2
- package/dist/cjs/calls/dialogs/chaynsDialog.js +2 -8
- package/dist/cjs/calls/dialogs/close.js +0 -2
- package/dist/cjs/calls/dialogs/communication.js +1 -16
- package/dist/cjs/calls/dialogs/confirm.js +0 -4
- package/dist/cjs/calls/dialogs/date.js +46 -63
- package/dist/cjs/calls/dialogs/dropUpAlert.js +0 -3
- package/dist/cjs/calls/dialogs/fileSelect.js +0 -10
- package/dist/cjs/calls/dialogs/iFrame.js +0 -8
- package/dist/cjs/calls/dialogs/index.js +0 -27
- package/dist/cjs/calls/dialogs/input.js +0 -6
- package/dist/cjs/calls/dialogs/mediaSelect.js +0 -7
- package/dist/cjs/calls/dialogs/open.js +0 -2
- package/dist/cjs/calls/dialogs/select.js +0 -9
- package/dist/cjs/calls/dialogs/signature.js +0 -5
- package/dist/cjs/calls/dialogs/toast.js +0 -3
- package/dist/cjs/calls/dialogs/utils/callback.js +0 -2
- package/dist/cjs/calls/dialogs/utils/is.js +0 -4
- package/dist/cjs/calls/getUserInfo.js +0 -11
- package/dist/cjs/calls/index.js +95 -247
- package/dist/cjs/calls/sendMessage.js +8 -34
- package/dist/cjs/calls/visibilityChangeListener.js +5 -16
- package/dist/cjs/components/ChaynsContext.js +2 -4
- package/dist/cjs/components/ChaynsProvider.js +6 -28
- package/dist/cjs/components/WaitUntil.js +0 -5
- package/dist/cjs/components/withCompatMode.js +1 -16
- package/dist/cjs/helper/apiListenerHelper.js +0 -9
- package/dist/cjs/hooks/geoLocationListener.js +6 -15
- package/dist/cjs/hooks/index.js +6 -16
- package/dist/cjs/hooks/scrollListener.js +12 -31
- package/dist/cjs/hooks/useAccessToken.js +2 -7
- package/dist/cjs/hooks/useCurrentPage.js +2 -6
- package/dist/cjs/hooks/useCustomData.js +2 -6
- package/dist/cjs/hooks/useDevice.js +2 -6
- package/dist/cjs/hooks/useEnvironment.js +2 -6
- package/dist/cjs/hooks/useFunctions.js +2 -6
- package/dist/cjs/hooks/useIsAdminMode.js +2 -7
- package/dist/cjs/hooks/useLanguage.js +2 -6
- package/dist/cjs/hooks/usePages.js +26 -18
- package/dist/cjs/hooks/useParameters.js +2 -6
- package/dist/cjs/hooks/useSite.js +2 -6
- package/dist/cjs/hooks/useUser.js +2 -7
- package/dist/cjs/hooks/useValues.js +2 -6
- package/dist/cjs/hooks/windowMetricsListener.js +6 -16
- package/dist/cjs/host/ChaynsHost.js +0 -10
- package/dist/cjs/host/iframe/HostIframe.js +23 -30
- package/dist/cjs/host/iframe/utils/useUpdateData.js +0 -3
- package/dist/cjs/host/module/ModuleHost.js +3 -13
- package/dist/cjs/host/module/utils/loadComponent.js +1 -18
- package/dist/cjs/host/module/utils/useDynamicScript.js +0 -18
- package/dist/cjs/index.js +0 -19
- package/dist/cjs/types/IChaynsReact.js +27 -48
- package/dist/cjs/util/appCall.js +1 -4
- package/dist/cjs/util/deviceHelper.js +5 -22
- package/dist/cjs/util/heightHelper.js +0 -9
- package/dist/cjs/util/postIframeForm.js +0 -5
- package/dist/cjs/wrapper/AppWrapper.js +323 -159
- package/dist/cjs/wrapper/FrameWrapper.js +219 -248
- package/dist/cjs/wrapper/ModuleFederationWrapper.js +2 -27
- package/dist/cjs/wrapper/SsrWrapper.js +0 -8
- package/dist/esm/calls/dialogs/alert.js +4 -4
- package/dist/esm/calls/dialogs/chaynsDialog.js +7 -11
- package/dist/esm/calls/dialogs/communication.js +15 -26
- package/dist/esm/calls/dialogs/confirm.js +5 -8
- package/dist/esm/calls/dialogs/date.js +119 -128
- package/dist/esm/calls/dialogs/dropUpAlert.js +1 -1
- package/dist/esm/calls/dialogs/fileSelect.js +23 -62
- package/dist/esm/calls/dialogs/iFrame.js +7 -10
- package/dist/esm/calls/dialogs/input.js +2 -5
- package/dist/esm/calls/dialogs/mediaSelect.js +18 -55
- package/dist/esm/calls/dialogs/open.js +2 -2
- package/dist/esm/calls/dialogs/select.js +5 -9
- package/dist/esm/calls/dialogs/signature.js +0 -2
- package/dist/esm/calls/dialogs/toast.js +6 -11
- package/dist/esm/calls/dialogs/utils/callback.js +3 -5
- package/dist/esm/calls/dialogs/utils/is.js +1 -3
- package/dist/esm/calls/getUserInfo.js +32 -92
- package/dist/esm/calls/index.js +297 -449
- package/dist/esm/calls/sendMessage.js +99 -229
- package/dist/esm/calls/visibilityChangeListener.js +14 -19
- package/dist/esm/components/ChaynsContext.js +3 -3
- package/dist/esm/components/ChaynsProvider.js +45 -86
- package/dist/esm/components/WaitUntil.js +21 -86
- package/dist/esm/components/withCompatMode.js +35 -77
- package/dist/esm/helper/apiListenerHelper.js +10 -15
- package/dist/esm/hooks/geoLocationListener.js +24 -50
- package/dist/esm/hooks/index.js +1 -1
- package/dist/esm/hooks/scrollListener.js +58 -94
- package/dist/esm/hooks/useAccessToken.js +8 -30
- package/dist/esm/hooks/useCurrentPage.js +4 -8
- package/dist/esm/hooks/useCustomData.js +4 -8
- package/dist/esm/hooks/useDevice.js +3 -8
- package/dist/esm/hooks/useEnvironment.js +3 -8
- package/dist/esm/hooks/useFunctions.js +4 -7
- package/dist/esm/hooks/useIsAdminMode.js +4 -8
- package/dist/esm/hooks/useLanguage.js +3 -8
- package/dist/esm/hooks/usePages.js +38 -31
- package/dist/esm/hooks/useParameters.js +3 -8
- package/dist/esm/hooks/useSite.js +3 -8
- package/dist/esm/hooks/useUser.js +3 -9
- package/dist/esm/hooks/useValues.js +4 -7
- package/dist/esm/hooks/windowMetricsListener.js +22 -48
- package/dist/esm/host/ChaynsHost.js +22 -29
- package/dist/esm/host/iframe/HostIframe.js +86 -142
- package/dist/esm/host/iframe/utils/useUpdateData.js +4 -6
- package/dist/esm/host/module/ModuleHost.js +42 -49
- package/dist/esm/host/module/utils/loadComponent.js +47 -85
- package/dist/esm/host/module/utils/useDynamicScript.js +27 -74
- package/dist/esm/types/IChaynsReact.js +37 -61
- package/dist/esm/util/appCall.js +2 -4
- package/dist/esm/util/deviceHelper.js +13 -37
- package/dist/esm/util/heightHelper.js +10 -13
- package/dist/esm/util/postIframeForm.js +25 -57
- package/dist/esm/wrapper/AppWrapper.js +385 -781
- package/dist/esm/wrapper/FrameWrapper.js +262 -1509
- package/dist/esm/wrapper/ModuleFederationWrapper.js +47 -284
- package/dist/esm/wrapper/SsrWrapper.js +19 -65
- 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 +225 -231
- package/dist/types/calls/sendMessage.d.ts +13 -13
- package/dist/types/calls/visibilityChangeListener.d.ts +9 -9
- package/dist/types/components/ChaynsContext.d.ts +3 -3
- package/dist/types/components/ChaynsProvider.d.ts +13 -13
- package/dist/types/components/WaitUntil.d.ts +7 -7
- package/dist/types/components/withCompatMode.d.ts +13 -13
- 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 +16 -16
- package/dist/types/hooks/scrollListener.d.ts +28 -28
- package/dist/types/hooks/useAccessToken.d.ts +5 -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/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 -14
- 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 +28 -28
- package/dist/types/host/iframe/HostIframe.d.ts +24 -24
- package/dist/types/host/iframe/utils/useUpdateData.d.ts +3 -3
- package/dist/types/host/module/ModuleHost.d.ts +23 -23
- 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 +16 -16
- package/dist/types/types/IChaynsReact.d.ts +622 -590
- 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/wrapper/AppWrapper.d.ts +18 -16
- 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/package.json +76 -76
- package/toolkit.config.js +52 -52
- package/tsconfig.json +56 -56
- package/dist/cjs/bootstrap.js +0 -11
- package/dist/cjs/calls/abstractApiListener.js +0 -40
- package/dist/cjs/calls/apiEventListener.js +0 -40
- package/dist/cjs/calls/setVisibilityChangeListener.js +0 -1
- package/dist/cjs/calls/windowMetricsListener.js +0 -18
- package/dist/cjs/client.js +0 -93
- package/dist/cjs/components/App.js +0 -32
- package/dist/cjs/components/App.spec.js +0 -16
- package/dist/cjs/components/Button.js +0 -32
- package/dist/cjs/components/ChaynsModuleProvider.js +0 -457
- package/dist/cjs/components/ChaynsProviderExposed.js +0 -16
- package/dist/cjs/components/TestProvider.js +0 -236
- package/dist/cjs/components/Title.js +0 -162
- package/dist/cjs/functions/addApiListener.js +0 -37
- package/dist/cjs/functions/addGeoLocationListener.js +0 -26
- package/dist/cjs/functions/addScrollListener.js +0 -26
- package/dist/cjs/functions/addWindowMetricsListener.js +0 -37
- package/dist/cjs/helper/cssLoader.js +0 -28
- package/dist/cjs/hooks/addGeoLocationListener.js +0 -26
- package/dist/cjs/hooks/addScrollListener.js +0 -26
- package/dist/cjs/hooks/addWindowMetricsListener.js +0 -37
- package/dist/cjs/hooks/geoLocation.js +0 -48
- package/dist/cjs/hooks/useAddGeoLocationListener.js +0 -26
- package/dist/cjs/hooks/useAddScrollListener.js +0 -48
- package/dist/cjs/hooks/useAddWindowMetricsListener.js +0 -45
- package/dist/cjs/hooks/useAdddScrollListener.js +0 -26
- package/dist/cjs/hooks/windowMetrics.js +0 -45
- package/dist/cjs/host/HostIframe.js +0 -157
- package/dist/cjs/host/ModuleHost.js +0 -11
- package/dist/cjs/host/module/utils.js +0 -25
- package/dist/cjs/index.example.js +0 -7
- package/dist/cjs/index2.js +0 -64
- package/dist/cjs/types/DynamicApiImport.d.js +0 -5
- package/dist/cjs/types/DynamicImport.d.js +0 -5
- package/dist/cjs/types/chayns-components.d.js +0 -1
- package/dist/cjs/types/chayns-logger.d.js +0 -1
- package/dist/cjs/types/chayns.d.js +0 -1
- package/dist/cjs/types/tobit-websocket-service-client.d.js +0 -1
- package/dist/cjs/types/toolkit-types.d.js +0 -1
- package/dist/cjs/util/useFunctionsContext.js +0 -16
- package/dist/cjs/util/useIsAdminMode.js +0 -18
- package/dist/cjs/util/useUser.js +0 -16
- package/dist/esm/bootstrap.js +0 -4
- package/dist/esm/client.js +0 -8
- package/dist/esm/components/App.js +0 -35
- package/dist/esm/components/App.spec.js +0 -9
- package/dist/esm/components/Button.js +0 -34
- package/dist/esm/components/ChaynsModuleProvider.js +0 -517
- package/dist/esm/components/ChaynsProviderExposed.js +0 -3
- package/dist/esm/components/TestProvider.js +0 -308
- package/dist/esm/components/Title.js +0 -210
- package/dist/esm/helper/cssLoader.js +0 -21
- package/dist/esm/hooks/useAddGeoLocationListener.js +0 -18
- package/dist/esm/hooks/useAddScrollListener.js +0 -18
- package/dist/esm/hooks/useAddWindowMetricsListener.js +0 -18
- package/dist/esm/host/HostIframe.js +0 -153
- package/dist/esm/index.example.js +0 -1
- package/dist/esm/index2.js +0 -5
- package/dist/esm/types/DynamicApiImport.d.js +0 -1
- package/dist/esm/types/DynamicImport.d.js +0 -1
- package/dist/esm/types/chayns-components.d.js +0 -0
- package/dist/esm/types/chayns-logger.d.js +0 -0
- package/dist/esm/types/chayns.d.js +0 -0
- package/dist/esm/types/tobit-websocket-service-client.d.js +0 -0
- package/dist/esm/types/toolkit-types.d.js +0 -0
- package/dist/esm/util/useIsAdminMode.js +0 -9
- package/dist/esm/util/useUser.js +0 -7
- package/dist/types/bootstrap.d.ts +0 -1
- package/dist/types/client.d.ts +0 -7
- package/dist/types/components/App.d.ts +0 -5
- package/dist/types/components/Button.d.ts +0 -8
- package/dist/types/components/ChaynsModuleProvider.d.ts +0 -170
- package/dist/types/components/ChaynsProviderExposed.d.ts +0 -13
- package/dist/types/components/Title.d.ts +0 -3
- package/dist/types/host/HostIframe.d.ts +0 -20
- package/dist/types/index.example.d.ts +0 -0
package/dist/esm/calls/index.js
CHANGED
|
@@ -1,475 +1,323 @@
|
|
|
1
1
|
import { moduleWrapper } from '../components/ChaynsProvider';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
|
-
export var getGeoLocation = function getGeoLocation() {
|
|
74
|
-
var _moduleWrapper$curren8;
|
|
75
|
-
|
|
76
|
-
return (_moduleWrapper$curren8 = moduleWrapper.current.functions).getGeoLocation.apply(_moduleWrapper$curren8, arguments);
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* This method returns user information for a specific user.
|
|
80
|
-
* @category User functions
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
export var getUserInfo = function getUserInfo() {
|
|
84
|
-
var _moduleWrapper$curren9;
|
|
85
|
-
|
|
86
|
-
return (_moduleWrapper$curren9 = moduleWrapper.current.functions).getUserInfo.apply(_moduleWrapper$curren9, arguments);
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Return the current scroll position of the top frame
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
export var getScrollPosition = function getScrollPosition() {
|
|
93
|
-
var _moduleWrapper$curren10;
|
|
94
|
-
|
|
95
|
-
return (_moduleWrapper$curren10 = moduleWrapper.current.functions).getScrollPosition.apply(_moduleWrapper$curren10, arguments);
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Returns the window metrics.
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
|
-
export var getWindowMetrics = function getWindowMetrics() {
|
|
102
|
-
var _moduleWrapper$curren11;
|
|
103
|
-
|
|
104
|
-
return (_moduleWrapper$curren11 = moduleWrapper.current.functions).getWindowMetrics.apply(_moduleWrapper$curren11, arguments);
|
|
2
|
+
/**
|
|
3
|
+
* This adds a listener to determine your location.
|
|
4
|
+
* @category Event listener
|
|
5
|
+
*/
|
|
6
|
+
export const addGeoLocationListener = function () {
|
|
7
|
+
return moduleWrapper.current.functions.addGeoLocationListener(...arguments);
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Adds a listener for scroll event by user.
|
|
11
|
+
* @category Event listener
|
|
12
|
+
*/
|
|
13
|
+
export const addScrollListener = function () {
|
|
14
|
+
return moduleWrapper.current.functions.addScrollListener(...arguments);
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* This method will be executed when the page gets displayed or hidden.
|
|
18
|
+
* @category Event listener
|
|
19
|
+
*/
|
|
20
|
+
export const addVisibilityChangeListener = function () {
|
|
21
|
+
return moduleWrapper.current.functions.addVisibilityChangeListener(...arguments);
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* This adds a listener to get the actual height of the page.
|
|
25
|
+
* @category Event listener
|
|
26
|
+
*/
|
|
27
|
+
export const addWindowMetricsListener = function () {
|
|
28
|
+
return moduleWrapper.current.functions.addWindowMetricsListener(...arguments);
|
|
29
|
+
}; /**
|
|
30
|
+
* Allows a custom callback function to be defined
|
|
31
|
+
*/
|
|
32
|
+
export const customCallbackFunction = function () {
|
|
33
|
+
return moduleWrapper.current.functions.customCallbackFunction(...arguments);
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Get the accessToken from the user.
|
|
37
|
+
*/
|
|
38
|
+
export const getAccessToken = function () {
|
|
39
|
+
return moduleWrapper.current.functions.getAccessToken(...arguments);
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* This method returns a list of installed share/social media apps.
|
|
43
|
+
*/
|
|
44
|
+
export const getAvailableSharingServices = function () {
|
|
45
|
+
return moduleWrapper.current.functions.getAvailableSharingServices(...arguments);
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* This method determines your location. If you want to track a route, use addGeoLocationListener.
|
|
49
|
+
*/
|
|
50
|
+
export const getGeoLocation = function () {
|
|
51
|
+
return moduleWrapper.current.functions.getGeoLocation(...arguments);
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* This method returns user information for a specific user.
|
|
55
|
+
* @category User functions
|
|
56
|
+
*/
|
|
57
|
+
export const getUserInfo = function () {
|
|
58
|
+
return moduleWrapper.current.functions.getUserInfo(...arguments);
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Return the current scroll position of the top frame
|
|
62
|
+
*/
|
|
63
|
+
export const getScrollPosition = function () {
|
|
64
|
+
return moduleWrapper.current.functions.getScrollPosition(...arguments);
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Returns the window metrics.
|
|
68
|
+
*/
|
|
69
|
+
export const getWindowMetrics = function () {
|
|
70
|
+
return moduleWrapper.current.functions.getWindowMetrics(...arguments);
|
|
105
71
|
};
|
|
106
72
|
/** @internal */
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
var _moduleWrapper$curren12;
|
|
110
|
-
|
|
111
|
-
return (_moduleWrapper$curren12 = moduleWrapper.current.functions).invokeCall.apply(_moduleWrapper$curren12, arguments);
|
|
73
|
+
export const invokeCall = function () {
|
|
74
|
+
return moduleWrapper.current.functions.invokeCall(...arguments);
|
|
112
75
|
};
|
|
113
76
|
/** @internal */
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
return
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* This
|
|
131
|
-
*/
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* The
|
|
149
|
-
*/
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
return
|
|
164
|
-
};
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
export
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
*
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
*
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
return
|
|
240
|
-
};
|
|
241
|
-
/**
|
|
242
|
-
*
|
|
243
|
-
*/
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return
|
|
258
|
-
};
|
|
259
|
-
/**
|
|
260
|
-
*
|
|
261
|
-
*/
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
return
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
*
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return
|
|
294
|
-
};
|
|
295
|
-
/**
|
|
296
|
-
*
|
|
297
|
-
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
export
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
*/
|
|
316
|
-
|
|
317
|
-
export var setRefreshScrollEnabled = function setRefreshScrollEnabled() {
|
|
318
|
-
var _moduleWrapper$curren35;
|
|
319
|
-
|
|
320
|
-
return (_moduleWrapper$curren35 = moduleWrapper.current.functions).setRefreshScrollEnabled.apply(_moduleWrapper$curren35, arguments);
|
|
321
|
-
};
|
|
322
|
-
/**
|
|
323
|
-
* Scans a qr-code and returns the result
|
|
324
|
-
*/
|
|
325
|
-
|
|
326
|
-
export var setScanQrCode = function setScanQrCode() {
|
|
327
|
-
var _moduleWrapper$curren36;
|
|
328
|
-
|
|
329
|
-
return (_moduleWrapper$curren36 = moduleWrapper.current.functions).setScanQrCode.apply(_moduleWrapper$curren36, arguments);
|
|
330
|
-
};
|
|
331
|
-
/**
|
|
332
|
-
* Temporarily change design settings in top frame
|
|
333
|
-
*/
|
|
334
|
-
|
|
335
|
-
export var setTempDesignSettings = function setTempDesignSettings() {
|
|
336
|
-
var _moduleWrapper$curren37;
|
|
337
|
-
|
|
338
|
-
return (_moduleWrapper$curren37 = moduleWrapper.current.functions).setTempDesignSettings.apply(_moduleWrapper$curren37, arguments);
|
|
339
|
-
};
|
|
340
|
-
/**
|
|
341
|
-
* Shows or hide a waitcursor
|
|
342
|
-
*/
|
|
343
|
-
|
|
344
|
-
export var setWaitCursor = function setWaitCursor() {
|
|
345
|
-
var _moduleWrapper$curren38;
|
|
346
|
-
|
|
347
|
-
return (_moduleWrapper$curren38 = moduleWrapper.current.functions).setWaitCursor.apply(_moduleWrapper$curren38, arguments);
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* Retrieves the value that is assigned to the key from a storage outside the frame
|
|
351
|
-
*/
|
|
352
|
-
|
|
353
|
-
export var storageGetItem = function storageGetItem() {
|
|
354
|
-
var _moduleWrapper$curren39;
|
|
355
|
-
|
|
356
|
-
return (_moduleWrapper$curren39 = moduleWrapper.current.functions).storageGetItem.apply(_moduleWrapper$curren39, arguments);
|
|
357
|
-
};
|
|
358
|
-
/**
|
|
359
|
-
* Removes the value that is assigned to the key from a storage outside the frame
|
|
360
|
-
*/
|
|
361
|
-
|
|
362
|
-
export var storageRemoveItem = function storageRemoveItem() {
|
|
363
|
-
var _moduleWrapper$curren40;
|
|
364
|
-
|
|
365
|
-
return (_moduleWrapper$curren40 = moduleWrapper.current.functions).storageRemoveItem.apply(_moduleWrapper$curren40, arguments);
|
|
366
|
-
};
|
|
367
|
-
/**
|
|
368
|
-
* Sets the value that is assigned to the key from a storage outside the frame
|
|
369
|
-
*/
|
|
370
|
-
|
|
371
|
-
export var storageSetItem = function storageSetItem() {
|
|
372
|
-
var _moduleWrapper$curren41;
|
|
373
|
-
|
|
374
|
-
return (_moduleWrapper$curren41 = moduleWrapper.current.functions).storageSetItem.apply(_moduleWrapper$curren41, arguments);
|
|
375
|
-
};
|
|
376
|
-
/**
|
|
377
|
-
* This method lets a smartphone vibrate for the given time.
|
|
378
|
-
*/
|
|
379
|
-
|
|
380
|
-
export var vibrate = function vibrate() {
|
|
381
|
-
var _moduleWrapper$curren42;
|
|
382
|
-
|
|
383
|
-
return (_moduleWrapper$curren42 = moduleWrapper.current.functions).vibrate.apply(_moduleWrapper$curren42, arguments);
|
|
384
|
-
};
|
|
385
|
-
/**
|
|
386
|
-
* Displays an overlay
|
|
387
|
-
*/
|
|
388
|
-
|
|
389
|
-
export var setOverlay = function setOverlay() {
|
|
390
|
-
var _moduleWrapper$curren43;
|
|
391
|
-
|
|
392
|
-
return (_moduleWrapper$curren43 = moduleWrapper.current.functions).setOverlay.apply(_moduleWrapper$curren43, arguments);
|
|
393
|
-
};
|
|
394
|
-
/**
|
|
395
|
-
* Returns user information, only when user is logged in
|
|
396
|
-
* @category User functions
|
|
397
|
-
*/
|
|
398
|
-
|
|
399
|
-
export var getUser = function getUser() {
|
|
400
|
-
return moduleWrapper.current.values.user;
|
|
401
|
-
};
|
|
402
|
-
export var getSite = function getSite() {
|
|
403
|
-
return moduleWrapper.current.values.site;
|
|
404
|
-
};
|
|
405
|
-
export var getDevice = function getDevice() {
|
|
406
|
-
return moduleWrapper.current.values.device;
|
|
407
|
-
};
|
|
408
|
-
export var getLanguage = function getLanguage() {
|
|
409
|
-
return moduleWrapper.current.values.language;
|
|
410
|
-
};
|
|
411
|
-
export var getParameters = function getParameters() {
|
|
412
|
-
return moduleWrapper.current.values.parameters;
|
|
413
|
-
};
|
|
414
|
-
export var getPages = function getPages() {
|
|
415
|
-
return moduleWrapper.current.values.pages;
|
|
416
|
-
};
|
|
417
|
-
export var getEnvironment = function getEnvironment() {
|
|
418
|
-
return moduleWrapper.current.values.environment;
|
|
419
|
-
};
|
|
420
|
-
export var user = new Proxy({}, {
|
|
421
|
-
get: function get(target, prop) {
|
|
422
|
-
var _moduleWrapper$curren44;
|
|
423
|
-
|
|
77
|
+
export const invokeDialogCall = function () {
|
|
78
|
+
return moduleWrapper.current.functions.invokeDialogCall(...arguments);
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* This method will show a login dialog where the user has the opportunity to log in.
|
|
82
|
+
*/
|
|
83
|
+
export const login = function () {
|
|
84
|
+
return moduleWrapper.current.functions.login(...arguments);
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* This method will logout the user
|
|
88
|
+
*/
|
|
89
|
+
export const logout = function () {
|
|
90
|
+
return moduleWrapper.current.functions.logout(...arguments);
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* This function navigates you to the previous site.
|
|
94
|
+
*/
|
|
95
|
+
export const navigateBack = function () {
|
|
96
|
+
return moduleWrapper.current.functions.navigateBack(...arguments);
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* The images specified in the url array is shown in gallery mode.
|
|
100
|
+
*/
|
|
101
|
+
export const openImage = function () {
|
|
102
|
+
return moduleWrapper.current.functions.openImage(...arguments);
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Opens an URL in the chayns environment.
|
|
106
|
+
*/
|
|
107
|
+
export const openUrl = function () {
|
|
108
|
+
return moduleWrapper.current.functions.openUrl(...arguments);
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* The video specified in the URL is shown in video mode.
|
|
112
|
+
*/
|
|
113
|
+
export const openVideo = function () {
|
|
114
|
+
return moduleWrapper.current.functions.openVideo(...arguments);
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Refresh badge count in navigation, user information and pages
|
|
118
|
+
*/
|
|
119
|
+
export const refreshData = function () {
|
|
120
|
+
return moduleWrapper.current.functions.refreshData(...arguments);
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Refresh accesstoken, should only be used when user object changes, not when token is invalid
|
|
124
|
+
*/
|
|
125
|
+
export const refreshAccessToken = function () {
|
|
126
|
+
return moduleWrapper.current.functions.refreshAccessToken(...arguments);
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* This removes a listener to determine your location.
|
|
130
|
+
* @category Event listener
|
|
131
|
+
*/
|
|
132
|
+
export const removeGeoLocationListener = function () {
|
|
133
|
+
return moduleWrapper.current.functions.removeGeoLocationListener(...arguments);
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Removes scroll listener.
|
|
137
|
+
* @category Event listener
|
|
138
|
+
*/
|
|
139
|
+
export const removeScrollListener = function () {
|
|
140
|
+
return moduleWrapper.current.functions.removeScrollListener(...arguments);
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Removes visibility change listener.
|
|
144
|
+
* @category Event listener
|
|
145
|
+
*/
|
|
146
|
+
export const removeVisibilityChangeListener = function () {
|
|
147
|
+
return moduleWrapper.current.functions.removeVisibilityChangeListener(...arguments);
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Removes window metrics listener.
|
|
151
|
+
* @category Event listener
|
|
152
|
+
*/
|
|
153
|
+
export const removeWindowMetricsListener = function () {
|
|
154
|
+
return moduleWrapper.current.functions.removeWindowMetricsListener(...arguments);
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Select other page on chayns site.
|
|
158
|
+
*/
|
|
159
|
+
export const selectPage = function () {
|
|
160
|
+
return moduleWrapper.current.functions.selectPage(...arguments);
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Scrolls to specific position.
|
|
164
|
+
*/
|
|
165
|
+
export const scrollToY = function () {
|
|
166
|
+
return moduleWrapper.current.functions.scrollToY(...arguments);
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Sends intercom message to group.
|
|
170
|
+
*/
|
|
171
|
+
export const sendMessageToGroup = function () {
|
|
172
|
+
return moduleWrapper.current.functions.sendMessageToGroup(...arguments);
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Sends intercom message to page.
|
|
176
|
+
*/
|
|
177
|
+
export const sendMessageToPage = function () {
|
|
178
|
+
return moduleWrapper.current.functions.sendMessageToPage(...arguments);
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Sends intercom message to an user.
|
|
182
|
+
*/
|
|
183
|
+
export const sendMessageToUser = function () {
|
|
184
|
+
return moduleWrapper.current.functions.sendMessageToUser(...arguments);
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Switches admin mode, also toggles admin switch in top frame.
|
|
188
|
+
*/
|
|
189
|
+
export const setAdminMode = function () {
|
|
190
|
+
return moduleWrapper.current.functions.setAdminMode(...arguments);
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Sets the display timeout, only works in chayns App.
|
|
194
|
+
*/
|
|
195
|
+
export const setDisplayTimeout = function () {
|
|
196
|
+
return moduleWrapper.current.functions.setDisplayTimeout(...arguments);
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Enables or disables a button which floats over the page.
|
|
200
|
+
*/
|
|
201
|
+
export const setFloatingButton = function () {
|
|
202
|
+
return moduleWrapper.current.functions.setFloatingButton(...arguments);
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Sets the height of the page.
|
|
206
|
+
*/
|
|
207
|
+
export const setHeight = function () {
|
|
208
|
+
return moduleWrapper.current.functions.setHeight(...arguments);
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Enables or disables the ability to refresh a page
|
|
212
|
+
*/
|
|
213
|
+
export const setRefreshScrollEnabled = function () {
|
|
214
|
+
return moduleWrapper.current.functions.setRefreshScrollEnabled(...arguments);
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Scans a qr-code and returns the result
|
|
218
|
+
*/
|
|
219
|
+
export const setScanQrCode = function () {
|
|
220
|
+
return moduleWrapper.current.functions.setScanQrCode(...arguments);
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Temporarily change design settings in top frame
|
|
224
|
+
*/
|
|
225
|
+
export const setTempDesignSettings = function () {
|
|
226
|
+
return moduleWrapper.current.functions.setTempDesignSettings(...arguments);
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Shows or hide a waitcursor
|
|
230
|
+
*/
|
|
231
|
+
export const setWaitCursor = function () {
|
|
232
|
+
return moduleWrapper.current.functions.setWaitCursor(...arguments);
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Retrieves the value that is assigned to the key from a storage outside the frame
|
|
236
|
+
*/
|
|
237
|
+
export const storageGetItem = function () {
|
|
238
|
+
return moduleWrapper.current.functions.storageGetItem(...arguments);
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Removes the value that is assigned to the key from a storage outside the frame
|
|
242
|
+
*/
|
|
243
|
+
export const storageRemoveItem = function () {
|
|
244
|
+
return moduleWrapper.current.functions.storageRemoveItem(...arguments);
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* Sets the value that is assigned to the key from a storage outside the frame
|
|
248
|
+
*/
|
|
249
|
+
export const storageSetItem = function () {
|
|
250
|
+
return moduleWrapper.current.functions.storageSetItem(...arguments);
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* This method lets a smartphone vibrate for the given time.
|
|
254
|
+
*/
|
|
255
|
+
export const vibrate = function () {
|
|
256
|
+
return moduleWrapper.current.functions.vibrate(...arguments);
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* Displays an overlay
|
|
260
|
+
*/
|
|
261
|
+
export const setOverlay = function () {
|
|
262
|
+
return moduleWrapper.current.functions.setOverlay(...arguments);
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* Returns user information, only when user is logged in
|
|
266
|
+
* @category User functions
|
|
267
|
+
*/
|
|
268
|
+
export const getUser = () => moduleWrapper.current.values.user;
|
|
269
|
+
export const getSite = () => moduleWrapper.current.values.site;
|
|
270
|
+
export const getDevice = () => moduleWrapper.current.values.device;
|
|
271
|
+
export const getLanguage = () => moduleWrapper.current.values.language;
|
|
272
|
+
export const getParameters = () => moduleWrapper.current.values.parameters;
|
|
273
|
+
export const getPages = () => moduleWrapper.current.values.pages;
|
|
274
|
+
export const getEnvironment = () => moduleWrapper.current.values.environment;
|
|
275
|
+
export const user = new Proxy({}, {
|
|
276
|
+
get: (target, prop) => {
|
|
277
|
+
var _moduleWrapper$curren;
|
|
424
278
|
console.warn('Deprecated user import');
|
|
425
|
-
return (_moduleWrapper$
|
|
279
|
+
return (_moduleWrapper$curren = moduleWrapper.current.values.user) === null || _moduleWrapper$curren === void 0 ? void 0 : _moduleWrapper$curren[prop];
|
|
426
280
|
}
|
|
427
281
|
});
|
|
428
|
-
export
|
|
429
|
-
get:
|
|
430
|
-
var _moduleWrapper$
|
|
431
|
-
|
|
282
|
+
export const site = new Proxy({}, {
|
|
283
|
+
get: (target, prop) => {
|
|
284
|
+
var _moduleWrapper$curren2;
|
|
432
285
|
console.warn('Deprecated site import');
|
|
433
|
-
return (_moduleWrapper$
|
|
286
|
+
return (_moduleWrapper$curren2 = moduleWrapper.current.values.site) === null || _moduleWrapper$curren2 === void 0 ? void 0 : _moduleWrapper$curren2[prop];
|
|
434
287
|
}
|
|
435
288
|
});
|
|
436
|
-
export
|
|
437
|
-
get:
|
|
438
|
-
var _moduleWrapper$
|
|
439
|
-
|
|
289
|
+
export const device = new Proxy({}, {
|
|
290
|
+
get: (target, prop) => {
|
|
291
|
+
var _moduleWrapper$curren3;
|
|
440
292
|
console.warn('Deprecated device import');
|
|
441
|
-
return (_moduleWrapper$
|
|
293
|
+
return (_moduleWrapper$curren3 = moduleWrapper.current.values.device) === null || _moduleWrapper$curren3 === void 0 ? void 0 : _moduleWrapper$curren3[prop];
|
|
442
294
|
}
|
|
443
295
|
});
|
|
444
|
-
export
|
|
445
|
-
get:
|
|
446
|
-
var _moduleWrapper$
|
|
447
|
-
|
|
296
|
+
export const language = new Proxy({}, {
|
|
297
|
+
get: (target, prop) => {
|
|
298
|
+
var _moduleWrapper$curren4;
|
|
448
299
|
console.warn('Deprecated language import');
|
|
449
|
-
return (_moduleWrapper$
|
|
300
|
+
return (_moduleWrapper$curren4 = moduleWrapper.current.values.language) === null || _moduleWrapper$curren4 === void 0 ? void 0 : _moduleWrapper$curren4[prop];
|
|
450
301
|
}
|
|
451
302
|
});
|
|
452
|
-
export
|
|
453
|
-
get:
|
|
454
|
-
var _moduleWrapper$
|
|
455
|
-
|
|
303
|
+
export const parameters = new Proxy({}, {
|
|
304
|
+
get: (target, prop) => {
|
|
305
|
+
var _moduleWrapper$curren5;
|
|
456
306
|
console.warn('Deprecated parameters import');
|
|
457
|
-
return (_moduleWrapper$
|
|
307
|
+
return (_moduleWrapper$curren5 = moduleWrapper.current.values.parameters) === null || _moduleWrapper$curren5 === void 0 ? void 0 : _moduleWrapper$curren5[prop];
|
|
458
308
|
}
|
|
459
309
|
});
|
|
460
|
-
export
|
|
461
|
-
get:
|
|
462
|
-
var _moduleWrapper$
|
|
463
|
-
|
|
310
|
+
export const pages = new Proxy({}, {
|
|
311
|
+
get: (target, prop) => {
|
|
312
|
+
var _moduleWrapper$curren6;
|
|
464
313
|
console.warn('Deprecated pages import');
|
|
465
|
-
return (_moduleWrapper$
|
|
314
|
+
return (_moduleWrapper$curren6 = moduleWrapper.current.values.pages) === null || _moduleWrapper$curren6 === void 0 ? void 0 : _moduleWrapper$curren6[prop];
|
|
466
315
|
}
|
|
467
316
|
});
|
|
468
|
-
export
|
|
469
|
-
get:
|
|
470
|
-
var _moduleWrapper$
|
|
471
|
-
|
|
317
|
+
export const environment = new Proxy({}, {
|
|
318
|
+
get: (target, prop) => {
|
|
319
|
+
var _moduleWrapper$curren7;
|
|
472
320
|
console.warn('Deprecated environment import');
|
|
473
|
-
return (_moduleWrapper$
|
|
321
|
+
return (_moduleWrapper$curren7 = moduleWrapper.current.values.environment) === null || _moduleWrapper$curren7 === void 0 ? void 0 : _moduleWrapper$curren7[prop];
|
|
474
322
|
}
|
|
475
323
|
});
|