ooxml-core 0.19.0 → 0.20.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/automation/index.cjs +195 -193
- package/dist/automation/index.mjs +195 -193
- package/dist/diagram/index.cjs +2 -1
- package/dist/diagram/index.mjs +2 -1
- package/dist/docx/attr-units.d.ts +11 -0
- package/dist/docx/attr-units.d.ts.map +1 -0
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/case-transform.d.ts +9 -0
- package/dist/docx/case-transform.d.ts.map +1 -0
- package/dist/docx/embedded.cjs +2 -1
- package/dist/docx/embedded.mjs +2 -1
- package/dist/docx/index.cjs +289 -3
- package/dist/docx/index.d.ts +5 -0
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +269 -4
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/table-layout.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +2 -1
- package/dist/docx/load/index.mjs +2 -1
- package/dist/docx/page-setup-model.d.ts +29 -0
- package/dist/docx/page-setup-model.d.ts.map +1 -0
- package/dist/docx/page-size.d.ts +11 -0
- package/dist/docx/page-size.d.ts.map +1 -0
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/section-edit.d.ts +19 -0
- package/dist/docx/section-edit.d.ts.map +1 -0
- package/dist/docx/tab-stops.d.ts.map +1 -1
- package/dist/docx/ui/backstage-focus.d.ts +6 -0
- package/dist/docx/ui/backstage-focus.d.ts.map +1 -0
- package/dist/docx/ui/break-note-schema.d.ts +11 -0
- package/dist/docx/ui/break-note-schema.d.ts.map +1 -0
- package/dist/docx/ui/collaboration-authority.d.ts +31 -0
- package/dist/docx/ui/collaboration-authority.d.ts.map +1 -0
- package/dist/docx/ui/collaboration-identity.d.ts +8 -0
- package/dist/docx/ui/collaboration-identity.d.ts.map +1 -0
- package/dist/docx/ui/collaboration-protocol.d.ts +25 -0
- package/dist/docx/ui/collaboration-protocol.d.ts.map +1 -0
- package/dist/docx/ui/collaboration.d.ts +30 -0
- package/dist/docx/ui/collaboration.d.ts.map +1 -0
- package/dist/docx/ui/defined.d.ts +3 -0
- package/dist/docx/ui/defined.d.ts.map +1 -0
- package/dist/docx/ui/dirty-state.d.ts +9 -0
- package/dist/docx/ui/dirty-state.d.ts.map +1 -0
- package/dist/docx/ui/field-guard.d.ts +21 -0
- package/dist/docx/ui/field-guard.d.ts.map +1 -0
- package/dist/docx/ui/header-footer-history.d.ts +15 -0
- package/dist/docx/ui/header-footer-history.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +2380 -0
- package/dist/docx/ui/index.d.ts +30 -0
- package/dist/docx/ui/index.d.ts.map +1 -0
- package/dist/docx/ui/index.mjs +2317 -0
- package/dist/docx/ui/inline-content-schema.d.ts +15 -0
- package/dist/docx/ui/inline-content-schema.d.ts.map +1 -0
- package/dist/docx/ui/ligature-style.d.ts +4 -0
- package/dist/docx/ui/ligature-style.d.ts.map +1 -0
- package/dist/docx/ui/node-numbering.d.ts +8 -0
- package/dist/docx/ui/node-numbering.d.ts.map +1 -0
- package/dist/docx/ui/review-schema.d.ts +90 -0
- package/dist/docx/ui/review-schema.d.ts.map +1 -0
- package/dist/docx/ui/ribbon-action-ids.d.ts +26 -0
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -0
- package/dist/docx/ui/ribbon-colors.d.ts +3 -0
- package/dist/docx/ui/ribbon-colors.d.ts.map +1 -0
- package/dist/docx/ui/ribbon-legacy-labels.d.ts +6 -0
- package/dist/docx/ui/ribbon-legacy-labels.d.ts.map +1 -0
- package/dist/docx/ui/run-compare.d.ts +5 -0
- package/dist/docx/ui/run-compare.d.ts.map +1 -0
- package/dist/docx/ui/run-extra-mark.d.ts +17 -0
- package/dist/docx/ui/run-extra-mark.d.ts.map +1 -0
- package/dist/docx/ui/schema-marks.d.ts +273 -0
- package/dist/docx/ui/schema-marks.d.ts.map +1 -0
- package/dist/docx/ui/smartart-theme.d.ts +21 -0
- package/dist/docx/ui/smartart-theme.d.ts.map +1 -0
- package/dist/docx/ui/table-render.d.ts +24 -0
- package/dist/docx/ui/table-render.d.ts.map +1 -0
- package/dist/docx/ui/table-visuals.d.ts +3 -0
- package/dist/docx/ui/table-visuals.d.ts.map +1 -0
- package/dist/docx/ui/theme/css-vars.d.ts +6 -0
- package/dist/docx/ui/theme/css-vars.d.ts.map +1 -0
- package/dist/docx/ui/theme/defaults.d.ts +12 -0
- package/dist/docx/ui/theme/defaults.d.ts.map +1 -0
- package/dist/docx/ui/theme/element.d.ts +9 -0
- package/dist/docx/ui/theme/element.d.ts.map +1 -0
- package/dist/docx/ui/theme/index.d.ts +5 -0
- package/dist/docx/ui/theme/index.d.ts.map +1 -0
- package/dist/docx/ui/theme/types.d.ts +42 -0
- package/dist/docx/ui/theme/types.d.ts.map +1 -0
- package/dist/docx/ui/word-count.d.ts +3 -0
- package/dist/docx/ui/word-count.d.ts.map +1 -0
- package/dist/docx/ui/zoom-fit.d.ts +16 -0
- package/dist/docx/ui/zoom-fit.d.ts.map +1 -0
- package/dist/docx/validate-paragraph.d.ts.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/dist/math/index.cjs +2 -1
- package/dist/math/index.mjs +2 -1
- package/dist/opc/index.cjs +2 -1
- package/dist/opc/index.mjs +2 -1
- package/dist/visio/index.cjs +2 -1
- package/dist/visio/index.mjs +2 -1
- package/dist/visio/ui/contract.d.ts +33 -0
- package/dist/visio/ui/contract.d.ts.map +1 -0
- package/dist/visio/ui/demo-document.d.ts +4 -0
- package/dist/visio/ui/demo-document.d.ts.map +1 -0
- package/dist/visio/ui/diagnostics.d.ts +10 -0
- package/dist/visio/ui/diagnostics.d.ts.map +1 -0
- package/dist/visio/ui/document-history.d.ts +43 -0
- package/dist/visio/ui/document-history.d.ts.map +1 -0
- package/dist/visio/ui/document-text-search.d.ts +45 -0
- package/dist/visio/ui/document-text-search.d.ts.map +1 -0
- package/dist/visio/ui/edit-commands.d.ts +4 -0
- package/dist/visio/ui/edit-commands.d.ts.map +1 -0
- package/dist/visio/ui/edit-error.d.ts +5 -0
- package/dist/visio/ui/edit-error.d.ts.map +1 -0
- package/dist/visio/ui/foreign-vector-budget.d.ts +25 -0
- package/dist/visio/ui/foreign-vector-budget.d.ts.map +1 -0
- package/dist/visio/ui/index.cjs +1523 -0
- package/dist/visio/ui/index.d.ts +12 -0
- package/dist/visio/ui/index.d.ts.map +1 -0
- package/dist/visio/ui/index.mjs +1498 -0
- package/dist/visio/ui/scene-details.d.ts +8 -0
- package/dist/visio/ui/scene-details.d.ts.map +1 -0
- package/dist/visio/ui/scene-validation.d.ts +5 -0
- package/dist/visio/ui/scene-validation.d.ts.map +1 -0
- package/dist/visio/ui/snapshot-scene.d.ts +9 -0
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -0
- package/dist/xlsx/index.cjs +100 -98
- package/dist/xlsx/index.mjs +100 -98
- package/dist/xlsx/load/index.cjs +68 -66
- package/dist/xlsx/load/index.mjs +68 -66
- package/dist/xlsx/ui/backstage/templates.d.ts +16 -0
- package/dist/xlsx/ui/backstage/templates.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/alignment.d.ts +4 -0
- package/dist/xlsx/ui/commands/alignment.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/cells.d.ts +3 -0
- package/dist/xlsx/ui/commands/cells.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/cf-presets.d.ts +15 -0
- package/dist/xlsx/ui/commands/cf-presets.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/clipboard.d.ts +22 -0
- package/dist/xlsx/ui/commands/clipboard.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/contextual.d.ts +13 -0
- package/dist/xlsx/ui/commands/contextual.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/data.d.ts +3 -0
- package/dist/xlsx/ui/commands/data.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/editing.d.ts +13 -0
- package/dist/xlsx/ui/commands/editing.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/font.d.ts +21 -0
- package/dist/xlsx/ui/commands/font.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/formulas.d.ts +15 -0
- package/dist/xlsx/ui/commands/formulas.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/core-features.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/core-features.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/format-cells.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/format-cells.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/index.d.ts +4 -0
- package/dist/xlsx/ui/commands/i18n/index.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/messages.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/messages.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/ribbon-home.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/ribbon-home.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/ribbon-tabs.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/rules.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/rules.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/tools.d.ts +3 -0
- package/dist/xlsx/ui/commands/i18n/tools.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/i18n/types.d.ts +5 -0
- package/dist/xlsx/ui/commands/i18n/types.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/icons.d.ts +4 -0
- package/dist/xlsx/ui/commands/icons.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/number.d.ts +11 -0
- package/dist/xlsx/ui/commands/number.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/page-layout.d.ts +10 -0
- package/dist/xlsx/ui/commands/page-layout.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/select-special.d.ts +12 -0
- package/dist/xlsx/ui/commands/select-special.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/sort-filter.d.ts +3 -0
- package/dist/xlsx/ui/commands/sort-filter.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/style-presets.d.ts +21 -0
- package/dist/xlsx/ui/commands/style-presets.d.ts.map +1 -0
- package/dist/xlsx/ui/commands/util.d.ts +59 -0
- package/dist/xlsx/ui/commands/util.d.ts.map +1 -0
- package/dist/xlsx/ui/commands.d.ts +36 -0
- package/dist/xlsx/ui/commands.d.ts.map +1 -0
- package/dist/xlsx/ui/context-menu/items.d.ts +36 -0
- package/dist/xlsx/ui/context-menu/items.d.ts.map +1 -0
- package/dist/xlsx/ui/context.d.ts +65 -0
- package/dist/xlsx/ui/context.d.ts.map +1 -0
- package/dist/xlsx/ui/dialogs/format-cells/number-categories.d.ts +28 -0
- package/dist/xlsx/ui/dialogs/format-cells/number-categories.d.ts.map +1 -0
- package/dist/xlsx/ui/dialogs/format-cells/types.d.ts +40 -0
- package/dist/xlsx/ui/dialogs/format-cells/types.d.ts.map +1 -0
- package/dist/xlsx/ui/dialogs/insert-chart-model.d.ts +9 -0
- package/dist/xlsx/ui/dialogs/insert-chart-model.d.ts.map +1 -0
- package/dist/xlsx/ui/dialogs.d.ts +9 -0
- package/dist/xlsx/ui/dialogs.d.ts.map +1 -0
- package/dist/xlsx/ui/dirty-state.d.ts +9 -0
- package/dist/xlsx/ui/dirty-state.d.ts.map +1 -0
- package/dist/xlsx/ui/formula-bar/name-resolve.d.ts +23 -0
- package/dist/xlsx/ui/formula-bar/name-resolve.d.ts.map +1 -0
- package/dist/xlsx/ui/grid/cell-items.d.ts +42 -0
- package/dist/xlsx/ui/grid/cell-items.d.ts.map +1 -0
- package/dist/xlsx/ui/grid/cell-paint.d.ts +26 -0
- package/dist/xlsx/ui/grid/cell-paint.d.ts.map +1 -0
- package/dist/xlsx/ui/grid/edit-bridge.d.ts +47 -0
- package/dist/xlsx/ui/grid/edit-bridge.d.ts.map +1 -0
- package/dist/xlsx/ui/grid/geometry.d.ts +76 -0
- package/dist/xlsx/ui/grid/geometry.d.ts.map +1 -0
- package/dist/xlsx/ui/grid/icon-sets.d.ts +3 -0
- package/dist/xlsx/ui/grid/icon-sets.d.ts.map +1 -0
- package/dist/xlsx/ui/grid/number-fit.d.ts +3 -0
- package/dist/xlsx/ui/grid/number-fit.d.ts.map +1 -0
- package/dist/xlsx/ui/grid/selection-ops.d.ts +32 -0
- package/dist/xlsx/ui/grid/selection-ops.d.ts.map +1 -0
- package/dist/xlsx/ui/grid/view-cache.d.ts +15 -0
- package/dist/xlsx/ui/grid/view-cache.d.ts.map +1 -0
- package/dist/xlsx/ui/index.cjs +28484 -0
- package/dist/xlsx/ui/index.d.ts +56 -0
- package/dist/xlsx/ui/index.d.ts.map +1 -0
- package/dist/xlsx/ui/index.mjs +28290 -0
- package/dist/xlsx/ui/locales/de/commands.d.ts +2 -0
- package/dist/xlsx/ui/locales/de/commands.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/de/grid.d.ts +2 -0
- package/dist/xlsx/ui/locales/de/grid.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/de/index.d.ts +2 -0
- package/dist/xlsx/ui/locales/de/index.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/de/shell.d.ts +2 -0
- package/dist/xlsx/ui/locales/de/shell.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/en/commands.d.ts +2 -0
- package/dist/xlsx/ui/locales/en/commands.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/en/grid.d.ts +2 -0
- package/dist/xlsx/ui/locales/en/grid.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/en/index.d.ts +2 -0
- package/dist/xlsx/ui/locales/en/index.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/en/shell.d.ts +2 -0
- package/dist/xlsx/ui/locales/en/shell.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/es/commands.d.ts +2 -0
- package/dist/xlsx/ui/locales/es/commands.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/es/grid.d.ts +2 -0
- package/dist/xlsx/ui/locales/es/grid.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/es/index.d.ts +2 -0
- package/dist/xlsx/ui/locales/es/index.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/es/shell.d.ts +2 -0
- package/dist/xlsx/ui/locales/es/shell.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/fr/commands.d.ts +2 -0
- package/dist/xlsx/ui/locales/fr/commands.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/fr/grid.d.ts +2 -0
- package/dist/xlsx/ui/locales/fr/grid.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/fr/index.d.ts +2 -0
- package/dist/xlsx/ui/locales/fr/index.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/fr/shell.d.ts +2 -0
- package/dist/xlsx/ui/locales/fr/shell.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/merge.d.ts +7 -0
- package/dist/xlsx/ui/locales/merge.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/zh-CN/commands.d.ts +2 -0
- package/dist/xlsx/ui/locales/zh-CN/commands.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/zh-CN/grid.d.ts +2 -0
- package/dist/xlsx/ui/locales/zh-CN/grid.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/zh-CN/index.d.ts +2 -0
- package/dist/xlsx/ui/locales/zh-CN/index.d.ts.map +1 -0
- package/dist/xlsx/ui/locales/zh-CN/shell.d.ts +2 -0
- package/dist/xlsx/ui/locales/zh-CN/shell.d.ts.map +1 -0
- package/dist/xlsx/ui/localization.d.ts +23 -0
- package/dist/xlsx/ui/localization.d.ts.map +1 -0
- package/dist/xlsx/ui/ribbon/icon-paths.d.ts +9 -0
- package/dist/xlsx/ui/ribbon/icon-paths.d.ts.map +1 -0
- package/dist/xlsx/ui/ribbon/parts.d.ts +88 -0
- package/dist/xlsx/ui/ribbon/parts.d.ts.map +1 -0
- package/dist/xlsx/ui/ribbon/tab-api.d.ts +21 -0
- package/dist/xlsx/ui/ribbon/tab-api.d.ts.map +1 -0
- package/dist/xlsx/ui/ribbon/tabs/review-view.d.ts +5 -0
- package/dist/xlsx/ui/ribbon/tabs/review-view.d.ts.map +1 -0
- package/dist/xlsx/ui/ribbon/tabs/theme-palette.d.ts +8 -0
- package/dist/xlsx/ui/ribbon/tabs/theme-palette.d.ts.map +1 -0
- package/dist/xlsx/ui/ribbon/tell-me.d.ts +16 -0
- package/dist/xlsx/ui/ribbon/tell-me.d.ts.map +1 -0
- package/dist/xlsx/ui/selection.d.ts +34 -0
- package/dist/xlsx/ui/selection.d.ts.map +1 -0
- package/dist/xlsx/ui/theme/css-vars.d.ts +6 -0
- package/dist/xlsx/ui/theme/css-vars.d.ts.map +1 -0
- package/dist/xlsx/ui/theme/defaults.d.ts +6 -0
- package/dist/xlsx/ui/theme/defaults.d.ts.map +1 -0
- package/dist/xlsx/ui/theme/element.d.ts +9 -0
- package/dist/xlsx/ui/theme/element.d.ts.map +1 -0
- package/dist/xlsx/ui/theme/types.d.ts +54 -0
- package/dist/xlsx/ui/theme/types.d.ts.map +1 -0
- package/dist/xml/index.cjs +2 -1
- package/dist/xml/index.mjs +2 -1
- package/package.json +30 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NodeSpec, MarkSpec } from 'prosemirror-model';
|
|
2
|
+
/**
|
|
3
|
+
* CSS class approximating a floating picture's wrapping: square/tight/through wrapping floats it
|
|
4
|
+
* left or right, top-and-bottom puts it on its own line, and no wrapping (in front of/behind text)
|
|
5
|
+
* keeps it in line. Offsets beyond roughly half a page width are treated as right-aligned.
|
|
6
|
+
*/
|
|
7
|
+
export declare function placementClass(value: unknown): string;
|
|
8
|
+
/** Inline picture atom: a placeholder span for unsupported drawings, an `<img>` for real pictures.
|
|
9
|
+
* Actual `src` resolution from package media bytes happens in a node view (image-media.ts), not here. */
|
|
10
|
+
export declare const imageNodeSpec: NodeSpec;
|
|
11
|
+
/** Only these schemes are ever placed in a rendered `href`; other targets stay in the model only. */
|
|
12
|
+
export declare function isNavigableHref(href: unknown): href is string;
|
|
13
|
+
/** `w:hyperlink` (external `href` or internal `anchor`), with an optional tooltip. */
|
|
14
|
+
export declare const linkMarkSpec: MarkSpec;
|
|
15
|
+
//# sourceMappingURL=inline-content-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-content-schema.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/inline-content-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI3E;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAsBrD;AAeD;yGACyG;AACzG,eAAO,MAAM,aAAa,EAAE,QA+E3B,CAAC;AAEF,qGAAqG;AACrG,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAE7D;AAED,sFAAsF;AACtF,eAAO,MAAM,YAAY,EAAE,QAoC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ligature-style.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/ligature-style.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,6FAA6F;AAC7F,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,MAC0B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type DocumentModel } from '../index.js';
|
|
2
|
+
import type { Node } from 'prosemirror-model';
|
|
3
|
+
/** Resolve a live paragraph's direct or inherited list without adding model properties. */
|
|
4
|
+
export declare function nodeNumbering(node: Node, model: DocumentModel): {
|
|
5
|
+
numId: number;
|
|
6
|
+
level: number;
|
|
7
|
+
} | undefined;
|
|
8
|
+
//# sourceMappingURL=node-numbering.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-numbering.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/node-numbering.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,2FAA2F;AAC3F,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa;;;cAc7D"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare function authorColor(author: string): string;
|
|
2
|
+
/** The move name from a revision mark's `move` attr (JSON), for display and linkage. */
|
|
3
|
+
export declare function moveName(value: unknown): string | undefined;
|
|
4
|
+
/** Marks for tracked-change insertions/deletions and comment-range anchors; merged into schema.ts. */
|
|
5
|
+
export declare const reviewMarks: {
|
|
6
|
+
insertion: {
|
|
7
|
+
attrs: {
|
|
8
|
+
author: {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
date: {
|
|
12
|
+
default: null;
|
|
13
|
+
};
|
|
14
|
+
id: {
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
move: {
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
parseDOM: {
|
|
22
|
+
tag: string;
|
|
23
|
+
getAttrs: (el: HTMLElement) => {
|
|
24
|
+
author: string;
|
|
25
|
+
date: string | null;
|
|
26
|
+
id: string;
|
|
27
|
+
move: null;
|
|
28
|
+
};
|
|
29
|
+
}[];
|
|
30
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
31
|
+
'data-revision-id': any;
|
|
32
|
+
'data-author': any;
|
|
33
|
+
'data-date'?: any;
|
|
34
|
+
class: string;
|
|
35
|
+
'data-move'?: string | undefined;
|
|
36
|
+
style: string;
|
|
37
|
+
}, number];
|
|
38
|
+
};
|
|
39
|
+
deletion: {
|
|
40
|
+
attrs: {
|
|
41
|
+
author: {
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
date: {
|
|
45
|
+
default: null;
|
|
46
|
+
};
|
|
47
|
+
id: {
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
move: {
|
|
51
|
+
default: null;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
parseDOM: {
|
|
55
|
+
tag: string;
|
|
56
|
+
getAttrs: (el: HTMLElement) => {
|
|
57
|
+
author: string;
|
|
58
|
+
date: string | null;
|
|
59
|
+
id: string;
|
|
60
|
+
move: null;
|
|
61
|
+
};
|
|
62
|
+
}[];
|
|
63
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
64
|
+
'data-revision-id': any;
|
|
65
|
+
'data-author': any;
|
|
66
|
+
'data-date'?: any;
|
|
67
|
+
class: string;
|
|
68
|
+
'data-move'?: string | undefined;
|
|
69
|
+
style: string;
|
|
70
|
+
}, number];
|
|
71
|
+
};
|
|
72
|
+
comment: {
|
|
73
|
+
attrs: {
|
|
74
|
+
ids: {
|
|
75
|
+
default: never[];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
parseDOM: {
|
|
79
|
+
tag: string;
|
|
80
|
+
getAttrs: (el: HTMLElement) => {
|
|
81
|
+
ids: string[];
|
|
82
|
+
};
|
|
83
|
+
}[];
|
|
84
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
85
|
+
class: string;
|
|
86
|
+
'data-comment-ids': string;
|
|
87
|
+
}, number];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=review-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review-schema.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/review-schema.ts"],"names":[],"mappings":"AAaA,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIlD;AAED,wFAAwF;AACxF,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAQ3D;AAED,sGAAsG;AACtG,eAAO,MAAM,WAAW;;;YAIrB,MAAM;gBAAI,OAAO;;YACjB,IAAI;gBAAI,OAAO;;YACf,EAAE;gBAAI,OAAO;;YACb,IAAI;gBAAI,OAAO;;;;;;;;;;;;;;;;;;;;;;;YA6Bf,MAAM;gBAAI,OAAO;;YACjB,IAAI;gBAAI,OAAO;;YACf,EAAE;gBAAI,OAAO;;YACb,IAAI;gBAAI,OAAO;;;;;;;;;;;;;;;;;;;;;;;YA2BP,GAAG;gBAAI,OAAO;;;;;;;;;;;;;;CAeW,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { LegacyRibbonLabel } from './ribbon-legacy-labels.js';
|
|
2
|
+
/**
|
|
3
|
+
* Stable, locale-independent ids of every ribbon control. `hiddenActions` is keyed on these ids;
|
|
4
|
+
* the English labels below are only the keys the localizer uses to find a control's display text.
|
|
5
|
+
* `element-api.test.ts` fails when a control is added to or removed from the ribbon without
|
|
6
|
+
* updating this list.
|
|
7
|
+
*/
|
|
8
|
+
export declare const RIBBON_ACTION_IDS: readonly ['paste', 'delete-comment', 'previous-comment', 'next-comment', 'insert-caption', 'cross-reference', 'ruler', 'page-setup-dialog', 'cover-page', 'bookmark', 'sort', 'find-options', 'select-options', 'add-text', 'blank-page', 'read-aloud', 'gridlines', 'navigation-pane', 'shading', 'borders', 'header', 'footer', 'page-number', 'header-footer-link', 'header-footer-close', 'header-footer-go-header', 'header-footer-go-footer', 'header-footer-previous', 'header-footer-next', 'header-from-top', 'footer-from-bottom', 'page-size', 'font-dialog', 'paragraph-dialog', 'indent-left', 'indent-right', 'zoom-actual-size', 'multiple-pages', 'page-width', 'one-page', 'word-count', 'spelling', 'symbol', 'date-and-time', 'line-numbers', 'multilevel-list', 'drop-cap', 'change-case', 'format-painter', 'show-paragraph-marks', 'select-all', 'replace', 'cut', 'copy', 'grow-font', 'shrink-font', 'font-family', 'font-size', 'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'font-color', 'text-highlight', 'clear-formatting', 'decrease-indent', 'increase-indent', 'spacing-after', 'spacing-before', 'line-spacing', 'bulleted-list', 'numbered-list', 'decrease-list-level', 'increase-list-level', 'remove-list', 'align-left', 'align-center', 'align-right', 'justify', 'find-and-replace', 'insert-table', 'insert-picture', 'format-picture', 'insert-link', 'insert-page-break', 'insert-column-break', 'margins', 'orientation', 'vertical-alignment', 'columns', 'page-color', 'text-box', 'page-borders', 'watermark', 'hyphenation', 'page-number-format', 'page-numbering', 'different-first-page', 'different-odd-and-even-pages', 'next-page-section-break', 'continuous-section-break', 'even-page-section-break', 'odd-page-section-break', 'insert-table-of-contents', 'update-table-of-contents', 'update-fields', 'insert-table-of-figures', 'insert-footnote', 'insert-endnote', 'paragraph-direction', 'text-language', 'custom-text-language-tag', 'east-asian-language', 'custom-east-asian-language-tag', 'complex-script-language', 'custom-complex-script-language-tag', 'run-direction', 'track-changes', 'display-for-review', 'previous-change', 'next-change', 'accept', 'reject', 'accept-all', 'reject-all', 'add-comment', 'comments', 'show-hidden-text', 'page-thumbnails', 'zoom', 'zoom-dialog', 'layout-view', 'print', 'insert-row-above', 'insert-row-below', 'delete-row', 'insert-column-left', 'insert-column-right', 'delete-column', 'delete-table', 'table-properties'];
|
|
9
|
+
export type RibbonActionId = (typeof RIBBON_ACTION_IDS)[number];
|
|
10
|
+
/** English control label of each action, the lookup key into the locale strings. Display-only. */
|
|
11
|
+
export declare const RIBBON_ACTION_LABELS: Readonly<Record<RibbonActionId, string>>;
|
|
12
|
+
export type { LegacyRibbonLabel };
|
|
13
|
+
/** A value `hiddenActions` accepts: a stable id, or (deprecated) the old English label. */
|
|
14
|
+
export type RibbonActionInput = RibbonActionId | LegacyRibbonLabel;
|
|
15
|
+
export declare function isRibbonActionId(value: string): value is RibbonActionId;
|
|
16
|
+
/** The id of an English control label, or null. */
|
|
17
|
+
export declare function ribbonActionIdForLabel(label: string | null | undefined): RibbonActionId | null;
|
|
18
|
+
/**
|
|
19
|
+
* Maps `hiddenActions` input to ids. Deprecated English labels are converted and listed in
|
|
20
|
+
* `legacy`; unknown values are dropped, matching how the ribbon ignored them before.
|
|
21
|
+
*/
|
|
22
|
+
export declare function normalizeRibbonActions(input: readonly string[]): {
|
|
23
|
+
ids: RibbonActionId[];
|
|
24
|
+
legacy: string[];
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=ribbon-action-ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ribbon-action-ids.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/ribbon-action-ids.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ribbon-colors.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/ribbon-colors.ts"],"names":[],"mappings":"AAoBA,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The English control labels `hiddenActions` accepted before ids existed. Deprecated: accepted for
|
|
3
|
+
* one more release, mapped to ids, and reported through a `document-warning` event.
|
|
4
|
+
*/
|
|
5
|
+
export type LegacyRibbonLabel = 'Font family' | 'Font size' | 'Bold' | 'Italic' | 'Underline' | 'Strikethrough' | 'Superscript' | 'Subscript' | 'Font color' | 'Text highlight' | 'Clear formatting' | 'Decrease indent' | 'Increase indent' | 'Spacing after' | 'Spacing before' | 'Line spacing' | 'Bulleted list' | 'Numbered list' | 'Decrease list level' | 'Increase list level' | 'Remove list' | 'Align left' | 'Align center' | 'Align right' | 'Justify' | 'Find and replace' | 'Insert table' | 'Insert picture' | 'Format picture' | 'Insert link' | 'Insert page break' | 'Insert column break' | 'Margins' | 'Orientation' | 'Vertical alignment' | 'Columns' | 'Page number format' | 'Page numbering' | 'Different first page' | 'Different odd and even pages' | 'Next page section break' | 'Continuous section break' | 'Even page section break' | 'Odd page section break' | 'Insert table of contents' | 'Update table of contents' | 'Update fields' | 'Insert table of figures' | 'Insert footnote' | 'Insert endnote' | 'Paragraph direction' | 'Text language' | 'Custom text language tag' | 'East Asian language' | 'Custom east asian language tag' | 'Complex script language' | 'Custom complex script language tag' | 'Run direction' | 'Track changes' | 'Display for review' | 'Previous change' | 'Next change' | 'Accept' | 'Reject' | 'Accept all' | 'Reject all' | 'Add comment' | 'Comments' | 'Show hidden text' | 'Page thumbnails' | 'Zoom' | 'Layout view' | 'Print' | 'Insert row above' | 'Insert row below' | 'Delete row' | 'Insert column left' | 'Insert column right' | 'Delete column' | 'Delete table';
|
|
6
|
+
//# sourceMappingURL=ribbon-legacy-labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ribbon-legacy-labels.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/ribbon-legacy-labels.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAC1B,aAAa,GACb,WAAW,GACX,MAAM,GACN,QAAQ,GACR,WAAW,GACX,eAAe,GACf,aAAa,GACb,WAAW,GACX,YAAY,GACZ,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,eAAe,GACf,qBAAqB,GACrB,qBAAqB,GACrB,aAAa,GACb,YAAY,GACZ,cAAc,GACd,aAAa,GACb,SAAS,GACT,kBAAkB,GAClB,cAAc,GACd,gBAAgB,GAChB,gBAAgB,GAChB,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,SAAS,GACT,aAAa,GACb,oBAAoB,GACpB,SAAS,GACT,oBAAoB,GACpB,gBAAgB,GAChB,sBAAsB,GACtB,8BAA8B,GAC9B,yBAAyB,GACzB,0BAA0B,GAC1B,yBAAyB,GACzB,wBAAwB,GACxB,0BAA0B,GAC1B,0BAA0B,GAC1B,eAAe,GACf,yBAAyB,GACzB,iBAAiB,GACjB,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,0BAA0B,GAC1B,qBAAqB,GACrB,gCAAgC,GAChC,yBAAyB,GACzB,oCAAoC,GACpC,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,iBAAiB,GACjB,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,UAAU,GACV,kBAAkB,GAClB,iBAAiB,GACjB,MAAM,GACN,aAAa,GACb,OAAO,GACP,kBAAkB,GAClB,kBAAkB,GAClB,YAAY,GACZ,oBAAoB,GACpB,qBAAqB,GACrB,eAAe,GACf,cAAc,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TextRun } from '../index.js';
|
|
2
|
+
export declare const sameJson: (left: unknown, right: unknown) => boolean;
|
|
3
|
+
/** Whether two run lists render identically (adjacent same-format runs compare merged). */
|
|
4
|
+
export declare function sameRuns(left: TextRun[], right: TextRun[]): boolean;
|
|
5
|
+
//# sourceMappingURL=run-compare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-compare.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/run-compare.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,eAAO,MAAM,QAAQ,SAAU,OAAO,SAAS,OAAO,KAAG,OACM,CAAC;AAahE,2FAA2F;AAC3F,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAgFzD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TextRun } from '../index.js';
|
|
2
|
+
import type { MarkSpec } from 'prosemirror-model';
|
|
3
|
+
/**
|
|
4
|
+
* Run properties modeled by docx-core that have no dedicated editor control yet. They travel
|
|
5
|
+
* through the editor as one opaque mark so editing text never drops them from the model (and
|
|
6
|
+
* so the writer never strips them from the source XML).
|
|
7
|
+
*/
|
|
8
|
+
export declare const extraRunFields: readonly ["caps", "smallCaps", "doubleStrike", "vanish", "underlineStyle", "underlineColor", "characterSpacingTwips", "textScalePercent", "ligatures", "kerningHalfPoints", "positionHalfPoints", "shadingFill", "shadingThemeFill", "colorTheme", "fontTheme"];
|
|
9
|
+
/**
|
|
10
|
+
* Toggles that have their own editor marks, carried here only when explicitly off
|
|
11
|
+
* (`w:val="0"`, which cancels a style's bold, italic, strikethrough or underline).
|
|
12
|
+
*/
|
|
13
|
+
export declare const explicitOffFields: readonly ['bold', 'italic', 'strike', 'underline'];
|
|
14
|
+
export type ExtraRunProperties = Pick<TextRun, (typeof extraRunFields)[number] | (typeof explicitOffFields)[number]>;
|
|
15
|
+
export declare function extraRunProperties(run: TextRun): ExtraRunProperties | undefined;
|
|
16
|
+
export declare const runPropertiesMark: MarkSpec;
|
|
17
|
+
//# sourceMappingURL=run-extra-mark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-extra-mark.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/run-extra-mark.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD;;;;GAIG;AACH,eAAO,MAAM,cAAc,iQAgBoB,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,YAAI,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AAEpF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACpC,OAAO,EACP,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CACpE,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS,CAK/E;AAmCD,eAAO,MAAM,iBAAiB,EAAE,QA2B/B,CAAC"}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import type { MarkSpec } from 'prosemirror-model';
|
|
2
|
+
/** Word's highlight palette tokens mapped to stable browser colors. */
|
|
3
|
+
export declare const wordHighlightColors: {
|
|
4
|
+
black: string;
|
|
5
|
+
blue: string;
|
|
6
|
+
cyan: string;
|
|
7
|
+
green: string;
|
|
8
|
+
magenta: string;
|
|
9
|
+
red: string;
|
|
10
|
+
yellow: string;
|
|
11
|
+
white: string;
|
|
12
|
+
darkBlue: string;
|
|
13
|
+
darkCyan: string;
|
|
14
|
+
darkGreen: string;
|
|
15
|
+
darkMagenta: string;
|
|
16
|
+
darkRed: string;
|
|
17
|
+
darkYellow: string;
|
|
18
|
+
darkGray: string;
|
|
19
|
+
lightGray: string;
|
|
20
|
+
};
|
|
21
|
+
/** Run formatting marks; key order sets ProseMirror mark precedence. */
|
|
22
|
+
export declare const markSpecs: {
|
|
23
|
+
insertion: {
|
|
24
|
+
attrs: {
|
|
25
|
+
author: {
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
date: {
|
|
29
|
+
default: null;
|
|
30
|
+
};
|
|
31
|
+
id: {
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
move: {
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
parseDOM: {
|
|
39
|
+
tag: string;
|
|
40
|
+
getAttrs: (el: HTMLElement) => {
|
|
41
|
+
author: string;
|
|
42
|
+
date: string | null;
|
|
43
|
+
id: string;
|
|
44
|
+
move: null;
|
|
45
|
+
};
|
|
46
|
+
}[];
|
|
47
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
48
|
+
'data-revision-id': any;
|
|
49
|
+
'data-author': any;
|
|
50
|
+
'data-date'?: any;
|
|
51
|
+
class: string;
|
|
52
|
+
'data-move'?: string | undefined;
|
|
53
|
+
style: string;
|
|
54
|
+
}, number];
|
|
55
|
+
};
|
|
56
|
+
deletion: {
|
|
57
|
+
attrs: {
|
|
58
|
+
author: {
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
date: {
|
|
62
|
+
default: null;
|
|
63
|
+
};
|
|
64
|
+
id: {
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
move: {
|
|
68
|
+
default: null;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
parseDOM: {
|
|
72
|
+
tag: string;
|
|
73
|
+
getAttrs: (el: HTMLElement) => {
|
|
74
|
+
author: string;
|
|
75
|
+
date: string | null;
|
|
76
|
+
id: string;
|
|
77
|
+
move: null;
|
|
78
|
+
};
|
|
79
|
+
}[];
|
|
80
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
81
|
+
'data-revision-id': any;
|
|
82
|
+
'data-author': any;
|
|
83
|
+
'data-date'?: any;
|
|
84
|
+
class: string;
|
|
85
|
+
'data-move'?: string | undefined;
|
|
86
|
+
style: string;
|
|
87
|
+
}, number];
|
|
88
|
+
};
|
|
89
|
+
comment: {
|
|
90
|
+
attrs: {
|
|
91
|
+
ids: {
|
|
92
|
+
default: never[];
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
parseDOM: {
|
|
96
|
+
tag: string;
|
|
97
|
+
getAttrs: (el: HTMLElement) => {
|
|
98
|
+
ids: string[];
|
|
99
|
+
};
|
|
100
|
+
}[];
|
|
101
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
102
|
+
class: string;
|
|
103
|
+
'data-comment-ids': string;
|
|
104
|
+
}, number];
|
|
105
|
+
};
|
|
106
|
+
bold: {
|
|
107
|
+
parseDOM: {
|
|
108
|
+
tag: string;
|
|
109
|
+
}[];
|
|
110
|
+
toDOM: () => [string, number];
|
|
111
|
+
};
|
|
112
|
+
italic: {
|
|
113
|
+
parseDOM: {
|
|
114
|
+
tag: string;
|
|
115
|
+
}[];
|
|
116
|
+
toDOM: () => [string, number];
|
|
117
|
+
};
|
|
118
|
+
underline: {
|
|
119
|
+
parseDOM: {
|
|
120
|
+
tag: string;
|
|
121
|
+
}[];
|
|
122
|
+
toDOM: () => [string, number];
|
|
123
|
+
};
|
|
124
|
+
strike: {
|
|
125
|
+
parseDOM: ({
|
|
126
|
+
tag: string;
|
|
127
|
+
style?: never;
|
|
128
|
+
} | {
|
|
129
|
+
tag?: never;
|
|
130
|
+
style: string;
|
|
131
|
+
})[];
|
|
132
|
+
toDOM: () => [string, number];
|
|
133
|
+
};
|
|
134
|
+
highlight: {
|
|
135
|
+
attrs: {
|
|
136
|
+
color: {
|
|
137
|
+
default: null;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
parseDOM: {
|
|
141
|
+
tag: string;
|
|
142
|
+
getAttrs: (el: HTMLElement) => false | {
|
|
143
|
+
color: string;
|
|
144
|
+
};
|
|
145
|
+
}[];
|
|
146
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, number] | [string, {
|
|
147
|
+
style: string;
|
|
148
|
+
}, number];
|
|
149
|
+
};
|
|
150
|
+
verticalAlign: {
|
|
151
|
+
attrs: {
|
|
152
|
+
value: {
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
excludes: string;
|
|
157
|
+
parseDOM: {
|
|
158
|
+
tag: string;
|
|
159
|
+
attrs: {
|
|
160
|
+
value: string;
|
|
161
|
+
};
|
|
162
|
+
}[];
|
|
163
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, number] | [string, {
|
|
164
|
+
'data-docx-vertical-align': string;
|
|
165
|
+
}, number];
|
|
166
|
+
};
|
|
167
|
+
language: {
|
|
168
|
+
attrs: {
|
|
169
|
+
language: {
|
|
170
|
+
default: null;
|
|
171
|
+
};
|
|
172
|
+
eastAsiaLanguage: {
|
|
173
|
+
default: null;
|
|
174
|
+
};
|
|
175
|
+
bidiLanguage: {
|
|
176
|
+
default: null;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
parseDOM: {
|
|
180
|
+
tag: string;
|
|
181
|
+
getAttrs: (el: HTMLElement) => {
|
|
182
|
+
language: string | null;
|
|
183
|
+
eastAsiaLanguage: string | null;
|
|
184
|
+
bidiLanguage: string | null;
|
|
185
|
+
};
|
|
186
|
+
}[];
|
|
187
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, Record<string, string>, number];
|
|
188
|
+
};
|
|
189
|
+
runRtl: {
|
|
190
|
+
attrs: {
|
|
191
|
+
value: {
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
excludes: string;
|
|
196
|
+
parseDOM: {
|
|
197
|
+
tag: string;
|
|
198
|
+
attrs: {
|
|
199
|
+
value: boolean;
|
|
200
|
+
};
|
|
201
|
+
}[];
|
|
202
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
203
|
+
dir: string;
|
|
204
|
+
}, number];
|
|
205
|
+
};
|
|
206
|
+
runProperties: MarkSpec;
|
|
207
|
+
link: MarkSpec;
|
|
208
|
+
font: {
|
|
209
|
+
attrs: {
|
|
210
|
+
family: {
|
|
211
|
+
default: null;
|
|
212
|
+
};
|
|
213
|
+
size: {
|
|
214
|
+
default: null;
|
|
215
|
+
};
|
|
216
|
+
color: {
|
|
217
|
+
default: null;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
parseDOM: {
|
|
221
|
+
tag: string;
|
|
222
|
+
getAttrs: (el: HTMLElement) => false | {
|
|
223
|
+
family: string | null;
|
|
224
|
+
size: number | null;
|
|
225
|
+
color: string | null;
|
|
226
|
+
};
|
|
227
|
+
}[];
|
|
228
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
229
|
+
style: string;
|
|
230
|
+
}, number];
|
|
231
|
+
};
|
|
232
|
+
/** Direct `w:rStyle` character style reference; the toolbar picker edits it, decorations render it. */
|
|
233
|
+
characterStyle: {
|
|
234
|
+
attrs: {
|
|
235
|
+
id: {
|
|
236
|
+
default: null;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
parseDOM: {
|
|
240
|
+
tag: string;
|
|
241
|
+
getAttrs: (el: HTMLElement) => {
|
|
242
|
+
id: string | null;
|
|
243
|
+
};
|
|
244
|
+
}[];
|
|
245
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
246
|
+
'data-docx-style': any;
|
|
247
|
+
}, number];
|
|
248
|
+
};
|
|
249
|
+
/** Field result text: carries the field code so results can be recalculated and re-wrapped. */
|
|
250
|
+
field: {
|
|
251
|
+
attrs: {
|
|
252
|
+
instr: {
|
|
253
|
+
default: string;
|
|
254
|
+
};
|
|
255
|
+
simple: {
|
|
256
|
+
default: boolean;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
inclusive: false;
|
|
260
|
+
parseDOM: {
|
|
261
|
+
tag: string;
|
|
262
|
+
getAttrs: (el: HTMLElement) => {
|
|
263
|
+
instr: string;
|
|
264
|
+
simple: boolean;
|
|
265
|
+
};
|
|
266
|
+
}[];
|
|
267
|
+
toDOM: (mark: import("prosemirror-model").Mark) => [string, {
|
|
268
|
+
'data-field': any;
|
|
269
|
+
'data-field-simple'?: string;
|
|
270
|
+
}, number];
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
//# sourceMappingURL=schema-marks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-marks.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/schema-marks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAiDlD,uEAAuE;AACvE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAiB+B,CAAC;AAEhE,wEAAwE;AACxE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YASX,KAAK;gBAAI,OAAO;;;;;;;;;;;;;;;YA2BhB,KAAK;gBAAI,OAAO;;;;;;;gBAGD,KAAK;;;;;;;;;YAW5B,QAAQ;gBAAI,OAAO;;YACnB,gBAAgB;gBAAI,OAAO;;YAC3B,YAAY;gBAAI,OAAO;;;;;;;;;;;;;;;YAsBf,KAAK;gBAAI,OAAO;;;;;;;gBAGW,KAAK;;;;;;;;;;;YAShC,MAAM;gBAAI,OAAO;;YAAU,IAAI;gBAAI,OAAO;;YAAU,KAAK;gBAAI,OAAO;;;;;;;;;;;;;;;IA+B9E,uGAAuG;;;YAE7F,EAAE;gBAAI,OAAO;;;;;;;;;;;;;IASvB,+FAA+F;;;YAErF,KAAK;gBAAI,OAAO;;YAAQ,MAAM;gBAAI,OAAO;;;;;;;;;;;;;;;;CAoBhB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type DocxDiagram } from '../index.js';
|
|
2
|
+
import type { ThemeCatalog } from '../index.js';
|
|
3
|
+
type Drawing = NonNullable<DocxDiagram['drawing']>;
|
|
4
|
+
export interface ThemedDrawing {
|
|
5
|
+
drawing: Drawing;
|
|
6
|
+
/** Resolved theme colours for any scheme reference left in the drawing. */
|
|
7
|
+
schemeColors: Record<string, string>;
|
|
8
|
+
/** Colours whose transforms (lumMod, shade...) the resolver could not apply, by name. */
|
|
9
|
+
unappliedTransforms: string[];
|
|
10
|
+
/** The renderer draws opaque colours: some resolved colours carry transparency. */
|
|
11
|
+
alphaDropped: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Resolves every colour of a diagram's cached drawing against the document theme with
|
|
15
|
+
* `resolveDiagramColor` (scheme references and their transforms become plain sRGB), so the shared
|
|
16
|
+
* SVG renderer, which only knows base scheme colours, draws what the producing application
|
|
17
|
+
* cached. Returns a copy; the model is not changed.
|
|
18
|
+
*/
|
|
19
|
+
export declare function themeDrawing(drawing: Drawing, theme: ThemeCatalog | undefined): ThemedDrawing;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=smartart-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartart-theme.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/smartart-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,KAAK,OAAO,GAAG,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;AAsBnD,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,yFAAyF;IACzF,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,mFAAmF;IACnF,YAAY,EAAE,OAAO,CAAC;CACtB;AASD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,GAAG,SAAS,GAAG,aAAa,CA4B7F"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface BorderSide {
|
|
2
|
+
style?: string;
|
|
3
|
+
sizeEighthPoints?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
interface Borders {
|
|
7
|
+
top?: BorderSide;
|
|
8
|
+
bottom?: BorderSide;
|
|
9
|
+
left?: BorderSide;
|
|
10
|
+
right?: BorderSide;
|
|
11
|
+
insideH?: BorderSide;
|
|
12
|
+
insideV?: BorderSide;
|
|
13
|
+
}
|
|
14
|
+
export declare function cssBorderSide(side: BorderSide | undefined): string | null;
|
|
15
|
+
export declare function parseBordersJson(value: unknown): Borders | undefined;
|
|
16
|
+
export declare function tableStyle(attrs: Record<string, unknown>): string;
|
|
17
|
+
export declare function tableCellStyle(attrs: Record<string, unknown>): string;
|
|
18
|
+
/**
|
|
19
|
+
* CSS for paragraph borders (`w:pBdr`) and shading: each side's line plus its `w:space` gap as
|
|
20
|
+
* padding, so the text keeps its position and the border sits outside it as in Word.
|
|
21
|
+
*/
|
|
22
|
+
export declare function paragraphBoxCss(borders: unknown, shadingFill: unknown): string[];
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=table-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-render.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/table-render.ts"],"names":[],"mappings":"AAGA,UAAU,UAAU;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AACD,UAAU,OAAO;IAChB,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,OAAO,CAAC,EAAE,UAAU,CAAC;CACrB;AAUD,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAOzE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAOpE;AAKD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAoBjE;AA6BD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAuBrE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,EAAE,CAmBhF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-visuals.d.ts","sourceRoot":"","sources":["../../../src/docx/ui/table-visuals.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,EAAE,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EditorTheme } from './types.js';
|
|
2
|
+
/** Every token key; each becomes the kebab-case `--dve-*` custom property. */
|
|
3
|
+
export declare const THEME_KEYS: readonly ["background", "foreground", "card", "cardForeground", "popover", "popoverForeground", "primary", "primaryForeground", "secondary", "secondaryForeground", "muted", "mutedForeground", "accent", "accentForeground", "destructive", "destructiveForeground", "border", "input", "ring", "radius"];
|
|
4
|
+
/** Convert a (partial) theme to `--dve-*` custom properties. Unknown or empty values are skipped. */
|
|
5
|
+
export declare function themeToCssVars(theme: Partial<EditorTheme> | undefined): Record<string, string>;
|
|
6
|
+
//# sourceMappingURL=css-vars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css-vars.d.ts","sourceRoot":"","sources":["../../../../src/docx/ui/theme/css-vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,8EAA8E;AAC9E,eAAO,MAAM,UAAU,4SAqB4B,CAAC;AAIpD,qGAAqG;AACrG,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQ9F"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EditorTheme } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Light preset: Word's neutral chrome with Word blue as primary. Neutrals follow the same
|
|
4
|
+
* role split as pptx-viewer's light theme (background, card, muted, border).
|
|
5
|
+
*/
|
|
6
|
+
export declare const lightTheme: EditorTheme;
|
|
7
|
+
/**
|
|
8
|
+
* Dark preset: pptx-viewer's default dark gray scale (gray-950/900/800/700) with a lighter Word
|
|
9
|
+
* blue as primary so it stays legible on dark surfaces.
|
|
10
|
+
*/
|
|
11
|
+
export declare const darkTheme: EditorTheme;
|
|
12
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/docx/ui/theme/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,WAqBxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,WAqBvB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type EditorTheme, type EditorThemeMode } from './types.js';
|
|
2
|
+
/** Unknown values fall back to `auto`, which follows the OS color scheme. */
|
|
3
|
+
export declare function normalizeThemeMode(value: unknown): EditorThemeMode;
|
|
4
|
+
/**
|
|
5
|
+
* Apply custom-property overrides inline on the host so they beat the stylesheet's presets in
|
|
6
|
+
* both light and dark. Returns the applied names so the next call can clear stale ones.
|
|
7
|
+
*/
|
|
8
|
+
export declare function applyThemeColors(host: HTMLElement, previous: readonly string[], colors: Partial<EditorTheme> | undefined): string[];
|
|
9
|
+
//# sourceMappingURL=element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../../src/docx/ui/theme/element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGxF,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAIlE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS,GACtC,MAAM,EAAE,CAKV"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { lightTheme, darkTheme } from './defaults.js';
|
|
2
|
+
export { themeToCssVars, THEME_KEYS } from './css-vars.js';
|
|
3
|
+
export { applyThemeColors, normalizeThemeMode } from './element.js';
|
|
4
|
+
export type { EditorTheme, EditorThemeMode } from './types.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/docx/ui/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACpE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC"}
|