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