quoin-editor 1.2.3 → 1.4.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 (180) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/THIRD_PARTY_NOTICES.md +47 -0
  3. package/dist/ai.cjs +69 -70
  4. package/dist/ai.cjs.map +1 -1
  5. package/dist/ai.d.cts +4 -3
  6. package/dist/ai.d.ts +4 -3
  7. package/dist/ai.js +4 -5
  8. package/dist/ai.js.map +1 -1
  9. package/dist/catalogue.cjs +20 -20
  10. package/dist/catalogue.d.cts +10 -9
  11. package/dist/catalogue.d.ts +10 -9
  12. package/dist/catalogue.js +12 -12
  13. package/dist/{chunk-35CHEARK.cjs → chunk-3NVFHJFS.cjs} +42 -41
  14. package/dist/chunk-3NVFHJFS.cjs.map +1 -0
  15. package/dist/{chunk-BR25RE7U.js → chunk-3YA7FYEL.js} +9 -6
  16. package/dist/chunk-3YA7FYEL.js.map +1 -0
  17. package/dist/{chunk-CZ5ZXBWC.cjs → chunk-65WK575V.cjs} +762 -306
  18. package/dist/chunk-65WK575V.cjs.map +1 -0
  19. package/dist/{chunk-Y7UKOBSY.js → chunk-6LOYAC5N.js} +7 -6
  20. package/dist/chunk-6LOYAC5N.js.map +1 -0
  21. package/dist/{chunk-KMIWUFNM.cjs → chunk-7WSBPD6Z.cjs} +96 -93
  22. package/dist/chunk-7WSBPD6Z.cjs.map +1 -0
  23. package/dist/{chunk-TARBFPWC.js → chunk-AC4AFDTI.js} +6 -6
  24. package/dist/{chunk-TARBFPWC.js.map → chunk-AC4AFDTI.js.map} +1 -1
  25. package/dist/{chunk-SCFW4JFT.cjs → chunk-AZ2ZNSFN.cjs} +43 -44
  26. package/dist/chunk-AZ2ZNSFN.cjs.map +1 -0
  27. package/dist/{chunk-ZVCBTQA3.cjs → chunk-AZF7B2AE.cjs} +10 -10
  28. package/dist/{chunk-ZVCBTQA3.cjs.map → chunk-AZF7B2AE.cjs.map} +1 -1
  29. package/dist/{chunk-DQV37F7J.cjs → chunk-FQDNF7MF.cjs} +68 -69
  30. package/dist/chunk-FQDNF7MF.cjs.map +1 -0
  31. package/dist/{chunk-25HNTVEI.js → chunk-G25FMFEZ.js} +3 -3
  32. package/dist/{chunk-25HNTVEI.js.map → chunk-G25FMFEZ.js.map} +1 -1
  33. package/dist/{chunk-A5LIN7FO.cjs → chunk-H5FM6I5W.cjs} +26 -26
  34. package/dist/{chunk-A5LIN7FO.cjs.map → chunk-H5FM6I5W.cjs.map} +1 -1
  35. package/dist/{chunk-YCVNFRL3.js → chunk-IJKGF6SC.js} +4 -4
  36. package/dist/{chunk-YCVNFRL3.js.map → chunk-IJKGF6SC.js.map} +1 -1
  37. package/dist/{chunk-4HFE3YFF.js → chunk-KRLHGVJV.js} +8 -7
  38. package/dist/chunk-KRLHGVJV.js.map +1 -0
  39. package/dist/{chunk-J552D3A7.js → chunk-MQTLZTIM.js} +448 -25
  40. package/dist/chunk-MQTLZTIM.js.map +1 -0
  41. package/dist/{chunk-KXOAV7AT.js → chunk-OS2O6IKX.js} +135 -12
  42. package/dist/chunk-OS2O6IKX.js.map +1 -0
  43. package/dist/{chunk-OGBD74IR.cjs → chunk-QJ34MOFV.cjs} +187 -117
  44. package/dist/chunk-QJ34MOFV.cjs.map +1 -0
  45. package/dist/{chunk-SAPLIQF2.js → chunk-QOIVLYMW.js} +4 -4
  46. package/dist/{chunk-SAPLIQF2.js.map → chunk-QOIVLYMW.js.map} +1 -1
  47. package/dist/{chunk-IGEWAL2J.cjs → chunk-QPOUONJ7.cjs} +32 -31
  48. package/dist/chunk-QPOUONJ7.cjs.map +1 -0
  49. package/dist/{chunk-K7JEN3KT.cjs → chunk-QR2NIDUK.cjs} +4 -4
  50. package/dist/{chunk-K7JEN3KT.cjs.map → chunk-QR2NIDUK.cjs.map} +1 -1
  51. package/dist/{chunk-4D7HZRNC.js → chunk-R7MYG522.js} +3 -3
  52. package/dist/{chunk-4D7HZRNC.js.map → chunk-R7MYG522.js.map} +1 -1
  53. package/dist/{chunk-BNUQ647G.js → chunk-STCJWXP5.js} +5 -6
  54. package/dist/chunk-STCJWXP5.js.map +1 -0
  55. package/dist/{chunk-BJIWN7BQ.cjs → chunk-STKGRXSA.cjs} +10 -10
  56. package/dist/{chunk-BJIWN7BQ.cjs.map → chunk-STKGRXSA.cjs.map} +1 -1
  57. package/dist/{chunk-5ANJW76W.cjs → chunk-VUYJGFUA.cjs} +23 -22
  58. package/dist/chunk-VUYJGFUA.cjs.map +1 -0
  59. package/dist/{chunk-FOEEDJ5R.js → chunk-VVS6JJLI.js} +7 -6
  60. package/dist/chunk-VVS6JJLI.js.map +1 -0
  61. package/dist/{chunk-G37GQ5JE.cjs → chunk-VZZPCYA3.cjs} +135 -12
  62. package/dist/chunk-VZZPCYA3.cjs.map +1 -0
  63. package/dist/{chunk-JYKSWEXT.cjs → chunk-WN7BZDNH.cjs} +6 -6
  64. package/dist/{chunk-JYKSWEXT.cjs.map → chunk-WN7BZDNH.cjs.map} +1 -1
  65. package/dist/{chunk-CCOPHCXX.js → chunk-XFEDJEJF.js} +109 -39
  66. package/dist/chunk-XFEDJEJF.js.map +1 -0
  67. package/dist/{chunk-I7OOIEZZ.js → chunk-YEQEBJPM.js} +5 -6
  68. package/dist/chunk-YEQEBJPM.js.map +1 -0
  69. package/dist/comments.cjs +54 -54
  70. package/dist/comments.cjs.map +1 -1
  71. package/dist/comments.d.cts +4 -3
  72. package/dist/comments.d.ts +4 -3
  73. package/dist/comments.js +8 -8
  74. package/dist/comments.js.map +1 -1
  75. package/dist/diff.d.cts +7 -5
  76. package/dist/diff.d.ts +7 -5
  77. package/dist/docx.cjs +1 -1
  78. package/dist/docx.d.cts +3 -2
  79. package/dist/docx.d.ts +3 -2
  80. package/dist/docx.js +1 -1
  81. package/dist/embed.cjs +6 -6
  82. package/dist/embed.d.cts +5 -4
  83. package/dist/embed.d.ts +5 -4
  84. package/dist/embed.js +4 -4
  85. package/dist/emoji-data.cjs +272 -263
  86. package/dist/emoji-data.cjs.map +1 -1
  87. package/dist/emoji-data.js +272 -263
  88. package/dist/emoji-data.js.map +1 -1
  89. package/dist/{emoji-extension-CmPlRssm.d.ts → emoji-extension-C3o_Y5uC.d.cts} +3 -2
  90. package/dist/{emoji-extension-zJ6F7hW8.d.cts → emoji-extension-gRKnbW8G.d.ts} +3 -2
  91. package/dist/emoji.cjs +7 -7
  92. package/dist/emoji.d.cts +6 -5
  93. package/dist/emoji.d.ts +6 -5
  94. package/dist/emoji.js +4 -4
  95. package/dist/engine.cjs +43 -43
  96. package/dist/engine.d.cts +7 -6
  97. package/dist/engine.d.ts +7 -6
  98. package/dist/engine.js +1 -1
  99. package/dist/{find-extension-CmFehyul.d.ts → find-extension-BGGsJMu4.d.cts} +3 -2
  100. package/dist/{find-extension-BcRyE9K4.d.cts → find-extension-B_Ctrs6T.d.ts} +3 -2
  101. package/dist/find.cjs +8 -8
  102. package/dist/find.d.cts +5 -4
  103. package/dist/find.d.ts +5 -4
  104. package/dist/find.js +4 -4
  105. package/dist/headless.cjs +59 -59
  106. package/dist/headless.d.cts +10 -9
  107. package/dist/headless.d.ts +10 -9
  108. package/dist/headless.js +2 -2
  109. package/dist/{index-DiCGV60d.d.ts → index-CsG7OQoq.d.cts} +3 -2
  110. package/dist/{index-CFPmCee4.d.cts → index-h1llgZM-.d.ts} +3 -2
  111. package/dist/index.cjs +71 -71
  112. package/dist/index.d.cts +11 -10
  113. package/dist/index.d.ts +11 -10
  114. package/dist/index.js +3 -3
  115. package/dist/math.cjs +7 -7
  116. package/dist/math.d.cts +5 -4
  117. package/dist/math.d.ts +5 -4
  118. package/dist/math.js +5 -5
  119. package/dist/mention.cjs +7 -7
  120. package/dist/mention.d.cts +4 -3
  121. package/dist/mention.d.ts +4 -3
  122. package/dist/mention.js +5 -5
  123. package/dist/presence.cjs +33 -33
  124. package/dist/presence.d.cts +5 -4
  125. package/dist/presence.d.ts +5 -4
  126. package/dist/presence.js +5 -5
  127. package/dist/{registry-CXegaw5k.d.ts → registry-DdQaddP1.d.cts} +2 -1
  128. package/dist/{registry-CXegaw5k.d.cts → registry-DdQaddP1.d.ts} +2 -1
  129. package/dist/{stats-extension-DisOEbbI.d.ts → stats-extension-XqOTvRaq.d.cts} +3 -2
  130. package/dist/{stats-extension-Dt1lgP3m.d.cts → stats-extension-oD6D1cYy.d.ts} +3 -2
  131. package/dist/stats.cjs +7 -7
  132. package/dist/stats.d.cts +6 -5
  133. package/dist/stats.d.ts +6 -5
  134. package/dist/stats.js +4 -4
  135. package/dist/styles.css +1 -1
  136. package/dist/{table-extension-DxZz3jqp.d.cts → table-extension-BP47hHoz.d.cts} +3 -2
  137. package/dist/{table-extension-BTMJnT7J.d.ts → table-extension-v6VB59bF.d.ts} +3 -2
  138. package/dist/table.cjs +23 -23
  139. package/dist/table.d.cts +5 -4
  140. package/dist/table.d.ts +5 -4
  141. package/dist/table.js +4 -4
  142. package/dist/{to-html-CNCITCln.d.cts → to-html-1oD-CDle.d.cts} +3 -2
  143. package/dist/{to-html-C5t7xyaM.d.ts → to-html-CLRBCX0I.d.ts} +3 -2
  144. package/dist/{toc-extension-DGHywOBv.d.cts → toc-extension-CI6jNOYl.d.cts} +3 -2
  145. package/dist/{toc-extension-CR9U-l6j.d.ts → toc-extension-CTHWjNJC.d.ts} +3 -2
  146. package/dist/toc.cjs +7 -7
  147. package/dist/toc.d.cts +5 -4
  148. package/dist/toc.d.ts +5 -4
  149. package/dist/toc.js +4 -4
  150. package/dist/{types-C6_QkXzy.d.ts → types-BjLcmV00.d.ts} +3 -26
  151. package/dist/{types-DULc8wwg.d.ts → types-CQ8Vw_7N.d.cts} +27 -1
  152. package/dist/{types-DULc8wwg.d.cts → types-CQ8Vw_7N.d.ts} +27 -1
  153. package/dist/{types-CJ7Gq3GX.d.cts → types-DXF9p4qV.d.cts} +3 -26
  154. package/dist/{view-controller-zNqHm_Qg.d.ts → view-controller-BfVSNZYZ.d.cts} +4 -3
  155. package/dist/{view-controller-cxQJ5rQb.d.cts → view-controller-p-2x3J7Y.d.ts} +4 -3
  156. package/dist/view.d.cts +7 -5
  157. package/dist/view.d.ts +7 -5
  158. package/dist/yjs.cjs +99 -99
  159. package/dist/yjs.d.cts +4 -4
  160. package/dist/yjs.d.ts +4 -4
  161. package/dist/yjs.js +3 -3
  162. package/package.json +19 -18
  163. package/dist/chunk-35CHEARK.cjs.map +0 -1
  164. package/dist/chunk-4HFE3YFF.js.map +0 -1
  165. package/dist/chunk-5ANJW76W.cjs.map +0 -1
  166. package/dist/chunk-BNUQ647G.js.map +0 -1
  167. package/dist/chunk-BR25RE7U.js.map +0 -1
  168. package/dist/chunk-CCOPHCXX.js.map +0 -1
  169. package/dist/chunk-CZ5ZXBWC.cjs.map +0 -1
  170. package/dist/chunk-DQV37F7J.cjs.map +0 -1
  171. package/dist/chunk-FOEEDJ5R.js.map +0 -1
  172. package/dist/chunk-G37GQ5JE.cjs.map +0 -1
  173. package/dist/chunk-I7OOIEZZ.js.map +0 -1
  174. package/dist/chunk-IGEWAL2J.cjs.map +0 -1
  175. package/dist/chunk-J552D3A7.js.map +0 -1
  176. package/dist/chunk-KMIWUFNM.cjs.map +0 -1
  177. package/dist/chunk-KXOAV7AT.js.map +0 -1
  178. package/dist/chunk-OGBD74IR.cjs.map +0 -1
  179. package/dist/chunk-SCFW4JFT.cjs.map +0 -1
  180. package/dist/chunk-Y7UKOBSY.js.map +0 -1
