pptx-vue-viewer 1.22.0 → 1.23.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.
- package/CHANGELOG.md +4 -0
- package/README.md +44 -2
- package/dist/composables-unstable.cjs +1 -1
- package/dist/composables-unstable.cjs.br +0 -0
- package/dist/composables-unstable.cjs.gz +0 -0
- package/dist/composables-unstable.js +2 -2
- package/dist/composables-unstable.js.br +0 -0
- package/dist/composables-unstable.js.gz +0 -0
- package/dist/{dist-5AOOL1Jo.js → dist-BHvZD9xP.js} +8790 -8050
- package/dist/dist-BHvZD9xP.js.br +0 -0
- package/dist/dist-BHvZD9xP.js.gz +0 -0
- package/dist/{dist-CJQ7zbcU.cjs → dist-CtD22qai.cjs} +8896 -8156
- package/dist/dist-CtD22qai.cjs.br +0 -0
- package/dist/dist-CtD22qai.cjs.gz +0 -0
- package/dist/gif-encoder-CHVkGveW.js +2 -0
- package/dist/gif-encoder-CHVkGveW.js.br +0 -0
- package/dist/gif-encoder-CHVkGveW.js.gz +0 -0
- package/dist/gif-encoder-WqAwfQ70.cjs +2 -0
- package/dist/gif-encoder-WqAwfQ70.cjs.br +0 -0
- package/dist/gif-encoder-WqAwfQ70.cjs.gz +0 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +1 -1
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/{useViewerSettingsDialog-CkY4fSDh.js → useViewerSettingsDialog-BFXCVlAC.js} +2781 -2698
- package/dist/useViewerSettingsDialog-BFXCVlAC.js.br +0 -0
- package/dist/useViewerSettingsDialog-BFXCVlAC.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-CvBIvcW0.cjs → useViewerSettingsDialog-DYK4zbNW.cjs} +3151 -3063
- package/dist/useViewerSettingsDialog-DYK4zbNW.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-DYK4zbNW.cjs.gz +0 -0
- package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
- package/dist/viewer/components/EquationEditorDialog.vue.d.ts.map +1 -1
- package/dist/viewer/components/SlideStage.vue.d.ts +9 -0
- package/dist/viewer/components/SlideStage.vue.d.ts.map +1 -1
- package/dist/viewer/composables/ribbon-props-state.d.ts +4 -4
- package/dist/viewer/composables/stage-element-markers.d.ts +25 -0
- package/dist/viewer/composables/stage-element-markers.d.ts.map +1 -0
- package/dist/viewer/index.cjs +2 -2
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.d.ts +2 -0
- package/dist/viewer/index.d.ts.map +1 -1
- package/dist/viewer/index.js +3 -3
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-CBbNiJ9q.js → viewer-CufTikwH.js} +6539 -6582
- package/dist/viewer-CufTikwH.js.br +0 -0
- package/dist/viewer-CufTikwH.js.gz +0 -0
- package/dist/{viewer-CNhkzhvY.cjs → viewer-DiZYxyTR.cjs} +273 -311
- package/dist/viewer-DiZYxyTR.cjs.br +0 -0
- package/dist/viewer-DiZYxyTR.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/dist-5AOOL1Jo.js.br +0 -0
- package/dist/dist-5AOOL1Jo.js.gz +0 -0
- package/dist/dist-CJQ7zbcU.cjs.br +0 -0
- package/dist/dist-CJQ7zbcU.cjs.gz +0 -0
- package/dist/gif-encoder-Cg4GoTVC.cjs +0 -2
- package/dist/gif-encoder-Cg4GoTVC.cjs.br +0 -0
- package/dist/gif-encoder-Cg4GoTVC.cjs.gz +0 -0
- package/dist/gif-encoder-upp0UMCu.js +0 -2
- package/dist/gif-encoder-upp0UMCu.js.br +0 -0
- package/dist/gif-encoder-upp0UMCu.js.gz +0 -0
- package/dist/useViewerSettingsDialog-CkY4fSDh.js.br +0 -0
- package/dist/useViewerSettingsDialog-CkY4fSDh.js.gz +0 -0
- package/dist/useViewerSettingsDialog-CvBIvcW0.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-CvBIvcW0.cjs.gz +0 -0
- package/dist/viewer-CBbNiJ9q.js.br +0 -0
- package/dist/viewer-CBbNiJ9q.js.gz +0 -0
- package/dist/viewer-CNhkzhvY.cjs.br +0 -0
- package/dist/viewer-CNhkzhvY.cjs.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [1.22.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.22.1) - 2026-07-18
|
|
8
|
+
|
|
9
|
+
## [1.22.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.22.0) - 2026-07-18
|
|
10
|
+
|
|
7
11
|
## [1.21.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.21.0) - 2026-07-17
|
|
8
12
|
|
|
9
13
|
### Features
|
package/README.md
CHANGED
|
@@ -214,8 +214,50 @@ async function save() {
|
|
|
214
214
|
### Exported components & helpers
|
|
215
215
|
|
|
216
216
|
`PowerPointViewer`, `SlideCanvas`, `SlideStage`, `ElementRenderer`,
|
|
217
|
-
`provideViewerTheme`, `useViewerTheme`, and the `ViewerTheme` /
|
|
218
|
-
`CollaborationConfig` / `ToolbarActionId` types.
|
|
217
|
+
`RibbonToolbar`, `provideViewerTheme`, `useViewerTheme`, and the `ViewerTheme` /
|
|
218
|
+
`CanvasSize` / `CollaborationConfig` / `ToolbarActionId` / `RibbonProps` types.
|
|
219
|
+
|
|
220
|
+
### Composing a custom viewer shell
|
|
221
|
+
|
|
222
|
+
`<PowerPointViewer>` bundles the slide canvas, ribbon, inspector, and every
|
|
223
|
+
dialog into one component. If you only want a subset, for example your own
|
|
224
|
+
chrome around just the ribbon and the slide canvas, import the pieces
|
|
225
|
+
independently instead: `RibbonToolbar` (from `pptx-vue-viewer`, same as
|
|
226
|
+
`SlideCanvas`) and the `useRibbonProps` composable (from the "advanced
|
|
227
|
+
integrations" entry point `pptx-vue-viewer/composables-unstable`) that
|
|
228
|
+
assembles its props. `composables-unstable` has no semver stability
|
|
229
|
+
guarantee, so pin your version when relying on it.
|
|
230
|
+
|
|
231
|
+
```vue
|
|
232
|
+
<script setup lang="ts">
|
|
233
|
+
import { SlideCanvas, RibbonToolbar } from 'pptx-vue-viewer';
|
|
234
|
+
import {
|
|
235
|
+
useRibbonProps,
|
|
236
|
+
useEditorHistory,
|
|
237
|
+
useSelection,
|
|
238
|
+
// ...plus whichever other composables you need to build the
|
|
239
|
+
// `UseRibbonPropsInput` state/action fields (see ribbon-props-types.ts).
|
|
240
|
+
} from 'pptx-vue-viewer/composables-unstable';
|
|
241
|
+
|
|
242
|
+
// Wire up just the state/handlers your custom shell needs; anything from
|
|
243
|
+
// `UseRibbonPropsInput` you don't use can be a no-op ref/callback.
|
|
244
|
+
const ribbonProps = useRibbonProps({
|
|
245
|
+
/* ribbonMode, canEdit, isMobile, ..., see UseRibbonPropsInput */
|
|
246
|
+
});
|
|
247
|
+
</script>
|
|
248
|
+
|
|
249
|
+
<template>
|
|
250
|
+
<div class="my-custom-shell">
|
|
251
|
+
<RibbonToolbar v-bind="ribbonProps" />
|
|
252
|
+
<SlideCanvas :slide="activeSlide" :scale="zoom" />
|
|
253
|
+
</div>
|
|
254
|
+
</template>
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
`RibbonToolbar`'s full prop contract is the `RibbonProps` type; `useRibbonProps`
|
|
258
|
+
returns a `ComputedRef<RibbonProps>` built from the same state/action
|
|
259
|
+
composables `PowerPointViewer.vue` itself uses, so `v-bind`ing it straight onto
|
|
260
|
+
`RibbonToolbar` mirrors the bundled component's wiring exactly.
|
|
219
261
|
|
|
220
262
|
## Localization (i18n)
|
|
221
263
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const e = require("./useViewerSettingsDialog-
|
|
2
|
+
const e = require("./useViewerSettingsDialog-DYK4zbNW.cjs");
|
|
3
3
|
let t = require("vue");
|
|
4
4
|
function s(e) {
|
|
5
5
|
const t = /* @__PURE__ */ new Set(), s = [];
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as a, $n as s, $t as t, A as e,
|
|
1
|
+
import { $ as a, $n as s, $t as t, A as e, Ar as n, At as u, B as l, Bt as i, Ct as o, D as c, Dt as r, E as v, Et as f, F as d, G as g, Gt as h, H as m, Ht as p, I as S, J as w, Jt as y, K as j, Kt as A, L as D, M as E, Mt as M, N as V, Nt as $, O as k, Ot as q, P as x, Q as z, R as B, Ra as G, Si as H, St as I, T as J, Tt as K, U as N, Ut as O, V as R, Vt as T, W as U, Wt as W, X, Xt as Y, Y as Z, Yt as _, Z as b, Zt as C, _ as F, _t as L, a as P, an as Q, at as aa, bt as sa, c as ta, cn as ea, ct as na, d as ua, dr as la, dt as ia, er as oa, et as ca, f as ra, ft as va, g as fa, gt as da, h as ga, hn as ha, ht as ma, i as pa, ii as Sa, in as wa, it as ya, j as ja, jt as Aa, k as Da, kt as Ea, l as Ma, ln as Va, m as $a, mt as ka, n as qa, nn as xa, nt as za, o as Ba, on as Ga, ot as Ha, p as Ia, pt as Ja, q as Ka, qt as Na, r as Oa, rn as Ra, rt as Ta, s as Ua, sn as Wa, st as Xa, t as Ya, tt as Za, u as _a, v as ba, vt as Ca, w as Fa, wt as La, xt as Pa, y as Qa, yt as as, z as ss, zt as ts } from "./useViewerSettingsDialog-BFXCVlAC.js";
|
|
2
2
|
import { computed as es, readonly as ns, ref as us } from "vue";
|
|
3
3
|
function ls(a = []) {
|
|
4
4
|
const s = us(is(a)), t = es(() => 0 === s.value.length);
|
|
@@ -27,4 +27,4 @@ function is(a) {
|
|
|
27
27
|
for (const e of a) s.has(e) || (s.add(e), t.push(e));
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
30
|
-
export {
|
|
30
|
+
export { Oa as DEFAULT_MAX_VERSIONS, La as ERASER_RADIUS, K as HIGHLIGHTER_OPACITY, f as HIGHLIGHTER_WIDTH, s as MOBILE_BREAKPOINT, oa as MOBILE_LANDSCAPE_MAX_HEIGHT, va as NUDGE_LARGE, Ja as NUDGE_SMALL, r as PEN_WIDTH, fa as RIBBON_ALIGN, ka as SHORTCUT_CATALOG, ma as SHORTCUT_GROUP_LABEL_KEYS, i as SMARTART_COLOR_SCHEMES, T as SMARTART_STYLE_OPTIONS, ea as SmartArt3DKey, la as TABLET_BREAKPOINT, Na as TableSelectionKey, n as buildClickGroups, D as buildSearchRegex, q as buildStrokePathD, y as computeCellSelection, Sa as computeDocumentStatistics, as as computeElapsed, H as countWords, Ea as createStroke, u as eraseStrokesAtPoint, B as findMatches, sa as formatRehearseMs, za as generateCommentId, da as groupShortcutCatalog, _ as injectTableSelection, xa as inlineEditorRect, G as isMobileViewport, Ra as nodeIdsInRenderOrder, Y as provideTableSelection, ss as replaceInElement, L as resolveShortcutAction, p as smartArtLayoutLabel, wa as textNodeIdsInRenderOrder, F as toShapePreset, na as useAccessibility, Xa as useAlignGroup, $ as useAnimationPlayback, Ha as useAutosave, h as useChartEditing, aa as useCollaboration, ya as useCollaborationWiring, Wa as useColorChangeImage, Ta as useComments, Za as useCommentsWiring, ca as useContextMenu, a as useCustomShows, z as useCustomShowsWiring, W as useDebouncedCallback, b as useDocumentPropertiesDialog, A as useDocumentStatistics, X as useEditorHistory, Z as useEditorKeyboard, w as useEditorOperations, Ka as useElementDrag, j as useElementInsertion, g as useEmbeddedFonts, U as useExport, N as useExportProgress, R as useExportWiring, l as useFindReplace, S as useFontEmbedding, d as useFormatPainter, x as useHeaderFooterDialog, V as useInkDrawing, E as useInlineEditing, ja as useInsertElementDialogs, M as useIsMobile, e as useKeyboardInsets, Ca as useKeyboardShortcuts, Da as useLoadContent, k as useMasterViewState, m as useMediaExport, c as useMobileChrome, Ga as useModel3dScene, v as useMultiSelectOps, J as usePasswordProtection, Aa as usePresentationAnnotations, Fa as usePresentationModeWiring, Qa as usePrint, Pa as useRehearseTimings, ba as useRibbonActions, ga as useRibbonProps, $a as useRibbonUiState, Ia as useSectionOperations, ls as useSelection, ra as useSelectionPaneWiring, ha as useSheetDismissDrag, ua as useSignatureWorkflow, ia as useSignatures, _a as useSlideMutations, Ma as useSlideOperations, ta as useSlideShowSettings, Va as useSmartArt3D, ts as useSmartArtEditing, O as useSmartArtFocus, t as useSmartArtHoverRect, Q as useSmartArtInlineEditState, Ua as useSmartArtNodeEditContext, Ba as useTableCellEditingContext, C as useTableCellSelection, P as useThemeEditing, o as useToolbarAutoHide, I as useTouchGestures, pa as useVersionHistory, qa as useVersionHistoryWiring, Ya as useViewerSettingsDialog };
|
|
Binary file
|
|
Binary file
|