platejs 54.0.0-beta.2 → 54.0.0-beta.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.
Files changed (237) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +56 -0
  3. package/dist/{AIChatRequestContext-BMVWhfPV.d.ts → AIChatRequestContext-DY104TqL.d.ts} +2 -2
  4. package/dist/{BaseSuggestionPlugin-DBl3fqnm.d.ts → BaseSuggestionPlugin-Deo6n6Fs.d.ts} +7 -3
  5. package/dist/{PlateStatic-DhNv2ejp.d.ts → PlateStatic-CJX5bKuv.d.ts} +7 -7
  6. package/dist/ai/index.d.ts +1 -1
  7. package/dist/ai/react/AIChatPlugin.js +113 -78
  8. package/dist/ai/react/CopilotPlugin.js +1 -1
  9. package/dist/ai/react/index.d.ts +23 -16
  10. package/dist/authored/index.d.ts +4 -4
  11. package/dist/code-block/codemirror/createCodeMirrorAdapter.js +12 -9
  12. package/dist/code-block/codemirror/index.d.ts +1 -1
  13. package/dist/{combobox-DkBGgyd3.d.ts → combobox-DAOYWuvC.d.ts} +2 -2
  14. package/dist/{comparison-types-CYnJ35qU.d.ts → comparison-types-Dt-unJZY-DCddmbSD.d.ts} +10 -2
  15. package/dist/compiler/index.d.ts +2 -2
  16. package/dist/{core-BJG8l_mk.d.ts → core-ClHasORr.d.ts} +433 -95
  17. package/dist/diff/index.d.ts +2 -2
  18. package/dist/docs/ai.md +4 -3
  19. package/dist/docs/api/core/plate-components.md +0 -19
  20. package/dist/docs/api/core/plate-controller.md +4 -2
  21. package/dist/docs/api/core/plate-plugin.md +3 -0
  22. package/dist/docs/api/core/plate-store.md +3 -3
  23. package/dist/docs/api/dom.md +14 -4
  24. package/dist/docs/api/editor-transforms.md +2 -1
  25. package/dist/docs/api/react-hooks.md +25 -11
  26. package/dist/docs/authored-changes.md +5 -2
  27. package/dist/docs/basic-blocks.md +42 -29
  28. package/dist/docs/blockquote.md +5 -3
  29. package/dist/docs/board.md +63 -8
  30. package/dist/docs/code-block.md +47 -0
  31. package/dist/docs/discussion.md +1 -1
  32. package/dist/docs/docx.md +1 -1
  33. package/dist/docs/dom-coverage.md +5 -0
  34. package/dist/docs/examples/editable-voids.md +2 -3
  35. package/dist/docs/external-text.md +2 -0
  36. package/dist/docs/field.md +370 -0
  37. package/dist/docs/find.md +9 -6
  38. package/dist/docs/form.md +2 -0
  39. package/dist/docs/heading.md +6 -0
  40. package/dist/docs/installation/manual.md +0 -4
  41. package/dist/docs/link.md +3 -3
  42. package/dist/docs/llms.txt +4 -2
  43. package/dist/docs/markdown.md +176 -8
  44. package/dist/docs/plugin-components.md +13 -10
  45. package/dist/docs/plugin-input-rules.md +4 -12
  46. package/dist/docs/prompt-editor.md +205 -0
  47. package/dist/docs/roots.md +8 -6
  48. package/dist/docs/rtl.md +6 -4
  49. package/dist/docs/selection.md +7 -4
  50. package/dist/docs/suggestion.md +1 -1
  51. package/dist/docs/toolbar.md +26 -30
  52. package/dist/docs/upload.md +106 -17
  53. package/dist/docx/export/index.d.ts +3 -3
  54. package/dist/docx/export/lib/docxStaticComponents.js +12 -2
  55. package/dist/docx/export/lib/exportDocx.js +29 -5
  56. package/dist/docx/export/lib/reviewPart.js +1 -1
  57. package/dist/docx/export/lib/reviewProjection.js +10 -8
  58. package/dist/docx/import/index.d.ts +4 -4
  59. package/dist/docx/paste/index.d.ts +4 -4
  60. package/dist/dom/index.d.ts +1 -6
  61. package/dist/dom/plite-dom.internal.js +2 -2
  62. package/dist/excalidraw/index.d.ts +3 -2
  63. package/dist/excalidraw/react/index.d.ts +3 -2
  64. package/dist/facade.js +2 -2
  65. package/dist/features/basic-nodes/lib/BaseBlockPlugins.js +13 -5
  66. package/dist/features/basic-nodes/lib/BaseHeadingPlugins.js +32 -10
  67. package/dist/features/board/index.d.ts +2 -2
  68. package/dist/features/board/lib/BaseBoardPlugin.js +14 -1
  69. package/dist/features/board/lib/boardStroke.internal.js +13 -1
  70. package/dist/features/board/lib/boardTypes.internal.js +16 -0
  71. package/dist/features/callout/index.d.ts +3 -2
  72. package/dist/features/code-block/lib/BaseCodeBlockPlugin.js +14 -5
  73. package/dist/features/combobox/index.d.ts +2 -2
  74. package/dist/features/comments/index.d.ts +1 -1
  75. package/dist/features/date/index.d.ts +3 -2
  76. package/dist/features/details/index.d.ts +3 -2
  77. package/dist/features/details/lib/BaseDetailsPlugin.js +10 -10
  78. package/dist/features/field/index.d.ts +2 -0
  79. package/dist/features/field/index.js +2 -0
  80. package/dist/features/field/lib/BaseFieldPlugin.js +414 -0
  81. package/dist/features/field/lib/fieldRules.internal.js +42 -0
  82. package/dist/features/find/index.d.ts +3 -2
  83. package/dist/features/footnote/index.d.ts +1 -1
  84. package/dist/features/ink/index.d.ts +1 -1
  85. package/dist/features/ink/lib/BaseInkPlugin.js +126 -103
  86. package/dist/features/ink/lib/inkCodec.internal.js +130 -0
  87. package/dist/features/ink/lib/inkGone.internal.js +229 -48
  88. package/dist/features/ink/lib/inkPlaces.internal.js +533 -62
  89. package/dist/features/layout/index.d.ts +1 -1
  90. package/dist/features/link/lib/BaseLinkPlugin.js +6 -4
  91. package/dist/features/lint/index.d.ts +3 -2
  92. package/dist/features/media/index.d.ts +1 -1
  93. package/dist/features/media/lib/media/parseMediaUrl.js +11 -1
  94. package/dist/features/media/lib/media-embed/BaseMediaEmbedPlugin.js +6 -2
  95. package/dist/features/mention/index.d.ts +5 -4
  96. package/dist/features/suggestion/index.d.ts +1 -1
  97. package/dist/features/table/index.d.ts +1 -1
  98. package/dist/features/table/lib/BaseTablePlugin.js +14 -8
  99. package/dist/features/table/lib/internal/selection.js +4 -2
  100. package/dist/features/toc/index.d.ts +1 -1
  101. package/dist/features/upload/index.d.ts +2 -2
  102. package/dist/features/upload/lib/BaseUploadPlugin.js +464 -250
  103. package/dist/history/index.d.ts +2 -2
  104. package/dist/html/index.d.ts +3 -3
  105. package/dist/html/server/index.d.ts +1 -1
  106. package/dist/{htmlTypes-DjeFG3P8.d.ts → htmlTypes-cg_cWsaN.d.ts} +2 -31
  107. package/dist/hyperscript/index.d.ts +1 -1
  108. package/dist/{index-D1CFXA-i.d.ts → index-8WO2vI0U.d.ts} +475 -143
  109. package/dist/{index-DaM37gF6.d.ts → index-B5mYEawV.d.ts} +37 -21
  110. package/dist/{index-Bq3sdm3S.d.ts → index-BZWFoUXt.d.ts} +5 -4
  111. package/dist/{index-DdIRduDG.d.ts → index-C0POz7rg.d.ts} +3 -2
  112. package/dist/{index-Bxfvicyy.d.ts → index-C1_JIhL4.d.ts} +4 -3
  113. package/dist/{index-DC_MNGyu.d.ts → index-C35V_hj0.d.ts} +3 -3
  114. package/dist/{index-kLKMc-pI.d.ts → index-C6ql9pKw.d.ts} +2 -2
  115. package/dist/{index-hsC_sOn2.d.ts → index-C9DiGDVj.d.ts} +35 -5
  116. package/dist/{index-DTgaSxKr.d.ts → index-CLsEe3LY.d.ts} +40 -4
  117. package/dist/{index-CT7miqQN.d.ts → index-CdOLsPaW.d.ts} +29 -9
  118. package/dist/{index-DLA2DUR2.d.ts → index-CktYvOgk.d.ts} +4 -3
  119. package/dist/{index-BBKGrsG3.d.ts → index-Cmuluh6f.d.ts} +1 -1
  120. package/dist/{index-BiQerPJS.d.ts → index-CzLwBZpY.d.ts} +2 -2
  121. package/dist/{index-DzD6BIFJ.d.ts → index-D3-2iM1b.d.ts} +7 -5
  122. package/dist/{index-Cl77E9yr.d.ts → index-DKOFvteF.d.ts} +2 -2
  123. package/dist/{index-iaZOhA76.d.ts → index-DPWyk3lG-DOYwohXO.d.ts} +1 -1
  124. package/dist/index-DQnjqtQa.d.ts +678 -0
  125. package/dist/{index-CcZbqPqk.d.ts → index-Do9pj1GK.d.ts} +73 -39
  126. package/dist/{index-BU6k1Aev.d.ts → index-DpltOCot-A2b3p3Eb.d.ts} +4735 -4586
  127. package/dist/{index-Bc2Yg_2j.d.ts → index-HPYawTae-BCUQLEWF.d.ts} +2 -2
  128. package/dist/{index-BkR7-GLI.d.ts → index-baQOK89E.d.ts} +2 -2
  129. package/dist/{index-D5W-p9bS.d.ts → index-oIJAZxc2.d.ts} +49 -4
  130. package/dist/{index-xdmCBvlT.d.ts → index-r7yb77Wy.d.ts} +3 -2
  131. package/dist/index.d.ts +4 -4
  132. package/dist/{react/internal → internal}/penStroke.internal.js +1 -1
  133. package/dist/internal/plugin/OverridePlugin.js +101 -119
  134. package/dist/internal/plugin/collectPlateNodeMappings.js +5 -1
  135. package/dist/internal/plugin/pastedUploadFiles.js +4 -0
  136. package/dist/internal/plugin/resolvePlugin.js +1 -1
  137. package/dist/internal/plugin/resolvePlugins.js +3 -0
  138. package/dist/internal/plugin/uploadDrafts.js +6 -0
  139. package/dist/internal/utils/mergePlugins.js +1 -0
  140. package/dist/lib/plugins/element-id/ElementIdPlugin.js +8 -2
  141. package/dist/lib/plugins/html/HtmlPlugin.js +9 -0
  142. package/dist/lib/plugins/html/htmlSafety.js +1 -1
  143. package/dist/lib/plugins/input-rules/InputRulesPlugin.js +5 -15
  144. package/dist/lib/plugins/input-rules/inputRuleVeto.internal.js +16 -0
  145. package/dist/markdown/index.d.ts +2 -2
  146. package/dist/markdown/index.js +2 -1
  147. package/dist/markdown/lib/MarkdownPlugin.js +16 -9
  148. package/dist/markdown/lib/RawHtmlPlugin.js +24 -0
  149. package/dist/markdown/lib/deserializer/mdastToSlate.js +12 -2
  150. package/dist/markdown/lib/internal/markdownConversion.js +773 -74
  151. package/dist/markdown/lib/internal/markdownDiagnostics.js +18 -7
  152. package/dist/markdown/lib/internal/markdownFrontmatter.js +102 -0
  153. package/dist/markdown/lib/internal/markdownIntrinsics.js +125 -43
  154. package/dist/markdown/lib/internal/markdownLine.js +5 -3
  155. package/dist/markdown/lib/internal/markdownMappings.js +19 -7
  156. package/dist/markdown/lib/internal/markdownOpenTail.js +381 -0
  157. package/dist/markdown/lib/internal/markdownRawHtml.js +314 -0
  158. package/dist/markdown/lib/internal/markdownSegments.js +57 -48
  159. package/dist/markdown/lib/internal/markdownTags.js +22 -8
  160. package/dist/markdown/lib/serializer/convertNodesSerialize.js +10 -8
  161. package/dist/markdown/lib/serializer/convertPhrasingSerialize.js +226 -0
  162. package/dist/markdown/lib/serializer/listToMdastTree.js +2 -0
  163. package/dist/math/index.d.ts +3 -2
  164. package/dist/math/react/index.d.ts +4 -3
  165. package/dist/migrations/index.d.ts +3 -3
  166. package/dist/pagination/index.d.ts +1 -1
  167. package/dist/pagination/react/index.d.ts +4 -4
  168. package/dist/react/components/EditorContentView.internal.js +17 -8
  169. package/dist/react/components/EditorProvider.js +5 -5
  170. package/dist/react/components/Plate.js +103 -122
  171. package/dist/react/components/PlateContainer.js +40 -32
  172. package/dist/react/components/PlateController.js +28 -16
  173. package/dist/react/components/PlateRoot.internal.js +3 -2
  174. package/dist/react/core.js +4 -4
  175. package/dist/react/features/board/BoardSurface.js +116 -87
  176. package/dist/react/features/board/boardClipboard.internal.js +15 -5
  177. package/dist/react/features/board/boardGesture.internal.js +6 -3
  178. package/dist/react/features/board/boardIndex.internal.js +7 -18
  179. package/dist/react/features/board/boardPictures.internal.js +19 -13
  180. package/dist/react/features/board/boardView.internal.js +184 -49
  181. package/dist/react/features/board/boardVoice.internal.js +10 -11
  182. package/dist/react/features/board/index.d.ts +64 -18
  183. package/dist/react/features/callout/index.d.ts +3 -2
  184. package/dist/react/features/combobox/index.d.ts +8 -8
  185. package/dist/react/features/comments/index.d.ts +6 -5
  186. package/dist/react/features/date/index.d.ts +4 -3
  187. package/dist/react/features/details/index.d.ts +4 -3
  188. package/dist/react/features/field/FieldPlugin.js +34 -0
  189. package/dist/react/features/field/index.d.ts +312 -0
  190. package/dist/react/features/field/index.js +2 -0
  191. package/dist/react/features/footnote/index.d.ts +7 -6
  192. package/dist/react/features/format-painter/index.d.ts +4 -3
  193. package/dist/react/features/ink/InkContent.js +313 -0
  194. package/dist/react/features/ink/index.d.ts +57 -29
  195. package/dist/react/features/ink/index.js +2 -2
  196. package/dist/react/features/ink/inkCapture.internal.js +39 -17
  197. package/dist/react/features/ink/inkInput.internal.js +1 -1
  198. package/dist/react/features/ink/inkLayout.internal.js +6 -3
  199. package/dist/react/features/ink/inkPaint.internal.js +78 -2
  200. package/dist/react/features/ink/inkPlacement.internal.js +331 -104
  201. package/dist/react/features/ink/inkWatch.internal.js +7 -5
  202. package/dist/react/features/layout/index.d.ts +5 -4
  203. package/dist/react/features/media/index.d.ts +5 -4
  204. package/dist/react/features/mention/index.d.ts +6 -5
  205. package/dist/react/features/resizable/Resizable.js +4 -6
  206. package/dist/react/features/resizable/index.d.ts +5 -5
  207. package/dist/react/features/suggestion/index.d.ts +6 -5
  208. package/dist/react/features/table/TablePlugin.js +4 -11
  209. package/dist/react/features/table/index.d.ts +8 -7
  210. package/dist/react/features/toc/index.d.ts +2 -2
  211. package/dist/react/features/upload/index.d.ts +11 -6
  212. package/dist/react/index.d.ts +6 -6
  213. package/dist/react/index.js +4 -4
  214. package/dist/react/internal/plate-context.js +425 -188
  215. package/dist/react/plite-react.js +2 -2
  216. package/dist/react/plugins/navigation-feedback/NavigationFeedbackPlugin.js +12 -10
  217. package/dist/react/stores/plate/useEditor.js +32 -14
  218. package/dist/react/stores/plate/useEditorHistory.js +55 -0
  219. package/dist/react/stores/plate/useEditorSelector.js +66 -21
  220. package/dist/react/utils/pipeRenderElement.internal.js +1 -1
  221. package/dist/react/utils/pluginRenderElement.internal.js +1 -1
  222. package/dist/react/virtualized.d.ts +4 -4
  223. package/dist/{source-CNKy99Th.d.ts → source-aUwpNnAw.d.ts} +4 -4
  224. package/dist/static/index.d.ts +18 -18
  225. package/dist/static/internal/renderStaticHtmlWithOverrides.js +2 -2
  226. package/dist/static/internal/staticPresentation.js +4 -4
  227. package/dist/static/internal/writeStaticSelectionClipboardData.js +7 -2
  228. package/dist/tabbable/index.d.ts +1 -1
  229. package/dist/tabbable/react/index.d.ts +3 -3
  230. package/dist/testing/index.d.ts +3 -3
  231. package/dist/yjs/index.d.ts +1 -1
  232. package/dist/yjs/react/index.d.ts +6 -6
  233. package/package.json +20 -2
  234. package/dist/markdown/lib/serializer/convertTextsSerialize.js +0 -163
  235. package/dist/react/components/EditorSelectionView.js +0 -40
  236. package/dist/react/features/ink/InkLayer.js +0 -218
  237. package/dist/react/internal/createPlateTargetScope.js +0 -62
