pds-dev-kit-web-test 2.5.259 → 2.5.261

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