pds-dev-kit-web-test 2.5.276 → 2.5.278

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.
@@ -115,7 +115,7 @@ function parseImageCBStyle(style, hoverStyle, mode) {
115
115
  };
116
116
  return { boxStyle: boxStyle, imgStyle: imgStyle };
117
117
  }
118
- var S_ImageWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n max-height: 100%;\n position: relative;\n width: 100%;\n"], ["\n height: 100%;\n max-height: 100%;\n position: relative;\n width: 100%;\n"])));
118
+ var S_ImageWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n max-height: 100%;\n width: 100%;\n"], ["\n height: 100%;\n max-height: 100%;\n width: 100%;\n"])));
119
119
  var S_Image = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"], ["\n background-image: ", ";\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n\n ", ";\n\n &:hover {\n ", ";\n }\n\n & img {\n ", ";\n }\n\n &:hover img {\n ", ";\n }\n"])), function (_a) {
120
120
  var src = _a.src;
121
121
  return "url(".concat(src, ")");
@@ -56,6 +56,10 @@ function Text(props) {
56
56
  var hasEffect = !isNoneEffectType;
57
57
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
58
58
  var textValue = function () {
59
+ if (device === 'MOBILE' &&
60
+ props.CB_CONTENT_PROP_VISIBILITY.CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB === false) {
61
+ return '';
62
+ }
59
63
  if (device === 'MOBILE') {
60
64
  var value = props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXTMOBILEALTERNATIVE;
61
65
  if (value === null || value === undefined) {
@@ -5,15 +5,13 @@ function parseContentVisibility(namedProps, device) {
5
5
  if (device === 'DESKTOP') {
6
6
  return {
7
7
  style: {
8
- // visibility: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP ? 'visible' : 'hidden'
9
- display: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP ? 'block' : 'none'
8
+ visibility: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP ? 'visible' : 'hidden'
10
9
  }
11
10
  };
12
11
  }
13
12
  return {
14
13
  style: {
15
- // visibility: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB ? 'visible' : 'hidden'
16
- display: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_DESKTOP ? 'block' : 'none'
14
+ visibility: specs.CB_CONTENT_PROP_VISIBILITY_SPEC_MOBILEWEB ? 'visible' : 'hidden'
17
15
  }
18
16
  };
19
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.276",
3
+ "version": "2.5.278",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",