pds-dev-kit-web-test 2.5.402 → 2.5.405

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 (232) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +2 -3
  3. package/dist/src/common/assets/icons/fill/Video.js +1 -1
  4. package/dist/src/common/assets/icons/fill/VideoOff.js +1 -1
  5. package/dist/src/common/assets/icons/fill/VideoType.js +1 -1
  6. package/dist/src/common/assets/icons/fill/index.d.ts +0 -3
  7. package/dist/src/common/assets/icons/fill/index.js +1 -7
  8. package/dist/src/common/assets/icons/line/Video.js +1 -1
  9. package/dist/src/common/assets/icons/line/VideoOff.js +1 -1
  10. package/dist/src/common/assets/icons/line/VideoType.js +1 -1
  11. package/dist/src/common/assets/icons/line/index.d.ts +0 -12
  12. package/dist/src/common/assets/icons/line/index.js +1 -25
  13. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +1 -2
  14. package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +4 -48
  15. package/dist/src/common/hooks/useTooltip.js +1 -1
  16. package/dist/src/common/services/i18n/resources/en.json +1 -9
  17. package/dist/src/common/services/i18n/resources/es.json +1 -9
  18. package/dist/src/common/services/i18n/resources/fil.json +1 -9
  19. package/dist/src/common/services/i18n/resources/index.d.ts +0 -56
  20. package/dist/src/common/services/i18n/resources/ja.json +1 -9
  21. package/dist/src/common/services/i18n/resources/ko.json +1 -9
  22. package/dist/src/common/services/i18n/resources/zh-cn.json +1 -9
  23. package/dist/src/common/services/i18n/resources/zh-tw.json +1 -9
  24. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -9
  25. package/dist/src/common/styles/colorSet/PaletteColor_light.json +1 -9
  26. package/dist/src/common/styles/colorSet/UIColor.json +1 -14
  27. package/dist/src/common/styles/colorSet/index.d.ts +0 -29
  28. package/dist/src/common/styles/colorSet/ui-type.d.ts +0 -13
  29. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  30. package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +0 -1
  31. package/dist/src/desktop/components/AdminListItem/AdminListItem.js +13 -27
  32. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  33. package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +1 -4
  34. package/dist/src/desktop/components/BasicListItem/BasicListItem.js +4 -26
  35. package/dist/src/desktop/components/BasicListItem/Contents.d.ts +1 -3
  36. package/dist/src/desktop/components/BasicListItem/Contents.js +2 -2
  37. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +0 -1
  38. package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
  39. package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +1 -3
  40. package/dist/src/desktop/components/Checkbox/Checkbox.js +3 -17
  41. package/dist/src/desktop/components/Chip/Chip.d.ts +1 -1
  42. package/dist/src/desktop/components/Chip/Chip.js +5 -50
  43. package/dist/src/desktop/components/Radio/Radio.js +2 -2
  44. package/dist/src/desktop/components/TextField/TextField.js +15 -41
  45. package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
  46. package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +1 -4
  47. package/dist/src/mobile/components/BasicListItem/BasicListItem.js +4 -26
  48. package/dist/src/mobile/components/BasicListItem/Contents.d.ts +1 -3
  49. package/dist/src/mobile/components/BasicListItem/Contents.js +2 -2
  50. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +0 -1
  51. package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
  52. package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +1 -3
  53. package/dist/src/mobile/components/Checkbox/Checkbox.js +3 -17
  54. package/dist/src/mobile/components/Chip/Chip.d.ts +1 -1
  55. package/dist/src/mobile/components/Chip/Chip.js +5 -50
  56. package/dist/src/mobile/components/Radio/Radio.js +2 -2
  57. package/dist/src/mobile/components/TextField/TextField.js +15 -41
  58. package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +1 -6
  59. package/dist/src/mobile/components/TextLabel/TextLabel.js +3 -83
  60. package/dist/src/mobile/components/index.d.ts +1 -2
  61. package/dist/src/mobile/components/index.js +1 -3
  62. package/dist/src/mobile/index.d.ts +1 -1
  63. package/dist/src/mobile/index.js +2 -3
  64. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
  65. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
  66. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
  67. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
  68. package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
  69. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
  70. package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
  71. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
  72. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
  73. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
  74. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
  75. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
  76. package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
  77. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
  78. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
  79. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
  80. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
  81. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
  82. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
  83. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
  84. package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
  85. package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
  86. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +20 -0
  87. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1132 -0
  88. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +4 -1
  89. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +4 -2
  90. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +54 -54
  91. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +11 -0
  92. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +45 -0
  93. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +9 -0
  94. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +53 -0
  95. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  96. package/dist/src/sub/DynamicLayout/DynamicLayout.js +3 -2
  97. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +1 -4
  98. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +1 -12
  99. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  100. package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -3
  101. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
  102. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +2 -0
  103. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +8 -0
  104. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +14 -0
  105. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
  106. package/dist/src/sub/DynamicLayout/mock_composition.js +797 -0
  107. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +2 -0
  108. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +326 -0
  109. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +2 -0
  110. package/dist/src/sub/DynamicLayout/mock_contentsList.js +296 -0
  111. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +2 -0
  112. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +318 -0
  113. package/dist/src/sub/DynamicLayout/mocks.d.ts +7 -186
  114. package/dist/src/sub/DynamicLayout/mocks.js +50 -25
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +15 -11
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +13 -6
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +18 -23
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +4 -4
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +154 -2
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +17 -0
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +39 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +31 -0
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +169 -0
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +26 -0
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +185 -0
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +21 -0
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +94 -0
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +50 -0
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +919 -0
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +90 -0
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +2 -0
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +100 -0
  136. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
  137. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
  138. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +27 -0
  139. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +188 -0
  140. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +30 -0
  141. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +357 -0
  142. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
  143. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
  144. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +46 -0
  145. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
  146. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +31 -3
  147. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +8 -0
  148. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +150 -0
  149. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +15 -0
  150. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
  151. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +31 -0
  152. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +169 -0
  153. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +26 -0
  154. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +185 -0
  155. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +21 -0
  156. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +94 -0
  157. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
  158. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/{VideoPlayer → SlideBanner}/index.js +3 -3
  159. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +48 -0
  160. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +855 -0
  161. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +80 -0
  162. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
  163. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +24 -6
  164. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +45 -12
  165. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  166. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +21 -11
  167. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +3 -2
  168. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  169. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  170. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
  171. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +26 -0
  172. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  173. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  174. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  175. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +41 -5
  176. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +2 -1
  177. package/dist/src/sub/DynamicLayout/types.d.ts +43 -19
  178. package/package.json +3 -3
  179. package/release-note.md +3 -3
  180. package/dist/src/common/assets/icons/fill/Cam.d.ts +0 -4
  181. package/dist/src/common/assets/icons/fill/Cam.js +0 -30
  182. package/dist/src/common/assets/icons/fill/CamOff.d.ts +0 -4
  183. package/dist/src/common/assets/icons/fill/CamOff.js +0 -30
  184. package/dist/src/common/assets/icons/fill/VideoStop.d.ts +0 -4
  185. package/dist/src/common/assets/icons/fill/VideoStop.js +0 -30
  186. package/dist/src/common/assets/icons/line/Cam.d.ts +0 -4
  187. package/dist/src/common/assets/icons/line/Cam.js +0 -30
  188. package/dist/src/common/assets/icons/line/CamOff.d.ts +0 -4
  189. package/dist/src/common/assets/icons/line/CamOff.js +0 -30
  190. package/dist/src/common/assets/icons/line/CheckBox.d.ts +0 -4
  191. package/dist/src/common/assets/icons/line/CheckBox.js +0 -30
  192. package/dist/src/common/assets/icons/line/Dropdown.d.ts +0 -4
  193. package/dist/src/common/assets/icons/line/Dropdown.js +0 -30
  194. package/dist/src/common/assets/icons/line/Radio.d.ts +0 -4
  195. package/dist/src/common/assets/icons/line/Radio.js +0 -30
  196. package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +0 -4
  197. package/dist/src/common/assets/icons/line/SectionQuestion32.js +0 -30
  198. package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +0 -4
  199. package/dist/src/common/assets/icons/line/SectionQuestion40.js +0 -30
  200. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +0 -4
  201. package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +0 -30
  202. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +0 -4
  203. package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +0 -30
  204. package/dist/src/common/assets/icons/line/TextLong.d.ts +0 -4
  205. package/dist/src/common/assets/icons/line/TextLong.js +0 -30
  206. package/dist/src/common/assets/icons/line/TextShort.d.ts +0 -4
  207. package/dist/src/common/assets/icons/line/TextShort.js +0 -30
  208. package/dist/src/common/assets/icons/line/VideoStop.d.ts +0 -4
  209. package/dist/src/common/assets/icons/line/VideoStop.js +0 -30
  210. package/dist/src/common/utils/dateHelper.d.ts +0 -13
  211. package/dist/src/common/utils/dateHelper.js +0 -87
  212. package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +0 -16
  213. package/dist/src/mobile/components/DatePicker/DatePicker.js +0 -156
  214. package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +0 -14
  215. package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +0 -27
  216. package/dist/src/mobile/components/DatePicker/Day.d.ts +0 -13
  217. package/dist/src/mobile/components/DatePicker/Day.js +0 -94
  218. package/dist/src/mobile/components/DatePicker/index.d.ts +0 -1
  219. package/dist/src/mobile/components/DatePicker/index.js +0 -8
  220. package/dist/src/mobile/components/DatePicker/utils.d.ts +0 -16
  221. package/dist/src/mobile/components/DatePicker/utils.js +0 -68
  222. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
  223. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
  224. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.d.ts +0 -8
  225. package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +0 -77
  226. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -369
  227. package/dist/src/sub/DynamicLayout/mock_video_cb.js +0 -372
  228. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.d.ts +0 -5
  229. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +0 -173
  230. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +0 -4
  231. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +0 -25
  232. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.d.ts +0 -1
