@elementor/editor-editing-panel 3.33.0-180 → 3.33.0-182

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
@@ -4470,9 +4470,12 @@ var stickyHeaderStyles = {
4470
4470
  };
4471
4471
  var StyleTab = () => {
4472
4472
  const currentClassesProp = useCurrentClassesProp();
4473
- const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp);
4473
+ const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp ?? "");
4474
4474
  const [activeStyleState, setActiveStyleState] = (0, import_react36.useState)(null);
4475
4475
  const breakpoint = (0, import_editor_responsive4.useActiveBreakpoint)();
4476
+ if (!currentClassesProp) {
4477
+ return null;
4478
+ }
4476
4479
  return /* @__PURE__ */ React81.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React81.createElement(
4477
4480
  StyleProvider,
4478
4481
  {
@@ -4620,7 +4623,7 @@ function useCurrentClassesProp() {
4620
4623
  ([, propType]) => propType.kind === "plain" && propType.key === import_editor_props12.CLASSES_PROP_KEY
4621
4624
  );
4622
4625
  if (!prop) {
4623
- throw new Error("Element does not have a classes prop");
4626
+ return null;
4624
4627
  }
4625
4628
  return prop[0];
4626
4629
  }