@@ -1,31 +1,7 @@
1
- import { E as EngineDoc, P as Pos, B as BlockAttrs, I as Inline, a as Selection, M as Mark, S as Schema, A as Attrs, Q as QuoinBlock, g as BlockSpec, k as MarkSpec, c as AtomSpec } from './types-DULc8wwg.js';
1
+ import { E as EngineDoc, a as Step, q as PosMap, b as Selection, M as Mark, P as Pos, d as Assoc, S as Schema, B as BlockAttrs, A as Attrs, Q as QuoinBlock, i as BlockSpec, n as MarkSpec, e as AtomSpec } from './types-CQ8Vw_7N.js';
2
2
 
3
3
  type Align = 'left' | 'center' | 'right' | 'justify';
4
4
 
5
- type Assoc = -1 | 1;
6
- type PosMap = (pos: Pos, assoc?: Assoc) => Pos;
7
- type StepResult = {
8
- doc: EngineDoc;
9
- map: PosMap;
10
- };
11
- type StepJSON = {
12
- readonly stepType: string;
13
- } & Readonly<Record<string, unknown>>;
14
- interface Step {
15
- readonly stepType: string;
16
- apply(doc: EngineDoc): StepResult;
17
- invert(before: EngineDoc): Step;
18
- toJSON(): StepJSON;
19
- }
20
- type CreatedBlock = {
21
- id: string;
22
- type: string;
23
- attrs: BlockAttrs;
24
- indent: number;
25
- region: string;
26
- regions?: Record<string, Inline>;
27
- };
28
-
29
5
  type TransactionOrigin = 'input' | 'command' | 'paste' | 'drop' | 'remote' | 'reconcile' | 'ai' | 'history';
