pds-dev-kit-web-test 2.7.512 → 2.7.514

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,10 +51,8 @@ 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);
55
54
  if (!link) {
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`;
55
+ return "ERROR: ".concat(CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, " NOT found from queryData");
58
56
  }
59
57
  return link;
60
58
  }
@@ -101,6 +99,12 @@ function Text(props) {
101
99
  return t('str_paid');
102
100
  }
103
101
  }
102
+ if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA.endsWith('Date')) {
103
+ var localtime = convertToLocalTime(value);
104
+ if (formatOption) {
105
+ return formatOption.formatter(localtime);
106
+ }
107
+ }
104
108
  if (formatOption) {
105
109
  return formatOption.formatter(value);
106
110
  }
@@ -154,7 +158,7 @@ function Text(props) {
154
158
  e.currentTarget.classList.add('hovered');
155
159
  }, onMouseLeave: function (e) {
156
160
  e.currentTarget.classList.remove('hovered');
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] })) })) }))] }));
161
+ }, 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] })) })) }))] }));
158
162
  }
159
163
  exports.default = Text;
160
164
  function getTextStyles(props, device) {
@@ -247,3 +251,12 @@ function domstringToPlain(domstring, ellipsis, useEnter) {
247
251
  }
248
252
  return processedText;
249
253
  }
254
+ /**
255
+ * UTC 날짜 문자열을 로컬 타임 문자열로 변환합니다.
256
+ * @param utcString - '2022-07-29 00:55:03' 형태의 문자열
257
+ * @returns 로컬 시간으로 변환된 문자열
258
+ */
259
+ var convertToLocalTime = function (utcString) {
260
+ var date = new Date("".concat(utcString.replace(' ', 'T'), "Z"));
261
+ return date.toLocaleString();
262
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.512",
3
+ "version": "2.7.514",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",