@@ -46,9 +46,12 @@ function ComponentBlockMatcher(_a) {
46
46
  return (0, jsx_runtime_1.jsx)(Youtube_1.Youtube, __assign({}, propsWithValue, { index: index }));
47
47
  case types_1.CB_ALL_CODES.CB_EMBED:
48
48
  return (0, jsx_runtime_1.jsx)(Embed_1.default, __assign({}, propsWithValue, { index: index }));
49
- case types_1.CB_ALL_CODES.CB_CONTENTS_CAROUSEL: {
49
+ case types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL: {
50
50
  return (0, jsx_runtime_1.jsx)("div", { children: "NOT SUPPORTED NESTED CAROUSEL" });
51
51
  }
52
+ case types_1.CB_ALL_CODES.CB_LIST: {
53
+ return (0, jsx_runtime_1.jsx)("div", { children: "NOT SUPPORTED NESTED CONTENTSLIST" });
54
+ }
52
55
  default:
53
56
  return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
54
57
  }
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
- import type { ISection } from '../types';
2
+ import type { IComposition } from '../types';
3
3
  import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
4
4
  export type LayoutsType = {
5
5
  sm: Layout;
6
6
  lg: Layout;
7
7
  };
8
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ISection & React.RefAttributes<unknown>>>;
8
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<IComposition & {
9
+ device?: "DESKTOP" | "MOBILE" | undefined;
10
+ } & React.RefAttributes<unknown>>>;
9
11
  export default _default;
@@ -47,36 +47,31 @@ var react_1 = __importStar(require("react"));
47
47
  var ErrorBoundary_1 = require("../../DynamicLayout/components/Section/ErrorBoundary");
48
48
  var dynamicLayoutContext_1 = require("../../DynamicLayout/dynamicLayoutContext");
49
49
  var styled_components_1 = __importDefault(require("styled-components"));
50
- var components_1 = require("../components");
50
+ require("../components");
51
51
  var gleStyles_1 = require("../gleStyles");
52
52
  var useResizableObserver_1 = require("../sections/CustomSection/hooks/useResizableObserver");
53
- var util_1 = require("../sections/CustomSection/util");
53
+ require("../sections/CustomSection/util");
54
54
  var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
55
+ var parseCompositionPlacement_1 = __importDefault(require("../sections/CustomSection/util/parseCompositionPlacement"));
56
+ var CompositionBackground_1 = __importDefault(require("./CompositionBackground"));
55
57
  var FlexGridItem_1 = __importDefault(require("./FlexGridItem"));
56
- var GRID_CELL_MIN = 24;
57
- var DESKTOP_GRID_COLS = 24;
58
- var MOBILE_GRID_COLS = 8;
59
- var GLE_MIN_WIDTH_DESKTOP_PX = "".concat(GRID_CELL_MIN * DESKTOP_GRID_COLS, "px");
60
- var GLE_MIN_WIDTH_MOBILE_PX = "".concat(GRID_CELL_MIN * MOBILE_GRID_COLS, "px");
61
58
  var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
62
- var _a;
63
- var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _b.device, editingSectionId = _b.editingSectionId, mode = _b.mode, shortcutKeyMode = _b.shortcutKeyMode, sectionActionHandler = _b.sectionActionHandler;
59
+ var _a, _b, _c, _d, _e;
60
+ var _f = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _f.device, editingSectionId = _f.editingSectionId, mode = _f.mode, shortcutKeyMode = _f.shortcutKeyMode, sectionActionHandler = _f.sectionActionHandler, queryData = _f.queryData;
64
61
  var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties;
65
- var _c = jsonProperties, _d = _c.data, CB_PLACEMENT_PROP_SECTION = _d.CB_PLACEMENT_PROP_SECTION, CB_LAYOUT_PROP_PADDING = _d.CB_LAYOUT_PROP_PADDING, zOrders = _c.zOrders;
62
+ var isMobile = device === 'MOBILE';
63
+ var isEditMode = mode === 'EDIT';
64
+ var _g = jsonProperties, _h = _g.data, CB_PLACEMENT_PROP_COMPOSITION = _h.CB_PLACEMENT_PROP_COMPOSITION, CB_LAYOUT_PROP_PADDING = _h.CB_LAYOUT_PROP_PADDING, zOrders = _g.zOrders;
65
+ var colsDesktop = (_a = CB_PLACEMENT_PROP_COMPOSITION.CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS) !== null && _a !== void 0 ? _a : 24;
66
+ var colsMobile = (_b = CB_PLACEMENT_PROP_COMPOSITION['CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS:MOBILE']) !== null && _b !== void 0 ? _b : 8;
67
+ var rowsDesktop = (_c = CB_PLACEMENT_PROP_COMPOSITION.CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS) !== null && _c !== void 0 ? _c : 26;
68
+ var rowsMobile = (_d = CB_PLACEMENT_PROP_COMPOSITION['CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS:MOBILE']) !== null && _d !== void 0 ? _d : 26;
69
+ var rows = isMobile ? rowsMobile : rowsDesktop;
70
+ var cols = isMobile ? colsMobile : colsDesktop;
66
71
  var containerRef = (0, react_1.useRef)(null);
67
72
  var size = (0, useResizableObserver_1.useResizeObserver)({ ref: containerRef, box: 'border-box' });
68
- var _e = (0, react_1.useState)(null), selectedCB = _e[0], setSelectedCB = _e[1];
73
+ var _j = (0, react_1.useState)(null), selectedCB = _j[0], setSelectedCB = _j[1];
69
74
  var gleRef = (0, react_1.useRef)(null);
70
- var isMobile = device === 'MOBILE';
71
- var isEditMode = mode === 'EDIT';
72
- // const layoutByDevice = device === 'DESKTOP' ? 'lg' : 'sm';
73
- // const [layouts] = useState<LayoutsType>(() => {
74
- // const { lg, sm } = parsePlacement(componentBlocks ?? []);
75
- // return {
76
- // lg,
77
- // sm
78
- // };
79
- // });
80
75
  (0, react_1.useEffect)(function () {
81
76
  if (editingSectionId !== props.id) {
82
77
  setSelectedCB(null);
@@ -124,14 +119,17 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
124
119
  setSelectedCB('BULK');
125
120
  }
126
121
  }, [selectedCB, shortcutKeyMode, sectionActionHandler, setSelectedCB]);
127
- var _f = (0, util_1.parseCustomSectionPlacement)({
122
+ var _k = (0, parseCompositionPlacement_1.default)({
128
123
  isMobile: isMobile,
129
- customSectionProps: CB_PLACEMENT_PROP_SECTION
130
- }), width = _f.width, minHeight = _f.minHeight, isFullWidth = _f.isFullWidth;
124
+ compositionProps: CB_PLACEMENT_PROP_COMPOSITION
125
+ }), minHeight = _k.minHeight, maxHeight = _k.maxHeight, maxWidth = _k.maxWidth, minWidth = _k.minWidth;
126
+ var canvasWidth = 50 * cols;
131
127
  var customSectionStyles = {
132
- minHeight: "".concat(minHeight, "vh"),
133
- width: '100%',
134
- maxWidth: isFullWidth ? '' : "".concat(width, "px")
128
+ minHeight: "".concat(minHeight, "px"),
129
+ maxHeight: "".concat(maxHeight, "px"),
130
+ width: "100%",
131
+ maxWidth: maxWidth ? "".concat(maxWidth, "px") : '100%',
132
+ minWidth: "".concat(Math.max(canvasWidth, minWidth !== null && minWidth !== void 0 ? minWidth : 0), "px")
135
133
  };
136
134
  var onClickSection = function () {
137
135
  if (!isEditMode) {
@@ -147,26 +145,26 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
147
145
  });
148
146
  };
