@pixerate/editor 0.24.0 → 0.25.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.
Files changed (133) hide show
  1. package/README.md +71 -1
  2. package/THIRD_PARTY_NOTICES.md +29 -0
  3. package/dist/agent/index.cjs +10 -9
  4. package/dist/agent/index.cjs.map +1 -1
  5. package/dist/agent/index.d.cts +1 -1
  6. package/dist/agent/index.d.ts +1 -1
  7. package/dist/agent/index.js +4 -3
  8. package/dist/agent/index.js.map +1 -1
  9. package/dist/canvas/index.cjs +3173 -340
  10. package/dist/canvas/index.cjs.map +1 -1
  11. package/dist/canvas/index.d.cts +617 -4
  12. package/dist/canvas/index.d.ts +617 -4
  13. package/dist/canvas/index.js +3105 -272
  14. package/dist/canvas/index.js.map +1 -1
  15. package/dist/chunk-4BVP64JJ.cjs +1406 -0
  16. package/dist/chunk-4BVP64JJ.cjs.map +1 -0
  17. package/dist/{chunk-XNORY7M6.cjs → chunk-7WISYZFO.cjs} +105 -50
  18. package/dist/chunk-7WISYZFO.cjs.map +1 -0
  19. package/dist/{chunk-OLZJXL4R.cjs → chunk-AL6JMGWW.cjs} +59 -25
  20. package/dist/chunk-AL6JMGWW.cjs.map +1 -0
  21. package/dist/chunk-BVP3TSLH.cjs +69 -0
  22. package/dist/chunk-BVP3TSLH.cjs.map +1 -0
  23. package/dist/{chunk-MCSJFWAO.cjs → chunk-C7P22VIP.cjs} +670 -96
  24. package/dist/chunk-C7P22VIP.cjs.map +1 -0
  25. package/dist/{chunk-PGNZKFQS.js → chunk-ECCCYKGL.js} +76 -21
  26. package/dist/chunk-ECCCYKGL.js.map +1 -0
  27. package/dist/{chunk-3CN2WD3X.js → chunk-FH6F67DN.js} +646 -72
  28. package/dist/chunk-FH6F67DN.js.map +1 -0
  29. package/dist/chunk-HRMEDT2L.js +1406 -0
  30. package/dist/chunk-HRMEDT2L.js.map +1 -0
  31. package/dist/{chunk-ITBSKI26.js → chunk-IXHSYOVY.js} +941 -9
  32. package/dist/chunk-IXHSYOVY.js.map +1 -0
  33. package/dist/{chunk-FODNLX5N.js → chunk-NAXVVS5I.js} +38 -4
  34. package/dist/chunk-NAXVVS5I.js.map +1 -0
  35. package/dist/chunk-O5RYH2PG.js +69 -0
  36. package/dist/chunk-O5RYH2PG.js.map +1 -0
  37. package/dist/{chunk-SBCZ6RN5.cjs → chunk-PO6A6QQH.cjs} +1039 -107
  38. package/dist/chunk-PO6A6QQH.cjs.map +1 -0
  39. package/dist/{chunk-3LV6RRPH.js → chunk-QGYDWPRM.js} +2 -2
  40. package/dist/{chunk-U5KWZU4X.js → chunk-RR7F5GUM.js} +2632 -129
  41. package/dist/chunk-RR7F5GUM.js.map +1 -0
  42. package/dist/{chunk-5S3Z4PPF.js → chunk-UAKDG62Z.js} +232 -25
  43. package/dist/chunk-UAKDG62Z.js.map +1 -0
  44. package/dist/{chunk-SML64VJG.cjs → chunk-V3CHHWOE.cjs} +4 -4
  45. package/dist/{chunk-SML64VJG.cjs.map → chunk-V3CHHWOE.cjs.map} +1 -1
  46. package/dist/chunk-WSQKHXW7.cjs +5726 -0
  47. package/dist/chunk-WSQKHXW7.cjs.map +1 -0
  48. package/dist/{chunk-D27YFC46.cjs → chunk-X4N4WUKB.cjs} +267 -60
  49. package/dist/chunk-X4N4WUKB.cjs.map +1 -0
  50. package/dist/commands/index.cjs +74 -1
  51. package/dist/commands/index.cjs.map +1 -1
  52. package/dist/commands/index.d.cts +34 -1
  53. package/dist/commands/index.d.ts +34 -1
  54. package/dist/commands/index.js +73 -0
  55. package/dist/commands/index.js.map +1 -1
  56. package/dist/compare/index.cjs +3 -3
  57. package/dist/compare/index.d.cts +1 -1
  58. package/dist/compare/index.d.ts +1 -1
  59. package/dist/compare/index.js +2 -2
  60. package/dist/controller-BIJiNoVs.d.cts +1842 -0
  61. package/dist/controller-BIJiNoVs.d.ts +1842 -0
  62. package/dist/{documents-BQjzJNe2.d.ts → documents-CHT1U5Vs.d.ts} +10 -0
  63. package/dist/{documents-KRTPhvst.d.cts → documents-Gp7wb0Me.d.cts} +10 -0
  64. package/dist/extensions/index.cjs +53 -6
  65. package/dist/extensions/index.cjs.map +1 -1
  66. package/dist/extensions/index.d.cts +12 -4
  67. package/dist/extensions/index.d.ts +12 -4
  68. package/dist/extensions/index.js +53 -6
  69. package/dist/generation/index.cjs +1013 -69
  70. package/dist/generation/index.cjs.map +1 -1
  71. package/dist/generation/index.d.cts +474 -13
  72. package/dist/generation/index.d.ts +474 -13
  73. package/dist/generation/index.js +976 -32
  74. package/dist/generation/index.js.map +1 -1
  75. package/dist/image-editor/index.cjs +3385 -1275
  76. package/dist/image-editor/index.cjs.map +1 -1
  77. package/dist/image-editor/index.d.cts +693 -128
  78. package/dist/image-editor/index.d.ts +693 -128
  79. package/dist/image-editor/index.js +3325 -1215
  80. package/dist/image-editor/index.js.map +1 -1
  81. package/dist/{index-fJrlkJCd.d.ts → index-7a6bHTLy.d.ts} +494 -5
  82. package/dist/{index-BhJBSm2d.d.cts → index-Csd5qI8u.d.cts} +494 -5
  83. package/dist/index.cjs +1491 -45
  84. package/dist/index.cjs.map +1 -1
  85. package/dist/index.d.cts +110 -19
  86. package/dist/index.d.ts +110 -19
  87. package/dist/index.js +1464 -18
  88. package/dist/index.js.map +1 -1
  89. package/dist/mention-text-CDnCFd3c.d.cts +53 -0
  90. package/dist/mention-text-CDnCFd3c.d.ts +53 -0
  91. package/dist/model-C1zApQM8.d.cts +219 -0
  92. package/dist/model-C1zApQM8.d.ts +219 -0
  93. package/dist/persistence/index.d.cts +3 -120
  94. package/dist/persistence/index.d.ts +3 -120
  95. package/dist/{registry-GJI4gToU.d.cts → registry-CEgwXED1.d.cts} +12 -1
  96. package/dist/{registry-GJI4gToU.d.ts → registry-CEgwXED1.d.ts} +12 -1
  97. package/dist/serializers/index.cjs +12 -4
  98. package/dist/serializers/index.cjs.map +1 -1
  99. package/dist/serializers/index.d.cts +39 -12
  100. package/dist/serializers/index.d.ts +39 -12
  101. package/dist/serializers/index.js +12 -4
  102. package/dist/spreadsheet/index.cjs +127 -3
  103. package/dist/spreadsheet/index.cjs.map +1 -1
  104. package/dist/spreadsheet/index.d.cts +431 -11
  105. package/dist/spreadsheet/index.d.ts +431 -11
  106. package/dist/spreadsheet/index.js +127 -3
  107. package/dist/storage-BpFfspHm.d.cts +120 -0
  108. package/dist/storage-BpFfspHm.d.ts +120 -0
  109. package/dist/tokens/index.cjs +115 -0
  110. package/dist/tokens/index.cjs.map +1 -0
  111. package/dist/tokens/index.d.cts +212 -0
  112. package/dist/tokens/index.d.ts +212 -0
  113. package/dist/tokens/index.js +115 -0
  114. package/dist/tokens/index.js.map +1 -0
  115. package/dist/{track-changes-BK5sVf4_.d.cts → track-changes-D_VAPELi.d.cts} +95 -11
  116. package/dist/{track-changes-CDjCrwKe.d.ts → track-changes-Db_fGEvx.d.ts} +95 -11
  117. package/package.json +6 -1
  118. package/dist/chunk-3CN2WD3X.js.map +0 -1
  119. package/dist/chunk-5S3Z4PPF.js.map +0 -1
  120. package/dist/chunk-D27YFC46.cjs.map +0 -1
  121. package/dist/chunk-FODNLX5N.js.map +0 -1
  122. package/dist/chunk-ITBSKI26.js.map +0 -1
  123. package/dist/chunk-MA2F5KHF.cjs +0 -3223
  124. package/dist/chunk-MA2F5KHF.cjs.map +0 -1
  125. package/dist/chunk-MCSJFWAO.cjs.map +0 -1
  126. package/dist/chunk-OLZJXL4R.cjs.map +0 -1
  127. package/dist/chunk-PGNZKFQS.js.map +0 -1
  128. package/dist/chunk-SBCZ6RN5.cjs.map +0 -1
  129. package/dist/chunk-U5KWZU4X.js.map +0 -1
  130. package/dist/chunk-XNORY7M6.cjs.map +0 -1
  131. package/dist/controller-BhLLAoi8.d.cts +0 -1000
  132. package/dist/controller-BhLLAoi8.d.ts +0 -1000
  133. /package/dist/{chunk-3LV6RRPH.js.map → chunk-QGYDWPRM.js.map} +0 -0
