pptx-vue-viewer 2.21.4 → 2.21.5

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 (35) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{AiChatPanel-Cn3MnNMC.js → AiChatPanel-Ddeo7bL9.js} +1 -1
  3. package/dist/AiChatPanel-Ddeo7bL9.js.br +0 -0
  4. package/dist/AiChatPanel-Ddeo7bL9.js.gz +0 -0
  5. package/dist/{AiChatPanel-BwsuKLwj.cjs → AiChatPanel-gD7IOMP6.cjs} +1 -1
  6. package/dist/AiChatPanel-gD7IOMP6.cjs.br +0 -0
  7. package/dist/AiChatPanel-gD7IOMP6.cjs.gz +0 -0
  8. package/dist/index.cjs +1 -1
  9. package/dist/index.cjs.br +0 -0
  10. package/dist/index.cjs.gz +0 -0
  11. package/dist/index.js +1 -1
  12. package/dist/index.js.br +0 -0
  13. package/dist/index.js.gz +0 -0
  14. package/dist/viewer/components/TableRenderer.vue.d.ts.map +1 -1
  15. package/dist/viewer/index.cjs +1 -1
  16. package/dist/viewer/index.cjs.br +0 -0
  17. package/dist/viewer/index.cjs.gz +0 -0
  18. package/dist/viewer/index.js +1 -1
  19. package/dist/viewer/index.js.br +0 -0
  20. package/dist/viewer/index.js.gz +0 -0
  21. package/dist/{viewer-CvBLviAV.js → viewer-C3AxFNHB.js} +27 -34
  22. package/dist/viewer-C3AxFNHB.js.br +0 -0
  23. package/dist/viewer-C3AxFNHB.js.gz +0 -0
  24. package/dist/{viewer-mGy0sNtV.cjs → viewer-DPD8zmmd.cjs} +27 -34
  25. package/dist/viewer-DPD8zmmd.cjs.br +0 -0
  26. package/dist/viewer-DPD8zmmd.cjs.gz +0 -0
  27. package/package.json +1 -1
  28. package/dist/AiChatPanel-BwsuKLwj.cjs.br +0 -0
  29. package/dist/AiChatPanel-BwsuKLwj.cjs.gz +0 -0
  30. package/dist/AiChatPanel-Cn3MnNMC.js.br +0 -0
  31. package/dist/AiChatPanel-Cn3MnNMC.js.gz +0 -0
  32. package/dist/viewer-CvBLviAV.js.br +0 -0
  33. package/dist/viewer-CvBLviAV.js.gz +0 -0
  34. package/dist/viewer-mGy0sNtV.cjs.br +0 -0
  35. package/dist/viewer-mGy0sNtV.cjs.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ A release listed with no entries carried no Conventional Commit in this package'
7
7
  scope: scripts/release-plan.mjs re-releases a package whenever any of its files
8
8
  change, not only on conventional ones.
9
9
 