149
147
  var padding = (0, parseSectionPadding_1.default)(CB_LAYOUT_PROP_PADDING, device);
150
- var sectionRow = CB_PLACEMENT_PROP_SECTION[device === 'DESKTOP'
151
- ? 'CB_PLACEMENT_PROP_SECTION_SPEC_ROWS'
152
- : 'CB_PLACEMENT_PROP_SECTION_SPEC_ROWS:MOBILE'];
153
148
  var rowHeight = (function () {
154
149
  if (!size.width) {
155
150
  return 50;
156
151
  }
157
152
  if (device === 'MOBILE') {
158
- var cellWidth_1 = size.width / MOBILE_GRID_COLS;
153
+ var cellWidth_1 = size.width / cols;
159
154
  return cellWidth_1 * 0.56;
160
155
  }
161
- var cellWidth = size.width / DESKTOP_GRID_COLS;
156
+ var cellWidth = size.width / cols;
162
157
  return cellWidth * 0.56;
163
158
  })();
159
+ // TODO: 폰트사이즈 작업 필요.
164
160
  var baseFontSize = (function () {
165
- var _a, _b;
166
161
  if (!size.width) {
167
162
  return 16;
168
163
  }
169
- var responsiveFontMode = !!((_b = (_a = props.jsonProperties) === null || _a === void 0 ? void 0 : _a.data.CB_CONTENT_PROP_SECTION) === null || _b === void 0 ? void 0 : _b.CB_CONTENT_PROP_SECTION_SPEC_VARIABLEROOTFONTSIZE);
164
+ // const responsiveFontMode =
165
+ // !!props.jsonProperties?.CB_CONTENT_PROP_COMPOSITION
166
+ // ?.CB_CONTENT_PROP_COMPOSITION_SPEC_VARIABLEROOTFONTSIZE;
167
+ var responsiveFontMode = true;
170
168
  if (device === 'MOBILE') {
171
169
  if (responsiveFontMode) {
172
170
  return size.width * 0.0421;
@@ -180,33 +178,35 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
180
178
  return size.width * 0.0133;
181
179
  }
182
180
  if (size.width < 1200) {
183
- return Math.max(getDefensiveFontSize(device, size.width), 16);
181
+ return Math.max(getDefensiveFontSize(device, size.width), 14);
184
182
  }
185
183
  return 16;
186
184
  })();
187
- return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, __assign({ style: { width: '100%', height: '100%' } }, { children: (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, style: {
188
- width: '100%',
189
- height: '100%'
190
- } }, { children: (0, jsx_runtime_1.jsx)(components_1.CustomSection, __assign({}, props, { isMobile: isMobile, overrideStyles: {
191
- // minHeight: customSectionStyles.minHeight,
192
- paddingTop: padding.top,
193
- paddingBottom: padding.bottom,
194
- paddingRight: padding.right,
195
- paddingLeft: padding.left,
185
+ return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
186
+ device: device
187
+ } }, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, __assign({ style: { width: '100%', height: '100%' } }, { children: (0, jsx_runtime_1.jsx)(S_COMPOSITIONWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, style: {
196
188
  width: '100%',
197
189
  height: '100%'
198
- } }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ ref: containerRef, cols: isMobile ? 8 : 24, rowHeight: rowHeight, sectionRow: sectionRow !== null && sectionRow !== void 0 ? sectionRow : 0, style: {
199
- width: customSectionStyles.width,
200
- maxWidth: customSectionStyles.maxWidth,
201
- minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
202
- fontSize: "".concat(baseFontSize, "px")
203
- } }, { children: (_a = props.componentBlocks) === null || _a === void 0 ? void 0 : _a.map(function (cb, index) {
204
- var _a;
205
- return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(FlexGridItem_1.default, { cb: cb, index: index, device: device, rowHeight: rowHeight, zIndex: (_a = zOrders === null || zOrders === void 0 ? void 0 : zOrders[device === 'DESKTOP' ? 'desktop' : 'mobile'][cb.id]) !== null && _a !== void 0 ? _a : 0 }) }, cb.id));
206
- }) })) })) })) })) }));
190
+ } }, { children: (0, jsx_runtime_1.jsx)(CompositionBackground_1.default, __assign({}, props, { isMobile: isMobile, overrideStyles: {
191
+ // minHeight: customSectionStyles.minHeight,
192
+ paddingTop: padding.top,
193
+ paddingBottom: padding.bottom,
194
+ paddingRight: padding.right,
195
+ paddingLeft: padding.left,
196
+ width: '100%',
197
+ height: '100%'
198
+ } }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ ref: containerRef, cols: cols, rowHeight: rowHeight, sectionRow: rows, style: {
199
+ width: customSectionStyles.width,
200
+ maxWidth: customSectionStyles.maxWidth,
201
+ // minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
202
+ fontSize: "".concat(baseFontSize, "px")
203
+ } }, { children: (_e = props.componentBlocks) === null || _e === void 0 ? void 0 : _e.map(function (cb, index) {
204
+ var _a;
205
+ return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(FlexGridItem_1.default, { cb: cb, index: index, device: device, rowHeight: rowHeight, zIndex: (_a = zOrders === null || zOrders === void 0 ? void 0 : zOrders[device === 'DESKTOP' ? 'desktop' : 'mobile'][cb.id]) !== null && _a !== void 0 ? _a : 0 }) }, cb.id));
206
+ }) })) })) })) })) })) }));
207
207
  });
