@elementor/editor-interactions 4.1.0-715 → 4.1.0-717

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
@@ -1348,10 +1348,14 @@ function normalizeClipboardInteractions(raw) {
1348
1348
  return null;
1349
1349
  }
1350
1350
  const parsed = typeof raw === "string" ? JSON.parse(raw) : raw;
1351
- if (!parsed?.items?.length) {
1351
+ const payload = {
1352
+ version: parsed?.version ?? 1,
1353
+ items: parsed?.items?.filter((item) => isSupportedInteractionItem(item)) ?? []
1354
+ };
1355
+ if (!payload.items.length) {
1352
1356
  return null;
1353
1357
  }
1354
- return { version: parsed.version ?? 1, items: parsed.items };
1358
+ return payload;
1355
1359
  }
1356
1360
  function regenerateInteractionIds(interactions) {
1357
1361
  const cloned = structuredClone(interactions);