pptx-svelte-viewer 3.11.0 → 3.12.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/dist/index.d.ts CHANGED
@@ -4815,14 +4815,16 @@ interface PptxSmartArtLayoutNode {
4815
4815
  */
4816
4816
  forEachOrigin?: PptxSmartArtIteratorAttributes;
4817
4817
  /**
4818
- * The condition of the NEAREST enclosing `dgm:if` this node was found
4819
- * through, when `nestedLayoutNodes` (`smartart-layout-definition.ts`)
4820
- * reached it via a `dgm:choose`'s `if` branch (as opposed to a direct
4821
- * child, a `dgm:else` branch - always `undefined` here, see below - or a
4822
- * `dgm:forEach`, which sets {@link forEachOrigin} instead). Lets a
4823
- * caller that already has the data-model node list decide whether this
4824
- * node's OWN branch is genuinely live for a specific point, instead of
4825
- * treating every choose-flattened branch as unconditionally present
4818
+ * The conditions of EVERY enclosing `dgm:if` this node was found through,
4819
+ * outermost first, when `nestedLayoutNodes` (`smartart-layout-
4820
+ * definition.ts`) reached it via one or more `dgm:choose`'s `if` branches
4821
+ * (as opposed to a direct child, a `dgm:else` branch contributing no
4822
+ * condition of its own - see below - or a `dgm:forEach`, which sets
4823
+ * {@link forEachOrigin} instead). ALL must hold (evaluate `!== false`,
4824
+ * per {@link chooseGuard}'s own AND semantics - see `evaluateWhen`) for
4825
+ * this node's branch to be genuinely live. A caller that already has the
4826
+ * data-model node list can use this instead of treating every
4827
+ * choose-flattened branch as unconditionally present
4826
4828
  * (`nestedLayoutNodes`' pre-existing "flatten every branch" convention,
4827
4829
  * still the default when this is absent or a caller does not evaluate
4828
4830
  * it) - e.g. `cycle-matrix--fallback-n2.pptx`'s `child1group`..
@@ -4830,15 +4832,26 @@ interface PptxSmartArtLayoutNode {
4830
4832
  * having its own child (`axis="ch ch" st="N 1" cnt="1 0" func="cnt"
4831
4833
  * op="gte" val="1"`).
4832
4834
  *
4833
- * Deliberately `undefined` for a `dgm:else` branch: ECMA-376 defines it
4834
- * as "none of the sibling ifs matched", which would need the FULL
4835
- * sibling list's conditions negated and ANDed together, not a single
4836
- * condition - no gallery fixture measured needs an else branch's own
4837
- * guard yet, so it is left unconditional (rendered by default, matching
4838
- * the pre-existing flatten-everything behaviour) rather than guessed at.
4839
- * Evaluate with `smartart-layout-interpreter-when.ts`'s `evaluateWhen`.
4840
- */
4841
- chooseGuard?: PptxSmartArtWhen;
4835
+ * A CHAIN, not a single condition, because a node can sit inside NESTED
4836
+ * `dgm:choose`s whose OWN conditions are each individually necessary -
4837
+ * `sub-step-process--hier5.pptx`'s `chLin1`..`chLin7` each sit inside
4838
+ * BOTH an outer `dgm:if func="pos" op="equ" val="N"` (which one of the
4839
+ * 7 hand-duplicated per-position templates this is) AND an inner,
4840
+ * nearly-vacuous `dgm:if func="cnt" op="gte" val="1"` (has >= 1 point at
4841
+ * all) - keeping only the NEAREST (inner) one, as an earlier single-
4842
+ * condition design did, loses the ONE piece of information (the outer
4843
+ * `pos` guard) that actually discriminates `chLin1` from `chLin2`.
4844
+ *
4845
+ * A `dgm:else` branch contributes NO condition of its own (ECMA-376
4846
+ * defines it as "none of the sibling ifs matched", which would need the
4847
+ * FULL sibling list's conditions negated and ANDed together, not a
4848
+ * single condition - no gallery fixture measured needs an else branch's
4849
+ * own guard yet, so it is left unconditional, matching the pre-existing
4850
+ * flatten-everything behaviour) but does NOT clear any OUTER ancestor
4851
+ * guard already accumulated before it. Evaluate with `smartart-layout-
4852
+ * interpreter-when.ts`'s `evaluateWhen`, once per entry, ANDed.
4853
+ */
4854
+ chooseGuard?: PptxSmartArtWhen[];
4842
4855
  }
4843
4856
  /** Metadata and root node from DiagramML CT_DiagramDefinition. */
4844
4857
  interface PptxSmartArtLayoutDefinition {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as e, G as a, J as t, K as o, Q as i, W as r, X as n, Y as l, Z as S, a as d, at as m, c as p, ct as T, dt as v, et as P, ft as g, it as u, l as h, lt as c, mt as A, nt as C, o as N, ot as f, pt as k, q as D, rt as E, s as x, st as b, t as B, tt as I, u as O, ut as _ } from "./export-DUAHiVMc.js";
1
+ import { $ as e, G as a, J as t, K as o, Q as i, W as r, X as n, Y as l, Z as S, a as d, at as m, c as p, ct as T, dt as v, et as P, ft as g, it as u, l as h, lt as c, mt as A, nt as C, o as N, ot as f, pt as k, q as D, rt as E, s as x, st as b, t as B, tt as I, u as O, ut as _ } from "./export-D5ONQJDv.js";
2
2
  import { i as R } from "./translator-ysng3Lpf.js";
3
3
  import "./i18n.js";
