superdoc 2.27.0-next.2 → 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/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.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. */
|
|
@@ -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
|
/**
|
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 ?? [];
|