208
208
  var GridContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", minmax(", ", 1fr));\n height: 100%;\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"], ["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", minmax(", ", 1fr));\n height: 100%;\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"])), function (props) { return "".concat(props.rowHeight, "px"); }, function (props) { return props.cols; }, function (props) { return props.sectionRow; }, function (props) { return "".concat(0, "px"); });
209
- var S_SectionWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
209
+ var S_COMPOSITIONWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
210
210
  exports.default = react_1.default.memo(Composition);
211
211
  function getDefensiveFontSize(device, width) {
212
212
  if (device === 'MOBILE') {
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { CSSProperties } from 'styled-components';
3
+ import type { IComposition } from '../types';
4
+ type SectionPropTypes = IComposition & {
5
+ children?: React.ReactNode;
6
+ } & {
7
+ overrideStyles?: CSSProperties;
8
+ isMobile?: boolean;
9
+ };
10
+ declare function CompositionBackground({ children, overrideStyles, isMobile, ...props }: SectionPropTypes): JSX.Element;
11
+ export default CompositionBackground;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __rest = (this && this.__rest) || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
+ t[p] = s[p];
21
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ var jsx_runtime_1 = require("react/jsx-runtime");
33
+ var styled_components_1 = __importDefault(require("styled-components"));
34
+ var Section_1 = require("../components/Section");
35
+ var CustomSectionBackground_1 = __importDefault(require("../components/Section/components/CustomSectionBackground"));
36
+ function CompositionBackground(_a) {
37
+ var children = _a.children, overrideStyles = _a.overrideStyles, _b = _a.isMobile, isMobile = _b === void 0 ? false : _b, props = __rest(_a, ["children", "overrideStyles", "isMobile"]);
38
+ return ((0, jsx_runtime_1.jsx)(Section_1.sectionContext.Provider, __assign({ value: __assign({}, props) }, { children: (0, jsx_runtime_1.jsxs)(S_Section, __assign({ style: overrideStyles, isIframeSection: false }, { children: [(0, jsx_runtime_1.jsx)(CustomSectionBackground_1.default, { isMobile: isMobile }), children] })) })));
39
+ }
40
+ var S_Section = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: center;\n position: relative;\n width: 100%;\n z-index: 0;\n"], ["\n align-items: center;\n box-sizing: border-box;\n display: flex;\n height: ", ";\n justify-content: center;\n position: relative;\n width: 100%;\n z-index: 0;\n"])), function (_a) {
41
+ var isIframeSection = _a.isIframeSection;
42
+ return (isIframeSection ? '100%' : 'auto');
43
+ });
44
+ exports.default = CompositionBackground;
45
+ var templateObject_1;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { VALUE_TYPE } from '../sections/CustomSection/util/types';
3
+ import type { IComposition, QueryData } from '../../DynamicLayout/types';
4
+ export declare function createCompositions({ valueType, queryPath, queryData, compositions }: {
5
+ valueType: VALUE_TYPE;
6
+ queryPath: string;
7
+ queryData: QueryData | undefined;
8
+ compositions: IComposition[];
9
+ }): JSX.Element[];
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.createCompositions = void 0;
18
+ var jsx_runtime_1 = require("react/jsx-runtime");
19
+ require("react");
20
+ var compositionQueryContext_1 = require("../compositionQueryContext");
21
+ var Composition_1 = __importDefault(require("./Composition"));
22
+ function createCompositions(_a) {
23
+ var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions;
24
+ var isQueryDataConnected = valueType === 'DATA';
25
+ // 직접 입력 유형인 경우
26
+ if (!isQueryDataConnected) {
27
+ return compositions
28
+ .filter(function (composition) { return !composition.isDefault; })
29
+ .map(function (composition) { return (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id); });
30
+ }
31
+ if (!compositions.length) {
32
+ return [(0, jsx_runtime_1.jsx)("div", { children: "EMPTY TEXT" }, "not-found")];
33
+ }
34
+ // 데이터 연결 유형이나, 쿼리 데이터나 키가 없는 경우
35
+ if (!queryPath || !queryData) {
36
+ return compositions
37
+ .filter(function (composition) { return composition.isDefault; })
38
+ .map(function (composition) { return (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id); });
39
+ }
40
+ var parsedQueryPath = removeFirstSegment(queryPath);
41
+ var queryDataValue = queryData[parsedQueryPath];
42
+ var queryComposition = compositions.find(function (composition) { return composition.isDefault; });
43
+ // 쿼리 데이터와 키가 있으나, 쿼리 데이터에 해당 키가 없는 경우
44
+ if (!queryDataValue) {
45
+ return [(0, jsx_runtime_1.jsxs)("div", { children: ["NOT FOUND QUERYDATA OR DEFAULT: ", parsedQueryPath] }, "not-found")];
46
+ }
47
+ return queryDataValue.map(function (query, index) { return ((0, jsx_runtime_1.jsx)(compositionQueryContext_1.CCBQueryPathContext.Provider, __assign({ value: { queryData: query } }, { children: (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, queryComposition)) }), index)); });
48
+ }
49
+ exports.createCompositions = createCompositions;
50
+ function removeFirstSegment(path) {
51
+ var segments = path.split('/');
52
+ return segments.slice(1).join('/');
53
+ }
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { DynamicLayoutProps } from './types';
3
- declare function DynamicLayout({ device, mode, isPreview, sections, scrollDownTargetSectionId, editingSectionId, navigationHandler, sectionActionHandler, onClickEditSection, programmedSectionComponents, shortcutKeyMode, dynamicLayoutRef, zoomScale }: DynamicLayoutProps): JSX.Element;
3
+ declare function DynamicLayout({ device, mode, isPreview, sections, scrollDownTargetSectionId, editingSectionId, navigationHandler, sectionActionHandler, onClickEditSection, programmedSectionComponents, shortcutKeyMode, dynamicLayoutRef, zoomScale, queryData }: DynamicLayoutProps): JSX.Element;
4
4
  export default DynamicLayout;
