pds-dev-kit-web-test 2.5.442 → 2.5.444

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 (185) hide show
  1. package/dist/src/common/hooks/useTooltip.js +1 -1
  2. package/dist/src/common/services/i18n/resources/en.json +29 -1
  3. package/dist/src/common/services/i18n/resources/es.json +28 -1
  4. package/dist/src/common/services/i18n/resources/fil.json +28 -1
  5. package/dist/src/common/services/i18n/resources/index.d.ts +194 -0
  6. package/dist/src/common/services/i18n/resources/ja.json +29 -1
  7. package/dist/src/common/services/i18n/resources/ko.json +29 -1
  8. package/dist/src/common/services/i18n/resources/zh-cn.json +29 -1
  9. package/dist/src/common/services/i18n/resources/zh-tw.json +29 -1
  10. package/dist/src/common/styles/colorSet/index.d.ts +2 -2
  11. package/dist/src/common/styles/colorSet/index.js +2 -2
  12. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  13. package/dist/src/common/utils/dateHelper.d.ts +3 -0
  14. package/dist/src/common/utils/dateHelper.js +37 -0
  15. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  16. package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.d.ts +13 -0
  17. package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.js +48 -0
  18. package/dist/src/desktop/components/Calendar/Calendar.d.ts +4 -0
  19. package/dist/src/desktop/components/Calendar/Calendar.js +379 -0
  20. package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.d.ts +7 -0
  21. package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.js +48 -0
  22. package/dist/src/desktop/components/Calendar/DailyView.d.ts +17 -0
  23. package/dist/src/desktop/components/Calendar/DailyView.js +82 -0
  24. package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +26 -0
  25. package/dist/src/desktop/components/Calendar/MonthlyView.js +222 -0
  26. package/dist/src/desktop/components/Calendar/ScheduleItem.d.ts +16 -0
  27. package/dist/src/desktop/components/Calendar/ScheduleItem.js +49 -0
  28. package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +21 -0
  29. package/dist/src/desktop/components/Calendar/WeeklyView.js +100 -0
  30. package/dist/src/desktop/components/Calendar/YearlyView.d.ts +11 -0
  31. package/dist/src/desktop/components/Calendar/YearlyView.js +71 -0
  32. package/dist/src/desktop/components/Calendar/calendarUtils.d.ts +24 -0
  33. package/dist/src/desktop/components/Calendar/calendarUtils.js +108 -0
  34. package/dist/src/desktop/components/Calendar/constants.d.ts +1 -0
  35. package/dist/src/desktop/components/Calendar/constants.js +31 -0
  36. package/dist/src/desktop/components/Calendar/index.d.ts +10 -0
  37. package/dist/src/desktop/components/Calendar/index.js +37 -0
  38. package/dist/src/desktop/components/Calendar/timeFormatUtils.d.ts +16 -0
  39. package/dist/src/desktop/components/Calendar/timeFormatUtils.js +45 -0
  40. package/dist/src/desktop/components/Calendar/types.d.ts +60 -0
  41. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +1 -4
  42. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +3 -5
  43. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  44. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
  45. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
  46. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  47. package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -3
  48. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  49. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +0 -40
  50. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +177 -36
  51. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +4 -152
  52. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +2 -150
  53. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +1 -45
  54. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +9 -262
  55. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +0 -593
  56. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +0 -253
  57. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +1 -3
  58. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +3 -5
  59. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +1 -2
  60. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.js +2 -9
  61. package/dist/src/sub/DynamicLayout/mocks.d.ts +960 -8
  62. package/dist/src/sub/DynamicLayout/mocks.js +6 -4286
  63. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
  64. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
  65. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
  66. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -13
  67. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +2 -18
  68. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  69. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +3 -121
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +3 -39
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +7 -31
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +1 -45
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +10 -27
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -3
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -52
  84. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
  85. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +0 -1
  86. package/dist/src/sub/DynamicLayout/types.d.ts +16 -49
  87. package/package.json +2 -3
  88. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +0 -21
  89. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +0 -1133
  90. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +0 -11
  91. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +0 -45
  92. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +0 -10
  93. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +0 -79
  94. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +0 -12
  95. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +0 -76
  96. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +0 -4
  97. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +0 -47
  98. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +0 -12
  99. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +0 -76
  100. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +0 -12
  101. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +0 -76
  102. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +0 -12
  103. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +0 -76
  104. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +0 -139
  105. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +0 -2
  106. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +0 -8
  107. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +0 -14
  108. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +0 -3
  109. package/dist/src/sub/DynamicLayout/mock_composition.js +0 -1606
  110. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +0 -1
  111. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +0 -1111
  112. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -1
  113. package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -1091
  114. package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +0 -96
  115. package/dist/src/sub/DynamicLayout/mock_queryData.js +0 -2639
  116. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +0 -842
  117. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +0 -854
  118. package/dist/src/sub/DynamicLayout/mock_video.d.ts +0 -368
  119. package/dist/src/sub/DynamicLayout/mock_video.js +0 -371
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +0 -12
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +0 -61
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +0 -15
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +0 -69
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +0 -15
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +0 -69
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +0 -9
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +0 -87
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +0 -4
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +0 -849
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +0 -43
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +0 -162
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +0 -39
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +0 -182
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +0 -25
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +0 -234
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +0 -14
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +0 -46
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +0 -1
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +0 -8
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +0 -139
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +0 -8
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +0 -190
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +0 -17
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +0 -39
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +0 -10
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +0 -85
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +0 -25
  148. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +0 -183
  149. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +0 -29
  150. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +0 -128
  151. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +0 -23
  152. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +0 -230
  153. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +0 -1
  154. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +0 -8
  155. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -67
  156. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +0 -2
  157. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +0 -8
  158. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +0 -138
  159. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +0 -12
  160. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +0 -39
  161. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +0 -15
  162. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +0 -69
  163. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +0 -15
  164. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +0 -69
  165. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +0 -20
  166. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +0 -173
  167. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +0 -9
  168. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +0 -87
  169. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +0 -4
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +0 -849
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +0 -43
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +0 -162
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +0 -26
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +0 -235
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +0 -16
  176. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +0 -63
  177. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +0 -1
  178. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +0 -8
  179. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +0 -46
  180. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +0 -186
  181. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +0 -163
  182. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +0 -2
  183. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +0 -14
  184. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +0 -26
  185. /package/dist/src/{sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel → desktop/components/Calendar}/types.js +0 -0
