chayns-api 2.1.3-3 → 2.1.5

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 (188) hide show
  1. package/.babelrc +31 -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 +67 -67
  7. package/dist/cjs/calls/dialogs/chaynsDialog.js +0 -2
  8. package/dist/cjs/calls/dialogs/communication.js +0 -2
  9. package/dist/cjs/calls/dialogs/confirm.js +0 -1
  10. package/dist/cjs/calls/dialogs/date.js +0 -50
  11. package/dist/cjs/calls/dialogs/iFrame.js +1 -1
  12. package/dist/cjs/calls/index.js +1 -162
  13. package/dist/cjs/calls/sendMessage.js +0 -12
  14. package/dist/cjs/calls/visibilityChangeListener.js +0 -7
  15. package/dist/cjs/components/AppDialogWrapper.js +3 -3
  16. package/dist/cjs/components/ChaynsContext.js +1 -1
  17. package/dist/cjs/components/ChaynsProvider.js +6 -10
  18. package/dist/cjs/components/ErrorBoundary.js +1 -1
  19. package/dist/cjs/components/WaitUntil.js +0 -2
  20. package/dist/cjs/components/withCompatMode.js +9 -13
  21. package/dist/cjs/components/withHydrationBoundary.js +2 -2
  22. package/dist/cjs/constants/hydrationContext.js +1 -3
  23. package/dist/cjs/constants/languages.js +1 -1
  24. package/dist/cjs/handler/DialogHandler.js +0 -4
  25. package/dist/cjs/hooks/geoLocationListener.js +0 -7
  26. package/dist/cjs/hooks/scrollListener.js +0 -14
  27. package/dist/cjs/hooks/useAccessToken.js +0 -4
  28. package/dist/cjs/hooks/useCurrentPage.js +0 -3
  29. package/dist/cjs/hooks/useCustomCallbackFunction.js +0 -4
  30. package/dist/cjs/hooks/useCustomData.js +0 -3
  31. package/dist/cjs/hooks/useDevice.js +0 -3
  32. package/dist/cjs/hooks/useDialogState.js +0 -7
  33. package/dist/cjs/hooks/useEnvironment.js +0 -3
  34. package/dist/cjs/hooks/useFunctions.js +0 -3
  35. package/dist/cjs/hooks/useIsAdminMode.js +0 -3
  36. package/dist/cjs/hooks/useLanguage.js +0 -3
  37. package/dist/cjs/hooks/usePages.js +0 -6
  38. package/dist/cjs/hooks/useParameters.js +0 -3
  39. package/dist/cjs/hooks/useSite.js +0 -3
  40. package/dist/cjs/hooks/useUser.js +0 -3
  41. package/dist/cjs/hooks/useValues.js +0 -3
  42. package/dist/cjs/hooks/windowMetricsListener.js +0 -7
  43. package/dist/cjs/host/ChaynsHost.js +3 -4
  44. package/dist/cjs/host/iframe/HostIframe.js +4 -23
  45. package/dist/cjs/host/module/ModuleHost.js +5 -9
  46. package/dist/cjs/host/module/utils/loadComponent.js +4 -5
  47. package/dist/cjs/index.js +1 -1
  48. package/dist/cjs/types/IChaynsReact.js +39 -46
  49. package/dist/cjs/util/appCall.js +0 -2
  50. package/dist/cjs/util/deviceHelper.js +0 -4
  51. package/dist/cjs/util/heightHelper.js +1 -1
  52. package/dist/cjs/util/initModuleFederationSharing.js +2 -6
  53. package/dist/cjs/util/postIframeForm.js +0 -1
  54. package/dist/cjs/util/transferNestedFunctions.js +0 -3
  55. package/dist/cjs/wrapper/AppWrapper.js +6 -20
  56. package/dist/cjs/wrapper/FrameWrapper.js +2 -7
  57. package/dist/cjs/wrapper/ModuleFederationWrapper.js +1 -3
  58. package/dist/cjs/wrapper/StaticChaynsApi.js +1 -1
  59. package/dist/esm/calls/dialogs/chaynsDialog.js +0 -2
  60. package/dist/esm/calls/dialogs/communication.js +0 -2
  61. package/dist/esm/calls/dialogs/confirm.js +0 -1
  62. package/dist/esm/calls/dialogs/date.js +0 -51
  63. package/dist/esm/calls/dialogs/iFrame.js +1 -1
  64. package/dist/esm/calls/index.js +1 -162
  65. package/dist/esm/calls/sendMessage.js +0 -12
  66. package/dist/esm/calls/visibilityChangeListener.js +0 -7
  67. package/dist/esm/components/AppDialogWrapper.js +2 -2
  68. package/dist/esm/components/ChaynsContext.js +1 -1
  69. package/dist/esm/components/ChaynsProvider.js +5 -10
  70. package/dist/esm/components/WaitUntil.js +0 -2
  71. package/dist/esm/components/withCompatMode.js +8 -14
  72. package/dist/esm/components/withHydrationBoundary.js +2 -2
  73. package/dist/esm/constants/hydrationContext.js +1 -3
  74. package/dist/esm/constants/languages.js +1 -1
  75. package/dist/esm/handler/DialogHandler.js +1 -5
  76. package/dist/esm/hooks/geoLocationListener.js +0 -7
  77. package/dist/esm/hooks/scrollListener.js +0 -14
  78. package/dist/esm/hooks/useAccessToken.js +0 -5
  79. package/dist/esm/hooks/useCurrentPage.js +0 -4
  80. package/dist/esm/hooks/useCustomCallbackFunction.js +0 -5
  81. package/dist/esm/hooks/useCustomData.js +0 -4
  82. package/dist/esm/hooks/useDevice.js +0 -3
  83. package/dist/esm/hooks/useDialogState.js +0 -8
  84. package/dist/esm/hooks/useEnvironment.js +0 -3
  85. package/dist/esm/hooks/useFunctions.js +0 -4
  86. package/dist/esm/hooks/useIsAdminMode.js +0 -3
  87. package/dist/esm/hooks/useLanguage.js +0 -3
  88. package/dist/esm/hooks/usePages.js +0 -6
  89. package/dist/esm/hooks/useParameters.js +0 -3
  90. package/dist/esm/hooks/useSite.js +0 -3
  91. package/dist/esm/hooks/useUser.js +0 -3
  92. package/dist/esm/hooks/useValues.js +0 -4
  93. package/dist/esm/hooks/windowMetricsListener.js +0 -7
  94. package/dist/esm/host/ChaynsHost.js +2 -3
  95. package/dist/esm/host/iframe/HostIframe.js +3 -22
  96. package/dist/esm/host/module/ModuleHost.js +4 -8
  97. package/dist/esm/host/module/utils/loadComponent.js +3 -4
  98. package/dist/esm/types/IChaynsReact.js +39 -49
  99. package/dist/esm/util/appCall.js +0 -2
  100. package/dist/esm/util/deviceHelper.js +0 -4
  101. package/dist/esm/util/initModuleFederationSharing.js +1 -5
  102. package/dist/esm/util/postIframeForm.js +0 -1
  103. package/dist/esm/util/transferNestedFunctions.js +0 -2
  104. package/dist/esm/wrapper/AppWrapper.js +6 -20
  105. package/dist/esm/wrapper/FrameWrapper.js +2 -6
  106. package/dist/esm/wrapper/ModuleFederationWrapper.js +1 -3
  107. package/dist/esm/wrapper/SsrWrapper.js +1 -1
  108. package/dist/esm/wrapper/StaticChaynsApi.js +1 -1
  109. package/dist/types/calls/dialogs/alert.d.ts +1 -1
  110. package/dist/types/calls/dialogs/chaynsDialog.d.ts +24 -24
  111. package/dist/types/calls/dialogs/close.d.ts +1 -1
  112. package/dist/types/calls/dialogs/communication.d.ts +3 -3
  113. package/dist/types/calls/dialogs/confirm.d.ts +13 -13
  114. package/dist/types/calls/dialogs/date.d.ts +96 -96
  115. package/dist/types/calls/dialogs/dropUpAlert.d.ts +5 -5
  116. package/dist/types/calls/dialogs/fileSelect.d.ts +16 -16
  117. package/dist/types/calls/dialogs/iFrame.d.ts +10 -10
  118. package/dist/types/calls/dialogs/index.d.ts +14 -14
  119. package/dist/types/calls/dialogs/input.d.ts +15 -15
  120. package/dist/types/calls/dialogs/mediaSelect.d.ts +8 -8
  121. package/dist/types/calls/dialogs/open.d.ts +1 -1
  122. package/dist/types/calls/dialogs/select.d.ts +6 -6
  123. package/dist/types/calls/dialogs/signature.d.ts +7 -7
  124. package/dist/types/calls/dialogs/toast.d.ts +1 -1
  125. package/dist/types/calls/dialogs/utils/callback.d.ts +1 -1
  126. package/dist/types/calls/dialogs/utils/is.d.ts +4 -4
  127. package/dist/types/calls/getUserInfo.d.ts +9 -9
  128. package/dist/types/calls/index.d.ts +255 -255
  129. package/dist/types/calls/sendMessage.d.ts +13 -13
  130. package/dist/types/calls/visibilityChangeListener.d.ts +9 -9
  131. package/dist/types/components/AppDialogWrapper.d.ts +5 -5
  132. package/dist/types/components/ChaynsContext.d.ts +3 -3
  133. package/dist/types/components/ChaynsProvider.d.ts +11 -11
  134. package/dist/types/components/ErrorBoundary.d.ts +13 -13
  135. package/dist/types/components/WaitUntil.d.ts +7 -7
  136. package/dist/types/components/moduleWrapper.d.ts +4 -4
  137. package/dist/types/components/withCompatMode.d.ts +43 -43
  138. package/dist/types/components/withHydrationBoundary.d.ts +24 -24
  139. package/dist/types/constants/hydrationContext.d.ts +6 -6
  140. package/dist/types/constants/index.d.ts +1 -1
  141. package/dist/types/constants/languages.d.ts +12 -12
  142. package/dist/types/handler/DialogHandler.d.ts +24 -24
  143. package/dist/types/helper/apiListenerHelper.d.ts +6 -6
  144. package/dist/types/hooks/context.d.ts +3 -3
  145. package/dist/types/hooks/geoLocationListener.d.ts +18 -18
  146. package/dist/types/hooks/index.d.ts +18 -18
  147. package/dist/types/hooks/scrollListener.d.ts +28 -28
  148. package/dist/types/hooks/useAccessToken.d.ts +6 -6
  149. package/dist/types/hooks/useCurrentPage.d.ts +5 -5
  150. package/dist/types/hooks/useCustomCallbackFunction.d.ts +5 -5
  151. package/dist/types/hooks/useCustomData.d.ts +4 -4
  152. package/dist/types/hooks/useDevice.d.ts +5 -5
  153. package/dist/types/hooks/useDialogState.d.ts +9 -9
  154. package/dist/types/hooks/useEnvironment.d.ts +5 -5
  155. package/dist/types/hooks/useFunctions.d.ts +4 -4
  156. package/dist/types/hooks/useIsAdminMode.d.ts +4 -4
  157. package/dist/types/hooks/useLanguage.d.ts +5 -5
  158. package/dist/types/hooks/usePages.d.ts +18 -18
  159. package/dist/types/hooks/useParameters.d.ts +5 -5
  160. package/dist/types/hooks/useSite.d.ts +5 -5
  161. package/dist/types/hooks/useUser.d.ts +5 -5
  162. package/dist/types/hooks/useValues.d.ts +4 -4
  163. package/dist/types/hooks/windowMetricsListener.d.ts +11 -11
  164. package/dist/types/host/ChaynsHost.d.ts +29 -29
  165. package/dist/types/host/iframe/HostIframe.d.ts +26 -26
  166. package/dist/types/host/iframe/utils/useUpdateData.d.ts +3 -3
  167. package/dist/types/host/module/ModuleHost.d.ts +28 -28
  168. package/dist/types/host/module/utils/loadComponent.d.ts +3 -3
  169. package/dist/types/index.d.ts +20 -20
  170. package/dist/types/types/IChaynsReact.d.ts +898 -899
  171. package/dist/types/types/dialog.d.ts +41 -41
  172. package/dist/types/util/appCall.d.ts +2 -2
  173. package/dist/types/util/bindChaynsApi.d.ts +1 -1
  174. package/dist/types/util/deviceHelper.d.ts +9 -9
  175. package/dist/types/util/heightHelper.d.ts +1 -1
  176. package/dist/types/util/initModuleFederationSharing.d.ts +3 -3
  177. package/dist/types/util/is.d.ts +5 -5
  178. package/dist/types/util/postIframeForm.d.ts +1 -1
  179. package/dist/types/util/transferNestedFunctions.d.ts +1 -1
  180. package/dist/types/util/url.d.ts +1 -1
  181. package/dist/types/wrapper/AppWrapper.d.ts +22 -22
  182. package/dist/types/wrapper/FrameWrapper.d.ts +18 -18
  183. package/dist/types/wrapper/ModuleFederationWrapper.d.ts +13 -13
  184. package/dist/types/wrapper/SsrWrapper.d.ts +14 -14
  185. package/dist/types/wrapper/StaticChaynsApi.d.ts +16 -16
  186. package/package.json +88 -88
  187. package/toolkit.config.js +20 -20
  188. package/tsconfig.json +56 -56