@@ -25,7 +25,7 @@ var EditModeSectionMatcher_1 = require("./components/EditModeSectionMatcher");
25
25
  var SectionMatcher_1 = require("./components/SectionMatcher");
26
26
  var dynamicLayoutContext_1 = require("./dynamicLayoutContext");
27
27
  function DynamicLayout(_a) {
28
- var device = _a.device, _b = _a.mode, mode = _b === void 0 ? 'NORMAL' : _b, isPreview = _a.isPreview, sections = _a.sections, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, navigationHandler = _a.navigationHandler, sectionActionHandler = _a.sectionActionHandler, onClickEditSection = _a.onClickEditSection, programmedSectionComponents = _a.programmedSectionComponents, shortcutKeyMode = _a.shortcutKeyMode, dynamicLayoutRef = _a.dynamicLayoutRef, zoomScale = _a.zoomScale;
28
+ var device = _a.device, _b = _a.mode, mode = _b === void 0 ? 'NORMAL' : _b, isPreview = _a.isPreview, sections = _a.sections, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, navigationHandler = _a.navigationHandler, sectionActionHandler = _a.sectionActionHandler, onClickEditSection = _a.onClickEditSection, programmedSectionComponents = _a.programmedSectionComponents, shortcutKeyMode = _a.shortcutKeyMode, dynamicLayoutRef = _a.dynamicLayoutRef, zoomScale = _a.zoomScale, queryData = _a.queryData;
29
29
  var filteredSortedSection = __spreadArray([], sections, true).filter(function (section) {
30
30
  var _a;
31
31
  if (!section.display) {
@@ -51,7 +51,8 @@ function DynamicLayout(_a) {
51
51
  editingSectionId: editingSectionId,
52
52
  programmedSectionComponents: programmedSectionComponents,
53
53
  shortcutKeyMode: shortcutKeyMode,
54
- zoomScale: zoomScale
54
+ zoomScale: zoomScale,
55
+ queryData: queryData
55
56
  } }, { children: [mode === 'EDIT' && onClickEditSection && ((0, jsx_runtime_1.jsx)(EditModeSectionMatcher_1.EditModeSectionMatcher, { dynamicLayoutRef: dynamicLayoutRef, editingSectionId: editingSectionId, scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection })), mode !== 'EDIT' &&
56
57
  (iframeSection ? ((0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, iframeSection), iframeSection.id)) : (filteredSortedSection.map(function (section) { return (0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, section), section.id); })))] })));
