superdoc 2.23.0-next.6 → 2.23.0-next.7

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.
@@ -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.23.0-next.6",
22
+ superdocVersion: "2.23.0-next.7",
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.23.0-next.6",
21
+ superdocVersion: "2.23.0-next.7",
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
@@ -51,6 +51,13 @@ export type OperationCapabilities = Record<OperationId, OperationRuntimeCapabili
51
51
  export interface PlanEngineCapabilities {
52
52
  /** Step op codes the engine can execute (e.g., 'text.rewrite', 'format.apply'). */
53
53
  supportedStepOps: readonly string[];
54
+ /** Proven targeting modes; operation-specific restrictions remain in unsupported cells. */
55
+ supportedTargets?: readonly string[];
56
+ /** Named unsupported combinations with stable, discoverable reasons. */
57
+ unsupported?: readonly {
58
+ cell: string;
59
+ reason: string;
60
+ }[];
54
61
  /** Non-uniform style resolution strategies available for `onNonUniform`. */
55
62
  supportedNonUniformStrategies: readonly string[];
56
63
  /** Mark names that `setMarks` can override (e.g., 'bold', 'italic'). */
@@ -54,7 +54,7 @@ export declare const applyBorder: (element: HTMLElement, side: BorderSide, borde
54
54
  * ```
55
55
  */
56
56
  export declare const applyCellBorders: (element: HTMLElement, borders?: CellBorders, useSvgOverlay?: boolean) => void;
57
- /** Paints cell-only border patterns that CSS borders cannot represent. */
57
+ /** Paints cell border patterns and fractional strokes that native CSS cannot represent. */
58
58
  export declare const createCellBorderOverlay: (doc: Document, borders: CellBorders | undefined, geometry: {
59
59
  left: string;
60
60
  top: string;
@@ -7,7 +7,7 @@
7
7
  * ProseMirror or v1 editor runtime.
8
8
  */
9
9
  export { normalizeParagraphAttrsFromOoxml } from './paragraph-attrs.js';
10
- export { normalizeRunAttrsFromOoxml, type NormalizeRunAttrsContext } from './run-attrs.js';
10
+ export { normalizeRunAttrsFromOoxml, splitEastAsianFontSegments, type NormalizeRunAttrsContext } from './run-attrs.js';
11
11
  export type { TextRunStyleAttrs, ParagraphAttrs } from './types.js';
12
12
  export { applyThemeTintShade, normalizeHexColor, resolveThemeColor } from './colors.js';
13
13
  export { PX_PER_EIGHTH_POINT, PX_PER_POINT, PX_PER_TWIP, eighthPointsToPx, halfPointsToPx, twipsToPx, } from './units.js';
@@ -2,6 +2,8 @@ import { RunProperties } from '../ooxml/types.js';
2
2
  import { WordThemeColorPalette, WordThemeFontScheme } from '../ooxml/word-style-model/parse-theme.js';
3
3
  import { TextRunStyleAttrs } from './types.js';
4
4
  export interface NormalizeRunAttrsContext {
5
+ /** Font track selected from the text segment, independently of run language. */
6
+ fontScript?: 'eastAsia';
5
7
  /** Compiled theme color palette from the Word style model. */
6
8
  themeColors?: WordThemeColorPalette;
7
9
  /** Compiled theme font scheme. */
@@ -20,3 +22,13 @@ export interface NormalizeRunAttrsContext {
20
22
  backgroundColor?: string;
21
23
  }
22
24
  export declare function normalizeRunAttrsFromOoxml(props: RunProperties | null | undefined, context?: NormalizeRunAttrsContext): TextRunStyleAttrs;
25
+ interface FontScriptSegment {
26
+ text: string;
27
+ fontScript?: 'eastAsia';
28
+ }
29
+ /**
30
+ * Preserve Latin and East Asian font attribution across compatible text leaves.
31
+ * Iteration uses code points so supplementary Han and combining marks stay intact.
32
+ */
33
+ export declare function splitEastAsianFontSegments(text: string, precedingFontScript?: 'eastAsia'): FontScriptSegment[];
34
+ export {};
package/dist/superdoc.cjs CHANGED
@@ -304,7 +304,7 @@ var awarenessStatesToArray = (context, states) => {
304
304
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
305
305
  function getSuperdocVersion() {
306
306
  try {
307
- return "2.23.0-next.6";
307
+ return "2.23.0-next.7";
308
308
  } catch {
309
309
  return "unknown";
310
310
  }
@@ -46433,7 +46433,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
46433
46433
  }
46434
46434
  this.userColorMap = /* @__PURE__ */ new Map();
46435
46435
  this.colorIndex = 0;
46436
- this.version = "2.23.0-next.6";
46436
+ this.version = "2.23.0-next.7";
46437
46437
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46438
46438
  this.superdocId = config.superdocId || require_uuid.v4();
46439
46439
  this.colors = this.config.colors ?? [];
@@ -302,7 +302,7 @@ var awarenessStatesToArray = (context, states) => {
302
302
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
303
303
  function getSuperdocVersion() {
304
304
  try {
305
- return "2.23.0-next.6";
305
+ return "2.23.0-next.7";
306
306
  } catch {
307
307
  return "unknown";
308
308
  }
@@ -46362,7 +46362,7 @@ var SuperDoc = class extends import_eventemitter3.default {
46362
46362
  }
46363
46363
  this.userColorMap = /* @__PURE__ */ new Map();
46364
46364
  this.colorIndex = 0;
46365
- this.version = "2.23.0-next.6";
46365
+ this.version = "2.23.0-next.7";
46366
46366
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
46367
46367
  this.superdocId = config.superdocId || v4();
46368
46368
  this.colors = this.config.colors ?? [];