pptx-react-viewer 2.16.9 → 2.17.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/dist/{AiChatPanel-EPMBL6EA.js → AiChatPanel-HCHCVQN2.js} +24 -24
- package/dist/AiChatPanel-HCHCVQN2.js.br +0 -0
- package/dist/AiChatPanel-HCHCVQN2.js.gz +0 -0
- package/dist/{AiChatPanel-XHKYPYPH.mjs → AiChatPanel-RZ4A7P4H.mjs} +4 -4
- package/dist/AiChatPanel-RZ4A7P4H.mjs.br +0 -0
- package/dist/AiChatPanel-RZ4A7P4H.mjs.gz +0 -0
- package/dist/{Model3DScene-YMIAGRPG.mjs → Model3DScene-I7FR74AD.mjs} +1 -1
- package/dist/Model3DScene-I7FR74AD.mjs.br +0 -0
- package/dist/Model3DScene-I7FR74AD.mjs.gz +0 -0
- package/dist/{Model3DScene-DUJOZA2B.js → Model3DScene-LK7LSQNH.js} +2 -2
- package/dist/Model3DScene-LK7LSQNH.js.br +0 -0
- package/dist/Model3DScene-LK7LSQNH.js.gz +0 -0
- package/dist/PowerPointViewer-Du7u4INi.d.ts.map +1 -1
- package/dist/{SurfaceChart3DScene-Q47OEJXS.mjs → SurfaceChart3DScene-DEQP5O3U.mjs} +1 -1
- package/dist/SurfaceChart3DScene-DEQP5O3U.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-DEQP5O3U.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-TNCHWQAK.js → SurfaceChart3DScene-ODQY77SZ.js} +2 -2
- package/dist/SurfaceChart3DScene-ODQY77SZ.js.br +0 -0
- package/dist/SurfaceChart3DScene-ODQY77SZ.js.gz +0 -0
- package/dist/{chunk-3KIKPDAJ.mjs → chunk-422DF424.mjs} +742 -2294
- package/dist/chunk-422DF424.mjs.br +0 -0
- package/dist/chunk-422DF424.mjs.gz +0 -0
- package/dist/{chunk-WK22Z7PK.js → chunk-5BXATG54.js} +520 -868
- package/dist/chunk-5BXATG54.js.br +0 -0
- package/dist/chunk-5BXATG54.js.gz +0 -0
- package/dist/{chunk-Y2KIB3QH.js → chunk-7JPLVECA.js} +44829 -39322
- package/dist/chunk-7JPLVECA.js.br +0 -0
- package/dist/chunk-7JPLVECA.js.gz +0 -0
- package/dist/{chunk-DVZF4ARG.js → chunk-AONFHTTJ.js} +22 -0
- package/dist/chunk-AONFHTTJ.js.br +0 -0
- package/dist/chunk-AONFHTTJ.js.gz +0 -0
- package/dist/{chunk-PI5SFTDC.js → chunk-ATOUVRRQ.js} +3 -3
- package/dist/chunk-ATOUVRRQ.js.br +0 -0
- package/dist/chunk-ATOUVRRQ.js.gz +0 -0
- package/dist/{chunk-EL2YF26P.mjs → chunk-FXJOTEPO.mjs} +1 -1
- package/dist/chunk-FXJOTEPO.mjs.br +0 -0
- package/dist/chunk-FXJOTEPO.mjs.gz +0 -0
- package/dist/{chunk-YWKUIUQX.mjs → chunk-K2QU73KB.mjs} +44784 -39286
- package/dist/chunk-K2QU73KB.mjs.br +0 -0
- package/dist/chunk-K2QU73KB.mjs.gz +0 -0
- package/dist/{chunk-VHME5BE6.mjs → chunk-MQHC5TXI.mjs} +318 -665
- package/dist/chunk-MQHC5TXI.mjs.br +0 -0
- package/dist/chunk-MQHC5TXI.mjs.gz +0 -0
- package/dist/{chunk-VL7ZT3ID.js → chunk-NQJPPIVH.js} +1681 -3233
- package/dist/chunk-NQJPPIVH.js.br +0 -0
- package/dist/chunk-NQJPPIVH.js.gz +0 -0
- package/dist/{chunk-5IUEPQTK.mjs → chunk-S64T7C4V.mjs} +22 -0
- package/dist/chunk-S64T7C4V.mjs.br +0 -0
- package/dist/chunk-S64T7C4V.mjs.gz +0 -0
- package/dist/{chunk-FSVE6WUY.js → chunk-TCGXGD6E.js} +550 -463
- package/dist/chunk-TCGXGD6E.js.br +0 -0
- package/dist/chunk-TCGXGD6E.js.gz +0 -0
- package/dist/{chunk-J7EFC3GS.mjs → chunk-ZA5JONCW.mjs} +210 -123
- package/dist/chunk-ZA5JONCW.mjs.br +0 -0
- package/dist/chunk-ZA5JONCW.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 +205 -21
- package/dist/index.js +41 -41
- 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 +380 -22
- 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/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/{useViewerBuildingBlocks-Xddn6SFj.d.ts → useViewerBuildingBlocks-C9-prKYB.d.ts} +32 -6
- package/dist/useViewerBuildingBlocks-C9-prKYB.d.ts.map +1 -0
- package/dist/viewer/index.d.ts +166 -17
- 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-EPMBL6EA.js.br +0 -0
- package/dist/AiChatPanel-EPMBL6EA.js.gz +0 -0
- package/dist/AiChatPanel-XHKYPYPH.mjs.br +0 -0
- package/dist/AiChatPanel-XHKYPYPH.mjs.gz +0 -0
- package/dist/Model3DScene-DUJOZA2B.js.br +0 -0
- package/dist/Model3DScene-DUJOZA2B.js.gz +0 -0
- package/dist/Model3DScene-YMIAGRPG.mjs.br +0 -0
- package/dist/Model3DScene-YMIAGRPG.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-Q47OEJXS.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-Q47OEJXS.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-TNCHWQAK.js.br +0 -0
- package/dist/SurfaceChart3DScene-TNCHWQAK.js.gz +0 -0
- package/dist/chunk-3KIKPDAJ.mjs.br +0 -0
- package/dist/chunk-3KIKPDAJ.mjs.gz +0 -0
- package/dist/chunk-5IUEPQTK.mjs.br +0 -0
- package/dist/chunk-5IUEPQTK.mjs.gz +0 -0
- package/dist/chunk-DVZF4ARG.js.br +0 -0
- package/dist/chunk-DVZF4ARG.js.gz +0 -0
- package/dist/chunk-EL2YF26P.mjs.br +0 -0
- package/dist/chunk-EL2YF26P.mjs.gz +0 -0
- package/dist/chunk-FSVE6WUY.js.br +0 -0
- package/dist/chunk-FSVE6WUY.js.gz +0 -0
- package/dist/chunk-J7EFC3GS.mjs.br +0 -0
- package/dist/chunk-J7EFC3GS.mjs.gz +0 -0
- package/dist/chunk-PI5SFTDC.js.br +0 -0
- package/dist/chunk-PI5SFTDC.js.gz +0 -0
- package/dist/chunk-VHME5BE6.mjs.br +0 -0
- package/dist/chunk-VHME5BE6.mjs.gz +0 -0
- package/dist/chunk-VL7ZT3ID.js.br +0 -0
- package/dist/chunk-VL7ZT3ID.js.gz +0 -0
- package/dist/chunk-WK22Z7PK.js.br +0 -0
- package/dist/chunk-WK22Z7PK.js.gz +0 -0
- package/dist/chunk-Y2KIB3QH.js.br +0 -0
- package/dist/chunk-Y2KIB3QH.js.gz +0 -0
- package/dist/chunk-YWKUIUQX.mjs.br +0 -0
- package/dist/chunk-YWKUIUQX.mjs.gz +0 -0
- package/dist/useViewerBuildingBlocks-Xddn6SFj.d.ts.map +0 -1
package/dist/viewer/index.d.ts
CHANGED
|
@@ -1642,7 +1642,28 @@ interface BulletInfo {
|
|
|
1642
1642
|
autoNumType?: string;
|
|
1643
1643
|
/** Auto-numbering start value. */
|
|
1644
1644
|
autoNumStartAt?: number;
|
|
1645
|
-
/**
|
|
1645
|
+
/**
|
|
1646
|
+
* Auto-numbering ORDINAL OFFSET: the zero-based distance of this paragraph
|
|
1647
|
+
* within its own numbered list, such that
|
|
1648
|
+
* `autoNumStartAt + paragraphIndex` is the ordinal to render. Despite the
|
|
1649
|
+
* name it is NOT the paragraph's position in the text body; the two agree
|
|
1650
|
+
* only for a list that starts at the first paragraph and is never
|
|
1651
|
+
* interrupted.
|
|
1652
|
+
*
|
|
1653
|
+
* It has to be the offset rather than the raw position because every
|
|
1654
|
+
* consumer that re-derives a marker from `BulletInfo` alone (the renderer's
|
|
1655
|
+
* `resolveParagraphBullet`, the Markdown converter's `resolveListMarker`)
|
|
1656
|
+
* computes `autoNumStartAt + paragraphIndex`. The load path resolves the
|
|
1657
|
+
* real sequence itself, restarting the count after any paragraph that
|
|
1658
|
+
* interrupts the list, and publishes the offset here so those consumers
|
|
1659
|
+
* land on the same number. With the raw position they did not, and BOTH
|
|
1660
|
+
* markers were painted ("3.1. Item"), because the paragraph builder drops
|
|
1661
|
+
* the parsed marker segment only when the two strings agree.
|
|
1662
|
+
*
|
|
1663
|
+
* Runtime-only: derived at parse time and never serialized. OOXML has no
|
|
1664
|
+
* counterpart (`a:buAutoNum` carries only `@type` and `@startAt`), so the
|
|
1665
|
+
* writer neither reads nor emits it.
|
|
1666
|
+
*/
|
|
1646
1667
|
paragraphIndex?: number;
|
|
1647
1668
|
/** Bullet font family from `a:buFont`. */
|
|
1648
1669
|
fontFamily?: string;
|
|
@@ -3937,6 +3958,11 @@ interface PptxTableCellStyle {
|
|
|
3937
3958
|
italic?: boolean;
|
|
3938
3959
|
underline?: boolean;
|
|
3939
3960
|
color?: string;
|
|
3961
|
+
/**
|
|
3962
|
+
* Font family from the first run's `a:rPr/a:latin@typeface` (falling back to
|
|
3963
|
+
* `a:ea` / `a:cs`). Per-run families live on {@link PptxTableCellTextRun}.
|
|
3964
|
+
*/
|
|
3965
|
+
fontFamily?: string;
|
|
3940
3966
|
/**
|
|
3941
3967
|
* Raw XML colour-choice node preserved from `a:tc/a:txBody/.../a:rPr/a:solidFill`
|
|
3942
3968
|
* for round-trip serialisation. Currently unused by the cell-level writer
|
|
@@ -4092,6 +4118,45 @@ interface PptxTableCell3D {
|
|
|
4092
4118
|
/** Light rig direction (`a:lightRig@dir`, e.g. `tl`, `t`, `tr`). */
|
|
4093
4119
|
lightRigDirection?: string;
|
|
4094
4120
|
}
|
|
4121
|
+
/**
|
|
4122
|
+
* One styled text run inside a table cell's `a:txBody`.
|
|
4123
|
+
*
|
|
4124
|
+
* `PptxTableCell.text` is a flat string and `PptxTableCell.style` describes
|
|
4125
|
+
* only the FIRST run, so a cell mixing formats ("Revenue **grew 42%** last
|
|
4126
|
+
* year") cannot be represented by those two alone. {@link PptxTableCell.runs}
|
|
4127
|
+
* carries the full sequence, with paragraph and line breaks as marker entries
|
|
4128
|
+
* so a renderer can walk it linearly.
|
|
4129
|
+
*
|
|
4130
|
+
* Structurally identical to `pptx-viewer-shared`'s `CellTextRun`, which every
|
|
4131
|
+
* binding's table renderer already consumes.
|
|
4132
|
+
*
|
|
4133
|
+
* @example
|
|
4134
|
+
* ```ts
|
|
4135
|
+
* const runs: PptxTableCellTextRun[] = [
|
|
4136
|
+
* { text: "Revenue " },
|
|
4137
|
+
* { text: "grew 42%", bold: true, color: "#C00000" },
|
|
4138
|
+
* ];
|
|
4139
|
+
* // => satisfies PptxTableCellTextRun[]
|
|
4140
|
+
* ```
|
|
4141
|
+
*/
|
|
4142
|
+
interface PptxTableCellTextRun {
|
|
4143
|
+
/** Run text. Empty for the break markers below. */
|
|
4144
|
+
text: string;
|
|
4145
|
+
/** This entry starts a new paragraph (`a:p` boundary) rather than carrying text. */
|
|
4146
|
+
isParagraphBreak?: boolean;
|
|
4147
|
+
/** This entry is a soft line break (`a:br`) rather than carrying text. */
|
|
4148
|
+
isLineBreak?: boolean;
|
|
4149
|
+
bold?: boolean;
|
|
4150
|
+
italic?: boolean;
|
|
4151
|
+
underline?: boolean;
|
|
4152
|
+
strikethrough?: boolean;
|
|
4153
|
+
/** Resolved run colour as a CSS colour string. */
|
|
4154
|
+
color?: string;
|
|
4155
|
+
/** Run font size in points (`a:rPr@sz` / 100). */
|
|
4156
|
+
fontSize?: number;
|
|
4157
|
+
/** Run font family from `a:rPr/a:latin@typeface` (or `a:ea` / `a:cs`). */
|
|
4158
|
+
fontFamily?: string;
|
|
4159
|
+
}
|
|
4095
4160
|
/**
|
|
4096
4161
|
* A single table cell with text content, optional style, and merge info.
|
|
4097
4162
|
*
|
|
@@ -4108,6 +4173,15 @@ interface PptxTableCell3D {
|
|
|
4108
4173
|
interface PptxTableCell {
|
|
4109
4174
|
text: string;
|
|
4110
4175
|
style?: PptxTableCellStyle;
|
|
4176
|
+
/**
|
|
4177
|
+
* Per-run formatting for the cell's text, when it has any beyond what
|
|
4178
|
+
* {@link style} can express. Present only for cells whose `a:txBody`
|
|
4179
|
+
* actually carries runs; renderers fall back to {@link text} when absent.
|
|
4180
|
+
*
|
|
4181
|
+
* Editing a cell's text invalidates these (the editor produces a plain
|
|
4182
|
+
* string), so an edit path must clear them alongside setting `text`.
|
|
4183
|
+
*/
|
|
4184
|
+
textRuns?: PptxTableCellTextRun[];
|
|
4111
4185
|
/** Column span (defaults to 1). */
|
|
4112
4186
|
gridSpan?: number;
|
|
4113
4187
|
/** Row span (defaults to 1). */
|
|
@@ -4887,6 +4961,35 @@ interface UnknownPptxElement extends PptxElementBase {
|
|
|
4887
4961
|
type PptxElement = TextPptxElement | ShapePptxElement | ConnectorPptxElement | ImagePptxElement | PicturePptxElement | TablePptxElement | ChartPptxElement | SmartArtPptxElement | OlePptxElement | MediaPptxElement | GroupPptxElement | InkPptxElement | ContentPartPptxElement | ZoomPptxElement | Model3DPptxElement | UnknownPptxElement;
|
|
4888
4962
|
//#endregion
|
|
4889
4963
|
//#region src/core/types/masters.d.ts
|
|
4964
|
+
/**
|
|
4965
|
+
* A placeholder slot declared on a master or layout.
|
|
4966
|
+
*
|
|
4967
|
+
* The geometry fields are in CSS pixels (EMU / {@link EMU_PER_PX}) and are only
|
|
4968
|
+
* present when the shape carried an explicit `a:xfrm`. Placeholders that
|
|
4969
|
+
* inherit their frame from the master leave them undefined, so consumers that
|
|
4970
|
+
* draw placeholder outlines (the layout gallery) must skip those entries
|
|
4971
|
+
* rather than assume a zero-sized box at the origin.
|
|
4972
|
+
*
|
|
4973
|
+
* @example
|
|
4974
|
+
* ```ts
|
|
4975
|
+
* const frame: PptxPlaceholderFrame = { type: "body", idx: "1", x: 63, y: 130 };
|
|
4976
|
+
* // => satisfies PptxPlaceholderFrame
|
|
4977
|
+
* ```
|
|
4978
|
+
*/
|
|
4979
|
+
interface PptxPlaceholderFrame {
|
|
4980
|
+
/** `p:ph/@type`, lower-cased by the parser; defaults to `body` when omitted. */
|
|
4981
|
+
type: string;
|
|
4982
|
+
/** `p:ph/@idx`, when present. */
|
|
4983
|
+
idx?: string;
|
|
4984
|
+
/** Left offset in CSS pixels, when the shape declares `a:off`. */
|
|
4985
|
+
x?: number;
|
|
4986
|
+
/** Top offset in CSS pixels, when the shape declares `a:off`. */
|
|
4987
|
+
y?: number;
|
|
4988
|
+
/** Width in CSS pixels, when the shape declares `a:ext`. */
|
|
4989
|
+
width?: number;
|
|
4990
|
+
/** Height in CSS pixels, when the shape declares `a:ext`. */
|
|
4991
|
+
height?: number;
|
|
4992
|
+
}
|
|
4890
4993
|
/**
|
|
4891
4994
|
* Parsed notes master from `ppt/notesMasters/notesMaster1.xml`.
|
|
4892
4995
|
*
|
|
@@ -4908,10 +5011,7 @@ interface PptxNotesMaster {
|
|
|
4908
5011
|
/** Background image data URL. */
|
|
4909
5012
|
backgroundImage?: string;
|
|
4910
5013
|
/** Placeholder shapes found on the notes master. */
|
|
4911
|
-
placeholders?:
|
|
4912
|
-
type: string;
|
|
4913
|
-
idx?: string;
|
|
4914
|
-
}>;
|
|
5014
|
+
placeholders?: PptxPlaceholderFrame[];
|
|
4915
5015
|
/** Editable elements on the notes master (header, footer, date, page number, slide image, notes body). */
|
|
4916
5016
|
elements?: PptxElement[];
|
|
4917
5017
|
/** Header/footer flags from `<p:hf>` on the notes master (P-H3). */
|
|
@@ -4939,10 +5039,7 @@ interface PptxHandoutMaster {
|
|
|
4939
5039
|
/** Background image data URL. */
|
|
4940
5040
|
backgroundImage?: string;
|
|
4941
5041
|
/** Placeholder shapes found on the handout master. */
|
|
4942
|
-
placeholders?:
|
|
4943
|
-
type: string;
|
|
4944
|
-
idx?: string;
|
|
4945
|
-
}>;
|
|
5042
|
+
placeholders?: PptxPlaceholderFrame[];
|
|
4946
5043
|
/** Editable elements on the handout master (header, footer, date, page number, slide placeholders). */
|
|
4947
5044
|
elements?: PptxElement[];
|
|
4948
5045
|
/** Number of slides per page for handout print layout (1, 2, 3, 4, 6, or 9). */
|
|
@@ -4980,10 +5077,7 @@ interface PptxSlideMaster {
|
|
|
4980
5077
|
/** Layout paths associated with this master. */
|
|
4981
5078
|
layoutPaths?: string[];
|
|
4982
5079
|
/** Placeholder shapes on the master. */
|
|
4983
|
-
placeholders?:
|
|
4984
|
-
type: string;
|
|
4985
|
-
idx?: string;
|
|
4986
|
-
}>;
|
|
5080
|
+
placeholders?: PptxPlaceholderFrame[];
|
|
4987
5081
|
/** Parsed element shapes on the master slide (for master view rendering). */
|
|
4988
5082
|
elements?: PptxElement[];
|
|
4989
5083
|
/** Parsed slide layout objects associated with this master. */
|
|
@@ -5055,10 +5149,7 @@ interface PptxSlideLayout {
|
|
|
5055
5149
|
/** Parsed element shapes on the layout. */
|
|
5056
5150
|
elements?: PptxElement[];
|
|
5057
5151
|
/** Placeholder shapes on the layout. */
|
|
5058
|
-
placeholders?:
|
|
5059
|
-
type: string;
|
|
5060
|
-
idx?: string;
|
|
5061
|
-
}>;
|
|
5152
|
+
placeholders?: PptxPlaceholderFrame[];
|
|
5062
5153
|
/** Matching name attribute for layout identification (`@matchingName`). */
|
|
5063
5154
|
matchingName?: string;
|
|
5064
5155
|
/** Whether the layout is marked as preserved (prevent deletion, `@preserve`). */
|
|
@@ -5072,6 +5163,42 @@ interface PptxSlideLayout {
|
|
|
5072
5163
|
/** Header/footer flags from `<p:hf>` on this layout (P-H3). */
|
|
5073
5164
|
headerFooter?: PptxHeaderFooterFlags;
|
|
5074
5165
|
}
|
|
5166
|
+
/**
|
|
5167
|
+
* Rendered content of a single layout, used to draw gallery thumbnails.
|
|
5168
|
+
*
|
|
5169
|
+
* Produced on demand rather than during load: materialising every layout's
|
|
5170
|
+
* artwork (and decoding its images) up front costs a noticeable amount of time
|
|
5171
|
+
* on decks with many masters, and most sessions never open the layout gallery
|
|
5172
|
+
* at all.
|
|
5173
|
+
*
|
|
5174
|
+
* @example
|
|
5175
|
+
* ```ts
|
|
5176
|
+
* const preview: PptxLayoutPreview = {
|
|
5177
|
+
* path: "ppt/slideLayouts/slideLayout2.xml",
|
|
5178
|
+
* width: 960,
|
|
5179
|
+
* height: 540,
|
|
5180
|
+
* elements: [],
|
|
5181
|
+
* placeholders: [{ type: "title" }],
|
|
5182
|
+
* };
|
|
5183
|
+
* // => satisfies PptxLayoutPreview
|
|
5184
|
+
* ```
|
|
5185
|
+
*/
|
|
5186
|
+
interface PptxLayoutPreview {
|
|
5187
|
+
/** ZIP path of the layout this preview belongs to. */
|
|
5188
|
+
path: string;
|
|
5189
|
+
/** Slide width in CSS pixels, so a thumbnail can compute its own scale. */
|
|
5190
|
+
width: number;
|
|
5191
|
+
/** Slide height in CSS pixels. */
|
|
5192
|
+
height: number;
|
|
5193
|
+
/** Background resolved from the layout, falling back to its master's. */
|
|
5194
|
+
backgroundColor?: string;
|
|
5195
|
+
/** Background image data URL, when the layout or master declares one. */
|
|
5196
|
+
backgroundImage?: string;
|
|
5197
|
+
/** The layout's own artwork (pictures, shapes and static text). */
|
|
5198
|
+
elements: PptxElement[];
|
|
5199
|
+
/** Placeholder slots, drawn as outlined frames in the gallery. */
|
|
5200
|
+
placeholders: PptxPlaceholderFrame[];
|
|
5201
|
+
}
|
|
5075
5202
|
/**
|
|
5076
5203
|
* A theme part available in the presentation package.
|
|
5077
5204
|
*
|
|
@@ -7691,6 +7818,8 @@ interface IPptxHandlerRuntime {
|
|
|
7691
7818
|
revokeBlobUrls(): void;
|
|
7692
7819
|
getCompatibilityWarnings(): PptxCompatibilityWarning[];
|
|
7693
7820
|
getLayoutOptions(): PptxLayoutOption[];
|
|
7821
|
+
getLayoutPreview(layoutPath: string): Promise<PptxLayoutPreview | null>;
|
|
7822
|
+
getLayoutPreviews(layoutPaths?: readonly string[]): Promise<PptxLayoutPreview[]>;
|
|
7694
7823
|
createXmlBuilder(data: PptxData): PptxXmlBuilder;
|
|
7695
7824
|
Builder(data: PptxData): PptxXmlBuilder;
|
|
7696
7825
|
setTemplateBackground(path: string, backgroundColor: string | undefined): void;
|
|
@@ -7879,6 +8008,26 @@ declare class PptxHandlerCore {
|
|
|
7879
8008
|
* @returns Array of {@link PptxLayoutOption} entries.
|
|
7880
8009
|
*/
|
|
7881
8010
|
getLayoutOptions(): PptxLayoutOption[];
|
|
8011
|
+
/**
|
|
8012
|
+
* Build the artwork thumbnails backing the New Slide / Layout galleries.
|
|
8013
|
+
*
|
|
8014
|
+
* Parsing happens on first request and is memoised afterwards, so opening
|
|
8015
|
+
* the gallery costs one pass over the layout parts and reopening it costs
|
|
8016
|
+
* nothing. Callers that only need one entry should prefer
|
|
8017
|
+
* {@link getLayoutPreview}.
|
|
8018
|
+
*
|
|
8019
|
+
* @param layoutPaths - Restrict the result to these layouts; defaults to
|
|
8020
|
+
* every layout in the presentation.
|
|
8021
|
+
* @returns One {@link PptxLayoutPreview} per resolvable layout.
|
|
8022
|
+
*/
|
|
8023
|
+
getLayoutPreviews(layoutPaths?: readonly string[]): Promise<PptxLayoutPreview[]>;
|
|
8024
|
+
/**
|
|
8025
|
+
* Build the artwork thumbnail for a single layout.
|
|
8026
|
+
*
|
|
8027
|
+
* @param layoutPath - Archive path of the `p:sldLayout` part.
|
|
8028
|
+
* @returns The preview, or `null` when the presentation has no such layout.
|
|
8029
|
+
*/
|
|
8030
|
+
getLayoutPreview(layoutPath: string): Promise<PptxLayoutPreview | null>;
|
|
7882
8031
|
/**
|
|
7883
8032
|
* Create a fluent XML builder scoped to the given presentation data.
|
|
7884
8033
|
*
|
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 chunkNQJPPIVH_js = require('../chunk-NQJPPIVH.js');
|
|
4
|
+
require('../chunk-ATOUVRRQ.js');
|
|
5
|
+
var chunkTCGXGD6E_js = require('../chunk-TCGXGD6E.js');
|
|
6
|
+
var chunk5BXATG54_js = require('../chunk-5BXATG54.js');
|
|
7
|
+
require('../chunk-AONFHTTJ.js');
|
|
8
|
+
var chunk7JPLVECA_js = require('../chunk-7JPLVECA.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 chunkNQJPPIVH_js.CollaborationProvider; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "CollaborationStatusIndicator", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkNQJPPIVH_js.CollaborationStatusIndicator; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkNQJPPIVH_js.PowerPointViewer; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "RemoteUserCursors", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkNQJPPIVH_js.RemoteUserCursors; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "UserAvatarBar", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkNQJPPIVH_js.UserAvatarBar; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "isAudienceTab", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkTCGXGD6E_js.isAudienceTab; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "parseAudienceNonce", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkTCGXGD6E_js.parseAudienceNonce; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "useCollaborativeHistory", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkTCGXGD6E_js.useCollaborativeHistory; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useCollaborativeState", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkTCGXGD6E_js.useCollaborativeState; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "usePresenceTracking", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkTCGXGD6E_js.usePresenceTracking; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "useThemeSwitching", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkTCGXGD6E_js.useThemeSwitching; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "useYjsProvider", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkTCGXGD6E_js.useYjsProvider; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk5BXATG54_js.getAnimationInitialStyle; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "clearAudienceContent", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk7JPLVECA_js.clearAudienceContent; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "forgetSessionDeck", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk7JPLVECA_js.forgetSessionDeck; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "getSessionTabId", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk7JPLVECA_js.getSessionTabId; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "loadAudienceContent", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk7JPLVECA_js.loadAudienceContent; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "loadSessionDeck", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk7JPLVECA_js.loadSessionDeck; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "rememberSessionDeck", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunk7JPLVECA_js.rememberSessionDeck; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "restoreSessionDeck", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunk7JPLVECA_js.restoreSessionDeck; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "storeAudienceContent", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunk7JPLVECA_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-422DF424.mjs';
|
|
2
|
+
import '../chunk-FXJOTEPO.mjs';
|
|
3
|
+
export { isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-ZA5JONCW.mjs';
|
|
4
|
+
export { getAnimationInitialStyle } from '../chunk-MQHC5TXI.mjs';
|
|
5
|
+
import '../chunk-S64T7C4V.mjs';
|
|
6
|
+
export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-K2QU73KB.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
|
|
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
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useViewerBuildingBlocks-Xddn6SFj.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":";;;;;UAyBiB;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;EA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