superdoc 2.27.0-next.1 → 2.27.0-next.3
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/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/index.d.ts +1 -1
- package/dist/document-api/src/lists/lists.types.d.ts +3 -0
- package/dist/document-api/src/types/temporary-mutation.d.ts +25 -4
- package/dist/layout-engine/contracts/src/direction-context.d.ts +1 -2
- package/dist/layout-engine/contracts/src/resolved-layout.d.ts +0 -34
- package/dist/layout-engine/layout-bridge/src/neutral-hit.d.ts +0 -7
- package/dist/layout-engine/layout-engine/src/index.d.ts +0 -1
- package/dist/layout-engine/painters/dom/src/features/inline-direction/run-direction.d.ts +0 -3
- package/dist/superdoc/src/public/ui/types.d.ts +1 -1
- package/dist/superdoc/src/public/ui.d.cts +14 -0
- package/dist/superdoc/src/public/ui.d.ts +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist-cdn/superdoc.min.js +3 -3
- package/package.json +2 -2
|
@@ -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.27.0-next.
|
|
22
|
+
superdocVersion: "2.27.0-next.3",
|
|
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.27.0-next.
|
|
21
|
+
superdocVersion: "2.27.0-next.3",
|
|
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
|
|
@@ -169,7 +169,7 @@ export type { ParagraphsAdapter, ParagraphFormatApi, ParagraphStylesApi } from '
|
|
|
169
169
|
export type { ParagraphTarget, ParagraphBlockType, ParagraphMutationResult, ParagraphMutationSuccess, ParagraphMutationFailure, MutationResolution, ParagraphAlignment, TabStopAlignment, TabStopLeader, BorderSide, ClearBorderSide, LineRule, ParagraphsSetStyleInput, ParagraphSemanticStyleRole, ParagraphsSetStyleRefInput, ParagraphsClearStyleInput, ParagraphsResetDirectFormattingInput, ParagraphsSetAlignmentInput, ParagraphsClearAlignmentInput, ParagraphsSetIndentationInput, ParagraphsClearIndentationInput, ParagraphsSetSpacingInput, ParagraphsClearSpacingInput, ParagraphsSetKeepOptionsInput, ParagraphsSetOutlineLevelInput, ParagraphsSetFlowOptionsInput, ParagraphsSetTabStopInput, ParagraphsClearTabStopInput, ParagraphsClearAllTabStopsInput, ParagraphsSetBorderInput, ParagraphsClearBorderInput, ParagraphsSetShadingInput, ParagraphsClearShadingInput, ParagraphsSetMarkRunPropsInput, ParagraphsSetDirectionInput, ParagraphsClearDirectionInput, ParagraphsSetNumberingInput, ParagraphDirection, AlignmentPolicy, } from './paragraphs/paragraphs.js';
|
|
170
170
|
export { PARAGRAPH_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TAB_STOP_LEADERS, BORDER_SIDES, CLEAR_BORDER_SIDES, LINE_RULES, PARAGRAPH_DIRECTIONS, ALIGNMENT_POLICIES, } from './paragraphs/paragraphs.js';
|
|
171
171
|
export type { BlockAddress, BlockRange, CanContinueReason, CanJoinReason, JoinDirection, ListInsertInput, ListItemAddress, ListItemInfo, ListKind, ListsAttachInput, ListsCanContinuePreviousInput, ListsCanContinuePreviousResult, ListsCanJoinInput, ListsCanJoinResult, ListsConvertToTextInput, ListsConvertToTextResult, ListsContinuePreviousInput, ListsCreateInput, ListsCreateResult, ListsDetachInput, ListsDetachResult, ListsDeleteInput, ListsDeleteResult, ListsFailureCode, ListsGetInput, ListsInsertResult, ListsJoinInput, ListsJoinResult, ListsListQuery, ListsListResult, ListsMutateItemResult, ListsSeparateInput, ListsSeparateResult, ListsMergeInput, ListsMergeResult, ListsSplitInput, ListsSplitResult, ListsSetLevelInput, ListsSetLevelRestartInput, ListsSetValueInput, ListTargetInput, MutationScope, LevelAlignment, TrailingCharacter, ListPresetId, ListPresetMarker, ListLevelTemplate, ListTemplate, ListsApplyTemplateInput, ListsApplyPresetInput, ListsCaptureTemplateInput, ListsCaptureTemplateResult, ListsCaptureTemplateSuccessResult, ListsSetLevelNumberingInput, ListsSetLevelBulletInput, ListsSetLevelPictureBulletInput, ListsSetLevelAlignmentInput, ListsSetLevelIndentsInput, ListsSetLevelTrailingCharacterInput, ListsSetLevelMarkerFontInput, ListsClearLevelOverridesInput, ListsSetTypeInput, ListStyle, ListLevelStyle, ListLevelLayout, ListsGetStyleInput, ListsGetStyleResult, ListsGetStyleSuccessResult, ListsApplyStyleInput, ListsRestartAtInput, ListsSetLevelNumberStyleInput, ListsSetLevelTextInput, ListsSetLevelStartInput, ListsSetLevelLayoutInput, ListsGetStateInput, ListsGetStateResult, ListsApplyInput, ListsContinueV2Input, ListsRestartV2Input, ListsRemoveV2Input, } from './lists/lists.types.js';
|
|
172
|
-
export { LIST_KINDS, LIST_INSERT_POSITIONS, JOIN_DIRECTIONS, MUTATION_SCOPES, LEVEL_ALIGNMENTS, TRAILING_CHARACTERS, LIST_PRESET_IDS, LIST_PRESET_MARKERS, } from './lists/lists.types.js';
|
|
172
|
+
export { LIST_KINDS, LIST_INSERT_POSITIONS, JOIN_DIRECTIONS, MUTATION_SCOPES, LEVEL_ALIGNMENTS, TRAILING_CHARACTERS, LIST_PRESET_IDS, LIST_PRESET_MARKERS, LIST_CUSTOM_NUMBERING_FORMATS, } from './lists/lists.types.js';
|
|
173
173
|
export type { CreateSectionBreakInput, CreateSectionBreakResult, DocumentMutationResult, SectionAddress, SectionBorderSpec, SectionBreakCreateLocation, SectionBreakRepresentation, SectionBreakType, SectionColumns, SectionDirection, SectionDomain, SectionHeaderFooterKind, SectionHeaderFooterMargins, SectionHeaderFooterRefs, SectionHeaderFooterVariant, SectionInfo, SectionLineNumbering, SectionLineNumberRestart, SectionMutationResult, SectionOrientation, SectionPageBorders, SectionPageMargins, SectionPageNumbering, SectionPageNumberingChapterSeparator, SectionPageNumberingFormat, SectionPageSetup, SectionRangeDomain, SectionTargetInput, SectionVerticalAlign, SectionsClearHeaderFooterRefInput, SectionsClearPageBordersInput, SectionsGetInput, SectionsListQuery, SectionsListResult, SectionsSetBreakTypeInput, SectionsSetColumnsInput, SectionsSetHeaderFooterMarginsInput, SectionsSetHeaderFooterRefInput, SectionsSetLineNumberingInput, SectionsSetLinkToPreviousInput, SectionsSetOddEvenHeadersFootersInput, SectionsSetPageBordersInput, SectionsSetPageMarginsInput, SectionsSetPageNumberingInput, SectionsSetPageSetupInput, SectionsSetSectionDirectionInput, SectionsSetTitlePageInput, SectionsSetVerticalAlignInput, } from './sections/sections.types.js';
|
|
174
174
|
export type { CommentsCreateReceipt, CommentsCreateInput, CommentCreateAttributionInput, CommentsPatchInput, CommentsDeleteInput, CommentsAdapter, CommentsApi, GetCommentInput, TrackedChangeCommentTarget, TrackedChangeCommentTargetSide, TextSearchCommentTarget, AddCommentInput, EditCommentInput, ReplyToCommentInput, MoveCommentInput, ResolveCommentInput, ReopenCommentInput, RemoveCommentInput, SetCommentInternalInput, GoToCommentInput, SetCommentActiveInput, } from './comments/comments.js';
|
|
175
175
|
export { executeCommentsCreate, executeCommentsPatch, executeCommentsDelete, executeGetComment, executeListComments, } from './comments/comments.js';
|
|
@@ -206,10 +206,12 @@ export interface ListsConvertToTextInput {
|
|
|
206
206
|
target: ListItemAddress;
|
|
207
207
|
includeMarker?: boolean;
|
|
208
208
|
}
|
|
209
|
+
export declare const LIST_CUSTOM_NUMBERING_FORMATS: readonly ["01, 02, 03, ...", "001, 002, 003, ...", "0001, 0002, 0003, ..."];
|
|
209
210
|
/** A captured snapshot of one level's formatting properties. */
|
|
210
211
|
export interface ListLevelTemplate {
|
|
211
212
|
level: number;
|
|
212
213
|
numFmt?: string;
|
|
214
|
+
customFormat?: string;
|
|
213
215
|
lvlText?: string;
|
|
214
216
|
start?: number;
|
|
215
217
|
alignment?: LevelAlignment;
|
|
@@ -274,6 +276,7 @@ export interface ListsSetLevelNumberingInput {
|
|
|
274
276
|
target: ListItemAddress;
|
|
275
277
|
level: number;
|
|
276
278
|
numFmt: string;
|
|
279
|
+
customFormat?: string;
|
|
277
280
|
lvlText: string;
|
|
278
281
|
start?: number;
|
|
279
282
|
/** Format numeric placeholders as decimal. False removes legal numbering; omit to preserve it. */
|
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
import { DocumentApiSurface } from '../index.js';
|
|
2
|
-
import { ReceiptSuccess } from './receipt.js';
|
|
2
|
+
import { ReceiptFailureResult, ReceiptSuccess } from './receipt.js';
|
|
3
|
+
import { PlainTextInsertInput } from '../insert/insert.js';
|
|
4
|
+
import { ParagraphTextReplaceInput, ReplaceMutationOptions, TextReplaceInput } from '../replace/replace.js';
|
|
5
|
+
import { MutationOptions, TrackedTextMutationOptions } from '../write/write.js';
|
|
6
|
+
import { BodyStoryLocator } from './story.types.js';
|
|
3
7
|
type TemporaryCall<Name extends string, Method extends (...args: never[]) => unknown> = {
|
|
4
8
|
operation: Name;
|
|
5
9
|
input: Parameters<Method>[0];
|
|
6
10
|
options?: Parameters<Method>[1];
|
|
7
11
|
};
|
|
12
|
+
type TemporaryText<Name extends 'insert' | 'replace', Input> = {
|
|
13
|
+
operation: Name;
|
|
14
|
+
input: Input;
|
|
15
|
+
options?: MutationOptions & {
|
|
16
|
+
author?: never;
|
|
17
|
+
};
|
|
18
|
+
} | {
|
|
19
|
+
operation: Name;
|
|
20
|
+
input: Exclude<Input, {
|
|
21
|
+
target: BodyStoryLocator;
|
|
22
|
+
}>;
|
|
23
|
+
options: TrackedTextMutationOptions;
|
|
24
|
+
};
|
|
8
25
|
/** Operations run in order against the temporary document, as one atomic update. */
|
|
9
|
-
export type TemporaryMutationOperation =
|
|
26
|
+
export type TemporaryMutationOperation = TemporaryText<'insert', PlainTextInsertInput> | TemporaryText<'replace', TextReplaceInput> | {
|
|
27
|
+
operation: 'replace';
|
|
28
|
+
input: ParagraphTextReplaceInput;
|
|
29
|
+
options?: ReplaceMutationOptions;
|
|
30
|
+
} | TemporaryCall<'delete', DocumentApiSurface['delete']> | TemporaryCall<'blocks.delete', DocumentApiSurface['blocks']['delete']> | TemporaryCall<'trackChanges.decide', DocumentApiSurface['trackChanges']['decide']> | TemporaryCall<'comments.create', DocumentApiSurface['comments']['create']>;
|
|
10
31
|
export interface TemporaryMutationInput {
|
|
11
32
|
/** Host tag echoed on every temporary mutation and its rollback/commit receipt. */
|
|
12
33
|
tag: string;
|
|
@@ -39,11 +60,11 @@ export interface TemporaryMutationMetadata {
|
|
|
39
60
|
tag: string;
|
|
40
61
|
onNativeEdit?: 'cancel' | 'preserve';
|
|
41
62
|
}
|
|
42
|
-
export type TemporaryMutationReceipt = ReceiptSuccess & {
|
|
63
|
+
export type TemporaryMutationReceipt = (ReceiptSuccess & {
|
|
43
64
|
temporary: TemporaryMutationMetadata;
|
|
44
65
|
revision: {
|
|
45
66
|
before: string;
|
|
46
67
|
after: string;
|
|
47
68
|
};
|
|
48
|
-
};
|
|
69
|
+
}) | ReceiptFailureResult;
|
|
49
70
|
export {};
|
|
@@ -197,8 +197,7 @@ export declare function getParagraphInlineDirection(attrs: {
|
|
|
197
197
|
*
|
|
198
198
|
* Prefers the resolved {@link TableDirectionContext} when present, falls
|
|
199
199
|
* back to the legacy `tableProperties.rightToLeft` (or `bidiVisual` alias)
|
|
200
|
-
* for compatibility.
|
|
201
|
-
* retirement signal.
|
|
200
|
+
* for compatibility.
|
|
202
201
|
*
|
|
203
202
|
* Per ECMA-376 §17.4.1, `w:bidiVisual` affects only cell ordering and
|
|
204
203
|
* table-visual properties. Cell paragraph inline direction is independent;
|
|
@@ -111,8 +111,6 @@ export type ResolvedGroupItem = {
|
|
|
111
111
|
/**
|
|
112
112
|
* A resolved fragment wrapper item.
|
|
113
113
|
* Carries positioning and metadata needed to create the fragment's DOM wrapper.
|
|
114
|
-
* Inner content rendering is delegated to the Fragment-based render path via
|
|
115
|
-
* fragmentIndex; see the compat-fallback note on that field.
|
|
116
114
|
*/
|
|
117
115
|
export type ResolvedFragmentItem = {
|
|
118
116
|
kind: 'fragment';
|
|
@@ -138,14 +136,6 @@ export type ResolvedFragmentItem = {
|
|
|
138
136
|
fragment: Fragment;
|
|
139
137
|
/** Block ID. Written to data-block-id. */
|
|
140
138
|
blockId: string;
|
|
141
|
-
/**
|
|
142
|
-
* Index back into page.fragments.
|
|
143
|
-
*
|
|
144
|
-
* AIDEV-NOTE: compat-fallback. The painter currently reads inner content from
|
|
145
|
-
* Fragment via this index because ResolvedFragmentItem does not carry full
|
|
146
|
-
* content yet. Becomes unused once paint items are self-describing; do not
|
|
147
|
-
* promote this to a permanent API surface.
|
|
148
|
-
*/
|
|
149
139
|
fragmentIndex: number;
|
|
150
140
|
/** ProseMirror start position for click-to-position mapping. */
|
|
151
141
|
pmStart?: number;
|
|
@@ -280,14 +270,6 @@ export type ResolvedTableItem = {
|
|
|
280
270
|
zIndex?: number;
|
|
281
271
|
/** Block ID — written to data-block-id. */
|
|
282
272
|
blockId: string;
|
|
283
|
-
/**
|
|
284
|
-
* Index back into page.fragments.
|
|
285
|
-
*
|
|
286
|
-
* AIDEV-NOTE: compat-fallback. The painter currently reads inner content from
|
|
287
|
-
* Fragment via this index because ResolvedFragmentItem does not carry full
|
|
288
|
-
* content yet. Becomes unused once paint items are self-describing; do not
|
|
289
|
-
* promote this to a permanent API surface.
|
|
290
|
-
*/
|
|
291
273
|
fragmentIndex: number;
|
|
292
274
|
/** Source TableFragment back-pointer (see ResolvedFragmentItem.fragment). */
|
|
293
275
|
fragment: Fragment;
|
|
@@ -357,14 +339,6 @@ export type ResolvedImageItem = {
|
|
|
357
339
|
zIndex?: number;
|
|
358
340
|
/** Block ID — written to data-block-id. */
|
|
359
341
|
blockId: string;
|
|
360
|
-
/**
|
|
361
|
-
* Index back into page.fragments.
|
|
362
|
-
*
|
|
363
|
-
* AIDEV-NOTE: compat-fallback. The painter currently reads inner content from
|
|
364
|
-
* Fragment via this index because ResolvedFragmentItem does not carry full
|
|
365
|
-
* content yet. Becomes unused once paint items are self-describing; do not
|
|
366
|
-
* promote this to a permanent API surface.
|
|
367
|
-
*/
|
|
368
342
|
fragmentIndex: number;
|
|
369
343
|
/** Source ImageFragment back-pointer (see ResolvedFragmentItem.fragment). */
|
|
370
344
|
fragment: Fragment;
|
|
@@ -426,14 +400,6 @@ export type ResolvedDrawingItem = {
|
|
|
426
400
|
zIndex?: number;
|
|
427
401
|
/** Block ID — written to data-block-id. */
|
|
428
402
|
blockId: string;
|
|
429
|
-
/**
|
|
430
|
-
* Index back into page.fragments.
|
|
431
|
-
*
|
|
432
|
-
* AIDEV-NOTE: compat-fallback. The painter currently reads inner content from
|
|
433
|
-
* Fragment via this index because ResolvedFragmentItem does not carry full
|
|
434
|
-
* content yet. Becomes unused once paint items are self-describing; do not
|
|
435
|
-
* promote this to a permanent API surface.
|
|
436
|
-
*/
|
|
437
403
|
fragmentIndex: number;
|
|
438
404
|
/** Source DrawingFragment back-pointer (see ResolvedFragmentItem.fragment). */
|
|
439
405
|
fragment: Fragment;
|
|
@@ -35,13 +35,6 @@ export type LayoutHit = {
|
|
|
35
35
|
sourceAnchor?: SourceAnchor;
|
|
36
36
|
/** Diagnostics for partially supported or rejected hits. */
|
|
37
37
|
diagnostics?: LayoutHitDiagnostic[];
|
|
38
|
-
/**
|
|
39
|
-
* Legacy PM-shaped position hit.
|
|
40
|
-
*
|
|
41
|
-
* AIDEV-NOTE: compat-fallback - callers may still consume `pmPosition`.
|
|
42
|
-
* Retire once providers stop relying on PM positions to map this hit back to
|
|
43
|
-
* a document ref. Do not gate new editor-neutral behavior on this field.
|
|
44
|
-
*/
|
|
45
38
|
legacyPm?: PositionHit;
|
|
46
39
|
};
|
|
47
40
|
export type LayoutHitDiagnostic = {
|
|
@@ -302,7 +302,6 @@ export type LayoutDocumentContinuation = {
|
|
|
302
302
|
}): Promise<LayoutContinuationBatch>;
|
|
303
303
|
dispose(): void;
|
|
304
304
|
};
|
|
305
|
-
/** AIDEV-NOTE: The handle owns one live paginator; advancing never replays a stopped prefix. */
|
|
306
305
|
export declare function createLayoutDocumentContinuation(blocks: FlowBlock[], measures: Measure[], options?: LayoutOptions, execution?: LayoutExecutionControl): LayoutDocumentContinuation;
|
|
307
306
|
export type LayoutRangeBoundaryPolicy = 'conservative-context' | 'overscan' | 'degraded-on-incomplete-state';
|
|
308
307
|
export type LayoutRangeExactness = 'exact' | 'pending-layout' | 'degraded-unsupported' | 'stale';
|
|
@@ -26,9 +26,6 @@ export declare const RTL_DATE_LIKE_TOKEN_RE: RegExp;
|
|
|
26
26
|
* FE70-FEFF Arabic-B). The block range covers Hebrew, Arabic, Syriac, NKo,
|
|
27
27
|
* etc.; the Script properties add presentation forms without including
|
|
28
28
|
* noncharacters (FDD0-FDEF) or the BOM (FEFF).
|
|
29
|
-
*
|
|
30
|
-
* AIDEV-NOTE: also used by editing/runtime mixed-bidi handling. Consolidating
|
|
31
|
-
* crosses a layer boundary; tracked under SD-3169 follow-ups.
|
|
32
29
|
*/
|
|
33
30
|
export declare const STRONG_RTL_CHAR_RE: RegExp;
|
|
34
31
|
/**
|
|
@@ -30,7 +30,7 @@ import { BuiltInCommandId } from './commands.js';
|
|
|
30
30
|
* (`scripts/ensure-types.cjs` `rewriteDocApiPaths`), so no bare private
|
|
31
31
|
* specifier leaks into the emitted `.d.ts`.
|
|
32
32
|
*/
|
|
33
|
-
export type { Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, BookmarkAddress, ScrollIntoViewInput, ScrollIntoViewOutput, DocumentApi, EntityAddress, CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, } from '../../../../document-api/src/index.js';
|
|
33
|
+
export type { Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, BookmarkAddress, ScrollIntoViewInput, ScrollIntoViewOutput, DocumentApi, EntityAddress, CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, StoryLocator as DocumentStoryLocator, } from '../../../../document-api/src/index.js';
|
|
34
34
|
export type { StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, } from '../../../../document-api/src/index.js';
|
|
35
35
|
export type { ListPresetId } from '../../../../document-api/src/index.js';
|
|
36
36
|
export type { BrowserDocumentApi, PartialBrowserDocumentApi } from '../browser-document-api.js';
|
|
@@ -39,6 +39,7 @@ import type { DocumentApiRejectionReason as __Cjs_DocumentApiRejectionReason } f
|
|
|
39
39
|
import type { DocumentHandle as __Cjs_DocumentHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
40
40
|
import type { DocumentReplacementResult as __Cjs_DocumentReplacementResult } from './ui.js' with { "resolution-mode": "import" };
|
|
41
41
|
import type { DocumentSlice as __Cjs_DocumentSlice } from './ui.js' with { "resolution-mode": "import" };
|
|
42
|
+
import type { DocumentStoryLocator as __Cjs_DocumentStoryLocator } from './ui.js' with { "resolution-mode": "import" };
|
|
42
43
|
import type { EntityAddress as __Cjs_EntityAddress } from './ui.js' with { "resolution-mode": "import" };
|
|
43
44
|
import type { EqualityFn as __Cjs_EqualityFn } from './ui.js' with { "resolution-mode": "import" };
|
|
44
45
|
import type { FontFamilyOption as __Cjs_FontFamilyOption } from './ui.js' with { "resolution-mode": "import" };
|
|
@@ -98,6 +99,11 @@ import type { SuperDocUIScope as __Cjs_SuperDocUIScope } from './ui.js' with { "
|
|
|
98
99
|
import type { SuperDocUIState as __Cjs_SuperDocUIState } from './ui.js' with { "resolution-mode": "import" };
|
|
99
100
|
import type { TableContextInfo as __Cjs_TableContextInfo } from './ui.js' with { "resolution-mode": "import" };
|
|
100
101
|
import type { TablesHandle as __Cjs_TablesHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
102
|
+
import type { TemporaryMutationHandleInput as __Cjs_TemporaryMutationHandleInput } from './ui.js' with { "resolution-mode": "import" };
|
|
103
|
+
import type { TemporaryMutationInput as __Cjs_TemporaryMutationInput } from './ui.js' with { "resolution-mode": "import" };
|
|
104
|
+
import type { TemporaryMutationOperation as __Cjs_TemporaryMutationOperation } from './ui.js' with { "resolution-mode": "import" };
|
|
105
|
+
import type { TemporaryMutationReceipt as __Cjs_TemporaryMutationReceipt } from './ui.js' with { "resolution-mode": "import" };
|
|
106
|
+
import type { TemporaryMutationReplaceInput as __Cjs_TemporaryMutationReplaceInput } from './ui.js' with { "resolution-mode": "import" };
|
|
101
107
|
import type { TextAddress as __Cjs_TextAddress } from './ui.js' with { "resolution-mode": "import" };
|
|
102
108
|
import type { TextRangeRejectionReason as __Cjs_TextRangeRejectionReason } from './ui.js' with { "resolution-mode": "import" };
|
|
103
109
|
import type { TextTarget as __Cjs_TextTarget } from './ui.js' with { "resolution-mode": "import" };
|
|
@@ -118,6 +124,7 @@ import type { ViewportEntityHit as __Cjs_ViewportEntityHit } from './ui.js' with
|
|
|
118
124
|
import type { ViewportGetRectInput as __Cjs_ViewportGetRectInput } from './ui.js' with { "resolution-mode": "import" };
|
|
119
125
|
import type { ViewportGetRectsInput as __Cjs_ViewportGetRectsInput } from './ui.js' with { "resolution-mode": "import" };
|
|
120
126
|
import type { ViewportGetRectsResult as __Cjs_ViewportGetRectsResult } from './ui.js' with { "resolution-mode": "import" };
|
|
127
|
+
import type { ViewportGetRectTarget as __Cjs_ViewportGetRectTarget } from './ui.js' with { "resolution-mode": "import" };
|
|
121
128
|
import type { ViewportHandle as __Cjs_ViewportHandle } from './ui.js' with { "resolution-mode": "import" };
|
|
122
129
|
import type { ViewportRect as __Cjs_ViewportRect } from './ui.js' with { "resolution-mode": "import" };
|
|
123
130
|
import type { ViewportRectResult as __Cjs_ViewportRectResult } from './ui.js' with { "resolution-mode": "import" };
|
|
@@ -175,6 +182,7 @@ export type { __Cjs_DocumentApiRejectionReason as DocumentApiRejectionReason };
|
|
|
175
182
|
export type { __Cjs_DocumentHandle as DocumentHandle };
|
|
176
183
|
export type { __Cjs_DocumentReplacementResult as DocumentReplacementResult };
|
|
177
184
|
export type { __Cjs_DocumentSlice as DocumentSlice };
|
|
185
|
+
export type { __Cjs_DocumentStoryLocator as DocumentStoryLocator };
|
|
178
186
|
export type { __Cjs_EntityAddress as EntityAddress };
|
|
179
187
|
export type { __Cjs_EqualityFn as EqualityFn };
|
|
180
188
|
export type { __Cjs_FontFamilyOption as FontFamilyOption };
|
|
@@ -236,6 +244,11 @@ export type { __Cjs_SuperDocUIScope as SuperDocUIScope };
|
|
|
236
244
|
export type { __Cjs_SuperDocUIState as SuperDocUIState };
|
|
237
245
|
export type { __Cjs_TableContextInfo as TableContextInfo };
|
|
238
246
|
export type { __Cjs_TablesHandle as TablesHandle };
|
|
247
|
+
export type { __Cjs_TemporaryMutationHandleInput as TemporaryMutationHandleInput };
|
|
248
|
+
export type { __Cjs_TemporaryMutationInput as TemporaryMutationInput };
|
|
249
|
+
export type { __Cjs_TemporaryMutationOperation as TemporaryMutationOperation };
|
|
250
|
+
export type { __Cjs_TemporaryMutationReceipt as TemporaryMutationReceipt };
|
|
251
|
+
export type { __Cjs_TemporaryMutationReplaceInput as TemporaryMutationReplaceInput };
|
|
239
252
|
export type { __Cjs_TextAddress as TextAddress };
|
|
240
253
|
export type { __Cjs_TextRangeRejectionReason as TextRangeRejectionReason };
|
|
241
254
|
export type { __Cjs_TextTarget as TextTarget };
|
|
@@ -256,6 +269,7 @@ export type { __Cjs_ViewportEntityHit as ViewportEntityHit };
|
|
|
256
269
|
export type { __Cjs_ViewportGetRectInput as ViewportGetRectInput };
|
|
257
270
|
export type { __Cjs_ViewportGetRectsInput as ViewportGetRectsInput };
|
|
258
271
|
export type { __Cjs_ViewportGetRectsResult as ViewportGetRectsResult };
|
|
272
|
+
export type { __Cjs_ViewportGetRectTarget as ViewportGetRectTarget };
|
|
259
273
|
export type { __Cjs_ViewportHandle as ViewportHandle };
|
|
260
274
|
export type { __Cjs_ViewportRect as ViewportRect };
|
|
261
275
|
export type { __Cjs_ViewportRectResult as ViewportRectResult };
|
|
@@ -27,5 +27,5 @@ export { createSuperDocUI } from './ui/create-super-doc-ui.js';
|
|
|
27
27
|
export { getDocumentApiRejectionReason } from './ui/rejection-reasons.js';
|
|
28
28
|
export { shallowEqual } from './ui/equality.js';
|
|
29
29
|
export { BUILT_IN_COMMAND_IDS } from './ui/commands.js';
|
|
30
|
-
export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, WatermarkHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, TablesHandle, TableContextInfo, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, BookmarksHandle, BookmarkAddress, ContentControlFocusResult, ContentControlHighlightResult, FontsHandle, ZoomHandle, DocumentHandle, DocumentReplacementResult, ViewportHandle, StylesHandle, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportGetRectsInput, ViewportGetRectsResult, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, } from './ui/types.js';
|
|
30
|
+
export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, WatermarkHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, TablesHandle, TableContextInfo, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, BookmarksHandle, BookmarkAddress, ContentControlFocusResult, ContentControlHighlightResult, FontsHandle, ZoomHandle, DocumentHandle, DocumentReplacementResult, ViewportHandle, StylesHandle, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportGetRectTarget, ViewportGetRectsInput, ViewportGetRectsResult, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, DocumentStoryLocator, } from './ui/types.js';
|
|
31
31
|
export type { PageMetricsHandle, PageMetricsSnapshot, PageMetricsPage, PageBodyTarget } from './ui/page-metrics.js';
|
package/dist/superdoc.cjs
CHANGED
|
@@ -260,7 +260,7 @@ var v_click_outside_default = {
|
|
|
260
260
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
261
261
|
function getSuperdocVersion() {
|
|
262
262
|
try {
|
|
263
|
-
return "2.27.0-next.
|
|
263
|
+
return "2.27.0-next.3";
|
|
264
264
|
} catch {
|
|
265
265
|
return "unknown";
|
|
266
266
|
}
|
|
@@ -46242,7 +46242,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46242
46242
|
}
|
|
46243
46243
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46244
46244
|
this.colorIndex = 0;
|
|
46245
|
-
this.version = "2.27.0-next.
|
|
46245
|
+
this.version = "2.27.0-next.3";
|
|
46246
46246
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46247
46247
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46248
46248
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -258,7 +258,7 @@ var v_click_outside_default = {
|
|
|
258
258
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
259
259
|
function getSuperdocVersion() {
|
|
260
260
|
try {
|
|
261
|
-
return "2.27.0-next.
|
|
261
|
+
return "2.27.0-next.3";
|
|
262
262
|
} catch {
|
|
263
263
|
return "unknown";
|
|
264
264
|
}
|
|
@@ -46172,7 +46172,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46172
46172
|
}
|
|
46173
46173
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46174
46174
|
this.colorIndex = 0;
|
|
46175
|
-
this.version = "2.27.0-next.
|
|
46175
|
+
this.version = "2.27.0-next.3";
|
|
46176
46176
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46177
46177
|
this.superdocId = config.superdocId || v4();
|
|
46178
46178
|
this.colors = this.config.colors ?? [];
|