pds-dev-kit-web-test 2.7.510 → 2.7.512
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.
- package/dist/src/common/assets/icons/fill/Plugin.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Plugin.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +1 -0
- package/dist/src/common/assets/icons/fill/index.js +3 -1
- package/dist/src/common/assets/icons/line/Plugin.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Plugin.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +1 -0
- package/dist/src/common/assets/icons/line/index.js +3 -1
- package/dist/src/sub/DynamicLayout/mock_queryData.d.ts +635 -237
- package/dist/src/sub/DynamicLayout/mock_queryData.js +12405 -4871
- package/dist/src/sub/DynamicLayout/mock_section.json +27304 -11856
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +9 -5
- package/package.json +1 -1
|
@@ -51,8 +51,10 @@ function Text(props) {
|
|
|
51
51
|
return "ERROR: QueryData NOT FOUND";
|
|
52
52
|
}
|
|
53
53
|
var link = queryContext.queryData[CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA];
|
|
54
|
+
console.log(queryContext.queryData);
|
|
54
55
|
if (!link) {
|
|
55
|
-
return
|
|
56
|
+
return 'https://cdn.dev.publishingkit.net/e4d4769f-668b-49a3-8f9d-9a0ec74c04da.png';
|
|
57
|
+
// return `ERROR: ${CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA} NOT found from queryData`;
|
|
56
58
|
}
|
|
57
59
|
return link;
|
|
58
60
|
}
|
|
@@ -92,11 +94,13 @@ function Text(props) {
|
|
|
92
94
|
var isDataConnected = CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DATA' ||
|
|
93
95
|
CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
|
94
96
|
if (isDataConnected) {
|
|
95
|
-
if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'paid') {
|
|
96
|
-
return t('str_paid');
|
|
97
|
-
}
|
|
98
97
|
if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
|
|
99
98
|
var value = queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
|
|
99
|
+
if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'paid') {
|
|
100
|
+
if (value === 'PAID') {
|
|
101
|
+
return t('str_paid');
|
|
102
|
+
}
|
|
103
|
+
}
|
|
100
104
|
if (formatOption) {
|
|
101
105
|
return formatOption.formatter(value);
|
|
102
106
|
}
|
|
@@ -150,7 +154,7 @@ function Text(props) {
|
|
|
150
154
|
e.currentTarget.classList.add('hovered');
|
|
151
155
|
}, onMouseLeave: function (e) {
|
|
152
156
|
e.currentTarget.classList.remove('hovered');
|
|
153
|
-
}, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")"), overflowY: 'unset', scrollbarWidth: 'unset' }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: [textPrefix, textValue() === 'ERROR' ? 'EDITOR:FALLBACK_TEXT' : getTruncatedText(textValue()), textSuffix] })) })) }))] }));
|
|
157
|
+
}, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")"), overflowY: 'unset', scrollbarWidth: 'unset' }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: [textPrefix, textValue() === 'ERROR' ? 'EDITOR:FALLBACK_TEXT' : getTruncatedText(textValue()), (0, jsx_runtime_1.jsx)("a", __assign({ href: "images/my_photo_123.jpg", download: "\uD734\uAC00\uC0AC\uC9C4.jpg" }, { children: "\uC774\uBBF8\uC9C0 \uB2E4\uC6B4\uB85C\uB4DC" })), textSuffix] })) })) }))] }));
|
|
154
158
|
}
|
|
155
159
|
exports.default = Text;
|
|
156
160
|
function getTextStyles(props, device) {
|