diy-template-components 0.0.71 → 0.0.74
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.
- package/build/index.es.js +3 -3
- package/build/index.es.js.map +1 -1
- package/build/index.js +3 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -443,7 +443,7 @@ function useLinkBuilder(data) {
|
|
|
443
443
|
return null;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
if (data?.
|
|
446
|
+
if (data?.isExternal) {
|
|
447
447
|
return data.link;
|
|
448
448
|
}
|
|
449
449
|
|
|
@@ -485,8 +485,8 @@ const Button = /*#__PURE__*/forwardRef(function Button({
|
|
|
485
485
|
return data?.isLink ? /*#__PURE__*/React.createElement("a", _extends({
|
|
486
486
|
ref: ref,
|
|
487
487
|
href: link,
|
|
488
|
-
target: data?.
|
|
489
|
-
rel: data?.
|
|
488
|
+
target: data?.isExternal ? '_blank' : null,
|
|
489
|
+
rel: data?.isExternal ? 'nofollow noopener' : null,
|
|
490
490
|
className: (active ? classes.active : '') + ' ' + classes[type] + ' ' + classes[size] + ' ' + classes.anchorClass,
|
|
491
491
|
style: styling
|
|
492
492
|
}, elementProps), data?.value) : /*#__PURE__*/React.createElement("button", _extends({
|