57
58
  }
@@ -81,12 +81,9 @@ var TopRightAbsoluteBox = styled_components_1.default.div(templateObject_1 || (t
81
81
  var theme = _a.theme;
82
82
  return theme.ui_editor_preview_editing;
83
83
  });
84
- var S_SectionBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: ", ";\n position: relative;\n z-index: ", ";\n"], ["\n height: ", ";\n position: relative;\n z-index: ", ";\n"])), function (_a) {
84
+ var S_SectionBox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: ", ";\n position: relative;\n"], ["\n height: ", ";\n position: relative;\n"])), function (_a) {
85
85
  var isIframeSection = _a.isIframeSection;
86
86
  return (isIframeSection ? '100%' : 'auto');
87
- }, function (_a) {
88
- var isEditing = _a.isEditing;
89
- return (isEditing ? 3 : 1);
90
87
  });
91
88
  var DimmedEditOverlay = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n animation: ", ";\n background-color: ", ";\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n left: 0;\n\n opacity: ", ";\n\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.2s ease-out;\n z-index: 10;\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"], ["\n align-items: center;\n animation: ", ";\n background-color: ", ";\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n left: 0;\n\n opacity: ", ";\n\n position: absolute;\n right: 0;\n top: 0;\n transition: opacity 0.2s ease-out;\n z-index: 10;\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.6;\n }\n\n 100% {\n opacity: 0;\n }\n }\n"])), function (_a) {