4
4
  export {
@@ -4815,14 +4815,16 @@ interface PptxSmartArtLayoutNode {
4815
4815
  */
4816
4816
  forEachOrigin?: PptxSmartArtIteratorAttributes;
4817
4817
  /**
4818
- * The condition of the NEAREST enclosing `dgm:if` this node was found
4819
- * through, when `nestedLayoutNodes` (`smartart-layout-definition.ts`)
4820
- * reached it via a `dgm:choose`'s `if` branch (as opposed to a direct
4821
- * child, a `dgm:else` branch - always `undefined` here, see below - or a
4822
- * `dgm:forEach`, which sets {@link forEachOrigin} instead). Lets a
4823
- * caller that already has the data-model node list decide whether this
4824
- * node's OWN branch is genuinely live for a specific point, instead of
4825
- * treating every choose-flattened branch as unconditionally present
4818
+ * The conditions of EVERY enclosing `dgm:if` this node was found through,
4819
+ * outermost first, when `nestedLayoutNodes` (`smartart-layout-
4820
+ * definition.ts`) reached it via one or more `dgm:choose`'s `if` branches
4821
+ * (as opposed to a direct child, a `dgm:else` branch contributing no
4822
+ * condition of its own - see below - or a `dgm:forEach`, which sets
4823
+ * {@link forEachOrigin} instead). ALL must hold (evaluate `!== false`,
4824
+ * per {@link chooseGuard}'s own AND semantics - see `evaluateWhen`) for
4825
+ * this node's branch to be genuinely live. A caller that already has the
4826
+ * data-model node list can use this instead of treating every
4827
+ * choose-flattened branch as unconditionally present
4826
4828
  * (`nestedLayoutNodes`' pre-existing "flatten every branch" convention,
4827
4829
  * still the default when this is absent or a caller does not evaluate
4828
4830
  * it) - e.g. `cycle-matrix--fallback-n2.pptx`'s `child1group`..
@@ -4830,15 +4832,26 @@ interface PptxSmartArtLayoutNode {
4830
4832
  * having its own child (`axis="ch ch" st="N 1" cnt="1 0" func="cnt"
4831
4833
  * op="gte" val="1"`).
4832
4834
  *
4833
- * Deliberately `undefined` for a `dgm:else` branch: ECMA-376 defines it
4834
- * as "none of the sibling ifs matched", which would need the FULL
4835
- * sibling list's conditions negated and ANDed together, not a single
4836
- * condition - no gallery fixture measured needs an else branch's own
4837
- * guard yet, so it is left unconditional (rendered by default, matching
4838
- * the pre-existing flatten-everything behaviour) rather than guessed at.
4839
- * Evaluate with `smartart-layout-interpreter-when.ts`'s `evaluateWhen`.
4840
- */
4841
- chooseGuard?: PptxSmartArtWhen;
4835
+ * A CHAIN, not a single condition, because a node can sit inside NESTED
4836
+ * `dgm:choose`s whose OWN conditions are each individually necessary -
4837
+ * `sub-step-process--hier5.pptx`'s `chLin1`..`chLin7` each sit inside
4838
+ * BOTH an outer `dgm:if func="pos" op="equ" val="N"` (which one of the
4839
+ * 7 hand-duplicated per-position templates this is) AND an inner,
4840
+ * nearly-vacuous `dgm:if func="cnt" op="gte" val="1"` (has >= 1 point at
4841
+ * all) - keeping only the NEAREST (inner) one, as an earlier single-
4842
+ * condition design did, loses the ONE piece of information (the outer
4843
+ * `pos` guard) that actually discriminates `chLin1` from `chLin2`.
4844
+ *
4845
+ * A `dgm:else` branch contributes NO condition of its own (ECMA-376
4846
+ * defines it as "none of the sibling ifs matched", which would need the
4847
+ * FULL sibling list's conditions negated and ANDed together, not a
4848
+ * single condition - no gallery fixture measured needs an else branch's
4849
+ * own guard yet, so it is left unconditional, matching the pre-existing
4850
+ * flatten-everything behaviour) but does NOT clear any OUTER ancestor
4851
+ * guard already accumulated before it. Evaluate with `smartart-layout-
4852
+ * interpreter-when.ts`'s `evaluateWhen`, once per entry, ANDed.
4853
+ */
4854
+ chooseGuard?: PptxSmartArtWhen[];
4842
4855
  }
4843
4856
  /** Metadata and root node from DiagramML CT_DiagramDefinition. */
4844
4857
  interface PptxSmartArtLayoutDefinition {
@@ -1,4 +1,4 @@
1
- import { A as e, M as a, c as s, d as t, f as i, gt as l, ht as S, i as n, j as o, l as v, m as d, n as p, o as b, p as g, r as c, s as x, t as m, u as w } from "../export-DUAHiVMc.js";
1
+ import { A as e, M as a, c as s, d as t, f as i, gt as l, ht as S, i as n, j as o, l as v, m as d, n as p, o as b, p as g, r as c, s as x, t as m, u as w } from "../export-D5ONQJDv.js";
2
2
  var T = a, A = o, P = e;
3
3
  export {
4
4
  m as PowerPointViewer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-svelte-viewer",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "description": "Svelte 5 PowerPoint viewer and editor component: render, edit, present, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "office",
@@ -70,7 +70,7 @@
70
70
  "html2canvas-pro": "^2.4.2",
71
71
  "jspdf": "^4.2.1",
72
72
  "jszip": "^3.10.2",
73
- "pptx-viewer-mcp": "^2.4.1"
73
+ "pptx-viewer-mcp": "^2.5.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@ai-sdk/svelte": "^5.0.97",