platejs 54.0.0-beta.4 → 54.0.0-beta.5

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 (117) hide show
  1. package/dist/{AIChatRequestContext-DrUahdTc.d.ts → AIChatRequestContext-CwCmEMVV.d.ts} +2 -2
  2. package/dist/{BaseSuggestionPlugin-_7Ka6nY3.d.ts → BaseSuggestionPlugin-CpVkv7k2.d.ts} +4 -4
  3. package/dist/{PlateStatic-D3Cb-QwH.d.ts → PlateStatic-C7FfXu-Z.d.ts} +3 -3
  4. package/dist/ai/index.d.ts +1 -1
  5. package/dist/ai/react/index.d.ts +9 -9
  6. package/dist/authored/index.d.ts +3 -3
  7. package/dist/code-block/codemirror/index.d.ts +1 -1
  8. package/dist/{combobox-Dr0OYZIE.d.ts → combobox-BhhymlUs.d.ts} +2 -2
  9. package/dist/{comparison-types-DdwE6mYq-BogsHoUO.d.ts → comparison-types-Bvvxzxq2-08gzpgF6.d.ts} +1 -1
  10. package/dist/compiler/index.d.ts +2 -2
  11. package/dist/{core-BqR-fEDp.d.ts → core-Bu--Bog3.d.ts} +4 -4
  12. package/dist/diff/index.d.ts +2 -2
  13. package/dist/docs/api/dom.md +5 -3
  14. package/dist/docs/field.md +138 -20
  15. package/dist/docs/link.md +1 -1
  16. package/dist/docs/llms.txt +1 -1
  17. package/dist/docs/media.md +88 -2
  18. package/dist/docs/plugin-input-rules.md +4 -3
  19. package/dist/docs/roots.md +16 -10
  20. package/dist/docx/export/index.d.ts +3 -3
  21. package/dist/docx/import/index.d.ts +4 -4
  22. package/dist/docx/paste/index.d.ts +4 -4
  23. package/dist/dom/index.d.ts +1 -1
  24. package/dist/excalidraw/index.d.ts +3 -3
  25. package/dist/excalidraw/react/index.d.ts +3 -3
  26. package/dist/facade.js +2 -2
  27. package/dist/features/board/index.d.ts +1 -1
  28. package/dist/features/callout/index.d.ts +3 -3
  29. package/dist/features/code-block/lib/BaseCodeBlockPlugin.js +14 -18
  30. package/dist/features/combobox/index.d.ts +2 -2
  31. package/dist/features/comments/BaseCommentsPlugin.js +6 -2
  32. package/dist/features/comments/index.d.ts +1 -1
  33. package/dist/features/date/index.d.ts +3 -3
  34. package/dist/features/details/index.d.ts +3 -3
  35. package/dist/features/field/index.d.ts +2 -2
  36. package/dist/features/field/index.js +2 -2
  37. package/dist/features/field/lib/BaseFieldPlugin.js +2 -2
  38. package/dist/features/field/lib/applyFieldValues.js +2 -2
  39. package/dist/features/field/lib/fieldRules.internal.js +9 -4
  40. package/dist/features/find/index.d.ts +3 -3
  41. package/dist/features/footnote/index.d.ts +1 -1
  42. package/dist/features/ink/index.d.ts +1 -1
  43. package/dist/features/layout/index.d.ts +1 -1
  44. package/dist/features/lint/index.d.ts +3 -3
  45. package/dist/features/media/index.d.ts +1 -1
  46. package/dist/features/media/lib/media-embed/BaseMediaEmbedPlugin.js +1 -1
  47. package/dist/features/mention/index.d.ts +5 -5
  48. package/dist/features/suggestion/index.d.ts +1 -1
  49. package/dist/features/table/index.d.ts +1 -1
  50. package/dist/features/toc/index.d.ts +1 -1
  51. package/dist/features/upload/index.d.ts +1 -1
  52. package/dist/history/index.d.ts +2 -2
  53. package/dist/html/index.d.ts +3 -3
  54. package/dist/html/server/index.d.ts +1 -1
  55. package/dist/{htmlTypes-eT2ZGDAj.d.ts → htmlTypes-aE9Qlenu.d.ts} +1 -1
  56. package/dist/hyperscript/index.d.ts +1 -1
  57. package/dist/{index-DYdObeFQ.d.ts → index-BR2S-6Js.d.ts} +3 -3
  58. package/dist/{index-BkwR-5hH.d.ts → index-BT1-fX5o.d.ts} +3 -3
  59. package/dist/{index-BsV2McRr.d.ts → index-BXs4598V.d.ts} +5 -5
  60. package/dist/{index-BXwU9QH6.d.ts → index-BYAqyTSY.d.ts} +2 -2
  61. package/dist/{index-DwWQVwQt.d.ts → index-Be_YFFLS.d.ts} +3 -3
  62. package/dist/{index-B8QJDAmG.d.ts → index-Bf6EwY5O.d.ts} +2 -2
  63. package/dist/{index-Dq3Jlj8O-BJ6NxZm0.d.ts → index-BwmXxqbi-COlJb0HZ.d.ts} +1 -1
  64. package/dist/{index-BTx5oK7k.d.ts → index-C9WSACSv.d.ts} +1 -1
  65. package/dist/{index-B33E1CRJ.d.ts → index-CGUt4h_4.d.ts} +3 -3
  66. package/dist/{index-BWPcE4ac-Cto_IsNs.d.ts → index-CRmyGzS8-BTrk6JzL.d.ts} +1 -1
  67. package/dist/{index-DNQXzU-X.d.ts → index-CTwrWir_.d.ts} +1 -1
  68. package/dist/{index-M781pyx9.d.ts → index-CYR4jNU7.d.ts} +4 -4
  69. package/dist/{index-C9Fu-P4E.d.ts → index-CbcYN_S_.d.ts} +10 -4
  70. package/dist/{index-Cob_iBdu.d.ts → index-CeVE8JR-.d.ts} +3 -3
  71. package/dist/{index-CpY7Xnxw.d.ts → index-DFvzP8N_.d.ts} +4 -4
  72. package/dist/{index-Ca48r1ng.d.ts → index-DgVsTFYL.d.ts} +3 -3
  73. package/dist/{index-DPowErHa.d.ts → index-DhVOU0pS.d.ts} +22 -15
  74. package/dist/{index-B7moSod7.d.ts → index-DhurStYU.d.ts} +1 -1
  75. package/dist/{index-DShbzec2.d.ts → index-DlBey0zf.d.ts} +6 -3
  76. package/dist/{index-B8-5Sr7I.d.ts → index-DqKFQcfb.d.ts} +2 -2
  77. package/dist/{index-d7io3MzC.d.ts → index-DqpzKYwP.d.ts} +3 -3
  78. package/dist/{index-JWgwL5l3.d.ts → index-dpi2ErEe.d.ts} +3 -3
  79. package/dist/index.d.ts +3 -3
  80. package/dist/internal/utils/vscodeClipboard.js +11 -0
  81. package/dist/markdown/index.d.ts +1 -1
  82. package/dist/markdown/lib/MarkdownPlugin.js +2 -1
  83. package/dist/math/index.d.ts +3 -3
  84. package/dist/math/react/index.d.ts +4 -4
  85. package/dist/migrations/index.d.ts +3 -3
  86. package/dist/pagination/index.d.ts +1 -1
  87. package/dist/pagination/react/index.d.ts +2 -2
  88. package/dist/react/features/board/index.d.ts +5 -5
  89. package/dist/react/features/callout/index.d.ts +3 -3
  90. package/dist/react/features/combobox/index.d.ts +5 -5
  91. package/dist/react/features/comments/index.d.ts +6 -6
  92. package/dist/react/features/date/index.d.ts +4 -4
  93. package/dist/react/features/details/index.d.ts +4 -4
  94. package/dist/react/features/field/index.d.ts +5 -5
  95. package/dist/react/features/footnote/index.d.ts +7 -7
  96. package/dist/react/features/format-painter/index.d.ts +4 -4
  97. package/dist/react/features/ink/InkContent.js +13 -0
  98. package/dist/react/features/ink/index.d.ts +5 -5
  99. package/dist/react/features/ink/inkPaint.internal.js +4 -1
  100. package/dist/react/features/layout/index.d.ts +5 -5
  101. package/dist/react/features/media/index.d.ts +5 -5
  102. package/dist/react/features/mention/index.d.ts +6 -6
  103. package/dist/react/features/suggestion/index.d.ts +6 -6
  104. package/dist/react/features/table/index.d.ts +5 -5
  105. package/dist/react/features/toc/index.d.ts +2 -2
  106. package/dist/react/features/upload/index.d.ts +5 -5
  107. package/dist/react/index.d.ts +5 -5
  108. package/dist/react/virtualized.d.ts +2 -2
  109. package/dist/{source-BGohy8vH.d.ts → source-GMnTi_Vr.d.ts} +3 -3
  110. package/dist/static/index.d.ts +5 -5
  111. package/dist/tabbable/index.d.ts +1 -1
  112. package/dist/tabbable/react/index.d.ts +3 -3
  113. package/dist/testing/index.d.ts +2 -2
  114. package/dist/yjs/index.d.ts +1 -1
  115. package/dist/yjs/react/index.d.ts +5 -5
  116. package/package.json +2 -2
  117. /package/dist/{index-BXjLmx1n-CXk17buG.d.ts → index-QuqD4Dyj-DlOIX0sH.d.ts} +0 -0
