pds-dev-kit-web-test 2.7.516 → 2.7.517

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.
@@ -44,7 +44,7 @@ function Text(props) {
44
44
  var desktopHeightFitContent = (_d = CB_STYLE_PROP_TEXTOPTION === null || CB_STYLE_PROP_TEXTOPTION === void 0 ? void 0 : CB_STYLE_PROP_TEXTOPTION.CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT) !== null && _d !== void 0 ? _d : false;
45
45
  var mobileHeightFitContent = (_e = CB_STYLE_PROP_TEXTOPTION === null || CB_STYLE_PROP_TEXTOPTION === void 0 ? void 0 : CB_STYLE_PROP_TEXTOPTION['CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT:MOBILE']) !== null && _e !== void 0 ? _e : desktopHeightFitContent;
46
46
  var heightFitContent = device === 'MOBILE' ? mobileHeightFitContent : desktopHeightFitContent;
47
- var cLinkValue = function () {
47
+ var cLinkValue = function (defaultValue) {
48
48
  if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
49
49
  CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
50
50
  if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
@@ -56,13 +56,13 @@ function Text(props) {
56
56
  }
57
57
  return link;
58
58
  }
59
- return CB_CONTENT_PROP_CLINK_SPEC_SRC;
59
+ return defaultValue;
60
60
  };
61
61
  var _j = (0, useCLINK_1.default)({
62
- src: cLinkValue(),
62
+ src: cLinkValue(CB_CONTENT_PROP_CLINK_SPEC_SRC),
63
63
  type: CB_CONTENT_PROP_CLINK_SPEC_TYPE,
64
64
  openNewTab: CB_CONTENT_PROP_CLINK_SPEC_NEWTAB,
65
- internalSrc: String(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
65
+ internalSrc: cLinkValue(CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC)
66
66
  }), CLINKCursor = _j.CLINKCursor, onClickCLINK = _j.onClickCLINK;
67
67
  var _k = getTextStyles(props.CB_STYLE_PROP_TEXT, device), textStyle = _k.style, textHoverStyle = _k.hoverStyle;
68
68
  var textOptionStyle = getTextOptionStyles(props === null || props === void 0 ? void 0 : props.CB_STYLE_PROP_TEXTOPTION, device).style;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.516",
3
+ "version": "2.7.517",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",