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

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 (140) hide show
  1. package/dist/src/common/assets/icons/editorNavigationIcons/downIcons.d.ts +12 -0
  2. package/dist/src/common/assets/icons/editorNavigationIcons/downIcons.js +76 -0
  3. package/dist/src/common/assets/icons/editorNavigationIcons/index.d.ts +43 -0
  4. package/dist/src/common/assets/icons/editorNavigationIcons/index.js +49 -0
  5. package/dist/src/common/assets/icons/editorNavigationIcons/leftIcons.d.ts +12 -0
  6. package/dist/src/common/assets/icons/editorNavigationIcons/leftIcons.js +76 -0
  7. package/dist/src/common/assets/icons/editorNavigationIcons/rightIcons.d.ts +12 -0
  8. package/dist/src/common/assets/icons/editorNavigationIcons/rightIcons.js +76 -0
  9. package/dist/src/common/assets/icons/editorNavigationIcons/upIcons.d.ts +12 -0
  10. package/dist/src/common/assets/icons/editorNavigationIcons/upIcons.js +76 -0
  11. package/dist/src/common/hooks/useTooltip.js +1 -1
  12. package/dist/src/common/styles/colorSet/index.d.ts +2 -2
  13. package/dist/src/common/styles/colorSet/index.js +2 -2
  14. package/dist/src/common/types/icon.d.ts +3 -1
  15. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  16. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  17. package/dist/src/hybrid/components/Icon/Icon.js +6 -0
  18. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +20 -0
  19. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +1132 -0
  20. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +4 -1
  21. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +4 -2
  22. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +53 -53
  23. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.d.ts +11 -0
  24. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionBackground.js +45 -0
  25. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +9 -0
  26. package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +79 -0
  27. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  28. package/dist/src/sub/DynamicLayout/DynamicLayout.js +3 -2
  29. package/dist/src/sub/DynamicLayout/components/Section/sectionContext.d.ts +2 -2
  30. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +12 -0
  31. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +76 -0
  32. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +4 -0
  33. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +47 -0
  34. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +12 -0
  35. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +76 -0
  36. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +12 -0
  37. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +76 -0
  38. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +12 -0
  39. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +76 -0
  40. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +40 -0
  41. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +36 -177
  42. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
  43. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
  44. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
  45. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
  46. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
  47. package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
  48. package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +139 -0
  49. package/dist/src/sub/DynamicLayout/compositionActionTypes.js +2 -0
  50. package/dist/src/sub/DynamicLayout/compositionQueryContext.d.ts +8 -0
  51. package/dist/src/sub/DynamicLayout/compositionQueryContext.js +14 -0
  52. package/dist/src/sub/DynamicLayout/mock_composition.d.ts +3 -0
  53. package/dist/src/sub/DynamicLayout/mock_composition.js +801 -0
  54. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -0
  55. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1099 -0
  56. package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -0
  57. package/dist/src/sub/DynamicLayout/mock_contentsList.js +1082 -0
  58. package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +810 -0
  59. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +822 -0
  60. package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
  61. package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
  62. package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -1
  63. package/dist/src/sub/DynamicLayout/mock_video_cb.js +4 -5
  64. package/dist/src/sub/DynamicLayout/mocks.d.ts +8 -961
  65. package/dist/src/sub/DynamicLayout/mocks.js +4287 -7
  66. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +13 -3
  67. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +18 -2
  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 +230 -2
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +17 -0
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +59 -0
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +31 -0
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +118 -0
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +31 -0
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +191 -0
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +21 -0
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +117 -0
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +4 -0
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +889 -0
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +27 -0
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +96 -0
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +50 -0
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +905 -0
  84. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.d.ts +1 -0
  85. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/index.js +8 -0
  86. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +90 -0
  87. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.js +2 -0
  88. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +8 -0
  89. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +112 -0
  90. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.d.ts +17 -0
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsListCore.js +39 -0
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +27 -0
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +115 -0
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +23 -0
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +176 -0
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +30 -0
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +351 -0
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.d.ts +1 -0
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/index.js +8 -0
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +46 -0
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.js +2 -0
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +51 -4
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +8 -0
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +225 -0
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +15 -0
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +39 -0
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +31 -0
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +118 -0
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +31 -0
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +191 -0
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +21 -0
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +117 -0
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +4 -0
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +889 -0
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +27 -0
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +96 -0
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.d.ts +1 -0
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/index.js +8 -0
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +48 -0
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +852 -0
  121. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +80 -0
  122. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.js +2 -0
  123. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +50 -7
  124. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +2 -27
  125. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +45 -3
  126. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +1 -1
  127. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +27 -10
  128. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +3 -1
  129. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/effectPropParsers/parseEffectPropEntAnim.d.ts +4 -4
  130. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/layoutPropParsers/parseLayoutPropPadding.d.ts +2 -2
  131. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.d.ts +14 -0
  132. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseCompositionPlacement.js +26 -0
  133. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +2 -2
  134. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  135. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +52 -3
  136. package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -0
  137. package/dist/src/sub/DynamicLayout/types.d.ts +48 -15
  138. package/package.json +2 -2
  139. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +0 -6
  140. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +0 -27
