pptx-vue-viewer 4.67.0 → 4.68.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 (50) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.cjs.br +0 -0
  4. package/dist/index.cjs.gz +0 -0
  5. package/dist/index.js +2 -2
  6. package/dist/index.js.br +0 -0
  7. package/dist/index.js.gz +0 -0
  8. package/dist/internals.cjs +1 -1
  9. package/dist/internals.cjs.br +0 -0
  10. package/dist/internals.cjs.gz +0 -0
  11. package/dist/internals.js +1 -1
  12. package/dist/internals.js.br +0 -0
  13. package/dist/internals.js.gz +0 -0
  14. package/dist/{useViewerSettingsDialog-CGI6HR0i.js → useViewerSettingsDialog-4TLUKNb7.js} +1685 -1678
  15. package/dist/useViewerSettingsDialog-4TLUKNb7.js.br +0 -0
  16. package/dist/useViewerSettingsDialog-4TLUKNb7.js.gz +0 -0
  17. package/dist/{useViewerSettingsDialog-BNnWGJwV.cjs → useViewerSettingsDialog-Cyo6m7Lv.cjs} +9 -2
  18. package/dist/useViewerSettingsDialog-Cyo6m7Lv.cjs.br +0 -0
  19. package/dist/useViewerSettingsDialog-Cyo6m7Lv.cjs.gz +0 -0
  20. package/dist/viewer/index.cjs +1 -1
  21. package/dist/viewer/index.cjs.br +0 -0
  22. package/dist/viewer/index.cjs.gz +0 -0
  23. package/dist/viewer/index.js +2 -2
  24. package/dist/viewer/index.js.br +0 -0
  25. package/dist/viewer/index.js.gz +0 -0
  26. package/dist/{viewer-DYs723bH.js → viewer-B2N9mnnH.js} +6161 -6166
  27. package/dist/viewer-B2N9mnnH.js.br +0 -0
  28. package/dist/viewer-B2N9mnnH.js.gz +0 -0
  29. package/dist/{viewer-B-B4pL2o.cjs → viewer-oYTy0IUg.cjs} +6 -11
  30. package/dist/viewer-oYTy0IUg.cjs.br +0 -0
  31. package/dist/viewer-oYTy0IUg.cjs.gz +0 -0
  32. package/dist/{y-webrtc-D9l3ByiO.cjs → y-webrtc-B_3jGDE-.cjs} +1 -1
  33. package/dist/y-webrtc-B_3jGDE-.cjs.br +0 -0
  34. package/dist/y-webrtc-B_3jGDE-.cjs.gz +0 -0
  35. package/dist/{y-webrtc-BxRkXfn3.js → y-webrtc-DZi_5IuP.js} +1 -1
  36. package/dist/y-webrtc-DZi_5IuP.js.br +0 -0
  37. package/dist/y-webrtc-DZi_5IuP.js.gz +0 -0
  38. package/package.json +3 -3
  39. package/dist/useViewerSettingsDialog-BNnWGJwV.cjs.br +0 -0
  40. package/dist/useViewerSettingsDialog-BNnWGJwV.cjs.gz +0 -0
  41. package/dist/useViewerSettingsDialog-CGI6HR0i.js.br +0 -0
  42. package/dist/useViewerSettingsDialog-CGI6HR0i.js.gz +0 -0
  43. package/dist/viewer-B-B4pL2o.cjs.br +0 -0
  44. package/dist/viewer-B-B4pL2o.cjs.gz +0 -0
  45. package/dist/viewer-DYs723bH.js.br +0 -0
  46. package/dist/viewer-DYs723bH.js.gz +0 -0
  47. package/dist/y-webrtc-BxRkXfn3.js.br +0 -0
  48. package/dist/y-webrtc-BxRkXfn3.js.gz +0 -0
  49. package/dist/y-webrtc-D9l3ByiO.cjs.br +0 -0
  50. package/dist/y-webrtc-D9l3ByiO.cjs.gz +0 -0
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- const e = require("./useViewerSettingsDialog-BNnWGJwV.cjs"), t = require("./useController-CYBNpWy-.cjs"), n = require("./ai-8VTpsXre.cjs"), o = require("./useAiPanelController-aOhIHxkq.cjs");
1
+ const e = require("./useViewerSettingsDialog-Cyo6m7Lv.cjs"), t = require("./useController-CYBNpWy-.cjs"), n = require("./ai-8VTpsXre.cjs"), o = require("./useAiPanelController-aOhIHxkq.cjs");
2
2
  require("./i18n.cjs");
3
3
  let a = require("ooxml-ui/pptx"), l = require("vue"), r = require("lucide-vue-next"), i = require("ooxml-ui/pptx/ai/host"), s = require("ooxml-ui/pptx/i18n");