@@ -388,7 +388,7 @@ export const LinkInputRulesPlugin = LinkPlugin.configure({
388
388
  ```
389
389
 
390
390
  - `LinkRules.markdown()` handles `[label](https://...)`.
391
- - `LinkRules.autolink({ variant: 'paste' })` turns a pasted URL into a link.
391
+ - `LinkRules.autolink({ variant: 'paste' })` turns a pasted URL into a link. When the media kit's `MediaEmbedRules.autoEmbed({ variant: 'paste' })` is installed, a YouTube, Vimeo, Dailymotion, Youku, Coub or X link pasted alone on an empty line lands as a link. Then an embed of that link goes in above the line, and the line empties, as [Media](/docs/media#input-rules) describes.
392
392
  - `LinkRules.autolink({ variant: 'space' })` detects a URL when you type a trailing space.
393
393
  - `LinkRules.autolink({ variant: 'break' })` detects a URL when you press Enter.
394
394
 
@@ -631,7 +631,7 @@ Matching cannot mutate the editor.
631
631
 
632
632
  | Field | Returns |
633
633
  | ----- | ------- |
634
- | `editor` | A read-only editor projection with `read` and read-only plugin portals |
634
+ | `editor` | A read-only editor projection with `read`, `key` and read-only plugin portals; `editor.key(node)` returns a node's stable key, as the full editor's `editor.key` does |
635
635
  | `isCollapsed` | Whether the selection is collapsed |
636
636
  | `plugin` | The descriptor that owns the rule; use `editor.plugin(plugin).schema` for persisted identity. |
637
637
  | `getBlockEntry()` | The current block's `NodeEntry`, or `undefined` |
@@ -699,7 +699,8 @@ and makes rules harder to compose.
699
699
  An `insertData` rule can declare `followUp` instead of `apply`. A follow-up rule
700
700
  leaves the paste alone and runs after it, as its own undo step. One undo takes
701
701
  back the follow-up's change and keeps the paste. A second undo takes back the
702
- paste when history saved nothing between the two.
702
+ paste when history saved nothing between the two. `MediaEmbedRules.autoEmbed`
703
+ from `platejs/media` is one; see [Media](/docs/media#mediaembedrulesautoembed).
703
704
 
704
705
  ```ts
705
706
  import { defineInputRule, NodeApi } from 'platejs';
@@ -276,16 +276,22 @@ const SyncedBlock = ({ attributes, element, slots }) => (
276
276
 
277
277
  A root whose blocks are selected as whole objects, such as a board's shapes,
278
278
  can give focus to an element of its own instead of its editable. Pass
279
- `nodeSelectionFocus`, a ref to that element. That element takes focus when the
280
- editor moves focus into the root, as after an undo or on a call to
281
- `editor.api.dom.focus()`, while there is no selection or a node selection holds
282
- only the root's top-level blocks. It does not take focus while the editor shows
283
- a caret or a text selection, and a click that selects an object in the root
284
- focuses the editable. Keep the element mounted across renders. When the render
285
- that follows a focus call replaces it, focus falls to the page. Unless the
286
- element is a control, such as a button, the editor reads no keys from it, so it
287
- must handle the keys it needs, such as undo and redo through the `onKeyDown` of
288
- `useEditorHistory`.
279
+ `nodeSelectionFocus`, a ref to that element, and give the element
280
+ `contentEditable={false}`. That element takes focus when the editor moves focus
281
+ into the root, as after an undo, on a click that selects an object in the root
282
+ or on a call to `editor.api.dom.focus()`. It takes focus only while no range is
283
+ shown into the root and the root's own selection is none or a node selection of
284
+ its top-level blocks. A node selection the root kept while the caret was in
285
+ another root becomes the selection again once the element holds focus, so a key
286
+ the element handles acts on it. It does not come back when the element's focus
287
+ handler leaves focus on another element, asks for focus elsewhere or changes the
288
+ selection. A focus call made inside an update or a read focuses the editable
289
+ instead. Keep the element mounted across renders. When the render that follows
290
+ a focus call replaces it, focus falls to the page. An element that inherits
291
+ editing runs the editable's own focus handler, which in Firefox moves focus to
292
+ the editable. Unless the element is a control, such as a button, the editor
293
+ reads no keys from it, so it must handle the keys it needs, such as undo and
294
+ redo through the `onKeyDown` of `useEditorHistory`.
289
295
 
290
296
  ```tsx
291
297
  const Board = ({ attributes, children, slots }) => {
@@ -1,6 +1,6 @@
1
- import { st as BasePluginInput, u as Editor } from "../../core-BqR-fEDp.js";
2
- import { n as EditorStaticProps } from "../../PlateStatic-D3Cb-QwH.js";
3
- import { n as DocxComment, r as DocxDiagnostic, t as DocxSource } from "../../source-BGohy8vH.js";
1
+ import { st as BasePluginInput, u as Editor } from "../../core-Bu--Bog3.js";
2
+ import { n as EditorStaticProps } from "../../PlateStatic-C7FfXu-Z.js";
3
+ import { n as DocxComment, r as DocxDiagnostic, t as DocxSource } from "../../source-GMnTi_Vr.js";
4
4
  type UnitValue = number | string;
5
5
  type Margins = {
6
6
  bottom?: UnitValue;
@@ -1,7 +1,7 @@
1
- import { Fo as PluginReference, Tt as EditorDocumentValue, su as Value } from "../../index-BXjLmx1n-CXk17buG.js";
2
- import { h as EditorApplicationSchema } from "../../htmlTypes-eT2ZGDAj.js";
3
- import "../../core-BqR-fEDp.js";
4
- import { a as DocxImportLimits, i as DocxErrorDiagnostic, n as DocxComment, o as DocxSourceLocation, r as DocxDiagnostic, s as DocxWarningDiagnostic, t as DocxSource } from "../../source-BGohy8vH.js";
1
+ import { Fo as PluginReference, Tt as EditorDocumentValue, su as Value } from "../../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import { h as EditorApplicationSchema } from "../../htmlTypes-aE9Qlenu.js";
3
+ import "../../core-Bu--Bog3.js";
4
+ import { a as DocxImportLimits, i as DocxErrorDiagnostic, n as DocxComment, o as DocxSourceLocation, r as DocxDiagnostic, s as DocxWarningDiagnostic, t as DocxSource } from "../../source-GMnTi_Vr.js";
5
5
  type DocxImportOptions<TRetainSource extends boolean = false> = Readonly<{
6
6
  limits?: Partial<DocxImportLimits>;
7
7
  lossPolicy?: 'allow' | 'reject';
@@ -1,7 +1,7 @@
1
- import { su as Value } from "../../index-BXjLmx1n-CXk17buG.js";
2
- import { a as HtmlEditorSerializeOptions, d as HtmlSerializeResult, f as HtmlSliceParseResult, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult } from "../../htmlTypes-eT2ZGDAj.js";
3
- import { Co as PluginReference, _ as BasePlugin, xo as PluginDependency } from "../../core-BqR-fEDp.js";
4
- import "../../index-DYdObeFQ.js";
1
+ import { su as Value } from "../../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import { a as HtmlEditorSerializeOptions, d as HtmlSerializeResult, f as HtmlSliceParseResult, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult } from "../../htmlTypes-aE9Qlenu.js";
3
+ import { Co as PluginReference, _ as BasePlugin, xo as PluginDependency } from "../../core-Bu--Bog3.js";
4
+ import "../../index-BR2S-6Js.js";
5
5
  /** Normalizes Word clipboard payloads before the installed HTML parser runs. */
6
6
  declare const WordPastePlugin: BasePlugin<Readonly<{
7
7
  readonly dependencies: readonly [PluginReference<"html"> & PluginDependency<Readonly<{
@@ -1,2 +1,2 @@
1
- import { A as DataTransferSnapshot, B as domCommands, C as DOMVisualPointOptions, D as DataTransferFormat, E as DataTransferEncodeContext, F as KeyboardEventLike, H as usesAppleDOMHotkeys, I as ScrollIntoViewOptions, L as ScrollIntoViewTarget, M as HotkeyMatchOptions, N as HotkeyPlatform, O as DataTransferFormatPhase, P as HotkeySpec, R as ariaKeyShortcuts, S as DOMVisualPoint, T as DataTransferDiagnostic, U as writeDataTransferFragment, V as isHotkey, _ as DOMRange, b as DOMStaticRange, f as DOMElement, g as DOMPoint, i as DOMClipboardApi, k as DataTransferSchemaClaim, n as ClipboardSliceWrite, p as DOMNode, r as DOMApi, t as ClipboardSliceRead, v as DOMResolutionError, w as DataTransferDecodeContext, x as DOMText, y as DOMSelection, z as dataTransferFormats } from "../index-DShbzec2.js";
1
+ import { A as DataTransferSnapshot, B as domCommands, C as DOMVisualPointOptions, D as DataTransferFormat, E as DataTransferEncodeContext, F as KeyboardEventLike, H as usesAppleDOMHotkeys, I as ScrollIntoViewOptions, L as ScrollIntoViewTarget, M as HotkeyMatchOptions, N as HotkeyPlatform, O as DataTransferFormatPhase, P as HotkeySpec, R as ariaKeyShortcuts, S as DOMVisualPoint, T as DataTransferDiagnostic, U as writeDataTransferFragment, V as isHotkey, _ as DOMRange, b as DOMStaticRange, f as DOMElement, g as DOMPoint, i as DOMClipboardApi, k as DataTransferSchemaClaim, n as ClipboardSliceWrite, p as DOMNode, r as DOMApi, t as ClipboardSliceRead, v as DOMResolutionError, w as DataTransferDecodeContext, x as DOMText, y as DOMSelection, z as dataTransferFormats } from "../index-DlBey0zf.js";
2
2
  export { type ClipboardSliceRead, type ClipboardSliceWrite, type DOMApi, type DOMClipboardApi, type DOMElement, type DOMNode, type DOMPoint, type DOMRange, DOMResolutionError, type DOMSelection, type DOMStaticRange, type DOMText, type DOMVisualPoint, type DOMVisualPointOptions, type DataTransferDecodeContext, type DataTransferDiagnostic, type DataTransferEncodeContext, type DataTransferFormat, type DataTransferFormatPhase, type DataTransferSchemaClaim, type DataTransferSnapshot, type HotkeyMatchOptions, type HotkeyPlatform, type HotkeySpec, type KeyboardEventLike, type ScrollIntoViewOptions, type ScrollIntoViewTarget, ariaKeyShortcuts, dataTransferFormats, domCommands, isHotkey, usesAppleDOMHotkeys, writeDataTransferFragment };
@@ -1,6 +1,6 @@
1
- import { Ht as EditorJsonValue, ji as ElementOf, ts as PropertyJsonDescriptor } from "../index-BXjLmx1n-CXk17buG.js";
2
- import "../htmlTypes-eT2ZGDAj.js";
3
- import { _ as BasePlugin } from "../core-BqR-fEDp.js";
1
+ import { Ht as EditorJsonValue, ji as ElementOf, ts as PropertyJsonDescriptor } from "../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "../htmlTypes-aE9Qlenu.js";
3
+ import { _ as BasePlugin } from "../core-Bu--Bog3.js";
4
4
  type ExcalidrawElementData = {
5
5
  elements: readonly EditorJsonValue[];
6
6
  files?: Readonly<Record<string, EditorJsonValue>>;
@@ -1,6 +1,6 @@
1
- import { Ht as EditorJsonValue, ts as PropertyJsonDescriptor } from "../../index-BXjLmx1n-CXk17buG.js";
2
- import "../../htmlTypes-eT2ZGDAj.js";
3
- import { At as Plugin } from "../../index-DPowErHa.js";
1
+ import { Ht as EditorJsonValue, ts as PropertyJsonDescriptor } from "../../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "../../htmlTypes-aE9Qlenu.js";
3
+ import { At as Plugin } from "../../index-DhVOU0pS.js";
4
4
  import { ExcalidrawImperativeAPI } from "@excalidraw/excalidraw/types";
5
5
  declare const ExcalidrawPlugin: Plugin<Readonly<{}> & Readonly<{
6
6
  name: "excalidraw";
package/dist/facade.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { ContentSlice, DocumentChange, EditorSchemaValidationError, ElementApi, NodeApi, PathApi, PointApi, RangeApi, SelectionApi, TextApi, createEditor, defineEditorSchema, definePlugin as defineRuntimePlugin, definePluginPoint, editorCommands, editorReads, getEditorRuntimeOwner, locateAt, property, readEditorSelection, schema, target, transfer, txLocate, txSelection } from "plitejs";
2
- import { EDITOR_DOCUMENT_FIELDS as EDITOR_DOCUMENT_FIELDS$1, EditorRefusalError, MAIN_ROOT_KEY, afterActiveTransactionEnds, assertDetachedSelectionSupported, assertEditorDocumentContainers, attachTransactionSpecAfterCommit, canPlaceBlocksAtPath, canonicalRecordJson, claimsHistoryReplay, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createDetachedEditorSchema as createDetachedEditorSchema$1, createEditorOwner, fitSlicePlacements, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateTags, getAuthoredUpdateView, getCaretOwner, getCarriedCaretEditor, getCompiledEditorSchema as getCompiledEditorSchema$1, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getDocumentValueNode, getEditorAuthoredDocumentCapability as getEditorAuthoredDocumentCapability$1, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getEditorDocumentShapeIssueMessage, getEditorRuntimeRootKeys, getEditorUpdateRoot, getInstalledPlugin, getPluginContributions, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSelectionDOMRange, getSnapshotVersion, getTextSearchScope, getValueRecords, getViewAuthor, getViewPresentation as getViewPresentation$1, holdsCaret, isAuthorId, isDocumentView, isEditorPublishingCommit, isEnvelopeInput as isEnvelopeInput$1, isPlugin as isRuntimePlugin, landNodePropertiesAt, mapDetachedSelectionThroughChange, mapSemanticUpdateMethodArguments, markRootViewUsed, normalizeSetValues, notifyObservers, placeElementAt, preserveCompiledSchemaPropertyIdentity, projectEditorView, readAuthoredView, readCaretViewIn, readDocumentRange, readDocumentRecord as readDocumentRecord$1, readEditorCommitHistoryEntry, readElementById, readElementPropertyWrites, readPersistedEnvelope as readPersistedEnvelope$1, readRecord, readRootEntries, readRootViewUse, readShownDocument, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, recordSetChanges, recordSetIds, registerEditorTransactionGuard, rejectEditorRecord, repairEditorValue, reportEditorLifecycleError as reportEditorLifecycleError$1, runEditorObserver, sameResult, scheduleAfterCommitNotification, setEditorStateViewTransform, setEditorTransactionViewTransform, setSelectionAsView, shouldMergeNodesRemovePrevNode, snapshotEditorJsonValue, subscribeCaretTarget, subscribeEditorViewState, subscribeShownViewUse, txStored, vetoesWrite, withDocumentViewRead, withEditorUpdateRootScope, withMountedPresentation, withStoredAuthoredRead, withTransactionSpecDraftRead } from "plitejs/internal";
3
- export { ContentSlice, DocumentChange, EDITOR_DOCUMENT_FIELDS$1 as EDITOR_DOCUMENT_FIELDS, EditorRefusalError, EditorSchemaValidationError, ElementApi, MAIN_ROOT_KEY, NodeApi, PathApi, PointApi, RangeApi, SelectionApi, TextApi, afterActiveTransactionEnds, assertDetachedSelectionSupported, assertEditorDocumentContainers, attachTransactionSpecAfterCommit, canPlaceBlocksAtPath, canonicalRecordJson, claimsHistoryReplay, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createDetachedEditorSchema$1 as createDetachedEditorSchema, createEditor, createEditorOwner, defineEditorSchema, definePluginPoint, defineRuntimePlugin, editorCommands, editorReads, fitSlicePlacements, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateTags, getAuthoredUpdateView, getCaretOwner, getCarriedCaretEditor, getCompiledEditorSchema$1 as getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getDocumentValueNode, getEditorAuthoredDocumentCapability$1 as getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getEditorDocumentShapeIssueMessage, getEditorRuntimeOwner, getEditorRuntimeRootKeys, getEditorUpdateRoot, getInstalledPlugin, getPluginContributions, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSelectionDOMRange, getSnapshotVersion, getTextSearchScope, getValueRecords, getViewAuthor, getViewPresentation$1 as getViewPresentation, holdsCaret, isAuthorId, isDocumentView, isEditorPublishingCommit, isEnvelopeInput$1 as isEnvelopeInput, isRuntimePlugin, landNodePropertiesAt, locateAt, mapDetachedSelectionThroughChange, mapSemanticUpdateMethodArguments, markRootViewUsed, normalizeSetValues, notifyObservers, placeElementAt, preserveCompiledSchemaPropertyIdentity, projectEditorView, property, readAuthoredView, readCaretViewIn, readDocumentRange, readDocumentRecord$1 as readDocumentRecord, readEditorCommitHistoryEntry, readEditorSelection, readElementById, readElementPropertyWrites, readPersistedEnvelope$1 as readPersistedEnvelope, readRecord, readRootEntries, readRootViewUse, readShownDocument, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, recordSetChanges, recordSetIds, registerEditorTransactionGuard, rejectEditorRecord, repairEditorValue, reportEditorLifecycleError$1 as reportEditorLifecycleError, runEditorObserver, sameResult, scheduleAfterCommitNotification, schema, setEditorStateViewTransform, setEditorTransactionViewTransform, setSelectionAsView, shouldMergeNodesRemovePrevNode, snapshotEditorJsonValue, subscribeCaretTarget, subscribeEditorViewState, subscribeShownViewUse, target, transfer, txLocate, txSelection, txStored, vetoesWrite, withDocumentViewRead, withEditorUpdateRootScope, withMountedPresentation, withStoredAuthoredRead, withTransactionSpecDraftRead };
2
+ import { EDITOR_DOCUMENT_FIELDS as EDITOR_DOCUMENT_FIELDS$1, EditorRefusalError, MAIN_ROOT_KEY, afterActiveTransactionEnds, assertDetachedSelectionSupported, assertEditorDocumentContainers, attachTransactionSpecAfterCommit, canPlaceBlocksAtPath, canonicalRecordJson, claimsHistoryReplay, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createDetachedEditorSchema as createDetachedEditorSchema$1, createEditorOwner, fitSlicePlacements, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateTags, getAnchorRuntimeId, getAuthoredUpdateView, getCaretOwner, getCarriedCaretEditor, getCompiledEditorSchema as getCompiledEditorSchema$1, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getDocumentValueNode, getEditorAuthoredDocumentCapability as getEditorAuthoredDocumentCapability$1, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getEditorDocumentShapeIssueMessage, getEditorRuntimeRootKeys, getEditorUpdateRoot, getInstalledPlugin, getPluginContributions, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSelectionDOMRange, getSnapshotVersion, getTextSearchScope, getValueRecords, getViewAuthor, getViewPresentation as getViewPresentation$1, holdsCaret, isAuthorId, isDocumentView, isEditorPublishingCommit, isEnvelopeInput as isEnvelopeInput$1, isPlugin as isRuntimePlugin, landNodePropertiesAt, mapDetachedSelectionThroughChange, mapSemanticUpdateMethodArguments, markRootViewUsed, normalizeSetValues, notifyObservers, placeElementAt, preserveCompiledSchemaPropertyIdentity, projectEditorView, readAuthoredView, readCaretViewIn, readDocumentRange, readDocumentRecord as readDocumentRecord$1, readEditorCommitHistoryEntry, readElementById, readElementPropertyWrites, readPersistedEnvelope as readPersistedEnvelope$1, readRecord, readRootEntries, readRootViewUse, readShownDocument, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, recordSetChanges, recordSetIds, registerEditorTransactionGuard, rejectEditorRecord, repairEditorValue, reportEditorLifecycleError as reportEditorLifecycleError$1, restoreAnchor, runEditorObserver, sameResult, scheduleAfterCommitNotification, setEditorStateViewTransform, setEditorTransactionViewTransform, setSelectionAsView, shouldMergeNodesRemovePrevNode, snapshotEditorJsonValue, subscribeCaretTarget, subscribeEditorViewState, subscribeShownViewUse, txStored, vetoesWrite, withDocumentViewRead, withEditorUpdateRootScope, withMountedPresentation, withStoredAuthoredRead, withTransactionSpecDraftRead } from "plitejs/internal";
3
+ export { ContentSlice, DocumentChange, EDITOR_DOCUMENT_FIELDS$1 as EDITOR_DOCUMENT_FIELDS, EditorRefusalError, EditorSchemaValidationError, ElementApi, MAIN_ROOT_KEY, NodeApi, PathApi, PointApi, RangeApi, SelectionApi, TextApi, afterActiveTransactionEnds, assertDetachedSelectionSupported, assertEditorDocumentContainers, attachTransactionSpecAfterCommit, canPlaceBlocksAtPath, canonicalRecordJson, claimsHistoryReplay, completePersistedDocumentFields, configureAuthoredView, containsCompleteEditorSchema, createAuthoredEditorView, createDetachedEditorSchema$1 as createDetachedEditorSchema, createEditor, createEditorOwner, defineEditorSchema, definePluginPoint, defineRuntimePlugin, editorCommands, editorReads, fitSlicePlacements, getActiveCommandEditor, getActiveEditorTransaction, getActiveEditorUpdateId, getActiveEditorUpdateTags, getAnchorRuntimeId, getAuthoredUpdateView, getCaretOwner, getCarriedCaretEditor, getCompiledEditorSchema$1 as getCompiledEditorSchema, getCompiledEditorSchemaFromApi, getCompiledPropertyCandidates, getDocumentValueNode, getEditorAuthoredDocumentCapability$1 as getEditorAuthoredDocumentCapability, getEditorCommitNode, getEditorCommitSnapshot, getEditorCommitValue, getEditorDocumentShapeIssueMessage, getEditorRuntimeOwner, getEditorRuntimeRootKeys, getEditorUpdateRoot, getInstalledPlugin, getPluginContributions, getReaderRange, getRecordSetVersion, getSchemaElementSourceReference, getSelectionDOMRange, getSnapshotVersion, getTextSearchScope, getValueRecords, getViewAuthor, getViewPresentation$1 as getViewPresentation, holdsCaret, isAuthorId, isDocumentView, isEditorPublishingCommit, isEnvelopeInput$1 as isEnvelopeInput, isRuntimePlugin, landNodePropertiesAt, locateAt, mapDetachedSelectionThroughChange, mapSemanticUpdateMethodArguments, markRootViewUsed, normalizeSetValues, notifyObservers, placeElementAt, preserveCompiledSchemaPropertyIdentity, projectEditorView, property, readAuthoredView, readCaretViewIn, readDocumentRange, readDocumentRecord$1 as readDocumentRecord, readEditorCommitHistoryEntry, readEditorSelection, readElementById, readElementPropertyWrites, readPersistedEnvelope$1 as readPersistedEnvelope, readRecord, readRootEntries, readRootViewUse, readShownDocument, readShownPreview, readShownRecords, readShownViewUse, readStoredEditorDocument, readViewPage, recordSetChanges, recordSetIds, registerEditorTransactionGuard, rejectEditorRecord, repairEditorValue, reportEditorLifecycleError$1 as reportEditorLifecycleError, restoreAnchor, runEditorObserver, sameResult, scheduleAfterCommitNotification, schema, setEditorStateViewTransform, setEditorTransactionViewTransform, setSelectionAsView, shouldMergeNodesRemovePrevNode, snapshotEditorJsonValue, subscribeCaretTarget, subscribeEditorViewState, subscribeShownViewUse, target, transfer, txLocate, txSelection, txStored, vetoesWrite, withDocumentViewRead, withEditorUpdateRootScope, withMountedPresentation, withStoredAuthoredRead, withTransactionSpecDraftRead };
@@ -1,2 +1,2 @@
1
- import { A as BoardShapeEntry, C as BoardArrowEnd, D as BoardArrowEntry, F as BoardPlace, I as BoardRestackDirection, M as BoardShapePlace, O as BoardFrameEntry, R as BoardSize, S as BoardArrowAnchor, T as BoardArrowSide, _ as BaseBoardFramePlugin, a as BoardElement, b as BoardArrowElement, d as BoardNoteElement, f as BaseBoardImagePlugin, g as BoardGeoElement, h as BoardGeo, i as BoardDefinition, j as BoardFramePlace, k as BoardMemberEntry, m as BaseBoardGeoPlugin, n as BoardStrokeElement, p as BoardImageElement, r as BaseBoardPlugin, s as BoardStrokePath, t as BaseBoardStrokePlugin, u as BaseBoardNotePlugin, v as BoardFrameElement, w as BoardArrowEnds, x as BoardArrowEndInput, y as BaseBoardArrowPlugin, z as defineBoardShape } from "../../index-Ca48r1ng.js";
1
+ import { A as BoardShapeEntry, C as BoardArrowEnd, D as BoardArrowEntry, F as BoardPlace, I as BoardRestackDirection, M as BoardShapePlace, O as BoardFrameEntry, R as BoardSize, S as BoardArrowAnchor, T as BoardArrowSide, _ as BaseBoardFramePlugin, a as BoardElement, b as BoardArrowElement, d as BoardNoteElement, f as BaseBoardImagePlugin, g as BoardGeoElement, h as BoardGeo, i as BoardDefinition, j as BoardFramePlace, k as BoardMemberEntry, m as BaseBoardGeoPlugin, n as BoardStrokeElement, p as BoardImageElement, r as BaseBoardPlugin, s as BoardStrokePath, t as BaseBoardStrokePlugin, u as BaseBoardNotePlugin, v as BoardFrameElement, w as BoardArrowEnds, x as BoardArrowEndInput, y as BaseBoardArrowPlugin, z as defineBoardShape } from "../../index-DgVsTFYL.js";
2
2
  export { BaseBoardArrowPlugin, BaseBoardFramePlugin, BaseBoardGeoPlugin, BaseBoardImagePlugin, BaseBoardNotePlugin, BaseBoardPlugin, BaseBoardStrokePlugin, type BoardArrowAnchor, BoardArrowElement, type BoardArrowEnd, BoardArrowEndInput, type BoardArrowEnds, type BoardArrowEntry, type BoardArrowSide, BoardDefinition, BoardElement, BoardFrameElement, type BoardFrameEntry, type BoardFramePlace, BoardGeo, BoardGeoElement, BoardImageElement, type BoardMemberEntry, BoardNoteElement, type BoardPlace, type BoardRestackDirection, type BoardShapeEntry, type BoardShapePlace, type BoardSize, BoardStrokeElement, type BoardStrokePath, defineBoardShape };
@@ -1,6 +1,6 @@
1
- import { Ht as EditorJsonValue, fs as PropertyValueOptions, ji as ElementOf, ss as PropertyStringDescriptor } from "../../index-BXjLmx1n-CXk17buG.js";
2
- import "../../htmlTypes-eT2ZGDAj.js";
3
- import { _ as BasePlugin } from "../../core-BqR-fEDp.js";
1
+ import { Ht as EditorJsonValue, fs as PropertyValueOptions, ji as ElementOf, ss as PropertyStringDescriptor } from "../../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "../../htmlTypes-aE9Qlenu.js";
3
+ import { _ as BasePlugin } from "../../core-Bu--Bog3.js";
4
4
  declare const BaseCalloutPlugin: BasePlugin<Readonly<{
5
5
  formats: true;
6
6
  rules: true;
@@ -10,6 +10,7 @@ import { BaseParagraphPlugin } from "../../../lib/plugins/paragraph/BaseParagrap
10
10
  import { PLUGINS } from "../../../utils/plate-keys.js";
11
11
  import { ContentSlice, ElementApi, NodeApi, PathApi, RangeApi, SelectionApi, authoredVeto, editorCommands, locateAt, property, schema, txLocate } from "../../../core.js";
12
12
  import { applyBlockReleases, canReplaceContainers, readBlockReleases } from "../../../internal/plugin/blockRelease.js";
13
+ import { readVSCodeLanguage } from "../../../internal/utils/vscodeClipboard.js";
13
14
  //#region src/features/code-block/lib/BaseCodeBlockPlugin.ts
14
15
  const CODE_LANGUAGE_CLASS_RE = /(?:^|\s)language-([^\s]+)/;
15
16
  const NON_WHITESPACE = /\S/;
@@ -431,28 +432,23 @@ const BaseCodeBlockPlugin = definePlugin(PLUGINS.codeBlock, {
431
432
  },
432
433
  mimeType: "text/html",
433
434
  priority: 200
435
+ }, {
436
+ decode: ({ data, snapshot }) => {
437
+ const language = readVSCodeLanguage(snapshot);
438
+ if (language === null || language === "markdown") return null;
439
+ return ContentSlice.closed([{
440
+ children: [{ text: data }],
441
+ language,
442
+ type: context.schema.type
443
+ }]);
444
+ },
445
+ mimeType: "text/plain",
446
+ priority: 200
434
447
  }],
435
448
  commands: ({ around, handle }) => [
436
449
  around(domCommands.insertData, ({ input, next, state }) => {
437
450
  const text = input.getData("text/plain");
438
- const vscodeDataString = input.getData("vscode-editor-data");
439
- const block = state.nodes.block();
440
- const isInCodeBlock = block?.[0].type === context.schema.type;
441
- if (vscodeDataString) try {
442
- const vscodeData = JSON.parse(vscodeDataString);
443
- const language = typeof vscodeData === "object" && vscodeData !== null && "mode" in vscodeData && typeof vscodeData.mode === "string" ? vscodeData.mode : void 0;
444
- if (isInCodeBlock) return state.transaction((tx) => {
445
- tx.text.insert(text);
446
- });
447
- if (!block) return next();
448
- return state.transaction((tx) => {
449
- tx.fragment.replace([{
450
- children: [{ text }],
451
- language,
452
- type: context.schema.type
453
- }], { at: PathApi.next(block[1]) });
454
- });
455
- } catch {}
451
+ const isInCodeBlock = state.nodes.block()?.[0].type === context.schema.type;
456
452
  const textIsHtmlMarkup = text === input.getData("text/html");
457
453
  if (isInCodeBlock && text && !textIsHtmlMarkup) return state.transaction((tx) => {
458
454
  tx.text.insert(text);
@@ -1,3 +1,3 @@
1
- import { n as ComboboxState, t as ComboboxEditor } from "../../combobox-Dr0OYZIE.js";
2
- import { n as filterWords, t as FilterWordsOptions } from "../../index-BTx5oK7k.js";
1
+ import { n as ComboboxState, t as ComboboxEditor } from "../../combobox-BhhymlUs.js";
2
+ import { n as filterWords, t as FilterWordsOptions } from "../../index-C9WSACSv.js";
3
3
  export { ComboboxEditor, ComboboxState, FilterWordsOptions, filterWords };
@@ -1,4 +1,4 @@
1
- import { notifyObservers, readDocumentRange, runEditorObserver, subscribeEditorViewState, withStoredAuthoredRead } from "../../facade.js";
1
+ import { getAnchorRuntimeId, notifyObservers, readDocumentRange, restoreAnchor, runEditorObserver, subscribeEditorViewState, withStoredAuthoredRead } from "../../facade.js";
2
2
  import { definePlugin } from "../../lib/plugin/definePlugin.js";
3
3
  import { readEditorAuthor } from "../../lib/editor/editorUser.internal.js";
4
4
  import { nanoid } from "../../lib/libs/nanoid.js";
@@ -744,7 +744,8 @@ const BaseCommentsPlugin = definePlugin("comments", {
744
744
  status: "blocked"
745
745
  }
746
746
  };
747
- restoredAnchor = editor.anchor.restore(transition.attachment);
747
+ const kept = orphans.get(thread.id);
748
+ restoredAnchor = kept && transition.anchorId !== null && getAnchorRuntimeId(kept) === transition.anchorId ? kept : restoreAnchor(editor, transition.attachment, transition.anchorId);
748
749
  hold(restoredAnchor);
749
750
  if (!restoredAnchor.resolve()) return {
750
751
  status: "applied",
@@ -755,6 +756,7 @@ const BaseCommentsPlugin = definePlugin("comments", {
755
756
  };
756
757
  }
757
758
  let value = null;
759
+ const removed = transition.value ? void 0 : anchors.get(thread.id);
758
760
  const mutation = await commitMutation(thread.id, transition.value ? "createThread" : "removeThread", transition.value, restoredAnchor, {
759
761
  afterWrite: (canonical) => {
760
762
  value = canonical;
@@ -775,6 +777,7 @@ const BaseCommentsPlugin = definePlugin("comments", {
775
777
  status: "applied",
776
778
  value: Object.freeze({
777
779
  ...transition,
780
+ anchorId: removed ? getAnchorRuntimeId(removed) : transition.anchorId,
778
781
  previous: current,
779
782
  value
780
783
  })
@@ -914,6 +917,7 @@ const BaseCommentsPlugin = definePlugin("comments", {
914
917
  if (!canonical || viewRefuses) return;
915
918
  commandEditor.update((tx) => {
916
919
  tx.effects.emit(commentCreationHistoryEffect, {
920
+ anchorId: anchor ? getAnchorRuntimeId(anchor) : null,
917
921
  attachment: anchor ? commandEditor.anchor.save(anchor) : null,
918
922
  messageId: canonical.messages[0].id,
919
923
  previous: null,
@@ -1,2 +1,2 @@
1
- import { S as SavedComments, _ as CommentsLoadIssue, a as CommentDataValue, b as CreateCommentThreadInput, c as CommentMutationRequest, d as CommentRanges, f as CommentResolution, g as CommentsChange, h as CommentUser, i as CommentDataList, l as CommentMutationResult, m as CommentThread, n as CommentAttachment, o as CommentMessage, p as CommentTarget, r as CommentData, s as CommentMutationDecision, t as BaseCommentsPlugin, u as CommentOperation, v as CommentsPluginState, x as PendingComment, y as CommentsSnapshot } from "../../index-CpY7Xnxw.js";
1
+ import { S as SavedComments, _ as CommentsLoadIssue, a as CommentDataValue, b as CreateCommentThreadInput, c as CommentMutationRequest, d as CommentRanges, f as CommentResolution, g as CommentsChange, h as CommentUser, i as CommentDataList, l as CommentMutationResult, m as CommentThread, n as CommentAttachment, o as CommentMessage, p as CommentTarget, r as CommentData, s as CommentMutationDecision, t as BaseCommentsPlugin, u as CommentOperation, v as CommentsPluginState, x as PendingComment, y as CommentsSnapshot } from "../../index-DFvzP8N_.js";
2
2
  export { BaseCommentsPlugin, CommentAttachment, CommentData, CommentDataList, CommentDataValue, CommentMessage, CommentMutationDecision, CommentMutationRequest, CommentMutationResult, CommentOperation, CommentRanges, CommentResolution, CommentTarget, CommentThread, CommentUser, CommentsChange, CommentsLoadIssue, CommentsPluginState, CommentsSnapshot, CreateCommentThreadInput, PendingComment, SavedComments };
@@ -1,6 +1,6 @@
1
- import { iu as TxDeclaredMethod, ji as ElementOf, ss as PropertyStringDescriptor } from "../../index-BXjLmx1n-CXk17buG.js";
2
- import "../../htmlTypes-eT2ZGDAj.js";
3
- import { _ as BasePlugin, _t as NodeInsertOptions } from "../../core-BqR-fEDp.js";
1
+ import { iu as TxDeclaredMethod, ji as ElementOf, ss as PropertyStringDescriptor } from "../../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "../../htmlTypes-aE9Qlenu.js";
3
+ import { _ as BasePlugin, _t as NodeInsertOptions } from "../../core-Bu--Bog3.js";
4
4
  declare const BaseDatePlugin: BasePlugin<Readonly<{
5
5
  readonly __pluginWritableProperties: Readonly<{
6
6
  descriptor: PropertyStringDescriptor<{
@@ -1,6 +1,6 @@
1
- import { As as SchemaContentPrefixSlot, Ca as NodeKey, Ds as SchemaContentDefault, Ht as EditorJsonValue, Ia as NodeSelection, Ji as Location, Ls as SchemaContentRule, iu as TxDeclaredMethod, ji as ElementOf, ts as PropertyJsonDescriptor } from "../../index-BXjLmx1n-CXk17buG.js";
2
- import "../../htmlTypes-eT2ZGDAj.js";
3
- import { Co as PluginReference, Qn as HeadingLevel, _ as BasePlugin, ct as BlockInsertOptions, lt as BlockUpsertOptions, xo as PluginDependency } from "../../core-BqR-fEDp.js";
1
+ import { As as SchemaContentPrefixSlot, Ca as NodeKey, Ds as SchemaContentDefault, Ht as EditorJsonValue, Ia as NodeSelection, Ji as Location, Ls as SchemaContentRule, iu as TxDeclaredMethod, ji as ElementOf, ts as PropertyJsonDescriptor } from "../../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "../../htmlTypes-aE9Qlenu.js";
3
+ import { Co as PluginReference, Qn as HeadingLevel, _ as BasePlugin, ct as BlockInsertOptions, lt as BlockUpsertOptions, xo as PluginDependency } from "../../core-Bu--Bog3.js";
4
4
  declare const isSummaryHeadingLevel: (value: unknown) => value is HeadingLevel;
5
5
  type BaseDetailsViewState = {
6
6
  openKeys: Set<NodeKey>;
@@ -1,2 +1,2 @@
1
- import { _ as fitsField, a as FieldCondition, c as FieldOption, d as FieldRead, f as FieldSettings, g as FIELD_TESTS, h as FieldValue, i as BaseFieldPlugin, l as FieldPatch, m as FieldTest, n as FieldRefusal, o as FieldElement, p as FieldSubmission, r as applyFieldValues, s as FieldKind, t as FieldApplyResult, u as FieldProblem } from "../../index-C9Fu-P4E.js";
2
- export { BaseFieldPlugin, FIELD_TESTS, FieldApplyResult, FieldCondition, FieldElement, FieldKind, FieldOption, FieldPatch, FieldProblem, FieldRead, FieldRefusal, FieldSettings, FieldSubmission, FieldTest, FieldValue, applyFieldValues, fitsField };
1
+ import { _ as fillsField, a as FieldCondition, c as FieldOption, d as FieldRead, f as FieldSettings, g as FIELD_TESTS, h as FieldValue, i as BaseFieldPlugin, l as FieldPatch, m as FieldTest, n as FieldRefusal, o as FieldElement, p as FieldSubmission, r as applyFieldValues, s as FieldKind, t as FieldApplyResult, u as FieldProblem, v as fitsField } from "../../index-CbcYN_S_.js";
2
+ export { BaseFieldPlugin, FIELD_TESTS, FieldApplyResult, FieldCondition, FieldElement, FieldKind, FieldOption, FieldPatch, FieldProblem, FieldRead, FieldRefusal, FieldSettings, FieldSubmission, FieldTest, FieldValue, applyFieldValues, fillsField, fitsField };
@@ -1,4 +1,4 @@
1
- import { FIELD_TESTS, fitsField } from "./lib/fieldRules.internal.js";
1
+ import { FIELD_TESTS, fillsField, fitsField } from "./lib/fieldRules.internal.js";
2
2
  import { BaseFieldPlugin } from "./lib/BaseFieldPlugin.js";
3
3
  import { applyFieldValues } from "./lib/applyFieldValues.js";
4
- export { BaseFieldPlugin, FIELD_TESTS, applyFieldValues, fitsField };
4
+ export { BaseFieldPlugin, FIELD_TESTS, applyFieldValues, fillsField, fitsField };
@@ -2,7 +2,7 @@ import { EditorRefusalError, claimsHistoryReplay, getActiveEditorUpdateId, getAc
2
2
  import { failInvariant } from "../../../internal/failInvariant.js";
3
3
  import { definePlugin } from "../../../lib/plugin/definePlugin.js";
4
4
  import { ElementApi, documentReplacement, locateAt, property, schema, target, txLocate } from "../../../core.js";
5
- import { FIELD_KINDS, FIELD_TESTS, conditionProblem, fieldLinks, fieldProblems, fitsField, isFieldCondition, isFieldKind, isFieldOptions, isFieldValue, sharedFieldLinks, unfitSettings } from "./fieldRules.internal.js";
5
+ import { FIELD_KINDS, FIELD_TESTS, conditionProblem, fieldLinks, fieldProblems, fillsField, fitsField, isFieldCondition, isFieldKind, isFieldOptions, isFieldValue, sharedFieldLinks, unfitSettings } from "./fieldRules.internal.js";
6
6
  import { nanoid } from "nanoid";
7
7
  //#region src/features/field/lib/BaseFieldPlugin.ts
8
8
  const fieldText = ({ node: { label, options, value } }) => {
@@ -357,4 +357,4 @@ const BaseFieldPlugin = fieldSchemaPlugin.extend(({ editor, schema: { properties
357
357
  };
358
358
  });
359
359
  //#endregion
360
- export { BaseFieldPlugin, FIELD_TESTS, fitsField };
360
+ export { BaseFieldPlugin, FIELD_TESTS, fillsField, fitsField };
@@ -1,4 +1,4 @@
1
- import { fieldProblems, fitsField, isFieldCondition, isFieldKind, isFieldOptions, isFieldValue, isFilled, submittedFieldLinks } from "./fieldRules.internal.js";
1
+ import { fieldProblems, fillsField, fitsField, isFieldCondition, isFieldKind, isFieldOptions, isFieldValue, submittedFieldLinks } from "./fieldRules.internal.js";
2
2
  //#region src/features/field/lib/applyFieldValues.ts
3
3
  const isChildren = (template) => Array.isArray(template);
4
4
  const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
@@ -146,7 +146,7 @@ function applyFieldValues(template, submissions, options) {
146
146
  continue;
147
147
  }
148
148
  if (refusedIds.has(fieldId)) continue;
149
- const filled = isFilled(field, held.get(fieldId)?.value);
149
+ const filled = fillsField(field, held.get(fieldId)?.value);
150
150
  if (!verdict.applies && filled) refusals.push({
151
151
  code: "skipped",
152
152
  fieldId,
@@ -80,7 +80,12 @@ const conditionProblem = ({ test, value }, named) => {
80
80
  if (!FIELD_TESTS[named.kind].includes(test)) return "unsupported-test";
81
81
  return (test === "filled" || test === "blank" ? value === void 0 : fitsField(named, value)) ? void 0 : "invalid-value";
82
82
  };
83
- const isFilled = (field, answer) => field.kind === "checkbox" ? answer === true : fitsField(field, answer) && (field.kind !== "text" && field.kind !== "signature" || /\S/.test(String(answer)));
83
+ /**
84
+ * Whether a value is a filled answer for a field: a ticked checkbox, or for
85
+ * any other field a value that fits its kind and, for a text or signature
86
+ * field, holds a character that `\s` does not match.
87
+ */
88
+ const fillsField = (field, value) => field.kind === "checkbox" ? value === true : fitsField(field, value) && (field.kind !== "text" && field.kind !== "signature" || /\S/.test(String(value)));
84
89
  const holds = ({ test, value }, target, answer) => {
85
90
  const before = (a, b) => target.kind === "number" ? Number(a) < Number(b) : String(a) < String(b);
86
91
  switch (test) {
@@ -88,9 +93,9 @@ const holds = ({ test, value }, target, answer) => {
88
93
  case "below":
89
94
  if (answer === void 0) return false;
90
95
  return test === "above" ? before(value, answer) : before(answer, value);
91
- case "blank": return !isFilled(target, answer);
96
+ case "blank": return !fillsField(target, answer);
92
97
  case "equals": return answer === value;
93
- case "filled": return isFilled(target, answer);
98
+ case "filled": return fillsField(target, answer);
94
99
  default: return answer !== value;
95
100
  }
96
101
  };
@@ -201,4 +206,4 @@ const sharedFieldLinks = (editor) => {
201
206
  return linksOf(owner, getSnapshotVersion(owner));
202
207
  };
203
208
  //#endregion
204
- export { FIELD_KINDS, FIELD_TESTS, conditionProblem, fieldLinks, fieldProblems, fitsField, isFieldCondition, isFieldKind, isFieldOptions, isFieldValue, isFilled, sharedFieldLinks, submittedFieldLinks, unfitSettings };
209
+ export { FIELD_KINDS, FIELD_TESTS, conditionProblem, fieldLinks, fieldProblems, fillsField, fitsField, isFieldCondition, isFieldKind, isFieldOptions, isFieldValue, sharedFieldLinks, submittedFieldLinks, unfitSettings };
@@ -1,6 +1,6 @@
1
- import { iu as TxDeclaredMethod, ps as Range } from "../../index-BXjLmx1n-CXk17buG.js";
2
- import "../../htmlTypes-eT2ZGDAj.js";
3
- import { Mo as PluginSelectorMethods, _ as BasePlugin, go as NormalizePluginSelectors } from "../../core-BqR-fEDp.js";
1
+ import { iu as TxDeclaredMethod, ps as Range } from "../../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "../../htmlTypes-aE9Qlenu.js";
3
+ import { Mo as PluginSelectorMethods, _ as BasePlugin, go as NormalizePluginSelectors } from "../../core-Bu--Bog3.js";
4
4
  type FindMatch = Readonly<{
5
5
  id: string;
6
6
  range: Range;
@@ -1,2 +1,2 @@
1
- import { a as FootnoteDefinition, c as FootnotePluginState, i as FootnoteAnchor, l as FootnoteReferenceElement, n as BaseFootnotePlugin, o as FootnoteDefinitionElement, r as CreateFootnoteDefinitionOptions, s as FootnoteElement, t as BaseFootnoteDefinitionPlugin } from "../../index-BsV2McRr.js";
1
+ import { a as FootnoteDefinition, c as FootnotePluginState, i as FootnoteAnchor, l as FootnoteReferenceElement, n as BaseFootnotePlugin, o as FootnoteDefinitionElement, r as CreateFootnoteDefinitionOptions, s as FootnoteElement, t as BaseFootnoteDefinitionPlugin } from "../../index-BXs4598V.js";
2
2
  export { BaseFootnoteDefinitionPlugin, BaseFootnotePlugin, CreateFootnoteDefinitionOptions, FootnoteAnchor, FootnoteDefinition, FootnoteDefinitionElement, FootnoteElement, FootnotePluginState, FootnoteReferenceElement };
@@ -1,2 +1,2 @@
1
- import { a as InkCopyPlace, c as InkMargin, d as InkMarkInput, f as InkRun, g as InkViewState, h as InkTool, i as InkCopy, l as InkMark, m as InkSignPlace, n as InkBlockInput, o as InkDirection, p as InkSample, r as InkBrush, s as InkLine, t as BaseInkPlugin, u as InkMarkBlock } from "../../index-DwWQVwQt.js";
1
+ import { a as InkCopyPlace, c as InkMargin, d as InkMarkInput, f as InkRun, g as InkViewState, h as InkTool, i as InkCopy, l as InkMark, m as InkSignPlace, n as InkBlockInput, o as InkDirection, p as InkSample, r as InkBrush, s as InkLine, t as BaseInkPlugin, u as InkMarkBlock } from "../../index-Be_YFFLS.js";
2
2
  export { BaseInkPlugin, InkBlockInput, InkBrush, InkCopy, InkCopyPlace, InkDirection, InkLine, InkMargin, InkMark, InkMarkBlock, InkMarkInput, InkRun, InkSample, InkSignPlace, InkTool, InkViewState };
@@ -1,2 +1,2 @@
1
- import { a as ColumnGroupElement, i as ColumnElement, n as BaseColumnItemPlugin, o as SetColumnsOptions, r as ColumnDefinition, s as ToggleColumnGroupOptions, t as BaseColumnGroupPlugin } from "../../index-d7io3MzC.js";
1
+ import { a as ColumnGroupElement, i as ColumnElement, n as BaseColumnItemPlugin, o as SetColumnsOptions, r as ColumnDefinition, s as ToggleColumnGroupOptions, t as BaseColumnGroupPlugin } from "../../index-DqpzKYwP.js";
2
2
  export { BaseColumnGroupPlugin, BaseColumnItemPlugin, ColumnDefinition, ColumnElement, ColumnGroupElement, SetColumnsOptions, ToggleColumnGroupOptions };
@@ -1,6 +1,6 @@
1
- import { Ci as Element, iu as TxDeclaredMethod } from "../../index-BXjLmx1n-CXk17buG.js";
2
- import "../../htmlTypes-eT2ZGDAj.js";
3
- import { _ as BasePlugin, u as Editor } from "../../core-BqR-fEDp.js";
1
+ import { Ci as Element, iu as TxDeclaredMethod } from "../../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "../../htmlTypes-aE9Qlenu.js";
3
+ import { _ as BasePlugin, u as Editor } from "../../core-Bu--Bog3.js";
4
4
  type LintFinding = Readonly<{
5
5
  id: string;
6
6
  ruleId: string;
@@ -1,2 +1,2 @@
1
- import { A as MediaUrlProperties, C as FileElement, D as MediaInsertInput, E as ImageInsertInput, F as defineMediaPlugin, I as mediaElementProperties, M as ResizableElement, N as VideoElement, O as MediaPluginState, P as VideoPluginState, S as BaseVideoPlugin, T as FilePluginState, _ as AlignedMediaInsertInput, a as MediaEmbedRules, b as BaseAudioPlugin, c as VIDEO_PROVIDERS, d as parseTwitterUrl, f as parseVideoUrl, g as ImagePluginState, h as ImageElement, i as MediaEmbedPluginState, j as ProviderMediaInsertInput, k as MediaUrlKind, l as parseIframeUrl, m as ImageDefinition, n as MediaEmbedDefinition, o as EmbedUrlData, p as BaseImagePlugin, r as MediaEmbedElement, s as EmbedUrlParser, t as BaseMediaEmbedPlugin, u as parseMediaUrl, v as AudioElement, w as FileInsertInput, x as BaseFilePlugin, y as AudioPluginState } from "../../index-B33E1CRJ.js";
1
+ import { A as MediaUrlProperties, C as FileElement, D as MediaInsertInput, E as ImageInsertInput, F as defineMediaPlugin, I as mediaElementProperties, M as ResizableElement, N as VideoElement, O as MediaPluginState, P as VideoPluginState, S as BaseVideoPlugin, T as FilePluginState, _ as AlignedMediaInsertInput, a as MediaEmbedRules, b as BaseAudioPlugin, c as VIDEO_PROVIDERS, d as parseTwitterUrl, f as parseVideoUrl, g as ImagePluginState, h as ImageElement, i as MediaEmbedPluginState, j as ProviderMediaInsertInput, k as MediaUrlKind, l as parseIframeUrl, m as ImageDefinition, n as MediaEmbedDefinition, o as EmbedUrlData, p as BaseImagePlugin, r as MediaEmbedElement, s as EmbedUrlParser, t as BaseMediaEmbedPlugin, u as parseMediaUrl, v as AudioElement, w as FileInsertInput, x as BaseFilePlugin, y as AudioPluginState } from "../../index-CGUt4h_4.js";
2
2
  export { AlignedMediaInsertInput, AudioElement, AudioPluginState, BaseAudioPlugin, BaseFilePlugin, BaseImagePlugin, BaseMediaEmbedPlugin, BaseVideoPlugin, EmbedUrlData, EmbedUrlParser, FileElement, FileInsertInput, FilePluginState, ImageDefinition, ImageElement, ImageInsertInput, ImagePluginState, MediaEmbedDefinition, MediaEmbedElement, MediaEmbedPluginState, MediaEmbedRules, MediaInsertInput, MediaPluginState, MediaUrlKind, MediaUrlProperties, ProviderMediaInsertInput, ResizableElement, VIDEO_PROVIDERS, VideoElement, VideoPluginState, defineMediaPlugin, mediaElementProperties, parseIframeUrl, parseMediaUrl, parseTwitterUrl, parseVideoUrl };
@@ -199,7 +199,7 @@ const readExactProviderLink = (text) => {
199
199
  } : void 0;
200
200
  }
201
201
  const [first, second] = path;
202
- if (host === "vimeo.com" && path.length === 1 && NUMERIC_ID.test(first) || host === "player.vimeo.com" && path.length === 2 && first === "video" && NUMERIC_ID.test(second)) {
202
+ if (!url.searchParams.has("h") && (host === "vimeo.com" && path.length === 1 && NUMERIC_ID.test(first) || host === "player.vimeo.com" && path.length === 2 && first === "video" && NUMERIC_ID.test(second))) {
203
203
  const id = host === "vimeo.com" ? first : second;
204
204
  return {
205
205
  id,
@@ -1,8 +1,8 @@
1
- import { fs as PropertyValueOptions, iu as TxDeclaredMethod, ji as ElementOf, ss as PropertyStringDescriptor } from "../../index-BXjLmx1n-CXk17buG.js";
2
- import "../../htmlTypes-eT2ZGDAj.js";
3
- import { _ as BasePlugin, _t as NodeInsertOptions, qa as DefinitionOf } from "../../core-BqR-fEDp.js";
4
- import { n as ComboboxState, t as ComboboxEditor } from "../../combobox-Dr0OYZIE.js";
5
- import "../../index-BTx5oK7k.js";
1
+ import { fs as PropertyValueOptions, iu as TxDeclaredMethod, ji as ElementOf, ss as PropertyStringDescriptor } from "../../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "../../htmlTypes-aE9Qlenu.js";
3
+ import { _ as BasePlugin, _t as NodeInsertOptions, qa as DefinitionOf } from "../../core-Bu--Bog3.js";
4
+ import { n as ComboboxState, t as ComboboxEditor } from "../../combobox-BhhymlUs.js";
5
+ import "../../index-C9WSACSv.js";
6
6
  declare const isNonBlankRef: (value: unknown) => value is string;
7
7
  type TMentionItemBase<TRef = string> = {
8
8
  label: string;
@@ -1,4 +1,4 @@
1
- import { t as BaseSuggestionPlugin } from "../../BaseSuggestionPlugin-_7Ka6nY3.js";
1
+ import { t as BaseSuggestionPlugin } from "../../BaseSuggestionPlugin-CpVkv7k2.js";
2
2
  /** How many palette slots the copied suggestion kit paints. */
3
3
  declare const SUGGESTION_COLOR_COUNT = 7;
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { A as TableSelectionBounds, C as TableResize, D as TableResolvedCellBorders, E as TableResolvedCellBorder, O as TableRowHeightOptions, S as TableNodeTarget, T as TableResizeTarget, _ as TableCellInfo, a as TableDefinition, b as TableColumnWidthOptions, c as TableRowElement, d as TableAxisInsertOptions, f as TableBorderState, g as TableCellBorders, h as TableCellBorder, i as TableCellElement, j as TableTargetOptions, k as TableSelection, m as TableBorderTarget, n as BaseTablePlugin, o as TableElement, p as TableBorderStates, r as BaseTableRowPlugin, s as TablePluginState, t as BaseTableCellPlugin, u as BorderDirection, v as TableCellTarget, w as TableResizeOptions, x as TableCreateOptions, y as TableColumnResize } from "../../index-JWgwL5l3.js";
1
+ import { A as TableSelectionBounds, C as TableResize, D as TableResolvedCellBorders, E as TableResolvedCellBorder, O as TableRowHeightOptions, S as TableNodeTarget, T as TableResizeTarget, _ as TableCellInfo, a as TableDefinition, b as TableColumnWidthOptions, c as TableRowElement, d as TableAxisInsertOptions, f as TableBorderState, g as TableCellBorders, h as TableCellBorder, i as TableCellElement, j as TableTargetOptions, k as TableSelection, m as TableBorderTarget, n as BaseTablePlugin, o as TableElement, p as TableBorderStates, r as BaseTableRowPlugin, s as TablePluginState, t as BaseTableCellPlugin, u as BorderDirection, v as TableCellTarget, w as TableResizeOptions, x as TableCreateOptions, y as TableColumnResize } from "../../index-dpi2ErEe.js";
2
2
  export { BaseTableCellPlugin, BaseTablePlugin, BaseTableRowPlugin, BorderDirection, TableAxisInsertOptions, TableBorderState, TableBorderStates, TableBorderTarget, TableCellBorder, TableCellBorders, TableCellElement, TableCellInfo, TableCellTarget, TableColumnResize, TableColumnWidthOptions, TableCreateOptions, TableDefinition, TableElement, TableNodeTarget, TablePluginState, TableResize, TableResizeOptions, TableResizeTarget, TableResolvedCellBorder, TableResolvedCellBorders, TableRowElement, TableRowHeightOptions, TableSelection, TableSelectionBounds, TableTargetOptions };
@@ -1,2 +1,2 @@
1
- import { i as readTocHeadings, n as Heading, r as TocDefinition, t as BaseTocPlugin } from "../../index-BXwU9QH6.js";
1
+ import { i as readTocHeadings, n as Heading, r as TocDefinition, t as BaseTocPlugin } from "../../index-BYAqyTSY.js";
2
2
  export { BaseTocPlugin, Heading, TocDefinition, readTocHeadings };
@@ -1,2 +1,2 @@
1
- import { _ as UploadTask, a as UploadAdmissionError, c as UploadElement, d as UploadKind, f as UploadPluginState, g as UploadSubmitOptions, h as UploadRules, i as UploadAdmission, l as UploadFailure, m as UploadRule, n as UPLOAD_FILE_TYPES, o as UploadAdmitOptions, p as UploadRefusal, r as UPLOAD_KINDS, s as UploadClient, t as BaseUploadPlugin, u as UploadFileType, v as UploadTaskState } from "../../index-BkwR-5hH.js";
1
+ import { _ as UploadTask, a as UploadAdmissionError, c as UploadElement, d as UploadKind, f as UploadPluginState, g as UploadSubmitOptions, h as UploadRules, i as UploadAdmission, l as UploadFailure, m as UploadRule, n as UPLOAD_FILE_TYPES, o as UploadAdmitOptions, p as UploadRefusal, r as UPLOAD_KINDS, s as UploadClient, t as BaseUploadPlugin, u as UploadFileType, v as UploadTaskState } from "../../index-BT1-fX5o.js";
2
2
  export { BaseUploadPlugin, UPLOAD_FILE_TYPES, UPLOAD_KINDS, UploadAdmission, UploadAdmissionError, UploadAdmitOptions, UploadClient, UploadElement, UploadFailure, UploadFileType, UploadKind, UploadPluginState, UploadRefusal, UploadRule, UploadRules, UploadSubmitOptions, UploadTask, UploadTaskState };
@@ -1,3 +1,3 @@
1
- import { D as CarriedRun } from "../index-BXjLmx1n-CXk17buG.js";
2
- import { a as HistoryJSON, c as HistoryPluginTypeProvider, d as HistoryTxApi, f as history, i as HistoryControlTx, l as HistoryPluginTypes, n as History, o as HistoryOptions, r as HistoryBatchJSON, s as HistoryPlugin, t as Batch, u as HistoryStateApi } from "../index-DNQXzU-X.js";
1
+ import { D as CarriedRun } from "../index-QuqD4Dyj-DlOIX0sH.js";
2
+ import { a as HistoryJSON, c as HistoryPluginTypeProvider, d as HistoryTxApi, f as history, i as HistoryControlTx, l as HistoryPluginTypes, n as History, o as HistoryOptions, r as HistoryBatchJSON, s as HistoryPlugin, t as Batch, u as HistoryStateApi } from "../index-CTwrWir_.js";
3
3
  export { Batch, type CarriedRun, History, HistoryBatchJSON, HistoryControlTx, HistoryJSON, HistoryOptions, HistoryPlugin, HistoryPluginTypeProvider, HistoryPluginTypes, HistoryStateApi, HistoryTxApi, history };
@@ -1,4 +1,4 @@
1
- import { a as HtmlEditorSerializeOptions, c as HtmlParseLimits, d as HtmlSerializeResult, f as HtmlSliceParseResult, i as HtmlEditorParseOptions, l as HtmlParseOptions, m as HtmlWarningDiagnostic, n as HtmlDiagnostic, o as HtmlErrorDiagnostic, p as HtmlSourceLocation, r as HtmlDocumentParseResult, s as HtmlModelLocation, t as HtmlApi, u as HtmlSerializeOptions } from "../htmlTypes-eT2ZGDAj.js";
2
- import { Br as HtmlPlugin, F as HtmlMatchValue, I as HtmlMatcher, L as HtmlNodeSpec, M as HtmlAttributes, N as HtmlContentToken, P as HtmlElementPatch, Vr as decodeHtmlDataTransfer, z as HtmlWrapperSpec } from "../core-BqR-fEDp.js";
3
- import { n as serializeHtml, t as parseHtml } from "../index-DYdObeFQ.js";
1
+ import { a as HtmlEditorSerializeOptions, c as HtmlParseLimits, d as HtmlSerializeResult, f as HtmlSliceParseResult, i as HtmlEditorParseOptions, l as HtmlParseOptions, m as HtmlWarningDiagnostic, n as HtmlDiagnostic, o as HtmlErrorDiagnostic, p as HtmlSourceLocation, r as HtmlDocumentParseResult, s as HtmlModelLocation, t as HtmlApi, u as HtmlSerializeOptions } from "../htmlTypes-aE9Qlenu.js";
2
+ import { Br as HtmlPlugin, F as HtmlMatchValue, I as HtmlMatcher, L as HtmlNodeSpec, M as HtmlAttributes, N as HtmlContentToken, P as HtmlElementPatch, Vr as decodeHtmlDataTransfer, z as HtmlWrapperSpec } from "../core-Bu--Bog3.js";
3
+ import { n as serializeHtml, t as parseHtml } from "../index-BR2S-6Js.js";
4
4
  export { type HtmlApi, type HtmlAttributes, type HtmlContentToken, type HtmlDiagnostic, type HtmlDocumentParseResult, type HtmlEditorParseOptions, type HtmlEditorSerializeOptions, type HtmlElementPatch, type HtmlErrorDiagnostic, type HtmlMatchValue, type HtmlMatcher, type HtmlModelLocation, type HtmlNodeSpec, type HtmlParseLimits, type HtmlParseOptions, HtmlPlugin, type HtmlSerializeOptions, type HtmlSerializeResult, type HtmlSliceParseResult, type HtmlSourceLocation, type HtmlWarningDiagnostic, type HtmlWrapperSpec, decodeHtmlDataTransfer, parseHtml, serializeHtml };
@@ -1,3 +1,3 @@
1
- import { c as HtmlParseLimits, l as HtmlParseOptions, m as HtmlWarningDiagnostic, n as HtmlDiagnostic, o as HtmlErrorDiagnostic, p as HtmlSourceLocation, r as HtmlDocumentParseResult, s as HtmlModelLocation } from "../../htmlTypes-eT2ZGDAj.js";
1
+ import { c as HtmlParseLimits, l as HtmlParseOptions, m as HtmlWarningDiagnostic, n as HtmlDiagnostic, o as HtmlErrorDiagnostic, p as HtmlSourceLocation, r as HtmlDocumentParseResult, s as HtmlModelLocation } from "../../htmlTypes-aE9Qlenu.js";
2
2
  declare const parseHtml: (source: string, options: HtmlParseOptions) => HtmlDocumentParseResult;
3
3
  export { type HtmlDiagnostic, type HtmlDocumentParseResult, type HtmlErrorDiagnostic, type HtmlModelLocation, type HtmlParseLimits, type HtmlParseOptions, type HtmlSourceLocation, type HtmlWarningDiagnostic, parseHtml };
@@ -1,4 +1,4 @@
1
- import { As as SchemaContentPrefixSlot, Es as SchemaContent, Fo as PluginReference, Hn as EditorSchemaOverrideInput, Tt as EditorDocumentValue, Ui as InternalEditorSchemaApi, cc as SchemaProperty, j as ContentSlice, m as AuthoredProjectionDiagnostic, rr as EditorSchemaValidationDiagnostic, su as Value, uc as SchemaPropertyDefinition, ws as RootKey } from "./index-BXjLmx1n-CXk17buG.js";
1
+ import { As as SchemaContentPrefixSlot, Es as SchemaContent, Fo as PluginReference, Hn as EditorSchemaOverrideInput, Tt as EditorDocumentValue, Ui as InternalEditorSchemaApi, cc as SchemaProperty, j as ContentSlice, m as AuthoredProjectionDiagnostic, rr as EditorSchemaValidationDiagnostic, su as Value, uc as SchemaPropertyDefinition, ws as RootKey } from "./index-QuqD4Dyj-DlOIX0sH.js";
2
2
  type EditorSchemaIdentity = Readonly<{
3
3
  id: string;
4
4
  version: number;
@@ -1,2 +1,2 @@
1
- import { a as createEditorFixture, c as jsx, i as createEditor, n as HyperscriptEditorFixture, o as createHyperscript, r as HyperscriptShorthands, s as createText, t as HyperscriptCreators } from "../index-Dq3Jlj8O-BJ6NxZm0.js";
1
+ import { a as createEditorFixture, c as jsx, i as createEditor, n as HyperscriptEditorFixture, o as createHyperscript, r as HyperscriptShorthands, s as createText, t as HyperscriptCreators } from "../index-BwmXxqbi-COlJb0HZ.js";
2
2
  export { type HyperscriptCreators, type HyperscriptEditorFixture, type HyperscriptShorthands, createEditor, createEditorFixture, createHyperscript, createText, jsx };
@@ -1,6 +1,6 @@
1
- import { Tt as EditorDocumentValue } from "./index-BXjLmx1n-CXk17buG.js";
2
- import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-eT2ZGDAj.js";
3
- import "./core-BqR-fEDp.js";
1
+ import { Tt as EditorDocumentValue } from "./index-QuqD4Dyj-DlOIX0sH.js";
2
+ import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-aE9Qlenu.js";
3
+ import "./core-Bu--Bog3.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,6 +1,6 @@
1
- import { Ca as NodeKey, Ci as Element, es as PropertyEnumDescriptor, iu as TxDeclaredMethod, ji as ElementOf } from "./index-BXjLmx1n-CXk17buG.js";
2
- import "./htmlTypes-eT2ZGDAj.js";
3
- import { Mo as PluginSelectorMethods, _ as BasePlugin, ct as BlockInsertOptions, go as NormalizePluginSelectors } from "./core-BqR-fEDp.js";
1
+ import { Ca as NodeKey, Ci as Element, es as PropertyEnumDescriptor, iu as TxDeclaredMethod, ji as ElementOf } from "./index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "./htmlTypes-aE9Qlenu.js";
3
+ import { Mo as PluginSelectorMethods, _ as BasePlugin, ct as BlockInsertOptions, go as NormalizePluginSelectors } from "./core-Bu--Bog3.js";
4
4
  import { AggregateProgress, UploadCallOptions, UploadOutcome } from "files-sdk/client";
5
5
  declare const UPLOAD_FILE_TYPES: readonly ['image', 'video', 'audio', 'pdf', 'text', 'blob'];
6
6
  declare const UPLOAD_KINDS: readonly ['audio', 'file', 'image', 'video'];
@@ -1,8 +1,8 @@
1
- import { $a as Path, Ci as Element, Ds as SchemaContentDefault, H as Descendant, Ht as EditorJsonValue, Ls as SchemaContentRule, iu as TxDeclaredMethod, ji as ElementOf, pa as NodeEntry, qo as Point, ss as PropertyStringDescriptor } from "./index-BXjLmx1n-CXk17buG.js";
2
- import "./htmlTypes-eT2ZGDAj.js";
3
- import { _ as BasePlugin, _t as NodeInsertOptions, qa as DefinitionOf } from "./core-BqR-fEDp.js";
4
- import { n as ComboboxState, t as ComboboxEditor } from "./combobox-Dr0OYZIE.js";
5
- import "./index-BTx5oK7k.js";
1
+ import { $a as Path, Ci as Element, Ds as SchemaContentDefault, H as Descendant, Ht as EditorJsonValue, Ls as SchemaContentRule, iu as TxDeclaredMethod, ji as ElementOf, pa as NodeEntry, qo as Point, ss as PropertyStringDescriptor } from "./index-QuqD4Dyj-DlOIX0sH.js";
2
+ import "./htmlTypes-aE9Qlenu.js";
3
+ import { _ as BasePlugin, _t as NodeInsertOptions, qa as DefinitionOf } from "./core-Bu--Bog3.js";
4
+ import { n as ComboboxState, t as ComboboxEditor } from "./combobox-BhhymlUs.js";
5
+ import "./index-C9WSACSv.js";
6
6
  declare const isNonBlankRef: (value: unknown) => value is string;
7
7
  /** The fragment id of a footnote and, when present, its linked fragment id. */
8
8
  type FootnoteAnchor = {