@pixerate/editor 0.47.0 → 0.48.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/agent/index.cjs +246 -29
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +18 -6
- package/dist/agent/index.d.ts +18 -6
- package/dist/agent/index.js +226 -9
- package/dist/agent/index.js.map +1 -1
- package/dist/{builtins-xs7rK6ys.d.cts → builtins-1kqwLUnb.d.cts} +1 -1
- package/dist/{builtins-D2nMtw2W.d.ts → builtins-BKYlHH1s.d.ts} +1 -1
- package/dist/chart/index.cjs +214 -3541
- package/dist/chart/index.cjs.map +1 -1
- package/dist/chart/index.d.cts +4 -494
- package/dist/chart/index.d.ts +4 -494
- package/dist/chart/index.js +135 -3462
- package/dist/chart/index.js.map +1 -1
- package/dist/{chunk-5VXI5GED.js → chunk-2CJ3LPYQ.js} +3 -3
- package/dist/{chunk-ZFBBVGCI.js → chunk-EKYHKQPG.js} +243 -243
- package/dist/{chunk-ZFBBVGCI.js.map → chunk-EKYHKQPG.js.map} +1 -1
- package/dist/chunk-HXUL3LS7.js +113 -0
- package/dist/chunk-HXUL3LS7.js.map +1 -0
- package/dist/{chunk-REAGGLXS.js → chunk-JQ3BB3E6.js} +2 -2
- package/dist/chunk-LTUM52X6.js +4074 -0
- package/dist/chunk-LTUM52X6.js.map +1 -0
- package/dist/{chunk-J3R2OWOE.cjs → chunk-MUCYWI6W.cjs} +608 -15
- package/dist/chunk-MUCYWI6W.cjs.map +1 -0
- package/dist/chunk-PIMCHMZE.cjs +521 -0
- package/dist/chunk-PIMCHMZE.cjs.map +1 -0
- package/dist/{chunk-TK2XZK6Z.js → chunk-PKBWLEL7.js} +594 -1
- package/dist/chunk-PKBWLEL7.js.map +1 -0
- package/dist/chunk-PRSJJZBS.cjs +4074 -0
- package/dist/chunk-PRSJJZBS.cjs.map +1 -0
- package/dist/chunk-U6IZKC7B.cjs +113 -0
- package/dist/chunk-U6IZKC7B.cjs.map +1 -0
- package/dist/{chunk-SQC26VQV.cjs → chunk-UN33YOXW.cjs} +191 -191
- package/dist/{chunk-SQC26VQV.cjs.map → chunk-UN33YOXW.cjs.map} +1 -1
- package/dist/{chunk-PQFAHT5O.js → chunk-VKPEPWKZ.js} +27 -94
- package/dist/chunk-VKPEPWKZ.js.map +1 -0
- package/dist/{chunk-H4PICYNL.cjs → chunk-WXEHCVJQ.cjs} +113 -180
- package/dist/chunk-WXEHCVJQ.cjs.map +1 -0
- package/dist/{chunk-LYGEEDNR.cjs → chunk-XP5IUZUO.cjs} +242 -242
- package/dist/chunk-XP5IUZUO.cjs.map +1 -0
- package/dist/{chunk-C3NWJE3K.js → chunk-XUUD43OV.js} +11 -672
- package/dist/chunk-XUUD43OV.js.map +1 -0
- package/dist/{chunk-BBRK6MOI.cjs → chunk-YU4WQE5M.cjs} +100 -100
- package/dist/{chunk-BBRK6MOI.cjs.map → chunk-YU4WQE5M.cjs.map} +1 -1
- package/dist/commands/index.d.cts +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/controller-ChjCCMLl.d.cts +822 -0
- package/dist/controller-DtbEo3om.d.ts +822 -0
- package/dist/extensions/index.cjs +32 -4
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +4 -2
- package/dist/extensions/index.d.ts +4 -2
- package/dist/extensions/index.js +31 -3
- package/dist/{index-QrqMmZ75.d.cts → index-DoHqT1mq.d.cts} +203 -7
- package/dist/{index-CSUCQYAH.d.ts → index-YLZ0fKqE.d.ts} +203 -7
- package/dist/index.cjs +37 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +31 -6
- package/dist/index.js.map +1 -1
- package/dist/spreadsheet/index.cjs +4 -4
- package/dist/spreadsheet/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-C3NWJE3K.js.map +0 -1
- package/dist/chunk-H4PICYNL.cjs.map +0 -1
- package/dist/chunk-J3R2OWOE.cjs.map +0 -1
- package/dist/chunk-LYGEEDNR.cjs.map +0 -1
- package/dist/chunk-NEOO6QJD.cjs +0 -1182
- package/dist/chunk-NEOO6QJD.cjs.map +0 -1
- package/dist/chunk-PQFAHT5O.js.map +0 -1
- package/dist/chunk-TK2XZK6Z.js.map +0 -1
- package/dist/types-BVqWm3d1.d.cts +0 -320
- package/dist/types-BVqWm3d1.d.ts +0 -320
- /package/dist/{chunk-5VXI5GED.js.map → chunk-2CJ3LPYQ.js.map} +0 -0
- /package/dist/{chunk-REAGGLXS.js.map → chunk-JQ3BB3E6.js.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Mark, Extension, Node, Editor, Extensions } from '@tiptap/core';
|
|
1
|
+
import { Mark, Extension, Node, Editor, Extensions, NodeViewRendererProps } from '@tiptap/core';
|
|
2
2
|
import { C as ColorGradient, T as Template } from './tokens-D7yXvUU6.cjs';
|
|
3
3
|
import { EditorState, PluginKey, Transaction, Plugin } from '@tiptap/pm/state';
|
|
4
|
-
import { DecorationSet, EditorView } from '@tiptap/pm/view';
|
|
5
|
-
import { Node as Node$1, Slice, ResolvedPos, Fragment } from '@tiptap/pm/model';
|
|
4
|
+
import { DecorationSet, EditorView, NodeView } from '@tiptap/pm/view';
|
|
5
|
+
import { Node as Node$1, DOMOutputSpec, Slice, ResolvedPos, Fragment } from '@tiptap/pm/model';
|
|
6
6
|
import * as _tiptap_extension_table_cell from '@tiptap/extension-table-cell';
|
|
7
7
|
import * as _tiptap_extension_table_header from '@tiptap/extension-table-header';
|
|
8
8
|
import * as _tiptap_extension_table_row from '@tiptap/extension-table-row';
|
|
@@ -20,7 +20,7 @@ import * as _tiptap_starter_kit from '@tiptap/starter-kit';
|
|
|
20
20
|
import { f as MentionOptions, h as TrackChangesOptions } from './track-changes-D_VAPELi.cjs';
|
|
21
21
|
import { MarkdownOptions } from 'tiptap-markdown';
|
|
22
22
|
import { R as ReviewAuthor, b as CommentStore, C as CommentAnchor, S as SerializedComments } from './comment-store-BEMgVlAA.cjs';
|
|
23
|
-
import {
|
|
23
|
+
import { d as ChartSpec, m as ChartController, a3 as ChartTheme, I as ChartDomSpec, X as ChartSparklineKind, a as ChartValue } from './controller-ChjCCMLl.cjs';
|
|
24
24
|
import { e as StyleRegistry, c as StyleDefinition, P as ParagraphFormat, C as CharacterFormat } from './registry-CED5C0lA.cjs';
|
|
25
25
|
import { b as ImportAdapter, I as ImportAdapterRegistry, c as FindImportAdapterQuery, i as ImportTarget, h as ImportInput, g as ImportFileOptions, a as ImportOutcome, R as RegisterImportAdapterOptions, F as FileLike } from './registry-CEgwXED1.cjs';
|
|
26
26
|
import { b as CompareSource, C as CompareDocumentsOptions, a as CompareDocumentsResult } from './documents-Gp7wb0Me.cjs';
|
|
@@ -524,8 +524,9 @@ interface DocumentImport {
|
|
|
524
524
|
/** Paragraph and character styles the file defines; set by the DOCX adapter. */
|
|
525
525
|
styles?: StyleRegistry;
|
|
526
526
|
/**
|
|
527
|
-
* Charts embedded in the file (DOCX), in document order. The HTML
|
|
528
|
-
*
|
|
527
|
+
* Charts embedded in the file (DOCX), in document order. The HTML holds each as a
|
|
528
|
+
* `<div data-type="chart">`: a `chart` node when the schema has one, otherwise a caption and
|
|
529
|
+
* a table of its data.
|
|
529
530
|
*/
|
|
530
531
|
charts?: ImportedChart[];
|
|
531
532
|
}
|
|
@@ -1510,6 +1511,192 @@ declare const TableHeader: any;
|
|
|
1510
1511
|
*/
|
|
1511
1512
|
declare function createTableExtensions(options?: Partial<RichTextTableOptions>): Extensions;
|
|
1512
1513
|
|
|
1514
|
+
/** What a framework chart node view draws. A new object is passed on every change. */
|
|
1515
|
+
interface ChartNodeViewState {
|
|
1516
|
+
/** The chart's id in the document. */
|
|
1517
|
+
id: string | null;
|
|
1518
|
+
/** Edits the chart: changes are written back to the document when no gesture is running. */
|
|
1519
|
+
controller: ChartController;
|
|
1520
|
+
/** Width in pixels, or null to fill the line. */
|
|
1521
|
+
width: number | null;
|
|
1522
|
+
/** Height in pixels. */
|
|
1523
|
+
height: number;
|
|
1524
|
+
/** The editor is editable (a read-only editor never opens the inspector). */
|
|
1525
|
+
editable: boolean;
|
|
1526
|
+
/** The node is selected. */
|
|
1527
|
+
selected: boolean;
|
|
1528
|
+
/** The inspector is open. */
|
|
1529
|
+
editing: boolean;
|
|
1530
|
+
/** Opens (selecting the node) or closes the inspector. Ignored while the editor is read-only. */
|
|
1531
|
+
setEditing: (editing: boolean) => void;
|
|
1532
|
+
/** Changes the chart's size (one undo step). */
|
|
1533
|
+
setSize: (size: {
|
|
1534
|
+
width?: number | null;
|
|
1535
|
+
height?: number;
|
|
1536
|
+
}) => void;
|
|
1537
|
+
}
|
|
1538
|
+
/** A mounted framework component. */
|
|
1539
|
+
interface ChartNodeViewRenderer {
|
|
1540
|
+
update(state: ChartNodeViewState): void;
|
|
1541
|
+
destroy(): void;
|
|
1542
|
+
}
|
|
1543
|
+
/** Mounts a framework component into a chart node view's element. */
|
|
1544
|
+
type ChartNodeViewMount = (dom: HTMLElement, state: ChartNodeViewState) => ChartNodeViewRenderer;
|
|
1545
|
+
/**
|
|
1546
|
+
* The ProseMirror side of a chart node view, shared by the React and Svelte packages: it
|
|
1547
|
+
* keeps a `ChartController` in step with the node (undo, collaboration and agent edits load
|
|
1548
|
+
* into it), writes the controller's edits back as document transactions once any gesture
|
|
1549
|
+
* has ended, and lets the inspector's inputs keep their events while it is open.
|
|
1550
|
+
*/
|
|
1551
|
+
declare class ChartNodeView implements NodeView {
|
|
1552
|
+
private readonly renderStatic;
|
|
1553
|
+
readonly dom: HTMLElement;
|
|
1554
|
+
private node;
|
|
1555
|
+
private readonly editor;
|
|
1556
|
+
private readonly getPos;
|
|
1557
|
+
private readonly controller;
|
|
1558
|
+
private readonly renderer;
|
|
1559
|
+
private readonly unsubscribe;
|
|
1560
|
+
private editing;
|
|
1561
|
+
private selected;
|
|
1562
|
+
private editable;
|
|
1563
|
+
private key;
|
|
1564
|
+
constructor(props: Pick<NodeViewRendererProps, "editor" | "node" | "getPos">, mount: ChartNodeViewMount | null, renderStatic: (node: Node$1) => DOMOutputSpec);
|
|
1565
|
+
private viewState;
|
|
1566
|
+
private render;
|
|
1567
|
+
private drawStatic;
|
|
1568
|
+
private syncAttributes;
|
|
1569
|
+
private onEditorUpdate;
|
|
1570
|
+
/** Writes the controller's spec into the node, if it changed. */
|
|
1571
|
+
private writeBack;
|
|
1572
|
+
setEditing: (editing: boolean) => void;
|
|
1573
|
+
setSize: (size: {
|
|
1574
|
+
width?: number | null;
|
|
1575
|
+
height?: number;
|
|
1576
|
+
}) => void;
|
|
1577
|
+
update(node: Node$1): boolean;
|
|
1578
|
+
selectNode(): void;
|
|
1579
|
+
deselectNode(): void;
|
|
1580
|
+
/** The inspector's inputs, buttons and chart gestures keep their events while it is open. */
|
|
1581
|
+
stopEvent(event: Event): boolean;
|
|
1582
|
+
ignoreMutation(): boolean;
|
|
1583
|
+
destroy(): void;
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* A TipTap node view factory for the `chart` node. `mount` draws the framework component
|
|
1587
|
+
* (`null`: the static SVG, redrawn when the spec changes).
|
|
1588
|
+
*/
|
|
1589
|
+
declare function createChartNodeView(mount: ChartNodeViewMount | null, renderStatic: (node: Node$1) => DOMOutputSpec): (props: NodeViewRendererProps) => NodeView;
|
|
1590
|
+
|
|
1591
|
+
interface ChartNodeOptions {
|
|
1592
|
+
HTMLAttributes: Record<string, any>;
|
|
1593
|
+
/**
|
|
1594
|
+
* Draws the chart inside the editor with a framework component (the React and Svelte
|
|
1595
|
+
* packages export one). Without it the editor shows the static SVG from `renderHTML`.
|
|
1596
|
+
*/
|
|
1597
|
+
nodeView: ChartNodeViewMount | null;
|
|
1598
|
+
/** Colours of the static SVG in exported HTML (default `DEFAULT_CHART_THEME`). */
|
|
1599
|
+
theme: Partial<ChartTheme>;
|
|
1600
|
+
/** Width of the static SVG when the node has no `width` (default 640). */
|
|
1601
|
+
defaultWidth: number;
|
|
1602
|
+
/** Height of new charts in pixels (default 320). */
|
|
1603
|
+
defaultHeight: number;
|
|
1604
|
+
/** Generates ids for charts that have none (default `chart-xxxxxxxx`). */
|
|
1605
|
+
generateId: () => string;
|
|
1606
|
+
}
|
|
1607
|
+
interface InsertChartOptions {
|
|
1608
|
+
/** Any partial or saved chart spec; it is normalized (see `normalizeChartSpec`). */
|
|
1609
|
+
spec: Partial<ChartSpec> | unknown;
|
|
1610
|
+
/** Width in pixels, or null to fill the line (default null). */
|
|
1611
|
+
width?: number | null;
|
|
1612
|
+
/** Height in pixels (default `defaultHeight`). */
|
|
1613
|
+
height?: number;
|
|
1614
|
+
/** Id to use (default: generated). */
|
|
1615
|
+
id?: string;
|
|
1616
|
+
}
|
|
1617
|
+
declare module "@tiptap/core" {
|
|
1618
|
+
interface Commands<ReturnType> {
|
|
1619
|
+
chart: {
|
|
1620
|
+
/** Inserts a chart block at the selection. */
|
|
1621
|
+
insertChart: (options: InsertChartOptions) => ReturnType;
|
|
1622
|
+
/** Replaces the spec (and optionally the size) of the chart with this id. */
|
|
1623
|
+
updateChart: (id: string, changes: {
|
|
1624
|
+
spec?: Partial<ChartSpec> | unknown;
|
|
1625
|
+
width?: number | null;
|
|
1626
|
+
height?: number;
|
|
1627
|
+
}) => ReturnType;
|
|
1628
|
+
};
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
declare const chartPluginKey: PluginKey<any>;
|
|
1632
|
+
/** A chart in a document: its node, id and position. */
|
|
1633
|
+
interface DocumentChart {
|
|
1634
|
+
id: string | null;
|
|
1635
|
+
pos: number;
|
|
1636
|
+
node: Node$1;
|
|
1637
|
+
spec: ChartSpec;
|
|
1638
|
+
}
|
|
1639
|
+
/** Every chart node in a document, in order. */
|
|
1640
|
+
declare function getDocumentCharts(doc: Node$1, typeName?: string): DocumentChart[];
|
|
1641
|
+
/** Whether the editor's schema has the chart node (`createRichTextPreset({ chart: true })`). */
|
|
1642
|
+
declare function isChartEnabled(editor: Pick<Editor, "schema"> | null | undefined): boolean;
|
|
1643
|
+
/** The static SVG of a chart node, as a `DOMOutputSpec`. */
|
|
1644
|
+
declare function staticChartSvg(node: Node$1, options: Pick<ChartNodeOptions, "theme" | "defaultWidth" | "defaultHeight">): ChartDomSpec;
|
|
1645
|
+
/**
|
|
1646
|
+
* A chart block. Stores a `ChartSpec` as its `spec` attribute (JSON in `data-chart`) with
|
|
1647
|
+
* an id, an optional width and a height.
|
|
1648
|
+
*
|
|
1649
|
+
* - **HTML**: `<div data-type="chart" data-chart="{…}">` holding a static SVG drawn with
|
|
1650
|
+
* `chartSceneToDomSpec`, so exported HTML shows the chart without script.
|
|
1651
|
+
* - **Markdown**: a ` ```mermaid ` block written with `chartToMermaid` (its `%% @pixerate`
|
|
1652
|
+
* line keeps everything Mermaid cannot hold); `xychart-beta`, `pie` and `radar-beta`
|
|
1653
|
+
* blocks parse back into charts. Other Mermaid diagrams stay code blocks.
|
|
1654
|
+
* - **In the editor**: pass a `nodeView` (React and Svelte export one) for a live chart that
|
|
1655
|
+
* opens the chart inspector on click; without one the static SVG is shown.
|
|
1656
|
+
*/
|
|
1657
|
+
declare const Chart: Node<ChartNodeOptions, any>;
|
|
1658
|
+
|
|
1659
|
+
declare const SPARKLINE_KINDS: readonly ChartSparklineKind[];
|
|
1660
|
+
/** Most values a sparkline node keeps. */
|
|
1661
|
+
declare const MAX_SPARKLINE_VALUES = 1000;
|
|
1662
|
+
interface SparklineNodeOptions {
|
|
1663
|
+
HTMLAttributes: Record<string, any>;
|
|
1664
|
+
/** Line, positive column and win colour (default the first palette colour). */
|
|
1665
|
+
color: string;
|
|
1666
|
+
/** Negative column and loss colour. */
|
|
1667
|
+
negativeColor: string;
|
|
1668
|
+
}
|
|
1669
|
+
interface InsertSparklineOptions {
|
|
1670
|
+
values: readonly (number | null)[];
|
|
1671
|
+
kind?: ChartSparklineKind;
|
|
1672
|
+
/** Width in pixels (default 80). */
|
|
1673
|
+
width?: number;
|
|
1674
|
+
/** Height in pixels (default 18). */
|
|
1675
|
+
height?: number;
|
|
1676
|
+
/** CSS colour (default: the extension's `color`). */
|
|
1677
|
+
color?: string | null;
|
|
1678
|
+
/** Accessible label (default: first and last value). */
|
|
1679
|
+
label?: string | null;
|
|
1680
|
+
}
|
|
1681
|
+
declare module "@tiptap/core" {
|
|
1682
|
+
interface Commands<ReturnType> {
|
|
1683
|
+
sparkline: {
|
|
1684
|
+
/** Inserts a word-sized chart at the selection. */
|
|
1685
|
+
insertSparkline: (options: InsertSparklineOptions) => ReturnType;
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
/** Cleans sparkline values: finite numbers or null, at most `MAX_SPARKLINE_VALUES`. */
|
|
1690
|
+
declare function normalizeSparklineValues(values: unknown): ChartValue[];
|
|
1691
|
+
/** The accessible label of a sparkline node. */
|
|
1692
|
+
declare function sparklineLabel(node: Node$1): string;
|
|
1693
|
+
/**
|
|
1694
|
+
* An inline, word-sized chart (`line`, `column` or `win-loss`) drawn as SVG in the text.
|
|
1695
|
+
* HTML: `<span data-type="sparkline" data-values="[…]" data-kind="line">`; markdown keeps the
|
|
1696
|
+
* same span (the markdown sanitizer allows `span` with `data-*` attributes).
|
|
1697
|
+
*/
|
|
1698
|
+
declare const Sparkline: Node<SparklineNodeOptions, any>;
|
|
1699
|
+
|
|
1513
1700
|
/**
|
|
1514
1701
|
* The TipTap packages whose commands the preset installs. Exported only so the
|
|
1515
1702
|
* published declarations import them: each package augments `@tiptap/core`'s
|
|
@@ -1584,6 +1771,15 @@ interface RichTextPresetOptions {
|
|
|
1584
1771
|
* imported tables are flattened into paragraphs as before.
|
|
1585
1772
|
*/
|
|
1586
1773
|
table?: Partial<RichTextTableOptions> | boolean;
|
|
1774
|
+
/**
|
|
1775
|
+
* Live chart blocks (`chart`, storing a `ChartSpec`) and inline sparklines
|
|
1776
|
+
* (`sparkline`). Off by default. Pass `{ nodeView }` from the React or Svelte
|
|
1777
|
+
* package to edit charts in place; DOCX imports then insert real charts
|
|
1778
|
+
* instead of a caption and a data table.
|
|
1779
|
+
*/
|
|
1780
|
+
chart?: (Partial<ChartNodeOptions> & {
|
|
1781
|
+
sparkline?: Partial<SparklineNodeOptions> | boolean;
|
|
1782
|
+
}) | boolean;
|
|
1587
1783
|
}
|
|
1588
1784
|
/**
|
|
1589
1785
|
* Creates a standard rich-text extensions bundle with full formatting support.
|
|
@@ -1825,4 +2021,4 @@ declare function unnestTables(tr: Transaction, ranges: [number, number][]): bool
|
|
|
1825
2021
|
*/
|
|
1826
2022
|
declare function createTableNestingPlugin(): Plugin;
|
|
1827
2023
|
|
|
1828
|
-
export { type
|
|
2024
|
+
export { type EditorCompareOptions as $, ALLOW_NESTED_TABLES_META as A, BUILT_IN_IMPORT_ADAPTERS as B, CHARACTER_STYLE_MARK_NAME as C, type DocumentImport as D, type CommentsStorage as E, type CompileFindPatternResult as F, type CompiledFindPattern as G, type CreateImportAdapterRegistryOptions as H, type CreateStyleFromSelectionOptions as I, CrossReference as J, type CrossReferenceOptions as K, type CrossReferenceTarget as L, type CrossReferenceTargetType as M, DEFAULT_AUTOCORRECT_EXCEPTIONS as N, DEFAULT_TABLE_OPTIONS as O, type PdfStructureReport as P, DEFAULT_TABLE_TOOLBAR as Q, type DocumentChart as R, DocumentCompare as S, type DocumentCompareOptions as T, type DocumentCompareStorage as U, type DocumentSearchOptions as V, type DocumentSearchResult as W, type DocumentStructureCommandArgs as X, type DocumentStructureCommandItem as Y, EMPTY_FIND_REPLACE_SNAPSHOT as Z, EMPTY_TABLE_STATE as _, type DocumentImportAdapter as a, type RichClipboardStorage as a$, FIND_OPTION_TOGGLES as a0, FIND_PARAGRAPH_MARK as a1, FileImport as a2, type FileImportOptions as a3, type FindAllOptions as a4, type FindAllResult as a5, type FindMatch as a6, type FindOptionToggle as a7, type FindOptions as a8, type FindPatternError as a9, LoadingNode as aA, MAX_FIND_PATTERN_LENGTH as aB, MAX_SPARKLINE_VALUES as aC, MAX_TABLE_COLUMNS as aD, MAX_TABLE_ROWS as aE, Markdown as aF, type OpenFindReplaceParams as aG, Outline as aH, type OutlineHeading as aI, type OutlineOptions as aJ, type OutlineSnapshot as aK, type OutlineStorage as aL, type OutlineStore as aM, type OutlineTreeItem as aN, ParagraphStyles as aO, type ParagraphStylesOptions as aP, type ParagraphStylesSnapshot as aQ, type ParagraphStylesStorage as aR, type ParagraphStylesStore as aS, type PatternMatch as aT, type PdfLayoutBlock as aU, type PdfLayoutPage as aV, type PdfLayoutResult as aW, type PdfTableCell as aX, type ReplacePiece as aY, RichClipboard as aZ, type RichClipboardOptions as a_, type FindPatternErrorCode as aa, FindReplace as ab, type FindReplaceCommandOptions as ac, type FindReplaceMode as ad, type FindReplaceOptions as ae, type FindReplaceSnapshot as af, type FindReplaceStorage as ag, FindReplaceStore as ah, type FocusHeadingOptions as ai, FontSize as aj, Footnote as ak, type FootnoteInfo as al, FootnoteReference as am, Footnotes as an, type FootnotesOptions as ao, GradientText as ap, type GradientTextOptions as aq, Image as ar, type ImageOptions as as, type ImportStructureItem as at, type ImportStructureReport as au, type ImportedChart as av, type InsertChartOptions as aw, type InsertFootnoteOptions as ax, type InsertSparklineOptions as ay, type InsertTableOfContentsOptions as az, type PdfLayoutOptions as b, expandReplacement as b$, type RichTextPresetCommandPackages as b0, type RichTextPresetOptions as b1, type RichTextTableOptions as b2, type RunTableActionOptions as b3, SMILIE_REPLACEMENTS as b4, SPARKLINE_KINDS as b5, STYLE_ID_ATTRIBUTE as b6, type SearchBudget as b7, type SearchBudgetOptions as b8, type SetBookmarkOptions as b9, analyzePdfLayout as bA, applyDocumentComparison as bB, applyReplacements as bC, autocorrectPluginKey as bD, buildOutlineTree as bE, capitalizeSentenceRules as bF, captureSelectionFormat as bG, chartPluginKey as bH, commentsPluginKey as bI, compareInEditor as bJ, compileFindPattern as bK, computeOutline as bL, createChartNodeView as bM, createFindReplaceCommands as bN, createImportAdapterRegistry as bO, createOutlineStore as bP, createParagraphStylesStore as bQ, createRichTextPreset as bR, createSearchBudget as bS, createTableCommands as bT, createTableExtensions as bU, createTableNestingPlugin as bV, createTableStore as bW, crossReferencePluginKey as bX, defaultAutocorrectRules as bY, defaultImportRegistry as bZ, documentStructureCommandItems as b_, type SetSearchParams as ba, type SlashCommandMatchData as bb, SlashCommands as bc, type SlashCommandsOptions as bd, SmilieReplacer as be, Sparkline as bf, type SparklineNodeOptions as bg, TABLE_ACTIONS as bh, Table as bi, type TableAction as bj, type TableActionInfo as bk, type TableActionParams as bl, type TableActionStatus as bm, TableCell as bn, type TableCellAlignment as bo, type TableCommandOptions as bp, TableHeader as bq, TableOfContents as br, type TableOfContentsEntry as bs, type TableOfContentsOptions as bt, TableRow as bu, type TableState as bv, type TableStore as bw, type TableToolbarItem as bx, TemplateSuggestions as by, type TemplateSuggestionsOptions as bz, type PdfRuleLine as c, sliceContainsTable as c$, fileImportPluginKey as c0, findAllMatches as c1, findAutocorrection as c2, findCommentRanges as c3, findHexColors as c4, findImportAdapter as c5, findReplacePluginKey as c6, foldCodePoint as c7, footnotesMarkdownIt as c8, footnotesPluginKey as c9, insertImageNode as cA, insertSliceAfterTable as cB, isChartEnabled as cC, isGfmTable as cD, isInTableCell as cE, isInsidePromptToken as cF, isParagraphStyleAvailable as cG, isSelectionInTable as cH, isTableEnabled as cI, markdownImportAdapter as cJ, navigateToHeading as cK, normalizeSparklineValues as cL, normalizeTableCellAlignment as cM, normalizeTableCellColor as cN, outermostTableDepth as cO, outlinePluginKey as cP, paragraphStylesPluginKey as cQ, parseReplacement as cR, pdfLayoutBlocksToHtml as cS, plainTextImportAdapter as cT, registerImportAdapter as cU, removeImageNode as cV, richClipboardPluginKey as cW, rtfImportAdapter as cX, runTableAction as cY, searchDocument as cZ, shouldShowTableBubbleMenu as c_, formatFindStatus as ca, fractionRules as cb, getActiveHeading as cc, getBookmarks as cd, getCommentAnchors as ce, getCommentAuthor as cf, getCommentIdsAt as cg, getCommentStore as ch, getCrossReferenceTargets as ci, getDocumentCharts as cj, getDocumentStructureCommandItems as ck, getFindReplaceState as cl, getFindReplaceStore as cm, getFootnotes as cn, getImportAccept as co, getOutline as cp, getParagraphStyleAt as cq, getStyleRegistry as cr, getTableActionState as cs, getTableOfContentsEntries as ct, getTableState as cu, handleImageInsertion as cv, handleTablePasteWithoutNesting as cw, htmlImportAdapter as cx, imagePastePluginKey as cy, importFile as cz, type PdfTextRun as d, smartQuoteRules as d0, smilieAutocorrectRules as d1, sparklineLabel as d2, staticChartSvg as d3, symbolRules as d4, syncFootnotes as d5, tableNestingPluginKey as d6, tableOfContentsMarkdownIt as d7, tableOfContentsPluginKey as d8, twoInitialCapitalsRules as d9, unnestTables as da, unregisterImportAdapter as db, updateImageSrc as dc, validateFindPattern as dd, writeRichClipboard as de, type AddCommentOptions as e, Autocorrect as f, type AutocorrectContext as g, type AutocorrectCorrection as h, type AutocorrectOptions as i, type AutocorrectRule as j, type AutocorrectStorage as k, Bookmark as l, type BookmarkInfo as m, type BookmarkOptions as n, COMMENT_MARK_NAME as o, CharacterStyle as p, Chart as q, type ChartNodeOptions as r, ChartNodeView as s, type ChartNodeViewMount as t, type ChartNodeViewRenderer as u, type ChartNodeViewState as v, ColorHighlighter as w, type CommentRange as x, Comments as y, type CommentsOptions as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Mark, Extension, Node, Editor, Extensions } from '@tiptap/core';
|
|
1
|
+
import { Mark, Extension, Node, Editor, Extensions, NodeViewRendererProps } from '@tiptap/core';
|
|
2
2
|
import { C as ColorGradient, T as Template } from './tokens-D7yXvUU6.js';
|
|
3
3
|
import { EditorState, PluginKey, Transaction, Plugin } from '@tiptap/pm/state';
|
|
4
|
-
import { DecorationSet, EditorView } from '@tiptap/pm/view';
|
|
5
|
-
import { Node as Node$1, Slice, ResolvedPos, Fragment } from '@tiptap/pm/model';
|
|
4
|
+
import { DecorationSet, EditorView, NodeView } from '@tiptap/pm/view';
|
|
5
|
+
import { Node as Node$1, DOMOutputSpec, Slice, ResolvedPos, Fragment } from '@tiptap/pm/model';
|
|
6
6
|
import * as _tiptap_extension_table_cell from '@tiptap/extension-table-cell';
|
|
7
7
|
import * as _tiptap_extension_table_header from '@tiptap/extension-table-header';
|
|
8
8
|
import * as _tiptap_extension_table_row from '@tiptap/extension-table-row';
|
|
@@ -20,7 +20,7 @@ import * as _tiptap_starter_kit from '@tiptap/starter-kit';
|
|
|
20
20
|
import { f as MentionOptions, h as TrackChangesOptions } from './track-changes-Db_fGEvx.js';
|
|
21
21
|
import { MarkdownOptions } from 'tiptap-markdown';
|
|
22
22
|
import { R as ReviewAuthor, b as CommentStore, C as CommentAnchor, S as SerializedComments } from './comment-store-BEMgVlAA.js';
|
|
23
|
-
import {
|
|
23
|
+
import { d as ChartSpec, m as ChartController, a3 as ChartTheme, I as ChartDomSpec, X as ChartSparklineKind, a as ChartValue } from './controller-DtbEo3om.js';
|
|
24
24
|
import { e as StyleRegistry, c as StyleDefinition, P as ParagraphFormat, C as CharacterFormat } from './registry-CED5C0lA.js';
|
|
25
25
|
import { b as ImportAdapter, I as ImportAdapterRegistry, c as FindImportAdapterQuery, i as ImportTarget, h as ImportInput, g as ImportFileOptions, a as ImportOutcome, R as RegisterImportAdapterOptions, F as FileLike } from './registry-CEgwXED1.js';
|
|
26
26
|
import { b as CompareSource, C as CompareDocumentsOptions, a as CompareDocumentsResult } from './documents-CHT1U5Vs.js';
|
|
@@ -524,8 +524,9 @@ interface DocumentImport {
|
|
|
524
524
|
/** Paragraph and character styles the file defines; set by the DOCX adapter. */
|
|
525
525
|
styles?: StyleRegistry;
|
|
526
526
|
/**
|
|
527
|
-
* Charts embedded in the file (DOCX), in document order. The HTML
|
|
528
|
-
*
|
|
527
|
+
* Charts embedded in the file (DOCX), in document order. The HTML holds each as a
|
|
528
|
+
* `<div data-type="chart">`: a `chart` node when the schema has one, otherwise a caption and
|
|
529
|
+
* a table of its data.
|
|
529
530
|
*/
|
|
530
531
|
charts?: ImportedChart[];
|
|
531
532
|
}
|
|
@@ -1510,6 +1511,192 @@ declare const TableHeader: any;
|
|
|
1510
1511
|
*/
|
|
1511
1512
|
declare function createTableExtensions(options?: Partial<RichTextTableOptions>): Extensions;
|
|
1512
1513
|
|
|
1514
|
+
/** What a framework chart node view draws. A new object is passed on every change. */
|
|
1515
|
+
interface ChartNodeViewState {
|
|
1516
|
+
/** The chart's id in the document. */
|
|
1517
|
+
id: string | null;
|
|
1518
|
+
/** Edits the chart: changes are written back to the document when no gesture is running. */
|
|
1519
|
+
controller: ChartController;
|
|
1520
|
+
/** Width in pixels, or null to fill the line. */
|
|
1521
|
+
width: number | null;
|
|
1522
|
+
/** Height in pixels. */
|
|
1523
|
+
height: number;
|
|
1524
|
+
/** The editor is editable (a read-only editor never opens the inspector). */
|
|
1525
|
+
editable: boolean;
|
|
1526
|
+
/** The node is selected. */
|
|
1527
|
+
selected: boolean;
|
|
1528
|
+
/** The inspector is open. */
|
|
1529
|
+
editing: boolean;
|
|
1530
|
+
/** Opens (selecting the node) or closes the inspector. Ignored while the editor is read-only. */
|
|
1531
|
+
setEditing: (editing: boolean) => void;
|
|
1532
|
+
/** Changes the chart's size (one undo step). */
|
|
1533
|
+
setSize: (size: {
|
|
1534
|
+
width?: number | null;
|
|
1535
|
+
height?: number;
|
|
1536
|
+
}) => void;
|
|
1537
|
+
}
|
|
1538
|
+
/** A mounted framework component. */
|
|
1539
|
+
interface ChartNodeViewRenderer {
|
|
1540
|
+
update(state: ChartNodeViewState): void;
|
|
1541
|
+
destroy(): void;
|
|
1542
|
+
}
|
|
1543
|
+
/** Mounts a framework component into a chart node view's element. */
|
|
1544
|
+
type ChartNodeViewMount = (dom: HTMLElement, state: ChartNodeViewState) => ChartNodeViewRenderer;
|
|
1545
|
+
/**
|
|
1546
|
+
* The ProseMirror side of a chart node view, shared by the React and Svelte packages: it
|
|
1547
|
+
* keeps a `ChartController` in step with the node (undo, collaboration and agent edits load
|
|
1548
|
+
* into it), writes the controller's edits back as document transactions once any gesture
|
|
1549
|
+
* has ended, and lets the inspector's inputs keep their events while it is open.
|
|
1550
|
+
*/
|
|
1551
|
+
declare class ChartNodeView implements NodeView {
|
|
1552
|
+
private readonly renderStatic;
|
|
1553
|
+
readonly dom: HTMLElement;
|
|
1554
|
+
private node;
|
|
1555
|
+
private readonly editor;
|
|
1556
|
+
private readonly getPos;
|
|
1557
|
+
private readonly controller;
|
|
1558
|
+
private readonly renderer;
|
|
1559
|
+
private readonly unsubscribe;
|
|
1560
|
+
private editing;
|
|
1561
|
+
private selected;
|
|
1562
|
+
private editable;
|
|
1563
|
+
private key;
|
|
1564
|
+
constructor(props: Pick<NodeViewRendererProps, "editor" | "node" | "getPos">, mount: ChartNodeViewMount | null, renderStatic: (node: Node$1) => DOMOutputSpec);
|
|
1565
|
+
private viewState;
|
|
1566
|
+
private render;
|
|
1567
|
+
private drawStatic;
|
|
1568
|
+
private syncAttributes;
|
|
1569
|
+
private onEditorUpdate;
|
|
1570
|
+
/** Writes the controller's spec into the node, if it changed. */
|
|
1571
|
+
private writeBack;
|
|
1572
|
+
setEditing: (editing: boolean) => void;
|
|
1573
|
+
setSize: (size: {
|
|
1574
|
+
width?: number | null;
|
|
1575
|
+
height?: number;
|
|
1576
|
+
}) => void;
|
|
1577
|
+
update(node: Node$1): boolean;
|
|
1578
|
+
selectNode(): void;
|
|
1579
|
+
deselectNode(): void;
|
|
1580
|
+
/** The inspector's inputs, buttons and chart gestures keep their events while it is open. */
|
|
1581
|
+
stopEvent(event: Event): boolean;
|
|
1582
|
+
ignoreMutation(): boolean;
|
|
1583
|
+
destroy(): void;
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* A TipTap node view factory for the `chart` node. `mount` draws the framework component
|
|
1587
|
+
* (`null`: the static SVG, redrawn when the spec changes).
|
|
1588
|
+
*/
|
|
1589
|
+
declare function createChartNodeView(mount: ChartNodeViewMount | null, renderStatic: (node: Node$1) => DOMOutputSpec): (props: NodeViewRendererProps) => NodeView;
|
|
1590
|
+
|
|
1591
|
+
interface ChartNodeOptions {
|
|
1592
|
+
HTMLAttributes: Record<string, any>;
|
|
1593
|
+
/**
|
|
1594
|
+
* Draws the chart inside the editor with a framework component (the React and Svelte
|
|
1595
|
+
* packages export one). Without it the editor shows the static SVG from `renderHTML`.
|
|
1596
|
+
*/
|
|
1597
|
+
nodeView: ChartNodeViewMount | null;
|
|
1598
|
+
/** Colours of the static SVG in exported HTML (default `DEFAULT_CHART_THEME`). */
|
|
1599
|
+
theme: Partial<ChartTheme>;
|
|
1600
|
+
/** Width of the static SVG when the node has no `width` (default 640). */
|
|
1601
|
+
defaultWidth: number;
|
|
1602
|
+
/** Height of new charts in pixels (default 320). */
|
|
1603
|
+
defaultHeight: number;
|
|
1604
|
+
/** Generates ids for charts that have none (default `chart-xxxxxxxx`). */
|
|
1605
|
+
generateId: () => string;
|
|
1606
|
+
}
|
|
1607
|
+
interface InsertChartOptions {
|
|
1608
|
+
/** Any partial or saved chart spec; it is normalized (see `normalizeChartSpec`). */
|
|
1609
|
+
spec: Partial<ChartSpec> | unknown;
|
|
1610
|
+
/** Width in pixels, or null to fill the line (default null). */
|
|
1611
|
+
width?: number | null;
|
|
1612
|
+
/** Height in pixels (default `defaultHeight`). */
|
|
1613
|
+
height?: number;
|
|
1614
|
+
/** Id to use (default: generated). */
|
|
1615
|
+
id?: string;
|
|
1616
|
+
}
|
|
1617
|
+
declare module "@tiptap/core" {
|
|
1618
|
+
interface Commands<ReturnType> {
|
|
1619
|
+
chart: {
|
|
1620
|
+
/** Inserts a chart block at the selection. */
|
|
1621
|
+
insertChart: (options: InsertChartOptions) => ReturnType;
|
|
1622
|
+
/** Replaces the spec (and optionally the size) of the chart with this id. */
|
|
1623
|
+
updateChart: (id: string, changes: {
|
|
1624
|
+
spec?: Partial<ChartSpec> | unknown;
|
|
1625
|
+
width?: number | null;
|
|
1626
|
+
height?: number;
|
|
1627
|
+
}) => ReturnType;
|
|
1628
|
+
};
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
declare const chartPluginKey: PluginKey<any>;
|
|
1632
|
+
/** A chart in a document: its node, id and position. */
|
|
1633
|
+
interface DocumentChart {
|
|
1634
|
+
id: string | null;
|
|
1635
|
+
pos: number;
|
|
1636
|
+
node: Node$1;
|
|
1637
|
+
spec: ChartSpec;
|
|
1638
|
+
}
|
|
1639
|
+
/** Every chart node in a document, in order. */
|
|
1640
|
+
declare function getDocumentCharts(doc: Node$1, typeName?: string): DocumentChart[];
|
|
1641
|
+
/** Whether the editor's schema has the chart node (`createRichTextPreset({ chart: true })`). */
|
|
1642
|
+
declare function isChartEnabled(editor: Pick<Editor, "schema"> | null | undefined): boolean;
|
|
1643
|
+
/** The static SVG of a chart node, as a `DOMOutputSpec`. */
|
|
1644
|
+
declare function staticChartSvg(node: Node$1, options: Pick<ChartNodeOptions, "theme" | "defaultWidth" | "defaultHeight">): ChartDomSpec;
|
|
1645
|
+
/**
|
|
1646
|
+
* A chart block. Stores a `ChartSpec` as its `spec` attribute (JSON in `data-chart`) with
|
|
1647
|
+
* an id, an optional width and a height.
|
|
1648
|
+
*
|
|
1649
|
+
* - **HTML**: `<div data-type="chart" data-chart="{…}">` holding a static SVG drawn with
|
|
1650
|
+
* `chartSceneToDomSpec`, so exported HTML shows the chart without script.
|
|
1651
|
+
* - **Markdown**: a ` ```mermaid ` block written with `chartToMermaid` (its `%% @pixerate`
|
|
1652
|
+
* line keeps everything Mermaid cannot hold); `xychart-beta`, `pie` and `radar-beta`
|
|
1653
|
+
* blocks parse back into charts. Other Mermaid diagrams stay code blocks.
|
|
1654
|
+
* - **In the editor**: pass a `nodeView` (React and Svelte export one) for a live chart that
|
|
1655
|
+
* opens the chart inspector on click; without one the static SVG is shown.
|
|
1656
|
+
*/
|
|
1657
|
+
declare const Chart: Node<ChartNodeOptions, any>;
|
|
1658
|
+
|
|
1659
|
+
declare const SPARKLINE_KINDS: readonly ChartSparklineKind[];
|
|
1660
|
+
/** Most values a sparkline node keeps. */
|
|
1661
|
+
declare const MAX_SPARKLINE_VALUES = 1000;
|
|
1662
|
+
interface SparklineNodeOptions {
|
|
1663
|
+
HTMLAttributes: Record<string, any>;
|
|
1664
|
+
/** Line, positive column and win colour (default the first palette colour). */
|
|
1665
|
+
color: string;
|
|
1666
|
+
/** Negative column and loss colour. */
|
|
1667
|
+
negativeColor: string;
|
|
1668
|
+
}
|
|
1669
|
+
interface InsertSparklineOptions {
|
|
1670
|
+
values: readonly (number | null)[];
|
|
1671
|
+
kind?: ChartSparklineKind;
|
|
1672
|
+
/** Width in pixels (default 80). */
|
|
1673
|
+
width?: number;
|
|
1674
|
+
/** Height in pixels (default 18). */
|
|
1675
|
+
height?: number;
|
|
1676
|
+
/** CSS colour (default: the extension's `color`). */
|
|
1677
|
+
color?: string | null;
|
|
1678
|
+
/** Accessible label (default: first and last value). */
|
|
1679
|
+
label?: string | null;
|
|
1680
|
+
}
|
|
1681
|
+
declare module "@tiptap/core" {
|
|
1682
|
+
interface Commands<ReturnType> {
|
|
1683
|
+
sparkline: {
|
|
1684
|
+
/** Inserts a word-sized chart at the selection. */
|
|
1685
|
+
insertSparkline: (options: InsertSparklineOptions) => ReturnType;
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
/** Cleans sparkline values: finite numbers or null, at most `MAX_SPARKLINE_VALUES`. */
|
|
1690
|
+
declare function normalizeSparklineValues(values: unknown): ChartValue[];
|
|
1691
|
+
/** The accessible label of a sparkline node. */
|
|
1692
|
+
declare function sparklineLabel(node: Node$1): string;
|
|
1693
|
+
/**
|
|
1694
|
+
* An inline, word-sized chart (`line`, `column` or `win-loss`) drawn as SVG in the text.
|
|
1695
|
+
* HTML: `<span data-type="sparkline" data-values="[…]" data-kind="line">`; markdown keeps the
|
|
1696
|
+
* same span (the markdown sanitizer allows `span` with `data-*` attributes).
|
|
1697
|
+
*/
|
|
1698
|
+
declare const Sparkline: Node<SparklineNodeOptions, any>;
|
|
1699
|
+
|
|
1513
1700
|
/**
|
|
1514
1701
|
* The TipTap packages whose commands the preset installs. Exported only so the
|
|
1515
1702
|
* published declarations import them: each package augments `@tiptap/core`'s
|
|
@@ -1584,6 +1771,15 @@ interface RichTextPresetOptions {
|
|
|
1584
1771
|
* imported tables are flattened into paragraphs as before.
|
|
1585
1772
|
*/
|
|
1586
1773
|
table?: Partial<RichTextTableOptions> | boolean;
|
|
1774
|
+
/**
|
|
1775
|
+
* Live chart blocks (`chart`, storing a `ChartSpec`) and inline sparklines
|
|
1776
|
+
* (`sparkline`). Off by default. Pass `{ nodeView }` from the React or Svelte
|
|
1777
|
+
* package to edit charts in place; DOCX imports then insert real charts
|
|
1778
|
+
* instead of a caption and a data table.
|
|
1779
|
+
*/
|
|
1780
|
+
chart?: (Partial<ChartNodeOptions> & {
|
|
1781
|
+
sparkline?: Partial<SparklineNodeOptions> | boolean;
|
|
1782
|
+
}) | boolean;
|
|
1587
1783
|
}
|
|
1588
1784
|
/**
|
|
1589
1785
|
* Creates a standard rich-text extensions bundle with full formatting support.
|
|
@@ -1825,4 +2021,4 @@ declare function unnestTables(tr: Transaction, ranges: [number, number][]): bool
|
|
|
1825
2021
|
*/
|
|
1826
2022
|
declare function createTableNestingPlugin(): Plugin;
|
|
1827
2023
|
|
|
1828
|
-
export { type
|
|
2024
|
+
export { type EditorCompareOptions as $, ALLOW_NESTED_TABLES_META as A, BUILT_IN_IMPORT_ADAPTERS as B, CHARACTER_STYLE_MARK_NAME as C, type DocumentImport as D, type CommentsStorage as E, type CompileFindPatternResult as F, type CompiledFindPattern as G, type CreateImportAdapterRegistryOptions as H, type CreateStyleFromSelectionOptions as I, CrossReference as J, type CrossReferenceOptions as K, type CrossReferenceTarget as L, type CrossReferenceTargetType as M, DEFAULT_AUTOCORRECT_EXCEPTIONS as N, DEFAULT_TABLE_OPTIONS as O, type PdfStructureReport as P, DEFAULT_TABLE_TOOLBAR as Q, type DocumentChart as R, DocumentCompare as S, type DocumentCompareOptions as T, type DocumentCompareStorage as U, type DocumentSearchOptions as V, type DocumentSearchResult as W, type DocumentStructureCommandArgs as X, type DocumentStructureCommandItem as Y, EMPTY_FIND_REPLACE_SNAPSHOT as Z, EMPTY_TABLE_STATE as _, type DocumentImportAdapter as a, type RichClipboardStorage as a$, FIND_OPTION_TOGGLES as a0, FIND_PARAGRAPH_MARK as a1, FileImport as a2, type FileImportOptions as a3, type FindAllOptions as a4, type FindAllResult as a5, type FindMatch as a6, type FindOptionToggle as a7, type FindOptions as a8, type FindPatternError as a9, LoadingNode as aA, MAX_FIND_PATTERN_LENGTH as aB, MAX_SPARKLINE_VALUES as aC, MAX_TABLE_COLUMNS as aD, MAX_TABLE_ROWS as aE, Markdown as aF, type OpenFindReplaceParams as aG, Outline as aH, type OutlineHeading as aI, type OutlineOptions as aJ, type OutlineSnapshot as aK, type OutlineStorage as aL, type OutlineStore as aM, type OutlineTreeItem as aN, ParagraphStyles as aO, type ParagraphStylesOptions as aP, type ParagraphStylesSnapshot as aQ, type ParagraphStylesStorage as aR, type ParagraphStylesStore as aS, type PatternMatch as aT, type PdfLayoutBlock as aU, type PdfLayoutPage as aV, type PdfLayoutResult as aW, type PdfTableCell as aX, type ReplacePiece as aY, RichClipboard as aZ, type RichClipboardOptions as a_, type FindPatternErrorCode as aa, FindReplace as ab, type FindReplaceCommandOptions as ac, type FindReplaceMode as ad, type FindReplaceOptions as ae, type FindReplaceSnapshot as af, type FindReplaceStorage as ag, FindReplaceStore as ah, type FocusHeadingOptions as ai, FontSize as aj, Footnote as ak, type FootnoteInfo as al, FootnoteReference as am, Footnotes as an, type FootnotesOptions as ao, GradientText as ap, type GradientTextOptions as aq, Image as ar, type ImageOptions as as, type ImportStructureItem as at, type ImportStructureReport as au, type ImportedChart as av, type InsertChartOptions as aw, type InsertFootnoteOptions as ax, type InsertSparklineOptions as ay, type InsertTableOfContentsOptions as az, type PdfLayoutOptions as b, expandReplacement as b$, type RichTextPresetCommandPackages as b0, type RichTextPresetOptions as b1, type RichTextTableOptions as b2, type RunTableActionOptions as b3, SMILIE_REPLACEMENTS as b4, SPARKLINE_KINDS as b5, STYLE_ID_ATTRIBUTE as b6, type SearchBudget as b7, type SearchBudgetOptions as b8, type SetBookmarkOptions as b9, analyzePdfLayout as bA, applyDocumentComparison as bB, applyReplacements as bC, autocorrectPluginKey as bD, buildOutlineTree as bE, capitalizeSentenceRules as bF, captureSelectionFormat as bG, chartPluginKey as bH, commentsPluginKey as bI, compareInEditor as bJ, compileFindPattern as bK, computeOutline as bL, createChartNodeView as bM, createFindReplaceCommands as bN, createImportAdapterRegistry as bO, createOutlineStore as bP, createParagraphStylesStore as bQ, createRichTextPreset as bR, createSearchBudget as bS, createTableCommands as bT, createTableExtensions as bU, createTableNestingPlugin as bV, createTableStore as bW, crossReferencePluginKey as bX, defaultAutocorrectRules as bY, defaultImportRegistry as bZ, documentStructureCommandItems as b_, type SetSearchParams as ba, type SlashCommandMatchData as bb, SlashCommands as bc, type SlashCommandsOptions as bd, SmilieReplacer as be, Sparkline as bf, type SparklineNodeOptions as bg, TABLE_ACTIONS as bh, Table as bi, type TableAction as bj, type TableActionInfo as bk, type TableActionParams as bl, type TableActionStatus as bm, TableCell as bn, type TableCellAlignment as bo, type TableCommandOptions as bp, TableHeader as bq, TableOfContents as br, type TableOfContentsEntry as bs, type TableOfContentsOptions as bt, TableRow as bu, type TableState as bv, type TableStore as bw, type TableToolbarItem as bx, TemplateSuggestions as by, type TemplateSuggestionsOptions as bz, type PdfRuleLine as c, sliceContainsTable as c$, fileImportPluginKey as c0, findAllMatches as c1, findAutocorrection as c2, findCommentRanges as c3, findHexColors as c4, findImportAdapter as c5, findReplacePluginKey as c6, foldCodePoint as c7, footnotesMarkdownIt as c8, footnotesPluginKey as c9, insertImageNode as cA, insertSliceAfterTable as cB, isChartEnabled as cC, isGfmTable as cD, isInTableCell as cE, isInsidePromptToken as cF, isParagraphStyleAvailable as cG, isSelectionInTable as cH, isTableEnabled as cI, markdownImportAdapter as cJ, navigateToHeading as cK, normalizeSparklineValues as cL, normalizeTableCellAlignment as cM, normalizeTableCellColor as cN, outermostTableDepth as cO, outlinePluginKey as cP, paragraphStylesPluginKey as cQ, parseReplacement as cR, pdfLayoutBlocksToHtml as cS, plainTextImportAdapter as cT, registerImportAdapter as cU, removeImageNode as cV, richClipboardPluginKey as cW, rtfImportAdapter as cX, runTableAction as cY, searchDocument as cZ, shouldShowTableBubbleMenu as c_, formatFindStatus as ca, fractionRules as cb, getActiveHeading as cc, getBookmarks as cd, getCommentAnchors as ce, getCommentAuthor as cf, getCommentIdsAt as cg, getCommentStore as ch, getCrossReferenceTargets as ci, getDocumentCharts as cj, getDocumentStructureCommandItems as ck, getFindReplaceState as cl, getFindReplaceStore as cm, getFootnotes as cn, getImportAccept as co, getOutline as cp, getParagraphStyleAt as cq, getStyleRegistry as cr, getTableActionState as cs, getTableOfContentsEntries as ct, getTableState as cu, handleImageInsertion as cv, handleTablePasteWithoutNesting as cw, htmlImportAdapter as cx, imagePastePluginKey as cy, importFile as cz, type PdfTextRun as d, smartQuoteRules as d0, smilieAutocorrectRules as d1, sparklineLabel as d2, staticChartSvg as d3, symbolRules as d4, syncFootnotes as d5, tableNestingPluginKey as d6, tableOfContentsMarkdownIt as d7, tableOfContentsPluginKey as d8, twoInitialCapitalsRules as d9, unnestTables as da, unregisterImportAdapter as db, updateImageSrc as dc, validateFindPattern as dd, writeRichClipboard as de, type AddCommentOptions as e, Autocorrect as f, type AutocorrectContext as g, type AutocorrectCorrection as h, type AutocorrectOptions as i, type AutocorrectRule as j, type AutocorrectStorage as k, Bookmark as l, type BookmarkInfo as m, type BookmarkOptions as n, COMMENT_MARK_NAME as o, CharacterStyle as p, Chart as q, type ChartNodeOptions as r, ChartNodeView as s, type ChartNodeViewMount as t, type ChartNodeViewRenderer as u, type ChartNodeViewState as v, ColorHighlighter as w, type CommentRange as x, Comments as y, type CommentsOptions as z };
|