@bigbinary/neeto-themes-frontend 4.2.8 → 4.2.9
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/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-11-
|
|
1
|
+
Built at 2026-11-16T12:20:53.343Z
|
|
@@ -934,7 +934,7 @@ var SliderBlock = function SliderBlock(_ref) {
|
|
|
934
934
|
});
|
|
935
935
|
};
|
|
936
936
|
|
|
937
|
-
var _excluded = ["label", "name", "asCheckbox", "dataTestid"];
|
|
937
|
+
var _excluded = ["label", "name", "asCheckbox", "dataTestid", "checkboxDataTestid"];
|
|
938
938
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
939
939
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
940
940
|
var SwitchBlock = function SwitchBlock(_ref) {
|
|
@@ -943,6 +943,7 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
943
943
|
_ref$asCheckbox = _ref.asCheckbox,
|
|
944
944
|
asCheckbox = _ref$asCheckbox === void 0 ? false : _ref$asCheckbox,
|
|
945
945
|
dataTestid = _ref.dataTestid,
|
|
946
|
+
checkboxDataTestid = _ref.checkboxDataTestid,
|
|
946
947
|
inputProps = _objectWithoutProperties(_ref, _excluded);
|
|
947
948
|
var _useTranslation = reactI18next.useTranslation(),
|
|
948
949
|
t = _useTranslation.t,
|
|
@@ -957,7 +958,8 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
957
958
|
label: label,
|
|
958
959
|
name: name
|
|
959
960
|
}, inputProps)), {}, {
|
|
960
|
-
"data-testid": "enable-background-color-toggle"
|
|
961
|
+
"data-testid": "enable-background-color-toggle",
|
|
962
|
+
dataTestId: checkboxDataTestid || neetoCist.hyphenate(name)
|
|
961
963
|
})), doesHelpTextExist && /*#__PURE__*/jsxRuntime.jsx(HelpPopover, {
|
|
962
964
|
className: "shrink-0",
|
|
963
965
|
description: t(translationKey)
|
|
@@ -1200,7 +1202,7 @@ var Properties = function Properties(_ref) {
|
|
|
1200
1202
|
}
|
|
1201
1203
|
case "boolean":
|
|
1202
1204
|
{
|
|
1203
|
-
var _findBy1, _findBy10;
|
|
1205
|
+
var _findBy1, _findBy10, _findBy11;
|
|
1204
1206
|
var _index2 = neetoCist.findIndexBy({
|
|
1205
1207
|
key: key
|
|
1206
1208
|
}, values.properties);
|
|
@@ -1212,9 +1214,12 @@ var Properties = function Properties(_ref) {
|
|
|
1212
1214
|
checked: value !== "false",
|
|
1213
1215
|
label: buildLabel(key, kind),
|
|
1214
1216
|
name: neetoCist.snakeToCamelCase(key),
|
|
1215
|
-
|
|
1217
|
+
checkboxDataTestid: (_findBy10 = neetoCist.findBy({
|
|
1216
1218
|
key: key
|
|
1217
|
-
}, themePropertiesSchema)) === null || _findBy10 === void 0 ? void 0 : _findBy10.
|
|
1219
|
+
}, themePropertiesSchema)) === null || _findBy10 === void 0 ? void 0 : _findBy10.checkboxDataTestid,
|
|
1220
|
+
dataTestid: (_findBy11 = neetoCist.findBy({
|
|
1221
|
+
key: key
|
|
1222
|
+
}, themePropertiesSchema)) === null || _findBy11 === void 0 ? void 0 : _findBy11.dataTestid,
|
|
1218
1223
|
onCheckedChange: function onCheckedChange(checked) {
|
|
1219
1224
|
return setFieldValue("properties[".concat(_index2, "].value"), String(checked));
|
|
1220
1225
|
}
|
|
@@ -1222,16 +1227,16 @@ var Properties = function Properties(_ref) {
|
|
|
1222
1227
|
}
|
|
1223
1228
|
case "alignment_block":
|
|
1224
1229
|
{
|
|
1225
|
-
var
|
|
1230
|
+
var _findBy12;
|
|
1226
1231
|
var _index3 = neetoCist.findIndexBy({
|
|
1227
1232
|
key: key
|
|
1228
1233
|
}, values.properties);
|
|
1229
1234
|
return /*#__PURE__*/jsxRuntime.jsx(AlignmentBlock, {
|
|
1230
1235
|
label: buildLabel(key, kind),
|
|
1231
1236
|
name: "properties[".concat(_index3, "].value"),
|
|
1232
|
-
dataTestid: (
|
|
1237
|
+
dataTestid: (_findBy12 = neetoCist.findBy({
|
|
1233
1238
|
key: key
|
|
1234
|
-
}, themePropertiesSchema)) === null ||
|
|
1239
|
+
}, themePropertiesSchema)) === null || _findBy12 === void 0 ? void 0 : _findBy12.dataTestid
|
|
1235
1240
|
}, key);
|
|
1236
1241
|
}
|
|
1237
1242
|
default:
|
|
@@ -1273,6 +1278,7 @@ var ImageBlock = function ImageBlock(_ref) {
|
|
|
1273
1278
|
var positionKeyInSchema = neetoCist.findBy({
|
|
1274
1279
|
key: "".concat(name, "_position")
|
|
1275
1280
|
}, themePropertiesSchema);
|
|
1281
|
+
var positionDataTestid = (positionKeyInSchema === null || positionKeyInSchema === void 0 ? void 0 : positionKeyInSchema.dataTestid) || "theme-style-".concat(neetoCist.hyphenate(name), "-position");
|
|
1276
1282
|
var isPositionChangerVisible = enablePositionChanger && (imageData === null || imageData === void 0 ? void 0 : imageData.url) && neetoCist.isPresent(positionKeyInSchema);
|
|
1277
1283
|
var positionKeyIndex = neetoCist.findIndexBy({
|
|
1278
1284
|
key: "".concat(name, "_position")
|
|
@@ -1321,7 +1327,7 @@ var ImageBlock = function ImageBlock(_ref) {
|
|
|
1321
1327
|
}();
|
|
1322
1328
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1323
1329
|
className: "space-y-3",
|
|
1324
|
-
"data-testid": "theme-style-
|
|
1330
|
+
"data-testid": "theme-style-image-block",
|
|
1325
1331
|
children: [label && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1326
1332
|
className: "flex items-center justify-between",
|
|
1327
1333
|
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
@@ -1339,6 +1345,7 @@ var ImageBlock = function ImageBlock(_ref) {
|
|
|
1339
1345
|
src: imageData === null || imageData === void 0 ? void 0 : imageData.url,
|
|
1340
1346
|
onUploadComplete: handleImageChange
|
|
1341
1347
|
}), isPositionChangerVisible && /*#__PURE__*/jsxRuntime.jsx(SelectBlock, {
|
|
1348
|
+
dataTestid: positionDataTestid,
|
|
1342
1349
|
label: buildLabel("".concat(name, "Position"), "image"),
|
|
1343
1350
|
options: (options === null || options === void 0 ? void 0 : options.map(toCapitalizedOption)) || POSITION_OPTIONS,
|
|
1344
1351
|
placeholder: t("neetoThemes.common.left"),
|