chayns-api 1.0.47 → 1.0.48

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