pds-dev-kit-web-test 2.5.406 → 2.5.407

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.
@@ -108,7 +108,9 @@ function Image(props) {
108
108
  }
109
109
  return queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA];
110
110
  };
111
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, __assign({ src: imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }, { children: imgSrc() === 'ERROR' && (0, jsx_runtime_1.jsx)(S_EmptyLayer, { children: "FALLBACK IMAGE" }) })) })) })) }))] }));
111
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, { src: imgSrc() === 'ERROR'
112
+ ? 'https://static.publ.site/pages-sample/img_cb_style_prop_bgmedia_spec_imageselector_01.png'
113
+ : imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }) })) })) }))] }));
112
114
  }
113
115
  function parseImageCBStyle(style, hoverStyle, mode) {
114
116
  var boxStyle = {
@@ -170,18 +172,5 @@ var S_Image = styled_components_1.default.div(templateObject_6 || (templateObjec
170
172
  : normalStyle.backgroundSize === 'contain';
171
173
  return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n object-fit: ", ";\n "], ["\n object-fit: ", ";\n "])), isContain ? 'contain' : 'cover');
172
174
  });
173
- var S_EmptyLayer = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n background-color: rgba(0, 0, 0, 0.6);\n bottom: 0;\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n left: 0;\n line-height: ", ";\n padding: ", ";\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n word-break: keep-all;\n"], ["\n align-items: center;\n background-color: rgba(0, 0, 0, 0.6);\n bottom: 0;\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n left: 0;\n line-height: ", ";\n padding: ", ";\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n word-break: keep-all;\n"])), function (_a) {
174
- var theme = _a.theme;
175
- return theme.desktopFontSize.body2;
176
- }, function (_a) {
177
- var theme = _a.theme;
178
- return theme.fontWeight.bold;
179
- }, function (_a) {
180
- var theme = _a.theme;
181
- return theme.desktopLineHeight.body2;
182
- }, function (_a) {
183
- var theme = _a.theme;
184
- return theme.spacing.spacingE;
185
- });
186
175
  exports.default = Image;
187
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
176
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -1,8 +1,4 @@
1
1
  "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
2
  var __assign = (this && this.__assign) || function () {
7
3
  __assign = Object.assign || function(t) {
8
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -23,7 +19,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
23
19
  var react_1 = require("react");
24
20
  var DynamicLayout_1 = require("../../../../../../../DynamicLayout");
25
21
  var compositionQueryContext_1 = require("../../../../../../../DynamicLayout/compositionQueryContext");
26
- var styled_components_1 = __importDefault(require("styled-components"));
27
22
  var hooks_1 = require("../../../../hooks");
28
23
  var getGoogleFonts_1 = require("../../../../hooks/useGoogleFonts/getGoogleFonts");
29
24
  var useGoogleFonts_1 = __importDefault(require("../../../../hooks/useGoogleFonts/useGoogleFonts"));
@@ -112,7 +107,7 @@ function Text(props) {
112
107
  e.currentTarget.classList.add('hovered');
113
108
  }, onMouseLeave: function (e) {
114
109
  e.currentTarget.classList.remove('hovered');
115
- }, 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: textValue() === 'ERROR' ? (0, jsx_runtime_1.jsx)(S_EmptyLayer, { children: "FALLBACK TEXT" }) : textValue() })) }))] }));
110
+ }, 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: textValue() === 'ERROR' ? 'EDITOR:FALLBACK_TEXT' : textValue() })) }))] }));
116
111
  }
117
112
  function getTextStyles(props, device) {
118
113
  var availableSpecCodes = [
@@ -127,18 +122,4 @@ function getTextStyles(props, device) {
127
122
  ];
128
123
  return (0, textUtil_1.parseStyleTextToCSSProp)({ availableSpecCodes: availableSpecCodes, props: props, device: device, propKey: 'TEXT' });
129
124
  }
130
- var S_EmptyLayer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: rgba(0, 0, 0, 0.6);\n bottom: 0;\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n left: 0;\n line-height: ", ";\n padding: ", ";\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n word-break: keep-all;\n"], ["\n align-items: center;\n background-color: rgba(0, 0, 0, 0.6);\n bottom: 0;\n color: white;\n display: flex;\n font-size: ", ";\n font-weight: ", ";\n justify-content: center;\n left: 0;\n line-height: ", ";\n padding: ", ";\n position: absolute;\n right: 0;\n text-align: center;\n top: 0;\n word-break: keep-all;\n"])), function (_a) {
131
- var theme = _a.theme;
132
- return theme.desktopFontSize.body2;
133
- }, function (_a) {
134
- var theme = _a.theme;
135
- return theme.fontWeight.bold;
136
- }, function (_a) {
137
- var theme = _a.theme;
138
- return theme.desktopLineHeight.body2;
139
- }, function (_a) {
140
- var theme = _a.theme;
141
- return theme.spacing.spacingE;
142
- });
143
125
  exports.default = Text;
144
- var templateObject_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.406",
3
+ "version": "2.5.407",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",