30
6
  declare class Transaction {
31
7
  #private;
@@ -355,4 +331,5 @@ type Extension = {
355
331
  readonly ui?: unknown;
356
332
  };
357
333
 
358
- export { type Align as A, type BlockStructureOptions as B, type CommandFactories as C, type Decoration as D, type Extension as E, type FromHTMLOptions as F, createState as G, fromHTML as H, type InputRule as I, getPluginState as J, type KeyLike as K, insertBlockAfter as L, type MarkdownOptions as M, insertText as N, insertTextWithRules as O, type PluginKey as P, keyName as Q, normalizeKey as R, type Step as S, Transaction as T, setBlockType as U, toggleMark as V, type Editor as a, type Command as b, type EditorState as c, type PluginSpec as d, type Assoc as e, type BoundCommands as f, type Chain as g, type CoreCommands as h, type CoreExtensionOptions as i, type CreatedBlock as j, type DOMParserLike as k, type EditorOptions as l, type InputRuleContext as m, type InputRuleRange as n, type InsertTextOptions as o, type PasteRule as p, type PosMap as q, type Slice as r, type StepJSON as s, type StepResult as t, type TextStats as u, type TransactionOrigin as v, applyTransaction as w, coreExtensions as x, createEditor as y, createPluginKey as z };
334
+ export { keyName as G, normalizeKey as H, setBlockType as J, toggleMark as L, Transaction as T, applyTransaction as q, coreExtensions as r, createEditor as s, createPluginKey as t, createState as u, fromHTML as v, getPluginState as w, insertBlockAfter as x, insertText as y, insertTextWithRules as z };
335
+ export type { Align as A, BlockStructureOptions as B, CommandFactories as C, Decoration as D, Extension as E, FromHTMLOptions as F, InputRule as I, KeyLike as K, MarkdownOptions as M, PluginKey as P, Slice as S, Editor as a, Command as b, EditorState as c, PluginSpec as d, BoundCommands as e, Chain as f, CoreCommands as g, CoreExtensionOptions as h, DOMParserLike as i, EditorOptions as j, InputRuleContext as k, InputRuleRange as l, InsertTextOptions as m, PasteRule as n, TextStats as o, TransactionOrigin as p };
@@ -1,3 +1,27 @@
1
+ type Assoc = -1 | 1;
2
+ type PosMap = (pos: Pos, assoc?: Assoc) => Pos;
3
+ type StepResult = {
4
+ doc: EngineDoc;
5
+ map: PosMap;
6
+ };
7
+ type StepJSON = {
8
+ readonly stepType: string;
9
+ } & Readonly<Record<string, unknown>>;
10
+ interface Step {
11
+ readonly stepType: string;
12
+ apply(doc: EngineDoc): StepResult;
13
+ invert(before: EngineDoc): Step;
14
+ toJSON(): StepJSON;
15
+ }
16
+ type CreatedBlock = {
17
+ id: string;
18
+ type: string;
19
+ attrs: BlockAttrs;
20
+ indent: number;
21
+ region: string;
22
+ regions?: Record<string, Inline>;
23
+ };
24
+
1
25
  type Attrs = Readonly<Record<string, string>>;
2
26
  type Mark = {
3
27
  readonly type: string;
@@ -33,10 +57,12 @@ type Pos = {
33
57
  readonly region: string;
34
58
  readonly offset: number;
35
59
  };
60
+ /** `assoc: -1` draws a caret at a soft wrap at the end of the line before it. */
36
61
  type TextSelection = {
37
62
  readonly kind: 'text';
38
63
  readonly anchor: Pos;
39
64
  readonly head: Pos;
65
+ readonly assoc?: Assoc;
40
66
  };
41
67
  type NodeSelection = {
42
68
  readonly kind: 'node';
@@ -117,4 +143,4 @@ type Schema = {
117
143
  readonly defaultTextBlock: string;
118
144
  };
119
145
 
120
- export type { Attrs as A, BlockAttrs as B, CodecContext as C, EngineDoc as E, Inline as I, Mark as M, NodeSelection as N, Pos as P, QuoinBlock as Q, Schema as S, TextNode as T, Selection as a, AtomNode as b, AtomSpec as c, BlockContent as d, BlockFlow as e, BlockRangeSelection as f, BlockSpec as g, EngineBlock as h, InlineCodec as i, InlineNode as j, MarkSpec as k, MarkdownExportContext as l, ParseInlineOptions as m, SerializeInlineOptions as n, TextSelection as o };
146
+ export type { Attrs as A, BlockAttrs as B, CodecContext as C, EngineDoc as E, Inline as I, Mark as M, NodeSelection as N, Pos as P, QuoinBlock as Q, Schema as S, TextNode as T, Step as a, Selection as b, AtomNode as c, Assoc as d, AtomSpec as e, BlockContent as f, BlockFlow as g, BlockRangeSelection as h, BlockSpec as i, CreatedBlock as j, EngineBlock as k, InlineCodec as l, InlineNode as m, MarkSpec as n, MarkdownExportContext as o, ParseInlineOptions as p, PosMap as q, SerializeInlineOptions as r, StepJSON as s, StepResult as t, TextSelection as u };
@@ -1,3 +1,27 @@
1
+ type Assoc = -1 | 1;
2
+ type PosMap = (pos: Pos, assoc?: Assoc) => Pos;
3
+ type StepResult = {
4
+ doc: EngineDoc;
5
+ map: PosMap;
6
+ };
7
+ type StepJSON = {
8
+ readonly stepType: string;
9
+ } & Readonly<Record<string, unknown>>;
10
+ interface Step {
11
+ readonly stepType: string;
12
+ apply(doc: EngineDoc): StepResult;
13
+ invert(before: EngineDoc): Step;
14
+ toJSON(): StepJSON;
15
+ }
16
+ type CreatedBlock = {
17
+ id: string;
18
+ type: string;
19
+ attrs: BlockAttrs;
20
+ indent: number;
21
+ region: string;
22
+ regions?: Record<string, Inline>;
23
+ };
24
+
1
25
  type Attrs = Readonly<Record<string, string>>;
2
26
  type Mark = {
3
27
  readonly type: string;
@@ -33,10 +57,12 @@ type Pos = {
33
57
  readonly region: string;
34
58
  readonly offset: number;
35
59
  };
60
+ /** `assoc: -1` draws a caret at a soft wrap at the end of the line before it. */
36
61
  type TextSelection = {
37
62
  readonly kind: 'text';
38
63
  readonly anchor: Pos;
39
64
  readonly head: Pos;
65
+ readonly assoc?: Assoc;
40
66
  };
41
67
  type NodeSelection = {
42
68
  readonly kind: 'node';
@@ -117,4 +143,4 @@ type Schema = {
117
143
  readonly defaultTextBlock: string;
118
144
  };
119
145
 
120
- export type { Attrs as A, BlockAttrs as B, CodecContext as C, EngineDoc as E, Inline as I, Mark as M, NodeSelection as N, Pos as P, QuoinBlock as Q, Schema as S, TextNode as T, Selection as a, AtomNode as b, AtomSpec as c, BlockContent as d, BlockFlow as e, BlockRangeSelection as f, BlockSpec as g, EngineBlock as h, InlineCodec as i, InlineNode as j, MarkSpec as k, MarkdownExportContext as l, ParseInlineOptions as m, SerializeInlineOptions as n, TextSelection as o };
146
+ export type { Attrs as A, BlockAttrs as B, CodecContext as C, EngineDoc as E, Inline as I, Mark as M, NodeSelection as N, Pos as P, QuoinBlock as Q, Schema as S, TextNode as T, Step as a, Selection as b, AtomNode as c, Assoc as d, AtomSpec as e, BlockContent as f, BlockFlow as g, BlockRangeSelection as h, BlockSpec as i, CreatedBlock as j, EngineBlock as k, InlineCodec as l, InlineNode as m, MarkSpec as n, MarkdownExportContext as o, ParseInlineOptions as p, PosMap as q, SerializeInlineOptions as r, StepJSON as s, StepResult as t, TextSelection as u };
@@ -1,31 +1,7 @@
1
- import { E as EngineDoc, P as Pos, B as BlockAttrs, I as Inline, a as Selection, M as Mark, S as Schema, A as Attrs, Q as QuoinBlock, g as BlockSpec, k as MarkSpec, c as AtomSpec } from './types-DULc8wwg.cjs';
1
+ import { E as EngineDoc, a as Step, q as PosMap, b as Selection, M as Mark, P as Pos, d as Assoc, S as Schema, B as BlockAttrs, A as Attrs, Q as QuoinBlock, i as BlockSpec, n as MarkSpec, e as AtomSpec } from './types-CQ8Vw_7N.cjs';
2
2
 
3
3
  type Align = 'left' | 'center' | 'right' | 'justify';
4
4
 
5
- type Assoc = -1 | 1;
6
- type PosMap = (pos: Pos, assoc?: Assoc) => Pos;
7
- type StepResult = {
8
- doc: EngineDoc;
9
- map: PosMap;
10
- };
11
- type StepJSON = {
12
- readonly stepType: string;
13
- } & Readonly<Record<string, unknown>>;
14
- interface Step {
15
- readonly stepType: string;
16
- apply(doc: EngineDoc): StepResult;
17
- invert(before: EngineDoc): Step;
18
- toJSON(): StepJSON;
19
- }
20
- type CreatedBlock = {
21
- id: string;
22
- type: string;
23
- attrs: BlockAttrs;
24
- indent: number;
25
- region: string;
26
- regions?: Record<string, Inline>;
27
- };
28
-
29
5
  type TransactionOrigin = 'input' | 'command' | 'paste' | 'drop' | 'remote' | 'reconcile' | 'ai' | 'history';
30
6
  declare class Transaction {
31
7
  #private;
@@ -355,4 +331,5 @@ type Extension = {
355
331
  readonly ui?: unknown;
356
332
  };
357
333
 
358
- export { type Align as A, type BlockStructureOptions as B, type CommandFactories as C, type Decoration as D, type Extension as E, type FromHTMLOptions as F, createState as G, fromHTML as H, type InputRule as I, getPluginState as J, type KeyLike as K, insertBlockAfter as L, type MarkdownOptions as M, insertText as N, insertTextWithRules as O, type PluginKey as P, keyName as Q, normalizeKey as R, type Step as S, Transaction as T, setBlockType as U, toggleMark as V, type Editor as a, type Command as b, type EditorState as c, type PluginSpec as d, type Assoc as e, type BoundCommands as f, type Chain as g, type CoreCommands as h, type CoreExtensionOptions as i, type CreatedBlock as j, type DOMParserLike as k, type EditorOptions as l, type InputRuleContext as m, type InputRuleRange as n, type InsertTextOptions as o, type PasteRule as p, type PosMap as q, type Slice as r, type StepJSON as s, type StepResult as t, type TextStats as u, type TransactionOrigin as v, applyTransaction as w, coreExtensions as x, createEditor as y, createPluginKey as z };
334
+ export { keyName as G, normalizeKey as H, setBlockType as J, toggleMark as L, Transaction as T, applyTransaction as q, coreExtensions as r, createEditor as s, createPluginKey as t, createState as u, fromHTML as v, getPluginState as w, insertBlockAfter as x, insertText as y, insertTextWithRules as z };
335
+ export type { Align as A, BlockStructureOptions as B, CommandFactories as C, Decoration as D, Extension as E, FromHTMLOptions as F, InputRule as I, KeyLike as K, MarkdownOptions as M, PluginKey as P, Slice as S, Editor as a, Command as b, EditorState as c, PluginSpec as d, BoundCommands as e, Chain as f, CoreCommands as g, CoreExtensionOptions as h, DOMParserLike as i, EditorOptions as j, InputRuleContext as k, InputRuleRange as l, InsertTextOptions as m, PasteRule as n, TextStats as o, TransactionOrigin as p };
@@ -1,5 +1,5 @@
1
- import { c as EditorState, D as Decoration, a as Editor, T as Transaction, b as Command } from './types-C6_QkXzy.js';
2
- import { a as Selection, b as AtomNode, P as Pos } from './types-DULc8wwg.js';
1
+ import { c as EditorState, D as Decoration, a as Editor, T as Transaction, b as Command } from './types-DXF9p4qV.cjs';
2
+ import { b as Selection, c as AtomNode, P as Pos } from './types-CQ8Vw_7N.cjs';
3
3
 
4
4
  type Spoken = {
5
5
  readonly message: string;
@@ -109,4 +109,5 @@ declare class ViewController {
109
109
  destroy(): void;
110
110
  }
111
111
 
112
- export { type AtomRenderer as A, type KeyInterceptor as K, type RenderOptions as R, ViewController as V, type WidgetRenderer as W, type ViewControllerOptions as a, hostKey as h };
112
+ export { ViewController as V, hostKey as h };
113
+ export type { AtomRenderer as A, KeyInterceptor as K, RenderOptions as R, WidgetRenderer as W, ViewControllerOptions as a };
@@ -1,5 +1,5 @@
1
- import { c as EditorState, D as Decoration, a as Editor, T as Transaction, b as Command } from './types-CJ7Gq3GX.cjs';
2
- import { a as Selection, b as AtomNode, P as Pos } from './types-DULc8wwg.cjs';
1
+ import { c as EditorState, D as Decoration, a as Editor, T as Transaction, b as Command } from './types-BjLcmV00.js';
2
+ import { b as Selection, c as AtomNode, P as Pos } from './types-CQ8Vw_7N.js';
3
3
 
4
4
  type Spoken = {
5
5
  readonly message: string;
@@ -109,4 +109,5 @@ declare class ViewController {
109
109
  destroy(): void;
110
110
  }
111
111
 
112
- export { type AtomRenderer as A, type KeyInterceptor as K, type RenderOptions as R, ViewController as V, type WidgetRenderer as W, type ViewControllerOptions as a, hostKey as h };
112
+ export { ViewController as V, hostKey as h };
113
+ export type { AtomRenderer as A, KeyInterceptor as K, RenderOptions as R, WidgetRenderer as W, ViewControllerOptions as a };
package/dist/view.d.cts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as react from 'react';
2
- import { A as AnyBlockDefinition, C as CodeHighlighter } from './registry-CXegaw5k.cjs';
3
- export { B as BlockDefinition, d as defineBlock } from './registry-CXegaw5k.cjs';
4
- import { Q as QuoinBlock } from './types-DULc8wwg.cjs';
5
- import { H as HTMLOptions } from './to-html-CNCITCln.cjs';
2
+ import { A as AnyBlockDefinition } from './registry-DdQaddP1.cjs';
3
+ import { CodeHighlighter } from './index.cjs';
4
+ export { B as BlockDefinition, d as defineBlock } from './registry-DdQaddP1.cjs';
5
+ import { QuoinBlock } from './engine.cjs';
6
+ import { HTMLOptions } from './engine.cjs';
6
7
  import './embed-provider-jXwlRmnp.cjs';
7
8
 
8
9
  type QuoinViewProps = {
@@ -37,4 +38,5 @@ declare function QuoinView({ blocks, blockTypes, highlight, className, ...option
37
38
  className: string;
38
39
  }, HTMLElement>;
39
40
 
40
- export { AnyBlockDefinition, QuoinView, type QuoinViewProps };
41
+ export { AnyBlockDefinition, QuoinView };
42
+ export type { QuoinViewProps };
package/dist/view.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as react from 'react';
2
- import { A as AnyBlockDefinition, C as CodeHighlighter } from './registry-CXegaw5k.js';
3
- export { B as BlockDefinition, d as defineBlock } from './registry-CXegaw5k.js';
4
- import { Q as QuoinBlock } from './types-DULc8wwg.js';
5
- import { H as HTMLOptions } from './to-html-C5t7xyaM.js';
2
+ import { A as AnyBlockDefinition } from './registry-DdQaddP1.js';
3
+ import { CodeHighlighter } from './index.js';
4
+ export { B as BlockDefinition, d as defineBlock } from './registry-DdQaddP1.js';
5
+ import { QuoinBlock } from './engine.js';
6
+ import { HTMLOptions } from './engine.js';
6
7
  import './embed-provider-jXwlRmnp.js';
7
8
 
8
9
  type QuoinViewProps = {
@@ -37,4 +38,5 @@ declare function QuoinView({ blocks, blockTypes, highlight, className, ...option
37
38
  className: string;
38
39
  }, HTMLElement>;
39
40
 
40
- export { AnyBlockDefinition, QuoinView, type QuoinViewProps };
41
+ export { AnyBlockDefinition, QuoinView };
42
+ export type { QuoinViewProps };