10
+ ## [2.21.4](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@2.21.4) - 2026-08-20
11
+
12
+ ### Bug Fixes
13
+
14
+ - **core:** Correct EOT header parsing for version 0x00020001 containers (by @ChristopherVR) ([e43720e](https://github.com/ChristopherVR/pptx-viewer/commit/e43720ed176c62e0779ddb6fd3fdffc08ba19bbd))
15
+ - **core:** Size table graphic frames from their grid extent (by @ChristopherVR) ([6d75c18](https://github.com/ChristopherVR/pptx-viewer/commit/6d75c18072cc0bb305b6550767dab780314d8dee))
16
+ - **core:** Accept Strict-OOXML lexical percentages in table style tint/shade (by @ChristopherVR) ([8fa8111](https://github.com/ChristopherVR/pptx-viewer/commit/8fa81117e68a9033c37ddd4cf61703100234171c))
17
+ - **core:** Stabilize Strict-conformance resaves (by @ChristopherVR) ([3c43f51](https://github.com/ChristopherVR/pptx-viewer/commit/3c43f5164d1e13edbc3d6e5450e66fd08664d108))
18
+ - **core:** Correct the Strict custom/extended-properties namespace mapping (by @ChristopherVR) ([d5001f9](https://github.com/ChristopherVR/pptx-viewer/commit/d5001f9f4b977fd0a76d31c0fef534ff1a53bea3))
19
+ - **core:** Stop a paragraph's alignment from leaking onto later paragraphs (by @ChristopherVR) ([c18b1e7](https://github.com/ChristopherVR/pptx-viewer/commit/c18b1e7161b4d6e5983c1542cbd2c7fe03081037))
20
+ - **core:** Keep SmartArt cached line-preset shapes with zero width or height (by @ChristopherVR) ([41e3059](https://github.com/ChristopherVR/pptx-viewer/commit/41e30596c4072295b6af3c50439c3966acae2b71))
21
+ - **shared:** Apply autofit shrink-to-fit scale/reduction to paragraph struts (by @ChristopherVR) ([4c1d5c8](https://github.com/ChristopherVR/pptx-viewer/commit/4c1d5c8f4c54ee8200d61c58027284b32e5f8f2c))
22
+
10
23
  ## [2.21.3](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@2.21.3) - 2026-08-20
11
24
 
12
25
  ### Bug Fixes
@@ -1,5 +1,5 @@
1
1
  import { mn as e } from "./useViewerSettingsDialog-D-N6D_Vp.js";
2
- import { _ as t, b as a, c as s, f as r, g as l, h as o, m as n, o as i, p, s as d, v as c, w as u, x as m, y as x } from "./viewer-CvBLviAV.js";
2
+ import { _ as t, b as a, c as s, f as r, g as l, h as o, m as n, o as i, p, s as d, v as c, w as u, x as m, y as x } from "./viewer-C3AxFNHB.js";
3
3
  import { Fragment as g, Suspense as f, computed as b, createBlock as v, createCommentVNode as h, createElementBlock as y, createElementVNode as k, createTextVNode as w, createVNode as C, defineComponent as P, nextTick as S, normalizeClass as T, normalizeStyle as I, onBeforeUnmount as _, onMounted as A, openBlock as E, ref as j, renderList as M, resolveDynamicComponent as F, shallowRef as B, toDisplayString as D, unref as N, vModelText as L, watch as R, withAsyncContext as H, withCtx as W, withDirectives as $ } from "vue";
4
4
  import { Bot as z, ChartColumn as V, Check as K, Crosshair as O, Eye as U, Film as q, GitMerge as G, History as J, LayoutTemplate as Q, LoaderCircle as X, MessageSquare as Y, MessageSquarePlus as Z, Move as ee, Navigation as te, Palette as ae, Pin as se, PinOff as re, Plus as le, Search as oe, Send as ne, Shapes as ie, Sparkles as pe, Square as de, StickyNote as ce, Table as ue, Trash2 as me, TriangleAlert as xe, Type as ge, User as fe, Wrench as be, X as ve } from "lucide-vue-next";
5
5
  import { getToolOrDynamicToolName as he, isDynamicToolUIPart as ye, isToolUIPart as ke } from "ai";
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- const e = require("./useViewerSettingsDialog-B1vgQnYK.cjs"), t = require("./viewer-mGy0sNtV.cjs");
1
+ const e = require("./useViewerSettingsDialog-B1vgQnYK.cjs"), t = require("./viewer-DPD8zmmd.cjs");
2
2
  let r = require("vue"), a = require("lucide-vue-next"), o = require("ai");
3
3
  var n = /* @__PURE__ */ new Set([
4
4
  "input-available",
Binary file
Binary file
package/dist/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("./useViewerSettingsDialog-B1vgQnYK.cjs"), o = require("./viewer-mGy0sNtV.cjs");
2
+ const e = require("./useViewerSettingsDialog-B1vgQnYK.cjs"), o = require("./viewer-DPD8zmmd.cjs");
3
3
  exports.AUDIENCE_HASH = e.AUDIENCE_HASH, exports.CollaborationCursors = o.CollaborationCursors_default, exports.CollaborationStatusIndicator = o.CollaborationStatusIndicator_default, exports.ElementRenderer = o.ElementRenderer_default, exports.FollowModeBar = o.FollowModeBar_default, exports.PPTX_OPEN_ACCEPT = e.PPTX_OPEN_ACCEPT, exports.PRESENTATION_OPEN_EXTENSIONS = e.PRESENTATION_OPEN_EXTENSIONS, exports.PowerPointViewer = o.PowerPointViewer_default, exports.RemoteSelectionOverlay = o.RemoteSelectionOverlay_default, exports.RibbonToolbar = o.RibbonToolbar_default, exports.SlideCanvas = o.SlideCanvas_default, exports.SlideStage = o.SlideStage_default, exports.clearAudienceContent = e.clearAudienceContent, exports.cn = o.cn, exports.defaultCssVars = e.defaultCssVars, exports.defaultRadius = e.defaultRadius, exports.defaultThemeColors = e.defaultThemeColors, exports.exportAllSlidesToSvg = e.exportAllSlidesToSvg, exports.exportAllSlidesToSvgBlobs = e.exportAllSlidesToSvgBlobs, exports.exportSlideToSvg = e.exportSlideToSvg, exports.exportSlideToSvgBlob = e.exportSlideToSvgBlob, exports.forgetSessionDeck = e.forgetSessionDeck, exports.getSessionTabId = e.getSessionTabId, exports.isAudienceTab = e.isAudienceTab, exports.isLegacyBinaryPresentation = e.isLegacyBinaryPresentation, exports.isSupportedPresentationFile = e.isSupportedPresentationFile, exports.loadAudienceContent = e.loadAudienceContent, exports.loadSessionDeck = e.loadSessionDeck, exports.parseAudienceNonce = e.parseAudienceNonce, exports.parsePresentationSessionId = e.parsePresentationSessionId, exports.presentationBaseName = e.presentationBaseName, exports.provideViewerTheme = o.provideViewerTheme, exports.rememberSessionDeck = e.rememberSessionDeck, exports.renderToCanvas = e.renderToCanvas, exports.restoreSessionDeck = e.restoreSessionDeck, exports.savedPresentationFileName = e.savedPresentationFileName, exports.storeAudienceContent = e.storeAudienceContent, exports.themeToCssVars = e.themeToCssVars, exports.useCollaboration = e.useCollaboration, exports.useCollaborativeHistory = o.useCollaborativeHistory, exports.useCollaborativeState = o.useCollaborativeState, exports.usePresenceTracking = o.usePresenceTracking, exports.useThemeStyle = o.useThemeStyle, exports.useViewerTheme = o.useViewerTheme, exports.useYjsProvider = o.useYjsProvider, exports.vermilionDarkColors = e.vermilionDarkColors, exports.vermilionDarkTheme = e.vermilionDarkTheme, exports.vermilionLightColors = e.vermilionLightColors, exports.vermilionLightTheme = e.vermilionLightTheme, exports.vermilionRadius = e.vermilionRadius;
package/dist/index.cjs.br CHANGED
Binary file
package/dist/index.cjs.gz CHANGED
Binary file
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { C as a, Cd as s, Cl as o, Dd as e, Ed as r, Fc as l, Ic as i, Io as t, Ja as d, Lu as n, No as w, Nr as C, Oc as S, Ol as c, Po as u, S as m, Tc as b, Td as p, W as v, Xl as T, Ys as g, it as E, kr as I, ku as O, ns as P, pc as R, ud as V, vn as f, w as j, wd as k, wl as x, x as y, yd as D } from "./useViewerSettingsDialog-D-N6D_Vp.js";
2
- import { C as F, E as N, H as W, S as B, T as H, U as J, V as L, W as M, a as U, d as X, i as Y, l as h, n as q, r as z, t as A, u as G, w as K } from "./viewer-CvBLviAV.js";
2
+ import { C as F, E as N, H as W, S as B, T as H, U as J, V as L, W as M, a as U, d as X, i as Y, l as h, n as q, r as z, t as A, u as G, w as K } from "./viewer-C3AxFNHB.js";
3
3
  export { f as AUDIENCE_HASH, X as CollaborationCursors, L as CollaborationStatusIndicator, N as ElementRenderer, h as FollowModeBar, I as PPTX_OPEN_ACCEPT, C as PRESENTATION_OPEN_EXTENSIONS, U as PowerPointViewer, G as RemoteSelectionOverlay, F as RibbonToolbar, B as SlideCanvas, H as SlideStage, d as clearAudienceContent, K as cn, w as defaultCssVars, u as defaultRadius, t as defaultThemeColors, y as exportAllSlidesToSvg, m as exportAllSlidesToSvgBlobs, a as exportSlideToSvg, j as exportSlideToSvgBlob, P as forgetSessionDeck, g as getSessionTabId, R as isAudienceTab, b as isLegacyBinaryPresentation, S as isSupportedPresentationFile, l as loadAudienceContent, i as loadSessionDeck, o as parseAudienceNonce, x as parsePresentationSessionId, c as presentationBaseName, W as provideViewerTheme, T as rememberSessionDeck, v as renderToCanvas, O as restoreSessionDeck, n as savedPresentationFileName, V as storeAudienceContent, D as themeToCssVars, E as useCollaboration, A as useCollaborativeHistory, q as useCollaborativeState, z as usePresenceTracking, J as useThemeStyle, M as useViewerTheme, Y as useYjsProvider, s as vermilionDarkColors, k as vermilionDarkTheme, p as vermilionLightColors, r as vermilionLightTheme, e as vermilionRadius };
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"TableRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/TableRenderer.vue"],"names":[],"mappings":"AA+qBA,OAAO,KAAK,EACX,mBAAmB,EACnB,WAAW,EAGX,oBAAoB,EACpB,MAAM,kBAAkB,CAAC;AAyB1B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,WAAW,CAAC;IACrB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oFAAoF;IACpF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACpC,CAAC;AA4oBH,QAAA,MAAM,YAAY;iBA1pBF,OAAO;6EA6pBrB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"TableRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/TableRenderer.vue"],"names":[],"mappings":"AAqqBA,OAAO,KAAK,EACX,mBAAmB,EACnB,WAAW,EAGX,oBAAoB,EACpB,MAAM,kBAAkB,CAAC;AAyB1B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,WAAW,CAAC;IACrB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oFAAoF;IACpF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACpC,CAAC;AAkoBH,QAAA,MAAM,YAAY;iBAhpBF,OAAO;6EAmpBrB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("../useViewerSettingsDialog-B1vgQnYK.cjs"), t = require("../viewer-mGy0sNtV.cjs");
2
+ const e = require("../useViewerSettingsDialog-B1vgQnYK.cjs"), t = require("../viewer-DPD8zmmd.cjs");
3
3
  exports.AUDIENCE_HASH = e.AUDIENCE_HASH, exports.ChartRenderer = t.ChartRenderer_default, exports.CollaborationCursors = t.CollaborationCursors_default, exports.CollaborationStatusIndicator = t.CollaborationStatusIndicator_default, exports.ConnectorRenderer = t.ConnectorRenderer_default, exports.DEFAULT_CANVAS_HEIGHT = e.DEFAULT_CANVAS_HEIGHT, exports.DEFAULT_CANVAS_WIDTH = e.DEFAULT_CANVAS_WIDTH, exports.DEFAULT_FILL_COLOR = e.DEFAULT_FILL_COLOR, exports.DEFAULT_STROKE_COLOR = e.DEFAULT_STROKE_COLOR, exports.DEFAULT_TEXT_COLOR = e.DEFAULT_TEXT_COLOR, exports.ElementRenderer = t.ElementRenderer_default, exports.EquationRenderer = t.EquationRenderer_default, exports.FollowModeBar = t.FollowModeBar_default, exports.InkRenderer = t.InkRenderer_default, exports.Model3DRenderer = t.Model3DRenderer_default, exports.OleRenderer = t.OleRenderer_default, exports.PowerPointViewer = t.PowerPointViewer_default, exports.RemoteSelectionOverlay = t.RemoteSelectionOverlay_default, exports.RibbonToolbar = t.RibbonToolbar_default, exports.SlideCanvas = t.SlideCanvas_default, exports.SlideStage = t.SlideStage_default, exports.SmartArtRenderer = t.SmartArtRenderer_default, exports.TableRenderer = t.TableRenderer_default, exports.WordArtText = t.WordArtText_default, exports.ZoomRenderer = t.ZoomRenderer_default, exports.buildInitialGuides = e.buildInitialGuides, exports.clearAudienceContent = e.clearAudienceContent, exports.collectImagePaths = e.collectImagePaths, exports.collectMediaElements = e.collectMediaElements, exports.exportAllSlidesToSvg = e.exportAllSlidesToSvg, exports.exportAllSlidesToSvgBlobs = e.exportAllSlidesToSvgBlobs, exports.exportSlideToSvg = e.exportSlideToSvg, exports.exportSlideToSvgBlob = e.exportSlideToSvgBlob, exports.getContainerStyle = t.getContainerStyle, exports.getImageSrc = t.getImageSrc, exports.getResolvedShapeClipPath = e.getResolvedShapeClipPath, exports.getResolvedShapeClipPathFor = e.getResolvedShapeClipPathFor, exports.getShapeFillStrokeStyle = t.getShapeFillStrokeStyle, exports.getTextBlockStyle = t.getTextBlockStyle, exports.isAudienceTab = e.isAudienceTab, exports.loadAudienceContent = e.loadAudienceContent, exports.parseAudienceNonce = e.parseAudienceNonce, exports.storeAudienceContent = e.storeAudienceContent, exports.useCollaboration = e.useCollaboration, exports.useCollaborativeHistory = t.useCollaborativeHistory, exports.useCollaborativeState = t.useCollaborativeState, exports.useEditorHistory = e.useEditorHistory, exports.useEditorOperations = e.useEditorOperations, exports.useLoadContent = e.useLoadContent, exports.usePresenceTracking = t.usePresenceTracking, exports.useYjsProvider = t.useYjsProvider;
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  import { C as a, Cl as s, Fc as e, J as r, Ja as o, Js as n, Qa as t, S as d, X as l, Za as i, ca as R, cn as C, dn as S, fn as m, it as c, j as u, ln as b, pc as w, qs as j, ud as p, un as v, vn as T, w as f, x as g } from "../useViewerSettingsDialog-D-N6D_Vp.js";
2
- import { A as x, B as A, C as D, D as E, E as F, F as I, I as J, L as M, M as O, N as P, O as V, P as k, R as q, S as B, T as Z, V as h, a as y, d as z, i as L, j as N, k as Q, l as W, n as X, r as G, t as H, u as K, z as U } from "../viewer-CvBLviAV.js";
2
+ import { A as x, B as A, C as D, D as E, E as F, F as I, I as J, L as M, M as O, N as P, O as V, P as k, R as q, S as B, T as Z, V as h, a as y, d as z, i as L, j as N, k as Q, l as W, n as X, r as G, t as H, u as K, z as U } from "../viewer-C3AxFNHB.js";
3
3
  export { T as AUDIENCE_HASH, J as ChartRenderer, z as CollaborationCursors, h as CollaborationStatusIndicator, I as ConnectorRenderer, C as DEFAULT_CANVAS_HEIGHT, b as DEFAULT_CANVAS_WIDTH, v as DEFAULT_FILL_COLOR, S as DEFAULT_STROKE_COLOR, m as DEFAULT_TEXT_COLOR, F as ElementRenderer, k as EquationRenderer, W as FollowModeBar, P as InkRenderer, O as Model3DRenderer, N as OleRenderer, y as PowerPointViewer, K as RemoteSelectionOverlay, D as RibbonToolbar, B as SlideCanvas, Z as SlideStage, x as SmartArtRenderer, Q as TableRenderer, V as WordArtText, E as ZoomRenderer, R as buildInitialGuides, o as clearAudienceContent, i as collectImagePaths, t as collectMediaElements, g as exportAllSlidesToSvg, d as exportAllSlidesToSvgBlobs, a as exportSlideToSvg, f as exportSlideToSvgBlob, M as getContainerStyle, q as getImageSrc, j as getResolvedShapeClipPath, n as getResolvedShapeClipPathFor, U as getShapeFillStrokeStyle, A as getTextBlockStyle, w as isAudienceTab, e as loadAudienceContent, s as parseAudienceNonce, p as storeAudienceContent, c as useCollaboration, H as useCollaborativeHistory, X as useCollaborativeState, l as useEditorHistory, r as useEditorOperations, u as useLoadContent, G as usePresenceTracking, L as useYjsProvider };
Binary file
Binary file
@@ -3324,7 +3324,6 @@ var Nf = sx(qp({
3324
3324
  }), [["__scopeId", "data-v-b0e2eb62"]]), Lf = ["data-element-id", "data-pptx-element"], jf = { key: 0 }, Kf = [
3325
3325
  "colspan",
3326
3326
  "rowspan",
3327
- "onPointerdown",
3328
3327
  "onClick",
3329
3328
  "onDblclick"
3330
3329
  ], Vf = {
@@ -3432,32 +3431,33 @@ var Nf = sx(qp({
3432
3431
  const t = g.value;
3433
3432
  return null !== t && t.rowIndex === e.rowIndex && t.colIndex === e.colIndex;
3434
3433
  }
3435
- const C = cu(null);
3436
- function _(e) {
3437
- f.value = " " === e.text ? "" : e.text, g.value = {
3438
- rowIndex: e.rowIndex,
3439
- colIndex: e.colIndex
3440
- };
3434
+ function C(e, t) {
3435
+ k.value && (e.stopPropagation(), function(e) {
3436
+ f.value = " " === e.text ? "" : e.text, g.value = {
3437
+ rowIndex: e.rowIndex,
3438
+ colIndex: e.colIndex
3439
+ };
3440
+ }(t));
3441
3441
  }
3442
- function I() {
3442
+ function _() {
3443
3443
  const e = g.value;
3444
3444
  e && (g.value = null, m?.commit(t.element.id, e.rowIndex, e.colIndex, f.value));
3445
3445
  }
3446
- function E(e) {
3447
- e.stopPropagation(), "Enter" === e.key || "Tab" === e.key ? (e.preventDefault(), I()) : "Escape" === e.key && (e.preventDefault(), g.value = null);
3446
+ function I(e) {
3447
+ e.stopPropagation(), "Enter" === e.key || "Tab" === e.key ? (e.preventDefault(), _()) : "Escape" === e.key && (e.preventDefault(), g.value = null);
3448
3448
  }
3449
- let P = null;
3449
+ let E = null;
3450
3450
  return Pu(g, (e) => {
3451
3451
  e ? (eu(() => {
3452
3452
  const e = y.value;
3453
3453
  e && (e.focus(), e.select());
3454
- }), P || (P = (e) => {
3454
+ }), E || (E = (e) => {
3455
3455
  if ("mouse" === e.pointerType) return;
3456
3456
  const t = y.value;
3457
3457
  t && !t.contains(e.target) && t.blur();
3458
- }, document.addEventListener("pointerdown", P, !0))) : P && (document.removeEventListener("pointerdown", P, !0), P = null);
3458
+ }, document.addEventListener("pointerdown", E, !0))) : E && (document.removeEventListener("pointerdown", E, !0), E = null);
3459
3459
  }), au(() => {
3460
- P && (document.removeEventListener("pointerdown", P, !0), P = null);
3460
+ E && (document.removeEventListener("pointerdown", E, !0), E = null);
3461
3461
  }), (t, a) => l.value ? (du(), Kp("div", {
3462
3462
  key: 0,
3463
3463
  class: "pptx-vue-element pptx-vue-table",
@@ -3489,27 +3489,20 @@ var Nf = sx(qp({
3489
3489
  colspan: e.colSpan,
3490
3490
  rowspan: e.rowSpan,
3491
3491
  style: ou(u(e)),
3492
- onPointerdown: (t) => function(e, t) {
3493
- if (k.value && "extend" === Vi({
3492
+ onPointerdown: a[5] || (a[5] = (e) => {
3493
+ t = e, k.value && "extend" === Vi({
3494
3494
  isTableCell: !0,
3495
- shiftKey: e.shiftKey,
3495
+ shiftKey: t.shiftKey,
3496
3496
  elementSelected: null !== x.activeSelection.value,
3497
3497
  rangeOnSameElement: null !== x.activeSelection.value
3498
- }) && e.stopPropagation(), "mouse" === e.pointerType || !k.value) return;
3499
- const n = e.timeStamp || Date.now(), o = C.value;
3500
- if (o && o.rowIndex === t.rowIndex && o.colIndex === t.colIndex && n - o.time < 400) return C.value = null, e.stopPropagation(), void _(t);
3501
- C.value = {
3502
- rowIndex: t.rowIndex,
3503
- colIndex: t.colIndex,
3504
- time: n
3505
- };
3506
- }(t, e),
3498
+ }) && t.stopPropagation();
3499
+ return;
3500
+ var t;
3501
+ }),
3507
3502
  onClick: (t) => function(e, t) {
3508
3503
  k.value && (e.stopPropagation(), x.selectCell(t.rowIndex, t.colIndex, e.shiftKey));
3509
3504
  }(t, e),
3510
- onDblclick: (t) => function(e, t) {
3511
- k.value && (e.stopPropagation(), _(t));
3512
- }(t, e)
3505
+ onDblclick: (t) => C(t, e)
3513
3506
  }, [e.diagonals ? (du(), Kp("svg", Vf, [e.diagonals.diagDownColor && e.diagonals.diagDownWidth ? (du(), Kp("line", {
3514
3507
  key: 0,
3515
3508
  x1: "0",
@@ -3537,8 +3530,8 @@ var Nf = sx(qp({
3537
3530
  onMousedown: a[2] || (a[2] = Mu(() => {}, ["stop"])),
3538
3531
  onClick: a[3] || (a[3] = Mu(() => {}, ["stop"])),
3539
3532
  onDblclick: a[4] || (a[4] = Mu(() => {}, ["stop"])),
3540
- onBlur: I,
3541
- onKeydown: E
3533
+ onBlur: _,
3534
+ onKeydown: I
3542
3535
  }, null, 544)), [[Iu, f.value]]) : e.textRuns ? (du(!0), Kp(Rp, { key: 2 }, mu(e.textRuns, (t, n) => (du(), Kp(Rp, { key: `${e.key}-run-${n}` }, [t.isParagraphBreak ? (du(), Kp("div", Wf)) : t.isLineBreak ? (du(), Kp("br", Gf)) : (du(), Kp("span", {
3543
3536
  key: 2,
3544
3537
  class: "pptx-vue-table__run",
@@ -3547,7 +3540,7 @@ var Nf = sx(qp({
3547
3540
  _: 1
3548
3541
  }, 8, ["column-widths", "editable"])], 12, Lf)) : jp("", !0);
3549
3542
  }
3550
- }), [["__scopeId", "data-v-f9a4b560"]]), Yf = [
3543
+ }), [["__scopeId", "data-v-e3abae47"]]), Yf = [
3551
3544
  "width",
3552
3545
  "height",
3553
3546
  "viewBox"
@@ -5685,7 +5678,7 @@ var Ok = ["disabled", "title"], Bk = ["disabled", "title"], Rk = ["title"], Uk =
5685
5678
  Vp("span", Wk, gu(t.drawingWidth), 1)
5686
5679
  ], 8, Zk)])], 64));
5687
5680
  }
5688
- }), qk = "2.21.3", Xk = Symbol("pptx-account-auth");
5681
+ }), qk = "2.21.4", Xk = Symbol("pptx-account-auth");
5689
5682
  var Jk = { class: "pptx-vue-account mt-8 flex max-w-[760px] flex-col gap-6" }, Yk = { class: "pptx-vue-account-section border border-border bg-card p-6 text-card-foreground" }, Qk = { class: "text-base font-semibold" }, eS = { class: "mt-4 flex items-center gap-4" }, tS = { class: "min-w-0 flex-1" }, nS = { class: "block text-xs font-medium text-muted-foreground" }, oS = ["value", "placeholder"], aS = { class: "mt-4" }, lS = { class: "block text-xs font-medium text-muted-foreground" }, iS = { class: "mt-2 flex gap-2" }, rS = [
5690
5683
  "aria-pressed",
5691
5684
  "aria-label",
@@ -33568,7 +33561,7 @@ var Aue = sx(qp({
33568
33561
  var n;
33569
33562
  }), 128))])], 8, Sce))), 128))])) : (du(), Kp("div", fce, [Vp("p", yce, gu(yu(a)("pptx.accessibility.noIssuesFound")), 1), Vp("p", wce, gu(yu(a)("pptx.accessibility.noIssuesHint")), 1)]))], 8, xce));
33570
33563
  }
33571
- }), Dce = Gp(() => import("./AiChatPanel-Cn3MnNMC.js")), Mce = { class: "pptx-vue-custom-shows flex flex-col gap-2 p-2.5 text-xs text-foreground" }, $ce = { class: "pptx-vue-cs-header flex items-center" }, Oce = { class: "pptx-vue-cs-title m-0 text-[13px] font-semibold" }, Bce = { class: "pptx-vue-cs-list-row flex items-center gap-1.5" }, Rce = ["aria-label", "value"], Uce = {
33564
+ }), Dce = Gp(() => import("./AiChatPanel-Ddeo7bL9.js")), Mce = { class: "pptx-vue-custom-shows flex flex-col gap-2 p-2.5 text-xs text-foreground" }, $ce = { class: "pptx-vue-cs-header flex items-center" }, Oce = { class: "pptx-vue-cs-title m-0 text-[13px] font-semibold" }, Bce = { class: "pptx-vue-cs-list-row flex items-center gap-1.5" }, Rce = ["aria-label", "value"], Uce = {
33572
33565
  key: 0,
33573
33566
  value: "",
33574
33567
  disabled: ""
Binary file
Binary file
@@ -3318,7 +3318,6 @@ var Ma = ae((0, a.defineComponent)({
3318
3318
  }), [["__scopeId", "data-v-b0e2eb62"]]), Oa = ["data-element-id", "data-pptx-element"], La = { key: 0 }, Ra = [
3319
3319
  "colspan",
3320
3320
  "rowspan",
3321
- "onPointerdown",
3322
3321
  "onClick",
3323
3322
  "onDblclick"
3324
3323
  ], $a = {
@@ -3426,32 +3425,33 @@ var Ma = ae((0, a.defineComponent)({
3426
3425
  const t = b.value;
3427
3426
  return null !== t && t.rowIndex === e.rowIndex && t.colIndex === e.colIndex;
3428
3427
  }
3429
- const B = (0, a.ref)(null);
3430
- function N(e) {
3431
- k.value = " " === e.text ? "" : e.text, b.value = {
3432
- rowIndex: e.rowIndex,
3433
- colIndex: e.colIndex
3434
- };
3428
+ function B(e, t) {
3429
+ w.value && (e.stopPropagation(), function(e) {
3430
+ k.value = " " === e.text ? "" : e.text, b.value = {
3431
+ rowIndex: e.rowIndex,
3432
+ colIndex: e.colIndex
3433
+ };
3434
+ }(t));
3435
3435
  }
3436
- function V() {
3436
+ function N() {
3437
3437
  const e = b.value;
3438
3438
  e && (b.value = null, v?.commit(t.element.id, e.rowIndex, e.colIndex, k.value));
3439
3439
  }
3440
- function D(e) {
3441
- e.stopPropagation(), "Enter" === e.key || "Tab" === e.key ? (e.preventDefault(), V()) : "Escape" === e.key && (e.preventDefault(), b.value = null);
3440
+ function V(e) {
3441
+ e.stopPropagation(), "Enter" === e.key || "Tab" === e.key ? (e.preventDefault(), N()) : "Escape" === e.key && (e.preventDefault(), b.value = null);
3442
3442
  }
3443
- let T = null;
3443
+ let D = null;
3444
3444
  return (0, a.watch)(b, (e) => {
3445
3445
  e ? ((0, a.nextTick)(() => {
3446
3446
  const e = E.value;
3447
3447
  e && (e.focus(), e.select());
3448
- }), T || (T = (e) => {
3448
+ }), D || (D = (e) => {
3449
3449
  if ("mouse" === e.pointerType) return;
3450
3450
  const t = E.value;
3451
3451
  t && !t.contains(e.target) && t.blur();
3452
- }, document.addEventListener("pointerdown", T, !0))) : T && (document.removeEventListener("pointerdown", T, !0), T = null);
3452
+ }, document.addEventListener("pointerdown", D, !0))) : D && (document.removeEventListener("pointerdown", D, !0), D = null);
3453
3453
  }), (0, a.onBeforeUnmount)(() => {
3454
- T && (document.removeEventListener("pointerdown", T, !0), T = null);
3454
+ D && (document.removeEventListener("pointerdown", D, !0), D = null);
3455
3455
  }), (t, l) => i.value ? ((0, a.openBlock)(), (0, a.createElementBlock)("div", {
3456
3456
  key: 0,
3457
3457
  class: "pptx-vue-element pptx-vue-table",
@@ -3483,27 +3483,20 @@ var Ma = ae((0, a.defineComponent)({
3483
3483
  colspan: e.colSpan,
3484
3484
  rowspan: e.rowSpan,
3485
3485
  style: (0, a.normalizeStyle)(m(e)),
3486
- onPointerdown: (t) => function(e, t) {
3487
- if (w.value && "extend" === n.tableCellPointerIntent({
3486
+ onPointerdown: l[5] || (l[5] = (e) => {
3487
+ t = e, w.value && "extend" === n.tableCellPointerIntent({
3488
3488
  isTableCell: !0,
3489
- shiftKey: e.shiftKey,
3489
+ shiftKey: t.shiftKey,
3490
3490
  elementSelected: null !== x.activeSelection.value,
3491
3491
  rangeOnSameElement: null !== x.activeSelection.value
3492
- }) && e.stopPropagation(), "mouse" === e.pointerType || !w.value) return;
3493
- const o = e.timeStamp || Date.now(), a = B.value;
3494
- if (a && a.rowIndex === t.rowIndex && a.colIndex === t.colIndex && o - a.time < 400) return B.value = null, e.stopPropagation(), void N(t);
3495
- B.value = {
3496
- rowIndex: t.rowIndex,
3497
- colIndex: t.colIndex,
3498
- time: o
3499
- };
3500
- }(t, e),
3492
+ }) && t.stopPropagation();
3493
+ return;
3494
+ var t;
3495
+ }),
3501
3496
  onClick: (t) => function(e, t) {
3502
3497
  w.value && (e.stopPropagation(), x.selectCell(t.rowIndex, t.colIndex, e.shiftKey));
3503
3498
  }(t, e),
3504
- onDblclick: (t) => function(e, t) {
3505
- w.value && (e.stopPropagation(), N(t));
3506
- }(t, e)
3499
+ onDblclick: (t) => B(t, e)
3507
3500
  }, [e.diagonals ? ((0, a.openBlock)(), (0, a.createElementBlock)("svg", $a, [e.diagonals.diagDownColor && e.diagonals.diagDownWidth ? ((0, a.openBlock)(), (0, a.createElementBlock)("line", {
3508
3501
  key: 0,
3509
3502
  x1: "0",
@@ -3531,8 +3524,8 @@ var Ma = ae((0, a.defineComponent)({
3531
3524
  onMousedown: l[2] || (l[2] = (0, a.withModifiers)(() => {}, ["stop"])),
3532
3525
  onClick: l[3] || (l[3] = (0, a.withModifiers)(() => {}, ["stop"])),
3533
3526
  onDblclick: l[4] || (l[4] = (0, a.withModifiers)(() => {}, ["stop"])),
3534
- onBlur: V,
3535
- onKeydown: D
3527
+ onBlur: N,
3528
+ onKeydown: V
3536
3529
  }, null, 544)), [[a.vModelText, k.value]]) : e.textRuns ? ((0, a.openBlock)(!0), (0, a.createElementBlock)(a.Fragment, { key: 2 }, (0, a.renderList)(e.textRuns, (t, n) => ((0, a.openBlock)(), (0, a.createElementBlock)(a.Fragment, { key: `${e.key}-run-${n}` }, [t.isParagraphBreak ? ((0, a.openBlock)(), (0, a.createElementBlock)("div", Ka)) : t.isLineBreak ? ((0, a.openBlock)(), (0, a.createElementBlock)("br", Ha)) : ((0, a.openBlock)(), (0, a.createElementBlock)("span", {
3537
3530
  key: 2,
3538
3531
  class: "pptx-vue-table__run",
@@ -3541,7 +3534,7 @@ var Ma = ae((0, a.defineComponent)({
3541
3534
  _: 1
3542
3535
  }, 8, ["column-widths", "editable"])], 12, Oa)) : (0, a.createCommentVNode)("", !0);
3543
3536
  }
3544
- }), [["__scopeId", "data-v-f9a4b560"]]), qa = [
3537
+ }), [["__scopeId", "data-v-e3abae47"]]), qa = [
3545
3538
  "width",
3546
3539
  "height",
3547
3540
  "viewBox"
@@ -5680,7 +5673,7 @@ var _i = ["disabled", "title"], zi = ["disabled", "title"], Pi = ["title"], Fi =
5680
5673
  (0, a.createElementVNode)("span", ji, (0, a.toDisplayString)(t.drawingWidth), 1)
5681
5674
  ], 8, $i)])], 64));
5682
5675
  }
5683
- }), Hi = "2.21.3", Zi = Symbol("pptx-account-auth");
5676
+ }), Hi = "2.21.4", Zi = Symbol("pptx-account-auth");
5684
5677
  var Gi = { class: "pptx-vue-account mt-8 flex max-w-[760px] flex-col gap-6" }, Wi = { class: "pptx-vue-account-section border border-border bg-card p-6 text-card-foreground" }, qi = { class: "text-base font-semibold" }, Xi = { class: "mt-4 flex items-center gap-4" }, Yi = { class: "min-w-0 flex-1" }, Ji = { class: "block text-xs font-medium text-muted-foreground" }, Qi = ["value", "placeholder"], es = { class: "mt-4" }, ts = { class: "block text-xs font-medium text-muted-foreground" }, ns = { class: "mt-2 flex gap-2" }, os = [
5685
5678
  "aria-pressed",
5686
5679
  "aria-label",
@@ -33582,7 +33575,7 @@ var D3 = ae((0, a.defineComponent)({
33582
33575
  var o;
33583
33576
  }), 128))])], 8, b6))), 128))])) : ((0, a.openBlock)(), (0, a.createElementBlock)("div", g6, [(0, a.createElementVNode)("p", x6, (0, a.toDisplayString)((0, a.unref)(l)("pptx.accessibility.noIssuesFound")), 1), (0, a.createElementVNode)("p", h6, (0, a.toDisplayString)((0, a.unref)(l)("pptx.accessibility.noIssuesHint")), 1)]))], 8, u6));