@@ -1,4 +1,4 @@
1
- import { $i as NodeKey, Ba as RootKey, Ec as Element$1, Fs as Node$1, Ju as Path, Os as Descendant, Wu as Point, eo as Value, hn as EditorCommand, in as AnyEditor, jn as EditorCoreStateView, ln as Editor, na as Plugin, ou as SchemaProperty, vs as SelectionAssociation, y as ContentSlice, zu as Range$1 } from "./index-BU6k1Aev.js";
1
+ import { H as Descendant, Pc as SelectionAssociation, Si as Element$1, Wo as Point, Y as Editor, Za as Path, ac as SchemaProperty, f as AnyEditor, j as ContentSlice, ra as Node$1, ro as Plugin, ru as Value, tt as EditorCommand, us as Range$1, vt as EditorCoreStateView, xa as NodeKey, xs as RootKey } from "./index-DpltOCot-A2b3p3Eb.js";
2
2
  import { StandardBehaviorOptions } from "scroll-into-view-if-needed";
3
3
  /**
4
4
  * Types.
@@ -86,7 +86,7 @@ interface DOMCoverageBoundary {
86
86
  version: number;
87
87
  }
88
88
  /** Why covered content should be mounted or revealed. */
89
- type DOMCoverageMaterializeReason = 'selection' | 'copy' | 'paste' | 'focus' | 'programmatic' | 'background';
89
+ type DOMCoverageMaterializeReason = 'selection' | 'copy' | 'paste' | 'focus' | 'programmatic' | 'background' | 'drag';
90
90
  /** Which part of a covered range triggered materialization. */