@@ -3,12 +3,21 @@ import { C as ColorGradient, T as Template } from './tokens-D7yXvUU6.cjs';
3
3
  import { EditorState, PluginKey, Transaction } from '@tiptap/pm/state';
4
4
  import { DecorationSet, EditorView } from '@tiptap/pm/view';
5
5
  import { Node as Node$1 } from '@tiptap/pm/model';
6
- import { b as MentionOptions, d as TrackChangesOptions } from './track-changes-BK5sVf4_.cjs';
7
- import { MarkdownOptions } from 'tiptap-markdown';
6
+ import * as _tiptap_extension_underline from '@tiptap/extension-underline';
7
+ import * as _tiptap_extension_text_style from '@tiptap/extension-text-style';
8
+ import * as _tiptap_extension_text_align from '@tiptap/extension-text-align';
9
+ import * as _tiptap_extension_task_list from '@tiptap/extension-task-list';
10
+ import * as _tiptap_extension_link from '@tiptap/extension-link';
11
+ import * as _tiptap_extension_image from '@tiptap/extension-image';
8
12
  import { ImageOptions as ImageOptions$1 } from '@tiptap/extension-image';
13
+ import * as _tiptap_extension_highlight from '@tiptap/extension-highlight';
14
+ import * as _tiptap_extension_color from '@tiptap/extension-color';
15
+ import * as _tiptap_starter_kit from '@tiptap/starter-kit';
16
+ import { f as MentionOptions, h as TrackChangesOptions } from './track-changes-D_VAPELi.cjs';
17
+ import { MarkdownOptions } from 'tiptap-markdown';
9
18
  import { R as ReviewAuthor, b as CommentStore, C as CommentAnchor } from './comment-store-BEMgVlAA.cjs';
10
- import { c as ImportAdapter, I as ImportAdapterRegistry, b as FindImportAdapterQuery, i as ImportTarget, h as ImportInput, g as ImportFileOptions, a as ImportOutcome, R as RegisterImportAdapterOptions, F as FileLike } from './registry-GJI4gToU.cjs';
11
- import { b as CompareSource, C as CompareDocumentsOptions, a as CompareDocumentsResult } from './documents-KRTPhvst.cjs';
19
+ import { b as ImportAdapter, I as ImportAdapterRegistry, c as FindImportAdapterQuery, i as ImportTarget, h as ImportInput, g as ImportFileOptions, a as ImportOutcome, R as RegisterImportAdapterOptions, F as FileLike } from './registry-CEgwXED1.cjs';
20
+ import { b as CompareSource, C as CompareDocumentsOptions, a as CompareDocumentsResult } from './documents-Gp7wb0Me.cjs';
12
21
  import { c as CommandSpec } from './registry-D32LpIc4.cjs';
13
22
 