92
89
  var fadeOut = _a.fadeOut;
@@ -37,9 +37,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
37
37
  __setModuleDefault(result, mod);
38
38
  return result;
39
39
  };
40
- var __importDefault = (this && this.__importDefault) || function (mod) {
41
- return (mod && mod.__esModule) ? mod : { "default": mod };
42
- };
43
40
  Object.defineProperty(exports, "__esModule", { value: true });
44
41
  exports.CustomSectionBackgroundMedia = void 0;
45
42
  var jsx_runtime_1 = require("react/jsx-runtime");
@@ -48,10 +45,9 @@ var utils_1 = require("../../../../DynamicLayout/utils");
48
45
  var styled_components_1 = __importStar(require("styled-components"));
49
46
  var YouTubeIframe_1 = require("../../YouTubeIframe");
50
47
  var util_1 = require("../util");
51
- var VideoBGMedia_1 = __importDefault(require("./VideoBGMedia"));
52
48
  function CustomSectionBackgroundMedia(_a) {
53
49
  var specs = _a.specs, playerId = _a.playerId, mediaType = _a.mediaType, componentStyle = _a.componentStyle, device = _a.device, backgroundRef = _a.backgroundRef;
54
- var _b = (0, util_1.parseSectionBackgroundMediaData)(specs, device), CB_STYLE_PROP_BGMEDIA_SPEC_YSRC = _b.CB_STYLE_PROP_BGMEDIA_SPEC_YSRC, CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY = _b.CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY, CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME = _b.CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME, CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME = _b.CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME, CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR = _b.CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR, CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR = _b.CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR;
50
+ var _b = (0, util_1.parseSectionBackgroundMediaData)(specs, device), CB_STYLE_PROP_BGMEDIA_SPEC_YSRC = _b.CB_STYLE_PROP_BGMEDIA_SPEC_YSRC, CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY = _b.CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY, CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME = _b.CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME, CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME = _b.CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME, CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR = _b.CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR;
55
51
  var _c = (0, react_1.useState)({ width: 0, height: 0 }), youtubeSize = _c[0], setYoutubeSize = _c[1];
56
52
  var youTubeIframeKey = (0, react_1.useMemo)(function () {
57
53
  return "".concat(utils_1.YouTubeLinkParser.getId(String(CB_STYLE_PROP_BGMEDIA_SPEC_YSRC)), "-").concat(CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY, "-").concat(CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME, "-").concat(CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME);
@@ -108,13 +104,6 @@ function CustomSectionBackgroundMedia(_a) {
108
104
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR && ((0, jsx_runtime_1.jsx)(S_Image, __assign({ src: String(CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR), normalStyle: componentStyle }, { children: (0, jsx_runtime_1.jsx)("img", { src: String(CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR), style: { visibility: 'hidden', width: '100%', height: '100%' } }) }))) }));
109
105
  case 'YOUTUBE':
110
106
  return ((0, jsx_runtime_1.jsx)(S_YoutubeContainer, __assign({}, youtubeSize, { children: youtubeSize.height > 0 && youtubeSize.width > 0 && ((0, jsx_runtime_1.jsx)(YouTubeIframe_1.YouTubeIframe, { src: String(CB_STYLE_PROP_BGMEDIA_SPEC_YSRC), id: playerId, loopMode: CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY ? 'use' : 'none', startSeconds: Number(CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME), endSeconds: Number(CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME), customHeight: youtubeSize.height, customWidth: youtubeSize.width }, youTubeIframeKey)) })));
111
- case 'VIDEO':
112
- case 'URL':
113
- return ((0, jsx_runtime_1.jsx)(VideoBGMedia_1.default
114
- // autoPlayOnMobile={}
115
- , {
116
- // autoPlayOnMobile={}
117
- src: String(CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR), startTime: Number(CB_STYLE_PROP_BGMEDIA_SPEC_STARTTIME), endTime: Number(CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME), loop: !!CB_STYLE_PROP_BGMEDIA_SPEC_REPLAY }));
118
107
  case 'NONE':
119
108
  default:
120
109
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import type { ISection } from '../../types';
3
- export declare const sectionContext: import("react").Context<ISection | null>;
2
+ import type { IComposition, ISection } from '../../types';
3
+ export declare const sectionContext: import("react").Context<ISection | IComposition | null>;
@@ -25,9 +25,7 @@ var AVAILABLE_SPECS = [
25
25
  'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEPOSITION',
26
26
  'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGESELECTOR',
27
27
  'CB_STYLE_PROP_BGMEDIA_SPEC_IMAGEFIT',
28
- 'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME',
29
- 'CB_STYLE_PROP_BGMEDIA_SPEC_VIDEOSELECTOR'
30
- // 'CB_STYLE_PROP_BGMEDIA_SPEC_MPLAY'
28
+ 'CB_STYLE_PROP_BGMEDIA_SPEC_ENDTIME'
31
29
  ];
32
30
  function UseCustomSectionBackgroundMediaData(specs, device) {
33
31
  return AVAILABLE_SPECS.reduce(function (acc, cur) {
@@ -0,0 +1,139 @@
1
+ /// <reference types="react" />
2
+ import type { Layout } from 'publ-echo/dist/lib';
3
+ import type { ResizeEventType } from 'publ-echo/dist/lib/GridItem/types';
4
+ import type { ComponentBlock, GroupBlock } from 'publ-echo/dist/lib/GridLayoutEditor/group';
5
+ import type { LayoutItem, Layouts } from 'publ-echo/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 {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
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 {};
@@ -0,0 +1,14 @@
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;
@@ -0,0 +1,3 @@
1
+ import type { IComposition } from './types';
2
+ export declare const sampleMockComposition1: IComposition;
3
+ export declare const sampleMockComposition2: IComposition;