@elementor/editor-global-classes 4.4.0-1109 → 4.4.0-1111

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
@@ -223,7 +223,7 @@ var slice = (0, import_store.__createSlice)({
223
223
  variant.props = mergeProps(variantProps, payloadProps);
224
224
  }
225
225
  variant.custom_css = customCss;
226
- style.variants = getNonEmptyVariants(style);
226
+ style.variants = (0, import_editor_styles.getNonEmptyVariants)(style);
227
227
  } else {
228
228
  style.variants.push({ meta: payload.meta, props: payload.props, custom_css: customCss });
229
229
  }
@@ -319,11 +319,6 @@ var mergeProps = (current, updates) => {
319
319
  });
320
320
  return props;
321
321
  };
322
- var getNonEmptyVariants = (style) => {
323
- return style.variants.filter(
324
- ({ props, custom_css: customCss }) => Object.keys(props).length || customCss?.raw
325
- );
326
- };
327
322
  var placeholderDefinition = (id, label) => ({
328
323
  id,
329
324
  type: "class",