pptx-svelte-viewer 3.12.0 → 3.13.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/i18n.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as s, c as e, i as t, n as r, o, r as n, s as i, t as l } from "./translator-ysng3Lpf.js";
1
+ import { a as s, c as e, i as t, n as r, o, r as n, s as i, t as l } from "./translator-DTR0k69d.js";
2
2
  export {
3
3
  o as LOCALE_CATALOG,
4
4
  l as createTranslator,
package/dist/index.d.ts CHANGED
@@ -4852,6 +4852,87 @@ interface PptxSmartArtLayoutNode {
4852
4852
  * interpreter-when.ts`'s `evaluateWhen`, once per entry, ANDed.
4853
4853
  */
4854
4854
  chooseGuard?: PptxSmartArtWhen[];
4855
+ /**
4856
+ * The chain of every enclosing `dgm:choose`'s own GROUP identity + this
4857
+ * node's ordinal position within it + THAT branch's own condition,
4858
+ * outermost first - identifies WHICH `dgm:choose` instance and WHERE
4859
+ * within its own `dgm:if`/`dgm:else` list this node's branch sits, unlike
4860
+ * {@link chooseGuard} (a flat AND-chain of every condition with no group/
4861
+ * position identity, and no entry at all for a `dgm:else` branch, which
4862
+ * has no condition of its own - see that field's doc comment). `id` is a
4863
+ * synthetic, process-unique identifier assigned per `dgm:choose` instance
4864
+ * during flattening (`smartart-layout-definition-nesting.ts`'s
4865
+ * `nestedLayoutNodes`, a monotonic counter - NOT round-tripped, NOT the
4866
+ * choose's own `@_name`, which is not guaranteed unique across a whole
4867
+ * layoutDef); `ordinal` is 0-based document order within that ONE choose
4868
+ * (every `dgm:if` in order, then `dgm:else` last, if present); `guard` is
4869
+ * that branch's OWN condition (`undefined` for a `dgm:else` entry, which
4870
+ * has none - deliberately kept PER-ENTRY rather than cross-referenced by
4871
+ * index against {@link chooseGuard}, whose own length can diverge from
4872
+ * this chain's whenever an ancestor `dgm:else` contributed a group
4873
+ * position but no guard).
4874
+ *
4875
+ * Lets a consumer recover ECMA-376's real `dgm:choose` semantics - "the
4876
+ * FIRST branch whose condition holds wins, siblings never coexist" -
4877
+ * from the flattened `.children` array, where that grouping would
4878
+ * otherwise be lost: `balance--hier5.pptx`'s `balance_NN`/`left_NN_M`/
4879
+ * `right_NN_M` family (127 members across ~30 NESTED `dgm:choose`
4880
+ * instances, not one flat 127-branch choose) needs first-match-wins
4881
+ * WITHIN each individual choose to resolve to the single genuinely-live
4882
+ * arrangement, not the "every guard-true node is an independent
4883
+ * candidate" reading `smartart-layout-interpreter-composite-choose.ts`'s
4884
+ * `collectRawCandidates` used before this field existed - see that
4885
+ * module's own consumer of this field for the actual selection rule.
4886
+ * `undefined` (or an empty array) for a node reached without any
4887
+ * enclosing choose (a direct child, or a `dgm:forEach`-only path) -
4888
+ * every PRE-EXISTING caller that does not consult this field is
4889
+ * unaffected by its mere presence.
4890
+ */
4891
+ chooseGroups?: {
4892
+ id: string;
4893
+ ordinal: number;
4894
+ guard?: PptxSmartArtWhen;
4895
+ }[];
4896
+ /**
4897
+ * Every `dgm:presOf` candidate reachable through a `dgm:choose`/`dgm:if`/
4898
+ * `dgm:else` wrapping THIS node's OWN presOf (as opposed to
4899
+ * {@link chooseGuard}, which gates the layoutNode's own EXISTENCE), each
4900
+ * tagged with the FULL chain of enclosing `dgm:if` conditions that select
4901
+ * it (`guard`, empty for an unconditional or `dgm:else`-reached
4902
+ * candidate), in document order (every `dgm:if` then `dgm:else` last).
4903
+ * `undefined` when this node's presOf is not choose-guarded at all (the
4904
+ * overwhelmingly common case) - {@link presentationOf} already carries
4905
+ * the one-and-only value then. Exists for a genuinely conditional presOf
4906
+ * where TWO OR MORE branches each declare a real, DIFFERENT axis
4907
+ * (`funnel--flat3.pptx`'s `item1`/`item2`/`item3`, one literal axis per
4908
+ * data-point count): `smartart-layout-definition-constraints.ts`'s
4909
+ * `choosePresentationOf` (feeding {@link presentationOf}) can only ever
4910
+ * guess ONE branch statically, at parse time, with no diagram to
4911
+ * evaluate against; this field lets an interpret-time caller with the
4912
+ * actual diagram (`smartart-layout-interpreter-when.ts`'s
4913
+ * `resolvePresentationOf`, the one consumer) pick the branch PowerPoint's
4914
+ * own runtime would, first-match-wins.
4915
+ */
4916
+ presentationOfCandidates?: {
4917
+ guard: PptxSmartArtWhen[];
4918
+ presentationOf: PptxSmartArtIteratorAttributes;
4919
+ }[];
4920
+ /**
4921
+ * SESSION 17: every `dgm:rule` reachable through a `dgm:choose`/`dgm:if`/
4922
+ * `dgm:else` wrapping THIS node's `ruleLst` (a genuinely count-gated rule
4923
+ * set, e.g. `diverging-radial`'s own `w for="ch" forName="node"` ceiling:
4924
+ * 6 `dgm:if cnt<=N` branches, each its own `fact`), tagged with its guard
4925
+ * chain - the SAME shape {@link presentationOfCandidates} uses for
4926
+ * choose-guarded `presOf`, applied to `dgm:rule`. `undefined` when not
4927
+ * choose-guarded (`rules` above then carries the one set, the common
4928
+ * case). See `smartart-layout-interpreter-cycle-hub-ratio.ts`'s
4929
+ * `resolveHubToNodeRatio` (COM-verified live mechanism, not a guess) for
4930
+ * how the guard is evaluated against the real satellite count.
4931
+ */
4932
+ ruleCandidates?: {
4933
+ guard: PptxSmartArtWhen[];
4934
+ rule: PptxSmartArtNumericRule;
4935
+ }[];
4855
4936
  }
4856
4937
  /** Metadata and root node from DiagramML CT_DiagramDefinition. */
4857
4938
  interface PptxSmartArtLayoutDefinition {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
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
- import { i as R } from "./translator-ysng3Lpf.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-Txp0tpwN.js";
2
+ import { i as R } from "./translator-DTR0k69d.js";
3
3
  import "./i18n.js";
4
4
  export {
5
5
  r as PPTX_OPEN_ACCEPT,