chayns-api 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +36 -53
- 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/environment.js +10 -0
- package/dist/cjs/calls/dialogs/utils/is.js +0 -4
- package/dist/cjs/calls/getUserInfo.js +0 -11
- package/dist/cjs/calls/index.js +3 -155
- package/dist/cjs/calls/sendMessage.js +0 -26
- package/dist/cjs/calls/visibilityChangeListener.js +1 -12
- 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 +2 -11
- package/dist/cjs/hooks/index.js +6 -16
- package/dist/cjs/hooks/scrollListener.js +4 -23
- package/dist/cjs/hooks/useAccessToken.js +0 -5
- package/dist/cjs/hooks/useCurrentPage.js +0 -4
- package/dist/cjs/hooks/useCustomData.js +0 -4
- package/dist/cjs/hooks/useDevice.js +0 -4
- package/dist/cjs/hooks/useEnvironment.js +0 -4
- package/dist/cjs/hooks/useFunctions.js +0 -4
- package/dist/cjs/hooks/useIsAdminMode.js +0 -5
- package/dist/cjs/hooks/useLanguage.js +0 -4
- package/dist/cjs/hooks/usePages.js +22 -14
- package/dist/cjs/hooks/useParameters.js +0 -4
- package/dist/cjs/hooks/useSite.js +0 -4
- package/dist/cjs/hooks/useUser.js +0 -5
- package/dist/cjs/hooks/useValues.js +0 -4
- package/dist/cjs/hooks/windowMetricsListener.js +2 -12
- 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/{HostIframe.js → module/PagemakerFrame.js} +23 -75
- 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 +4 -21
- package/dist/cjs/util/heightHelper.js +0 -9
- package/dist/cjs/util/postIframeForm.js +0 -5
- package/dist/cjs/wrapper/AppWrapper.js +318 -159
- package/dist/cjs/wrapper/FrameWrapper.js +215 -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 +85 -94
- 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/environment.js +3 -0
- package/dist/esm/calls/dialogs/utils/is.js +1 -3
- package/dist/esm/calls/getUserInfo.js +32 -92
- package/dist/esm/calls/index.js +124 -276
- package/dist/esm/calls/sendMessage.js +91 -221
- package/dist/esm/calls/visibilityChangeListener.js +10 -15
- 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 +20 -46
- package/dist/esm/hooks/index.js +1 -1
- package/dist/esm/hooks/scrollListener.js +50 -86
- package/dist/esm/hooks/useAccessToken.js +6 -28
- package/dist/esm/hooks/useCurrentPage.js +2 -6
- package/dist/esm/hooks/useCustomData.js +2 -6
- package/dist/esm/hooks/useDevice.js +1 -6
- package/dist/esm/hooks/useEnvironment.js +1 -6
- package/dist/esm/hooks/useFunctions.js +2 -5
- package/dist/esm/hooks/useIsAdminMode.js +2 -6
- package/dist/esm/hooks/useLanguage.js +1 -6
- package/dist/esm/hooks/usePages.js +34 -27
- package/dist/esm/hooks/useParameters.js +1 -6
- package/dist/esm/hooks/useSite.js +1 -6
- package/dist/esm/hooks/useUser.js +1 -7
- package/dist/esm/hooks/useValues.js +2 -5
- package/dist/esm/hooks/windowMetricsListener.js +18 -44
- 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/PagemakerFrame.js +97 -0
- 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 +12 -36
- package/dist/esm/util/heightHelper.js +10 -13
- package/dist/esm/util/postIframeForm.js +25 -57
- package/dist/esm/wrapper/AppWrapper.js +380 -781
- package/dist/esm/wrapper/FrameWrapper.js +258 -1509
- package/dist/esm/wrapper/ModuleFederationWrapper.js +47 -284
- package/dist/esm/wrapper/SsrWrapper.js +19 -65
- package/dist/types/calls/dialogs/confirm.d.ts +1 -1
- package/dist/types/calls/dialogs/date.d.ts +4 -4
- package/dist/types/calls/dialogs/dropUpAlert.d.ts +1 -1
- package/dist/types/calls/dialogs/fileSelect.d.ts +1 -1
- package/dist/types/calls/dialogs/iFrame.d.ts +1 -1
- package/dist/types/calls/dialogs/input.d.ts +1 -1
- package/dist/types/calls/dialogs/mediaSelect.d.ts +1 -1
- package/dist/types/calls/dialogs/signature.d.ts +1 -1
- package/dist/types/calls/dialogs/utils/environment.d.ts +3 -0
- package/dist/types/calls/index.d.ts +0 -6
- package/dist/types/components/ChaynsProvider.d.ts +1 -1
- package/dist/types/components/WaitUntil.d.ts +1 -1
- package/dist/types/components/withCompatMode.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +1 -1
- package/dist/types/hooks/useAccessToken.d.ts +1 -1
- package/dist/types/hooks/usePages.d.ts +4 -0
- package/dist/types/host/ChaynsHost.d.ts +1 -1
- package/dist/types/host/iframe/HostIframe.d.ts +1 -1
- package/dist/types/host/module/ModuleHost.d.ts +2 -2
- package/dist/types/host/{HostIframe.d.ts → module/PagemakerFrame.d.ts} +7 -5
- package/dist/types/types/IChaynsReact.d.ts +55 -24
- package/dist/types/util/deviceHelper.d.ts +2 -2
- package/dist/types/wrapper/AppWrapper.d.ts +6 -4
- package/package.json +1 -1
- 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/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/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/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/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/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/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/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/components/App.d.ts +0 -5
- package/dist/types/components/Button.d.ts +0 -8
- package/dist/types/components/ChaynsProviderExposed.d.ts +0 -13
- package/dist/types/components/Title.d.ts +0 -3
- 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
2
|
/**
|
|
4
3
|
* This adds a listener to determine your location.
|
|
5
4
|
* @category Event listener
|
|
6
5
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return (_moduleWrapper$curren = moduleWrapper.current.functions).addGeoLocationListener.apply(_moduleWrapper$curren, arguments);
|
|
6
|
+
export const addGeoLocationListener = function () {
|
|
7
|
+
return moduleWrapper.current.functions.addGeoLocationListener(...arguments);
|
|
11
8
|
};
|
|
12
9
|
/**
|
|
13
10
|
* Adds a listener for scroll event by user.
|
|
14
11
|
* @category Event listener
|
|
15
12
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _moduleWrapper$curren2;
|
|
19
|
-
|
|
20
|
-
return (_moduleWrapper$curren2 = moduleWrapper.current.functions).addScrollListener.apply(_moduleWrapper$curren2, arguments);
|
|
13
|
+
export const addScrollListener = function () {
|
|
14
|
+
return moduleWrapper.current.functions.addScrollListener(...arguments);
|
|
21
15
|
};
|
|
22
16
|
/**
|
|
23
17
|
* This method will be executed when the page gets displayed or hidden.
|
|
24
18
|
* @category Event listener
|
|
25
19
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var _moduleWrapper$curren3;
|
|
29
|
-
|
|
30
|
-
return (_moduleWrapper$curren3 = moduleWrapper.current.functions).addVisibilityChangeListener.apply(_moduleWrapper$curren3, arguments);
|
|
20
|
+
export const addVisibilityChangeListener = function () {
|
|
21
|
+
return moduleWrapper.current.functions.addVisibilityChangeListener(...arguments);
|
|
31
22
|
};
|
|
32
23
|
/**
|
|
33
24
|
* This adds a listener to get the actual height of the page.
|
|
34
25
|
* @category Event listener
|
|
35
26
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* Allows a custom callback function to be defined
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
export var customCallbackFunction = function customCallbackFunction() {
|
|
47
|
-
var _moduleWrapper$curren5;
|
|
48
|
-
|
|
49
|
-
return (_moduleWrapper$curren5 = moduleWrapper.current.functions).customCallbackFunction.apply(_moduleWrapper$curren5, arguments);
|
|
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);
|
|
50
34
|
};
|
|
51
35
|
/**
|
|
52
36
|
* Get the accessToken from the user.
|
|
53
37
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
var _moduleWrapper$curren6;
|
|
57
|
-
|
|
58
|
-
return (_moduleWrapper$curren6 = moduleWrapper.current.functions).getAccessToken.apply(_moduleWrapper$curren6, arguments);
|
|
38
|
+
export const getAccessToken = function () {
|
|
39
|
+
return moduleWrapper.current.functions.getAccessToken(...arguments);
|
|
59
40
|
};
|
|
60
41
|
/**
|
|
61
42
|
* This method returns a list of installed share/social media apps.
|
|
62
43
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var _moduleWrapper$curren7;
|
|
66
|
-
|
|
67
|
-
return (_moduleWrapper$curren7 = moduleWrapper.current.functions).getAvailableSharingServices.apply(_moduleWrapper$curren7, arguments);
|
|
44
|
+
export const getAvailableSharingServices = function () {
|
|
45
|
+
return moduleWrapper.current.functions.getAvailableSharingServices(...arguments);
|
|
68
46
|
};
|
|
69
47
|
/**
|
|
70
48
|
* This method determines your location. If you want to track a route, use addGeoLocationListener.
|
|
71
49
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var _moduleWrapper$curren8;
|
|
75
|
-
|
|
76
|
-
return (_moduleWrapper$curren8 = moduleWrapper.current.functions).getGeoLocation.apply(_moduleWrapper$curren8, arguments);
|
|
50
|
+
export const getGeoLocation = function () {
|
|
51
|
+
return moduleWrapper.current.functions.getGeoLocation(...arguments);
|
|
77
52
|
};
|
|
78
53
|
/**
|
|
79
54
|
* This method returns user information for a specific user.
|
|
80
55
|
* @category User functions
|
|
81
56
|
*/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
var _moduleWrapper$curren9;
|
|
85
|
-
|
|
86
|
-
return (_moduleWrapper$curren9 = moduleWrapper.current.functions).getUserInfo.apply(_moduleWrapper$curren9, arguments);
|
|
57
|
+
export const getUserInfo = function () {
|
|
58
|
+
return moduleWrapper.current.functions.getUserInfo(...arguments);
|
|
87
59
|
};
|
|
88
60
|
/**
|
|
89
61
|
* Return the current scroll position of the top frame
|
|
90
62
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var _moduleWrapper$curren10;
|
|
94
|
-
|
|
95
|
-
return (_moduleWrapper$curren10 = moduleWrapper.current.functions).getScrollPosition.apply(_moduleWrapper$curren10, arguments);
|
|
63
|
+
export const getScrollPosition = function () {
|
|
64
|
+
return moduleWrapper.current.functions.getScrollPosition(...arguments);
|
|
96
65
|
};
|
|
97
66
|
/**
|
|
98
67
|
* Returns the window metrics.
|
|
99
68
|
*/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
var _moduleWrapper$curren11;
|
|
103
|
-
|
|
104
|
-
return (_moduleWrapper$curren11 = moduleWrapper.current.functions).getWindowMetrics.apply(_moduleWrapper$curren11, arguments);
|
|
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
|
-
var _moduleWrapper$curren13;
|
|
117
|
-
|
|
118
|
-
return (_moduleWrapper$curren13 = moduleWrapper.current.functions).invokeDialogCall.apply(_moduleWrapper$curren13, arguments);
|
|
77
|
+
export const invokeDialogCall = function () {
|
|
78
|
+
return moduleWrapper.current.functions.invokeDialogCall(...arguments);
|
|
119
79
|
};
|
|
120
80
|
/**
|
|
121
81
|
* This method will show a login dialog where the user has the opportunity to log in.
|
|
122
82
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
var _moduleWrapper$curren14;
|
|
126
|
-
|
|
127
|
-
return (_moduleWrapper$curren14 = moduleWrapper.current.functions).login.apply(_moduleWrapper$curren14, arguments);
|
|
83
|
+
export const login = function () {
|
|
84
|
+
return moduleWrapper.current.functions.login(...arguments);
|
|
128
85
|
};
|
|
129
86
|
/**
|
|
130
87
|
* This method will logout the user
|
|
131
88
|
*/
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
var _moduleWrapper$curren15;
|
|
135
|
-
|
|
136
|
-
return (_moduleWrapper$curren15 = moduleWrapper.current.functions).logout.apply(_moduleWrapper$curren15, arguments);
|
|
89
|
+
export const logout = function () {
|
|
90
|
+
return moduleWrapper.current.functions.logout(...arguments);
|
|
137
91
|
};
|
|
138
92
|
/**
|
|
139
93
|
* This function navigates you to the previous site.
|
|
140
94
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
var _moduleWrapper$curren16;
|
|
144
|
-
|
|
145
|
-
return (_moduleWrapper$curren16 = moduleWrapper.current.functions).navigateBack.apply(_moduleWrapper$curren16, arguments);
|
|
95
|
+
export const navigateBack = function () {
|
|
96
|
+
return moduleWrapper.current.functions.navigateBack(...arguments);
|
|
146
97
|
};
|
|
147
98
|
/**
|
|
148
99
|
* The images specified in the url array is shown in gallery mode.
|
|
149
100
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
var _moduleWrapper$curren17;
|
|
153
|
-
|
|
154
|
-
return (_moduleWrapper$curren17 = moduleWrapper.current.functions).openImage.apply(_moduleWrapper$curren17, arguments);
|
|
101
|
+
export const openImage = function () {
|
|
102
|
+
return moduleWrapper.current.functions.openImage(...arguments);
|
|
155
103
|
};
|
|
156
104
|
/**
|
|
157
105
|
* Opens an URL in the chayns environment.
|
|
158
106
|
*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
var _moduleWrapper$curren18;
|
|
162
|
-
|
|
163
|
-
return (_moduleWrapper$curren18 = moduleWrapper.current.functions).openUrl.apply(_moduleWrapper$curren18, arguments);
|
|
107
|
+
export const openUrl = function () {
|
|
108
|
+
return moduleWrapper.current.functions.openUrl(...arguments);
|
|
164
109
|
};
|
|
165
110
|
/**
|
|
166
111
|
* The video specified in the URL is shown in video mode.
|
|
167
112
|
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
var _moduleWrapper$curren19;
|
|
171
|
-
|
|
172
|
-
return (_moduleWrapper$curren19 = moduleWrapper.current.functions).openVideo.apply(_moduleWrapper$curren19, arguments);
|
|
113
|
+
export const openVideo = function () {
|
|
114
|
+
return moduleWrapper.current.functions.openVideo(...arguments);
|
|
173
115
|
};
|
|
174
116
|
/**
|
|
175
117
|
* Refresh badge count in navigation, user information and pages
|
|
176
118
|
*/
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
var _moduleWrapper$curren20;
|
|
180
|
-
|
|
181
|
-
return (_moduleWrapper$curren20 = moduleWrapper.current.functions).refreshData.apply(_moduleWrapper$curren20, arguments);
|
|
119
|
+
export const refreshData = function () {
|
|
120
|
+
return moduleWrapper.current.functions.refreshData(...arguments);
|
|
182
121
|
};
|
|
183
122
|
/**
|
|
184
123
|
* Refresh accesstoken, should only be used when user object changes, not when token is invalid
|
|
185
124
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
var _moduleWrapper$curren21;
|
|
189
|
-
|
|
190
|
-
return (_moduleWrapper$curren21 = moduleWrapper.current.functions).refreshAccessToken.apply(_moduleWrapper$curren21, arguments);
|
|
125
|
+
export const refreshAccessToken = function () {
|
|
126
|
+
return moduleWrapper.current.functions.refreshAccessToken(...arguments);
|
|
191
127
|
};
|
|
192
128
|
/**
|
|
193
129
|
* This removes a listener to determine your location.
|
|
194
130
|
* @category Event listener
|
|
195
131
|
*/
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
var _moduleWrapper$curren22;
|
|
199
|
-
|
|
200
|
-
return (_moduleWrapper$curren22 = moduleWrapper.current.functions).removeGeoLocationListener.apply(_moduleWrapper$curren22, arguments);
|
|
132
|
+
export const removeGeoLocationListener = function () {
|
|
133
|
+
return moduleWrapper.current.functions.removeGeoLocationListener(...arguments);
|
|
201
134
|
};
|
|
202
135
|
/**
|
|
203
136
|
* Removes scroll listener.
|
|
204
137
|
* @category Event listener
|
|
205
138
|
*/
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
var _moduleWrapper$curren23;
|
|
209
|
-
|
|
210
|
-
return (_moduleWrapper$curren23 = moduleWrapper.current.functions).removeScrollListener.apply(_moduleWrapper$curren23, arguments);
|
|
139
|
+
export const removeScrollListener = function () {
|
|
140
|
+
return moduleWrapper.current.functions.removeScrollListener(...arguments);
|
|
211
141
|
};
|
|
212
142
|
/**
|
|
213
143
|
* Removes visibility change listener.
|
|
214
144
|
* @category Event listener
|
|
215
145
|
*/
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
var _moduleWrapper$curren24;
|
|
219
|
-
|
|
220
|
-
return (_moduleWrapper$curren24 = moduleWrapper.current.functions).removeVisibilityChangeListener.apply(_moduleWrapper$curren24, arguments);
|
|
146
|
+
export const removeVisibilityChangeListener = function () {
|
|
147
|
+
return moduleWrapper.current.functions.removeVisibilityChangeListener(...arguments);
|
|
221
148
|
};
|
|
222
149
|
/**
|
|
223
150
|
* Removes window metrics listener.
|
|
224
151
|
* @category Event listener
|
|
225
152
|
*/
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
var _moduleWrapper$curren25;
|
|
229
|
-
|
|
230
|
-
return (_moduleWrapper$curren25 = moduleWrapper.current.functions).removeWindowMetricsListener.apply(_moduleWrapper$curren25, arguments);
|
|
153
|
+
export const removeWindowMetricsListener = function () {
|
|
154
|
+
return moduleWrapper.current.functions.removeWindowMetricsListener(...arguments);
|
|
231
155
|
};
|
|
232
156
|
/**
|
|
233
157
|
* Select other page on chayns site.
|
|
234
158
|
*/
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
var _moduleWrapper$curren26;
|
|
238
|
-
|
|
239
|
-
return (_moduleWrapper$curren26 = moduleWrapper.current.functions).selectPage.apply(_moduleWrapper$curren26, arguments);
|
|
159
|
+
export const selectPage = function () {
|
|
160
|
+
return moduleWrapper.current.functions.selectPage(...arguments);
|
|
240
161
|
};
|
|
241
162
|
/**
|
|
242
163
|
* Scrolls to specific position.
|
|
243
164
|
*/
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
var _moduleWrapper$curren27;
|
|
247
|
-
|
|
248
|
-
return (_moduleWrapper$curren27 = moduleWrapper.current.functions).scrollToY.apply(_moduleWrapper$curren27, arguments);
|
|
165
|
+
export const scrollToY = function () {
|
|
166
|
+
return moduleWrapper.current.functions.scrollToY(...arguments);
|
|
249
167
|
};
|
|
250
168
|
/**
|
|
251
169
|
* Sends intercom message to group.
|
|
252
170
|
*/
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
var _moduleWrapper$curren28;
|
|
256
|
-
|
|
257
|
-
return (_moduleWrapper$curren28 = moduleWrapper.current.functions).sendMessageToGroup.apply(_moduleWrapper$curren28, arguments);
|
|
171
|
+
export const sendMessageToGroup = function () {
|
|
172
|
+
return moduleWrapper.current.functions.sendMessageToGroup(...arguments);
|
|
258
173
|
};
|
|
259
174
|
/**
|
|
260
175
|
* Sends intercom message to page.
|
|
261
176
|
*/
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
var _moduleWrapper$curren29;
|
|
265
|
-
|
|
266
|
-
return (_moduleWrapper$curren29 = moduleWrapper.current.functions).sendMessageToPage.apply(_moduleWrapper$curren29, arguments);
|
|
177
|
+
export const sendMessageToPage = function () {
|
|
178
|
+
return moduleWrapper.current.functions.sendMessageToPage(...arguments);
|
|
267
179
|
};
|
|
268
180
|
/**
|
|
269
181
|
* Sends intercom message to an user.
|
|
270
182
|
*/
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
var _moduleWrapper$curren30;
|
|
274
|
-
|
|
275
|
-
return (_moduleWrapper$curren30 = moduleWrapper.current.functions).sendMessageToUser.apply(_moduleWrapper$curren30, arguments);
|
|
183
|
+
export const sendMessageToUser = function () {
|
|
184
|
+
return moduleWrapper.current.functions.sendMessageToUser(...arguments);
|
|
276
185
|
};
|
|
277
186
|
/**
|
|
278
187
|
* Switches admin mode, also toggles admin switch in top frame.
|
|
279
188
|
*/
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
var _moduleWrapper$curren31;
|
|
283
|
-
|
|
284
|
-
return (_moduleWrapper$curren31 = moduleWrapper.current.functions).setAdminMode.apply(_moduleWrapper$curren31, arguments);
|
|
189
|
+
export const setAdminMode = function () {
|
|
190
|
+
return moduleWrapper.current.functions.setAdminMode(...arguments);
|
|
285
191
|
};
|
|
286
192
|
/**
|
|
287
193
|
* Sets the display timeout, only works in chayns App.
|
|
288
194
|
*/
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
var _moduleWrapper$curren32;
|
|
292
|
-
|
|
293
|
-
return (_moduleWrapper$curren32 = moduleWrapper.current.functions).setDisplayTimeout.apply(_moduleWrapper$curren32, arguments);
|
|
195
|
+
export const setDisplayTimeout = function () {
|
|
196
|
+
return moduleWrapper.current.functions.setDisplayTimeout(...arguments);
|
|
294
197
|
};
|
|
295
198
|
/**
|
|
296
199
|
* Enables or disables a button which floats over the page.
|
|
297
200
|
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
var _moduleWrapper$curren33;
|
|
301
|
-
|
|
302
|
-
return (_moduleWrapper$curren33 = moduleWrapper.current.functions).setFloatingButton.apply(_moduleWrapper$curren33, arguments);
|
|
201
|
+
export const setFloatingButton = function () {
|
|
202
|
+
return moduleWrapper.current.functions.setFloatingButton(...arguments);
|
|
303
203
|
};
|
|
304
204
|
/**
|
|
305
205
|
* Sets the height of the page.
|
|
306
206
|
*/
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
var _moduleWrapper$curren34;
|
|
310
|
-
|
|
311
|
-
return (_moduleWrapper$curren34 = moduleWrapper.current.functions).setHeight.apply(_moduleWrapper$curren34, arguments);
|
|
207
|
+
export const setHeight = function () {
|
|
208
|
+
return moduleWrapper.current.functions.setHeight(...arguments);
|
|
312
209
|
};
|
|
313
210
|
/**
|
|
314
211
|
* Enables or disables the ability to refresh a page
|
|
315
212
|
*/
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
var _moduleWrapper$curren35;
|
|
319
|
-
|
|
320
|
-
return (_moduleWrapper$curren35 = moduleWrapper.current.functions).setRefreshScrollEnabled.apply(_moduleWrapper$curren35, arguments);
|
|
213
|
+
export const setRefreshScrollEnabled = function () {
|
|
214
|
+
return moduleWrapper.current.functions.setRefreshScrollEnabled(...arguments);
|
|
321
215
|
};
|
|
322
216
|
/**
|
|
323
217
|
* Scans a qr-code and returns the result
|
|
324
218
|
*/
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
var _moduleWrapper$curren36;
|
|
328
|
-
|
|
329
|
-
return (_moduleWrapper$curren36 = moduleWrapper.current.functions).setScanQrCode.apply(_moduleWrapper$curren36, arguments);
|
|
219
|
+
export const setScanQrCode = function () {
|
|
220
|
+
return moduleWrapper.current.functions.setScanQrCode(...arguments);
|
|
330
221
|
};
|
|
331
222
|
/**
|
|
332
223
|
* Temporarily change design settings in top frame
|
|
333
224
|
*/
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
var _moduleWrapper$curren37;
|
|
337
|
-
|
|
338
|
-
return (_moduleWrapper$curren37 = moduleWrapper.current.functions).setTempDesignSettings.apply(_moduleWrapper$curren37, arguments);
|
|
225
|
+
export const setTempDesignSettings = function () {
|
|
226
|
+
return moduleWrapper.current.functions.setTempDesignSettings(...arguments);
|
|
339
227
|
};
|
|
340
228
|
/**
|
|
341
229
|
* Shows or hide a waitcursor
|
|
342
230
|
*/
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
var _moduleWrapper$curren38;
|
|
346
|
-
|
|
347
|
-
return (_moduleWrapper$curren38 = moduleWrapper.current.functions).setWaitCursor.apply(_moduleWrapper$curren38, arguments);
|
|
231
|
+
export const setWaitCursor = function () {
|
|
232
|
+
return moduleWrapper.current.functions.setWaitCursor(...arguments);
|
|
348
233
|
};
|
|
349
234
|
/**
|
|
350
235
|
* Retrieves the value that is assigned to the key from a storage outside the frame
|
|
351
236
|
*/
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
var _moduleWrapper$curren39;
|
|
355
|
-
|
|
356
|
-
return (_moduleWrapper$curren39 = moduleWrapper.current.functions).storageGetItem.apply(_moduleWrapper$curren39, arguments);
|
|
237
|
+
export const storageGetItem = function () {
|
|
238
|
+
return moduleWrapper.current.functions.storageGetItem(...arguments);
|
|
357
239
|
};
|
|
358
240
|
/**
|
|
359
241
|
* Removes the value that is assigned to the key from a storage outside the frame
|
|
360
242
|
*/
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
var _moduleWrapper$curren40;
|
|
364
|
-
|
|
365
|
-
return (_moduleWrapper$curren40 = moduleWrapper.current.functions).storageRemoveItem.apply(_moduleWrapper$curren40, arguments);
|
|
243
|
+
export const storageRemoveItem = function () {
|
|
244
|
+
return moduleWrapper.current.functions.storageRemoveItem(...arguments);
|
|
366
245
|
};
|
|
367
246
|
/**
|
|
368
247
|
* Sets the value that is assigned to the key from a storage outside the frame
|
|
369
248
|
*/
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
var _moduleWrapper$curren41;
|
|
373
|
-
|
|
374
|
-
return (_moduleWrapper$curren41 = moduleWrapper.current.functions).storageSetItem.apply(_moduleWrapper$curren41, arguments);
|
|
249
|
+
export const storageSetItem = function () {
|
|
250
|
+
return moduleWrapper.current.functions.storageSetItem(...arguments);
|
|
375
251
|
};
|
|
376
252
|
/**
|
|
377
253
|
* This method lets a smartphone vibrate for the given time.
|
|
378
254
|
*/
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
var _moduleWrapper$curren42;
|
|
382
|
-
|
|
383
|
-
return (_moduleWrapper$curren42 = moduleWrapper.current.functions).vibrate.apply(_moduleWrapper$curren42, arguments);
|
|
255
|
+
export const vibrate = function () {
|
|
256
|
+
return moduleWrapper.current.functions.vibrate(...arguments);
|
|
384
257
|
};
|
|
385
258
|
/**
|
|
386
259
|
* Displays an overlay
|
|
387
260
|
*/
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
var _moduleWrapper$curren43;
|
|
391
|
-
|
|
392
|
-
return (_moduleWrapper$curren43 = moduleWrapper.current.functions).setOverlay.apply(_moduleWrapper$curren43, arguments);
|
|
261
|
+
export const setOverlay = function () {
|
|
262
|
+
return moduleWrapper.current.functions.setOverlay(...arguments);
|
|
393
263
|
};
|
|
394
264
|
/**
|
|
395
265
|
* Returns user information, only when user is logged in
|
|
396
266
|
* @category User functions
|
|
397
267
|
*/
|
|
398
|
-
|
|
399
|
-
export
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
export
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
export
|
|
406
|
-
|
|
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
|
-
|
|
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
|
});
|