4
4
  var c = Symbol("pptx-viewer-theme");
@@ -678,8 +678,8 @@ var fe = ["spellcheck", "aria-label"], xe = (0, l.defineComponent)({
678
678
  }
679
679
  t.focus(), (0, a.placeCaretAt)(t, (0, a.takePendingCaretPoint)()), n && e && (0, a.restoreInlineListBodySelection)(n, t, e);
680
680
  }
681
- function y() {
682
- p || s("change", g());
681
+ function y(e) {
682
+ p || ("insertParagraph" === e.inputType && c.value && (0, a.markInsertedParagraph)(document, c.value), s("change", g()));
683
683
  }
684
684
  function h() {
685
685
  if (!v && !m) {
@@ -712,13 +712,8 @@ var fe = ["spellcheck", "aria-label"], xe = (0, l.defineComponent)({
712
712
  const n = (0, a.mapInlineEditorChord)(e);
713
713
  if (n) return e.preventDefault(), e.stopPropagation(), void ("commit" === n && c.value?.blur());
714
714
  "Enter" !== e.key || p && (!u || d.value) || function() {
715
- const e = window.getSelection();
716
- if (!e || !e.isCollapsed || 0 === e.rangeCount) return;
717
- const { startContainer: n, startOffset: o } = e.getRangeAt(0);
718
- if (n.nodeType !== Node.TEXT_NODE || 0 === o) return;
719
- if (" " !== (n.textContent ?? "").charAt(o - 1)) return;
720
- const a = document.createRange();
721
- a.setStart(n, o - 1), a.setEnd(n, o), u ? u.mutate(a, () => a.deleteContents()) : a.deleteContents();
715
+ const e = (0, a.spaceBeforeCaretRange)(document);
716
+ e && (u ? u.mutate(e, () => e.deleteContents()) : e.deleteContents());
722
717
  }();
723
718
  }
724
719
  return (0, l.onMounted)(() => x()), (0, l.onBeforeUnmount)(() => {
@@ -2870,7 +2865,7 @@ var so = Symbol("pptx-viewer-storage");
2870
2865
  function co() {
2871
2866
  return (0, l.inject)(so, () => {});
2872
2867
  }
2873
- var po = "4.67.0", uo = Symbol("pptx-account-auth");
2868
+ var po = "4.68.0", uo = Symbol("pptx-account-auth");
2874
2869
  var mo = { class: "pptx-vue-account mt-8 flex max-w-[760px] flex-col gap-6" }, vo = { class: "pptx-vue-account-section border border-border bg-card p-6 text-card-foreground" }, go = { class: "text-base font-semibold" }, fo = { class: "mt-4 flex items-center gap-4" }, xo = { class: "min-w-0 flex-1" }, yo = { class: "block text-xs font-medium text-muted-foreground" }, ho = ["value", "placeholder"], bo = { class: "mt-4" }, ko = { class: "block text-xs font-medium text-muted-foreground" }, So = { class: "mt-2 flex gap-2" }, Eo = [
2875
2870
  "aria-pressed",
2876
2871
  "aria-label",
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- const e = require("./useViewerSettingsDialog-BNnWGJwV.cjs");
1
+ const e = require("./useViewerSettingsDialog-Cyo6m7Lv.cjs");
2
2
  let t = require("yjs");
3
3
  t = e.__toESM(t, 1);
4
4
  var n = () => /* @__PURE__ */ new Map(), r = (e, t, n) => {
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { Mr as e, Nr as t, jr as n } from "./useViewerSettingsDialog-CGI6HR0i.js";
1
+ import { Mr as e, Nr as t, jr as n } from "./useViewerSettingsDialog-4TLUKNb7.js";
2
2
  import * as r from "yjs";
3
3
  var i = () => /* @__PURE__ */ new Map(), s = (e, t, n) => {
4
4
  let r = e.get(t);
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-vue-viewer",
3
- "version": "4.67.0",
3
+ "version": "4.68.0",
4
4
  "description": "pptx-viewer for Vue 3: a PowerPoint viewer and editor component to render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "editor",
@@ -124,8 +124,8 @@
124
124
  "html2canvas-pro": "^2.5.4",
125
125
  "jspdf": "^4.2.1",
126
126
  "lucide-vue-next": "^1.0.0",
127
- "ooxml-core": "^1.43.0",
128
- "ooxml-ui": "^1.46.0",
127
+ "ooxml-core": "^1.44.0",
128
+ "ooxml-ui": "^1.47.0",
129
129
  "opentype.js": "^2.0.0",
130
130
  "tailwind-merge": "^3.7.0"
131
131
  },
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file