@@ -1,10 +1,10 @@
1
- export let DateType = /*#__PURE__*/function (DateType) {
1
+ export let DateType = function (DateType) {
2
2
  DateType[DateType["DATE"] = 0] = "DATE";
3
3
  DateType[DateType["TIME"] = 1] = "TIME";
4
4
  DateType[DateType["DATE_TIME"] = 2] = "DATE_TIME";
5
5
  return DateType;
6
6
  }({});
7
- export let WeekDayType = /*#__PURE__*/function (WeekDayType) {
7
+ export let WeekDayType = function (WeekDayType) {
8
8
  WeekDayType[WeekDayType["SUNDAY"] = 0] = "SUNDAY";
9
9
  WeekDayType[WeekDayType["MONDAY"] = 1] = "MONDAY";
10
10
  WeekDayType[WeekDayType["TUESDAY"] = 2] = "TUESDAY";
@@ -14,14 +14,14 @@ export let WeekDayType = /*#__PURE__*/function (WeekDayType) {
14
14
  WeekDayType[WeekDayType["SATURDAY"] = 6] = "SATURDAY";
15
15
  return WeekDayType;
16
16
  }({});
17
- export let ToastType = /*#__PURE__*/function (ToastType) {
17
+ export let ToastType = function (ToastType) {
18
18
  ToastType[ToastType["NEUTRAL"] = 1] = "NEUTRAL";
19
19
  ToastType[ToastType["SUCCESS"] = 2] = "SUCCESS";
20
20
  ToastType[ToastType["WARNING"] = 3] = "WARNING";
21
21
  ToastType[ToastType["ERROR"] = 4] = "ERROR";
22
22
  return ToastType;
23
23
  }({});
24
- export let DialogInputType = /*#__PURE__*/function (DialogInputType) {
24
+ export let DialogInputType = function (DialogInputType) {
25
25
  DialogInputType["NUMBER"] = "number";
26
26
  DialogInputType["PASSWORD"] = "password";
27
27
  DialogInputType["TELEPHONE"] = "tel";
@@ -29,20 +29,20 @@ export let DialogInputType = /*#__PURE__*/function (DialogInputType) {
29
29
  DialogInputType["TEXTAREA"] = "textarea";
30
30
  return DialogInputType;
31
31
  }({});
32
- export let DialogSelectType = /*#__PURE__*/function (DialogSelectType) {
32
+ export let DialogSelectType = function (DialogSelectType) {
33
33
  DialogSelectType[DialogSelectType["DEFAULT"] = 0] = "DEFAULT";
34
34
  DialogSelectType[DialogSelectType["ICON"] = 1] = "ICON";
35
35
  DialogSelectType[DialogSelectType["IMAGE"] = 2] = "IMAGE";
36
36
  DialogSelectType[DialogSelectType["SIMPLE"] = 3] = "SIMPLE";
37
37
  return DialogSelectType;
38
38
  }({});
39
- export let DialogButtonType = /*#__PURE__*/function (DialogButtonType) {
39
+ export let DialogButtonType = function (DialogButtonType) {
40
40
  DialogButtonType[DialogButtonType["OK"] = 1] = "OK";
41
41
  DialogButtonType[DialogButtonType["CANCEL"] = -1] = "CANCEL";
42
42
  DialogButtonType[DialogButtonType["NEGATIVE"] = 0] = "NEGATIVE";
43
43
  return DialogButtonType;
44
44
  }({});
45
- export let ScreenSize = /*#__PURE__*/function (ScreenSize) {
45
+ export let ScreenSize = function (ScreenSize) {
46
46
  ScreenSize[ScreenSize["XS"] = 0] = "XS";
47
47
  ScreenSize[ScreenSize["SM"] = 1] = "SM";
48
48
  ScreenSize[ScreenSize["MD"] = 2] = "MD";
@@ -50,34 +50,25 @@ export let ScreenSize = /*#__PURE__*/function (ScreenSize) {
50
50
  ScreenSize[ScreenSize["XL"] = 4] = "XL";
51
51
  return ScreenSize;
52
52
  }({});
53
-
54
- /**
55
- * @ignore
56
- */
57
-
58
- /**
59
- * @ignore
60
- */
61
-
62
- export let AccessMode = /*#__PURE__*/function (AccessMode) {
53
+ export let AccessMode = function (AccessMode) {
63
54
  AccessMode[AccessMode["public"] = 0] = "public";
64
55
  AccessMode[AccessMode["protected"] = 1] = "protected";
65
56
  AccessMode[AccessMode["private"] = 2] = "private";
66
57
  return AccessMode;
67
58
  }({});
68
- export let ScanQrCodeCodeType = /*#__PURE__*/function (ScanQrCodeCodeType) {
59
+ export let ScanQrCodeCodeType = function (ScanQrCodeCodeType) {
69
60
  ScanQrCodeCodeType[ScanQrCodeCodeType["QR"] = 0] = "QR";
70
61
  ScanQrCodeCodeType[ScanQrCodeCodeType["BARCODE"] = 0] = "BARCODE";
71
62
  ScanQrCodeCodeType[ScanQrCodeCodeType["ALL"] = 2] = "ALL";
72
63
  return ScanQrCodeCodeType;
73
64
  }({});
74
- export let ScanQrCodeCameraTypes = /*#__PURE__*/function (ScanQrCodeCameraTypes) {
65
+ export let ScanQrCodeCameraTypes = function (ScanQrCodeCameraTypes) {
75
66
  ScanQrCodeCameraTypes[ScanQrCodeCameraTypes["AUTO"] = 0] = "AUTO";
76
67
  ScanQrCodeCameraTypes[ScanQrCodeCameraTypes["BACK"] = 1] = "BACK";
77
68
  ScanQrCodeCameraTypes[ScanQrCodeCameraTypes["FRONT"] = 2] = "FRONT";
78
69
  return ScanQrCodeCameraTypes;
79
70
  }({});
80
- var IOSFeedbackVibration = /*#__PURE__*/function (IOSFeedbackVibration) {
71
+ var IOSFeedbackVibration = function (IOSFeedbackVibration) {
81
72
  IOSFeedbackVibration[IOSFeedbackVibration["Unknown"] = 0] = "Unknown";
82
73
  IOSFeedbackVibration[IOSFeedbackVibration["SelectionChanged"] = 1] = "SelectionChanged";
83
74
  IOSFeedbackVibration[IOSFeedbackVibration["NotificationError"] = 2] = "NotificationError";
@@ -90,8 +81,7 @@ var IOSFeedbackVibration = /*#__PURE__*/function (IOSFeedbackVibration) {
90
81
  IOSFeedbackVibration[IOSFeedbackVibration["Rigid"] = 9] = "Rigid";
91
82
  return IOSFeedbackVibration;
92
83
  }(IOSFeedbackVibration || {});
93
- // region design settings
94
- var SnapshotType = /*#__PURE__*/function (SnapshotType) {
84
+ var SnapshotType = function (SnapshotType) {
95
85
  SnapshotType["Background"] = "background";
96
86
  SnapshotType["Settings"] = "settings";
97
87
  SnapshotType["ColorScheme"] = "colorScheme";
@@ -99,14 +89,14 @@ var SnapshotType = /*#__PURE__*/function (SnapshotType) {
99
89
  SnapshotType["Tapp"] = "tapp";
100
90
  return SnapshotType;
101
91
  }(SnapshotType || {});
102
- var DesignSettingsUpdateBackgroundType = /*#__PURE__*/function (DesignSettingsUpdateBackgroundType) {
92
+ var DesignSettingsUpdateBackgroundType = function (DesignSettingsUpdateBackgroundType) {
103
93
  DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["None"] = 0] = "None";
104
94
  DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["Image"] = 1] = "Image";
105
95
  DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["Video"] = 2] = "Video";
106
96
  DesignSettingsUpdateBackgroundType[DesignSettingsUpdateBackgroundType["Color"] = 3] = "Color";
107
97
  return DesignSettingsUpdateBackgroundType;
108
98
  }(DesignSettingsUpdateBackgroundType || {});
109
- var DesignSettingsUpdateSeasonTypes = /*#__PURE__*/function (DesignSettingsUpdateSeasonTypes) {
99
+ var DesignSettingsUpdateSeasonTypes = function (DesignSettingsUpdateSeasonTypes) {
110
100
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["None"] = 0] = "None";
111
101
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Snowm"] = 1] = "Snowm";
112
102
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Confetti"] = 2] = "Confetti";
@@ -118,14 +108,14 @@ var DesignSettingsUpdateSeasonTypes = /*#__PURE__*/function (DesignSettingsUpdat
118
108
  DesignSettingsUpdateSeasonTypes[DesignSettingsUpdateSeasonTypes["Coins"] = 8] = "Coins";
119
109
  return DesignSettingsUpdateSeasonTypes;
120
110
  }(DesignSettingsUpdateSeasonTypes || {});
121
- var DesignSettingsUpdateGalleryAnimationTypes = /*#__PURE__*/function (DesignSettingsUpdateGalleryAnimationTypes) {
111
+ var DesignSettingsUpdateGalleryAnimationTypes = function (DesignSettingsUpdateGalleryAnimationTypes) {
122
112
  DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["Swipe"] = 0] = "Swipe";
123
113
  DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["Fade"] = 1] = "Fade";
124
114
  DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["Parallax"] = 2] = "Parallax";
125
115
  DesignSettingsUpdateGalleryAnimationTypes[DesignSettingsUpdateGalleryAnimationTypes["KenBurns"] = 3] = "KenBurns";
126
116
  return DesignSettingsUpdateGalleryAnimationTypes;
127
117
  }(DesignSettingsUpdateGalleryAnimationTypes || {});
128
- var DesignSettingsUpdateCoverTypes = /*#__PURE__*/function (DesignSettingsUpdateCoverTypes) {
118
+ var DesignSettingsUpdateCoverTypes = function (DesignSettingsUpdateCoverTypes) {
129
119
  DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Image"] = 0] = "Image";
130
120
  DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Video"] = 1] = "Video";
131
121
  DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["Slideshow"] = 2] = "Slideshow";
@@ -133,21 +123,21 @@ var DesignSettingsUpdateCoverTypes = /*#__PURE__*/function (DesignSettingsUpdate
133
123
  DesignSettingsUpdateCoverTypes[DesignSettingsUpdateCoverTypes["None"] = 4] = "None";
134
124
  return DesignSettingsUpdateCoverTypes;
135
125
  }(DesignSettingsUpdateCoverTypes || {});
136
- var DesignSettingsUpdateColorSchemeMode = /*#__PURE__*/function (DesignSettingsUpdateColorSchemeMode) {
126
+ var DesignSettingsUpdateColorSchemeMode = function (DesignSettingsUpdateColorSchemeMode) {
137
127
  DesignSettingsUpdateColorSchemeMode[DesignSettingsUpdateColorSchemeMode["Normal"] = 0] = "Normal";
138
128
  DesignSettingsUpdateColorSchemeMode[DesignSettingsUpdateColorSchemeMode["Dark"] = 1] = "Dark";
139
129
  DesignSettingsUpdateColorSchemeMode[DesignSettingsUpdateColorSchemeMode["Bright"] = 2] = "Bright";
140
130
  return DesignSettingsUpdateColorSchemeMode;
141
131
  }(DesignSettingsUpdateColorSchemeMode || {});
142
- var DesignSettingsUpdateTappViewModes = /*#__PURE__*/function (DesignSettingsUpdateTappViewModes) {
132
+ var DesignSettingsUpdateTappViewModes = function (DesignSettingsUpdateTappViewModes) {
143
133
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Normal"] = 0] = "Normal";
144
134
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Exclusive"] = 1] = "Exclusive";
145
135
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Wide"] = 2] = "Wide";
146
136
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["Fullscreen"] = 3] = "Fullscreen";
147
137
  DesignSettingsUpdateTappViewModes[DesignSettingsUpdateTappViewModes["FullscreenWithBackground"] = 4] = "FullscreenWithBackground";
148
138
  return DesignSettingsUpdateTappViewModes;
149
- }(DesignSettingsUpdateTappViewModes || {}); // endregion
150
- var LoginState = /*#__PURE__*/function (LoginState) {
139
+ }(DesignSettingsUpdateTappViewModes || {});
140
+ var LoginState = function (LoginState) {
151
141
  LoginState[LoginState["FACEBOOK"] = 0] = "FACEBOOK";
152
142
  LoginState[LoginState["T_WEB"] = 1] = "T_WEB";
153
143
  LoginState[LoginState["LoginFailed"] = 2] = "LoginFailed";
@@ -155,19 +145,19 @@ var LoginState = /*#__PURE__*/function (LoginState) {
155
145
  LoginState[LoginState["SUCCESS"] = 4] = "SUCCESS";
156
146
  return LoginState;
157
147
  }(LoginState || {});
158
- export let FloatingButtonPosition = /*#__PURE__*/function (FloatingButtonPosition) {
148
+ export let FloatingButtonPosition = function (FloatingButtonPosition) {
159
149
  FloatingButtonPosition[FloatingButtonPosition["Right"] = 0] = "Right";
160
150
  FloatingButtonPosition[FloatingButtonPosition["Center"] = 1] = "Center";
161
151
  FloatingButtonPosition[FloatingButtonPosition["Left"] = 2] = "Left";
162
152
  return FloatingButtonPosition;
163
153
  }({});
164
- export let FloatingButtonAnimation = /*#__PURE__*/function (FloatingButtonAnimation) {
154
+ export let FloatingButtonAnimation = function (FloatingButtonAnimation) {
165
155
  FloatingButtonAnimation["None"] = "none";
166
156
  FloatingButtonAnimation["FadeIn"] = "fade-in";
167
157
  FloatingButtonAnimation["Pulse"] = "pulse";
168
158
  return FloatingButtonAnimation;
169
159
  }({});
170
- export let SharingApp = /*#__PURE__*/function (SharingApp) {
160
+ export let SharingApp = function (SharingApp) {
171
161
  SharingApp[SharingApp["Mail"] = 0] = "Mail";
172
162
  SharingApp[SharingApp["WhatsApp"] = 1] = "WhatsApp";
173
163
  SharingApp[SharingApp["Facebook"] = 2] = "Facebook";
@@ -176,7 +166,7 @@ export let SharingApp = /*#__PURE__*/function (SharingApp) {
176
166
  SharingApp[SharingApp["Twitter"] = 5] = "Twitter";
177
167
  return SharingApp;
178
168
  }({});
179
- export let TappEvent = /*#__PURE__*/function (TappEvent) {
169
+ export let TappEvent = function (TappEvent) {
180
170
  TappEvent[TappEvent["OnShow"] = 0] = "OnShow";
181
171
  TappEvent[TappEvent["OnHide"] = 1] = "OnHide";
182
172
  TappEvent[TappEvent["OnRefresh"] = 2] = "OnRefresh";
@@ -184,26 +174,26 @@ export let TappEvent = /*#__PURE__*/function (TappEvent) {
184
174
  TappEvent[TappEvent["OnCloseCcScanner"] = 4] = "OnCloseCcScanner";
185
175
  return TappEvent;
186
176
  }({});
187
- export let IconType = /*#__PURE__*/function (IconType) {
177
+ export let IconType = function (IconType) {
188
178
  IconType[IconType["Font"] = 0] = "Font";
189
179
  IconType[IconType["Base64"] = 1] = "Base64";
190
180
  IconType[IconType["Url"] = 2] = "Url";
191
181
  return IconType;
192
182
  }({});
193
- export let Gender = /*#__PURE__*/function (Gender) {
183
+ export let Gender = function (Gender) {
194
184
  Gender[Gender["Unknown"] = 0] = "Unknown";
195
185
  Gender[Gender["male"] = 1] = "male";
196
186
  Gender[Gender["female"] = 2] = "female";
197
187
  Gender[Gender["diverse"] = 9] = "diverse";
198
188
  return Gender;
199
189
  }({});
200
- export let ColorMode = /*#__PURE__*/function (ColorMode) {
190
+ export let ColorMode = function (ColorMode) {
201
191
  ColorMode[ColorMode["Classic"] = 0] = "Classic";
202
192
  ColorMode[ColorMode["Dark"] = 1] = "Dark";
203
193
  ColorMode[ColorMode["Light"] = 2] = "Light";
204
194
  return ColorMode;
205
195
  }({});
206
- export let Language = /*#__PURE__*/function (Language) {
196
+ export let Language = function (Language) {
207
197
  Language["Unknown"] = "unknown";
208
198
  Language["German"] = "de";
209
199
  Language["English"] = "en";
@@ -217,7 +207,7 @@ export let Language = /*#__PURE__*/function (Language) {
217
207
  Language["Ukrainian"] = "uk";
218
208
  return Language;
219
209
  }({});
220
- export let RuntimeEnviroment = /*#__PURE__*/function (RuntimeEnviroment) {
210
+ export let RuntimeEnviroment = function (RuntimeEnviroment) {
221
211
  RuntimeEnviroment[RuntimeEnviroment["Unknown"] = 0] = "Unknown";
222
212
  RuntimeEnviroment[RuntimeEnviroment["ChaynsDe"] = 1] = "ChaynsDe";
223
213
  RuntimeEnviroment[RuntimeEnviroment["ChaynsWeb"] = 2] = "ChaynsWeb";
@@ -227,7 +217,7 @@ export let RuntimeEnviroment = /*#__PURE__*/function (RuntimeEnviroment) {
227
217
  RuntimeEnviroment[RuntimeEnviroment["Dialog"] = 6] = "Dialog";
228
218
  return RuntimeEnviroment;
229
219
  }({});
230
- export let DeviceOs = /*#__PURE__*/function (DeviceOs) {
220
+ export let DeviceOs = function (DeviceOs) {
231
221
  DeviceOs["Unknown"] = "unknown";
232
222
  DeviceOs["Android"] = "android";
233
223
  DeviceOs["IOS"] = "ios";
@@ -236,7 +226,7 @@ export let DeviceOs = /*#__PURE__*/function (DeviceOs) {
236
226
  DeviceOs["Linux"] = "linux";
237
227
  return DeviceOs;
238
228
  }({});
239
- export let AppName = /*#__PURE__*/function (AppName) {
229
+ export let AppName = function (AppName) {
240
230
  AppName[AppName["Unknown"] = 0] = "Unknown";
241
231
  AppName[AppName["David"] = 1] = "David";
242
232
  AppName[AppName["Chayns"] = 2] = "Chayns";
@@ -248,7 +238,7 @@ export let AppName = /*#__PURE__*/function (AppName) {
248
238
  AppName[AppName["Team"] = 8] = "Team";
249
239
  return AppName;
250
240
  }({});
251
- export let BrowserName = /*#__PURE__*/function (BrowserName) {
241
+ export let BrowserName = function (BrowserName) {
252
242
  BrowserName["Unknown"] = "unknown";
253
243
  BrowserName["Chrome"] = "chrome";
254
244
  BrowserName["Safari"] = "safari";
@@ -256,14 +246,14 @@ export let BrowserName = /*#__PURE__*/function (BrowserName) {
256
246
  BrowserName["Edge"] = "edge";
257
247
  return BrowserName;
258
248
  }({});
259
- export let Environment = /*#__PURE__*/function (Environment) {
249
+ export let Environment = function (Environment) {
260
250
  Environment[Environment["Development"] = 0] = "Development";
261
251
  Environment[Environment["Qa"] = 1] = "Qa";
262
252
  Environment[Environment["Staging"] = 2] = "Staging";
263
253
  Environment[Environment["Production"] = 3] = "Production";
264
254
  return Environment;
265
255
  }({});
266
- export let Font = /*#__PURE__*/function (Font) {
256
+ export let Font = function (Font) {
267
257
  Font[Font["Unknown"] = 0] = "Unknown";
268
258
  Font[Font["Roboto"] = 1] = "Roboto";
269
259
  Font[Font["OpenSans"] = 2] = "OpenSans";
@@ -294,12 +284,12 @@ export let Font = /*#__PURE__*/function (Font) {
294
284
  Font[Font["Inter"] = 27] = "Inter";
295
285
  return Font;
296
286
  }({});
297
- var selectType = /*#__PURE__*/function (selectType) {
287
+ var selectType = function (selectType) {
298
288
  selectType[selectType["DEFAULT"] = 0] = "DEFAULT";
299
289
  selectType[selectType["ICON"] = 1] = "ICON";
300
290
  return selectType;
301
291
  }(selectType || {});
302
- export let DialogType = /*#__PURE__*/function (DialogType) {
292
+ export let DialogType = function (DialogType) {
303
293
  DialogType["ALERT"] = "alert";
304
294
  DialogType["CONFIRM"] = "confirm";
305
295
  DialogType["DATE"] = "date";
@@ -312,16 +302,16 @@ export let DialogType = /*#__PURE__*/function (DialogType) {
312
302
  DialogType["SIGNATURE"] = "signature";
313
303
  return DialogType;
314
304
  }({});
315
- export let MediaType = /*#__PURE__*/function (MediaType) {
305
+ export let MediaType = function (MediaType) {
316
306
  MediaType["IMAGE"] = "image";
317
307
  MediaType["VIDEO"] = "video";
318
308
  return MediaType;
319
309
  }({});
320
- export let DialogAnimation = /*#__PURE__*/function (DialogAnimation) {
310
+ export let DialogAnimation = function (DialogAnimation) {
321
311
  DialogAnimation["CONFETTI"] = "confetti";
322
312
  return DialogAnimation;
323
313
  }({});
324
- export let DialogIconType = /*#__PURE__*/function (DialogIconType) {
314
+ export let DialogIconType = function (DialogIconType) {
325
315
  DialogIconType["SuccessIcon"] = "%%DialogSuccessIcon%%";
326
316
  DialogIconType["WarningIcon"] = "%%DialogWarningIcon%%";
327
317
  DialogIconType["ErrorIcon"] = "%%DialogErrorIcon%%";
@@ -1,5 +1,3 @@
1
- // @ts-nocheck
2
-
3
1
  const invokeAppCall = call => {
4
2
  var _window$webkit, _window$chaynsApp, _window$chaynsElectro;
5
3
  call = JSON.stringify(call);
@@ -44,21 +44,17 @@ const getDeviceInfo = function (userAgent, acceptHeader) {
44
44
  };
45
45
  result.imei = imei;
46
46
  result.engine = uaParser.getEngine();
47
- // TODO: breaking change on next minor and use object with name and version
48
47
  result.os = ((_uaParser$getOS = uaParser.getOS()) === null || _uaParser$getOS === void 0 ? void 0 : _uaParser$getOS.name) === 'Android' ? 'Android OS' : (_uaParser$getOS2 = uaParser.getOS()) === null || _uaParser$getOS2 === void 0 ? void 0 : _uaParser$getOS2.name;
49
48
  result.osVersion = (_uaParser$getOS3 = uaParser.getOS()) === null || _uaParser$getOS3 === void 0 ? void 0 : _uaParser$getOS3.version;
50
49
  if (typeof window !== 'undefined') {
51
50
  result.screenSize = getScreenSize(window.innerWidth);
52
51
  result.isTouch = getClientDeviceInfo().isTouch;
53
52
  } else {
54
- // estimate size over user agent, very inaccurate, could be improved by setting a cookie with the screensize
55
53
  const screenSizeByUA = /mobi/i.test(userAgent) ? ScreenSize.SM : ScreenSize.XL;
56
54
  result.screenSize = appName !== AppName.Unknown ? ScreenSize.XS : screenSizeByUA;
57
55
  }
58
56
  return result;
59
57
  };
60
-
61
- // Infos that are only available on client or iframe side
62
58
  export const getClientDeviceInfo = () => ({
63
59
  isTouch: navigator.maxTouchPoints > 0 && window.matchMedia('(pointer: coarse)').matches
64
60
  });
@@ -3,14 +3,11 @@ import ReactDOM from 'react-dom';
3
3
  let ReactDOMClient;
4
4
  try {
5
5
  ReactDOMClient = require('react-dom/client');
6
- } catch (e) {
7
- // do nothing
8
- }
6
+ } catch (e) {}
9
7
  export const initModuleFederationSharing = _ref => {
10
8
  let {
11
9
  name
12
10
  } = _ref;
13
- // forces single instance of module federation runtime
14
11
  if (globalThis.moduleFederationRuntime) {
15
12
  return;
16
13
  }
@@ -31,7 +28,6 @@ export const initModuleFederationSharing = _ref => {
31
28
  },
32
29
  'react-dom': {
33
30
  version: React.version,
34
- // intended, because react dom.version is not identical to package json react version (hash in version)
35
31
  scope: 'chayns-api',
36
32
  lib: () => ReactDOM
37
33
  }
@@ -1,5 +1,4 @@
1
1
  export default async function postIframeForm(url, value, fieldName, frameId) {
2
- // ToDo: Maybe remove this
3
2
  await new Promise(resolve => {
4
3
  setTimeout(resolve, 10);
5
4
  });
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  import * as Comlink from 'comlink';
3
2
  Comlink.transferHandlers.set("FUNCTION", {
4
3
  canHandle: obj => {
@@ -24,7 +23,6 @@ Comlink.transferHandlers.set("FUNCTION", {
24
23
  },
25
24
  deserialize(obj) {
26
25
  obj._functionKeys.forEach(x => {
27
- // under certain conditions deserialize can be called more than once on same object
28
26
  if (obj[x] instanceof MessagePort) {
29
27
  obj[x].start();
30
28
  obj[x] = Comlink.wrap(obj[x]);
@@ -1,9 +1,6 @@
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; }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
2
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
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); }
4
- /* eslint-disable */
5
- // @ts-nocheck
6
-
7
4
  import throttle from 'lodash.throttle';
8
5
  import DialogHandler from '../handler/DialogHandler';
9
6
  import { Environment, Font, Gender, IconType, RuntimeEnviroment, TappEvent } from '../types/IChaynsReact';
@@ -37,9 +34,7 @@ export class AppWrapper {
37
34
  if (tappId) {
38
35
  try {
39
36
  tappId = Number.parseInt(tappId, 10);
40
- } catch {
41
- // ignore
42
- }
37
+ } catch {}
43
38
  }
44
39
  let language = AppInfo.Language;
45
40
  if (!language) {
@@ -55,9 +50,7 @@ export class AppWrapper {
55
50
  if (typeof userId === 'string') {
56
51
  try {
57
52
  userId = Number.parseInt(userId, 10);
58
- } catch {
59
- // ignore
60
- }
53
+ } catch {}
61
54
  }
62
55
  return {
63
56
  device: getDeviceInfo(navigator.userAgent, 'image/webp', {
@@ -345,10 +338,7 @@ export class AppWrapper {
345
338
  const {
346
339
  shouldRemove
347
340
  } = removeApiListener('geoLocationListener', id);
348
- if (shouldRemove) {
349
- // App does not support removal of request geo location call with permanent true which makes this a
350
- // no-op
351
- }
341
+ if (shouldRemove) {}
352
342
  },
353
343
  removeScrollListener: async id => {
354
344
  const {
@@ -363,17 +353,13 @@ export class AppWrapper {
363
353
  const {
364
354
  shouldRemove
365
355
  } = removeApiListener('visibilityChangeListener', id);
366
- if (shouldRemove) {
367
- // App does not support removal of onActivate callback which makes this a no-op
368
- }
356
+ if (shouldRemove) {}
369
357
  },
370
358
  removeToolbarChangeListener: async id => {
371
359
  const {
372
360
  shouldRemove
373
361
  } = removeApiListener('toolbarChangeListener', id);
374
- if (shouldRemove) {
375
- // App does not support removal of onToolbarBarRemove callback which makes this a no-op
376
- }
362
+ if (shouldRemove) {}
377
363
  },
378
364
  removeWindowMetricsListener: async id => {
379
365
  const shouldRemove = removeApiListener('windowMetricsListener', id);
@@ -1,7 +1,6 @@
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; }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
2
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
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); }
4
- /* eslint-disable @typescript-eslint/no-non-null-assertion */
5
4
  import * as comlink from 'comlink';
6
5
  import DialogHandler from '../handler/DialogHandler';
7
6
  import { addVisibilityChangeListener, removeVisibilityChangeListener } from '../calls/visibilityChangeListener';
@@ -193,7 +192,6 @@ export class FrameWrapper {
193
192
  callback();
194
193
  }
195
194
  });
196
- // @ts-ignore
197
195
  return this.exposedFunctions.setFloatingButton(value, cb);
198
196
  },
199
197
  setHeight: async value => {
@@ -287,9 +285,7 @@ export class FrameWrapper {
287
285
  if (!this.initialized) await this.ready;
288
286
  const listenerKey = `dialogHostEventListener`;
289
287
  const shouldRemove = removeApiListener(listenerKey, id);
290
- if (shouldRemove) {
291
- // this.exposedFunctions.removeDialogHostEventListener(0);
292
- }
288
+ if (shouldRemove) {}
293
289
  },
294
290
  removeDialogClientEventListener: async () => {},
295
291
  addAnonymousAccount: async () => {
@@ -1,4 +1,4 @@
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; }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
2
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
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); }
4
4
  import DialogHandler from '../handler/DialogHandler';
@@ -26,10 +26,8 @@ export class ModuleFederationWrapper {
26
26
  this.functions.sendMessageToGroup = async (groupId, object) => sendMessageToGroup(this, object, groupId);
27
27
  this.functions.sendMessageToPage = async object => sendMessageToPage(this, object);
28
28
  this.functions.sendMessageToUser = async (userId, object) => sendMessageToUser(this, object, userId);
29
- // make all functions async to be consistent with frame wrapper
30
29
  Object.entries(functions).forEach(_ref => {
31
30
  let [k, fn] = _ref;
32
- // eslint-disable-next-line
33
31
  this.functions[k] = async function () {
34
32
  return fn(...arguments);
35
33
  };
@@ -1,4 +1,4 @@
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; }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
2
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
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); }
4
4
  export class SsrWrapper {
@@ -1,4 +1,4 @@
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; }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
2
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
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); }
4
4
  import { moduleWrapper } from '../components/moduleWrapper';
@@ -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;
@@ -1,13 +1,13 @@
1
- import { DialogButtonOld } from "../../types/dialog";
2
- type Confirm = {
3
- headline?: string;
4
- text?: string;
5
- buttons?: DialogButtonOld[] | {
6
- buttons?: DialogButtonOld[];
7
- links?: DialogButtonOld[];
8
- };
9
- links?: unknown;
10
- select?: unknown;
11
- };
12
- export declare function confirm(title?: string, message?: string, config?: Confirm): Promise<any> | "unsupported";
13
- export {};
1
+ import { DialogButtonOld } from "../../types/dialog";
2
+ type Confirm = {
3
+ headline?: string;
4
+ text?: string;
5
+ buttons?: DialogButtonOld[] | {
6
+ buttons?: DialogButtonOld[];
7
+ links?: DialogButtonOld[];
8
+ };
9
+ links?: unknown;
10
+ select?: unknown;
11
+ };
12
+ export declare function confirm(title?: string, message?: string, config?: Confirm): Promise<any> | "unsupported";
13
+ export {};