superdoc 2.21.0 → 2.22.0-next.10
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/chunks/{create-super-doc-ui-yKesgn9b.cjs → create-super-doc-ui-DTLJMJIl.cjs} +1 -0
- package/dist/chunks/{create-super-doc-ui-0CZTlOvl.es.js → create-super-doc-ui-Dos1KQcL.es.js} +1 -0
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +2 -2
- package/dist/document-api/src/diff/diff.types.d.ts +9 -0
- package/dist/document-api/src/index.d.ts +1 -1
- package/dist/document-api/src/selection/selection.d.ts +1 -1
- package/dist/document-api/src/selection/selection.types.d.ts +19 -1
- package/dist/layout-engine/contracts/src/index.d.ts +27 -1
- package/dist/layout-engine/painters/dom/src/runs/text-run.d.ts +8 -0
- package/dist/layout-engine/painters/dom/src/table/border-utils.d.ts +8 -1
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/shared/font-system/src/document-font-options.d.ts +3 -9
- package/dist/style.css +22 -22
- package/dist/style.layered.css +22 -22
- package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +3 -0
- package/dist/superdoc/src/public/ui/types.d.ts +2 -0
- package/dist/superdoc.cjs +30 -6
- package/dist/superdoc.es.js +30 -6
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +36 -36
- package/package.json +2 -2
|
@@ -7214,6 +7214,7 @@ function createSuperDocUI(options) {
|
|
|
7214
7214
|
empty: info.empty === true,
|
|
7215
7215
|
target,
|
|
7216
7216
|
selectionTarget: info.selectionTarget ?? null,
|
|
7217
|
+
tableSelection: info.tableSelection ?? null,
|
|
7217
7218
|
activeMarks: Array.isArray(info.activeMarks) ? info.activeMarks : [],
|
|
7218
7219
|
activeCommentIds: Array.isArray(info.activeCommentIds) ? info.activeCommentIds : [],
|
|
7219
7220
|
activeChangeIds: Array.isArray(info.activeChangeIds) ? info.activeChangeIds : [],
|
package/dist/chunks/{create-super-doc-ui-0CZTlOvl.es.js → create-super-doc-ui-Dos1KQcL.es.js}
RENAMED
|
@@ -7213,6 +7213,7 @@ function createSuperDocUI(options) {
|
|
|
7213
7213
|
empty: info.empty === true,
|
|
7214
7214
|
target,
|
|
7215
7215
|
selectionTarget: info.selectionTarget ?? null,
|
|
7216
|
+
tableSelection: info.tableSelection ?? null,
|
|
7216
7217
|
activeMarks: Array.isArray(info.activeMarks) ? info.activeMarks : [],
|
|
7217
7218
|
activeCommentIds: Array.isArray(info.activeCommentIds) ? info.activeCommentIds : [],
|
|
7218
7219
|
activeChangeIds: Array.isArray(info.activeChangeIds) ? info.activeChangeIds : [],
|
|
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
19
19
|
var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
|
|
20
20
|
var ENGINE_INFO = Object.freeze({
|
|
21
21
|
...PRIVATE_ENGINE_INFO,
|
|
22
|
-
superdocVersion: "2.
|
|
22
|
+
superdocVersion: "2.22.0-next.10",
|
|
23
23
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
24
24
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
25
25
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
18
18
|
var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
|
|
19
19
|
var ENGINE_INFO = Object.freeze({
|
|
20
20
|
...PRIVATE_ENGINE_INFO,
|
|
21
|
-
superdocVersion: "2.
|
|
21
|
+
superdocVersion: "2.22.0-next.10",
|
|
22
22
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
23
23
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
24
24
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -1024,8 +1024,8 @@ export declare const OPERATION_DEFINITIONS: {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
readonly 'selection.current': {
|
|
1026
1026
|
readonly memberPath: "selection.current";
|
|
1027
|
-
readonly description: "Read the editor's current selection as a portable SelectionInfo with
|
|
1028
|
-
readonly expectedResult: "Returns a SelectionInfo with `empty`, `target` (TextTarget or null), optional `selectionTarget`, `activeMarks`, and optionally `text` when `includeText: true`.";
|
|
1027
|
+
readonly description: "Read the editor's current selection as a portable SelectionInfo with text targets or V2 browser table/cell metadata. Primitive for building custom comments UIs, floating toolbars, and other selection-driven components without reaching into ProseMirror internals.";
|
|
1028
|
+
readonly expectedResult: "Returns a SelectionInfo with `empty`, `target` (TextTarget or null), optional `selectionTarget` and `tableSelection`, `activeMarks`, and optionally `text` when `includeText: true`.";
|
|
1029
1029
|
readonly requiresDocumentContext: true;
|
|
1030
1030
|
readonly metadata: CommandStaticMetadata;
|
|
1031
1031
|
readonly referenceDocPath: "selection/current.mdx";
|
|
@@ -105,14 +105,23 @@ export interface DiffApplyResult {
|
|
|
105
105
|
coverage: DiffCoverage;
|
|
106
106
|
summary: DiffSummary;
|
|
107
107
|
diagnostics: string[];
|
|
108
|
+
/** Style definitions applied directly; these changes remain when body revisions are rejected. */
|
|
109
|
+
styleChanges?: {
|
|
110
|
+
changeMode: 'direct';
|
|
111
|
+
partUris: string[];
|
|
112
|
+
};
|
|
108
113
|
}
|
|
109
114
|
/** Input for `diff.compare`. */
|
|
110
115
|
export interface DiffCompareInput {
|
|
111
116
|
targetSnapshot: DiffSnapshot;
|
|
117
|
+
/** Assess tracked eligibility with explicit consent to apply style definitions directly. */
|
|
118
|
+
styleChangeMode?: 'direct';
|
|
112
119
|
}
|
|
113
120
|
/** Input for `diff.apply`. */
|
|
114
121
|
export interface DiffApplyInput {
|
|
115
122
|
diff: DiffPayload;
|
|
123
|
+
/** Apply target style definitions directly, even when body changes are tracked. */
|
|
124
|
+
styleChangeMode?: 'direct';
|
|
116
125
|
}
|
|
117
126
|
/** How body content changes are applied. */
|
|
118
127
|
export type DiffChangeMode = 'direct' | 'tracked';
|
|
@@ -76,7 +76,7 @@ export * from './export/export.types.js';
|
|
|
76
76
|
export type { SelectionMutationAdapter, SelectionMutationRequest, SelectionInsertRequest, } from './selection-mutation.js';
|
|
77
77
|
export type { RangeAnchor, DocumentEdgeAnchor, PointAnchor, RefBoundaryAnchor, ResolveRangeInput, ResolveRangeOutput, RangeBlockPreview, RangePreview, RangeResolverAdapter, ScrollIntoViewInput, ScrollIntoViewOutput, } from './ranges/index.js';
|
|
78
78
|
export { executeResolveRange } from './ranges/index.js';
|
|
79
|
-
export type { SelectionApi, SelectionAdapter, SelectionCurrentInput, SelectionExtractOoxmlInput, SelectionExtractOoxmlResult, SelectionOoxmlDependency, SelectionTableCellsTarget, SelectionInfo, } from './selection/selection.js';
|
|
79
|
+
export type { SelectionApi, SelectionAdapter, SelectionCurrentInput, SelectionExtractOoxmlInput, SelectionExtractOoxmlResult, SelectionOoxmlDependency, SelectionTableCellsTarget, TableSelectionInfo, SelectionInfo, } from './selection/selection.js';
|
|
80
80
|
export { executeSelectionCurrent, executeSelectionExtractOoxml } from './selection/selection.js';
|
|
81
81
|
export type { HeaderFootersAdapter, HeaderFootersApi } from './header-footers/header-footers.js';
|
|
82
82
|
export * from './header-footers/header-footers.types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectionCurrentInput, SelectionExtractOoxmlInput, SelectionExtractOoxmlResult, SelectionInfo } from './selection.types.js';
|
|
2
|
-
export type { SelectionCurrentInput, SelectionExtractOoxmlInput, SelectionExtractOoxmlResult, SelectionOoxmlDependency, SelectionTableCellsTarget, SelectionInfo, } from './selection.types.js';
|
|
2
|
+
export type { SelectionCurrentInput, SelectionExtractOoxmlInput, SelectionExtractOoxmlResult, SelectionOoxmlDependency, SelectionTableCellsTarget, TableSelectionInfo, SelectionInfo, } from './selection.types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Engine-specific adapter for the selection API.
|
|
5
5
|
*/
|
|
@@ -12,6 +12,17 @@ export interface SelectionTableCellsTarget {
|
|
|
12
12
|
};
|
|
13
13
|
story?: SelectionTarget['story'];
|
|
14
14
|
}
|
|
15
|
+
/** Table identity for a caret, rectangular cell selection, or whole-grid selection. */
|
|
16
|
+
export interface TableSelectionInfo extends SelectionTableCellsTarget {
|
|
17
|
+
/** `cell` includes a caret or text range contained in one cell. */
|
|
18
|
+
type: 'table' | 'cell' | 'cells';
|
|
19
|
+
/** Selected cells in row-major order, using opaque Document API node IDs. */
|
|
20
|
+
cells: {
|
|
21
|
+
nodeId: string;
|
|
22
|
+
rowIndex: number;
|
|
23
|
+
columnIndex: number;
|
|
24
|
+
}[];
|
|
25
|
+
}
|
|
15
26
|
export type SelectionExtractOoxmlInput = {
|
|
16
27
|
at: SelectionTarget | SelectionTableCellsTarget;
|
|
17
28
|
selection?: never;
|
|
@@ -93,7 +104,7 @@ export interface SelectionCurrentInput {
|
|
|
93
104
|
}
|
|
94
105
|
/**
|
|
95
106
|
* Canonical shape of the editor's current selection, projected into the
|
|
96
|
-
* Document API's text-address
|
|
107
|
+
* Document API's text and table-address models. This is the primitive consumers use
|
|
97
108
|
* to build custom comments UIs, floating toolbars, mention popovers, etc.
|
|
98
109
|
*
|
|
99
110
|
* Unlike PM's `Selection` (positional and private), `SelectionInfo` is
|
|
@@ -120,6 +131,13 @@ export interface SelectionInfo {
|
|
|
120
131
|
* selection-target model the write APIs consume directly.
|
|
121
132
|
*/
|
|
122
133
|
selectionTarget?: SelectionTarget | null;
|
|
134
|
+
/**
|
|
135
|
+
* V2 browser table selection with inclusive, zero-based grid coordinates.
|
|
136
|
+
* Rectangles in unmerged tables clear `target` and `selectionTarget`.
|
|
137
|
+
* Rectangles in tables containing merged cells return null and empty text.
|
|
138
|
+
* A single-cell caret/text range preserves its text targets and `empty` value.
|
|
139
|
+
*/
|
|
140
|
+
tableSelection?: TableSelectionInfo | null;
|
|
123
141
|
/**
|
|
124
142
|
* Active marks at the caret or across the selection. Names are
|
|
125
143
|
* ProseMirror mark type names (e.g. `'bold'`, `'italic'`, `'link'`).
|
|
@@ -84,6 +84,24 @@ export type StructuredContentLockMode = 'unlocked' | 'sdtLocked' | 'contentLocke
|
|
|
84
84
|
* DOM textContent (a11y / copy-paste behavior).
|
|
85
85
|
*/
|
|
86
86
|
export type StructuredContentAppearance = 'boundingBox' | 'tags' | 'hidden';
|
|
87
|
+
/** The visible state Word stores on a `w14:checkbox` content control. */
|
|
88
|
+
export type StructuredContentCheckbox = {
|
|
89
|
+
checked: boolean;
|
|
90
|
+
checkedSymbol: {
|
|
91
|
+
font: string;
|
|
92
|
+
char: string;
|
|
93
|
+
};
|
|
94
|
+
uncheckedSymbol: {
|
|
95
|
+
font: string;
|
|
96
|
+
char: string;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* CSS-pixel size resolved from the checkbox SDT's own `<w:rPr>`.
|
|
100
|
+
* Word applies this control-level run formatting to its glyph even when the
|
|
101
|
+
* carrier `<w:sym>` does not retain that formatting through projection.
|
|
102
|
+
*/
|
|
103
|
+
fontSize?: number;
|
|
104
|
+
};
|
|
87
105
|
export type StructuredContentMetadata = {
|
|
88
106
|
type: 'structuredContent';
|
|
89
107
|
scope: 'inline' | 'block';
|
|
@@ -93,6 +111,8 @@ export type StructuredContentMetadata = {
|
|
|
93
111
|
lockMode?: StructuredContentLockMode;
|
|
94
112
|
/** Appearance from the SDT's `<w15:appearance>` element, when present. */
|
|
95
113
|
appearance?: StructuredContentAppearance;
|
|
114
|
+
/** Word-native checkbox state parsed from the SDT properties, when present. */
|
|
115
|
+
checkbox?: StructuredContentCheckbox;
|
|
96
116
|
sdtPr?: unknown;
|
|
97
117
|
};
|
|
98
118
|
export type DocumentSectionMetadata = {
|
|
@@ -449,6 +469,10 @@ export type TabRun = RunMarks & {
|
|
|
449
469
|
pmEnd?: number;
|
|
450
470
|
/** SDT metadata if tab is inside a structured document tag. */
|
|
451
471
|
sdt?: SdtMetadata;
|
|
472
|
+
/** Tracked-change identity of the wrapper owning this tab. */
|
|
473
|
+
trackedChange?: TrackedChangeMeta;
|
|
474
|
+
/** Ordered tracked-change layers when wrappers overlap. */
|
|
475
|
+
trackedChanges?: TrackedChangeMeta[];
|
|
452
476
|
};
|
|
453
477
|
export type LineBreakRun = {
|
|
454
478
|
kind: 'lineBreak';
|
|
@@ -764,7 +788,7 @@ export type ParagraphBlock = {
|
|
|
764
788
|
inlineBoxes?: InlineBoxSpan[];
|
|
765
789
|
};
|
|
766
790
|
/** Border style (subset of OOXML ST_Border). */
|
|
767
|
-
export type BorderStyle = 'none' | 'single' | 'double' | 'dashed' | 'dotted' | 'thick' | 'triple' | 'dotDash' | 'dotDotDash' | 'wave' | 'doubleWave';
|
|
791
|
+
export type BorderStyle = 'none' | 'single' | 'double' | 'dashed' | 'dashSmallGap' | 'dotted' | 'thick' | 'triple' | 'dotDash' | 'dotDotDash' | 'wave' | 'doubleWave' | 'dashDotStroked';
|
|
768
792
|
/** Border specification for table and cell borders. */
|
|
769
793
|
export type BorderSpec = {
|
|
770
794
|
style?: BorderStyle;
|
|
@@ -802,6 +826,8 @@ export type CellBorders = {
|
|
|
802
826
|
right?: BorderSpec;
|
|
803
827
|
bottom?: BorderSpec;
|
|
804
828
|
left?: BorderSpec;
|
|
829
|
+
tl2br?: BorderSpec;
|
|
830
|
+
tr2bl?: BorderSpec;
|
|
805
831
|
};
|
|
806
832
|
/** True when a normalized border contributes a visible edge. */
|
|
807
833
|
export declare const isPresentBorder: (border?: BorderSpec) => border is BorderSpec;
|
|
@@ -2,6 +2,14 @@ import { Run, TextRun } from '../../../../contracts/src/index.js';
|
|
|
2
2
|
import { FragmentRenderContext } from '../renderer.js';
|
|
3
3
|
import { BROWSER_DEFAULT_FONT_SIZE } from '../styles.js';
|
|
4
4
|
import { RunRenderContext, TrackedChangesRenderConfig } from './types.js';
|
|
5
|
+
export type CheckboxGlyphs = {
|
|
6
|
+
checked: string;
|
|
7
|
+
unchecked: string;
|
|
8
|
+
current: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const checkboxGlyphs: (run: TextRun) => CheckboxGlyphs | null;
|
|
11
|
+
/** Stamps the authored states needed to reflect an accepted checkbox toggle. */
|
|
12
|
+
export declare const applyCheckboxGlyphMetadata: (element: HTMLElement, run: TextRun) => CheckboxGlyphs | null;
|
|
5
13
|
/**
|
|
6
14
|
* Underline thickness in px, scaled to font size. Shared by text runs
|
|
7
15
|
* (`text-decoration-thickness`) and tab underlines (border width) so a run's
|
|
@@ -53,7 +53,14 @@ export declare const applyBorder: (element: HTMLElement, side: BorderSide, borde
|
|
|
53
53
|
* });
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
export declare const applyCellBorders: (element: HTMLElement, borders?: CellBorders) => void;
|
|
56
|
+
export declare const applyCellBorders: (element: HTMLElement, borders?: CellBorders, useSvgOverlay?: boolean) => void;
|
|
57
|
+
/** Paints cell-only border patterns that CSS borders cannot represent. */
|
|
58
|
+
export declare const createCellBorderOverlay: (doc: Document, borders: CellBorders | undefined, geometry: {
|
|
59
|
+
left: string;
|
|
60
|
+
top: string;
|
|
61
|
+
width: number;
|
|
62
|
+
height: number;
|
|
63
|
+
}) => SVGSVGElement | null;
|
|
57
64
|
/**
|
|
58
65
|
* Converts a TableBorderValue to a BorderSpec for rendering.
|
|
59
66
|
*
|
package/dist/public/ui-react.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-DTLJMJIl.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
//#region src/public/ui/react.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-Dos1KQcL.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
4
4
|
//#region src/public/ui/react.ts
|
package/dist/public/ui-vue.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-DTLJMJIl.cjs");
|
|
3
3
|
const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
|
|
4
4
|
let superdoc_entry_vue = require("vue");
|
|
5
5
|
//#region src/public/ui/vue.ts
|
package/dist/public/ui-vue.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-Dos1KQcL.es.js";
|
|
2
2
|
import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
|
|
3
3
|
import { computed, inject, onScopeDispose, provide, shallowRef, toRaw, toValue, watch } from "vue";
|
|
4
4
|
//#region src/public/ui/vue.ts
|
package/dist/public/ui.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-
|
|
2
|
+
const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-DTLJMJIl.cjs");
|
|
3
3
|
exports.BUILT_IN_COMMAND_IDS = require_create_super_doc_ui.BUILT_IN_COMMAND_IDS;
|
|
4
4
|
exports.createSuperDocUI = require_create_super_doc_ui.createSuperDocUI;
|
|
5
5
|
exports.shallowEqual = require_create_super_doc_ui.shallowEqual;
|
package/dist/public/ui.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as BUILT_IN_COMMAND_IDS, t as createSuperDocUI, u as shallowEqual } from "../chunks/create-super-doc-ui-
|
|
1
|
+
import { a as BUILT_IN_COMMAND_IDS, t as createSuperDocUI, u as shallowEqual } from "../chunks/create-super-doc-ui-Dos1KQcL.es.js";
|
|
2
2
|
export { BUILT_IN_COMMAND_IDS, createSuperDocUI, shallowEqual };
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Document-scoped font options for the toolbar: one option per logical family a loaded document
|
|
3
|
-
* actually uses. Distinct from the static {@link ./font-offerings} (the bundled choices): this is
|
|
4
|
-
* runtime and document-scoped because it needs the document's registry and resolver.
|
|
5
|
-
*
|
|
6
|
-
* Fallback diagnostics are intentionally not part of this surface. The toolbar lists document fonts as
|
|
7
|
-
* plain picker rows; internal fallback/reporting details stay in SuperDoc's runtime font report.
|
|
8
|
-
*/
|
|
9
1
|
import { type BundledActivation } from './activation.js';
|
|
10
2
|
import { type UsedFace } from './report.js';
|
|
11
3
|
import type { FontRegistry } from './registry.js';
|
|
@@ -22,6 +14,8 @@ export interface DocumentFontOption {
|
|
|
22
14
|
* provided font previews as itself). The regular face is used as the representative when present.
|
|
23
15
|
*/
|
|
24
16
|
previewFamily: string;
|
|
17
|
+
/** First CSS generic in the rendered logical stack, or null when that stack has none. */
|
|
18
|
+
genericFamily: string | null;
|
|
25
19
|
}
|
|
26
20
|
/**
|
|
27
21
|
* The document-specific font options for the toolbar: one per LOGICAL family the document renders,
|
|
@@ -50,4 +44,4 @@ export interface FontFamilyOption {
|
|
|
50
44
|
* always listed - they come from the loaded document itself. Sorted alphabetically, deduped by
|
|
51
45
|
* logical family.
|
|
52
46
|
*/
|
|
53
|
-
export declare function buildFontFamilyOptions(documentOptions: ReadonlyArray<DocumentFontOption
|
|
47
|
+
export declare function buildFontFamilyOptions(documentOptions: ReadonlyArray<Pick<DocumentFontOption, 'logicalFamily' | 'previewFamily'>>, activation?: BundledActivation): FontFamilyOption[];
|
package/dist/style.css
CHANGED
|
@@ -2340,34 +2340,34 @@ img[data-v-c95b2073] {
|
|
|
2340
2340
|
pointer-events: auto;
|
|
2341
2341
|
}
|
|
2342
2342
|
|
|
2343
|
-
.superdoc[data-v-
|
|
2343
|
+
.superdoc[data-v-99399849] {
|
|
2344
2344
|
display: flex;
|
|
2345
2345
|
position: relative;
|
|
2346
2346
|
}
|
|
2347
|
-
.right-sidebar[data-v-
|
|
2347
|
+
.right-sidebar[data-v-99399849] {
|
|
2348
2348
|
min-width: 320px;
|
|
2349
2349
|
height: 100%;
|
|
2350
2350
|
}
|
|
2351
|
-
.floating-comments[data-v-
|
|
2351
|
+
.floating-comments[data-v-99399849] {
|
|
2352
2352
|
min-width: 300px;
|
|
2353
2353
|
width: 300px;
|
|
2354
2354
|
height: 100%;
|
|
2355
2355
|
overflow: visible;
|
|
2356
2356
|
}
|
|
2357
|
-
.superdoc__layers[data-v-
|
|
2357
|
+
.superdoc__layers[data-v-99399849] {
|
|
2358
2358
|
height: 100%;
|
|
2359
2359
|
position: relative;
|
|
2360
2360
|
box-sizing: border-box;
|
|
2361
2361
|
}
|
|
2362
|
-
.superdoc__document[data-v-
|
|
2362
|
+
.superdoc__document[data-v-99399849] {
|
|
2363
2363
|
width: 100%;
|
|
2364
2364
|
position: relative;
|
|
2365
2365
|
}
|
|
2366
|
-
.superdoc__sub-document[data-v-
|
|
2366
|
+
.superdoc__sub-document[data-v-99399849] {
|
|
2367
2367
|
width: 100%;
|
|
2368
2368
|
position: relative;
|
|
2369
2369
|
}
|
|
2370
|
-
.superdoc__selection-layer[data-v-
|
|
2370
|
+
.superdoc__selection-layer[data-v-99399849] {
|
|
2371
2371
|
position: absolute;
|
|
2372
2372
|
min-width: 100%;
|
|
2373
2373
|
min-height: 100%;
|
|
@@ -2378,13 +2378,13 @@ img[data-v-c95b2073] {
|
|
|
2378
2378
|
/* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
|
|
2379
2379
|
the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
|
|
2380
2380
|
clickable, and below the selection layer (z-index 10). */
|
|
2381
|
-
.superdoc__whiteboard-layer[data-v-
|
|
2381
|
+
.superdoc__whiteboard-layer[data-v-99399849] {
|
|
2382
2382
|
z-index: 4;
|
|
2383
2383
|
}
|
|
2384
|
-
.superdoc__temp-selection[data-v-
|
|
2384
|
+
.superdoc__temp-selection[data-v-99399849] {
|
|
2385
2385
|
position: absolute;
|
|
2386
2386
|
}
|
|
2387
|
-
.superdoc__right-sidebar[data-v-
|
|
2387
|
+
.superdoc__right-sidebar[data-v-99399849] {
|
|
2388
2388
|
width: 320px;
|
|
2389
2389
|
min-width: 320px;
|
|
2390
2390
|
padding: 0 10px;
|
|
@@ -2392,7 +2392,7 @@ img[data-v-c95b2073] {
|
|
|
2392
2392
|
position: relative;
|
|
2393
2393
|
z-index: 2;
|
|
2394
2394
|
}
|
|
2395
|
-
.superdoc__compact-comment-popover[data-v-
|
|
2395
|
+
.superdoc__compact-comment-popover[data-v-99399849] {
|
|
2396
2396
|
position: absolute;
|
|
2397
2397
|
top: 12px;
|
|
2398
2398
|
right: 12px;
|
|
@@ -2401,14 +2401,14 @@ img[data-v-c95b2073] {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
|
|
2403
2403
|
/* Tools styles */
|
|
2404
|
-
.tools[data-v-
|
|
2404
|
+
.tools[data-v-99399849] {
|
|
2405
2405
|
position: absolute;
|
|
2406
2406
|
z-index: 3;
|
|
2407
2407
|
display: flex;
|
|
2408
2408
|
flex-direction: column;
|
|
2409
2409
|
gap: var(--sd-ui-tools-gap, 6px);
|
|
2410
2410
|
}
|
|
2411
|
-
.tools-item[data-v-
|
|
2411
|
+
.tools-item[data-v-99399849] {
|
|
2412
2412
|
display: flex;
|
|
2413
2413
|
align-items: center;
|
|
2414
2414
|
justify-content: center;
|
|
@@ -2419,10 +2419,10 @@ img[data-v-c95b2073] {
|
|
|
2419
2419
|
cursor: pointer;
|
|
2420
2420
|
position: relative;
|
|
2421
2421
|
}
|
|
2422
|
-
.tools-item i[data-v-
|
|
2422
|
+
.tools-item i[data-v-99399849] {
|
|
2423
2423
|
cursor: pointer;
|
|
2424
2424
|
}
|
|
2425
|
-
.superdoc__tools-icon[data-v-
|
|
2425
|
+
.superdoc__tools-icon[data-v-99399849] {
|
|
2426
2426
|
width: var(--sd-ui-tools-icon-size, 20px);
|
|
2427
2427
|
height: var(--sd-ui-tools-icon-size, 20px);
|
|
2428
2428
|
flex-shrink: 0;
|
|
@@ -2437,22 +2437,22 @@ img[data-v-c95b2073] {
|
|
|
2437
2437
|
|
|
2438
2438
|
/* 834px is iPad screen size in portrait orientation */
|
|
2439
2439
|
@media (max-width: 834px) {
|
|
2440
|
-
.superdoc .superdoc__layers[data-v-
|
|
2440
|
+
.superdoc .superdoc__layers[data-v-99399849] {
|
|
2441
2441
|
margin: 0;
|
|
2442
2442
|
border: 0 !important;
|
|
2443
2443
|
box-shadow: none;
|
|
2444
2444
|
}
|
|
2445
|
-
.superdoc__sub-document[data-v-
|
|
2445
|
+
.superdoc__sub-document[data-v-99399849] {
|
|
2446
2446
|
max-width: 100%;
|
|
2447
2447
|
}
|
|
2448
|
-
.superdoc__right-sidebar[data-v-
|
|
2448
|
+
.superdoc__right-sidebar[data-v-99399849] {
|
|
2449
2449
|
padding: 10px;
|
|
2450
2450
|
position: relative;
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
|
|
2454
2454
|
/* AI Writer styles */
|
|
2455
|
-
.ai-writer-container[data-v-
|
|
2455
|
+
.ai-writer-container[data-v-99399849] {
|
|
2456
2456
|
position: fixed;
|
|
2457
2457
|
z-index: 1000;
|
|
2458
2458
|
background: white;
|
|
@@ -2468,10 +2468,10 @@ img[data-v-c95b2073] {
|
|
|
2468
2468
|
transform: translateY(-50%);
|
|
2469
2469
|
z-index: 50;
|
|
2470
2470
|
} */
|
|
2471
|
-
.ai-tool > svg[data-v-
|
|
2471
|
+
.ai-tool > svg[data-v-99399849] {
|
|
2472
2472
|
fill: transparent;
|
|
2473
2473
|
}
|
|
2474
|
-
.ai-tool[data-v-
|
|
2474
|
+
.ai-tool[data-v-99399849]::before {
|
|
2475
2475
|
content: '';
|
|
2476
2476
|
position: absolute;
|
|
2477
2477
|
width: 20px;
|
|
@@ -2492,7 +2492,7 @@ img[data-v-c95b2073] {
|
|
|
2492
2492
|
filter: brightness(1.2);
|
|
2493
2493
|
transition: filter 0.2s ease;
|
|
2494
2494
|
}
|
|
2495
|
-
.ai-tool[data-v-
|
|
2495
|
+
.ai-tool[data-v-99399849]:hover::before {
|
|
2496
2496
|
filter: brightness(1.3);
|
|
2497
2497
|
}
|
|
2498
2498
|
|
package/dist/style.layered.css
CHANGED
|
@@ -2340,34 +2340,34 @@ img[data-v-c95b2073] {
|
|
|
2340
2340
|
pointer-events: auto;
|
|
2341
2341
|
}
|
|
2342
2342
|
|
|
2343
|
-
.superdoc[data-v-
|
|
2343
|
+
.superdoc[data-v-99399849] {
|
|
2344
2344
|
display: flex;
|
|
2345
2345
|
position: relative;
|
|
2346
2346
|
}
|
|
2347
|
-
.right-sidebar[data-v-
|
|
2347
|
+
.right-sidebar[data-v-99399849] {
|
|
2348
2348
|
min-width: 320px;
|
|
2349
2349
|
height: 100%;
|
|
2350
2350
|
}
|
|
2351
|
-
.floating-comments[data-v-
|
|
2351
|
+
.floating-comments[data-v-99399849] {
|
|
2352
2352
|
min-width: 300px;
|
|
2353
2353
|
width: 300px;
|
|
2354
2354
|
height: 100%;
|
|
2355
2355
|
overflow: visible;
|
|
2356
2356
|
}
|
|
2357
|
-
.superdoc__layers[data-v-
|
|
2357
|
+
.superdoc__layers[data-v-99399849] {
|
|
2358
2358
|
height: 100%;
|
|
2359
2359
|
position: relative;
|
|
2360
2360
|
box-sizing: border-box;
|
|
2361
2361
|
}
|
|
2362
|
-
.superdoc__document[data-v-
|
|
2362
|
+
.superdoc__document[data-v-99399849] {
|
|
2363
2363
|
width: 100%;
|
|
2364
2364
|
position: relative;
|
|
2365
2365
|
}
|
|
2366
|
-
.superdoc__sub-document[data-v-
|
|
2366
|
+
.superdoc__sub-document[data-v-99399849] {
|
|
2367
2367
|
width: 100%;
|
|
2368
2368
|
position: relative;
|
|
2369
2369
|
}
|
|
2370
|
-
.superdoc__selection-layer[data-v-
|
|
2370
|
+
.superdoc__selection-layer[data-v-99399849] {
|
|
2371
2371
|
position: absolute;
|
|
2372
2372
|
min-width: 100%;
|
|
2373
2373
|
min-height: 100%;
|
|
@@ -2378,13 +2378,13 @@ img[data-v-c95b2073] {
|
|
|
2378
2378
|
/* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
|
|
2379
2379
|
the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
|
|
2380
2380
|
clickable, and below the selection layer (z-index 10). */
|
|
2381
|
-
.superdoc__whiteboard-layer[data-v-
|
|
2381
|
+
.superdoc__whiteboard-layer[data-v-99399849] {
|
|
2382
2382
|
z-index: 4;
|
|
2383
2383
|
}
|
|
2384
|
-
.superdoc__temp-selection[data-v-
|
|
2384
|
+
.superdoc__temp-selection[data-v-99399849] {
|
|
2385
2385
|
position: absolute;
|
|
2386
2386
|
}
|
|
2387
|
-
.superdoc__right-sidebar[data-v-
|
|
2387
|
+
.superdoc__right-sidebar[data-v-99399849] {
|
|
2388
2388
|
width: 320px;
|
|
2389
2389
|
min-width: 320px;
|
|
2390
2390
|
padding: 0 10px;
|
|
@@ -2392,7 +2392,7 @@ img[data-v-c95b2073] {
|
|
|
2392
2392
|
position: relative;
|
|
2393
2393
|
z-index: 2;
|
|
2394
2394
|
}
|
|
2395
|
-
.superdoc__compact-comment-popover[data-v-
|
|
2395
|
+
.superdoc__compact-comment-popover[data-v-99399849] {
|
|
2396
2396
|
position: absolute;
|
|
2397
2397
|
top: 12px;
|
|
2398
2398
|
right: 12px;
|
|
@@ -2401,14 +2401,14 @@ img[data-v-c95b2073] {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
|
|
2403
2403
|
/* Tools styles */
|
|
2404
|
-
.tools[data-v-
|
|
2404
|
+
.tools[data-v-99399849] {
|
|
2405
2405
|
position: absolute;
|
|
2406
2406
|
z-index: 3;
|
|
2407
2407
|
display: flex;
|
|
2408
2408
|
flex-direction: column;
|
|
2409
2409
|
gap: var(--sd-ui-tools-gap, 6px);
|
|
2410
2410
|
}
|
|
2411
|
-
.tools-item[data-v-
|
|
2411
|
+
.tools-item[data-v-99399849] {
|
|
2412
2412
|
display: flex;
|
|
2413
2413
|
align-items: center;
|
|
2414
2414
|
justify-content: center;
|
|
@@ -2419,10 +2419,10 @@ img[data-v-c95b2073] {
|
|
|
2419
2419
|
cursor: pointer;
|
|
2420
2420
|
position: relative;
|
|
2421
2421
|
}
|
|
2422
|
-
.tools-item i[data-v-
|
|
2422
|
+
.tools-item i[data-v-99399849] {
|
|
2423
2423
|
cursor: pointer;
|
|
2424
2424
|
}
|
|
2425
|
-
.superdoc__tools-icon[data-v-
|
|
2425
|
+
.superdoc__tools-icon[data-v-99399849] {
|
|
2426
2426
|
width: var(--sd-ui-tools-icon-size, 20px);
|
|
2427
2427
|
height: var(--sd-ui-tools-icon-size, 20px);
|
|
2428
2428
|
flex-shrink: 0;
|
|
@@ -2437,22 +2437,22 @@ img[data-v-c95b2073] {
|
|
|
2437
2437
|
|
|
2438
2438
|
/* 834px is iPad screen size in portrait orientation */
|
|
2439
2439
|
@media (max-width: 834px) {
|
|
2440
|
-
.superdoc .superdoc__layers[data-v-
|
|
2440
|
+
.superdoc .superdoc__layers[data-v-99399849] {
|
|
2441
2441
|
margin: 0;
|
|
2442
2442
|
border: 0 !important;
|
|
2443
2443
|
box-shadow: none;
|
|
2444
2444
|
}
|
|
2445
|
-
.superdoc__sub-document[data-v-
|
|
2445
|
+
.superdoc__sub-document[data-v-99399849] {
|
|
2446
2446
|
max-width: 100%;
|
|
2447
2447
|
}
|
|
2448
|
-
.superdoc__right-sidebar[data-v-
|
|
2448
|
+
.superdoc__right-sidebar[data-v-99399849] {
|
|
2449
2449
|
padding: 10px;
|
|
2450
2450
|
position: relative;
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
|
|
2454
2454
|
/* AI Writer styles */
|
|
2455
|
-
.ai-writer-container[data-v-
|
|
2455
|
+
.ai-writer-container[data-v-99399849] {
|
|
2456
2456
|
position: fixed;
|
|
2457
2457
|
z-index: 1000;
|
|
2458
2458
|
background: white;
|
|
@@ -2468,10 +2468,10 @@ img[data-v-c95b2073] {
|
|
|
2468
2468
|
transform: translateY(-50%);
|
|
2469
2469
|
z-index: 50;
|
|
2470
2470
|
} */
|
|
2471
|
-
.ai-tool > svg[data-v-
|
|
2471
|
+
.ai-tool > svg[data-v-99399849] {
|
|
2472
2472
|
fill: transparent;
|
|
2473
2473
|
}
|
|
2474
|
-
.ai-tool[data-v-
|
|
2474
|
+
.ai-tool[data-v-99399849]::before {
|
|
2475
2475
|
content: '';
|
|
2476
2476
|
position: absolute;
|
|
2477
2477
|
width: 20px;
|
|
@@ -2492,7 +2492,7 @@ img[data-v-c95b2073] {
|
|
|
2492
2492
|
filter: brightness(1.2);
|
|
2493
2493
|
transition: filter 0.2s ease;
|
|
2494
2494
|
}
|
|
2495
|
-
.ai-tool[data-v-
|
|
2495
|
+
.ai-tool[data-v-99399849]:hover::before {
|
|
2496
2496
|
filter: brightness(1.3);
|
|
2497
2497
|
}
|
|
2498
2498
|
|
|
@@ -10,3 +10,6 @@ export function isV2RangeSnapshot(snapshot: {
|
|
|
10
10
|
} | null | undefined): boolean;
|
|
11
11
|
export function hasOutsideV2DomRangeSelection(selection: Selection | null | undefined, root: Node | null | undefined): boolean;
|
|
12
12
|
export function shouldPreserveHostV2Selection(documentMode: string | null | undefined, hostSnapshot: unknown): boolean;
|
|
13
|
+
export function shouldRetainV2FloatingSelection(hasHostRange: boolean, selectionPosition: {
|
|
14
|
+
source?: unknown;
|
|
15
|
+
} | null | undefined): boolean;
|
|
@@ -553,6 +553,8 @@ export interface SelectionSlice {
|
|
|
553
553
|
target: TextTarget | null;
|
|
554
554
|
/** Explicit start/end selection target, when available. */
|
|
555
555
|
selectionTarget: SelectionTarget | null;
|
|
556
|
+
/** Table/cell identities from the settled public selection read, when supported. */
|
|
557
|
+
tableSelection?: SelectionInfo['tableSelection'];
|
|
556
558
|
/** Marks currently active at the selection. */
|
|
557
559
|
activeMarks: readonly string[];
|
|
558
560
|
/** Comment ids overlapping the selection. */
|