91
91
  type DOMCoverageMaterializeRangeRole = 'anchor' | 'focus' | 'interior';
92
92
  /** What `drag.start` hands the caller for its drag image. */
@@ -178,9 +178,30 @@ declare class Key {
178
178
  id: string;
179
179
  constructor();
180
180
  }
181
+ /** Semantic commands that own DOM clipboard ingress. */
182
+ declare const domCommands: Readonly<{
183
+ insertData: EditorCommand<DataTransfer, Editor>;
184
+ }>;
185
+ type ClipboardSliceRead<V extends Value = Value> = Readonly<{
186
+ kind: 'absent';
187
+ }> | Readonly<{
188
+ kind: 'invalid';
189
+ source: 'html' | 'mime';
190
+ }> | Readonly<{
191
+ kind: 'slice';
192
+ slice: ContentSlice<V>;
193
+ }>;
194
+ type ClipboardSliceWrite<V extends Value = Value> = Readonly<{
195
+ formats?: Readonly<Record<string, string>>;
196
+ slice: ContentSlice<V>;
197
+ }>;
181
198
  /** Core editor accepted by the DOM bridge before its API is installed. */
182
199
  type DOMEditor<V extends Value = Value, TPlugins extends readonly unknown[] = any> = AnyEditor<V, TPlugins>;
