pds-dev-kit-web-test 2.7.246 → 2.7.247

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 (58) hide show
  1. package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +6 -5
  2. package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +17 -14
  3. package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItemForCCB.d.ts +5 -2
  4. package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItemForCCB.js +10 -11
  5. package/dist/src/sub/DynamicLayout/GridAutoRowEditor/GridAutoRowEditorForComposition.d.ts +9 -0
  6. package/dist/src/sub/DynamicLayout/GridAutoRowEditor/GridAutoRowEditorForComposition.js +250 -0
  7. package/dist/src/sub/DynamicLayout/GridAutoRowEditor/{GridAutoRowEditor.js → GridAutoRowEditorForDL.js} +2 -6
  8. package/dist/src/sub/DynamicLayout/mock.json +5 -3
  9. package/dist/src/sub/DynamicLayout/mock_componentBlocks.d.ts +16 -134
  10. package/dist/src/sub/DynamicLayout/mock_componentBlocks.js +91 -3
  11. package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +6389 -6376
  12. package/dist/src/sub/DynamicLayout/mock_contentsList.js +5 -3
  13. package/dist/src/sub/DynamicLayout/mocks.d.ts +1 -3596
  14. package/dist/src/sub/DynamicLayout/mocks.js +15 -8
  15. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +32 -8
  16. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +1 -0
  17. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +61 -34
  18. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +2 -1
  19. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +2 -1
  20. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +4 -4
  21. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +2 -1
  22. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +2 -2
  23. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +2 -1
  24. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +15 -12
  25. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/elementPositions.d.ts +5 -0
  26. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/elementPositions.js +243 -0
  27. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +1 -1
  28. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +26 -43
  29. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +1 -1
  30. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +1 -1
  31. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +1 -0
  32. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +44 -18
  33. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +2 -1
  34. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +3 -3
  35. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +2 -1
  36. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +18 -7
  37. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/elementPositions.d.ts +4 -0
  38. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/elementPositions.js +108 -0
  39. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +1 -2
  40. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +26 -45
  41. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +1 -1
  42. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +48 -22
  43. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +2 -2
  44. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +4 -4
  45. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +2 -1
  46. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +13 -11
  47. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.d.ts +1 -1
  48. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.js +10 -43
  49. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +10 -36
  50. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +1 -1
  51. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +1 -1
  52. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +21 -8
  53. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +8 -3
  54. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
  55. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
  56. package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +3 -1
  57. package/package.json +1 -2
  58. /package/dist/src/sub/DynamicLayout/GridAutoRowEditor/{GridAutoRowEditor.d.ts → GridAutoRowEditorForDL.d.ts} +0 -0
@@ -76,42 +76,16 @@ var useFlexGridLayout = function (_a) {
76
76
  alignItems: isSOUTH ? 'flex-start' : isNORTH ? 'flex-end' : 'center',
77
77
  justifyContent: isEAST ? 'flex-start' : isWEST ? 'flex-end' : 'center'
78
78
  };
