pds-dev-kit-web-test 2.2.48 → 2.2.60

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 (128) hide show
  1. package/dist/src/common/assets/icons/fill/Home.d.ts +4 -0
  2. package/dist/src/common/assets/icons/fill/Home.js +30 -0
  3. package/dist/src/common/assets/icons/fill/PappType.d.ts +4 -0
  4. package/dist/src/common/assets/icons/fill/PappType.js +30 -0
  5. package/dist/src/common/assets/icons/fill/Plan.d.ts +4 -0
  6. package/dist/src/common/assets/icons/fill/Plan.js +30 -0
  7. package/dist/src/common/assets/icons/fill/Sales.d.ts +4 -0
  8. package/dist/src/common/assets/icons/fill/Sales.js +30 -0
  9. package/dist/src/common/assets/icons/fill/SellerIntro.d.ts +4 -0
  10. package/dist/src/common/assets/icons/fill/SellerIntro.js +30 -0
  11. package/dist/src/common/assets/icons/fill/Shoppingbag.d.ts +4 -0
  12. package/dist/src/common/assets/icons/fill/Shoppingbag.js +30 -0
  13. package/dist/src/common/assets/icons/fill/Site.d.ts +4 -0
  14. package/dist/src/common/assets/icons/fill/Site.js +30 -0
  15. package/dist/src/common/assets/icons/fill/StarShaped.d.ts +4 -0
  16. package/dist/src/common/assets/icons/fill/StarShaped.js +30 -0
  17. package/dist/src/common/assets/icons/fill/Target.d.ts +4 -0
  18. package/dist/src/common/assets/icons/fill/Target.js +30 -0
  19. package/dist/src/common/assets/icons/fill/User.d.ts +4 -0
  20. package/dist/src/common/assets/icons/fill/User.js +30 -0
  21. package/dist/src/common/assets/icons/fill/Xmark.d.ts +4 -0
  22. package/dist/src/common/assets/icons/fill/Xmark.js +30 -0
  23. package/dist/src/common/assets/icons/fill/index.d.ts +11 -0
  24. package/dist/src/common/assets/icons/fill/index.js +23 -1
  25. package/dist/src/common/assets/icons/line/Site.d.ts +4 -0
  26. package/dist/src/common/assets/icons/line/Site.js +30 -0
  27. package/dist/src/common/assets/icons/line/StarShaped.d.ts +4 -0
  28. package/dist/src/common/assets/icons/line/StarShaped.js +30 -0
  29. package/dist/src/common/assets/icons/line/Ticket.d.ts +4 -0
  30. package/dist/src/common/assets/icons/line/Ticket.js +30 -0
  31. package/dist/src/common/assets/icons/line/User.d.ts +4 -0
  32. package/dist/src/common/assets/icons/line/User.js +30 -0
  33. package/dist/src/common/assets/icons/line/index.d.ts +4 -0
  34. package/dist/src/common/assets/icons/line/index.js +8 -0
  35. package/dist/src/common/services/i18n/resources/en.json +2 -1
  36. package/dist/src/common/services/i18n/resources/es.json +2 -1
  37. package/dist/src/common/services/i18n/resources/fil.json +2 -1
  38. package/dist/src/common/services/i18n/resources/index.d.ts +7 -0
  39. package/dist/src/common/services/i18n/resources/ja.json +2 -1
  40. package/dist/src/common/services/i18n/resources/ko.json +2 -1
  41. package/dist/src/common/services/i18n/resources/zh-cn.json +2 -1
  42. package/dist/src/common/services/i18n/resources/zh-tw.json +2 -1
  43. package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +6 -1
  44. package/dist/src/common/styles/colorSet/PaletteColor_light.json +7 -2
  45. package/dist/src/common/styles/colorSet/UIColor.json +8 -1
  46. package/dist/src/common/styles/colorSet/index.d.ts +19 -2
  47. package/dist/src/common/styles/colorSet/index.js +2 -2
  48. package/dist/src/common/styles/colorSet/ui-type.d.ts +7 -0
  49. package/dist/src/common/types/components.d.ts +1 -0
  50. package/dist/src/desktop/components/BasicListItem/RightBox/MainButton.js +1 -2
  51. package/dist/src/desktop/components/BasicListItem/RightBox/Switch.js +1 -1
  52. package/dist/src/desktop/components/ContextMenuItem/ContextMenuItem.js +17 -5
  53. package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.js +6 -1
  54. package/dist/src/desktop/components/DesktopHeaderBar/DesktopHeaderBar.js +1 -1
  55. package/dist/src/desktop/components/DynamicDesktopNavBar/blocks/SecondaryMenu.js +68 -3
  56. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/DynamicDesktopNavBarTemplates.d.ts +0 -1
  57. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.d.ts +0 -1
  58. package/dist/src/desktop/components/DynamicDesktopNavBar/templates/constants.js +5 -6
  59. package/dist/src/desktop/components/TextButton/TextButton.d.ts +3 -2
  60. package/dist/src/desktop/components/TextButton/TextButton.js +15 -2
  61. package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.d.ts +2 -1
  62. package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.js +20 -9
  63. package/dist/src/mobile/components/BasicListItem/RightBox/MainButton.js +1 -2
  64. package/dist/src/mobile/components/BasicListItem/RightBox/Switch.js +1 -1
  65. package/dist/src/mobile/components/ContextMenuItem/ContextMenuItem.js +15 -3
  66. package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
  67. package/dist/src/sub/DynamicLayout/DynamicLayout.js +4 -3
  68. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.d.ts +3 -2
  69. package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +18 -6
  70. package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.js +3 -2
  71. package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.d.ts +6 -0
  72. package/dist/src/sub/DynamicLayout/hooks/useCustomSectionShortcut/useCustomSectionShortcut.js +50 -0
  73. package/dist/src/sub/DynamicLayout/pagesPreviewMock.d.ts +2467 -2
  74. package/dist/src/sub/DynamicLayout/pagesPreviewMock.js +4321 -15
  75. package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +23 -1
  76. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +10 -2
  77. package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +292 -26
  78. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.d.ts +2 -1
  79. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlock.js +2 -2
  80. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.d.ts +2 -1
  81. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +14 -10
  82. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.d.ts +2 -2
  83. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +4 -2
  84. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.d.ts +2 -2
  85. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Divider/Divider.js +4 -2
  86. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/Embed.d.ts +5 -0
  87. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/Embed.js +48 -0
  88. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/EmbedIframe.d.ts +8 -0
  89. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/EmbedIframe.js +45 -0
  90. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/IframeDenied.d.ts +3 -0
  91. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/IframeDenied.js +21 -0
  92. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/constant.d.ts +1 -0
  93. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/constant.js +9 -0
  94. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/types.d.ts +6 -0
  95. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Embed/types.js +2 -0
  96. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.d.ts +2 -2
  97. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +4 -2
  98. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.d.ts +2 -2
  99. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/RichText/RichText.js +4 -2
  100. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.d.ts +2 -2
  101. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +6 -3
  102. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.d.ts +2 -2
  103. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Twitter/Twitter.js +4 -2
  104. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.d.ts +2 -2
  105. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Youtube/Youtube.js +5 -3
  106. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +3 -0
  107. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.d.ts +1 -0
  108. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/index.js +8 -0
  109. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.d.ts +22 -0
  110. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +273 -0
  111. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/utils.d.ts +13 -0
  112. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/utils.js +127 -0
  113. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.d.ts +1 -1
  114. package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useIntersectionObserver.js +21 -9
  115. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +40 -11
  116. package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -0
  117. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseJsonProperties.d.ts +1 -1
  118. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  119. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
  120. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +14 -1
  121. package/dist/src/sub/DynamicLayout/types.d.ts +25 -19
  122. package/dist/src/sub/DynamicLayout/utils/deepCopy.d.ts +1 -0
  123. package/dist/src/sub/DynamicLayout/utils/deepCopy.js +15 -0
  124. package/package.json +2 -2
  125. package/release-note.md +5 -6
  126. package/dist/src/sub/DynamicLayout/mock_customSection.d.ts +0 -2
  127. package/dist/src/sub/DynamicLayout/mock_customSection.js +0 -840
  128. package/dist/src/sub/DynamicLayout/nakedMocks.json +0 -847
