@elementor/editor-editing-panel 3.33.0-269 → 3.33.0-270

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/index.js CHANGED
@@ -6203,14 +6203,6 @@ function isEqual(a, b) {
6203
6203
 
6204
6204
  // src/reset-style-props.tsx
6205
6205
  var { registerAction } = controlActionsMenu;
6206
- var REPEATERS_SUPPORTED_FOR_RESET = [
6207
- "background",
6208
- "transform",
6209
- "filter",
6210
- "backdrop-filter",
6211
- "box-shadow",
6212
- "transition"
6213
- ];
6214
6206
  function initResetStyleProps() {
6215
6207
  registerAction({
6216
6208
  id: "reset-style-value",
@@ -6219,22 +6211,14 @@ function initResetStyleProps() {
6219
6211
  }
6220
6212
  function useResetStyleValueProps() {
6221
6213
  const isStyle = useIsStyle();
6222
- const { value, resetValue, path, propType } = (0, import_editor_controls61.useBoundProp)();
6214
+ const { value, resetValue, propType } = (0, import_editor_controls61.useBoundProp)();
6223
6215
  const hasValue = value !== null && value !== void 0;
6224
6216
  const hasInitial = propType.initial_value !== void 0 && propType.initial_value !== null;
6225
6217
  const isRequired = !!propType.settings?.required;
6226
- const isInRepeater = path?.some((key) => !isNaN(Number(key)));
6227
- const canResetInRepeater = REPEATERS_SUPPORTED_FOR_RESET.includes(path?.[0]);
6228
6218
  function calculateVisibility() {
6229
6219
  if (!isStyle || !hasValue) {
6230
6220
  return false;
6231
6221
  }
6232
- if (!isInRepeater) {
6233
- return true;
6234
- }
6235
- if (!canResetInRepeater) {
6236
- return false;
6237
- }
6238
6222
  if (hasInitial) {
6239
6223
  return !isEqual(value, propType.initial_value);
6240
6224
  }