pds-dev-kit-web-test 2.5.262 → 2.5.264

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 (115) hide show
  1. package/dist/src/common/assets/icons/fill/index.d.ts +0 -5
  2. package/dist/src/common/assets/icons/fill/index.js +1 -11
  3. package/dist/src/common/assets/icons/line/index.d.ts +0 -5
  4. package/dist/src/common/assets/icons/line/index.js +1 -11
  5. package/dist/src/common/hooks/useTooltip.js +1 -1
  6. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -3
  7. package/dist/src/common/styles/colorSet/PaletteColor_light.json +1 -3
  8. package/dist/src/common/styles/colorSet/SemanticColor.json +1 -3
  9. package/dist/src/common/styles/colorSet/UIColor.json +2 -6
  10. package/dist/src/common/styles/colorSet/index.d.ts +0 -10
  11. package/dist/src/common/styles/colorSet/ui-type.d.ts +0 -4
  12. package/dist/src/common/utils/SystemUIPositionGenerator/hoverTypeSystemUICssGenerator.js +1 -1
  13. package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +1 -1
  14. package/dist/src/desktop/components/Dropdown/Dropdown.js +4 -6
  15. package/dist/src/desktop/components/MainButton/MainButton.d.ts +1 -1
  16. package/dist/src/desktop/components/MainButton/MainButton.js +6 -20
  17. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +1 -1
  18. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +7 -21
  19. package/dist/src/mobile/components/MainButton/MainButton.d.ts +1 -1
  20. package/dist/src/mobile/components/MainButton/MainButton.js +6 -20
  21. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +1 -1
  22. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +6 -20
  23. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.d.ts +11 -0
  24. package/dist/src/sub/DynamicLayout/CompositionRenderer/ComponentBlockMatcher.js +56 -0
  25. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +9 -0
  26. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +217 -0
  27. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.d.ts +6 -0
  28. package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +27 -0
  29. package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.d.ts +12 -0
  30. package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.js +75 -0
  31. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +3 -0
  32. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +1 -1
  33. package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.js +12 -1
  34. package/dist/src/sub/DynamicLayout/components/SectionMatcher/SectionMatcher.js +5 -3
  35. package/dist/src/sub/DynamicLayout/gleStyles.d.ts +3 -0
  36. package/dist/src/sub/DynamicLayout/gleStyles.js +19 -0
  37. package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.d.ts +1 -1
  38. package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.js +6 -1
  39. package/dist/src/sub/DynamicLayout/mock_samplePage.js +132 -132
  40. package/dist/src/sub/DynamicLayout/mocks.d.ts +1111 -0
  41. package/dist/src/sub/DynamicLayout/mocks.js +4775 -0
  42. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +64 -15
  43. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +0 -5
  44. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +731 -200
  45. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.d.ts +2 -1
  46. package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +8 -5
  47. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +1 -0
  48. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +5 -0
  49. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +25 -23
  50. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +8 -0
  51. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +12 -0
  52. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +16 -2
  53. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_Backdrop.d.ts +1 -0
  54. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_Backdrop.js +13 -0
  55. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_Box.js +1 -1
  56. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_CB_BoxWithShadow.js +1 -1
  57. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +79 -1
  58. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.d.ts +2 -4
  59. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/getGoogleFonts.js +3 -14
  60. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.d.ts +1 -1
  61. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGoogleFonts/index.js +2 -3
  62. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/clsx.d.ts +7 -0
  63. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/clsx.js +33 -0
  64. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/colorUtil.d.ts +4 -4
  65. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/fontSizeAdjustment.d.ts +1 -0
  66. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/fontSizeAdjustment.js +333 -0
  67. package/dist/src/sub/DynamicLayout/sections/CustomSection/{hooks/useGroupDrag/utils.d.ts → newUtils/group.d.ts} +4 -1
  68. package/dist/src/sub/DynamicLayout/sections/CustomSection/{hooks/useGroupDrag/utils.js → newUtils/group.js} +14 -1
  69. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/replaceUndefinedValues.js +8 -1
  70. package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/textUtil.d.ts +1 -6
  71. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +18 -2
  72. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +2 -0
  73. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +5 -2
  74. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +12 -9
  75. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/parseStylePropTextSpec.d.ts +1 -1
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.d.ts +1 -1
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/stylePropParsers/types.js +1 -1
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -5
  79. package/dist/src/sub/DynamicLayout/sections/{CustomSection/FlexGridCustomSection.d.ts → FlexGridCustomSection.d.ts} +1 -5
  80. package/dist/src/sub/DynamicLayout/sections/{CustomSection/FlexGridCustomSection.js → FlexGridCustomSection.js} +44 -88
  81. package/dist/src/sub/DynamicLayout/types.d.ts +45 -1
  82. package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.d.ts +1 -1
  83. package/dist/src/sub/SandollFontKit/utils/appendSandollTagToHead.js +17 -11
  84. package/package.json +3 -3
  85. package/release-note.md +3 -2
  86. package/dist/src/common/assets/icons/fill/BringToFrontArrow.d.ts +0 -4
  87. package/dist/src/common/assets/icons/fill/BringToFrontArrow.js +0 -30
  88. package/dist/src/common/assets/icons/fill/DesktopSync.d.ts +0 -4
  89. package/dist/src/common/assets/icons/fill/DesktopSync.js +0 -30
  90. package/dist/src/common/assets/icons/fill/MoveBackwardArrow.d.ts +0 -4
  91. package/dist/src/common/assets/icons/fill/MoveBackwardArrow.js +0 -30
  92. package/dist/src/common/assets/icons/fill/MoveForwardArrow.d.ts +0 -4
  93. package/dist/src/common/assets/icons/fill/MoveForwardArrow.js +0 -30
  94. package/dist/src/common/assets/icons/fill/SendToBackArrow.d.ts +0 -4
  95. package/dist/src/common/assets/icons/fill/SendToBackArrow.js +0 -30
  96. package/dist/src/common/assets/icons/line/BringToFrontArrow.d.ts +0 -4
  97. package/dist/src/common/assets/icons/line/BringToFrontArrow.js +0 -30
  98. package/dist/src/common/assets/icons/line/DesktopSync.d.ts +0 -4
  99. package/dist/src/common/assets/icons/line/DesktopSync.js +0 -30
  100. package/dist/src/common/assets/icons/line/MoveBackwardArrow.d.ts +0 -4
  101. package/dist/src/common/assets/icons/line/MoveBackwardArrow.js +0 -30
  102. package/dist/src/common/assets/icons/line/MoveForwardArrow.d.ts +0 -4
  103. package/dist/src/common/assets/icons/line/MoveForwardArrow.js +0 -30
  104. package/dist/src/common/assets/icons/line/SendToBackArrow.d.ts +0 -4
  105. package/dist/src/common/assets/icons/line/SendToBackArrow.js +0 -30
  106. package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +0 -14038
  107. package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +0 -35827
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.d.ts +0 -76
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/btnTypes.js +0 -2
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.d.ts +0 -38
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/types.js +0 -2
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.d.ts +0 -1
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.js +0 -8
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.d.ts +0 -22
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +0 -273
@@ -1,8 +1,30 @@
1
1
  /// <reference types="react" />
