@elementor/editor-global-classes 3.33.0-286 → 3.33.0-288

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
@@ -2228,16 +2228,17 @@ function syncDirtyState() {
2228
2228
  });
2229
2229
  }
2230
2230
  function bindSaveAction(panelActions) {
2231
- (0, import_editor_v1_adapters4.registerDataHook)("after", "document/save/save", (args) => {
2231
+ (0, import_editor_v1_adapters4.registerDataHook)("dependency", "document/save/save", (args) => {
2232
2232
  const user = (0, import_editor_current_user2.getCurrentUser)();
2233
2233
  const canEdit = user?.capabilities.includes(UPDATE_CLASS_CAPABILITY_KEY);
2234
2234
  if (!canEdit) {
2235
- return;
2235
+ return true;
2236
2236
  }
2237
2237
  saveGlobalClasses({
2238
2238
  context: args.status === "publish" ? "frontend" : "preview",
2239
2239
  onApprove: panelActions?.open
2240
2240
  });
2241
+ return true;
2241
2242
  });
2242
2243
  }
2243
2244
  function isDirty() {