79
- // CCB의 중앙 위치 계산
80
- var ccbTop = parseFloat(ccbInset.top) || 0;
81
- var ccbRight = parseFloat(ccbInset.right) || 0;
82
- var ccbBottom = parseFloat(ccbInset.bottom) || 0;
83
- var ccbLeft = parseFloat(ccbInset.left) || 0;
84
- // CCB의 실제 크기와 중앙 위치 계산
85
- var ccbWidth = layoutSize.width - ccbLeft - ccbRight;
86
- var ccbHeight = layoutSize.height - ccbTop - ccbBottom;
87
- var ccbCenterX = ccbLeft + ccbWidth / 2;
88
- var ccbCenterY = ccbTop + ccbHeight / 2;
89
- var positions = {
90
- OUTSET1: { top: -50, left: ccbLeft },
91
- OUTSET2: { top: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
92
- OUTSET3: { top: -50, right: ccbRight },
93
- OUTSET4: { top: ccbTop, left: 'calc(-100% + 50px)' },
94
- OUTSET5: { top: "".concat(ccbCenterY, "px"), right: 50, transform: 'translateY(-50%)' },
95
- OUTSET6: { bottom: ccbBottom, right: 50 },
96
- OUTSET7: { bottom: -50, right: ccbRight },
97
- OUTSET8: { bottom: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
98
- OUTSET9: { bottom: -50, left: ccbLeft },
99
- OUTSET10: { bottom: ccbBottom, left: -50 },
100
- OUTSET11: { top: "".concat(ccbCenterY, "px"), left: -50, transform: 'translateY(-50%)' },
101
- OUTSET12: { top: ccbTop, left: -50 },
102
- INSET1: { top: ccbTop + GAP, left: ccbLeft + GAP },
103
- INSET2: { top: ccbTop + GAP, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
104
- INSET3: { top: ccbTop + GAP, right: ccbRight + GAP },
105
- INSET4: { top: "".concat(ccbCenterY, "px"), right: ccbRight + GAP, transform: 'translateY(-50%)' },
106
- INSET5: { bottom: ccbBottom + GAP, right: ccbRight + GAP },
107
- INSET6: {
108
- bottom: ccbBottom + GAP,
109
- left: "".concat(ccbCenterX, "px"),
110
- transform: 'translateX(-50%)'
111
- },
112
- INSET7: { bottom: ccbBottom + GAP, left: ccbLeft + GAP },
113
- INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
114
- };
79
+ // // CCB의 중앙 위치 계산
80
+ // const ccbTop = parseFloat(ccbInset.top) || 0;
81
+ // const ccbRight = parseFloat(ccbInset.right) || 0;
82
+ // const ccbBottom = parseFloat(ccbInset.bottom) || 0;
83
+ // const ccbLeft = parseFloat(ccbInset.left) || 0;
84
+ // // CCB의 실제 크기와 중앙 위치 계산
85
+ // const ccbWidth = layoutSize.width - ccbLeft - ccbRight;
86
+ // const ccbHeight = layoutSize.height - ccbTop - ccbBottom;
87
+ // const ccbCenterX = ccbLeft + ccbWidth / 2;
88
+ // const ccbCenterY = ccbTop + ccbHeight / 2;
115
89
  var pos = (0, elementPositions_1.getPosition)(position, designType, size, elementType);
116
90
  return __assign(__assign({}, base), pos);
117
91
  };
@@ -9,7 +9,7 @@ export declare function useSwiper(): {
9
9
  isEnd: boolean;
10
10
  onSwiper: (swiper: SwiperClass) => void;
11
11
  onSlideChangeTransitionEnd: (swiper: SwiperClass) => void;
12
- onAutoplayTimeLeft: (_: SwiperClass, time: number, progress: number) => void;
12
+ onAutoplayTimeLeft: (swiper: SwiperClass, time: number, progress: number) => void;
13
13
  onClickBullet: (index: number) => void;
14
14
  onClickPrevBtn: () => void;
15
15
  onClickNextBtn: () => void;
@@ -26,7 +26,7 @@ function useSwiper() {
26
26
  setCurrentSlide(swiper.activeIndex + 1);
27
27
  }
28
28
  };
29
- var onAutoplayTimeLeft = (0, react_1.useCallback)(function (_, time, progress) {
29
+ var onAutoplayTimeLeft = (0, react_1.useCallback)(function (swiper, time, progress) {
30
30
  leftTimeMsRef.current = time;
31
31
  progressRef.current = progress;
32
32
  }, []);
@@ -30,9 +30,22 @@ var S_HiddenCover_1 = require("../components/S_HiddenCover");
30
30
  var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
31
31
  var textSpecFormatOptions_1 = require("./textSpecFormatOptions");
32
32
  function Text(props) {
33
- var _a = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _a.device, mode = _a.mode;
33
+ var _a, _b, _c;
34
+ var _d = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _d.device, mode = _d.mode;
34
35
  var queryContext = (0, compositionQueryContext_1.useCCBQueryPath)();
35
- var index = props.index, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, _c = props.CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE = _c.CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA = _c.CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA, CB_CONTENT_PROP_TEXT_SPEC_SUFFIX = _c.CB_CONTENT_PROP_TEXT_SPEC_SUFFIX, CB_CONTENT_PROP_TEXT_SPEC_PREFIX = _c.CB_CONTENT_PROP_TEXT_SPEC_PREFIX;
36
+ var index = props.index, _e = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _e.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _e.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _e.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _e.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _e.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _e.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, _f = props.CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE = _f.CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA = _f.CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA, CB_CONTENT_PROP_TEXTOPTION = props.CB_CONTENT_PROP_TEXTOPTION;
37
+ // const {
38
+ // CB_CONTENT_PROP_TEXTOPTION_SPEC_SUFFIX,
39
+ // CB_CONTENT_PROP_TEXTOPTION_SPEC_PREFIX,
40
+ // CB_CONTENT_PROP_TEXTOPTION_SPEC_FORMAT
41
+ // } = CB_CONTENT_PROP_TEXTOPTION ?? {
42
+ // CB_CONTENT_PROP_TEXTOPTION_SPEC_SUFFIX: '',
43
+ // CB_CONTENT_PROP_TEXTOPTION_SPEC_PREFIX: '',
44
+ // CB_CONTENT_PROP_TEXTOPTION_SPEC_FORMAT: 'NONE'
45
+ // };
46
+ var textSuffix = (_a = CB_CONTENT_PROP_TEXTOPTION === null || CB_CONTENT_PROP_TEXTOPTION === void 0 ? void 0 : CB_CONTENT_PROP_TEXTOPTION.CB_CONTENT_PROP_TEXTOPTION_SPEC_SUFFIX) !== null && _a !== void 0 ? _a : '';
47
+ var textPrefix = (_b = CB_CONTENT_PROP_TEXTOPTION === null || CB_CONTENT_PROP_TEXTOPTION === void 0 ? void 0 : CB_CONTENT_PROP_TEXTOPTION.CB_CONTENT_PROP_TEXTOPTION_SPEC_PREFIX) !== null && _b !== void 0 ? _b : '';
48
+ var textFormat = (_c = CB_CONTENT_PROP_TEXTOPTION === null || CB_CONTENT_PROP_TEXTOPTION === void 0 ? void 0 : CB_CONTENT_PROP_TEXTOPTION.CB_CONTENT_PROP_TEXTOPTION_SPEC_FORMAT) !== null && _c !== void 0 ? _c : 'NONE';
36
49
  var cLinkValue = function () {
37
50
  if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
38
51
  CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
@@ -47,14 +60,14 @@ function Text(props) {
47
60
  }
48
61
  return CB_CONTENT_PROP_CLINK_SPEC_SRC;
49
62
  };
50
- var _d = (0, useCLINK_1.default)({
63
+ var _g = (0, useCLINK_1.default)({
51
64
  src: cLinkValue(),
52
65
  type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
53
66
  openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB,
54
67
  internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
55
- }), CLINKCursor = _d.CLINKCursor, onClickCLINK = _d.onClickCLINK;
56
- var _e = getTextStyles(props.CB_STYLE_PROP_TEXT, device), textStyle = _e.style, textHoverStyle = _e.hoverStyle;
57
- var _f = (0, util_1.parseProperties)(props, device), propsStyle = _f.style, propsHoverStyle = _f.hoverStyle, layoutStyle = _f.layout, effect = _f.effect;
68
+ }), CLINKCursor = _g.CLINKCursor, onClickCLINK = _g.onClickCLINK;
69
+ var _h = getTextStyles(props.CB_STYLE_PROP_TEXT, device), textStyle = _h.style, textHoverStyle = _h.hoverStyle;
70
+ var _j = (0, util_1.parseProperties)(props, device), propsStyle = _j.style, propsHoverStyle = _j.hoverStyle, layoutStyle = _j.layout, effect = _j.effect;
58
71
  var isEditModeAndHidden = propsStyle.visibility === 'hidden' && mode === 'EDIT';
59
72
  var googleFonts = (0, getGoogleFonts_1.getGoogleFontsFromTextSpecCode)(props.CB_STYLE_PROP_TEXT, device === 'MOBILE');
60
73
  (0, useGoogleFonts_1.default)({ fonts: googleFonts });
@@ -73,7 +86,7 @@ function Text(props) {
73
86
  var hasEffect = !isNoneEffectType;
74
87
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
75
88
  var textValue = function () {
76
- var FORMATOPTION = props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_FORMAT;
89
+ var FORMATOPTION = textFormat;
77
90
  var formatOption = textSpecFormatOptions_1.TEXT_SPEC_FORMAT_OPRIONS[FORMATOPTION];
78
91
  var isDataConnected = CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DATA' ||
79
92
  CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
@@ -133,7 +146,7 @@ function Text(props) {
133
146
  e.currentTarget.classList.add('hovered');
134
147
  }, onMouseLeave: function (e) {
135
148
  e.currentTarget.classList.remove('hovered');
136
- }, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")") }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: [CB_CONTENT_PROP_TEXT_SPEC_PREFIX, textValue() === 'ERROR' ? 'EDITOR:FALLBACK_TEXT' : getTruncatedText(textValue()), CB_CONTENT_PROP_TEXT_SPEC_SUFFIX] })) }))] }));
149
+ }, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")") }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: [textPrefix, textValue() === 'ERROR' ? 'EDITOR:FALLBACK_TEXT' : getTruncatedText(textValue()), textSuffix] })) }))] }));
137
150
  }
