@codingfactory/mediables-vue 2.13.0 → 2.16.0

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.
Files changed (31) hide show
  1. package/dist/{PixiFrameExporter-BnAievFi.cjs → PixiFrameExporter-BOijjcAa.cjs} +2 -2
  2. package/dist/{PixiFrameExporter-BnAievFi.cjs.map → PixiFrameExporter-BOijjcAa.cjs.map} +1 -1
  3. package/dist/{PixiFrameExporter-DwbBy1Iu.js → PixiFrameExporter-cu2jpN20.js} +2 -2
  4. package/dist/{PixiFrameExporter-DwbBy1Iu.js.map → PixiFrameExporter-cu2jpN20.js.map} +1 -1
  5. package/dist/components/MediaManagementView.vue.d.ts +3 -1
  6. package/dist/composables/useAlbums.d.ts +10 -1
  7. package/dist/composables/useMediaTrash.d.ts +10 -0
  8. package/dist/editor-DLvndiXG.cjs +2 -0
  9. package/dist/editor-DLvndiXG.cjs.map +1 -0
  10. package/dist/{editor-BoDU3YXD.js → editor-OIsQEaJg.js} +18 -2
  11. package/dist/editor-OIsQEaJg.js.map +1 -0
  12. package/dist/{index-BGC4rPDc.js → index-Bff5fDnU.js} +13576 -12835
  13. package/dist/{index-CljyFIEv.cjs.map → index-Bff5fDnU.js.map} +1 -1
  14. package/dist/index-zFuo-sDY.cjs +357 -0
  15. package/dist/index-zFuo-sDY.cjs.map +1 -0
  16. package/dist/index.d.ts +2 -1
  17. package/dist/mediables-vanilla.cjs +1 -1
  18. package/dist/mediables-vanilla.mjs +1 -1
  19. package/dist/mediables-vue.cjs +1 -1
  20. package/dist/mediables-vue.mjs +71 -68
  21. package/dist/render-page/assets/{index-jZGmiMRr.js → index-DQB8PyEU.js} +11 -2
  22. package/dist/render-page/index.html +1 -1
  23. package/dist/stores/albumStore.d.ts +17 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/mediaLibraryPicker.d.ts +30 -0
  26. package/package.json +1 -1
  27. package/dist/editor-BoDU3YXD.js.map +0 -1
  28. package/dist/editor-D-cJRASf.cjs +0 -2
  29. package/dist/editor-D-cJRASf.cjs.map +0 -1
  30. package/dist/index-BGC4rPDc.js.map +0 -1
  31. package/dist/index-CljyFIEv.cjs +0 -357
@@ -211,9 +211,25 @@ class ct extends de {
211
211
  * @returns {Object|null}
212
212
  */
213
213
  getSerializableDocument() {
214
+ var r;
214
215
  if (!this._state.editorDocument) return null;
215
216
  const e = this._clonePlain(this._state.editorDocument);
216
- return e.layers = this._clonePlain(this._state.layers), e.activeLayerId = this._state.activeLayerId, e;
217
+ e.layers = this._clonePlain(this._state.layers), e.activeLayerId = this._state.activeLayerId;
218
+ const t = e.layers.findIndex((i) => i && (i.role === "subject" || i.type === "image" && i.role !== "overlay"));
219
+ if (t !== -1) {
220
+ const i = e.layers[t], s = this._normalizeDegrees(((r = this._state.transform) == null ? void 0 : r.rotation) ?? 0), n = i.transform && typeof i.transform == "object" ? i.transform : { x: 0, y: 0, scaleX: 1, scaleY: 1, rotation: 0 };
221
+ i.transform = {
222
+ ...n,
223
+ rotation: s
224
+ };
225
+ const o = this._state.crop && typeof this._state.crop == "object" ? this._state.crop : null, l = o != null && o.appliedRect && typeof o.appliedRect == "object" ? o.appliedRect : null;
226
+ l && (i.crop = {
227
+ rect: { ...l },
228
+ shape: o.appliedShape || "free",
229
+ aspect: o.appliedAspect || "free"
230
+ }), e.layers[t] = i;
231
+ }
232
+ return e;
217
233
  }
218
234
  /**
219
235
  * @returns {{ documentId: string|null, documentRevisionId: string|null, documentRevisionNumber: number|null }|null}
@@ -10859,4 +10875,4 @@ export {
10859
10875
  Ft as y,
10860
10876
  Pt as z
10861
10877
  };
10862
- //# sourceMappingURL=editor-BoDU3YXD.js.map
10878
+ //# sourceMappingURL=editor-OIsQEaJg.js.map