14
23
  interface GradientTextOptions {
@@ -352,12 +361,154 @@ declare const Comments: Mark<CommentsOptions, CommentsStorage>;
352
361
  /** The current author configured on an editor's `Comments` extension. */
353
362
  declare function getCommentAuthor(editor: Editor | null | undefined): ReviewAuthor | null;
354
363
 
364
+ /** A positioned piece of text, e.g. a pdf.js text item. */
365
+ interface PdfTextRun {
366
+ text: string;
367
+ /** Left edge (points). */
368
+ x: number;
369
+ /** Baseline, y up (points). */
370
+ y: number;
371
+ /** Advance width (points). Estimated from the text length when missing. */
372
+ width?: number;
373
+ /** Font size (points). Falls back to `height`, then 10. */
374
+ fontSize?: number;
375
+ height?: number;
376
+ /** Font name; `Bold` / `Italic` / `Oblique` in it set the style when `bold` / `italic` are absent. */
377
+ fontName?: string;
378
+ bold?: boolean;
379
+ italic?: boolean;
380
+ }
381
+ /** A stroked line or thin filled rectangle on a page (table rules). */
382
+ interface PdfRuleLine {
383
+ x1: number;
384
+ y1: number;
385
+ x2: number;
386
+ y2: number;
387
+ }
388
+ interface PdfLayoutPage {
389
+ runs: readonly PdfTextRun[];
390
+ /** Ruling lines, when the extractor can read the page's vector graphics. */
391
+ rules?: readonly PdfRuleLine[];
392
+ }
393
+ interface PdfLayoutOptions {
394
+ /**
395
+ * A baseline gap larger than this multiple of the typical line pitch starts
396
+ * a new paragraph (default `1.4`).
397
+ */
398
+ paragraphGap?: number;
399
+ /** Remove running headers, footers and page numbers repeated across pages (default `true`). */
400
+ removeHeadersAndFooters?: boolean;
401
+ /** Read multi-column pages column by column (default `true`). */
402
+ detectColumns?: boolean;
403
+ /** Detect headings from font size and weight (default `true`). */
404
+ detectHeadings?: boolean;
405
+ /** Detect bulleted and numbered lists (default `true`). */
406
+ detectLists?: boolean;
407
+ /** Detect tables from ruling lines and aligned columns (default `true`). */
408
+ detectTables?: boolean;
409
+ /** Re-join words hyphenated across line ends (default `true`). */
410
+ dehyphenate?: boolean;
411
+ }
412
+ interface PdfTableCell {
413
+ text: string;
414
+ colSpan: number;
415
+ rowSpan: number;
416
+ header: boolean;
417
+ }
418
+ type PdfLayoutBlock = {
419
+ type: "heading";
420
+ level: 1 | 2 | 3 | 4 | 5 | 6;
421
+ text: string;
422
+ page: number;
423
+ confidence: number;
424
+ } | {
425
+ type: "paragraph";
426
+ text: string;
427
+ page: number;
428
+ } | {
429
+ type: "list";
430
+ page: number;
431
+ confidence: number;
432
+ /** Items in order; `depth` 0 is the outermost level and grows by at most one per item. */
433
+ items: {
434
+ text: string;
435
+ depth: number;
436
+ ordered: boolean;
437
+ start?: number;
438
+ }[];
439
+ } | {
440
+ type: "table";
441
+ page: number;
442
+ confidence: number;
443
+ /** `true` when the grid came from ruling lines. */
444
+ ruled: boolean;
445
+ /** Rows of cells; cells covered by a span are left out. */
446
+ rows: PdfTableCell[][];
447
+ columns: number;
448
+ headerRows: number;
449
+ };
450
+ /** One detected structure, for import reports. */
451
+ interface ImportStructureItem {
452
+ type: "heading" | "list" | "table" | "columns";
453
+ /** 1-based page. */
454
+ page: number;
455
+ /** 0–1. */
456
+ confidence: number;
457
+ /** Short human-readable description, e.g. `H2 "Results"` or `3×4 table`. */
458
+ detail: string;
459
+ }
460
+ /**
461
+ * What a structure-aware importer recognised. Adapters attach it to
462
+ * `DocumentImport.structure`; `summarizeImportStructure` aggregates it.
463
+ */
464
+ interface ImportStructureReport {
465
+ /** `"plain"` when structure detection was off (paragraphs only). */
466
+ mode: "structured" | "plain";
467
+ counts: {
468
+ headings: number;
469
+ lists: number;
470
+ tables: number;
471
+ paragraphs: number;
472
+ };
473
+ /** Pages read as several columns. */
474
+ multiColumnPages: number;
475
+ /** Mean confidence of the detected structures (1 when nothing was detected). */
476
+ confidence: number;
477
+ items: ImportStructureItem[];
478
+ }
479
+ interface PdfStructureReport extends ImportStructureReport {
480
+ pages: number;
481
+ removed: {
482
+ headers: number;
483
+ footers: number;
484
+ pageNumbers: number;
485
+ };
486
+ /** Words re-joined across a line-end hyphen. */
487
+ dehyphenated: number;
488
+ }
489
+ interface PdfLayoutResult {
490
+ blocks: PdfLayoutBlock[];
491
+ report: PdfStructureReport;
492
+ }
493
+ /**
494
+ * Analyses positioned text runs (one entry per page) and returns blocks in
495
+ * reading order plus a report of what was detected.
496
+ */
497
+ declare function analyzePdfLayout(pages: readonly PdfLayoutPage[], options?: PdfLayoutOptions): PdfLayoutResult;
498
+ /** Renders layout blocks as editor HTML (`h1`–`h6`, `p`, `ul`/`ol`, `table`). Text is escaped. */
499
+ declare function pdfLayoutBlocksToHtml(blocks: readonly PdfLayoutBlock[]): string;
500
+
355
501
  /** Result of every `document` adapter: sanitized TipTap HTML plus plain text. */
356
502
  interface DocumentImport {
357
503
  /** Sanitized HTML ready for `setContent` / `insertContent`. */
358
504
  html: string;
359
505
  /** Plain-text version, used by plain-text (prompt) editors. */
360
506
  text: string;
507
+ /**
508
+ * What a structure-aware importer recognised (headings, lists, tables,
509
+ * columns) with confidences; set by the PDF adapter.
510
+ */
511
+ structure?: ImportStructureReport;
361
512
  }
362
513
  type DocumentImportAdapter = ImportAdapter<DocumentImport>;
363
514
  /**
@@ -396,6 +547,8 @@ declare function getImportAccept(target?: ImportTarget): string;
396
547
  interface FileImportOptions {
397
548
  /** Registry used to match files (default: the shared default registry). */
398
549
  registry?: ImportAdapterRegistry;
550
+ /** Per-adapter options keyed by adapter id, e.g. `{ pdf: { structure: false } }`. */
551
+ adapterOptions?: Record<string, unknown>;
399
552
  /** Insert extracted plain text instead of HTML (plain-text / prompt editors). */
400
553
  asPlainText?: boolean;
401
554
  /** Import files dropped onto the editor (default `true`). */
@@ -1161,6 +1314,337 @@ declare function formatFindStatus(s: Pick<FindReplaceSnapshot, "query" | "matche
1161
1314
  */
1162
1315
  declare const FindReplace: Extension<FindReplaceOptions, FindReplaceStorage>;
1163
1316
 
1317
+ /** Paragraph styles format whole blocks; character styles format runs of text. */
1318
+ type StyleKind = "paragraph" | "character";
1319
+ /** Character formatting of a style (CSS values). */
1320
+ interface CharacterFormat {
1321
+ fontFamily?: string;
1322
+ /** CSS length, e.g. `"1.5em"` or `"18px"`. */
1323
+ fontSize?: string;
1324
+ bold?: boolean;
1325
+ italic?: boolean;
1326
+ underline?: boolean;
1327
+ strike?: boolean;
1328
+ color?: string;
1329
+ backgroundColor?: string;
1330
+ letterSpacing?: string;
1331
+ textTransform?: "none" | "uppercase" | "lowercase" | "capitalize";
1332
+ smallCaps?: boolean;
1333
+ }
1334
+ /** Paragraph formatting of a style (CSS values). */
1335
+ interface ParagraphFormat {
1336
+ textAlign?: "left" | "center" | "right" | "justify";
1337
+ lineHeight?: string;
1338
+ spaceBefore?: string;
1339
+ spaceAfter?: string;
1340
+ indentLeft?: string;
1341
+ indentRight?: string;
1342
+ indentFirstLine?: string;
1343
+ /** CSS border shorthand, e.g. `"3px solid currentColor"`. */
1344
+ borderLeft?: string;
1345
+ paddingLeft?: string;
1346
+ backgroundColor?: string;
1347
+ }
1348
+ /** The block node a paragraph style uses (`heading` with `level` for Heading N). */
1349
+ interface StyleBlock {
1350
+ type: string;
1351
+ attrs?: Record<string, any>;
1352
+ }
1353
+ interface StyleDefinition {
1354
+ /** Stable id (`Heading1`): letters, digits, `_` and `-`, starting with a letter. */
1355
+ id: string;
1356
+ /** Display name (`Heading 1`). */
1357
+ name: string;
1358
+ kind: StyleKind;
1359
+ /** Style this one inherits from; what it sets wins over its base. */
1360
+ basedOn?: string | null;
1361
+ /** Style of the paragraph after this one when Enter is pressed at its end (paragraph styles). */
1362
+ next?: string | null;
1363
+ /** Linked style: a paragraph style's character style, or a character style's paragraph style. */
1364
+ linked?: string | null;
1365
+ paragraph?: ParagraphFormat;
1366
+ character?: CharacterFormat;
1367
+ /** Block node of a paragraph style. Inherited along `basedOn`; `paragraph` by default. */
1368
+ block?: StyleBlock | null;
1369
+ /** Gallery order (lower first). */
1370
+ priority?: number;
1371
+ /** Shown in the styles gallery. */
1372
+ quick?: boolean;
1373
+ hidden?: boolean;
1374
+ /** Built in (cannot be removed). */
1375
+ builtin?: boolean;
1376
+ }
1377
+ /** A style with its `basedOn` chain and the defaults merged. */
1378
+ interface ResolvedStyle {
1379
+ id: string;
1380
+ paragraph: ParagraphFormat;
1381
+ character: CharacterFormat;
1382
+ block: StyleBlock;
1383
+ /** Id of the style after Enter at the end of a paragraph. */
1384
+ next: string;
1385
+ }
1386
+ interface StyleDefaults {
1387
+ paragraph?: ParagraphFormat;
1388
+ character?: CharacterFormat;
1389
+ }
1390
+ interface StyleRegistryOptions {
1391
+ /** Styles added to (or replacing) the built-in ones. */
1392
+ styles?: readonly StyleDefinition[];
1393
+ /** Include the built-in styles. Default `true`. */
1394
+ builtins?: boolean;
1395
+ /** Document defaults, applied below every style. */
1396
+ defaults?: StyleDefaults;
1397
+ }
1398
+ interface StyleRegistrySnapshot {
1399
+ styles: readonly StyleDefinition[];
1400
+ defaults: StyleDefaults;
1401
+ /** Increases on every change. */
1402
+ version: number;
1403
+ }
1404
+ /** Serializable registry content (`registry.toJSON()`). */
1405
+ interface StyleRegistryJSON {
1406
+ styles: StyleDefinition[];
1407
+ defaults: StyleDefaults;
1408
+ }
1409
+ interface StyleCSSOptions {
1410
+ /** Selector the rules are scoped to. Default `.ProseMirror`. */
1411
+ scope?: string;
1412
+ /**
1413
+ * Element selector of blocks that use a style without naming it
1414
+ * (`data-style` absent), e.g. `h2` for Heading 2. Return `null` for none.
1415
+ */
1416
+ tagFor?: (block: StyleBlock) => string | null;
1417
+ }
1418
+ declare const NORMAL_STYLE_ID = "Normal";
1419
+ /** Whether `id` is a valid style id. */
1420
+ declare function isValidStyleId(id: unknown): id is string;
1421
+ /** The built-in styles: Normal, Title, Subtitle, Heading 1–6, Quote, Code, List Paragraph and character styles. */
1422
+ declare const DEFAULT_STYLES: readonly StyleDefinition[];
1423
+ /**
1424
+ * Style definitions with `basedOn` inheritance, next-style and linked
1425
+ * character/paragraph styles, resolved in cascade order: document defaults →
1426
+ * style chain (base first) → direct formatting. Chains are cycle-safe.
1427
+ *
1428
+ * `subscribe` calls the listener immediately and on every change (Svelte
1429
+ * store contract); `getSnapshot` is stable between changes.
1430
+ */
1431
+ declare class StyleRegistry {
1432
+ private styles;
1433
+ private defaults;
1434
+ private version;
1435
+ private snapshot;
1436
+ private listeners;
1437
+ constructor(options?: StyleRegistryOptions);
1438
+ get(id: string | null | undefined): StyleDefinition | undefined;
1439
+ /** Finds a style by id or display name (case-insensitive). */
1440
+ find(nameOrId: string): StyleDefinition | undefined;
1441
+ /** All styles (optionally of one kind) in gallery order. */
1442
+ list(kind?: StyleKind): StyleDefinition[];
1443
+ /** Styles shown in the gallery (`quick`, not hidden), paragraph styles by default. */
1444
+ gallery(kind?: StyleKind): StyleDefinition[];
1445
+ /** The `basedOn` chain from the root style down to `id` (cycle-safe, bounded). */
1446
+ chain(id: string): StyleDefinition[];
1447
+ /**
1448
+ * Resolves a paragraph style: defaults, then each style of the chain (base
1449
+ * first). Unknown ids resolve to the defaults in a `paragraph` block.
1450
+ */
1451
+ resolve(id: string): ResolvedStyle;
1452
+ /** Character formatting a paragraph style's chain sets (without defaults). */
1453
+ private paragraphCharacter;
1454
+ /**
1455
+ * Character formatting of a character style's chain. A style linked to a
1456
+ * paragraph style takes that style's character formatting first.
1457
+ */
1458
+ resolveCharacterStyle(id: string): CharacterFormat;
1459
+ /**
1460
+ * Character formatting of text: defaults → paragraph style chain →
1461
+ * character style chain → direct formatting.
1462
+ */
1463
+ resolveText(input: {
1464
+ paragraphStyle?: string | null;
1465
+ characterStyle?: string | null;
1466
+ direct?: CharacterFormat;
1467
+ }): CharacterFormat;
1468
+ /** The style after Enter at the end of a paragraph of `id` (itself when unset or unknown). */
1469
+ nextStyleId(id: string): string;
1470
+ /** The linked character style of a paragraph style, if any. */
1471
+ linkedCharacterStyle(id: string): StyleDefinition | undefined;
1472
+ /**
1473
+ * The style a block uses when it names none: Normal for paragraphs,
1474
+ * Heading N for headings of level N, Code for code blocks (the built-in
1475
+ * style whose own `block` matches).
1476
+ */
1477
+ defaultStyleFor(type: string, attrs?: Record<string, any>): string | null;
1478
+ /** The style of a block: its `styleId` when known, otherwise the block's default style. */
1479
+ styleOfBlock(type: string, attrs?: Record<string, any>): string | null;
1480
+ getSnapshot: () => StyleRegistrySnapshot;
1481
+ subscribe: (listener: (snapshot: StyleRegistrySnapshot) => void) => (() => void);
1482
+ toJSON(): StyleRegistryJSON;
1483
+ /** Adds or replaces a style. Throws on an invalid id. */
1484
+ upsert(style: StyleDefinition): StyleDefinition;
1485
+ /** Merges `patch` into a style (formats are merged key by key). Returns `undefined` for unknown ids. */
1486
+ update(id: string, patch: Partial<Omit<StyleDefinition, "id">>): StyleDefinition | undefined;
1487
+ /**
1488
+ * Removes a style and returns it. Built-in styles cannot be removed. Styles
1489
+ * based on it are rebased onto its own base, and `next`/`linked`
1490
+ * references to it are dropped.
1491
+ */
1492
+ remove(id: string): StyleDefinition | undefined;
1493
+ /** Replaces the document defaults. */
1494
+ setDefaults(defaults: StyleDefaults): void;
1495
+ /** An unused id derived from a display name (`My Style` → `MyStyle`, then `MyStyle1`, …). */
1496
+ newId(name: string): string;
1497
+ /** CSS declarations (`property: value`) of a resolved paragraph or character style. */
1498
+ cssDeclarations(id: string): Record<string, string>;
1499
+ /**
1500
+ * Declarations for previewing a style in a menu or gallery: font family,
1501
+ * weight, style, color, decoration, case and letter spacing (no sizes,
1502
+ * margins or borders).
1503
+ */
1504
+ previewDeclarations(id: string): Record<string, string>;
1505
+ /**
1506
+ * A stylesheet for the styles: `[data-style="Id"]` rules for paragraph
1507
+ * styles (plus the plain element of blocks that use their default style,
1508
+ * e.g. `h2:not([data-style])`), `[data-char-style="Id"]` for character
1509
+ * styles and the defaults on the scope element.
1510
+ */
1511
+ toCSS(options?: StyleCSSOptions): string;
1512
+ private put;
1513
+ private changed;
1514
+ }
1515
+ /** A CSS value, or `undefined` when it is unsafe or empty. */
1516
+ declare function safeCSSValue(value: unknown): string | undefined;
1517
+ /** Creates a style registry with the built-in styles (unless `builtins: false`) and `styles`. */
1518
+ declare function createStyleRegistry(options?: StyleRegistryOptions | StyleRegistryJSON): StyleRegistry;
1519
+
1520
+ /** Node attribute naming a block's paragraph style (`data-style` in HTML). */
1521
+ declare const STYLE_ID_ATTRIBUTE = "styleId";
1522
+ /** Mark applying a character style (`<span data-char-style>`). */
1523
+ declare const CHARACTER_STYLE_MARK_NAME = "characterStyle";
1524
+ interface ParagraphStylesOptions {
1525
+ /** The style registry. Defaults to a new registry with the built-in styles per editor. */
1526
+ registry: StyleRegistry | null;
1527
+ /** Block types that carry the `styleId` attribute. */
1528
+ types: string[];
1529
+ /**
1530
+ * Inject a `<style>` element with `registry.toCSS({ scope })` while the
1531
+ * editor exists (kept up to date). Default `true`.
1532
+ */
1533
+ injectCSS: boolean;
1534
+ /** Selector the injected CSS is scoped to. Default `.ProseMirror`. */
1535
+ cssScope: string;
1536
+ /** Nonce of the injected `<style>` element (Content Security Policy). */
1537
+ cssNonce?: string;
1538
+ /**
1539
+ * Applying a paragraph style to a partial selection inside one paragraph
1540
+ * applies its linked character style instead (as in Word). Default `true`.
1541
+ */
1542
+ linkedCharacterStyles: boolean;
1543
+ }
1544
+ interface ParagraphStylesStorage {
1545
+ registry: StyleRegistry;
1546
+ }
1547
+ interface CreateStyleFromSelectionOptions {
1548
+ /** Id of the new style. Default: derived from the name. */
1549
+ id?: string;
1550
+ /** Base style. Default: the style at the selection. */
1551
+ basedOn?: string | null;
1552
+ /** Apply the new style to the selected paragraphs. Default `true`. */
1553
+ apply?: boolean;
1554
+ }
1555
+ declare module "@tiptap/core" {
1556
+ interface Commands<ReturnType> {
1557
+ paragraphStyles: {
1558
+ /** Applies a paragraph style to the selected blocks (changing headings/code blocks as the style needs). */
1559
+ setParagraphStyle: (id: string) => ReturnType;
1560
+ /** Resets the selected blocks to the Normal style. */
1561
+ clearParagraphStyle: () => ReturnType;
1562
+ /** Applies a character style to the selection. */
1563
+ setCharacterStyle: (id: string) => ReturnType;
1564
+ unsetCharacterStyle: () => ReturnType;
1565
+ /**
1566
+ * Updates a style (default: the style at the selection) to the direct
1567
+ * formatting at the selection ("Update to match selection").
1568
+ */
1569
+ updateParagraphStyleFromSelection: (id?: string) => ReturnType;
1570
+ /** Creates a paragraph style from the formatting at the selection ("New style from selection"). */
1571
+ createParagraphStyleFromSelection: (name: string, options?: CreateStyleFromSelectionOptions) => ReturnType;
1572
+ };
1573
+ }
1574
+ }
1575
+ declare const paragraphStylesPluginKey: PluginKey<any>;
1576
+ /** The style registry of an editor using `ParagraphStyles`. */
1577
+ declare function getStyleRegistry(editor: Editor | null | undefined): StyleRegistry | null;
1578
+ /**
1579
+ * Whether a paragraph style can be applied in this editor: its block type is
1580
+ * in the schema (and, for headings, its level is configured).
1581
+ */
1582
+ declare function isParagraphStyleAvailable(editor: Editor, registry: StyleRegistry, id: string): boolean;
1583
+ /** The paragraph style of the textblock at `pos` (defaults to the selection start). */
1584
+ declare function getParagraphStyleAt(state: EditorState, registry: StyleRegistry, pos?: number): string | null;
1585
+ /**
1586
+ * The direct formatting at the selection, as style formats: bold, italic,
1587
+ * underline, strike, font family/size, color and highlight from marks, and
1588
+ * the alignment of the block.
1589
+ */
1590
+ declare function captureSelectionFormat(state: EditorState): {
1591
+ paragraph: ParagraphFormat;
1592
+ character: CharacterFormat;
1593
+ };
1594
+ /** Character style applied to a run of text. */
1595
+ declare const CharacterStyle: Mark<any, any>;
1596
+ /**
1597
+ * Paragraph styles (Normal, Title, Heading 1, …) from a `StyleRegistry`:
1598
+ * a `styleId` attribute on paragraphs and headings (`data-style` in HTML),
1599
+ * a `characterStyle` mark, apply/clear/update/create commands, next-style
1600
+ * on Enter and an injected stylesheet. Headings without a `styleId` use
1601
+ * Heading N, plain paragraphs Normal, so existing documents are unchanged.
1602
+ */
1603
+ declare const ParagraphStyles: Extension<ParagraphStylesOptions, ParagraphStylesStorage>;
1604
+ interface ParagraphStylesSnapshot {
1605
+ /** Paragraph styles for the gallery (quick, not hidden, available in this editor). */
1606
+ gallery: readonly StyleDefinition[];
1607
+ /** All paragraph styles available in this editor. */
1608
+ styles: readonly StyleDefinition[];
1609
+ /** Character styles. */
1610
+ characterStyles: readonly StyleDefinition[];
1611
+ /** The style of the block at the selection. */
1612
+ currentStyleId: string | null;
1613
+ /** Registry version (changes when styles change). */
1614
+ version: number;
1615
+ }
1616
+ interface ParagraphStylesStore {
1617
+ getSnapshot(): ParagraphStylesSnapshot;
1618
+ subscribe(listener: () => void): () => void;
1619
+ destroy(): void;
1620
+ }
1621
+ /**
1622
+ * External store over an editor's paragraph styles and the style at the
1623
+ * selection, for `useSyncExternalStore` and Svelte runes. Snapshots change
1624
+ * only when the styles or the current style change. Listeners are attached
1625
+ * to the editor only while subscribed.
1626
+ */
1627
+ declare function createParagraphStylesStore(editor: Editor | null | undefined): ParagraphStylesStore;
1628
+
1629
+ /**
1630
+ * The TipTap packages whose commands the preset installs. Exported only so the
1631
+ * published declarations import them: each package augments `@tiptap/core`'s
1632
+ * `Commands` interface, which is what types `editor.chain().toggleBold()`,
1633
+ * `toggleHeading()`, `setTextAlign()` and so on for apps that use the preset
1634
+ * without depending on those packages themselves. (Triple-slash references are
1635
+ * dropped by the declaration bundler, and runtime imports leave no trace in .d.ts.)
1636
+ */
1637
+ type RichTextPresetCommandPackages = [
1638
+ typeof _tiptap_starter_kit,
1639
+ typeof _tiptap_extension_color,
1640
+ typeof _tiptap_extension_highlight,
1641
+ typeof _tiptap_extension_image,
1642
+ typeof _tiptap_extension_link,
1643
+ typeof _tiptap_extension_task_list,
1644
+ typeof _tiptap_extension_text_align,
1645
+ typeof _tiptap_extension_text_style,
1646
+ typeof _tiptap_extension_underline
1647
+ ];
1164
1648
  interface RichTextPresetOptions {
1165
1649
  placeholder?: string | ((props: {
1166
1650
  node: any;
@@ -1199,6 +1683,11 @@ interface RichTextPresetOptions {
1199
1683
  crossReferences?: Partial<CrossReferenceOptions> | boolean;
1200
1684
  /** Word-style Find and Replace (Mod+F / Mod+H, match highlights). Off by default. */
1201
1685
  findReplace?: Partial<FindReplaceOptions> | boolean;
1686
+ /**
1687
+ * Paragraph styles (Normal, Title, Heading 1–6, Quote, …) with a style
1688
+ * registry, `data-style` attributes and next-style on Enter. Off by default.
1689
+ */
1690
+ paragraphStyles?: Partial<ParagraphStylesOptions> | boolean;
1202
1691
  }
1203
1692
  /**
1204
1693
  * Creates a standard rich-text extensions bundle with full formatting support.
@@ -1262,4 +1751,4 @@ declare function createFindReplaceCommands(editor: Editor, options?: FindReplace
1262
1751
  /** Validates Find text without an editor (e.g. to show an error while typing). */
1263
1752
  declare function validateFindPattern(query: string, options?: FindOptions): FindPatternError | null;
1264
1753
 
1265
- export { FindReplaceStore as $, type AddCommentOptions as A, BUILT_IN_IMPORT_ADAPTERS as B, COMMENT_MARK_NAME as C, type DocumentImport as D, type DocumentSearchOptions as E, type DocumentSearchResult as F, type DocumentStructureCommandArgs as G, type DocumentStructureCommandItem as H, EMPTY_FIND_REPLACE_SNAPSHOT as I, type EditorCompareOptions as J, FIND_OPTION_TOGGLES as K, FIND_PARAGRAPH_MARK as L, FileImport as M, type FileImportOptions as N, type FindAllOptions as O, type FindAllResult as P, type FindMatch as Q, type FindOptionToggle as R, type FindOptions as S, type FindPatternError as T, type FindPatternErrorCode as U, FindReplace as V, type FindReplaceCommandOptions as W, type FindReplaceMode as X, type FindReplaceOptions as Y, type FindReplaceSnapshot as Z, type FindReplaceStorage as _, type DocumentImportAdapter as a, fileImportPluginKey as a$, type FocusHeadingOptions as a0, FontSize as a1, Footnote as a2, type FootnoteInfo as a3, FootnoteReference as a4, Footnotes as a5, type FootnotesOptions as a6, GradientText as a7, type GradientTextOptions as a8, Image as a9, SlashCommands as aA, type SlashCommandsOptions as aB, SmilieReplacer as aC, TableOfContents as aD, type TableOfContentsEntry as aE, type TableOfContentsOptions as aF, TemplateSuggestions as aG, type TemplateSuggestionsOptions as aH, applyDocumentComparison as aI, applyReplacements as aJ, autocorrectPluginKey as aK, buildOutlineTree as aL, capitalizeSentenceRules as aM, commentsPluginKey as aN, compareInEditor as aO, compileFindPattern as aP, computeOutline as aQ, createFindReplaceCommands as aR, createImportAdapterRegistry as aS, createOutlineStore as aT, createRichTextPreset as aU, createSearchBudget as aV, crossReferencePluginKey as aW, defaultAutocorrectRules as aX, defaultImportRegistry as aY, documentStructureCommandItems as aZ, expandReplacement as a_, type ImageOptions as aa, type InsertFootnoteOptions as ab, type InsertTableOfContentsOptions as ac, LoadingNode as ad, MAX_FIND_PATTERN_LENGTH as ae, Markdown as af, type OpenFindReplaceParams as ag, Outline as ah, type OutlineHeading as ai, type OutlineOptions as aj, type OutlineSnapshot as ak, type OutlineStorage as al, type OutlineStore as am, type OutlineTreeItem as an, type PatternMatch as ao, type ReplacePiece as ap, RichClipboard as aq, type RichClipboardOptions as ar, type RichClipboardStorage as as, type RichTextPresetOptions as at, SMILIE_REPLACEMENTS as au, type SearchBudget as av, type SearchBudgetOptions as aw, type SetBookmarkOptions as ax, type SetSearchParams as ay, type SlashCommandMatchData as az, Autocorrect as b, findAllMatches as b0, findAutocorrection as b1, findCommentRanges as b2, findHexColors as b3, findImportAdapter as b4, findReplacePluginKey as b5, foldCodePoint as b6, footnotesMarkdownIt as b7, footnotesPluginKey as b8, formatFindStatus as b9, registerImportAdapter as bA, removeImageNode as bB, richClipboardPluginKey as bC, rtfImportAdapter as bD, searchDocument as bE, smartQuoteRules as bF, smilieAutocorrectRules as bG, symbolRules as bH, syncFootnotes as bI, tableOfContentsMarkdownIt as bJ, tableOfContentsPluginKey as bK, twoInitialCapitalsRules as bL, unregisterImportAdapter as bM, updateImageSrc as bN, validateFindPattern as bO, writeRichClipboard as bP, fractionRules as ba, getActiveHeading as bb, getBookmarks as bc, getCommentAnchors as bd, getCommentAuthor as be, getCommentIdsAt as bf, getCommentStore as bg, getCrossReferenceTargets as bh, getDocumentStructureCommandItems as bi, getFindReplaceState as bj, getFindReplaceStore as bk, getFootnotes as bl, getImportAccept as bm, getOutline as bn, getTableOfContentsEntries as bo, handleImageInsertion as bp, htmlImportAdapter as bq, imagePastePluginKey as br, importFile as bs, insertImageNode as bt, isInsidePromptToken as bu, markdownImportAdapter as bv, navigateToHeading as bw, outlinePluginKey as bx, parseReplacement as by, plainTextImportAdapter as bz, type AutocorrectContext as c, type AutocorrectCorrection as d, type AutocorrectOptions as e, type AutocorrectRule as f, type AutocorrectStorage as g, Bookmark as h, type BookmarkInfo as i, type BookmarkOptions as j, ColorHighlighter as k, type CommentRange as l, Comments as m, type CommentsOptions as n, type CommentsStorage as o, type CompileFindPatternResult as p, type CompiledFindPattern as q, type CreateImportAdapterRegistryOptions as r, CrossReference as s, type CrossReferenceOptions as t, type CrossReferenceTarget as u, type CrossReferenceTargetType as v, DEFAULT_AUTOCORRECT_EXCEPTIONS as w, DocumentCompare as x, type DocumentCompareOptions as y, type DocumentCompareStorage as z };
1754
+ export { type FindOptions as $, type AddCommentOptions as A, BUILT_IN_IMPORT_ADAPTERS as B, CHARACTER_STYLE_MARK_NAME as C, type DocumentImport as D, type CrossReferenceOptions as E, type CrossReferenceTarget as F, type CrossReferenceTargetType as G, DEFAULT_AUTOCORRECT_EXCEPTIONS as H, DEFAULT_STYLES as I, DocumentCompare as J, type DocumentCompareOptions as K, type DocumentCompareStorage as L, type DocumentSearchOptions as M, type DocumentSearchResult as N, type DocumentStructureCommandArgs as O, type PdfStructureReport as P, type DocumentStructureCommandItem as Q, EMPTY_FIND_REPLACE_SNAPSHOT as R, type EditorCompareOptions as S, FIND_OPTION_TOGGLES as T, FIND_PARAGRAPH_MARK as U, FileImport as V, type FileImportOptions as W, type FindAllOptions as X, type FindAllResult as Y, type FindMatch as Z, type FindOptionToggle as _, type DocumentImportAdapter as a, SmilieReplacer as a$, type FindPatternError as a0, type FindPatternErrorCode as a1, FindReplace as a2, type FindReplaceCommandOptions as a3, type FindReplaceMode as a4, type FindReplaceOptions as a5, type FindReplaceSnapshot as a6, type FindReplaceStorage as a7, FindReplaceStore as a8, type FocusHeadingOptions as a9, type ParagraphFormat as aA, ParagraphStyles as aB, type ParagraphStylesOptions as aC, type ParagraphStylesSnapshot as aD, type ParagraphStylesStorage as aE, type ParagraphStylesStore as aF, type PatternMatch as aG, type PdfLayoutBlock as aH, type PdfLayoutPage as aI, type PdfLayoutResult as aJ, type PdfTableCell as aK, type ReplacePiece as aL, type ResolvedStyle as aM, RichClipboard as aN, type RichClipboardOptions as aO, type RichClipboardStorage as aP, type RichTextPresetCommandPackages as aQ, type RichTextPresetOptions as aR, SMILIE_REPLACEMENTS as aS, STYLE_ID_ATTRIBUTE as aT, type SearchBudget as aU, type SearchBudgetOptions as aV, type SetBookmarkOptions as aW, type SetSearchParams as aX, type SlashCommandMatchData as aY, SlashCommands as aZ, type SlashCommandsOptions as a_, FontSize as aa, Footnote as ab, type FootnoteInfo as ac, FootnoteReference as ad, Footnotes as ae, type FootnotesOptions as af, GradientText as ag, type GradientTextOptions as ah, Image as ai, type ImageOptions as aj, type ImportStructureItem as ak, type ImportStructureReport as al, type InsertFootnoteOptions as am, type InsertTableOfContentsOptions as an, LoadingNode as ao, MAX_FIND_PATTERN_LENGTH as ap, Markdown as aq, NORMAL_STYLE_ID as ar, type OpenFindReplaceParams as as, Outline as at, type OutlineHeading as au, type OutlineOptions as av, type OutlineSnapshot as aw, type OutlineStorage as ax, type OutlineStore as ay, type OutlineTreeItem as az, type PdfLayoutOptions as b, getStyleRegistry as b$, type StyleBlock as b0, type StyleCSSOptions as b1, type StyleDefaults as b2, type StyleDefinition as b3, type StyleKind as b4, StyleRegistry as b5, type StyleRegistryJSON as b6, type StyleRegistryOptions as b7, type StyleRegistrySnapshot as b8, TableOfContents as b9, expandReplacement as bA, fileImportPluginKey as bB, findAllMatches as bC, findAutocorrection as bD, findCommentRanges as bE, findHexColors as bF, findImportAdapter as bG, findReplacePluginKey as bH, foldCodePoint as bI, footnotesMarkdownIt as bJ, footnotesPluginKey as bK, formatFindStatus as bL, fractionRules as bM, getActiveHeading as bN, getBookmarks as bO, getCommentAnchors as bP, getCommentAuthor as bQ, getCommentIdsAt as bR, getCommentStore as bS, getCrossReferenceTargets as bT, getDocumentStructureCommandItems as bU, getFindReplaceState as bV, getFindReplaceStore as bW, getFootnotes as bX, getImportAccept as bY, getOutline as bZ, getParagraphStyleAt as b_, type TableOfContentsEntry as ba, type TableOfContentsOptions as bb, TemplateSuggestions as bc, type TemplateSuggestionsOptions as bd, analyzePdfLayout as be, applyDocumentComparison as bf, applyReplacements as bg, autocorrectPluginKey as bh, buildOutlineTree as bi, capitalizeSentenceRules as bj, captureSelectionFormat as bk, commentsPluginKey as bl, compareInEditor as bm, compileFindPattern as bn, computeOutline as bo, createFindReplaceCommands as bp, createImportAdapterRegistry as bq, createOutlineStore as br, createParagraphStylesStore as bs, createRichTextPreset as bt, createSearchBudget as bu, createStyleRegistry as bv, crossReferencePluginKey as bw, defaultAutocorrectRules as bx, defaultImportRegistry as by, documentStructureCommandItems as bz, type PdfRuleLine as c, getTableOfContentsEntries as c0, handleImageInsertion as c1, htmlImportAdapter as c2, imagePastePluginKey as c3, importFile as c4, insertImageNode as c5, isInsidePromptToken as c6, isParagraphStyleAvailable as c7, isValidStyleId as c8, markdownImportAdapter as c9, navigateToHeading as ca, outlinePluginKey as cb, paragraphStylesPluginKey as cc, parseReplacement as cd, pdfLayoutBlocksToHtml as ce, plainTextImportAdapter as cf, registerImportAdapter as cg, removeImageNode as ch, richClipboardPluginKey as ci, rtfImportAdapter as cj, safeCSSValue as ck, searchDocument as cl, smartQuoteRules as cm, smilieAutocorrectRules as cn, symbolRules as co, syncFootnotes as cp, tableOfContentsMarkdownIt as cq, tableOfContentsPluginKey as cr, twoInitialCapitalsRules as cs, unregisterImportAdapter as ct, updateImageSrc as cu, validateFindPattern as cv, writeRichClipboard as cw, type PdfTextRun as d, Autocorrect as e, type AutocorrectContext as f, type AutocorrectCorrection as g, type AutocorrectOptions as h, type AutocorrectRule as i, type AutocorrectStorage as j, Bookmark as k, type BookmarkInfo as l, type BookmarkOptions as m, COMMENT_MARK_NAME as n, type CharacterFormat as o, CharacterStyle as p, ColorHighlighter as q, type CommentRange as r, Comments as s, type CommentsOptions as t, type CommentsStorage as u, type CompileFindPatternResult as v, type CompiledFindPattern as w, type CreateImportAdapterRegistryOptions as x, type CreateStyleFromSelectionOptions as y, CrossReference as z };