138
151
  exports.default = Text;
139
152
  function getTextStyles(props, device) {
@@ -9,9 +9,11 @@ export type CB_CONTENT_PROP_TEXT = {
9
9
  CB_CONTENT_PROP_TEXT_SPEC_TEXTMOBILEALTERNATIVE: STRING_PLAIN;
10
10
  CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE: CCB_VALUE_TYPE | CB_VALUE_TYPE;
11
11
  CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA: STRING_PLAIN;
12
- CB_CONTENT_PROP_TEXT_SPEC_PREFIX: STRING_PLAIN;
13
- CB_CONTENT_PROP_TEXT_SPEC_SUFFIX: STRING_PLAIN;
14
- CB_CONTENT_PROP_TEXT_SPEC_FORMAT: ENUM_STRING;
12
+ };
13
+ export type CB_CONTENT_PROP_TEXTOPTION = {
14
+ CB_CONTENT_PROP_TEXTOPTION_SPEC_PREFIX: STRING_PLAIN;
15
+ CB_CONTENT_PROP_TEXTOPTION_SPEC_SUFFIX: STRING_PLAIN;
16
+ CB_CONTENT_PROP_TEXTOPTION_SPEC_FORMAT: ENUM_STRING;
15
17
  };
16
18
  export type CB_CONTENT_PROP_CLINK = {
17
19
  CB_CONTENT_PROP_CLINK_SPEC_TYPE: 'INTERNAL' | 'EXTERNAL' | 'DISABLED';
@@ -40,6 +42,7 @@ export type CB_CONTENT_PROP_CONTENTSCAROUSEL = {
40
42
  CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MANUALITEMS: ManualItem[];
41
43
  CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
42
44
  CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS: NUMBER_INTEGER;
45
+ CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MDISPLAYCOUNTS: NUMBER_INTEGER;
43
46
  };
44
47
  export type CB_CONTENT_PROP_SLIDEBANNER = {
45
48
  CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE: CCB_VALUE_TYPE;
@@ -58,7 +61,9 @@ export type CB_CONTENT_PROP_CONTENTSLIST = {
58
61
  CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS: ManualItem[];
59
62
  CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS: NUMBER_INTEGER;
60
63
  CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS: NUMBER_INTEGER;
64
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_MDISPLAYCOUNTS: NUMBER_INTEGER;
61
65
  CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS: NUMBER_INTEGER;
66
+ CB_CONTENT_PROP_CONTENTSLIST_SPEC_MCOLUMNS: NUMBER_INTEGER;
62
67
  CB_CONTENT_PROP_CONTENTSLIST_SPEC_EDITCOMMONITEM: null | STRING_PLAIN;
63
68
  };
64
69
  export type ManualItem = {
@@ -1,4 +1,4 @@
1
- import { ComponentBlock } from '../types';
1
+ import type { ComponentBlock } from '../types';
2
2
  import type { PlaceRestrictionType } from '../../../../DynamicLayout/types';
3
3
  import type { ZOrder } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
4
4
  import type { LayoutItem } from 'publ-echo/dist/lib';
@@ -11,7 +11,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.parsePlacement = void 0;
14
- var types_1 = require("../types");
15
14
  function parsePlacement(components, zOrders, placementRestriction) {
16
15
  if (!zOrders) {
17
16
  console.error('Z-ORDER NOT FOUND');
@@ -56,7 +55,8 @@ function parsePropPlacement(props, id, cbCode, zOrders, cbRestriction) {
56
55
  };
57
56
  }
58
57
  var AUTO_RESIZE_CODES = [
59
- types_1.CB_ALL_CODES.CB_TEXT
58
+ 'none'
59
+ // CB_ALL_CODES.CB_TEXT
60
60
  // CB_ALL_CODES.CB_LIST,
61
61
  // CB_ALL_CODES.CB_CONTENTSCAROUSEL,
62
62
  // CB_ALL_CODES.CB_SLIDEBANNER
@@ -2,7 +2,7 @@ import type { CB_STYLE_PROP_CONTENTSCAROUSELBUTTON_SPECS, CB_STYLE_PROP_CONTENTS
2
2
  import type { CB_STYLE_PROP_CONTENTSLISTDESIGN_SPECS, CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPECS } from '../components/ComponentBlock/componentBlocks/ContentsList/types';
3
3
  import type { CB_STYLE_PROP_SLIDEBANNERBUTTON_SPECS, CB_STYLE_PROP_SLIDEBANNERDESIGN_SPECS, CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPECS, CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD_SPECS, CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR_SPECS } from '../components/ComponentBlock/componentBlocks/SlideBanner/types';
4
4
  import type { CB_TWITTER_STYLE_PROPS } from '../components/ComponentBlock/componentBlocks/Twitter/types';
5
- import type { CB_CONTENT_PROP_CONTENTSCAROUSEL, CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CODEBLOCK, CB_CONTENT_PROP_IMAGE, CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TWITTER, CB_STYLE_PROP_COLOR_SPECS, CB_STYLE_PROP_TEXT_SPECS, CB_CONTENT_PROP_CONTENTSLIST, CB_CONTENT_PROP_VIDEO } from '../components/ComponentBlock/componentBlocks/types';
5
+ import type { CB_CONTENT_PROP_CONTENTSCAROUSEL, CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CODEBLOCK, CB_CONTENT_PROP_IMAGE, CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TWITTER, CB_STYLE_PROP_COLOR_SPECS, CB_STYLE_PROP_TEXT_SPECS, CB_CONTENT_PROP_CONTENTSLIST, CB_CONTENT_PROP_VIDEO, CB_CONTENT_PROP_TEXTOPTION } from '../components/ComponentBlock/componentBlocks/types';
6
6
  import type { CB_CONTENT_PROP_YOUTUBE_TYPE, CB_STYLE_PROP_BGCOLOR_SPECS } from '../components/ComponentBlock/componentBlocks/Youtube/types';
7
7
  import type { CB_CONTENT_PROP_VISIBILITY_SPECS } from './contentPropParsers/parseContentVisibility';
8
8
  import type { CB_EFFECT_PROP_ENTANIM_SPECS } from './effectPropParsers/parseEffectPropEntAnim';
@@ -46,6 +46,7 @@ export type CB_PLACEMENT_PROP_SPECS = {
46
46
  };
47
47
  export type CB_TEXT_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
48
48
  CB_CONTENT_PROP_TEXT: CB_CONTENT_PROP_TEXT;
49
+ CB_CONTENT_PROP_TEXTOPTION: CB_CONTENT_PROP_TEXTOPTION;
49
50
  CB_CONTENT_PROP_CLINK: CB_CONTENT_PROP_CLINK;
50
51
  CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
51
52
  CB_STYLE_PROP_TEXT: CB_STYLE_PROP_TEXT_SPECS;
@@ -56,6 +57,7 @@ export type CB_TEXT_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
56
57
  };
57
58
  export type CB_BTN_PROPERTIES_TYPE = CB_GENERAL_PROPERTIES_TYPE & {
58
59
  CB_CONTENT_PROP_TEXT: CB_CONTENT_PROP_TEXT;
60
+ CB_CONTENT_PROP_TEXTOPTION: CB_CONTENT_PROP_TEXTOPTION;
59
61
  CB_CONTENT_PROP_CLINK: CB_CONTENT_PROP_CLINK;
60
62
  CB_CONTENT_PROP_VISIBILITY: CB_CONTENT_PROP_VISIBILITY_SPECS;
61
63
  CB_STYLE_PROP_TEXT: CB_STYLE_PROP_TEXT_SPECS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.246",
3
+ "version": "2.7.247",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -24,7 +24,6 @@
24
24
  "i18next-intervalplural-postprocessor": "^3.0.0",
25
25
  "lottie-react": "^2.3.1",
26
26
  "nuka-carousel": "^4.8.4",
27
- "pds-dev-kit-web-test": "^2.7.241",
28
27
  "publ-echo": "^0.0.120",
29
28
  "publ-echo-test": "^0.0.342",
30
29
  "react-hook-form": "^7.28.1",