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.
@@ -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 "ERROR: ".concat(CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, " NOT found from queryData");
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.510",
3
+ "version": "2.7.512",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",