@@ -16,6 +16,15 @@ type ActionHandlerPayload = {
16
16
  e?: ResizeEventType;
17
17
  node?: HTMLElement;
18
18
  };
19
+ '@CUSTOMSECTION/GROUP_DRAG_STOP': {
20
+ layout: Layout;
21
+ prev?: LayoutItem;
22
+ item?: LayoutItem;
23
+ placeholder?: LayoutItem;
24
+ e?: ResizeEventType;
25
+ node?: HTMLElement;
26
+ outerBasedChildrenPositions: LayoutItem[];
27
+ };
19
28
  '@CUSTOMSECTION/CB_RESIZE_STOP': {
20
29
  layout: Layout;
21
30
  prev?: LayoutItem;
@@ -32,12 +41,25 @@ type ActionHandlerPayload = {
32
41
  id: number;
33
42
  };
34
43
  '@CUSTOMSECTION/CB_RIGHT_CLICKED': {
35
- id: number;
44
+ id: number | 'group';
36
45
  e: React.MouseEvent;
37
46
  };
38
47
  '@CUSTOMSECTION/SECTION_CLICKED': {
39
48
  sectionId: number;
40
49
  };
50
+ '@CUSTOMSECTION/GROUP_CREATED': {
51
+ message: string;
52
+ data: LayoutItem;
53
+ };
54
+ '@CUSTOMSECTION/GROUP_DISMISSED': {
55
+ message: string;
56
+ };
57
+ '@CUSTOMSECTION/COLLISION_NOT_FOUND': {
58
+ message: string;
59
+ };
60
+ '@CUSTOMSECTION/ESCAPE_ONE_FROM_GROUP': {
61
+ id: string;
62
+ };
41
63
  };
42
64
  type ActionMap<M extends {
43
65
  [index: string]: any;
@@ -1,5 +1,13 @@
1
1
  import React from 'react';
2
2
  import type { ISection } from '../../types';
3
- declare function CustomSection(props: ISection): JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof CustomSection>;
3
+ import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
4
+ export type LayoutsType = {
5
+ sm: Layout;
6
+ lg: Layout;
7
+ };
8
+ export type CustomSectionImperativeHandleRef = {
9
+ selectCB: (cbId: number | 'group') => void;
10
+ selectCBInBulk: (cbIds: string[]) => void;
11
+ };
12
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ISection & React.RefAttributes<unknown>>>;
5
13
  export default _default;