@@ -1,139 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Layout } from 'publ-echo-test/dist/lib';
3
- import type { ResizeEventType } from 'publ-echo-test/dist/lib/GridItem/types';
4
- import type { ComponentBlock, GroupBlock } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
5
- import type { LayoutItem, Layouts } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
6
- export type TypeOfCompositionAction = ActionMap<ActionHandlerPayload>[keyof ActionMap<ActionHandlerPayload>];
7
- export type PayloadCBType = {
8
- type: ComponentBlock['type'];
9
- blockId: string;
10
- cbId: number;
11
- workDir: string;
12
- };
13
- export type PayloadGBType = {
14
- type: GroupBlock['type'];
15
- blockId: string;
16
- childrenBlockIds: string[];
17
- childrenCBIds: number[];
18
- workDir: string;
19
- };
20
- export type PayloadBulkType = {
21
- type: 'BULK';
22
- blockId: 'BULK';
23
- childrenBlockIds: string[];
24
- childrenCBIds: number[];
25
- workDir: string;
26
- groupDisabled: boolean;
27
- };
28
- export type BlockPayloadType = PayloadCBType | PayloadGBType | PayloadBulkType;
29
- type ActionHandlerPayload = {
30
- '@COMPOSITION/CB_DRAG_START': {
31
- layout: Layout;
32
- prev?: LayoutItem;
33
- item?: LayoutItem;
34
- placeholder?: LayoutItem;
35
- e?: ResizeEventType;
36
- node?: HTMLElement;
37
- };
38
- '@COMPOSITION/CB_DRAG_STOP': {
39
- layout: Layout;
40
- prev?: LayoutItem;
41
- item?: LayoutItem;
42
- placeholder?: LayoutItem;
43
- e?: ResizeEventType;
44
- node?: HTMLElement;
45
- blockId: string;
46
- workDir: string;
47
- };
48
- '@COMPOSITION/CB_RESIZE_STOP': {
49
- layout: Layout;
50
- prev?: LayoutItem;
51
- item?: LayoutItem;
52
- placeholder?: LayoutItem;
53
- e?: ResizeEventType;
54
- node?: HTMLElement;
55
- blockId: string;
56
- workDir: string;
57
- };
58
- '@COMPOSITION/CB_AUTO_FIT_CONTENT': {
59
- layout: Layout;
60
- prev?: LayoutItem;
61
- item?: LayoutItem;
62
- placeholder?: LayoutItem;
63
- e?: ResizeEventType;
64
- node?: HTMLElement;
65
- details: {
66
- hadPaddingChanged: boolean;
67
- };
68
- blockId: string;
69
- workDir: string;
70
- };
71
- '@COMPOSITION/PLACEMENT_CHANGED': {
72
- layout: Layout;
73
- layouts: Layouts;
74
- };
75
- '@COMPOSITION/BLOCK_CLICKED': {
76
- block: BlockPayloadType;
77
- };
78
- '@COMPOSITION/CB_RIGHT_CLICKED': {
79
- e: React.MouseEvent;
80
- block: BlockPayloadType;
81
- };
82
- '@COMPOSITION/COMPOSITION_CLICKED': {
83
- compositionId: number;
84
- };
85
- '@COMPOSITION/COMPOSITION_RIGHT_CLICKED': {
86
- compositionId: number;
87
- e: React.MouseEvent;
88
- };
89
- '@COMPOSITION/GROUP_RIGHT_CLICKED': {
90
- e: React.MouseEvent;
91
- block: PayloadGBType;
92
- isEditingGroup: boolean;
93
- };
94
- '@COMPOSITION/BULK_RIGHT_CLICKED': {
95
- e: React.MouseEvent;
96
- block: PayloadBulkType;
97
- };
98
- '@COMPOSITION/BULK_CREATED': {
99
- message: string;
100
- data: LayoutItem;
101
- };
102
- '@COMPOSITION/BULK_DISMISSED': {
103
- message: string;
104
- editingGroupBlock: string;
105
- };
106
- '@COMPOSITION/COLLISION_NOT_FOUND': {
107
- message: string;
108
- };
109
- '@COMPOSITION/ESCAPE_ONE_FROM_BULK': {
110
- id: string;
111
- };
112
- '@COMPOSITION/BULK_DRAG_STOP': {
113
- updatedBlocks: UpdatedBlock[];
114
- };
115
- '@COMPOSITION/GROUP_DRAG_STOP': {
116
- updatedBlocks: UpdatedBlock[];
117
- workDir: string;
118
- };
119
- '@COMPOSITION/WORKDIR_CHANGED': {
120
- workDir: string;
121
- };
122
- };
123
- export type UpdatedBlock = {
124
- blockId: string;
125
- cbId: number;
126
- x: number;
127
- y: number;
128
- };
129
- type ActionMap<M extends {
130
- [index: string]: any;
131
- }> = {
132
- [Key in keyof M]: M[Key] extends undefined ? {
133
- type: Key;
134
- } : {
135
- type: Key;
136
- payload: M[Key];
137
- };
138
- };
139
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- interface CCBQueryPathContextType {
3
- queryData?: Record<string, any>;
4
- }
5
- export declare const CCBQueryPathContext: import("react").Context<CCBQueryPathContextType | undefined>;
6
- export declare const useCCBQueryPath: () => CCBQueryPathContextType | null;
7
- export declare const CCBQueryPathProvider: import("react").Provider<CCBQueryPathContextType | undefined>;
8
- export {};
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CCBQueryPathProvider = exports.useCCBQueryPath = exports.CCBQueryPathContext = void 0;
4
- var react_1 = require("react");
5
- exports.CCBQueryPathContext = (0, react_1.createContext)(undefined);
6
- var useCCBQueryPath = function () {
7
- var context = (0, react_1.useContext)(exports.CCBQueryPathContext);
8
- if (!context) {
9
- return null;
10
- }
11
- return context;
12
- };
13
- exports.useCCBQueryPath = useCCBQueryPath;
14
- exports.CCBQueryPathProvider = exports.CCBQueryPathContext.Provider;
@@ -1,3 +0,0 @@
1
- import type { IComposition } from './types';
2
- export declare const sampleMockComposition1: IComposition;
3
- export declare const sampleMockComposition2: any;