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,96 +1,96 @@
1
- import { DialogButtonOld, DialogTextBlock, IntervalItem, WeekDayIntervalObject } from "../../types/dialog";
2
- /**
3
- * The config object for date dialog
4
- * @typedef {Object} dateConfig
5
- * @property {Date} preSelect - The date object which should be preselected.
6
- * @property {Date} minDate - The min date which you could select.
7
- * @property {Date} maxDate - The max date which you could select.
8
- * @property {dateDialogType} dateType - The type of dialog you want to display.
9
- * @property {number} minuteIntervall - The interval for special minutes, possible are 2, 3, 4, 5, 6, 12, 15, 20, 30. Default is 1.
10
- * @property {string} message - The message that is displayed above the date dialog, only in apps supported
11
- * @property {string} title - The title that is displayed above the message, only in apps supported
12
- */
13
- /**
14
- * This call will open a date select dialog.
15
- * <div>Call: 30</div>
16
- * @param {dateConfig} config - Define the configuration of this call
17
- * @return {Promise} contains a timestamp as result
18
- * @example chayns.dialog.date({
19
- * 'dateType': chayns.dialog.dateType.DATE_TIME,
20
- * 'preSelect': new Date(2018, 6, 14, 0, 0, 0),
21
- * 'minDate': new Date(2018, 6, 1, 15, 0, 0),
22
- * 'maxDate': new Date(2019, 6, 1, 0, 23, 0),
23
- * 'minuteInterval': 15
24
- * ).then(function (data) {
25
- * console.log(data);
26
- * });
27
- */
28
- type DateConfig = {
29
- title?: string;
30
- message?: string;
31
- buttons?: DialogButtonOld[];
32
- minDate?: Date | number;
33
- maxDate?: Date | number;
34
- minuteInterval?: number;
35
- preSelect?: Date | undefined | number;
36
- multiselect?: boolean;
37
- disabledDates?: Date[] | number[];
38
- textBlocks?: DialogTextBlock[];
39
- yearSelect?: boolean;
40
- monthSelect?: boolean;
41
- interval?: boolean;
42
- minInterval?: number;
43
- maxInterval?: number;
44
- disabledIntervals?: Array<IntervalItem>;
45
- disabledWeekDayIntervals?: Array<WeekDayIntervalObject>[7];
46
- getLocalTime?: boolean;
47
- dateType?: number;
48
- autoSelectDate?: boolean;
49
- };
50
- export declare function date(config?: DateConfig): Promise<any>;
51
- type preSelectObj = {
52
- start?: number | undefined | Date;
53
- end?: number | undefined | Date;
54
- };
55
- type preSelect = preSelectObj | Date | undefined | number | number[];
56
- type AdvancedDateConfig = {
57
- title?: string;
58
- message?: string;
59
- buttons?: DialogButtonOld[];
60
- minDate?: Date | number;
61
- maxDate?: Date | number;
62
- minuteInterval?: number;
63
- preSelect?: preSelect;
64
- multiselect?: boolean;
65
- disabledDates?: Date[] | number[];
66
- textBlocks?: DialogTextBlock[];
67
- yearSelect?: boolean;
68
- monthSelect?: boolean;
69
- interval?: boolean;
70
- minInterval?: number;
71
- maxInterval?: number;
72
- disabledIntervals?: Array<IntervalItem>;
73
- disabledWeekDayIntervals?: Array<WeekDayIntervalObject>[7];
74
- getLocalTime?: boolean;
75
- dateType?: number;
76
- autoSelectDate?: boolean;
77
- };
78
- export declare function advancedDate(config?: AdvancedDateConfig): Promise<unknown>;
79
- /**
80
- * @typedef {number} dateDialogType
81
- */
82
- /**
83
- * Enum for date dialog
84
- * <div>DATE will open a dialog where you can select a special day</div>
85
- * <div>TIME will open a dialog where you can only select a special time</div>
86
- * <div>DATE_TIME will open a dialog where you can select a special time on a special day</div>
87
- * @readonly
88
- * @enum {dateDialogType}
89
- * @type {{DATE: number, TIME: number, DATE_TIME: number}}
90
- */
91
- export declare const dateType: {
92
- DATE: number;
93
- TIME: number;
94
- DATE_TIME: number;
95
- };
96
- export {};
1
+ import { DialogButtonOld, DialogTextBlock, IntervalItem, WeekDayIntervalObject } from "../../types/dialog";
2
+ /**
3
+ * The config object for date dialog
4
+ * @typedef {Object} dateConfig
5
+ * @property {Date} preSelect - The date object which should be preselected.
6
+ * @property {Date} minDate - The min date which you could select.
7
+ * @property {Date} maxDate - The max date which you could select.
8
+ * @property {dateDialogType} dateType - The type of dialog you want to display.
9
+ * @property {number} minuteIntervall - The interval for special minutes, possible are 2, 3, 4, 5, 6, 12, 15, 20, 30. Default is 1.
10
+ * @property {string} message - The message that is displayed above the date dialog, only in apps supported
11
+ * @property {string} title - The title that is displayed above the message, only in apps supported
12
+ */
13
+ /**
14
+ * This call will open a date select dialog.
15
+ * <div>Call: 30</div>
16
+ * @param {dateConfig} config - Define the configuration of this call
17
+ * @return {Promise} contains a timestamp as result
18
+ * @example chayns.dialog.date({
19
+ * 'dateType': chayns.dialog.dateType.DATE_TIME,
20
+ * 'preSelect': new Date(2018, 6, 14, 0, 0, 0),
21
+ * 'minDate': new Date(2018, 6, 1, 15, 0, 0),
22
+ * 'maxDate': new Date(2019, 6, 1, 0, 23, 0),
23
+ * 'minuteInterval': 15
24
+ * ).then(function (data) {
25
+ * console.log(data);
26
+ * });
27
+ */
28
+ type DateConfig = {
29
+ title?: string;
30
+ message?: string;
31
+ buttons?: DialogButtonOld[];
32
+ minDate?: Date | number;
33
+ maxDate?: Date | number;
34
+ minuteInterval?: number;
35
+ preSelect?: Date | undefined | number;
36
+ multiselect?: boolean;
37
+ disabledDates?: Date[] | number[];
38
+ textBlocks?: DialogTextBlock[];
39
+ yearSelect?: boolean;
40
+ monthSelect?: boolean;
41
+ interval?: boolean;
42
+ minInterval?: number;
43
+ maxInterval?: number;
44
+ disabledIntervals?: Array<IntervalItem>;
45
+ disabledWeekDayIntervals?: Array<WeekDayIntervalObject>[7];
46
+ getLocalTime?: boolean;
47
+ dateType?: number;
48
+ autoSelectDate?: boolean;
49
+ };
50
+ export declare function date(config?: DateConfig): Promise<any>;
51
+ type preSelectObj = {
52
+ start?: number | undefined | Date;
53
+ end?: number | undefined | Date;
54
+ };
55
+ type preSelect = preSelectObj | Date | undefined | number | number[];
56
+ type AdvancedDateConfig = {
57
+ title?: string;
58
+ message?: string;
59
+ buttons?: DialogButtonOld[];
60
+ minDate?: Date | number;
61
+ maxDate?: Date | number;
62
+ minuteInterval?: number;
63
+ preSelect?: preSelect;
64
+ multiselect?: boolean;
65
+ disabledDates?: Date[] | number[];
66
+ textBlocks?: DialogTextBlock[];
67
+ yearSelect?: boolean;
68
+ monthSelect?: boolean;
69
+ interval?: boolean;
70
+ minInterval?: number;
71
+ maxInterval?: number;
72
+ disabledIntervals?: Array<IntervalItem>;
73
+ disabledWeekDayIntervals?: Array<WeekDayIntervalObject>[7];
74
+ getLocalTime?: boolean;
75
+ dateType?: number;
76
+ autoSelectDate?: boolean;
77
+ };
78
+ export declare function advancedDate(config?: AdvancedDateConfig): Promise<unknown>;
79
+ /**
80
+ * @typedef {number} dateDialogType
81
+ */
82
+ /**
83
+ * Enum for date dialog
84
+ * <div>DATE will open a dialog where you can select a special day</div>
85
+ * <div>TIME will open a dialog where you can only select a special time</div>
86
+ * <div>DATE_TIME will open a dialog where you can select a special time on a special day</div>
87
+ * @readonly
88
+ * @enum {dateDialogType}
89
+ * @type {{DATE: number, TIME: number, DATE_TIME: number}}
90
+ */
91
+ export declare const dateType: {
92
+ DATE: number;
93
+ TIME: number;
94
+ DATE_TIME: number;
95
+ };
96
+ export {};
@@ -1,5 +1,5 @@
1
- type DropUpAlert = {
2
- callType?: number;
3
- };
4
- export declare function dropUpAlert(dialog?: DropUpAlert): Promise<unknown>;
5
- export {};
1
+ type DropUpAlert = {
2
+ callType?: number;
3
+ };
4
+ export declare function dropUpAlert(dialog?: DropUpAlert): Promise<unknown>;
5
+ export {};
@@ -1,16 +1,16 @@
1
- import { DialogButtonOld } from "../../types/dialog";
2
- export declare const fileType: {
3
- IMAGE: string;
4
- VIDEO: string;
5
- AUDIO: string;
6
- DOCUMENT: string[];
7
- };
8
- type FileSelectInput = {
9
- buttons?: DialogButtonOld[];
10
- callType?: number;
11
- multiselect?: boolean;
12
- directory?: boolean;
13
- chaynsToken?: string;
14
- };
15
- export declare function fileSelect(dialog?: FileSelectInput): Promise<unknown>;
16
- export {};
1
+ import { DialogButtonOld } from "../../types/dialog";
2
+ export declare const fileType: {
3
+ IMAGE: string;
4
+ VIDEO: string;
5
+ AUDIO: string;
6
+ DOCUMENT: string[];
7
+ };
8
+ type FileSelectInput = {
9
+ buttons?: DialogButtonOld[];
10
+ callType?: number;
11
+ multiselect?: boolean;
12
+ directory?: boolean;
13
+ chaynsToken?: string;
14
+ };
15
+ export declare function fileSelect(dialog?: FileSelectInput): Promise<unknown>;
16
+ export {};
@@ -1,10 +1,10 @@
1
- import { DialogButtonOld } from "../../types/dialog";
2
- type iFrameDialog = {
3
- buttons?: DialogButtonOld[];
4
- callType?: number;
5
- tappIframeName?: string;
6
- url: string;
7
- };
8
- export declare function iFrame(dialog?: iFrameDialog): Promise<unknown>;
9
- export declare function _chaynsCallResponder(obj: any): void;
10
- export {};
1
+ import { DialogButtonOld } from "../../types/dialog";
2
+ type iFrameDialog = {
3
+ buttons?: DialogButtonOld[];
4
+ callType?: number;
5
+ tappIframeName?: string;
6
+ url: string;
7
+ };
8
+ export declare function iFrame(dialog?: iFrameDialog): Promise<unknown>;
9
+ export declare function _chaynsCallResponder(obj: any): void;
10
+ export {};
@@ -1,14 +1,14 @@
1
- export { buttonText, buttonType } from './chaynsDialog';
2
- export * from './alert';
3
- export * from './confirm';
4
- export * from './select';
5
- export * from './date';
6
- export * from './input';
7
- export * from './close';
8
- export * from './dropUpAlert';
9
- export * from './iFrame';
10
- export * from './mediaSelect';
11
- export * from './fileSelect';
12
- export * from './communication';
13
- export * from './toast';
14
- export * from './signature';
1
+ export { buttonText, buttonType } from './chaynsDialog';
2
+ export * from './alert';
3
+ export * from './confirm';
4
+ export * from './select';
5
+ export * from './date';
6
+ export * from './input';
7
+ export * from './close';
8
+ export * from './dropUpAlert';
9
+ export * from './iFrame';
10
+ export * from './mediaSelect';
11
+ export * from './fileSelect';
12
+ export * from './communication';
13
+ export * from './toast';
14
+ export * from './signature';
@@ -1,15 +1,15 @@
1
- import { DialogButtonOld } from "../../types/dialog";
2
- type InputDialog = {
3
- buttons?: DialogButtonOld[];
4
- callType?: number;
5
- formatter?: string;
6
- };
7
- export declare function input(dialog?: InputDialog): Promise<unknown>;
8
- export declare const inputType: {
9
- DEFAULT: number;
10
- PASSWORD: number;
11
- TEXTAREA: number;
12
- INPUT: number;
13
- NUMBER: number;
14
- };
15
- export {};
1
+ import { DialogButtonOld } from "../../types/dialog";
2
+ type InputDialog = {
3
+ buttons?: DialogButtonOld[];
4
+ callType?: number;
5
+ formatter?: string;
6
+ };
7
+ export declare function input(dialog?: InputDialog): Promise<unknown>;
8
+ export declare const inputType: {
9
+ DEFAULT: number;
10
+ PASSWORD: number;
11
+ TEXTAREA: number;
12
+ INPUT: number;
13
+ NUMBER: number;
14
+ };
15
+ export {};
@@ -1,8 +1,8 @@
1
- import { DialogButtonOld } from "../../types/dialog";
2
- type MediaSelectInput = {
3
- buttons?: DialogButtonOld[];
4
- callType?: number;
5
- chaynsToken?: string;
6
- };
7
- export declare function mediaSelect(dialog?: MediaSelectInput): Promise<unknown>;
8
- export {};
1
+ import { DialogButtonOld } from "../../types/dialog";
2
+ type MediaSelectInput = {
3
+ buttons?: DialogButtonOld[];
4
+ callType?: number;
5
+ chaynsToken?: string;
6
+ };
7
+ export declare function mediaSelect(dialog?: MediaSelectInput): Promise<unknown>;
8
+ export {};
@@ -1 +1 @@
1
- export declare function open(json: any): Promise<unknown>;
1
+ export declare function open(json: any): Promise<unknown>;
@@ -1,6 +1,6 @@
1
- import { SelectInput } from '../../types/IChaynsReact';
2
- export declare function select(config: SelectInput): Promise<unknown>;
3
- export declare const selectType: {
4
- DEFAULT: number;
5
- ICON: number;
6
- };
1
+ import { SelectInput } from '../../types/IChaynsReact';
2
+ export declare function select(config: SelectInput): Promise<unknown>;
3
+ export declare const selectType: {
4
+ DEFAULT: number;
5
+ ICON: number;
6
+ };
@@ -1,7 +1,7 @@
1
- import { DialogButtonOld } from "../../types/dialog";
2
- type SignatureInput = {
3
- buttons?: DialogButtonOld[];
4
- callType?: number;
5
- };
6
- export declare function signature(dialog?: SignatureInput): Promise<unknown>;
7
- export {};
1
+ import { DialogButtonOld } from "../../types/dialog";
2
+ type SignatureInput = {
3
+ buttons?: DialogButtonOld[];
4
+ callType?: number;
5
+ };
6
+ export declare function signature(dialog?: SignatureInput): Promise<unknown>;
7
+ export {};
@@ -1 +1 @@
1
- export declare function toast(config?: {}): Promise<any>;
1
+ export declare function toast(config?: {}): Promise<any>;
@@ -1 +1 @@
1
- export declare function getCallbackName(fnName: any, framePrefix?: string): string;
1
+ export declare function getCallbackName(fnName: any, framePrefix?: string): string;
@@ -1,4 +1,4 @@
1
- export declare function isObject(value: any): boolean;
2
- export declare function isNumber(value: any): boolean;
3
- export declare function isDate(value: any): boolean;
4
- export declare function isPresent(value: any): boolean;
1
+ export declare function isObject(value: any): boolean;
2
+ export declare function isNumber(value: any): boolean;
3
+ export declare function isDate(value: any): boolean;
4
+ export declare function isPresent(value: any): boolean;
@@ -1,9 +1,9 @@
1
- import type { IChaynsReact, UserInfoQuery } from '../types/IChaynsReact';
2
- declare const getUserInfo: (api: IChaynsReact, value: UserInfoQuery) => Promise<{
3
- firstName: string;
4
- lastName: string;
5
- userId: number;
6
- personId: string;
7
- name: string;
8
- } | null>;
9
- export default getUserInfo;
1
+ import type { IChaynsReact, UserInfoQuery } from '../types/IChaynsReact';
2
+ declare const getUserInfo: (api: IChaynsReact, value: UserInfoQuery) => Promise<{
3
+ firstName: string;
4
+ lastName: string;
5
+ userId: number;
6
+ personId: string;
7
+ name: string;
8
+ } | null>;
9
+ export default getUserInfo;