33584
33577
  }
33585
- }), T6 = (0, a.defineAsyncComponent)(() => Promise.resolve().then(() => require("./AiChatPanel-BwsuKLwj.cjs"))), I6 = { class: "pptx-vue-custom-shows flex flex-col gap-2 p-2.5 text-xs text-foreground" }, _6 = { class: "pptx-vue-cs-header flex items-center" }, z6 = { class: "pptx-vue-cs-title m-0 text-[13px] font-semibold" }, P6 = { class: "pptx-vue-cs-list-row flex items-center gap-1.5" }, F6 = ["aria-label", "value"], A6 = {
33578
+ }), T6 = (0, a.defineAsyncComponent)(() => Promise.resolve().then(() => require("./AiChatPanel-gD7IOMP6.cjs"))), I6 = { class: "pptx-vue-custom-shows flex flex-col gap-2 p-2.5 text-xs text-foreground" }, _6 = { class: "pptx-vue-cs-header flex items-center" }, z6 = { class: "pptx-vue-cs-title m-0 text-[13px] font-semibold" }, P6 = { class: "pptx-vue-cs-list-row flex items-center gap-1.5" }, F6 = ["aria-label", "value"], A6 = {
33586
33579
  key: 0,
33587
33580
  value: "",
33588
33581
  disabled: ""
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-vue-viewer",
3
- "version": "2.21.4",
3
+ "version": "2.21.5",
4
4
  "description": "Vue 3 PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "editor",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file