pptx-react-viewer 2.18.0 → 2.19.1
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 +712 -0
- package/dist/{AiChatPanel-SSSBERWJ.mjs → AiChatPanel-GRAIPSG3.mjs} +4 -4
- package/dist/AiChatPanel-GRAIPSG3.mjs.br +0 -0
- package/dist/AiChatPanel-GRAIPSG3.mjs.gz +0 -0
- package/dist/{AiChatPanel-UN5DHPZY.js → AiChatPanel-JSTZ6W7R.js} +24 -24
- package/dist/AiChatPanel-JSTZ6W7R.js.br +0 -0
- package/dist/AiChatPanel-JSTZ6W7R.js.gz +0 -0
- package/dist/{Model3DScene-LYEESYAI.mjs → Model3DScene-FXDA7OII.mjs} +1 -1
- package/dist/Model3DScene-FXDA7OII.mjs.br +0 -0
- package/dist/Model3DScene-FXDA7OII.mjs.gz +0 -0
- package/dist/{Model3DScene-4RPYKC2I.js → Model3DScene-WLRZXJHN.js} +2 -2
- package/dist/Model3DScene-WLRZXJHN.js.br +0 -0
- package/dist/Model3DScene-WLRZXJHN.js.gz +0 -0
- package/dist/{PowerPointViewer-Cf4YHjdF.d.ts → PowerPointViewer-DVFkeluD.d.ts} +2 -2
- package/dist/PowerPointViewer-DVFkeluD.d.ts.map +1 -0
- package/dist/{audience-content-store-CyS0oP6t.d.ts → audience-content-store-ChVOSdBh.d.ts} +2 -2
- package/dist/{audience-content-store-CyS0oP6t.d.ts.map → audience-content-store-ChVOSdBh.d.ts.map} +1 -1
- package/dist/{chunk-QUB5OSKY.mjs → chunk-5ZQ3ZQ3M.mjs} +71 -125
- package/dist/chunk-5ZQ3ZQ3M.mjs.br +0 -0
- package/dist/chunk-5ZQ3ZQ3M.mjs.gz +0 -0
- package/dist/{chunk-O7FTUUXP.mjs → chunk-B55E3KXL.mjs} +210 -92
- package/dist/chunk-B55E3KXL.mjs.br +0 -0
- package/dist/chunk-B55E3KXL.mjs.gz +0 -0
- package/dist/{chunk-7XF6S4AM.mjs → chunk-KQGS6A5J.mjs} +1 -1
- package/dist/chunk-KQGS6A5J.mjs.br +0 -0
- package/dist/chunk-KQGS6A5J.mjs.gz +0 -0
- package/dist/{chunk-ASKYZ5ZY.js → chunk-LMTUC7U7.js} +440 -494
- package/dist/chunk-LMTUC7U7.js.br +0 -0
- package/dist/chunk-LMTUC7U7.js.gz +0 -0
- package/dist/{chunk-RTUGI4HQ.js → chunk-MVKRI3CZ.js} +9 -0
- package/dist/chunk-MVKRI3CZ.js.br +0 -0
- package/dist/chunk-MVKRI3CZ.js.gz +0 -0
- package/dist/{chunk-4LWGAVAP.js → chunk-PIJAFM4B.js} +197 -2425
- package/dist/chunk-PIJAFM4B.js.br +0 -0
- package/dist/chunk-PIJAFM4B.js.gz +0 -0
- package/dist/{chunk-GODW6RNR.mjs → chunk-PNR3J26S.mjs} +1173 -1051
- package/dist/chunk-PNR3J26S.mjs.br +0 -0
- package/dist/chunk-PNR3J26S.mjs.gz +0 -0
- package/dist/{chunk-MAVLV56S.js → chunk-SCGIXXN5.js} +3 -3
- package/dist/chunk-SCGIXXN5.js.br +0 -0
- package/dist/chunk-SCGIXXN5.js.gz +0 -0
- package/dist/{chunk-SNL6LBRX.mjs → chunk-SQJBFMEX.mjs} +9 -0
- package/dist/chunk-SQJBFMEX.mjs.br +0 -0
- package/dist/chunk-SQJBFMEX.mjs.gz +0 -0
- package/dist/{chunk-WVDM36ZM.js → chunk-T7BIRNE4.js} +1185 -1067
- package/dist/chunk-T7BIRNE4.js.br +0 -0
- package/dist/chunk-T7BIRNE4.js.gz +0 -0
- package/dist/{chunk-ICZDMFF2.js → chunk-TPC65IB2.js} +1219 -1101
- package/dist/chunk-TPC65IB2.js.br +0 -0
- package/dist/chunk-TPC65IB2.js.gz +0 -0
- package/dist/{chunk-BZOL6FXF.mjs → chunk-WGXQXHCS.mjs} +52 -2280
- package/dist/chunk-WGXQXHCS.mjs.br +0 -0
- package/dist/chunk-WGXQXHCS.mjs.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +38 -1
- package/dist/index.js +47 -47
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +102 -15
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +79 -79
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/{types-C_CTI-QE.d.ts → types-TCH6icpi.d.ts} +23 -1
- package/dist/{types-C_CTI-QE.d.ts.map → types-TCH6icpi.d.ts.map} +1 -1
- package/dist/{useViewerBuildingBlocks-DItilDbP.d.ts → useViewerBuildingBlocks-BKb0qs1j.d.ts} +20 -4
- package/dist/{useViewerBuildingBlocks-DItilDbP.d.ts.map → useViewerBuildingBlocks-BKb0qs1j.d.ts.map} +1 -1
- package/dist/viewer/index.d.ts +38 -1
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-SSSBERWJ.mjs.br +0 -0
- package/dist/AiChatPanel-SSSBERWJ.mjs.gz +0 -0
- package/dist/AiChatPanel-UN5DHPZY.js.br +0 -0
- package/dist/AiChatPanel-UN5DHPZY.js.gz +0 -0
- package/dist/Model3DScene-4RPYKC2I.js.br +0 -0
- package/dist/Model3DScene-4RPYKC2I.js.gz +0 -0
- package/dist/Model3DScene-LYEESYAI.mjs.br +0 -0
- package/dist/Model3DScene-LYEESYAI.mjs.gz +0 -0
- package/dist/PowerPointViewer-Cf4YHjdF.d.ts.map +0 -1
- package/dist/SurfaceChart3DScene-ACPKCWLJ.js +0 -78
- package/dist/SurfaceChart3DScene-ACPKCWLJ.js.br +0 -0
- package/dist/SurfaceChart3DScene-ACPKCWLJ.js.gz +0 -0
- package/dist/SurfaceChart3DScene-JR62SOYO.mjs +0 -76
- package/dist/SurfaceChart3DScene-JR62SOYO.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-JR62SOYO.mjs.gz +0 -0
- package/dist/chunk-4LWGAVAP.js.br +0 -0
- package/dist/chunk-4LWGAVAP.js.gz +0 -0
- package/dist/chunk-7XF6S4AM.mjs.br +0 -0
- package/dist/chunk-7XF6S4AM.mjs.gz +0 -0
- package/dist/chunk-ASKYZ5ZY.js.br +0 -0
- package/dist/chunk-ASKYZ5ZY.js.gz +0 -0
- package/dist/chunk-BZOL6FXF.mjs.br +0 -0
- package/dist/chunk-BZOL6FXF.mjs.gz +0 -0
- package/dist/chunk-GODW6RNR.mjs.br +0 -0
- package/dist/chunk-GODW6RNR.mjs.gz +0 -0
- package/dist/chunk-ICZDMFF2.js.br +0 -0
- package/dist/chunk-ICZDMFF2.js.gz +0 -0
- package/dist/chunk-MAVLV56S.js.br +0 -0
- package/dist/chunk-MAVLV56S.js.gz +0 -0
- package/dist/chunk-O7FTUUXP.mjs.br +0 -0
- package/dist/chunk-O7FTUUXP.mjs.gz +0 -0
- package/dist/chunk-QUB5OSKY.mjs.br +0 -0
- package/dist/chunk-QUB5OSKY.mjs.gz +0 -0
- package/dist/chunk-RTUGI4HQ.js.br +0 -0
- package/dist/chunk-RTUGI4HQ.js.gz +0 -0
- package/dist/chunk-SNL6LBRX.mjs.br +0 -0
- package/dist/chunk-SNL6LBRX.mjs.gz +0 -0
- package/dist/chunk-WVDM36ZM.js.br +0 -0
- package/dist/chunk-WVDM36ZM.js.gz +0 -0
package/dist/{useViewerBuildingBlocks-DItilDbP.d.ts → useViewerBuildingBlocks-BKb0qs1j.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as ToolbarSection, X as CanvasSize, a as DrawingTool, ct as SupportedShapeType, f as PowerPointViewerHandle, l as MarqueeSelectionState, lt as ViewerMode$1, nt as ElementClipboardPayload, ot as ShapeAdjustmentHandleDescriptor$1, x as TableCellEditorState } from "./types-
|
|
1
|
+
import { S as ToolbarSection, X as CanvasSize, a as DrawingTool, ct as SupportedShapeType, f as PowerPointViewerHandle, l as MarqueeSelectionState, lt as ViewerMode$1, nt as ElementClipboardPayload, ot as ShapeAdjustmentHandleDescriptor$1, x as TableCellEditorState } from "./types-TCH6icpi.js";
|
|
2
2
|
import { ConnectorPptxElement, InkPptxElement, ParsedTableStyleMap, PptxAction, PptxComment, PptxCustomShow, PptxElement, PptxElementAnimation, PptxLayoutOption, PptxLayoutPreview, PptxPresentationProperties, PptxSlide, PptxSlideTransition, PptxTheme, ShapePptxElement, ShapeStyle, TextStyle, XmlObject } from "pptx-viewer-core";
|
|
3
3
|
import { AnimationApplyGroup, ChangeCaseMode, ElementAnimationState, FieldSubstitutionContext, InsertChartKind, RulerUnit, SlideTemplateId, ToolbarActionId } from "pptx-viewer-shared";
|
|
4
4
|
import React$1 from "react";
|
|
@@ -402,9 +402,25 @@ interface UseAutosaveInput {
|
|
|
402
402
|
filePath: string | undefined;
|
|
403
403
|
/** Serialise current editor state to a Uint8Array. */
|
|
404
404
|
serializeSlides: () => Promise<Uint8Array | null>;
|
|
405
|
-
/**
|
|
405
|
+
/**
|
|
406
|
+
* Autosave interval in seconds.
|
|
407
|
+
*
|
|
408
|
+
* @deprecated Pass {@link intervalMs} instead. Seconds cannot express the
|
|
409
|
+
* short cadence a host may legitimately ask for, and the shared clamp it went
|
|
410
|
+
* through raised anything under 10s back to 10s, so an explicit host policy
|
|
411
|
+
* was silently overruled. Ignored when `intervalMs` is given.
|
|
412
|
+
*/
|
|
406
413
|
intervalSeconds?: number;
|
|
407
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* Autosave interval in milliseconds, already resolved by the shared
|
|
416
|
+
* `resolveAutosaveIntervalMs` (host prop > File > Options > Save AutoRecover
|
|
417
|
+
* cadence > 120s default). Wins over {@link intervalSeconds}.
|
|
418
|
+
*/
|
|
419
|
+
intervalMs?: number;
|
|
420
|
+
/**
|
|
421
|
+
* Whether autosave is enabled: the resolved `active` from the shared
|
|
422
|
+
* `resolveAutosaveActivation`, NOT the raw title-bar toggle.
|
|
423
|
+
*/
|
|
408
424
|
enabled?: boolean;
|
|
409
425
|
/**
|
|
410
426
|
* The values a snapshot is built from, read fresh on each tick.
|
|
@@ -475,4 +491,4 @@ interface ViewerBuildingBlocksResult {
|
|
|
475
491
|
declare function useViewerBuildingBlocks(input: UseViewerBuildingBlocksInput): ViewerBuildingBlocksResult;
|
|
476
492
|
//#endregion
|
|
477
493
|
export { UseAutosaveInput as a, SlideCanvasProps as c, ChangeCaseMode as d, AutosaveStatus as i, ElementAnimationState as l, ViewerBuildingBlocksResult as n, UseAutosaveResult as o, useViewerBuildingBlocks as r, useAutosave as s, UseViewerBuildingBlocksInput as t, ToolbarProps as u };
|
|
478
|
-
//# sourceMappingURL=useViewerBuildingBlocks-
|
|
494
|
+
//# sourceMappingURL=useViewerBuildingBlocks-BKb0qs1j.d.ts.map
|
package/dist/{useViewerBuildingBlocks-DItilDbP.d.ts.map → useViewerBuildingBlocks-BKb0qs1j.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useViewerBuildingBlocks-
|
|
1
|
+
{"version":3,"file":"useViewerBuildingBlocks-BKb0qs1j.d.ts","names":[],"sources":["../src/viewer/components/toolbar/toolbar-types.ts","../src/viewer/utils/table-band-style.tsx","../src/viewer/components/canvas/canvas-types.ts","../src/viewer/hooks/useAutosave.ts","../src/viewer/hooks/useViewerBuildingBlocks.ts"],"mappings":";;;;;UA4BiB;EAChB;EACA,MAAM;EACN;EACA;EACA;EACA;EACA;EACA,gBAAgB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA,iBAAiB;EACjB,mBAAmB;EACnB;EACA,cAAc;EACd,YAAY;EACZ;EACA;EACA,kBAAkB;EAClB,YAAY,MAAM;EAClB;EACA;;EAEA;;;;;;EAMA,kBAAkB,gBAAgB,OAAO;;EAEzC;EACA;EACA,sBAAsB,SAAS;EAC/B;EACA;EACA;EACA;EACA;EACA;EACA,oBAAoB,MAAM;EAC1B;EACA;EACA;EACA,cAAc,WAAW;EACzB;EACA;EACA,oBAAoB;EACpB,iBAAiB,mBAAmB;EACpC;EACA;EACA;EACA,kBAAkB,MAAM;EACxB,oBAAoB;EACpB,oBAAoB;EACpB,wBAAwB;EACxB;EACA;EACA;;EAEA;EACA;EACA;EACA,yBAAyB;EACzB,gBAAgB;EAChB,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,mBAAmB;EACnB,aAAa;EACb,kBAAkB;EAClB,uBAAuB;EACvB;EACA;EACA;EACA;EACA,SAAS;EACT,cAAc;EACd,oBAAoB;;EAEpB;;EAEA;;EAEA,uBAAuB,SAAS,QAAQ;;EAExC;;EAEA;EACA;EACA;;EAEA;EACA,oBAAoB;EACpB,uBAAuB;EACvB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;EAEA;EACA,oBAAoB,SAAS,QAAQ;;EAErC,sBAAsB,MAAM;EAC5B;EACA,wBAAwB;EACxB,eAAe;;EAEf;;EAEA,2BAA2B,QAAQ;;EAEnC;IAAe;IAAkB;;;EAEjC;;EAEA;EACA,0BAA0B,cAAc;;EAExC,iBAAiB;;EAEjB,6BAA6B,YAAY;;EAEzC,iBAAiB;EACjB,aAAa;EACb;EACA,0BAA0B;EAC1B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;EAEA;EACA;EACA;EACA;EACA,cAAc;EACd,qBAAqB,SAAS,QAAQ;EACtC;;;;;;EAMA;;EAEA;;EAEA;;;;;EAKA,yBAAyB;EACzB,kCAAkC,SAAS,QAAQ;;EAEnD,yBAAyB;;EAEzB;;EAEA;;EAEA;;;;;;;;;;;;;;;;;UC9NgB;EAChB,gBAAgB;EAChB,QAAQ;;;;UCUQ;EAChB,mBAAmB,QAAM,UAAU;EACnC,gBAAgB,QAAM,UAAU;EAChC,gBAAgB,QAAM,UAAU;EAChC;;UAuBgB;EAChB,aAAa;EACb,kBAAkB;EAClB,YAAY;EACZ,MAAM;EACN,MAAM;EACN;EACA;EACA,sBAAsB;EACtB,iBAAiB;EACjB;EACA;EACA;EACA,eAAe;EACf,kBAAkB;EAClB,uBAAuB;EACvB,WAAW;IAAQ;IAAc;;EACjC;;EAEA;EACA;;EAEA,YAAY;EACZ,QAAQ;IAAQ;IAAY;IAAiB;;EAC7C,4BAA4B,YAAY;EACxC;EAEA,UAAU,mBAAmB,GAAG,QAAM;EACtC,gBAAgB,mBAAmB,GAAG,QAAM;EAC5C,cAAc,mBAAmB,GAAG,QAAM;EAC1C,gBAAgB,mBAAmB,GAAG,QAAM;;EAE5C,qBAAqB,GAAG,QAAM;EAC9B,sBAAsB,mBAAmB,GAAG,QAAM,YAAY;EAC9D,0BACC,mBACA,GAAG,QAAM,YACT,YAAY;;EAGb,YAAY,mBAAmB;EAC/B,qBAAqB;EACrB;EACA;EACA,oBACC,MAAM,KAAK,2CACX;;EAGD,oBAAoB,mBAAmB,kBAAkB,kBAAkB;;;;;;EAM3E,2BAA2B,mBAAmB,SAAS,QAAQ;;;;;;EAM/D,gBAAgB,SAAS,QAAQ;;EAEjC,wBAAwB,mBAAmB;;EAE3C,oBAAoB,mBAAmB,kBAAkB;;EAEzD,cAAc;IACb;IACA;IACA;IACA;IACA;;;EAGD;;EAEA;;EAIA,aAAa;;EAEb;;EAEA;;EAEA,eAAe,QAAM;;EAErB,mBAAmB,KAAK;;EAExB,sBAAsB,OAAO;;EAE7B,qBAAqB;;EAIrB,iBAAiB,mBAAmB,QAAQ;;EAE5C,oBAAoB;;EAIpB,WAAW;;EAEX;;EAEA,wBAAwB;EACxB,eAAe,iBAAiB;EAChC,iBAAiB;EACjB,0BAA0B,iBAAiB;;;;;;EAQ3C,2BAA2B,YAAY;;EAIvC;;EAEA,qBAAqB,WAAW;;EAIhC,qBAAqB;;EAErB,eAAe,0BAA0B;;EAEzC;;EAIA,eAAe;;EAIf,oBAAoB;;EAIpB,uBAAuB,QAAM;;;;;EAO7B;;;;KCnMW;EACP;;EACA;EAAmB;;EACnB;;EACA;EAAgB;;EAChB;EAAgB;;UAEJ;;EAEhB;;EAEA;;EAEA,uBAAuB,QAAQ;;;;;;;;;EAS/B;;;;;;EAMA;;;;;EAKA;;;;;;;;;;;EAWA;;UAGgB;;EAEhB,gBAAgB;;EAEhB,uBAAuB;;iBAOR,YAAY,OAAO,mBAAmB;;;UCxBrC;;EAEhB,SAAS,cAAc;;EAEvB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,yBAAyB;;EAEzB,SAAS,MAAM,aAAa;EAC5B,mBAAmB,SAAS;EAC5B,iBAAiB;EACjB,uBAAuB;EACvB,gBAAgB,MAAM;EACtB,gBAAgB;EAChB,qBAAqB;EACrB,sBAAsB;;EAEtB;;EAEA;;EAEA;;UAOgB;;EAEhB,cAAc;;EAEd,aAAa;;EAEb,MAAM;;EAEN;;EAEA;;EAEA,gBAAgB;;iBAOD,wBACf,OAAO,+BACL"}
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -185,11 +185,18 @@ interface XmlObject {
|
|
|
185
185
|
[child: string]: XmlObject | XmlObject[] | string | undefined;
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
188
|
+
* Lock attributes from an element's non-visual properties node.
|
|
189
189
|
*
|
|
190
190
|
* When a flag is `true` the corresponding user interaction is disabled
|
|
191
191
|
* in the editor (e.g. `noRotation` prevents free rotation of the shape).
|
|
192
192
|
*
|
|
193
|
+
* One bag covers every family, but the families are NOT interchangeable in
|
|
194
|
+
* the file: `a:spLocks` (`CT_ShapeLocking`), `a:picLocks`, `a:cxnSpLocks`,
|
|
195
|
+
* `a:grpSpLocks` (`CT_GroupLocking`) and `a:graphicFrameLocks`
|
|
196
|
+
* (`CT_GraphicalObjectFrameLocking`) each declare their own attribute subset.
|
|
197
|
+
* `runtime/shape-lock-containers` holds that table and is what decides which
|
|
198
|
+
* of these fields may be written for a given element.
|
|
199
|
+
*
|
|
193
200
|
* @example
|
|
194
201
|
* ```ts
|
|
195
202
|
* const locks: PptxShapeLocks = { noMove: true, noResize: true };
|
|
@@ -208,6 +215,14 @@ interface PptxShapeLocks {
|
|
|
208
215
|
noAdjustHandles?: boolean;
|
|
209
216
|
noChangeArrowheads?: boolean;
|
|
210
217
|
noChangeShapeType?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* `a:graphicFrameLocks/@noDrilldown`: forbids selecting the individual
|
|
220
|
+
* parts inside a graphic frame (a chart series, a SmartArt node). Declared
|
|
221
|
+
* ONLY by `CT_GraphicalObjectFrameLocking`, so it is written for tables,
|
|
222
|
+
* charts, SmartArt, OLE objects and graphic-frame media, and never onto
|
|
223
|
+
* `a:spLocks` / `a:picLocks` / `a:cxnSpLocks` / `a:grpSpLocks`.
|
|
224
|
+
*/
|
|
225
|
+
noDrilldown?: boolean;
|
|
211
226
|
/**
|
|
212
227
|
* Text-box flag from `p:cNvSpPr/@txBox`. Not a lock in the strict sense,
|
|
213
228
|
* but it lives on the same non-visual-properties node as `a:spLocks`, so
|
|
@@ -9836,6 +9851,28 @@ interface PowerPointViewerProps {
|
|
|
9836
9851
|
onOpenFile?: () => void;
|
|
9837
9852
|
/** Whether editing actions are enabled */
|
|
9838
9853
|
canEdit?: boolean;
|
|
9854
|
+
/**
|
|
9855
|
+
* Recovery autosave: after an edit the deck is re-serialised (always as a
|
|
9856
|
+
* plain, unencrypted package, because recovery has no password) and stashed
|
|
9857
|
+
* in the shared IndexedDB store keyed by {@link filePath}. It is a crash-
|
|
9858
|
+
* safety net and never replaces the user's real Save: the document stays
|
|
9859
|
+
* dirty. On load, a newer snapshot is offered back through a recovery prompt.
|
|
9860
|
+
*
|
|
9861
|
+
* **The prop is a policy ceiling; the title-bar AutoSave toggle is the user's
|
|
9862
|
+
* preference inside it.** `false` turns autosave off and makes the toggle
|
|
9863
|
+
* inert (a user cannot switch on what the application forbade). `true` or
|
|
9864
|
+
* omitted permits it, and the toggle decides, defaulting to on. Identical in
|
|
9865
|
+
* all five bindings; see `resolveAutosaveActivation` in `pptx-viewer-shared`.
|
|
9866
|
+
*
|
|
9867
|
+
* @default true
|
|
9868
|
+
*/
|
|
9869
|
+
autosave?: boolean;
|
|
9870
|
+
/**
|
|
9871
|
+
* Recovery cadence in milliseconds. An explicit value is a host policy and is
|
|
9872
|
+
* honoured as given; omit it to follow the user's File > Options > Save >
|
|
9873
|
+
* "Save AutoRecover information every N minutes" (two minutes by default).
|
|
9874
|
+
*/
|
|
9875
|
+
autosaveIntervalMs?: number;
|
|
9839
9876
|
/** Optional class name */
|
|
9840
9877
|
className?: string;
|
|
9841
9878
|
/**
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('../chunk-
|
|
8
|
-
var
|
|
3
|
+
var chunkTPC65IB2_js = require('../chunk-TPC65IB2.js');
|
|
4
|
+
require('../chunk-SCGIXXN5.js');
|
|
5
|
+
var chunkLMTUC7U7_js = require('../chunk-LMTUC7U7.js');
|
|
6
|
+
var chunkPIJAFM4B_js = require('../chunk-PIJAFM4B.js');
|
|
7
|
+
require('../chunk-MVKRI3CZ.js');
|
|
8
|
+
var chunkT7BIRNE4_js = require('../chunk-T7BIRNE4.js');
|
|
9
9
|
require('../chunk-4VNS5WPM.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "CollaborationProvider", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkTPC65IB2_js.CollaborationProvider; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "CollaborationStatusIndicator", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkTPC65IB2_js.CollaborationStatusIndicator; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkTPC65IB2_js.PowerPointViewer; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "RemoteUserCursors", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkTPC65IB2_js.RemoteUserCursors; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "UserAvatarBar", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkTPC65IB2_js.UserAvatarBar; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "isAudienceTab", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkLMTUC7U7_js.isAudienceTab; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "parseAudienceNonce", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkLMTUC7U7_js.parseAudienceNonce; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "useCollaborativeHistory", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkLMTUC7U7_js.useCollaborativeHistory; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useCollaborativeState", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkLMTUC7U7_js.useCollaborativeState; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "usePresenceTracking", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkLMTUC7U7_js.usePresenceTracking; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "useThemeSwitching", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkLMTUC7U7_js.useThemeSwitching; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "useYjsProvider", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkLMTUC7U7_js.useYjsProvider; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkPIJAFM4B_js.getAnimationInitialStyle; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "clearAudienceContent", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkT7BIRNE4_js.clearAudienceContent; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "forgetSessionDeck", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkT7BIRNE4_js.forgetSessionDeck; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "getSessionTabId", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkT7BIRNE4_js.getSessionTabId; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "loadAudienceContent", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkT7BIRNE4_js.loadAudienceContent; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "loadSessionDeck", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkT7BIRNE4_js.loadSessionDeck; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "rememberSessionDeck", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkT7BIRNE4_js.rememberSessionDeck; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "restoreSessionDeck", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkT7BIRNE4_js.restoreSessionDeck; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "storeAudienceContent", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkT7BIRNE4_js.storeAudienceContent; }
|
|
96
96
|
});
|
package/dist/viewer/index.js.br
CHANGED
|
Binary file
|
package/dist/viewer/index.js.gz
CHANGED
|
Binary file
|
package/dist/viewer/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
export { isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-
|
|
4
|
-
export { getAnimationInitialStyle } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-
|
|
1
|
+
export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-B55E3KXL.mjs';
|
|
2
|
+
import '../chunk-KQGS6A5J.mjs';
|
|
3
|
+
export { isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-5ZQ3ZQ3M.mjs';
|
|
4
|
+
export { getAnimationInitialStyle } from '../chunk-WGXQXHCS.mjs';
|
|
5
|
+
import '../chunk-SQJBFMEX.mjs';
|
|
6
|
+
export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-PNR3J26S.mjs';
|
|
7
7
|
import '../chunk-XGB3TDIC.mjs';
|
package/dist/viewer/index.mjs.br
CHANGED
|
Binary file
|
package/dist/viewer/index.mjs.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PowerPointViewer-Cf4YHjdF.d.ts","names":[],"sources":["../src/viewer/utils/animation-effects.ts","../src/viewer/PowerPointViewer.tsx"],"mappings":";;;;;iBAmBgB,yBACf,QAAQ,iCACR,kBAAkB,sBAChB,MAAM;;;;;;;;;;;;cC0FI,kCAAgB,0BAAA,wCAAA,cAAA"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkWVDM36ZM_js = require('./chunk-WVDM36ZM.js');
|
|
4
|
-
require('./chunk-4VNS5WPM.js');
|
|
5
|
-
var react = require('react');
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
|
|
8
|
-
function SurfaceChart3DScene({
|
|
9
|
-
cols,
|
|
10
|
-
rows,
|
|
11
|
-
heightMap,
|
|
12
|
-
colorMap,
|
|
13
|
-
wireframe,
|
|
14
|
-
categoryLabels,
|
|
15
|
-
seriesNames,
|
|
16
|
-
title,
|
|
17
|
-
width,
|
|
18
|
-
height
|
|
19
|
-
}) {
|
|
20
|
-
const containerRef = react.useRef(null);
|
|
21
|
-
const handleRef = react.useRef(null);
|
|
22
|
-
react.useEffect(() => {
|
|
23
|
-
const container = containerRef.current;
|
|
24
|
-
if (!container) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
let disposed = false;
|
|
28
|
-
void chunkWVDM36ZM_js.mountSurfaceChart3D(container, {
|
|
29
|
-
cols,
|
|
30
|
-
rows,
|
|
31
|
-
heightMap,
|
|
32
|
-
colorMap,
|
|
33
|
-
wireframe,
|
|
34
|
-
categoryLabels,
|
|
35
|
-
seriesNames,
|
|
36
|
-
width,
|
|
37
|
-
height
|
|
38
|
-
}).then((handle) => {
|
|
39
|
-
if (disposed) {
|
|
40
|
-
handle.dispose();
|
|
41
|
-
} else {
|
|
42
|
-
handleRef.current = handle;
|
|
43
|
-
}
|
|
44
|
-
return void 0;
|
|
45
|
-
});
|
|
46
|
-
return () => {
|
|
47
|
-
disposed = true;
|
|
48
|
-
handleRef.current?.dispose();
|
|
49
|
-
handleRef.current = null;
|
|
50
|
-
};
|
|
51
|
-
}, [cols, rows, heightMap, colorMap, wireframe, categoryLabels, seriesNames]);
|
|
52
|
-
react.useEffect(() => {
|
|
53
|
-
handleRef.current?.resize(width, height);
|
|
54
|
-
}, [width, height]);
|
|
55
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width, height, position: "relative" }, children: [
|
|
56
|
-
title && /* @__PURE__ */ jsxRuntime.jsx(
|
|
57
|
-
"div",
|
|
58
|
-
{
|
|
59
|
-
style: {
|
|
60
|
-
position: "absolute",
|
|
61
|
-
top: 4,
|
|
62
|
-
left: 0,
|
|
63
|
-
right: 0,
|
|
64
|
-
textAlign: "center",
|
|
65
|
-
fontSize: "12px",
|
|
66
|
-
fontWeight: 600,
|
|
67
|
-
color: "#333",
|
|
68
|
-
zIndex: 1,
|
|
69
|
-
pointerEvents: "none"
|
|
70
|
-
},
|
|
71
|
-
children: title
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: containerRef, style: { width, height, willChange: "transform" } })
|
|
75
|
-
] });
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
module.exports = SurfaceChart3DScene;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { mountSurfaceChart3D } from './chunk-GODW6RNR.mjs';
|
|
2
|
-
import './chunk-XGB3TDIC.mjs';
|
|
3
|
-
import { useRef, useEffect } from 'react';
|
|
4
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
function SurfaceChart3DScene({
|
|
7
|
-
cols,
|
|
8
|
-
rows,
|
|
9
|
-
heightMap,
|
|
10
|
-
colorMap,
|
|
11
|
-
wireframe,
|
|
12
|
-
categoryLabels,
|
|
13
|
-
seriesNames,
|
|
14
|
-
title,
|
|
15
|
-
width,
|
|
16
|
-
height
|
|
17
|
-
}) {
|
|
18
|
-
const containerRef = useRef(null);
|
|
19
|
-
const handleRef = useRef(null);
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
const container = containerRef.current;
|
|
22
|
-
if (!container) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
let disposed = false;
|
|
26
|
-
void mountSurfaceChart3D(container, {
|
|
27
|
-
cols,
|
|
28
|
-
rows,
|
|
29
|
-
heightMap,
|
|
30
|
-
colorMap,
|
|
31
|
-
wireframe,
|
|
32
|
-
categoryLabels,
|
|
33
|
-
seriesNames,
|
|
34
|
-
width,
|
|
35
|
-
height
|
|
36
|
-
}).then((handle) => {
|
|
37
|
-
if (disposed) {
|
|
38
|
-
handle.dispose();
|
|
39
|
-
} else {
|
|
40
|
-
handleRef.current = handle;
|
|
41
|
-
}
|
|
42
|
-
return void 0;
|
|
43
|
-
});
|
|
44
|
-
return () => {
|
|
45
|
-
disposed = true;
|
|
46
|
-
handleRef.current?.dispose();
|
|
47
|
-
handleRef.current = null;
|
|
48
|
-
};
|
|
49
|
-
}, [cols, rows, heightMap, colorMap, wireframe, categoryLabels, seriesNames]);
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
handleRef.current?.resize(width, height);
|
|
52
|
-
}, [width, height]);
|
|
53
|
-
return /* @__PURE__ */ jsxs("div", { style: { width, height, position: "relative" }, children: [
|
|
54
|
-
title && /* @__PURE__ */ jsx(
|
|
55
|
-
"div",
|
|
56
|
-
{
|
|
57
|
-
style: {
|
|
58
|
-
position: "absolute",
|
|
59
|
-
top: 4,
|
|
60
|
-
left: 0,
|
|
61
|
-
right: 0,
|
|
62
|
-
textAlign: "center",
|
|
63
|
-
fontSize: "12px",
|
|
64
|
-
fontWeight: 600,
|
|
65
|
-
color: "#333",
|
|
66
|
-
zIndex: 1,
|
|
67
|
-
pointerEvents: "none"
|
|
68
|
-
},
|
|
69
|
-
children: title
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
/* @__PURE__ */ jsx("div", { ref: containerRef, style: { width, height, willChange: "transform" } })
|
|
73
|
-
] });
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export { SurfaceChart3DScene as default };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|