2
+ import type { ComponentBlock, GroupBlock } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
2
3
  import type { Layout } from 'publ-echo/dist/lib';
3
4
  import type { ResizeEventType } from 'publ-echo/dist/lib/GridItem/types';
4
5
  import type { LayoutItem, Layouts } from 'publ-echo/dist/lib/GridLayoutEditor/types';
5
6
  export type TypeOfSectionAction = 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
+ };
27
+ export type BlockPayloadType = PayloadCBType | PayloadGBType | PayloadBulkType;
6
28
  type ActionHandlerPayload = {
7
29
  '@EXP_IFRAME/IFRAME_ON_LOADED': {
8
30
  event: React.SyntheticEvent<HTMLIFrameElement, Event>;
@@ -23,15 +45,8 @@ type ActionHandlerPayload = {
23
45
  placeholder?: LayoutItem;
24
46
  e?: ResizeEventType;
25
47
  node?: HTMLElement;
26
- };
27
- '@CUSTOMSECTION/GROUP_DRAG_STOP': {
28
- layout: Layout;
29
- prev?: LayoutItem;
30
- item?: LayoutItem;
31
- placeholder?: LayoutItem;
32
- e?: ResizeEventType;
33
- node?: HTMLElement;
34
- outerBasedChildrenPositions: LayoutItem[];
48
+ blockId: string;
49
+ workDir: string;
35
50
  };
36
51
  '@CUSTOMSECTION/CB_RESIZE_STOP': {
37
52
  layout: Layout;
@@ -40,6 +55,8 @@ type ActionHandlerPayload = {
40
55
  placeholder?: LayoutItem;
41
56
  e?: ResizeEventType;
42
57
  node?: HTMLElement;
58
+ blockId: string;
59
+ workDir: string;
43
60
  };
44
61
  '@CUSTOMSECTION/CB_AUTO_FIT_CONTENT': {
45
62
  layout: Layout;
@@ -51,34 +68,66 @@ type ActionHandlerPayload = {
51
68
  details: {
52
69
  hadPaddingChanged: boolean;
53
70
  };
71
+ blockId: string;
72
+ workDir: string;
54
73
  };
55
74
  '@CUSTOMSECTION/PLACEMENT_CHANGED': {
56
75
  layout: Layout;
57
76
  layouts: Layouts;
58
77
  };
59
- '@CUSTOMSECTION/CB_CLICKED': {
60
- id: number;
78
+ '@CUSTOMSECTION/BLOCK_CLICKED': {
79
+ block: BlockPayloadType;
61
80
  };
62
81
  '@CUSTOMSECTION/CB_RIGHT_CLICKED': {
63
- id: number | 'group';
64
82
  e: React.MouseEvent;
83
+ block: BlockPayloadType;
65
84
  };
66
85
  '@CUSTOMSECTION/SECTION_CLICKED': {
67
86
  sectionId: number;
68
87
  };
69
- '@CUSTOMSECTION/GROUP_CREATED': {
88
+ '@CUSTOMSECTION/SECTION_RIGHT_CLICKED': {
89
+ sectionId: number;
90
+ e: React.MouseEvent;
91
+ };
92
+ '@CUSTOMSECTION/GROUP_RIGHT_CLICKED': {
93
+ e: React.MouseEvent;
94
+ block: PayloadGBType;
95
+ isEditingGroup: boolean;
96
+ };
97
+ '@CUSTOMSECTION/BULK_RIGHT_CLICKED': {
98
+ e: React.MouseEvent;
99
+ block: PayloadBulkType;
100
+ };
101
+ '@CUSTOMSECTION/BULK_CREATED': {
70
102
  message: string;
71
103
  data: LayoutItem;
72
104
  };
73
- '@CUSTOMSECTION/GROUP_DISMISSED': {
105
+ '@CUSTOMSECTION/BULK_DISMISSED': {
74
106
  message: string;
107
+ editingGroupBlock: string;
75
108
  };
76
109
  '@CUSTOMSECTION/COLLISION_NOT_FOUND': {
77
110
  message: string;
78
111
  };
79
- '@CUSTOMSECTION/ESCAPE_ONE_FROM_GROUP': {
112
+ '@CUSTOMSECTION/ESCAPE_ONE_FROM_BULK': {
80
113
  id: string;
81
114
  };
115
+ '@CUSTOMSECTION/BULK_DRAG_STOP': {
116
+ updatedBlocks: UpdatedBlock[];
117
+ };
118
+ '@CUSTOMSECTION/GROUP_DRAG_STOP': {
119
+ updatedBlocks: UpdatedBlock[];
120
+ workDir: string;
121
+ };
122
+ '@CUSTOMSECTION/WORKDIR_CHANGED': {
123
+ workDir: string;
124
+ };
125
+ };
126
+ export type UpdatedBlock = {
127
+ blockId: string;
128
+ cbId: number;
129
+ x: number;
130
+ y: number;
82
131
  };
83
132
  type ActionMap<M extends {
84
133
  [index: string]: any;
@@ -5,10 +5,5 @@ export type LayoutsType = {
5
5
  sm: Layout;
6
6
  lg: Layout;
7
7
  };
8
- export type CustomSectionImperativeHandleRef = {
9
- selectCB: (cbId: number | 'group') => void;
10
- selectCBInBulk: (cbIds: string[]) => void;
11
- };
12
- export declare const S_gleStyles: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
8
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ISection & React.RefAttributes<unknown>>>;
14
9
  export default _default;