183
200
  interface DOMApi {
201
+ /**
202
+ * Blur the editor, and take focus from the root's `nodeSelectionFocus`
203
+ * element while it holds it.
204
+ */
184
205
  blur: () => void;
185
206
  drag: DOMDragApi;
186
207
  /**
@@ -209,7 +230,9 @@ interface DOMApi {
209
230
  * The DOM document or shadow root holding the Editable of the view this
210
231
  * editor's calls run in. A view's own editor runs in its own view. A
211
232
  * `useRootEditor` editor runs in a view of its root from its `EditorRoot`.
212
- * The editor `createEditor` returns runs in a view of the selection's root,
233
+ * While that `EditorRoot` shows no editing area and the caret is in the
234
+ * editor's root, it runs in the view that holds the caret. The editor
235
+ * `createEditor` returns runs in a view of the selection's root,
213
236
  * else of main. When the caret was placed in that root from an
214
237
  * `EditorRoot`, only that `EditorRoot`'s views of the root count, even
215
238
  * after this editor moves the caret within it. Of the views that count, it
@@ -221,6 +244,11 @@ interface DOMApi {
221
244
  assertEventRange: (event: any) => Range$1;
222
245
  findKey: (node: Descendant) => Key;
223
246
  assertPath: (node: Node$1) => Path;
247
+ /**
248
+ * Focus the editor's view. The root's `nodeSelectionFocus` element takes
249
+ * focus while there is no selection or a node selection holds only the
250
+ * root's top-level blocks, and a range shown across roots stays shown.
251
+ */
224
252
  focus: (options?: {
225
253
  retries?: number;
226
254
  }) => void;
@@ -578,23 +606,6 @@ interface DOMEditorInterface {
578
606
  }
579
607
  /** DOM translation, selection, focus, and clipboard operations for an editor. */
580
608
  declare const DOMEditor: DOMEditorInterface;
581
- /** Semantic commands that own DOM clipboard ingress. */
582
- declare const domCommands: Readonly<{
583
- insertData: EditorCommand<DataTransfer, Editor>;
584
- }>;
585
- type ClipboardSliceRead<V extends Value = Value> = Readonly<{
586
- kind: 'absent';
587
- }> | Readonly<{
588
- kind: 'invalid';
589
- source: 'html' | 'mime';
590
- }> | Readonly<{
591
- kind: 'slice';
592
- slice: ContentSlice<V>;
593
- }>;
594
- type ClipboardSliceWrite<V extends Value = Value> = Readonly<{
595
- formats?: Readonly<Record<string, string>>;
596
- slice: ContentSlice<V>;
597
- }>;
598
609
  type DOMPluginTypes<TClipboard extends boolean = true> = {
599
610
  api: {
600
611
  dom: DOMApi & ([TClipboard] extends [true] ? {
@@ -701,6 +712,11 @@ declare const dataTransferFormats: <const TName extends string, V extends Value
701
712
  declare const writeDataTransferFragment: <V extends Value>(editor: Editor<V, any>, data: Pick<DataTransfer, 'setData'>, slice: ContentSlice<V>, options?: Readonly<{
702
713
  excludeMimeTypes?: readonly string[];
703
714
  }>) => readonly string[];
715
+ /**
716
+ * Returns whether an event, node, window, or document belongs to an Apple
717
+ * platform, where `mod` is Command.
718
+ */
719
+ declare const usesAppleDOMHotkeys: (event: unknown) => boolean;
704
720
  type HotkeyPlatform = 'apple' | 'other' | 'windows';
705
721
  type HotkeyMatchOptions = {
706
722
  ignoreModifiers?: boolean;
@@ -731,4 +747,4 @@ declare const ariaKeyShortcuts: (hotkey: HotkeySpec, options: {
731
747
  }) => string | undefined;
732
748
  declare function isHotkey(hotkey: HotkeySpec, event: KeyboardEventLike): boolean;
733
749
  declare function isHotkey(hotkey: HotkeySpec, options: HotkeyMatchOptions, event: KeyboardEventLike): boolean;
734
- export { DOMCoverageBoundary as A, DOMSelection as B, DOMEditor as C, ScrollIntoViewOptions as D, DOMVisualPointOptions as E, DOMCoverageSelectionPolicy as F, DOMText as H, DOMElement as I, DOMNode as L, DOMCoverageMaterializeRangeRole as M, DOMCoverageMaterializeReason as N, ScrollIntoViewTarget as O, DOMCoverageReason as P, DOMPoint as R, DOMClipboardApi as S, DOMVisualPoint as T, DOMStaticRange as V, DOMPluginTypes as _, ariaKeyShortcuts as a, domCommands as b, DataTransferDiagnostic as c, DataTransferFormatPhase as d, DataTransferSchemaClaim as f, DOMPlugin as g, writeDataTransferFragment as h, KeyboardEventLike as i, DOMCoverageCopyPolicy as j, DropIndicator as k, DataTransferEncodeContext as l, dataTransferFormats as m, HotkeyPlatform as n, isHotkey as o, DataTransferSnapshot as p, HotkeySpec as r, DataTransferDecodeContext as s, HotkeyMatchOptions as t, DataTransferFormat as u, ClipboardSliceRead as v, DOMResolutionError as w, DOMApi as x, ClipboardSliceWrite as y, DOMRange as z };
750
+ export { DataTransferSnapshot as A, domCommands as B, DOMVisualPointOptions as C, DataTransferFormat as D, DataTransferEncodeContext as E, KeyboardEventLike as F, usesAppleDOMHotkeys as H, ScrollIntoViewOptions as I, ScrollIntoViewTarget as L, HotkeyMatchOptions as M, HotkeyPlatform as N, DataTransferFormatPhase as O, HotkeySpec as P, ariaKeyShortcuts as R, DOMVisualPoint as S, DataTransferDiagnostic as T, writeDataTransferFragment as U, isHotkey as V, DOMRange as _, DOMCoverageBoundary as a, DOMStaticRange as b, DOMCoverageMaterializeReason as c, DOMEditor as d, DOMElement as f, DOMPoint as g, DOMPluginTypes as h, DOMClipboardApi as i, DropIndicator as j, DataTransferSchemaClaim as k, DOMCoverageReason as l, DOMPlugin as m, ClipboardSliceWrite as n, DOMCoverageCopyPolicy as o, DOMNode as p, DOMApi as r, DOMCoverageMaterializeRangeRole as s, ClipboardSliceRead as t, DOMCoverageSelectionPolicy as u, DOMResolutionError as v, DataTransferDecodeContext as w, DOMText as x, DOMSelection as y, dataTransferFormats as z };
@@ -1,7 +1,8 @@
1
- import { $u as EditorJsonValue, Ec as Element, El as SchemaContentDefault, Hs as NodeEntry, Il as SchemaContentRule, Ju as Path, Mc as ElementOf, Os as Descendant, Qo as TxDeclaredMethod, Wu as Point, vl as PropertyStringDescriptor } from "./index-BU6k1Aev.js";
2
- import { Wa as DefinitionOf, _ as BasePlugin, _t as NodeInsertOptions } from "./core-BJG8l_mk.js";
3
- import { n as ComboboxState, t as ComboboxEditor } from "./combobox-DkBGgyd3.js";
4
- import "./index-BBKGrsG3.js";
1
+ import { H as Descendant, Ps as SchemaContentRule, Si as Element, Vt as EditorJsonValue, Wo as Point, Za as Path, da as NodeEntry, eu as TxDeclaredMethod, is as PropertyStringDescriptor, ki as ElementOf, ws as SchemaContentDefault } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import "./htmlTypes-cg_cWsaN.js";
3
+ import { Ga as DefinitionOf, _ as BasePlugin, _t as NodeInsertOptions } from "./core-ClHasORr.js";
4
+ import { n as ComboboxState, t as ComboboxEditor } from "./combobox-DAOYWuvC.js";
5
+ import "./index-Cmuluh6f.js";
5
6
  declare const isNonBlankRef: (value: unknown) => value is string;
6
7
  /** The fragment id of a footnote and, when present, its linked fragment id. */
7
8
  type FootnoteAnchor = {
@@ -1,5 +1,6 @@
1
- import { $u as EditorJsonValue, Ec as Element, El as SchemaContentDefault, Il as SchemaContentRule, Mc as ElementOf, Mu as Location, Qo as TxDeclaredMethod, ea as NodeTarget, ms as NodeSelection, vl as PropertyStringDescriptor } from "./index-BU6k1Aev.js";
2
- import { Wa as DefinitionOf, _ as BasePlugin, bo as PluginReference, ct as BlockInsertOptions, lt as BlockUpsertOptions, vo as PluginDependency } from "./core-BJG8l_mk.js";
1
+ import { Ki as Location, Pa as NodeSelection, Ps as SchemaContentRule, Ra as NodeTarget, Si as Element, Vt as EditorJsonValue, eu as TxDeclaredMethod, is as PropertyStringDescriptor, ki as ElementOf, ws as SchemaContentDefault } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import "./htmlTypes-cg_cWsaN.js";
3
+ import { Ga as DefinitionOf, _ as BasePlugin, ct as BlockInsertOptions, lt as BlockUpsertOptions, xo as PluginReference, yo as PluginDependency } from "./core-ClHasORr.js";
3
4
  type SetColumnsOptions = {
4
5
  /** Column group location. */
5
6
  at?: NodeTarget<Element>;
@@ -1,6 +1,7 @@
1
- import { Mu as Location, Ru as BaseRange, eo as Value, zu as Range } from "./index-BU6k1Aev.js";
2
- import { _ as BasePlugin } from "./core-BJG8l_mk.js";
3
- import { r as AnnotationChange } from "./index-iaZOhA76.js";
1
+ import { Ki as Location, ru as Value, us as Range, x as BaseRange } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import "./htmlTypes-cg_cWsaN.js";
3
+ import { _ as BasePlugin } from "./core-ClHasORr.js";
4
+ import { r as AnnotationChange } from "./index-DPWyk3lG-DOYwohXO.js";
4
5
  type CommentUser = Readonly<{
5
6
  id: string;
6
7
  name: string;
@@ -1,6 +1,6 @@
1
- import { Ln as EditorDocumentValue } from "./index-BU6k1Aev.js";
2
- import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-DjeFG3P8.js";
3
- import "./core-BJG8l_mk.js";
1
+ import { Tt as EditorDocumentValue } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-cg_cWsaN.js";
3
+ import "./core-ClHasORr.js";
4
4
  declare const parseHtml: (source: string, options: HtmlParseOptions) => HtmlDocumentParseResult;
5
5
  declare const serializeHtml: (document: EditorDocumentValue, options: HtmlSerializeOptions) => HtmlSerializeResult;
6
6
  export { serializeHtml as n, parseHtml as t };
@@ -1,5 +1,5 @@
1
- import { $i as NodeKey, Xr as EditorStateView } from "./index-BU6k1Aev.js";
2
- import { Qn as HeadingLevel, Wa as DefinitionOf, _ as BasePlugin, u as Editor } from "./core-BJG8l_mk.js";
1
+ import { wr as EditorStateView, xa as NodeKey } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import { Ga as DefinitionOf, Qn as HeadingLevel, _ as BasePlugin, u as Editor } from "./core-ClHasORr.js";
3
3
  type Heading = {
4
4
  key: NodeKey;
5
5
  level: HeadingLevel;
@@ -1,5 +1,5 @@
1
- import { $i as NodeKey, $u as EditorJsonValue, Ju as Path, Ki as EditorViewOptions, Ln as EditorDocumentValue, Mu as Location, Qo as TxDeclaredMethod, S as AuthoredProjectionRefusal, Wu as Point, _u as SchemaPropertySplitPolicy, b as AuthoredDocumentProjection, eo as Value, es as TxOnlyMethod, fl as PropertyJsonDescriptor, ga as PluginDependencyReferenceFor, gl as PropertySetDescriptor, gu as SchemaPropertyRole, in as AnyEditor, lu as SchemaPropertyExclusiveGroup, mu as SchemaPropertyLandingPolicy, na as Plugin, sn as ContentSlice, su as SchemaPropertyCopyPolicy, vu as SchemaPropertyTypeChangePolicy, zu as Range } from "./index-BU6k1Aev.js";
2
- import { h as TwoWayComparison } from "./comparison-types-CYnJ35qU.js";
1
+ import { Ki as Location, M as ContentSlice$1, Qo as PropertyJsonDescriptor, Tt as EditorDocumentValue, Vt as EditorJsonValue, Wo as Point, Za as Path, _c as SchemaPropertyTypeChangePolicy, _o as PluginDependencyReferenceFor, cc as SchemaPropertyExclusiveGroup, eu as TxDeclaredMethod, f as AnyEditor, gc as SchemaPropertySplitPolicy, h as AuthoredProjectionRefusal, hc as SchemaPropertyRole, ns as PropertySetDescriptor, nu as TxOnlyMethod, oc as SchemaPropertyCopyPolicy, p as AuthoredDocumentProjection, pc as SchemaPropertyLandingPolicy, ro as Plugin, ru as Value, us as Range, xa as NodeKey, xi as EditorViewOptions } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import { h as TwoWayComparison } from "./comparison-types-Dt-unJZY-DCddmbSD.js";
3
3
  type FormatWrite = Readonly<{
4
4
  kind: 'remove';
5
5
  }> | Readonly<{
@@ -249,8 +249,8 @@ type AuthoredChange = Readonly<{
249
249
  /** One semantic part of a change, derived only when its details are read. */
250
250
  type AuthoredChangePart = Readonly<{
251
251
  action: 'delete' | 'insert' | 'replace';
252
- after: ContentSlice | null;
253
- before: ContentSlice | null;
252
+ after: ContentSlice$1 | null;
253
+ before: ContentSlice$1 | null;
254
254
  kind: 'content';
255
255
  range: Range;
256
256
  }> | Readonly<{
@@ -274,6 +274,27 @@ type AuthoredChangeDetails = Readonly<{
274
274
  change: AuthoredChange;
275
275
  parts: readonly AuthoredChangePart[];
276
276
  }>;
277
+ /**
278
+ * One line of a card: a change's part, except that a property change reads
279
+ * once per card, without the text or element it formats.
280
+ */
281
+ type AuthoredGroupPart = Exclude<AuthoredChangePart, Readonly<{
282
+ kind: 'properties';
283
+ }>> | Readonly<{
284
+ after: Readonly<Record<string, unknown>>;
285
+ before: Readonly<Record<string, unknown>>;
286
+ kind: 'properties';
287
+ }>;
288
+ /**
289
+ * What a card shows, read across its changes in document order: a deletion
290
+ * and a touching insertion from the next change read as one replacement, and
291
+ * equal property changes read once.
292
+ */
293
+ type AuthoredGroupDetails = Readonly<{
294
+ /** The changes read, in document order. */
295
+ changes: readonly AuthoredChange[];
296
+ parts: readonly AuthoredGroupPart[];
297
+ }>;
277
298
  /**
278
299
  * Adjacent pending changes by one author that one card shows, such as a
279
300
  * deletion and the insertion that replaces it. Its id is its oldest change by
@@ -392,6 +413,15 @@ type AuthoredRead = {
392
413
  */
393
414
  changes: (query?: AuthoredQuery) => AuthoredPage;
394
415
  details: (id: string) => AuthoredChangeDetails | null;
416
+ /**
417
+ * What the card holding a pending change shows, from its first `limit`
418
+ * changes in document order, or all of them without one. Null when the id
419
+ * names no pending change. A limit that is not a positive safe integer
420
+ * throws.
421
+ */
422
+ groupDetails: (changeId: string, options?: Readonly<{
423
+ limit?: number;
424
+ }>) => AuthoredGroupDetails | null;
395
425
  /**
396
426
  * The cards touching a place of the document the view shows, in document
397
427
  * order. On a preview `at` is a node's key or path, as `AuthoredQuery.at`
@@ -525,4 +555,4 @@ declare function projectAuthoredDocument(document: EditorDocumentValue, options:
525
555
  * the projection keeps none of its content.
526
556
  */
527
557
  declare const projectAuthoredRange: (document: EditorDocumentValue, projected: EditorDocumentValue, range: Range) => Range | null;
528
- export { AuthoredMark as C, AuthoredRefusal as S, AuthoredPage as _, proposeAuthoredComparison as a, AuthoredReview as b, AuthoredChange as c, AuthoredChangeKind as d, AuthoredChangePart as f, AuthoredOutcome as g, AuthoredOptions as h, AuthoredComparisonImportResult as i, AuthoredChangeDetails as l, AuthoredDecision as m, projectAuthoredDocument as n, AuthoredPlaceError as o, AuthoredChangesDelta as p, projectAuthoredRange as r, AuthoredPlugin as s, AuthoredFormatProjection as t, AuthoredChangeGroup as u, AuthoredQuery as v, AuthoredView as x, AuthoredResult as y };
558
+ export { projectAuthoredDocument as C, AuthoredView as S, proposeAuthoredComparison as T, AuthoredPlugin as _, AuthoredChangePart as a, AuthoredResult as b, AuthoredDecision as c, AuthoredGroupPart as d, AuthoredMark as f, AuthoredPlaceError as g, AuthoredPage as h, AuthoredChangeKind as i, AuthoredFormatProjection as l, AuthoredOutcome as m, AuthoredChangeDetails as n, AuthoredChangesDelta as o, AuthoredOptions as p, AuthoredChangeGroup as r, AuthoredComparisonImportResult as s, AuthoredChange as t, AuthoredGroupDetails as u, AuthoredQuery as v, projectAuthoredRange as w, AuthoredReview as x, AuthoredRefusal as y };
@@ -1,5 +1,6 @@
1
- import { $i as NodeKey, Mc as ElementOf, Qo as TxDeclaredMethod, dl as PropertyEnumDescriptor } from "./index-BU6k1Aev.js";
2
- import { _ as BasePlugin, ct as BlockInsertOptions, ko as PluginSelectorMethods, po as NormalizePluginSelectors } from "./core-BJG8l_mk.js";
1
+ import { Si as Element, Zo as PropertyEnumDescriptor, eu as TxDeclaredMethod, ki as ElementOf, xa as NodeKey } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import "./htmlTypes-cg_cWsaN.js";
3
+ import { Ao as PluginSelectorMethods, _ as BasePlugin, ct as BlockInsertOptions, mo as NormalizePluginSelectors } from "./core-ClHasORr.js";
3
4
  import { AggregateProgress, UploadCallOptions, UploadOutcome } from "files-sdk/client";
4
5
  declare const UPLOAD_FILE_TYPES: readonly ['image', 'video', 'audio', 'pdf', 'text', 'blob'];
5
6
  declare const UPLOAD_KINDS: readonly ['audio', 'file', 'image', 'video'];
@@ -107,6 +108,30 @@ type UploadSubmitOptions = ({
107
108
  }) | ({
108
109
  slot?: never;
109
110
  } & BlockInsertOptions);
111
+ /** Limits the batch `admit` checks to the one upload kind a caller's drafts take. */
112
+ type UploadAdmitOptions = Readonly<{
113
+ /** A file of another kind refuses the batch before every other check. */
114
+ kind?: UploadKind;
115
+ }>;
116
+ /**
117
+ * A batch that passed every check and waits for the caller to insert its
118
+ * drafts. It lives for the transaction that admitted it.
119
+ */
120
+ type UploadAdmission = Readonly<{
121
+ /** One new draft per file, in file order. Upload does not track them. */
122
+ drafts: readonly Element[];
123
+ /**
124
+ * Give each file the live draft its node key names, in file order. It checks
125
+ * every key before it gives any file a draft, and throws when a check fails.
126
+ */
127
+ fill: (keys: readonly NodeKey[]) => void;
128
+ }>;
129
+ /** A batch `admit` refused, with the failure upload reports after the commit. */
130
+ type UploadRefusal = Readonly<{
131
+ failure: Extract<UploadFailure, {
132
+ phase: 'admission' | 'configuration';
133
+ }>;
134
+ }>;
110
135
  /** Owns persisted upload drafts and editor-lifetime Files SDK requests. */
111
136
  declare const BaseUploadPlugin: BasePlugin<Readonly<{
112
137
  readonly __pluginWritableProperties: Readonly<{
@@ -135,6 +160,12 @@ declare const BaseUploadPlugin: BasePlugin<Readonly<{
135
160
  readonly activate: true;
136
161
  readonly api: {
137
162
  readonly cancel: (key: NodeKey) => void;
163
+ /**
164
+ * Whether another draft of the same kind fits after the upload draft
165
+ * at `key`, where a slot submit lands the draft of a second file. It
166
+ * writes nothing, and it is false when `key` names no upload draft.
167
+ */
168
+ readonly fitsAfter: (key: NodeKey) => boolean;
138
169
  };
139
170
  readonly commands: true;
140
171
  readonly contributions: true;
@@ -254,8 +285,13 @@ declare const BaseUploadPlugin: BasePlugin<Readonly<{
254
285
  }> | undefined;
255
286
  }>>;
256
287
  readonly update: {
257
- readonly submit: TxDeclaredMethod<(input: File[] | FileList, options?: UploadSubmitOptions) => boolean>;
288
+ /**
289
+ * Check a batch for drafts the caller inserts itself. It writes nothing,
290
+ * and returns nothing when there is nothing to do.
291
+ */
292
+ readonly admit: TxDeclaredMethod<(input: readonly File[] | FileList, options?: UploadAdmitOptions) => UploadAdmission | UploadRefusal | undefined>;
293
+ readonly submit: TxDeclaredMethod<(input: readonly File[] | FileList, options?: UploadSubmitOptions) => boolean>;
258
294
  };
259
295
  }>> & Readonly<Record<never, never>>;
260
296
  type UploadElement = ElementOf<typeof BaseUploadPlugin>;
261
- export { UploadClient as a, UploadFileType as c, UploadRule as d, UploadRules as f, UploadTaskState as h, UploadAdmissionError as i, UploadKind as l, UploadTask as m, UPLOAD_FILE_TYPES as n, UploadElement as o, UploadSubmitOptions as p, UPLOAD_KINDS as r, UploadFailure as s, BaseUploadPlugin as t, UploadPluginState as u };
297
+ export { UploadTask as _, UploadAdmissionError as a, UploadElement as c, UploadKind as d, UploadPluginState as f, UploadSubmitOptions as g, UploadRules as h, UploadAdmission as i, UploadFailure as l, UploadRule as m, UPLOAD_FILE_TYPES as n, UploadAdmitOptions as o, UploadRefusal as p, UPLOAD_KINDS as r, UploadClient as s, BaseUploadPlugin as t, UploadFileType as u, UploadTaskState as v };
@@ -1,6 +1,6 @@
1
- import { $i as NodeKey, Kl as SchemaElementPropertyDefinition, Qo as TxDeclaredMethod, na as Plugin, vl as PropertyStringDescriptor } from "./index-BU6k1Aev.js";
2
- import "./htmlTypes-DjeFG3P8.js";
3
- import { _ as BasePlugin, bo as PluginReference, ra as BasePluginDependencyReferenceFor, vo as PluginDependency, wi as ElementIdEntry } from "./core-BJG8l_mk.js";
1
+ import { Ws as SchemaElementPropertyDefinition, eu as TxDeclaredMethod, is as PropertyStringDescriptor, ro as Plugin, xa as NodeKey } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import "./htmlTypes-cg_cWsaN.js";
3
+ import { _ as BasePlugin, ra as BasePluginDependencyReferenceFor, wi as ElementIdEntry, xo as PluginReference, yo as PluginDependency } from "./core-ClHasORr.js";
4
4
  /** Which way a mark's text runs. */
5
5
  type InkDirection = 'ltr' | 'rtl';
6
6
  /**
@@ -142,12 +142,14 @@ type InkCopyPlace = Readonly<{
142
142
  beside: InkSignPlace;
143
143
  kind: 'gone';
144
144
  }>;
145
+ declare const copiesOf: ({ copies }: Readonly<Record<string, unknown>>) => string[] | null;
146
+ declare const beta2MayUndoTo: (id: string) => boolean;
145
147
  /**
146
148
  * Pen marks on a document's text, saved as records of the document value.
147
149
  * Its updates add and remove marks, and its reads return them decoded and say
148
150
  * where each copy's block stands. It turns on block ids, because a mark names
149
- * its blocks by id, and saves where a deleted block stood in the update that
150
- * deletes it.
151
+ * its blocks by id, and saves where each marked block stands with its stroke,
152
+ * and again in a delete that leaves that place wrong.
151
153
  */
152
154
  declare const BaseInkPlugin: BasePlugin<Readonly<{
153
155
  corrections: true;
@@ -160,6 +162,11 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
160
162
  readonly records: {
161
163
  readonly "ink-copies": {
162
164
  readonly history: "retain";
165
+ readonly namedBy: {
166
+ keep: typeof beta2MayUndoTo;
167
+ names: typeof copiesOf;
168
+ set: "ink-marks";
169
+ };
163
170
  };
164
171
  readonly "ink-gone": {
165
172
  readonly history: "retain";
@@ -196,6 +203,9 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
196
203
  }>, Readonly<{
197
204
  group: "element";
198
205
  kind: "group";
206
+ }>, Readonly<{
207
+ key: string;
208
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
199
209
  }>>;
200
210
  };
201
211
  }>> & Readonly<Record<never, never>>> & Pick<BasePlugin<Readonly<{
@@ -217,6 +227,9 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
217
227
  }>, Readonly<{
218
228
  group: "element";
219
229
  kind: "group";
230
+ }>, Readonly<{
231
+ key: string;
232
+ map: (value: string, renamed: (name: string) => string | undefined) => string;
220
233
  }>>;
221
234
  };
222
235
  };
@@ -261,7 +274,8 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
261
274
  }> | undefined;
262
275
  /**
263
276
  * Every saved mark, oldest first, frozen, as the same list while the
264
- * saved marks and copies stay the same.
277
+ * saved marks and copies stay the same. Each mark stays the same object
278
+ * while its record and the copies it names stay the same.
265
279
  */
266
280
  readonly marks: () => readonly Readonly<{
267
281
  /** When the pen touched down, in milliseconds since the epoch. */
@@ -286,9 +300,15 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
286
300
  update: {
287
301
  /**
288
302
  * Save one mark and each copy not saved yet, as one undo step, and
289
- * return the mark's id. Refuses malformed input, writing nothing. A copy's
290
- * block deleted by this update, or by one of the last four updates that
291
- * deleted blocks, gets its place saved too.
303
+ * return the mark's id. Each sample saves rounded to a hundredth of a
304
+ * pixel, a thousandth of pressure and a whole millisecond. Refuses
305
+ * malformed input, and a sample whose hundredths of a pixel or
306
+ * milliseconds pass a quarter of `Number.MAX_SAFE_INTEGER`, writing
307
+ * nothing. A copy's
308
+ * block deleted by this update, by one of the last four updates that
309
+ * deleted blocks, or while a stroke that entered it was still unsaved,
310
+ * gets its place saved too.
311
+ * Each other copy's block and the block on each side of it get theirs.
292
312
  */
293
313
  readonly add: TxDeclaredMethod<(input: InkMarkInput) => string>;
294
314
  /** Drop the marks `ids` names. Their copies stay. */
@@ -1,6 +1,7 @@
1
- import { na as Plugin } from "./index-BU6k1Aev.js";
2
- import { Ra as InternalPluginDefinitionOf, V as InternalBasePluginRuntimeExtension, _ as BasePlugin, ra as BasePluginDependencyReferenceFor } from "./core-BJG8l_mk.js";
3
- import { s as AuthoredPlugin$1 } from "./index-hsC_sOn2.js";
1
+ import { ro as Plugin } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import "./htmlTypes-cg_cWsaN.js";
3
+ import { V as InternalBasePluginRuntimeExtension, _ as BasePlugin, ra as BasePluginDependencyReferenceFor, za as InternalPluginDefinitionOf } from "./core-ClHasORr.js";
4
+ import { _ as AuthoredPlugin$1 } from "./index-C9DiGDVj.js";
4
5
  declare const BaseAuthoredPlugin: BasePlugin<Readonly<{}> & Readonly<{
5
6
  name: "authored";
6
7
  }> & Readonly<{
@@ -1,4 +1,4 @@
1
- import "./combobox-DkBGgyd3.js";
1
+ import "./combobox-DAOYWuvC.js";
2
2
  type FilterWordsOptions = {
3
3
  prefixMode?: 'all-words' | 'last-word' | 'none';
4
4
  wordBoundary?: RegExp;
@@ -1,5 +1,5 @@
1
- import { Fs as Node, Ju as Path } from "./index-BU6k1Aev.js";
2
- import { u as Editor } from "./core-BJG8l_mk.js";
1
+ import { Za as Path, ra as Node } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import { u as Editor } from "./core-ClHasORr.js";
3
3
  import { FocusableElement } from "tabbable";
4
4
  type TabbableEntry = {
5
5
  domNode: FocusableElement;
@@ -1,6 +1,6 @@
1
- import { $u as EditorJsonValue, Cl as PropertyValueOptions, Ec as Element, Mc as ElementOf, Mi as EditorUpdateContext, Os as Descendant, Qo as TxDeclaredMethod, Rl as SchemaElement, fl as PropertyJsonDescriptor, ml as PropertyNumberDescriptor, vl as PropertyStringDescriptor } from "./index-BU6k1Aev.js";
2
- import "./htmlTypes-DjeFG3P8.js";
3
- import { Ct as PluginTransaction, Va as BasePluginDefinition, Wa as DefinitionOf, _ as BasePlugin, b as BasePluginDefinitionInput, c as PLUGINS, ct as BlockInsertOptions, lt as BlockUpsertOptions, wa as ElementWith, y as BasePluginContext } from "./core-BJG8l_mk.js";
1
+ import { H as Descendant, Is as SchemaElement, Qo as PropertyJsonDescriptor, Si as Element, Vt as EditorJsonValue, es as PropertyNumberDescriptor, eu as TxDeclaredMethod, is as PropertyStringDescriptor, ki as ElementOf, ls as PropertyValueOptions, oi as EditorUpdateContext } from "./index-DpltOCot-A2b3p3Eb.js";
2
+ import "./htmlTypes-cg_cWsaN.js";
3
+ import { Ct as PluginTransaction, Fa as ElementWith, Ga as DefinitionOf, Ha as BasePluginDefinition, _ as BasePlugin, b as BasePluginDefinitionInput, c as PLUGINS, ct as BlockInsertOptions, lt as BlockUpsertOptions, y as BasePluginContext } from "./core-ClHasORr.js";
4
4
  declare const mediaElementProperties: {
5
5
  width: PropertyJsonDescriptor<string | number, {
6
6
  readonly validate: (value: unknown) => value is number | string;
@@ -939,8 +939,10 @@ type MediaEmbedPluginState = MediaPluginState & {
939
939
  transformUrl: (url: string) => string;
940
940
  };
941
941
  /**
942
- * Enables support for embeddable media such as YouTube or Vimeo videos,
943
- * Instagram posts and tweets or Google Maps.
942
+ * Embeds third-party media. Links to YouTube, Vimeo, Dailymotion, Youku and
943
+ * Coub videos are stored as each provider's player URL, and X (Twitter) post
944
+ * links as the post URL. Any other URL is stored as `transformUrl` returns it;
945
+ * the default takes the `src` out of a pasted `<iframe>` snippet.
944
946
  */
945
947
  declare const BaseMediaEmbedPlugin: BasePlugin<Readonly<{
946
948
  readonly __pluginWritableProperties: Readonly<{
@@ -1,4 +1,4 @@
1
- import { _a as PluginFactoryTypeLambda, na as Plugin, va as PluginFactoryTypeProvider, zu as Range } from "./index-BU6k1Aev.js";
1
+ import { ro as Plugin, us as Range, vo as PluginFactoryTypeLambda, yo as PluginFactoryTypeProvider } from "./index-DpltOCot-A2b3p3Eb.js";
2
2
  import * as Y from "yjs";
3
3
  /**
4
4
  * Update policies for host adapters that import canonical `DocumentChange`
@@ -181,4 +181,4 @@ interface YjsFactoryType extends PluginFactoryTypeLambda {
181
181
  declare function createYjsDescriptor<const TOptions extends YjsPluginOptions>(options: TOptions): YjsPluginForOptions<TOptions>;
182
182
  /** Create one Yjs binding descriptor for an app-owned document. */
183
183
  declare const yjs: typeof createYjsDescriptor & PluginFactoryTypeProvider<YjsFactoryType>;
184
- export { YjsAwarenessState as a, YjsInitialReadiness as c, YjsRemoteCursor as d, YjsRemoteCursorData as f, YjsAwarenessLike as i, YjsPluginOptions as l, YjsAdmissionStatus as n, YjsBaseApi as o, YjsUpdatePolicy as p, YjsAwarenessChange as r, YjsCursorDataSchema as s, yjs as t, YjsPresenceApi as u };
184
+ export { YjsBaseApi as a, YjsPluginOptions as c, YjsRemoteCursorData as d, YjsUpdatePolicy as f, YjsAwarenessState as i, YjsPresenceApi as l, YjsAwarenessChange as n, YjsCursorDataSchema as o, yjs as p, YjsAwarenessLike as r, YjsInitialReadiness as s, YjsAdmissionStatus as t, YjsRemoteCursor as u };
@@ -1,4 +1,4 @@
1
- import { $i as NodeKey, Zt as Anchor, zu as Range } from "./index-BU6k1Aev.js";
1
+ import { s as Anchor, us as Range, xa as NodeKey } from "./index-DpltOCot-A2b3p3Eb.js";
2
2
  type ViewSourcePhase = 'project' | 'read' | 'resolve';
3
3
  /** Diagnostic emitted when an optional view source is deactivated. */
4
4
  type ViewSourceError = Readonly<{