@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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -17
- package/src/sync-with-document-save.ts +4 -2
package/dist/index.mjs
CHANGED
|
@@ -2284,16 +2284,17 @@ function syncDirtyState() {
|
|
|
2284
2284
|
});
|
|
2285
2285
|
}
|
|
2286
2286
|
function bindSaveAction(panelActions) {
|
|
2287
|
-
registerDataHook("
|
|
2287
|
+
registerDataHook("dependency", "document/save/save", (args) => {
|
|
2288
2288
|
const user = getCurrentUser();
|
|
2289
2289
|
const canEdit = user?.capabilities.includes(UPDATE_CLASS_CAPABILITY_KEY);
|
|
2290
2290
|
if (!canEdit) {
|
|
2291
|
-
return;
|
|
2291
|
+
return true;
|
|
2292
2292
|
}
|
|
2293
2293
|
saveGlobalClasses({
|
|
2294
2294
|
context: args.status === "publish" ? "frontend" : "preview",
|
|
2295
2295
|
onApprove: panelActions?.open
|
|
2296
2296
|
});
|
|
2297
|
+
return true;
|
|
2297
2298
|
});
|
|
2298
2299
|
}
|
|
2299
2300
|
function isDirty() {
|