ooxml-ui 1.27.1 → 1.28.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.
Files changed (29) hide show
  1. package/dist/chart/format-pane-types.d.ts +1 -0
  2. package/dist/chart/format-pane-view.d.ts +1 -0
  3. package/dist/comments/mentions.d.ts +63 -0
  4. package/dist/comments/mentions.d.ts.map +1 -0
  5. package/dist/pptx/{chunk-VMDMICQC.cjs → chunk-34A7YWVZ.cjs} +292 -143
  6. package/dist/pptx/{chunk-TMCN2OVN.cjs → chunk-BYSLCSDL.cjs} +41 -41
  7. package/dist/pptx/{chunk-OD6REJDV.mjs → chunk-SJX7SFED.mjs} +1 -1
  8. package/dist/pptx/{chunk-XZX7EHX4.mjs → chunk-TOPXMCGQ.mjs} +287 -145
  9. package/dist/pptx/dom/index.cjs +381 -381
  10. package/dist/pptx/dom/index.mjs +4 -4
  11. package/dist/pptx/index.cjs +3030 -3002
  12. package/dist/pptx/index.mjs +1 -1
  13. package/dist/pptx/render/comment-mentions.d.ts +16 -1
  14. package/dist/pptx/render/comment-mentions.d.ts.map +1 -1
  15. package/dist/pptx/render/comments-list.d.ts +11 -7
  16. package/dist/pptx/render/comments-list.d.ts.map +1 -1
  17. package/dist/pptx/render/customization/customization-controller.d.ts +8 -0
  18. package/dist/pptx/render/customization/customization-controller.d.ts.map +1 -1
  19. package/dist/pptx/render/options/external-content-policy.d.ts +31 -0
  20. package/dist/pptx/render/options/external-content-policy.d.ts.map +1 -0
  21. package/dist/pptx/render/options/index.d.ts +1 -0
  22. package/dist/pptx/render/options/index.d.ts.map +1 -1
  23. package/dist/pptx/render/options/viewer-options-constraints.d.ts +15 -1
  24. package/dist/pptx/render/options/viewer-options-constraints.d.ts.map +1 -1
  25. package/dist/pptx/render/options/viewer-options-store.d.ts.map +1 -1
  26. package/dist/pptx/render/viewer-props-manifest.d.ts.map +1 -1
  27. package/dist/pptx/{smartart-insert-preview-MCDHVWHZ.cjs → smartart-insert-preview-OW6RXM7M.cjs} +3 -3
  28. package/dist/pptx/{smartart-insert-preview-QQH5ZBSF.mjs → smartart-insert-preview-RAWXO2RH.mjs} +2 -2
  29. package/package.json +2 -2
@@ -115,3 +115,4 @@ export interface ChartFormatPaneModel {
115
115
  /** The value a field change carries. */
116
116
  export type ChartFormatFieldValue = string | number | boolean | '';
117
117
  export {};
118
+ //# sourceMappingURL=format-pane-types.d.ts.map
@@ -209,3 +209,4 @@ export interface ChartFormatSource {
209
209
  /** Caption of the element picker (default "Chart Options"). */
210
210
  readonly picker?: ChartFormatText;
211
211
  }
212
+ //# sourceMappingURL=format-pane-view.d.ts.map
@@ -0,0 +1,63 @@
1
+ /** One mention: `length` characters of the text from `start`, the `@` included. */
2
+ export interface OfficeCommentMention {
3
+ start: number;
4
+ length: number;
5
+ /** The mentioned person's id in the product's people list. */
6
+ id?: string;
7
+ /** The mentioned person's display name. */
8
+ name?: string;
9
+ }
10
+ /** A person the typeahead offers. */
11
+ export interface OfficeMentionCandidate {
12
+ id: string;
13
+ name: string;
14
+ initials?: string;
15
+ }
16
+ /** One run of a comment's text: plain text or a mention. */
17
+ export interface OfficeCommentSegment {
18
+ kind: 'text' | 'mention';
19
+ text: string;
20
+ id?: string;
21
+ name?: string;
22
+ }
23
+ /**
24
+ * The text split into plain runs and mentions. Spans out of range, empty or overlapping an earlier
25
+ * one are ignored (the offsets can come from a file another program edited).
26
+ */
27
+ export declare function commentSegments(text: string, mentions?: readonly OfficeCommentMention[]): OfficeCommentSegment[];
28
+ /** The `@` token being typed: the text after the `@`, lower-cased, and where the `@` is. */
29
+ export interface OfficeMentionQuery {
30
+ query: string;
31
+ start: number;
32
+ }
33
+ /**
34
+ * The `@` token just left of `caret`, or `null`. The `@` must start the text or follow whitespace and
35
+ * the token holds no whitespace, so an e-mail address does not open the typeahead.
36
+ */
37
+ export declare function mentionQueryAt(text: string, caret: number): OfficeMentionQuery | null;
38
+ /** The candidates a query matches, best first: name prefixes, then names or initials containing it. */
39
+ export declare function matchMentionCandidates<C extends OfficeMentionCandidate>(candidates: readonly C[], query: string, limit?: number): C[];
40
+ /** The text, mentions and caret after a pick from the typeahead. */
41
+ export interface OfficeMentionInsertion {
42
+ text: string;
43
+ mentions: OfficeCommentMention[];
44
+ caret: number;
45
+ }
46
+ /**
47
+ * The `@` token at `caret` (or the caret itself) replaced by `@<name>` and a space, with the new span
48
+ * (the `@` included, as Office records it) and the spans after it shifted. A span the token overlaps
49
+ * (a pick made inside an existing mention) is dropped, so the text is never claimed twice.
50
+ */
51
+ export declare function insertMention(text: string, mentions: readonly OfficeCommentMention[] | undefined, caret: number, candidate: OfficeMentionCandidate): OfficeMentionInsertion;
52
+ /** What a box posts: its text without the surrounding whitespace, and the spans moved with it. */
53
+ export declare function trimMentionText(text: string, mentions: readonly OfficeCommentMention[] | undefined): {
54
+ text: string;
55
+ mentions: OfficeCommentMention[];
56
+ };
57
+ /**
58
+ * The spans after the text changed from `before` to `after` by one edit (typing, deleting or a
59
+ * paste): spans before the changed part stay, spans after it move by the length change, and a span
60
+ * the edit touches is dropped. The same array when the text did not change.
61
+ */
62
+ export declare function followTextEdit(before: string, after: string, mentions: readonly OfficeCommentMention[]): readonly OfficeCommentMention[];
63
+ //# sourceMappingURL=mentions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mentions.d.ts","sourceRoot":"","sources":["../../src/comments/mentions.ts"],"names":[],"mappings":"AAKA,mFAAmF;AACnF,MAAM,WAAW,oBAAoB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,qCAAqC;AACrC,MAAM,WAAW,sBAAsB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AA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