pptx-react-viewer 3.14.0 → 3.16.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 +46 -0
- package/dist/{AiChatPanel-NJBUCO4X.mjs → AiChatPanel-FAAO6JYZ.mjs} +3 -3
- package/dist/AiChatPanel-FAAO6JYZ.mjs.br +0 -0
- package/dist/AiChatPanel-FAAO6JYZ.mjs.gz +0 -0
- package/dist/{AiChatPanel-42X7I5I2.js → AiChatPanel-WSH2K7T4.js} +24 -24
- package/dist/AiChatPanel-WSH2K7T4.js.br +0 -0
- package/dist/AiChatPanel-WSH2K7T4.js.gz +0 -0
- package/dist/{Area3DChartScene-TFZPHEZ6.mjs → Area3DChartScene-LGLVVQEB.mjs} +1 -1
- package/dist/Area3DChartScene-LGLVVQEB.mjs.br +0 -0
- package/dist/Area3DChartScene-LGLVVQEB.mjs.gz +0 -0
- package/dist/{Area3DChartScene-IDS5APPJ.js → Area3DChartScene-PTKML4PN.js} +2 -2
- package/dist/Area3DChartScene-PTKML4PN.js.br +0 -0
- package/dist/Area3DChartScene-PTKML4PN.js.gz +0 -0
- package/dist/{Bar3DChartScene-L3VXO7BS.mjs → Bar3DChartScene-HCP7MA3A.mjs} +1 -1
- package/dist/Bar3DChartScene-HCP7MA3A.mjs.br +0 -0
- package/dist/Bar3DChartScene-HCP7MA3A.mjs.gz +0 -0
- package/dist/{Bar3DChartScene-C3CQCKB6.js → Bar3DChartScene-UXC4LE44.js} +2 -2
- package/dist/Bar3DChartScene-UXC4LE44.js.br +0 -0
- package/dist/Bar3DChartScene-UXC4LE44.js.gz +0 -0
- package/dist/{Line3DChartScene-UM4ZJJSY.mjs → Line3DChartScene-JF54KXMH.mjs} +1 -1
- package/dist/Line3DChartScene-JF54KXMH.mjs.br +0 -0
- package/dist/Line3DChartScene-JF54KXMH.mjs.gz +0 -0
- package/dist/{Line3DChartScene-YU4M3VMW.js → Line3DChartScene-Z2EVGX4C.js} +2 -2
- package/dist/Line3DChartScene-Z2EVGX4C.js.br +0 -0
- package/dist/Line3DChartScene-Z2EVGX4C.js.gz +0 -0
- package/dist/{Model3DScene-YEWZQAN5.mjs → Model3DScene-YWQBX477.mjs} +1 -1
- package/dist/{Model3DScene-YEWZQAN5.mjs.br → Model3DScene-YWQBX477.mjs.br} +0 -0
- package/dist/Model3DScene-YWQBX477.mjs.gz +0 -0
- package/dist/{Model3DScene-YRRNSOYK.js → Model3DScene-ZBOF56VV.js} +2 -2
- package/dist/Model3DScene-ZBOF56VV.js.br +0 -0
- package/dist/Model3DScene-ZBOF56VV.js.gz +0 -0
- package/dist/{PieChart3DScene-2OBYYK55.mjs → PieChart3DScene-4TRQ4V3M.mjs} +1 -1
- package/dist/PieChart3DScene-4TRQ4V3M.mjs.br +0 -0
- package/dist/PieChart3DScene-4TRQ4V3M.mjs.gz +0 -0
- package/dist/{PieChart3DScene-GH4X3W3E.js → PieChart3DScene-JPQTAS34.js} +2 -2
- package/dist/PieChart3DScene-JPQTAS34.js.br +0 -0
- package/dist/PieChart3DScene-JPQTAS34.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-DYG5I5UP.mjs → SurfaceChart3DScene-N76RNCUY.mjs} +1 -1
- package/dist/SurfaceChart3DScene-N76RNCUY.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-N76RNCUY.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-J5CAPHVA.js → SurfaceChart3DScene-P3LX35OP.js} +2 -2
- package/dist/SurfaceChart3DScene-P3LX35OP.js.br +0 -0
- package/dist/SurfaceChart3DScene-P3LX35OP.js.gz +0 -0
- package/dist/{chunk-EZ3EI2VM.mjs → chunk-6B7A5JNM.mjs} +12 -12
- package/dist/chunk-6B7A5JNM.mjs.br +0 -0
- package/dist/{chunk-EZ3EI2VM.mjs.gz → chunk-6B7A5JNM.mjs.gz} +0 -0
- package/dist/{chunk-YFYSY7ZL.mjs → chunk-A6UVUZUX.mjs} +1 -1
- package/dist/chunk-A6UVUZUX.mjs.br +0 -0
- package/dist/chunk-A6UVUZUX.mjs.gz +0 -0
- package/dist/{chunk-GQMVEUHM.mjs → chunk-BNR6YPW5.mjs} +24 -39
- package/dist/chunk-BNR6YPW5.mjs.br +0 -0
- package/dist/chunk-BNR6YPW5.mjs.gz +0 -0
- package/dist/{chunk-OVOXRK7D.mjs → chunk-ERCY52HH.mjs} +1 -1
- package/dist/chunk-ERCY52HH.mjs.br +0 -0
- package/dist/chunk-ERCY52HH.mjs.gz +0 -0
- package/dist/{chunk-MH4VFSDL.js → chunk-L2MOKP3E.js} +5132 -3587
- package/dist/chunk-L2MOKP3E.js.br +0 -0
- package/dist/chunk-L2MOKP3E.js.gz +0 -0
- package/dist/{chunk-HADPGII2.mjs → chunk-QVEPXTUB.mjs} +5131 -3583
- package/dist/chunk-QVEPXTUB.mjs.br +0 -0
- package/dist/chunk-QVEPXTUB.mjs.gz +0 -0
- package/dist/{chunk-7Z7AY4MH.js → chunk-TJ4L42RA.js} +468 -483
- package/dist/chunk-TJ4L42RA.js.br +0 -0
- package/dist/chunk-TJ4L42RA.js.gz +0 -0
- package/dist/{chunk-H4LMXJ2Z.js → chunk-W5W75MFP.js} +167 -167
- package/dist/chunk-W5W75MFP.js.br +0 -0
- package/dist/chunk-W5W75MFP.js.gz +0 -0
- package/dist/{chunk-7OMXJNYI.js → chunk-WYGPSCMS.js} +1289 -1289
- package/dist/chunk-WYGPSCMS.js.br +0 -0
- package/dist/chunk-WYGPSCMS.js.gz +0 -0
- package/dist/{chunk-INKQT4SQ.js → chunk-Y2UFUL7P.js} +5 -5
- package/dist/chunk-Y2UFUL7P.js.br +0 -0
- package/dist/chunk-Y2UFUL7P.js.gz +0 -0
- package/dist/index.d.ts +56 -1
- package/dist/index.js +45 -45
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +57 -1
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +78 -78
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +3 -3
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.d.ts +56 -1
- package/dist/viewer/index.js +26 -26
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +5 -5
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-42X7I5I2.js.br +0 -0
- package/dist/AiChatPanel-42X7I5I2.js.gz +0 -0
- package/dist/AiChatPanel-NJBUCO4X.mjs.br +0 -0
- package/dist/AiChatPanel-NJBUCO4X.mjs.gz +0 -0
- package/dist/Area3DChartScene-IDS5APPJ.js.br +0 -0
- package/dist/Area3DChartScene-IDS5APPJ.js.gz +0 -0
- package/dist/Area3DChartScene-TFZPHEZ6.mjs.br +0 -0
- package/dist/Area3DChartScene-TFZPHEZ6.mjs.gz +0 -0
- package/dist/Bar3DChartScene-C3CQCKB6.js.br +0 -0
- package/dist/Bar3DChartScene-C3CQCKB6.js.gz +0 -0
- package/dist/Bar3DChartScene-L3VXO7BS.mjs.br +0 -0
- package/dist/Bar3DChartScene-L3VXO7BS.mjs.gz +0 -0
- package/dist/Line3DChartScene-UM4ZJJSY.mjs.br +0 -0
- package/dist/Line3DChartScene-UM4ZJJSY.mjs.gz +0 -0
- package/dist/Line3DChartScene-YU4M3VMW.js.br +0 -0
- package/dist/Line3DChartScene-YU4M3VMW.js.gz +0 -0
- package/dist/Model3DScene-YEWZQAN5.mjs.gz +0 -0
- package/dist/Model3DScene-YRRNSOYK.js.br +0 -0
- package/dist/Model3DScene-YRRNSOYK.js.gz +0 -0
- package/dist/PieChart3DScene-2OBYYK55.mjs.br +0 -0
- package/dist/PieChart3DScene-2OBYYK55.mjs.gz +0 -0
- package/dist/PieChart3DScene-GH4X3W3E.js.br +0 -0
- package/dist/PieChart3DScene-GH4X3W3E.js.gz +0 -0
- package/dist/SurfaceChart3DScene-DYG5I5UP.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-DYG5I5UP.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-J5CAPHVA.js.br +0 -0
- package/dist/SurfaceChart3DScene-J5CAPHVA.js.gz +0 -0
- package/dist/chunk-7OMXJNYI.js.br +0 -0
- package/dist/chunk-7OMXJNYI.js.gz +0 -0
- package/dist/chunk-7Z7AY4MH.js.br +0 -0
- package/dist/chunk-7Z7AY4MH.js.gz +0 -0
- package/dist/chunk-EZ3EI2VM.mjs.br +0 -0
- package/dist/chunk-GQMVEUHM.mjs.br +0 -0
- package/dist/chunk-GQMVEUHM.mjs.gz +0 -0
- package/dist/chunk-H4LMXJ2Z.js.br +0 -0
- package/dist/chunk-H4LMXJ2Z.js.gz +0 -0
- package/dist/chunk-HADPGII2.mjs.br +0 -0
- package/dist/chunk-HADPGII2.mjs.gz +0 -0
- package/dist/chunk-INKQT4SQ.js.br +0 -0
- package/dist/chunk-INKQT4SQ.js.gz +0 -0
- package/dist/chunk-MH4VFSDL.js.br +0 -0
- package/dist/chunk-MH4VFSDL.js.gz +0 -0
- package/dist/chunk-OVOXRK7D.mjs.br +0 -0
- package/dist/chunk-OVOXRK7D.mjs.gz +0 -0
- package/dist/chunk-YFYSY7ZL.mjs.br +0 -0
- package/dist/chunk-YFYSY7ZL.mjs.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkL2MOKP3E_js = require('./chunk-L2MOKP3E.js');
|
|
4
4
|
var chunk4VNS5WPM_js = require('./chunk-4VNS5WPM.js');
|
|
5
5
|
var mcp = require('pptx-viewer-mcp');
|
|
6
6
|
var mcpSchemas = require('pptx-viewer-mcp/schemas');
|
|
@@ -19079,7 +19079,7 @@ async function buildSlideMarkdown(slides, slideIndex2, meta3, options = {}) {
|
|
|
19079
19079
|
};
|
|
19080
19080
|
let markdown;
|
|
19081
19081
|
try {
|
|
19082
|
-
const converter = new
|
|
19082
|
+
const converter = new chunkL2MOKP3E_js.PptxMarkdownConverter(
|
|
19083
19083
|
"",
|
|
19084
19084
|
{
|
|
19085
19085
|
sourceName: meta3.title ?? "deck.pptx",
|
|
@@ -19671,7 +19671,7 @@ var getTheme = (ctx) => {
|
|
|
19671
19671
|
name: theme?.name,
|
|
19672
19672
|
colorScheme: theme?.colorScheme,
|
|
19673
19673
|
fontScheme: theme?.fontScheme,
|
|
19674
|
-
availablePresets: Object.keys(
|
|
19674
|
+
availablePresets: Object.keys(chunkL2MOKP3E_js.ThemePresets)
|
|
19675
19675
|
};
|
|
19676
19676
|
};
|
|
19677
19677
|
var readExecutors = {
|
|
@@ -20769,7 +20769,7 @@ function applyElementUpdate(el, u) {
|
|
|
20769
20769
|
applyShapeStyleUpdate(el, u);
|
|
20770
20770
|
}
|
|
20771
20771
|
function applyTextUpdate(el, u) {
|
|
20772
|
-
if (!
|
|
20772
|
+
if (!chunkL2MOKP3E_js.hasTextProperties(el)) {
|
|
20773
20773
|
return;
|
|
20774
20774
|
}
|
|
20775
20775
|
const textEl = el;
|
|
@@ -20818,7 +20818,7 @@ function applyShapeStyleUpdate(el, u) {
|
|
|
20818
20818
|
if (u.fillColor === void 0 && u.strokeColor === void 0 && u.strokeWidth === void 0) {
|
|
20819
20819
|
return;
|
|
20820
20820
|
}
|
|
20821
|
-
if (!
|
|
20821
|
+
if (!chunkL2MOKP3E_js.hasShapeProperties(el)) {
|
|
20822
20822
|
return;
|
|
20823
20823
|
}
|
|
20824
20824
|
const holder = el;
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -4682,7 +4682,7 @@ interface PptxSmartArtNumericRule extends PptxSmartArtConstraintTarget {
|
|
|
4682
4682
|
rawXml?: XmlObject;
|
|
4683
4683
|
}
|
|
4684
4684
|
//#endregion
|
|
4685
|
-
//#region src/core/types/smart-art-layout-
|
|
4685
|
+
//#region src/core/types/smart-art-layout-primitives.d.ts
|
|
4686
4686
|
interface PptxSmartArtLocalizedText {
|
|
4687
4687
|
value: string;
|
|
4688
4688
|
language?: string;
|
|
@@ -4757,6 +4757,8 @@ interface PptxSmartArtLayoutNodeShape {
|
|
|
4757
4757
|
*/
|
|
4758
4758
|
lkTxEntry?: boolean;
|
|
4759
4759
|
}
|
|
4760
|
+
//#endregion
|
|
4761
|
+
//#region src/core/types/smart-art-layout-definition.d.ts
|
|
4760
4762
|
/** Identity and ordering metadata from DiagramML CT_LayoutNode. */
|
|
4761
4763
|
interface PptxSmartArtLayoutNode {
|
|
4762
4764
|
name?: string;
|
|
@@ -4872,6 +4874,30 @@ interface PptxSmartArtLayoutNode {
|
|
|
4872
4874
|
* interpreter-when.ts`'s `evaluateWhen`, once per entry, ANDed.
|
|
4873
4875
|
*/
|
|
4874
4876
|
chooseGuard?: PptxSmartArtWhen[];
|
|
4877
|
+
/**
|
|
4878
|
+
* ROUND 42: the forEach iterator active WHEN EACH ENTRY of {@link
|
|
4879
|
+
* chooseGuard} was declared (index-parallel with it, `undefined` per
|
|
4880
|
+
* entry when no forEach was active at that point) - NOT the same as
|
|
4881
|
+
* {@link forEachOrigin}, which is always this NODE's own single nearest
|
|
4882
|
+
* enclosing forEach, however deep. A `dgm:if` declared ABOVE a `dgm:forEach`
|
|
4883
|
+
* that this node's own branch happens to descend through afterwards needs
|
|
4884
|
+
* ITS OWN, SHALLOWER anchor for a `func="cnt"`/`"maxDepth"`-family
|
|
4885
|
+
* `@axis` condition, not this node's deeper one - `funnel--flat3.pptx`'s
|
|
4886
|
+
* `item1`/`item2`/`item3` (`chooseGuard: [Name5's axis="ch" func="cnt"
|
|
4887
|
+
* op="gte" val="1"]`, declared directly under the composite root, BEFORE
|
|
4888
|
+
* each item's own per-item `dgm:forEach axis="ch" st="2"/"3"/"4" cnt="1"`)
|
|
4889
|
+
* is exactly this shape: evaluating Name5's condition anchored to item1's
|
|
4890
|
+
* OWN forEach binding (one specific data point, with no children of its
|
|
4891
|
+
* own in a flat dataset) wrongly resolves its `axis="ch"` child count to
|
|
4892
|
+
* 0 instead of the diagram's real top-level count, dropping the item
|
|
4893
|
+
* entirely - `chooseGuardOrigins[i]` for that entry is `undefined`
|
|
4894
|
+
* (Name5 sits above ANY forEach), so the guard correctly stays
|
|
4895
|
+
* root-relative. See `smartart-layout-interpreter-composite-
|
|
4896
|
+
* candidates.ts`'s `guardAllows`, the one production consumer.
|
|
4897
|
+
* `undefined` whenever {@link chooseGuard} itself is (no enclosing
|
|
4898
|
+
* choose at all).
|
|
4899
|
+
*/
|
|
4900
|
+
chooseGuardOrigins?: (PptxSmartArtIteratorAttributes | undefined)[];
|
|
4875
4901
|
/**
|
|
4876
4902
|
* The chain of every enclosing `dgm:choose`'s own GROUP identity + this
|
|
4877
4903
|
* node's ordinal position within it + THAT branch's own condition,
|
|
@@ -4907,11 +4933,20 @@ interface PptxSmartArtLayoutNode {
|
|
|
4907
4933
|
* enclosing choose (a direct child, or a `dgm:forEach`-only path) -
|
|
4908
4934
|
* every PRE-EXISTING caller that does not consult this field is
|
|
4909
4935
|
* unaffected by its mere presence.
|
|
4936
|
+
*
|
|
4937
|
+
* ROUND 42: `origin` is the forEach iterator active when THIS branch's
|
|
4938
|
+
* own `dgm:if`/`dgm:else` was declared (the SAME "declaration time, not
|
|
4939
|
+
* whatever descendant ends up carrying it" concept {@link
|
|
4940
|
+
* chooseGuardOrigins} exists for) - the anchor a `func="cnt"`/`"maxDepth"`
|
|
4941
|
+
* -family condition in `guard` needs, NOT a representative member's own
|
|
4942
|
+
* (possibly deeper) `forEachOrigin`. See `smartart-layout-interpreter-
|
|
4943
|
+
* composite-choose-groups.ts`'s `winningOrdinalFor`, the one consumer.
|
|
4910
4944
|
*/
|
|
4911
4945
|
chooseGroups?: {
|
|
4912
4946
|
id: string;
|
|
4913
4947
|
ordinal: number;
|
|
4914
4948
|
guard?: PptxSmartArtWhen;
|
|
4949
|
+
origin?: PptxSmartArtIteratorAttributes;
|
|
4915
4950
|
}[];
|
|
4916
4951
|
/**
|
|
4917
4952
|
* Every `dgm:presOf` candidate reachable through a `dgm:choose`/`dgm:if`/
|
|
@@ -4953,6 +4988,24 @@ interface PptxSmartArtLayoutNode {
|
|
|
4953
4988
|
guard: PptxSmartArtWhen[];
|
|
4954
4989
|
rule: PptxSmartArtNumericRule;
|
|
4955
4990
|
}[];
|
|
4991
|
+
/**
|
|
4992
|
+
* ROUND 39: every `dgm:constr` reachable through a `dgm:choose`/`dgm:if`/
|
|
4993
|
+
* `dgm:else` wrapping THIS node's `constrLst` (a genuinely count/position
|
|
4994
|
+
* -branched constraint set, e.g. `basic-venn--flat3.pptx`'s composite
|
|
4995
|
+
* `Name9` choose, one `ctrX`/`ctrY`/`w`/`h` per data-point-count branch
|
|
4996
|
+
* for `circ1`/`circ1Tx`/...), each tagged with its guard chain - the SAME
|
|
4997
|
+
* shape {@link presentationOfCandidates}/{@link ruleCandidates} use,
|
|
4998
|
+
* applied to `dgm:constr`. `undefined` when not choose-guarded
|
|
4999
|
+
* (`allConstraints`/`constraints` above then carry the one set, the
|
|
5000
|
+
* common case). See `smartart-constraint-branch-index.ts`'s
|
|
5001
|
+
* `selectConstraints` for how the guard is evaluated against the real
|
|
5002
|
+
* diagram, and that module's own doc comment for why `allConstraints`'s
|
|
5003
|
+
* pre-existing blind union of every branch is not enough on its own.
|
|
5004
|
+
*/
|
|
5005
|
+
constraintCandidates?: {
|
|
5006
|
+
guard: PptxSmartArtWhen[];
|
|
5007
|
+
constraint: PptxSmartArtConstraint;
|
|
5008
|
+
}[];
|
|
4956
5009
|
}
|
|
4957
5010
|
/** Metadata and root node from DiagramML CT_DiagramDefinition. */
|
|
4958
5011
|
interface PptxSmartArtLayoutDefinition {
|
|
@@ -5907,6 +5960,8 @@ interface PptxTableCellTextRun {
|
|
|
5907
5960
|
isParagraphBreak?: boolean;
|
|
5908
5961
|
/** This entry is a soft line break (`a:br`) rather than carrying text. */
|
|
5909
5962
|
isLineBreak?: boolean;
|
|
5963
|
+
/** This entry carries an `a:fld` value rather than a literal `a:r`. */
|
|
5964
|
+
isField?: true;
|
|
5910
5965
|
bold?: boolean;
|
|
5911
5966
|
italic?: boolean;
|
|
5912
5967
|
underline?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkWYGPSCMS_js = require('./chunk-WYGPSCMS.js');
|
|
4
|
+
require('./chunk-Y2UFUL7P.js');
|
|
5
|
+
var chunkTJ4L42RA_js = require('./chunk-TJ4L42RA.js');
|
|
6
|
+
var chunkW5W75MFP_js = require('./chunk-W5W75MFP.js');
|
|
7
|
+
var chunkL2MOKP3E_js = require('./chunk-L2MOKP3E.js');
|
|
8
8
|
var chunk3AJ54EAB_js = require('./chunk-3AJ54EAB.js');
|
|
9
9
|
require('./chunk-4VNS5WPM.js');
|
|
10
10
|
|
|
@@ -12,163 +12,163 @@ require('./chunk-4VNS5WPM.js');
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkWYGPSCMS_js.PowerPointViewer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkWYGPSCMS_js.SlideCanvas; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkWYGPSCMS_js.SlideTemplateGalleryDialog; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkWYGPSCMS_js.SlideTemplatePreview; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "Toolbar", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkWYGPSCMS_js.Toolbar; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkWYGPSCMS_js.ViewerThemeProvider; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkWYGPSCMS_js.useViewerTheme; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkTJ4L42RA_js.renderToCanvas; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkTJ4L42RA_js.useViewerBuildingBlocks; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkW5W75MFP_js.getAnimationInitialStyle; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkL2MOKP3E_js.AVATAR_COLOR_SWATCHES; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkL2MOKP3E_js.DEFAULT_VIEWER_PROFILE; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "PPTX_OPEN_ACCEPT", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkL2MOKP3E_js.PPTX_OPEN_ACCEPT; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "PRESENTATION_OPEN_EXTENSIONS", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkL2MOKP3E_js.PRESENTATION_OPEN_EXTENSIONS; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "SLIDE_TEMPLATES", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkL2MOKP3E_js.SLIDE_TEMPLATES; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkL2MOKP3E_js.THEME_CATALOG; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkL2MOKP3E_js.VIEWER_PREFS_STORAGE_KEY; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "buildSlideTemplateContent", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkL2MOKP3E_js.buildSlideTemplateContent; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "buildSlideTemplateSlide", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkL2MOKP3E_js.buildSlideTemplateSlide; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "clearAllLocalViewerData", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkL2MOKP3E_js.clearAllLocalViewerData; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "clearStoredViewerPrefs", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkL2MOKP3E_js.clearStoredViewerPrefs; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkL2MOKP3E_js.defaultCssVars; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "defaultRadius", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkL2MOKP3E_js.defaultRadius; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkL2MOKP3E_js.defaultThemeColors; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "getLocalStorageUsageSummary", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkL2MOKP3E_js.getLocalStorageUsageSummary; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "isLegacyBinaryPresentation", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkL2MOKP3E_js.isLegacyBinaryPresentation; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "isSupportedPresentationFile", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkL2MOKP3E_js.isSupportedPresentationFile; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "presentationBaseName", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkL2MOKP3E_js.presentationBaseName; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "readStoredViewerPrefs", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkL2MOKP3E_js.readStoredViewerPrefs; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "resolveProfileInitial", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkL2MOKP3E_js.resolveProfileInitial; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkL2MOKP3E_js.resolveThemeCatalogEntry; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "saveViewerProfile", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkL2MOKP3E_js.saveViewerProfile; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "savedPresentationFileName", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkL2MOKP3E_js.savedPresentationFileName; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkL2MOKP3E_js.themeToCssVars; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkL2MOKP3E_js.vermilionDarkColors; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkL2MOKP3E_js.vermilionDarkTheme; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkL2MOKP3E_js.vermilionLightColors; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkL2MOKP3E_js.vermilionLightTheme; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkL2MOKP3E_js.vermilionRadius; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "writeStoredViewerPrefs", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkL2MOKP3E_js.writeStoredViewerPrefs; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
174
174
|
enumerable: true,
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-
|
|
4
|
-
export { getAnimationInitialStyle } from './chunk-
|
|
5
|
-
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-
|
|
1
|
+
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-6B7A5JNM.mjs';
|
|
2
|
+
import './chunk-A6UVUZUX.mjs';
|
|
3
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-BNR6YPW5.mjs';
|
|
4
|
+
export { getAnimationInitialStyle } from './chunk-ERCY52HH.mjs';
|
|
5
|
+
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-QVEPXTUB.mjs';
|
|
6
6
|
export { LOCALE_CATALOG } from './chunk-HMX3MQR7.mjs';
|
|
7
7
|
import './chunk-XGB3TDIC.mjs';
|
package/dist/index.mjs.br
CHANGED
|
Binary file
|
package/dist/index.mjs.gz
CHANGED
|
Binary file
|
package/dist/internals.d.ts
CHANGED
|
@@ -4662,7 +4662,7 @@ interface PptxSmartArtNumericRule extends PptxSmartArtConstraintTarget {
|
|
|
4662
4662
|
rawXml?: XmlObject;
|
|
4663
4663
|
}
|
|
4664
4664
|
//#endregion
|
|
4665
|
-
//#region src/core/types/smart-art-layout-
|
|
4665
|
+
//#region src/core/types/smart-art-layout-primitives.d.ts
|
|
4666
4666
|
interface PptxSmartArtLocalizedText {
|
|
4667
4667
|
value: string;
|
|
4668
4668
|
language?: string;
|
|
@@ -4737,6 +4737,8 @@ interface PptxSmartArtLayoutNodeShape {
|
|
|
4737
4737
|
*/
|
|
4738
4738
|
lkTxEntry?: boolean;
|
|
4739
4739
|
}
|
|
4740
|
+
//#endregion
|
|
4741
|
+
//#region src/core/types/smart-art-layout-definition.d.ts
|
|
4740
4742
|
/** Identity and ordering metadata from DiagramML CT_LayoutNode. */
|
|
4741
4743
|
interface PptxSmartArtLayoutNode {
|
|
4742
4744
|
name?: string;
|
|
@@ -4852,6 +4854,30 @@ interface PptxSmartArtLayoutNode {
|
|
|
4852
4854
|
* interpreter-when.ts`'s `evaluateWhen`, once per entry, ANDed.
|
|
4853
4855
|
*/
|
|
4854
4856
|
chooseGuard?: PptxSmartArtWhen[];
|
|
4857
|
+
/**
|
|
4858
|
+
* ROUND 42: the forEach iterator active WHEN EACH ENTRY of {@link
|
|
4859
|
+
* chooseGuard} was declared (index-parallel with it, `undefined` per
|
|
4860
|
+
* entry when no forEach was active at that point) - NOT the same as
|
|
4861
|
+
* {@link forEachOrigin}, which is always this NODE's own single nearest
|
|
4862
|
+
* enclosing forEach, however deep. A `dgm:if` declared ABOVE a `dgm:forEach`
|
|
4863
|
+
* that this node's own branch happens to descend through afterwards needs
|
|
4864
|
+
* ITS OWN, SHALLOWER anchor for a `func="cnt"`/`"maxDepth"`-family
|
|
4865
|
+
* `@axis` condition, not this node's deeper one - `funnel--flat3.pptx`'s
|
|
4866
|
+
* `item1`/`item2`/`item3` (`chooseGuard: [Name5's axis="ch" func="cnt"
|
|
4867
|
+
* op="gte" val="1"]`, declared directly under the composite root, BEFORE
|
|
4868
|
+
* each item's own per-item `dgm:forEach axis="ch" st="2"/"3"/"4" cnt="1"`)
|
|
4869
|
+
* is exactly this shape: evaluating Name5's condition anchored to item1's
|
|
4870
|
+
* OWN forEach binding (one specific data point, with no children of its
|
|
4871
|
+
* own in a flat dataset) wrongly resolves its `axis="ch"` child count to
|
|
4872
|
+
* 0 instead of the diagram's real top-level count, dropping the item
|
|
4873
|
+
* entirely - `chooseGuardOrigins[i]` for that entry is `undefined`
|
|
4874
|
+
* (Name5 sits above ANY forEach), so the guard correctly stays
|
|
4875
|
+
* root-relative. See `smartart-layout-interpreter-composite-
|
|
4876
|
+
* candidates.ts`'s `guardAllows`, the one production consumer.
|
|
4877
|
+
* `undefined` whenever {@link chooseGuard} itself is (no enclosing
|
|
4878
|
+
* choose at all).
|
|
4879
|
+
*/
|
|
4880
|
+
chooseGuardOrigins?: (PptxSmartArtIteratorAttributes | undefined)[];
|
|
4855
4881
|
/**
|
|
4856
4882
|
* The chain of every enclosing `dgm:choose`'s own GROUP identity + this
|
|
4857
4883
|
* node's ordinal position within it + THAT branch's own condition,
|
|
@@ -4887,11 +4913,20 @@ interface PptxSmartArtLayoutNode {
|
|
|
4887
4913
|
* enclosing choose (a direct child, or a `dgm:forEach`-only path) -
|
|
4888
4914
|
* every PRE-EXISTING caller that does not consult this field is
|
|
4889
4915
|
* unaffected by its mere presence.
|
|
4916
|
+
*
|
|
4917
|
+
* ROUND 42: `origin` is the forEach iterator active when THIS branch's
|
|
4918
|
+
* own `dgm:if`/`dgm:else` was declared (the SAME "declaration time, not
|
|
4919
|
+
* whatever descendant ends up carrying it" concept {@link
|
|
4920
|
+
* chooseGuardOrigins} exists for) - the anchor a `func="cnt"`/`"maxDepth"`
|
|
4921
|
+
* -family condition in `guard` needs, NOT a representative member's own
|
|
4922
|
+
* (possibly deeper) `forEachOrigin`. See `smartart-layout-interpreter-
|
|
4923
|
+
* composite-choose-groups.ts`'s `winningOrdinalFor`, the one consumer.
|
|
4890
4924
|
*/
|
|
4891
4925
|
chooseGroups?: {
|
|
4892
4926
|
id: string;
|
|
4893
4927
|
ordinal: number;
|
|
4894
4928
|
guard?: PptxSmartArtWhen;
|
|
4929
|
+
origin?: PptxSmartArtIteratorAttributes;
|
|
4895
4930
|
}[];
|
|
4896
4931
|
/**
|
|
4897
4932
|
* Every `dgm:presOf` candidate reachable through a `dgm:choose`/`dgm:if`/
|
|
@@ -4933,6 +4968,24 @@ interface PptxSmartArtLayoutNode {
|
|
|
4933
4968
|
guard: PptxSmartArtWhen[];
|
|
4934
4969
|
rule: PptxSmartArtNumericRule;
|
|
4935
4970
|
}[];
|
|
4971
|
+
/**
|
|
4972
|
+
* ROUND 39: every `dgm:constr` reachable through a `dgm:choose`/`dgm:if`/
|
|
4973
|
+
* `dgm:else` wrapping THIS node's `constrLst` (a genuinely count/position
|
|
4974
|
+
* -branched constraint set, e.g. `basic-venn--flat3.pptx`'s composite
|
|
4975
|
+
* `Name9` choose, one `ctrX`/`ctrY`/`w`/`h` per data-point-count branch
|
|
4976
|
+
* for `circ1`/`circ1Tx`/...), each tagged with its guard chain - the SAME
|
|
4977
|
+
* shape {@link presentationOfCandidates}/{@link ruleCandidates} use,
|
|
4978
|
+
* applied to `dgm:constr`. `undefined` when not choose-guarded
|
|
4979
|
+
* (`allConstraints`/`constraints` above then carry the one set, the
|
|
4980
|
+
* common case). See `smartart-constraint-branch-index.ts`'s
|
|
4981
|
+
* `selectConstraints` for how the guard is evaluated against the real
|
|
4982
|
+
* diagram, and that module's own doc comment for why `allConstraints`'s
|
|
4983
|
+
* pre-existing blind union of every branch is not enough on its own.
|
|
4984
|
+
*/
|
|
4985
|
+
constraintCandidates?: {
|
|
4986
|
+
guard: PptxSmartArtWhen[];
|
|
4987
|
+
constraint: PptxSmartArtConstraint;
|
|
4988
|
+
}[];
|
|
4936
4989
|
}
|
|
4937
4990
|
/** Metadata and root node from DiagramML CT_DiagramDefinition. */
|
|
4938
4991
|
interface PptxSmartArtLayoutDefinition {
|
|
@@ -5887,6 +5940,8 @@ interface PptxTableCellTextRun {
|
|
|
5887
5940
|
isParagraphBreak?: boolean;
|
|
5888
5941
|
/** This entry is a soft line break (`a:br`) rather than carrying text. */
|
|
5889
5942
|
isLineBreak?: boolean;
|
|
5943
|
+
/** This entry carries an `a:fld` value rather than a literal `a:r`. */
|
|
5944
|
+
isField?: true;
|
|
5890
5945
|
bold?: boolean;
|
|
5891
5946
|
italic?: boolean;
|
|
5892
5947
|
underline?: boolean;
|
|
@@ -15142,6 +15197,7 @@ interface UseSlideManagementInput {
|
|
|
15142
15197
|
}
|
|
15143
15198
|
interface SlideManagementHandlers {
|
|
15144
15199
|
handleAddSlide: () => void;
|
|
15200
|
+
handleAddSlideAfter: (afterIndex: number) => void;
|
|
15145
15201
|
handleMoveSlide: (fromIndex: number, toIndex: number) => void;
|
|
15146
15202
|
handleSlideContextMenu: (e: React$1.MouseEvent, index: number) => void;
|
|
15147
15203
|
handleDeleteSlides: (indexes: number[]) => void;
|