@@ -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;
@@ -184,29 +182,31 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
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 { CB_VALUE_TYPE, CCB_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: CCB_VALUE_TYPE | CB_VALUE_TYPE;
6
+ queryPath: string;
7
+ queryData: QueryData | undefined;
8
+ compositions: IComposition[];
9
+ }): JSX.Element[];
@@ -0,0 +1,79 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.createCompositions = void 0;
22
+ var jsx_runtime_1 = require("react/jsx-runtime");
23
+ require("react");
24
+ var styled_components_1 = __importDefault(require("styled-components"));
25
+ var compositionQueryContext_1 = require("../compositionQueryContext");
26
+ var Composition_1 = __importDefault(require("./Composition"));
27
+ function createCompositions(_a) {
28
+ var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions;
29
+ var isQueryDataConnected = valueType === 'DATA' || valueType === 'DELEGATEDDATA';
30
+ // 직접 입력 유형인 경우
31
+ if (!isQueryDataConnected) {
32
+ var valueTypeCompositions = compositions.filter(function (composition) { return !composition.isDefault; });
33
+ // MANUAL ITEM이 없는 경우
34
+ if (!valueTypeCompositions.length) {
35
+ return [
36
+ (0, jsx_runtime_1.jsx)(S_EmptyLayer, { children: "\uC544\uC774\uD15C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uC544\uC774\uD15C\uC744 \uCD94\uAC00\uD574\uC8FC\uC138\uC694." }, "empty-manual-item")
37
+ ];
38
+ }
39
+ return valueTypeCompositions.map(function (composition) { return ((0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id)); });
40
+ }
41
+ if (!compositions.length) {
42
+ return [(0, jsx_runtime_1.jsx)("div", { children: "EMPTY TEXT" }, "empty")];
43
+ }
44
+ // 데이터 연결 유형이나, 쿼리 데이터나 키가 없는 경우
45
+ if (queryPath === 'NONE' || !queryPath || !queryData) {
46
+ return [(0, jsx_runtime_1.jsx)(S_EmptyLayer, { children: "\uC544\uC9C1 \uC5F0\uACB0\uB41C \uCFFC\uB9AC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }, "no-query")];
47
+ }
48
+ var parsedQueryPath = removeFirstSegment(queryPath);
49
+ var queryDataValue = queryData[parsedQueryPath];
50
+ var queryComposition = compositions.find(function (composition) { return composition.isDefault; });
51
+ // 쿼리 데이터와 키가 있으나, 쿼리 데이터에 해당 키가 없는 경우
52
+ if (!queryDataValue) {
53
+ return [(0, jsx_runtime_1.jsx)(S_EmptyLayer, { children: "\uC5F0\uACB0\uB41C \uB370\uC774\uD130\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }, "not-found")];
54
+ }
55
+ // 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
56
+ if (!queryDataValue.length) {
57
+ return [(0, jsx_runtime_1.jsx)(S_EmptyLayer, { children: "\uC544\uC9C1 \uBCF4\uC5EC\uC904 \uCF58\uD150\uCE20\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }, "empty-item")];
58
+ }
59
+ 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)); });
60
+ }
61
+ exports.createCompositions = createCompositions;
62
+ function removeFirstSegment(path) {
63
+ var segments = path.split('/');
64
+ return segments.slice(1).join('/');
65
+ }
66
+ var S_EmptyLayer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: rgba(0, 0, 0, 0.6);\n bottom: 0;\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n left: 0;\n line-height: ", ";\n padding: ", ";\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n word-break: keep-all;\n"], ["\n align-items: center;\n background-color: rgba(0, 0, 0, 0.6);\n bottom: 0;\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n left: 0;\n line-height: ", ";\n padding: ", ";\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n word-break: keep-all;\n"])), function (_a) {
67
+ var theme = _a.theme;
68
+ return theme.desktopFontSize.body2;
69
+ }, function (_a) {
70
+ var theme = _a.theme;
71
+ return theme.fontWeight.bold;
72
+ }, function (_a) {
73
+ var theme = _a.theme;
74
+ return theme.desktopLineHeight.body2;
75
+ }, function (_a) {
76
+ var theme = _a.theme;
77
+ return theme.spacing.spacingE;
78
+ });
79
+ var templateObject_1;
@@ -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
  }
@@ -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>;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type IconType from '../../IconType';
3
+ export declare const ArrowDownDesign01: ({ color, size, ...rest }: IconType) => JSX.Element;
4
+ export declare const ArrowDownDesign02: ({ color, size, ...rest }: IconType) => JSX.Element;
5
+ export declare const ArrowDownDesign03: ({ color, size, ...rest }: IconType) => JSX.Element;
6
+ export declare const ArrowDownDesign04: ({ color, size, ...rest }: IconType) => JSX.Element;
7
+ export declare const ArrowDownDesign05: ({ color, size, ...rest }: IconType) => JSX.Element;
8
+ export declare const ArrowDownDesign06: ({ color, size, ...rest }: IconType) => JSX.Element;
9
+ export declare const ArrowDownDesign07: ({ color, ...rest }: IconType) => JSX.Element;
10
+ export declare const ArrowDownDesign08: ({ color, ...rest }: IconType) => JSX.Element;
11
+ export declare const ArrowDownDesign09: ({ color, ...rest }: IconType) => JSX.Element;
12
+ export declare const ArrowDownDesign10: ({ color, size, ...rest }: IconType) => JSX.Element;
@@ -0,0 +1,76 @@
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 __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ArrowDownDesign10 = exports.ArrowDownDesign09 = exports.ArrowDownDesign08 = exports.ArrowDownDesign07 = exports.ArrowDownDesign06 = exports.ArrowDownDesign05 = exports.ArrowDownDesign04 = exports.ArrowDownDesign03 = exports.ArrowDownDesign02 = exports.ArrowDownDesign01 = void 0;
26
+ var jsx_runtime_1 = require("react/jsx-runtime");
27
+ var ArrowDownDesign01 = function (_a) {
28
+ var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
29
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: ".5", d: "M15.577375,18.497375 L8.666375,11.586375 C8.341375,11.261375 8.341375,10.733375 8.666375,10.408375 L15.577375,3.497375", transform: "rotate(-90 12 10.997)" }) })));
30
+ };
31
+ exports.ArrowDownDesign01 = ArrowDownDesign01;
32
+ var ArrowDownDesign02 = function (_a) {
33
+ var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
34
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", d: "M15.5773125,18.5003005 L8.6668125,11.5898005 C8.3413125,11.2643005 8.3413125,10.7363005 8.6668125,10.4108005 L15.5773125,3.5003005", transform: "rotate(-90 12 11)" }) })));
35
+ };
36
+ exports.ArrowDownDesign02 = ArrowDownDesign02;
37
+ var ArrowDownDesign03 = function (_a) {
38
+ var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
39
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2.5", d: "M15.5774,18.5 L8.6664,11.589 C8.3414,11.264 8.3414,10.736 8.6664,10.411 L15.5774,3.5", transform: "rotate(-90 12 11)" }) })));
40
+ };
41
+ exports.ArrowDownDesign03 = ArrowDownDesign03;
42
+ var ArrowDownDesign04 = function (_a) {
43
+ var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
44
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("polyline", { fill: "none", stroke: color, strokeLinecap: "square", strokeWidth: "3", points: "8.001 3.499 16.001 11.499 8.001 19.501", transform: "rotate(90 12 11.5)" }) })));
45
+ };
46
+ exports.ArrowDownDesign04 = ArrowDownDesign04;
47
+ var ArrowDownDesign05 = function (_a) {
48
+ var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
49
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M4.55225015,11.9999287 L21,11.9999287 M10.4989308,19.4992872 L3,12.0003564 L10.4989308,4.5", transform: "rotate(-90 12 12)" }) })));
50
+ };
51
+ exports.ArrowDownDesign05 = ArrowDownDesign05;
52
+ var ArrowDownDesign06 = function (_a) {
53
+ var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
54
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: "none", stroke: color, strokeLinecap: "square", strokeWidth: "3", d: "M4.55225015,11.9999287 L21,11.9999287 M10.4989308,19.4992872 L3,12.0003564 L10.4989308,4.5", transform: "rotate(-90 12 12)" }) })));
55
+ };
56
+ exports.ArrowDownDesign06 = ArrowDownDesign06;
57
+ var ArrowDownDesign07 = function (_a) {
58
+ var color = _a.color, rest = __rest(_a, ["color"]);
59
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: "24", height: "32", viewBox: "0 0 24 32" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M-1.44774985,16.0002851 L27,16.0002851 M4.49893076,23.4996436 L-3,16.0007128 L4.49893076,8.50035641", transform: "rotate(-90 12 16)" }) })));
60
+ };
61
+ exports.ArrowDownDesign07 = ArrowDownDesign07;
62
+ var ArrowDownDesign08 = function (_a) {
63
+ var color = _a.color, rest = __rest(_a, ["color"]);
64
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: "24", height: "32", viewBox: "0 0 24 32" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: "none", stroke: color, strokeLinecap: "square", strokeWidth: "3", d: "M-0.448106259,15.8002851 L25.9996436,15.8002851 M5.49857435,23.2996436 L-2.00035641,15.8007128 L5.49857435,8.30035641", transform: "matrix(0 -1 -1 0 27.8 27.8)" }) })));
65
+ };
66
+ exports.ArrowDownDesign08 = ArrowDownDesign08;
67
+ var ArrowDownDesign09 = function (_a) {
68
+ var color = _a.color, rest = __rest(_a, ["color"]);
69
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: "24", height: "32", viewBox: "0 0 24 32" }, rest, { children: (0, jsx_runtime_1.jsx)("path", { fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M11.805,12.066 C11.805,12.066 4,19.871 4,19.871 L28.537,19.871", transform: "scale(1 -1) rotate(90 32.237 0)" }) })));
70
+ };
71
+ exports.ArrowDownDesign09 = ArrowDownDesign09;
72
+ var ArrowDownDesign10 = function (_a) {
73
+ var color = _a.color, size = _a.size, rest = __rest(_a, ["color", "size"]);
74
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest, { children: (0, jsx_runtime_1.jsx)("polygon", { fill: color, fillRule: "evenodd", points: "12 6 21 21 3 21", transform: "rotate(180 12 13.5)" }) })));
75
+ };
76
+ exports.ArrowDownDesign10 = ArrowDownDesign10;
@@ -0,0 +1,4 @@
1
+ export { ArrowDownDesign01 as ic_arrow_down_design_01, ArrowDownDesign02 as ic_arrow_down_design_02, ArrowDownDesign03 as ic_arrow_down_design_03, ArrowDownDesign04 as ic_arrow_down_design_04, ArrowDownDesign05 as ic_arrow_down_design_05, ArrowDownDesign06 as ic_arrow_down_design_06, ArrowDownDesign07 as ic_arrow_down_design_07, ArrowDownDesign08 as ic_arrow_down_design_08, ArrowDownDesign09 as ic_arrow_down_design_09, ArrowDownDesign10 as ic_arrow_down_design_10 } from './downIcons';
2
+ export { ArrowLeftDesign01 as ic_arrow_left_design_01, ArrowLeftDesign02 as ic_arrow_left_design_02, ArrowLeftDesign03 as ic_arrow_left_design_03, ArrowLeftDesign04 as ic_arrow_left_design_04, ArrowLeftDesign05 as ic_arrow_left_design_05, ArrowLeftDesign06 as ic_arrow_left_design_06, ArrowLeftDesign07 as ic_arrow_left_design_07, ArrowLeftDesign08 as ic_arrow_left_design_08, ArrowLeftDesign09 as ic_arrow_left_design_09, ArrowLeftDesign10 as ic_arrow_left_design_10 } from './leftIcons';
3
+ export { ArrowRightDesign01 as ic_arrow_right_design_01, ArrowRightDesign02 as ic_arrow_right_design_02, ArrowRightDesign03 as ic_arrow_right_design_03, ArrowRightDesign04 as ic_arrow_right_design_04, ArrowRightDesign05 as ic_arrow_right_design_05, ArrowRightDesign06 as ic_arrow_right_design_06, ArrowRightDesign07 as ic_arrow_right_design_07, ArrowRightDesign08 as ic_arrow_right_design_08, ArrowRightDesign09 as ic_arrow_right_design_09, ArrowRightDesign10 as ic_arrow_right_design_10 } from './rightIcons';
4
+ export { ArrowUpDesign01 as ic_arrow_up_design_01, ArrowUpDesign02 as ic_arrow_up_design_02, ArrowUpDesign03 as ic_arrow_up_design_03, ArrowUpDesign04 as ic_arrow_up_design_04, ArrowUpDesign05 as ic_arrow_up_design_05, ArrowUpDesign06 as ic_arrow_up_design_06, ArrowUpDesign07 as ic_arrow_up_design_07, ArrowUpDesign08 as ic_arrow_up_design_08, ArrowUpDesign09 as ic_arrow_up_design_09, ArrowUpDesign10 as ic_arrow_up_design_10 } from './upIcons';
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ic_arrow_up_design_10 = exports.ic_arrow_up_design_09 = exports.ic_arrow_up_design_08 = exports.ic_arrow_up_design_07 = exports.ic_arrow_up_design_06 = exports.ic_arrow_up_design_05 = exports.ic_arrow_up_design_04 = exports.ic_arrow_up_design_03 = exports.ic_arrow_up_design_02 = exports.ic_arrow_up_design_01 = exports.ic_arrow_right_design_10 = exports.ic_arrow_right_design_09 = exports.ic_arrow_right_design_08 = exports.ic_arrow_right_design_07 = exports.ic_arrow_right_design_06 = exports.ic_arrow_right_design_05 = exports.ic_arrow_right_design_04 = exports.ic_arrow_right_design_03 = exports.ic_arrow_right_design_02 = exports.ic_arrow_right_design_01 = exports.ic_arrow_left_design_10 = exports.ic_arrow_left_design_09 = exports.ic_arrow_left_design_08 = exports.ic_arrow_left_design_07 = exports.ic_arrow_left_design_06 = exports.ic_arrow_left_design_05 = exports.ic_arrow_left_design_04 = exports.ic_arrow_left_design_03 = exports.ic_arrow_left_design_02 = exports.ic_arrow_left_design_01 = exports.ic_arrow_down_design_10 = exports.ic_arrow_down_design_09 = exports.ic_arrow_down_design_08 = exports.ic_arrow_down_design_07 = exports.ic_arrow_down_design_06 = exports.ic_arrow_down_design_05 = exports.ic_arrow_down_design_04 = exports.ic_arrow_down_design_03 = exports.ic_arrow_down_design_02 = exports.ic_arrow_down_design_01 = void 0;
4
+ var downIcons_1 = require("./downIcons");
5
+ Object.defineProperty(exports, "ic_arrow_down_design_01", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign01; } });
6
+ Object.defineProperty(exports, "ic_arrow_down_design_02", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign02; } });
7
+ Object.defineProperty(exports, "ic_arrow_down_design_03", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign03; } });
8
+ Object.defineProperty(exports, "ic_arrow_down_design_04", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign04; } });
9
+ Object.defineProperty(exports, "ic_arrow_down_design_05", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign05; } });
10
+ Object.defineProperty(exports, "ic_arrow_down_design_06", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign06; } });
11
+ Object.defineProperty(exports, "ic_arrow_down_design_07", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign07; } });
12
+ Object.defineProperty(exports, "ic_arrow_down_design_08", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign08; } });
13
+ Object.defineProperty(exports, "ic_arrow_down_design_09", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign09; } });
14
+ Object.defineProperty(exports, "ic_arrow_down_design_10", { enumerable: true, get: function () { return downIcons_1.ArrowDownDesign10; } });
15
+ var leftIcons_1 = require("./leftIcons");
16
+ Object.defineProperty(exports, "ic_arrow_left_design_01", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign01; } });
17
+ Object.defineProperty(exports, "ic_arrow_left_design_02", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign02; } });
18
+ Object.defineProperty(exports, "ic_arrow_left_design_03", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign03; } });
19
+ Object.defineProperty(exports, "ic_arrow_left_design_04", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign04; } });
20
+ Object.defineProperty(exports, "ic_arrow_left_design_05", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign05; } });
21
+ Object.defineProperty(exports, "ic_arrow_left_design_06", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign06; } });
22
+ Object.defineProperty(exports, "ic_arrow_left_design_07", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign07; } });
23
+ Object.defineProperty(exports, "ic_arrow_left_design_08", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign08; } });
24
+ Object.defineProperty(exports, "ic_arrow_left_design_09", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign09; } });
25
+ Object.defineProperty(exports, "ic_arrow_left_design_10", { enumerable: true, get: function () { return leftIcons_1.ArrowLeftDesign10; } });
26
+ var rightIcons_1 = require("./rightIcons");
27
+ Object.defineProperty(exports, "ic_arrow_right_design_01", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign01; } });
28
+ Object.defineProperty(exports, "ic_arrow_right_design_02", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign02; } });
29
+ Object.defineProperty(exports, "ic_arrow_right_design_03", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign03; } });
30
+ Object.defineProperty(exports, "ic_arrow_right_design_04", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign04; } });
31
+ Object.defineProperty(exports, "ic_arrow_right_design_05", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign05; } });
32
+ Object.defineProperty(exports, "ic_arrow_right_design_06", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign06; } });
33
+ Object.defineProperty(exports, "ic_arrow_right_design_07", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign07; } });
34
+ Object.defineProperty(exports, "ic_arrow_right_design_08", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign08; } });
35
+ Object.defineProperty(exports, "ic_arrow_right_design_09", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign09; } });
36
+ Object.defineProperty(exports, "ic_arrow_right_design_10", { enumerable: true, get: function () { return rightIcons_1.ArrowRightDesign10; } });
37
+ var upIcons_1 = require("./upIcons");
38
+ Object.defineProperty(exports, "ic_arrow_up_design_01", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign01; } });
39
+ Object.defineProperty(exports, "ic_arrow_up_design_02", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign02; } });
40
+ Object.defineProperty(exports, "ic_arrow_up_design_03", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign03; } });
41
+ Object.defineProperty(exports, "ic_arrow_up_design_04", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign04; } });
42
+ Object.defineProperty(exports, "ic_arrow_up_design_05", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign05; } });
43
+ Object.defineProperty(exports, "ic_arrow_up_design_06", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign06; } });
44
+ Object.defineProperty(exports, "ic_arrow_up_design_07", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign07; } });
45
+ Object.defineProperty(exports, "ic_arrow_up_design_08", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign08; } });
46
+ Object.defineProperty(exports, "ic_arrow_up_design_09", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign09; } });
47
+ Object.defineProperty(exports, "ic_arrow_up_design_10", { enumerable: true, get: function () { return upIcons_1.ArrowUpDesign10; } });
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type IconType from '../../IconType';
3
+ export declare const ArrowLeftDesign01: ({ color, size, ...rest }: IconType) => JSX.Element;
4
+ export declare const ArrowLeftDesign02: ({ color, size, ...rest }: IconType) => JSX.Element;
5
+ export declare const ArrowLeftDesign03: ({ color, size, ...rest }: IconType) => JSX.Element;
6
+ export declare const ArrowLeftDesign04: ({ color, size, ...rest }: IconType) => JSX.Element;
7
+ export declare const ArrowLeftDesign05: ({ color, size, ...rest }: IconType) => JSX.Element;
8
+ export declare const ArrowLeftDesign06: ({ color, size, ...rest }: IconType) => JSX.Element;
9
+ export declare const ArrowLeftDesign07: ({ color, ...rest }: IconType) => JSX.Element;
10
+ export declare const ArrowLeftDesign08: ({ color, ...rest }: IconType) => JSX.Element;
11
+ export declare const ArrowLeftDesign09: ({ color, ...rest }: IconType) => JSX.Element;
12
+ export declare const ArrowLeftDesign10: ({ color, size, ...rest }: IconType) => JSX.Element;