platejs 54.0.0-beta.2 → 54.0.0-beta.4
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.
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +56 -0
- package/dist/{AIChatRequestContext-BMVWhfPV.d.ts → AIChatRequestContext-DrUahdTc.d.ts} +2 -2
- package/dist/{BaseSuggestionPlugin-DBl3fqnm.d.ts → BaseSuggestionPlugin-_7Ka6nY3.d.ts} +7 -3
- package/dist/{PlateStatic-DhNv2ejp.d.ts → PlateStatic-D3Cb-QwH.d.ts} +7 -7
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/react/AIChatPlugin.js +113 -78
- package/dist/ai/react/CopilotPlugin.js +1 -1
- package/dist/ai/react/index.d.ts +23 -16
- package/dist/authored/index.d.ts +4 -4
- package/dist/code-block/codemirror/createCodeMirrorAdapter.js +12 -9
- package/dist/code-block/codemirror/index.d.ts +1 -1
- package/dist/{combobox-DkBGgyd3.d.ts → combobox-Dr0OYZIE.d.ts} +2 -2
- package/dist/{comparison-types-CYnJ35qU.d.ts → comparison-types-DdwE6mYq-BogsHoUO.d.ts} +10 -2
- package/dist/compiler/index.d.ts +2 -2
- package/dist/{core-BJG8l_mk.d.ts → core-BqR-fEDp.d.ts} +493 -116
- package/dist/diff/index.d.ts +2 -2
- package/dist/docs/ai.md +4 -3
- package/dist/docs/api/core/plate-components.md +0 -19
- package/dist/docs/api/core/plate-controller.md +5 -3
- package/dist/docs/api/core/plate-plugin.md +3 -0
- package/dist/docs/api/core/plate-store.md +3 -3
- package/dist/docs/api/core.md +45 -5
- package/dist/docs/api/dom.md +11 -4
- package/dist/docs/api/editor-transforms.md +2 -1
- package/dist/docs/api/react-hooks.md +45 -13
- package/dist/docs/authored-changes.md +9 -4
- package/dist/docs/basic-blocks.md +42 -29
- package/dist/docs/block-placeholder.md +4 -2
- package/dist/docs/blockquote.md +5 -3
- package/dist/docs/board.md +118 -10
- package/dist/docs/code-block.md +47 -0
- package/dist/docs/comment.md +2 -2
- package/dist/docs/discussion.md +1 -1
- package/dist/docs/document-model.md +15 -3
- package/dist/docs/docx.md +1 -1
- package/dist/docs/dom-coverage.md +5 -0
- package/dist/docs/editor.md +50 -4
- package/dist/docs/examples/editable-voids.md +2 -3
- package/dist/docs/external-text.md +2 -0
- package/dist/docs/field.md +370 -0
- package/dist/docs/find.md +9 -6
- package/dist/docs/form.md +2 -0
- package/dist/docs/heading.md +6 -0
- package/dist/docs/installation/manual.md +0 -4
- package/dist/docs/link.md +3 -3
- package/dist/docs/llms.txt +4 -2
- package/dist/docs/markdown.md +270 -14
- package/dist/docs/plugin-components.md +13 -10
- package/dist/docs/plugin-input-rules.md +66 -15
- package/dist/docs/prompt-editor.md +205 -0
- package/dist/docs/roots.md +8 -6
- package/dist/docs/rtl.md +6 -4
- package/dist/docs/selection.md +7 -4
- package/dist/docs/suggestion.md +1 -1
- package/dist/docs/toolbar.md +26 -30
- package/dist/docs/upload.md +106 -17
- package/dist/docx/export/index.d.ts +3 -3
- package/dist/docx/export/lib/docxStaticComponents.js +12 -2
- package/dist/docx/export/lib/exportDocx.js +46 -17
- package/dist/docx/export/lib/internal/xml-builder.js +11 -16
- package/dist/docx/export/lib/reviewPart.js +1 -1
- package/dist/docx/export/lib/reviewProjection.js +52 -10
- package/dist/docx/import/index.d.ts +4 -4
- package/dist/docx/paste/index.d.ts +4 -4
- package/dist/dom/index.d.ts +1 -6
- package/dist/dom/plite-dom.internal.js +2 -2
- package/dist/excalidraw/index.d.ts +3 -2
- package/dist/excalidraw/react/index.d.ts +3 -2
- package/dist/facade.js +2 -2
- package/dist/features/basic-nodes/lib/BaseBlockPlugins.js +13 -5
- package/dist/features/basic-nodes/lib/BaseHeadingPlugins.js +32 -10
- package/dist/features/board/index.d.ts +2 -2
- package/dist/features/board/lib/BaseBoardPlugin.js +14 -1
- package/dist/features/board/lib/boardStroke.internal.js +13 -1
- package/dist/features/board/lib/boardTypes.internal.js +16 -0
- package/dist/features/callout/index.d.ts +3 -2
- package/dist/features/code-block/lib/BaseCodeBlockPlugin.js +14 -5
- package/dist/features/combobox/index.d.ts +2 -2
- package/dist/features/comments/BaseCommentsPlugin.js +33 -17
- package/dist/features/comments/index.d.ts +1 -1
- package/dist/features/date/index.d.ts +3 -2
- package/dist/features/details/index.d.ts +3 -2
- package/dist/features/details/lib/BaseDetailsPlugin.js +25 -12
- package/dist/features/field/index.d.ts +2 -0
- package/dist/features/field/index.js +4 -0
- package/dist/features/field/lib/BaseFieldPlugin.js +360 -0
- package/dist/features/field/lib/applyFieldValues.js +188 -0
- package/dist/features/field/lib/fieldRules.internal.js +204 -0
- package/dist/features/find/index.d.ts +3 -2
- package/dist/features/footnote/index.d.ts +1 -1
- package/dist/features/ink/index.d.ts +1 -1
- package/dist/features/ink/lib/BaseInkPlugin.js +126 -103
- package/dist/features/ink/lib/inkCodec.internal.js +130 -0
- package/dist/features/ink/lib/inkGone.internal.js +229 -48
- package/dist/features/ink/lib/inkPlaces.internal.js +534 -64
- package/dist/features/layout/index.d.ts +1 -1
- package/dist/features/link/lib/BaseLinkPlugin.js +6 -4
- package/dist/features/lint/index.d.ts +3 -2
- package/dist/features/media/index.d.ts +2 -2
- package/dist/features/media/index.js +2 -2
- package/dist/features/media/lib/media/parseMediaUrl.js +11 -1
- package/dist/features/media/lib/media-embed/BaseMediaEmbedPlugin.js +206 -4
- package/dist/features/mention/index.d.ts +5 -4
- package/dist/features/suggestion/index.d.ts +1 -1
- package/dist/features/table/index.d.ts +1 -1
- package/dist/features/table/lib/BaseTablePlugin.js +64 -15
- package/dist/features/table/lib/internal/selection.js +4 -2
- package/dist/features/toc/index.d.ts +1 -1
- package/dist/features/upload/index.d.ts +2 -2
- package/dist/features/upload/lib/BaseUploadPlugin.js +464 -250
- package/dist/history/index.d.ts +2 -2
- package/dist/html/index.d.ts +3 -3
- package/dist/html/server/index.d.ts +1 -1
- package/dist/{htmlTypes-DjeFG3P8.d.ts → htmlTypes-eT2ZGDAj.d.ts} +2 -31
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/{index-DzD6BIFJ.d.ts → index-B33E1CRJ.d.ts} +295 -6
- package/dist/{index-Cl77E9yr.d.ts → index-B7moSod7.d.ts} +2 -2
- package/dist/{index-hsC_sOn2.d.ts → index-B8-5Sr7I.d.ts} +35 -5
- package/dist/{index-BiQerPJS.d.ts → index-B8QJDAmG.d.ts} +2 -2
- package/dist/{index-BBKGrsG3.d.ts → index-BTx5oK7k.d.ts} +1 -1
- package/dist/{index-iaZOhA76.d.ts → index-BWPcE4ac-Cto_IsNs.d.ts} +7 -1
- package/dist/{index-BU6k1Aev.d.ts → index-BXjLmx1n-CXk17buG.d.ts} +4781 -4584
- package/dist/{index-kLKMc-pI.d.ts → index-BXwU9QH6.d.ts} +2 -2
- package/dist/{index-DTgaSxKr.d.ts → index-BkwR-5hH.d.ts} +40 -4
- package/dist/{index-Bq3sdm3S.d.ts → index-BsV2McRr.d.ts} +5 -4
- package/dist/index-C9Fu-P4E.d.ts +773 -0
- package/dist/{index-D5W-p9bS.d.ts → index-Ca48r1ng.d.ts} +49 -4
- package/dist/{index-CcZbqPqk.d.ts → index-Cob_iBdu.d.ts} +116 -41
- package/dist/{index-Bxfvicyy.d.ts → index-CpY7Xnxw.d.ts} +4 -3
- package/dist/{index-BkR7-GLI.d.ts → index-DNQXzU-X.d.ts} +2 -2
- package/dist/{index-D1CFXA-i.d.ts → index-DPowErHa.d.ts} +471 -141
- package/dist/{index-DaM37gF6.d.ts → index-DShbzec2.d.ts} +38 -23
- package/dist/{index-DC_MNGyu.d.ts → index-DYdObeFQ.d.ts} +3 -3
- package/dist/{index-Bc2Yg_2j.d.ts → index-Dq3Jlj8O-BJ6NxZm0.d.ts} +2 -2
- package/dist/{index-CT7miqQN.d.ts → index-DwWQVwQt.d.ts} +29 -11
- package/dist/{index-xdmCBvlT.d.ts → index-JWgwL5l3.d.ts} +5 -2
- package/dist/{index-DLA2DUR2.d.ts → index-M781pyx9.d.ts} +4 -3
- package/dist/{index-DdIRduDG.d.ts → index-d7io3MzC.d.ts} +3 -2
- package/dist/index.d.ts +4 -4
- package/dist/{react/internal → internal}/penStroke.internal.js +1 -1
- package/dist/internal/plugin/OverridePlugin.js +101 -119
- package/dist/internal/plugin/collectPlateNodeMappings.js +5 -1
- package/dist/internal/plugin/pastedUploadFiles.js +4 -0
- package/dist/internal/plugin/resolvePlugin.js +1 -1
- package/dist/internal/plugin/resolvePlugins.js +3 -0
- package/dist/internal/plugin/uploadDrafts.js +6 -0
- package/dist/internal/utils/mergePlugins.js +1 -0
- package/dist/lib/plugins/element-id/ElementIdPlugin.js +14 -18
- package/dist/lib/plugins/html/HtmlPlugin.js +9 -0
- package/dist/lib/plugins/html/htmlSafety.js +1 -1
- package/dist/lib/plugins/input-rules/InputRulesPlugin.js +77 -28
- package/dist/lib/plugins/input-rules/inputRuleVeto.internal.js +16 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +3 -1
- package/dist/markdown/lib/MarkdownPlugin.js +14 -11
- package/dist/markdown/lib/RawHtmlPlugin.js +26 -0
- package/dist/markdown/lib/deserializer/mdastToSlate.js +12 -2
- package/dist/markdown/lib/internal/markdownConversion.js +776 -74
- package/dist/markdown/lib/internal/markdownDiagnostics.js +18 -7
- package/dist/markdown/lib/internal/markdownFootnoteWriter.js +35 -0
- package/dist/markdown/lib/internal/markdownFrontmatter.js +102 -0
- package/dist/markdown/lib/internal/markdownIntrinsics.js +125 -43
- package/dist/markdown/lib/internal/markdownLine.js +5 -3
- package/dist/markdown/lib/internal/markdownMappings.js +19 -7
- package/dist/markdown/lib/internal/markdownOpenTail.js +381 -0
- package/dist/markdown/lib/internal/markdownRawHtml.js +353 -0
- package/dist/markdown/lib/internal/markdownSegments.js +57 -48
- package/dist/markdown/lib/internal/markdownTags.js +29 -9
- package/dist/markdown/lib/serializer/convertNodesSerialize.js +10 -8
- package/dist/markdown/lib/serializer/convertPhrasingSerialize.js +226 -0
- package/dist/markdown/lib/serializer/listToMdastTree.js +2 -0
- package/dist/math/index.d.ts +3 -2
- package/dist/math/react/index.d.ts +4 -3
- package/dist/migrations/index.d.ts +3 -3
- package/dist/migrations/migratePlateV54.js +4 -6
- package/dist/migrations/migratePlateV54RetiredMarks.internal.js +23 -8
- package/dist/migrations/migratePlateV54Suggestions.internal.js +2 -2
- package/dist/migrations/v53-manifest.internal.js +4 -0
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/react/index.d.ts +4 -4
- package/dist/react/components/EditorContentView.internal.js +42 -23
- package/dist/react/components/EditorProvider.js +5 -5
- package/dist/react/components/Plate.js +102 -128
- package/dist/react/components/PlateContainer.js +40 -32
- package/dist/react/components/PlateController.js +28 -16
- package/dist/react/components/PlateRoot.internal.js +3 -2
- package/dist/react/core.js +4 -4
- package/dist/react/features/board/BoardSurface.js +116 -87
- package/dist/react/features/board/boardClipboard.internal.js +15 -5
- package/dist/react/features/board/boardExport.internal.js +470 -0
- package/dist/react/features/board/boardGesture.internal.js +6 -3
- package/dist/react/features/board/boardIndex.internal.js +7 -18
- package/dist/react/features/board/boardPictureStyles.internal.js +415 -0
- package/dist/react/features/board/boardPictures.internal.js +19 -13
- package/dist/react/features/board/boardView.internal.js +190 -50
- package/dist/react/features/board/boardVoice.internal.js +10 -11
- package/dist/react/features/board/index.d.ts +108 -18
- package/dist/react/features/callout/index.d.ts +3 -2
- package/dist/react/features/combobox/index.d.ts +8 -8
- package/dist/react/features/comments/index.d.ts +6 -5
- package/dist/react/features/date/index.d.ts +4 -3
- package/dist/react/features/details/index.d.ts +4 -3
- package/dist/react/features/field/FieldPlugin.js +35 -0
- package/dist/react/features/field/index.d.ts +315 -0
- package/dist/react/features/field/index.js +2 -0
- package/dist/react/features/footnote/index.d.ts +7 -6
- package/dist/react/features/format-painter/index.d.ts +4 -3
- package/dist/react/features/ink/InkContent.js +313 -0
- package/dist/react/features/ink/index.d.ts +57 -33
- package/dist/react/features/ink/index.js +2 -2
- package/dist/react/features/ink/inkCapture.internal.js +39 -17
- package/dist/react/features/ink/inkInput.internal.js +1 -1
- package/dist/react/features/ink/inkLayout.internal.js +6 -3
- package/dist/react/features/ink/inkPaint.internal.js +78 -2
- package/dist/react/features/ink/inkPlacement.internal.js +332 -104
- package/dist/react/features/ink/inkWatch.internal.js +7 -5
- package/dist/react/features/layout/index.d.ts +5 -4
- package/dist/react/features/media/index.d.ts +5 -4
- package/dist/react/features/mention/index.d.ts +6 -5
- package/dist/react/features/resizable/Resizable.js +4 -6
- package/dist/react/features/resizable/index.d.ts +5 -5
- package/dist/react/features/suggestion/index.d.ts +6 -5
- package/dist/react/features/table/TablePlugin.js +4 -11
- package/dist/react/features/table/index.d.ts +10 -8
- package/dist/react/features/table/useTableResize.js +10 -1
- package/dist/react/features/toc/index.d.ts +2 -2
- package/dist/react/features/upload/index.d.ts +11 -6
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +4 -4
- package/dist/react/internal/plate-context.js +434 -188
- package/dist/react/plite-react.js +2 -2
- package/dist/react/plugins/navigation-feedback/NavigationFeedbackPlugin.js +12 -10
- package/dist/react/stores/plate/useEditor.js +32 -14
- package/dist/react/stores/plate/useEditorHistory.js +55 -0
- package/dist/react/stores/plate/useEditorSelector.js +79 -21
- package/dist/react/utils/BlockPlaceholderPlugin.js +5 -2
- package/dist/react/utils/pipeRenderElement.internal.js +1 -1
- package/dist/react/utils/pluginRenderElement.internal.js +1 -1
- package/dist/react/virtualized.d.ts +4 -4
- package/dist/{source-CNKy99Th.d.ts → source-BGohy8vH.d.ts} +4 -4
- package/dist/static/index.d.ts +18 -18
- package/dist/static/internal/renderStaticHtmlWithOverrides.js +2 -2
- package/dist/static/internal/staticPresentation.js +4 -4
- package/dist/static/internal/writeStaticSelectionClipboardData.js +7 -2
- package/dist/tabbable/index.d.ts +1 -1
- package/dist/tabbable/react/index.d.ts +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/react/index.d.ts +6 -6
- package/package.json +20 -2
- package/dist/markdown/lib/serializer/convertTextsSerialize.js +0 -163
- package/dist/react/components/EditorSelectionView.js +0 -40
- package/dist/react/features/ink/InkLayer.js +0 -218
- package/dist/react/internal/createPlateTargetScope.js +0 -62
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $a as Path, Ca as NodeKey, Ci as Element$1, H as Descendant, Lc as SelectionAssociation, Y as Editor, aa as Node$1, cc as SchemaProperty, f as AnyEditor, j as ContentSlice, oo as Plugin, ps as Range$1, qo as Point, su as Value, tt as EditorCommand, vt as EditorCoreStateView, ws as RootKey } from "./index-BXjLmx1n-CXk17buG.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
|
/**
|
|
@@ -208,9 +229,10 @@ interface DOMApi {
|
|
|
208
229
|
/**
|
|
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
|
-
* `useRootEditor` editor runs in a view of its root from its `EditorRoot
|
|
212
|
-
*
|
|
213
|
-
*
|
|
232
|
+
* `useRootEditor` editor runs in a view of its root from its `EditorRoot`,
|
|
233
|
+
* and gets null while that `EditorRoot` shows no editing area for its root.
|
|
234
|
+
* The editor `createEditor` returns runs in a view of the selection's
|
|
235
|
+
* root, else of main. When the caret was placed in that root from an
|
|
214
236
|
* `EditorRoot`, only that `EditorRoot`'s views of the root count, even
|
|
215
237
|
* after this editor moves the caret within it. Of the views that count, it
|
|
216
238
|
* takes the only one, else the one that holds focus, through iframes and
|
|
@@ -221,6 +243,11 @@ interface DOMApi {
|
|
|
221
243
|
assertEventRange: (event: any) => Range$1;
|
|
222
244
|
findKey: (node: Descendant) => Key;
|
|
223
245
|
assertPath: (node: Node$1) => Path;
|
|
246
|
+
/**
|
|
247
|
+
* Focus the editor's view. The root's `nodeSelectionFocus` element takes
|
|
248
|
+
* focus while there is no selection or a node selection holds only the
|
|
249
|
+
* root's top-level blocks, and a range shown across roots stays shown.
|
|
250
|
+
*/
|
|
224
251
|
focus: (options?: {
|
|
225
252
|
retries?: number;
|
|
226
253
|
}) => void;
|
|
@@ -578,23 +605,6 @@ interface DOMEditorInterface {
|
|
|
578
605
|
}
|
|
579
606
|
/** DOM translation, selection, focus, and clipboard operations for an editor. */
|
|
580
607
|
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
608
|
type DOMPluginTypes<TClipboard extends boolean = true> = {
|
|
599
609
|
api: {
|
|
600
610
|
dom: DOMApi & ([TClipboard] extends [true] ? {
|
|
@@ -701,6 +711,11 @@ declare const dataTransferFormats: <const TName extends string, V extends Value
|
|
|
701
711
|
declare const writeDataTransferFragment: <V extends Value>(editor: Editor<V, any>, data: Pick<DataTransfer, 'setData'>, slice: ContentSlice<V>, options?: Readonly<{
|
|
702
712
|
excludeMimeTypes?: readonly string[];
|
|
703
713
|
}>) => readonly string[];
|
|
714
|
+
/**
|
|
715
|
+
* Returns whether an event, node, window, or document belongs to an Apple
|
|
716
|
+
* platform, where `mod` is Command.
|
|
717
|
+
*/
|
|
718
|
+
declare const usesAppleDOMHotkeys: (event: unknown) => boolean;
|
|
704
719
|
type HotkeyPlatform = 'apple' | 'other' | 'windows';
|
|
705
720
|
type HotkeyMatchOptions = {
|
|
706
721
|
ignoreModifiers?: boolean;
|
|
@@ -731,4 +746,4 @@ declare const ariaKeyShortcuts: (hotkey: HotkeySpec, options: {
|
|
|
731
746
|
}) => string | undefined;
|
|
732
747
|
declare function isHotkey(hotkey: HotkeySpec, event: KeyboardEventLike): boolean;
|
|
733
748
|
declare function isHotkey(hotkey: HotkeySpec, options: HotkeyMatchOptions, event: KeyboardEventLike): boolean;
|
|
734
|
-
export {
|
|
749
|
+
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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as HtmlSerializeResult, l as HtmlParseOptions, r as HtmlDocumentParseResult, u as HtmlSerializeOptions } from "./htmlTypes-
|
|
3
|
-
import "./core-
|
|
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";
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $a as Path, Ci as Element, El as TextSelection, Fc as Selection, H as Descendant, Y as Editor, dl as Text } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
2
|
/**
|
|
3
3
|
* All tokens inherit from a single constructor for `instanceof` checking.
|
|
4
4
|
*/
|
|
@@ -108,4 +108,4 @@ declare const jsx: <S extends ("anchor" | "cursor" | "editor" | "element" | "foc
|
|
|
108
108
|
selection: typeof createSelection;
|
|
109
109
|
text: typeof createText;
|
|
110
110
|
} & {})[S]>;
|
|
111
|
-
export {
|
|
111
|
+
export { createEditorFixture as a, jsx as c, createEditor as i, HyperscriptEditorFixture as n, createHyperscript as o, HyperscriptShorthands as r, createText as s, HyperscriptCreators as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./htmlTypes-
|
|
3
|
-
import {
|
|
1
|
+
import { Ca as NodeKey, iu as TxDeclaredMethod, oo as Plugin, qs as SchemaElementPropertyDefinition, ss as PropertyStringDescriptor } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { Co as PluginReference, _ as BasePlugin, aa as BasePluginDependencyReferenceFor, xo as PluginDependency } from "./core-BqR-fEDp.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
|
|
150
|
-
*
|
|
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";
|
|
@@ -187,7 +194,6 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
|
|
|
187
194
|
value: string;
|
|
188
195
|
}>;
|
|
189
196
|
}> & Readonly<Record<"read", {
|
|
190
|
-
readonly entry: (id: string) => ElementIdEntry | undefined;
|
|
191
197
|
readonly id: (key: NodeKey) => string | undefined;
|
|
192
198
|
}>> & Readonly<Record<"schema", {
|
|
193
199
|
readonly properties: {
|
|
@@ -196,6 +202,9 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
|
|
|
196
202
|
}>, Readonly<{
|
|
197
203
|
group: "element";
|
|
198
204
|
kind: "group";
|
|
205
|
+
}>, Readonly<{
|
|
206
|
+
key: string;
|
|
207
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
199
208
|
}>>;
|
|
200
209
|
};
|
|
201
210
|
}>> & Readonly<Record<never, never>>> & Pick<BasePlugin<Readonly<{
|
|
@@ -217,6 +226,9 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
|
|
|
217
226
|
}>, Readonly<{
|
|
218
227
|
group: "element";
|
|
219
228
|
kind: "group";
|
|
229
|
+
}>, Readonly<{
|
|
230
|
+
key: string;
|
|
231
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
220
232
|
}>>;
|
|
221
233
|
};
|
|
222
234
|
};
|
|
@@ -226,7 +238,6 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
|
|
|
226
238
|
readonly generateId: () => string;
|
|
227
239
|
};
|
|
228
240
|
readonly read: {
|
|
229
|
-
readonly entry: (id: string) => ElementIdEntry | undefined;
|
|
230
241
|
readonly id: (key: NodeKey) => string | undefined;
|
|
231
242
|
};
|
|
232
243
|
}>> & Readonly<Record<never, never>>, "~schema.plugins">];
|
|
@@ -261,7 +272,8 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
|
|
|
261
272
|
}> | undefined;
|
|
262
273
|
/**
|
|
263
274
|
* Every saved mark, oldest first, frozen, as the same list while the
|
|
264
|
-
* saved marks and copies stay the same.
|
|
275
|
+
* saved marks and copies stay the same. Each mark stays the same object
|
|
276
|
+
* while its record and the copies it names stay the same.
|
|
265
277
|
*/
|
|
266
278
|
readonly marks: () => readonly Readonly<{
|
|
267
279
|
/** When the pen touched down, in milliseconds since the epoch. */
|
|
@@ -286,9 +298,15 @@ declare const BaseInkPlugin: BasePlugin<Readonly<{
|
|
|
286
298
|
update: {
|
|
287
299
|
/**
|
|
288
300
|
* Save one mark and each copy not saved yet, as one undo step, and
|
|
289
|
-
* return the mark's id.
|
|
290
|
-
*
|
|
291
|
-
*
|
|
301
|
+
* return the mark's id. Each sample saves rounded to a hundredth of a
|
|
302
|
+
* pixel, a thousandth of pressure and a whole millisecond. Refuses
|
|
303
|
+
* malformed input, and a sample whose hundredths of a pixel or
|
|
304
|
+
* milliseconds pass a quarter of `Number.MAX_SAFE_INTEGER`, writing
|
|
305
|
+
* nothing. A copy's
|
|
306
|
+
* block deleted by this update, by one of the last four updates that
|
|
307
|
+
* deleted blocks, or while a stroke that entered it was still unsaved,
|
|
308
|
+
* gets its place saved too.
|
|
309
|
+
* Each other copy's block and the block on each side of it get theirs.
|
|
292
310
|
*/
|
|
293
311
|
readonly add: TxDeclaredMethod<(input: InkMarkInput) => string>;
|
|
294
312
|
/** Drop the marks `ids` names. Their copies stay. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Ba as NodeTarget, Ca as NodeKey, Ds as SchemaContentDefault, Ht as EditorJsonValue, Ia as NodeSelection, Ls as SchemaContentRule, Qo as PropertyBooleanDescriptor, Ti as ElementEntry, fs as PropertyValueOptions, ia as NamedRootKey, iu as TxDeclaredMethod, ji as ElementOf, rs as PropertyNumberDescriptor, ss as PropertyStringDescriptor, ts as PropertyJsonDescriptor } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { Co as PluginReference, _ as BasePlugin, ct as BlockInsertOptions, lt as BlockUpsertOptions, qa as DefinitionOf, xo as PluginDependency } from "./core-BqR-fEDp.js";
|
|
3
4
|
type TableCellBorder = Readonly<{
|
|
4
5
|
color?: string;
|
|
5
6
|
style?: string;
|
|
@@ -2587,6 +2588,8 @@ declare const BaseTablePlugin: BasePlugin<Readonly<{
|
|
|
2587
2588
|
* Interior boundaries preserve the adjacent columns' combined width.
|
|
2588
2589
|
* The left boundary exchanges first-column width for table indentation.
|
|
2589
2590
|
* Commit the result with `update.resize`; previews never change the editor.
|
|
2591
|
+
* Throws a `RangeError` for a column edge while the table holds a pending
|
|
2592
|
+
* column width change.
|
|
2590
2593
|
*/
|
|
2591
2594
|
readonly createResize: (table: TableElement, target: TableResizeTarget) => (delta: number) => TableResize;
|
|
2592
2595
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { oo as Plugin } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { V as InternalBasePluginRuntimeExtension, Va as InternalPluginDefinitionOf, _ as BasePlugin, aa as BasePluginDependencyReferenceFor } from "./core-BqR-fEDp.js";
|
|
4
|
+
import { _ as AuthoredPlugin$1 } from "./index-B8-5Sr7I.js";
|
|
4
5
|
declare const BaseAuthoredPlugin: BasePlugin<Readonly<{}> & Readonly<{
|
|
5
6
|
name: "authored";
|
|
6
7
|
}> & Readonly<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Ba as NodeTarget, Ci as Element, Ds as SchemaContentDefault, Ht as EditorJsonValue, Ia as NodeSelection, Ji as Location, Ls as SchemaContentRule, iu as TxDeclaredMethod, ji as ElementOf, ss as PropertyStringDescriptor } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { Co as PluginReference, _ as BasePlugin, ct as BlockInsertOptions, lt as BlockUpsertOptions, qa as DefinitionOf, xo as PluginDependency } from "./core-BqR-fEDp.js";
|
|
3
4
|
type SetColumnsOptions = {
|
|
4
5
|
/** Column group location. */
|
|
5
6
|
at?: NodeTarget<Element>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as TransferVeto, $a as TransactionSpec, $c as EditorSchemaOverride, $i as NodeKey, $l as SchemaElementTarget, $n as EditorLevelsOptions, $o as TxMethodDeclarations, $r as EditorTargetRuntime, $s as NodeNodesOptions, $t as AnchorDeletionPolicy, $u as EditorJsonValue, Ac as ElementInterface, Ai as EditorUpdate, Al as SchemaContentRoot, An as EditorCommitRuntimeChangeKind, Ao as NodeInsertSplitOptions, Ar as EditorSchemaPropertyReadOptions, As as DescendantEntryIn, Au as SchemaValue, B as TransferIntent, Ba as RootKey, Bc as EditorSchemaContent, Bl as SchemaElementFor, Bn as EditorEffectCollabEncodeContext, Bo as NodeUnwrapNodesOptions, Br as EditorStateNodesApi, Bs as NodeDescendantsOptions, Bt as EditorSchemaContract, Bu as RangeApi, C as NodeWriteVeto, Ca as PluginPoint, Cc as TextInterface, Ci as EditorTransactionSliceApi, Cl as PropertyValueOptions, Cn as EditorCommandResult, Co as SelectionCollapseOptions, Cr as EditorReadRegistration, Cs as AncestorEntryOf, Ct as definePluginPoint, Cu as SchemaTextBlockOptions, D as AuthoredVeto, Da as PluginReadFactoryContext, Dc as ElementApi, Di as EditorTransactionTopLevelRange, Dl as SchemaContentInput, Dn as EditorCommitContext, Do as BlockDuplicateOptions, Dr as EditorRootEntry, Ds as ChildOf, Dt as target, Du as SchemaTextPropertyKeys, E as AuthoredTouch, Ea as PluginReadFactory, Ec as Element, Ei as EditorTransactionTextApi, El as SchemaContentDefault, En as EditorCommitChanged, Eo as SelectionSetPointOptions, Er as EditorReplaceNodeOptions, Es as BaseNode, Et as schema, Eu as SchemaTextPropertyDefinition, F as TransferAdoptInput, Fa as PluginUpdateFactory, Fi as EditorUpdatePolicyFor, Fl as SchemaContentRootStructure, Fo as NodeRemoveNodesOptions, Fr as EditorSliceReadOptions, Fs as Node, Fu as Span, G as TransferPatchProperties, Ga as SnapshotInput, Gc as EditorSchemaDelta, Gi as EditorView, Gl as SchemaElementProperty, Gn as EditorElementBehavior, Go as RangeDirection, Gr as EditorStateSelectionApi, Gs as NodeFindTextRangesOptions, Gt as EditorSchemaContractDiff, Gu as PointApi, H as TransferLandingTarget, Ha as SerializedEditorSelection, Hc as EditorSchemaContribution, Hi as EditorValueFromPlugins, Hl as SchemaElementInput, Hn as EditorEffectCollabTransport, Ho as LeafEdge, Hr as EditorStateRangesApi, Hs as NodeEntry, Ht as EditorSchemaContractChangeKind, Hu as RangeInterface, I as TransferCheck, Ia as PluginUpdateFactoryContext, Ic as EditorSchemaSource, Ii as EditorUpdateTag, Il as SchemaContentRule, In as EditorDocumentRecords, Io as NodeReplaceChildrenOptions, Ir as EditorSnapshot, Is as NodeAncestorsOptions, Iu as SpanApi, J as TransferRelation, Ja as StateFieldHistoryPolicy, Jc as EditorSchemaElementOverride, Ji as HistoryOutcome, Jl as SchemaElementPropertyOptions, Jo as SelectionMode, Jr as EditorStateUniqueApi, Js as NodeInterface, Jt as diffEditorSchemaContracts, Ju as Path, K as TransferPayload, Ka as StateFieldCollabPolicy, Kc as EditorSchemaDerivedDefinition, Ki as EditorViewOptions, Kl as SchemaElementPropertyDefinition, Kn as EditorFragmentDeletionOptions, Ko as RangeMode, Kr as EditorStateSliceApi, Ks as NodeHasPropsOptions, Kt as EditorSchemaContractElement, Ku as PointEntry, L as TransferDiagnostic, Li as EditorUpdateTagInput, Ll as SchemaDescendant, Ln as EditorDocumentValue, Lo as NodeSetNodesOptions, Lr as EditorStateField, Ls as NodeApi, Lt as SliceLanding, Lu as SpanInterface, M as transfer, Ma as PluginTypeProvider, Mc as ElementOf, Mi as EditorUpdateContext, Ml as SchemaContentRootInput, Mn as EditorCoreUpdateMethods, Mo as NodeMergeNodesOptions, Mr as EditorSchemaVocabulary, Ms as DescendantIn, Mt as setEditorViewing, Mu as Location, N as transferVeto, Nc as ElementOrTextIn, Ni as EditorUpdateMethods, Nl as SchemaContentRootOwnership, Nn as EditorCoreUpdateTransaction, No as NodeMoveNodesOptions, Nr as EditorSelectionBlockOptions, Ns as DescendantOf, Nu as LocationApi, O as authoredVeto, Oa as PluginReadMiddlewareFactory, Oc as ElementEntry, Oi as EditorTransactionValueApi, Ol as SchemaContentOptions, On as EditorCommitHandler, Oo as NodeDuplicateOptions, Or as EditorRootOwner, Os as Descendant, Ot as documentReplacement, Ou as SchemaTextPropertyOptions, P as editorReads, Pa as PluginTypes, Pc as ElementOrTextOf, Pi as EditorUpdatePolicy, Pl as SchemaContentRootSlotsFor, Pn as EditorDirectCommandDispatch, Po as NodeMutationMethods, Pr as EditorSelectionTargetOptions, Ps as ElementEntryOf, Pt as getEditorRuntimeOwner, Pu as LocationInterface, Q as TransferTarget, Qa as TopLevelRuntimeRange, Qc as EditorSchemaNamedDefinition, Qi as NamedRootKey, Ql as SchemaElementStructure, Qn as EditorIsEditorOptions, Qo as TxDeclaredMethod, Qs as NodeMatchPredicate, Qt as AnchorAssociation, Qu as PathLevelsOptions, R as TransferEdge, Ra as PluginsOf, Ri as EditorUpdateTransaction, Rl as SchemaElement, Rn as EditorEffect, Ro as NodeSplitNodesOptions, Rr as EditorStateFragmentApi, Rs as NodeChildEntry, Rt as SliceLandingInput, Ru as BaseRange, Sa as PluginMigrationContext, Sc as TextIn, Si as EditorTransactionSelectionApi, Sl as PropertyValueOf, Sn as EditorCommandPlace, So as TextRemoveTextOptions, Sr as EditorReadMethods, Ss as AncestorEntry, St as defineEditorSchema, Su as SchemaText, T as nodeWriteVeto, Ta as PluginReadContext, Tc as BaseElement, Ti as EditorTransactionTagsApi, Tl as SchemaContent, Tn as EditorCommitChangeKind, To as SelectionMutationMethods, Tr as EditorReplaceChildrenOptions, Ts as AncestorOf, Tt as property, Tu as SchemaTextProperty, U as TransferOutcome, Ua as SerializedEditorValue, Uc as EditorSchemaDeclaration, Ui as EditorValuePersistence, Ul as SchemaElementProperties, Un as EditorEffectHistoryReplayResult, Uo as MaximizeMode, Ur as EditorStateRuntimeApi, Us as NodeEntryIn, Ut as EditorSchemaContractContentProgram, Uu as BasePoint, V as TransferLandingInput, Va as SerializedEditorEffect, Vc as EditorSchemaContentRoot, Vi as EditorUpdateValueFromPlugin, Vl as SchemaElementHandle, Vn as EditorEffectCollabReplay, Vo as NodeWrapNodesOptions, Vr as EditorStatePointsApi, Vs as NodeElementsOptions, Vt as EditorSchemaContractChange, Vu as RangeEdgesOptions, W as TransferPatch, Wa as SnapshotIndex, Wc as EditorSchemaDefinition, Wl as SchemaElementPropertiesFor, Wn as EditorEffectType, Wo as MoveUnit, Wr as EditorStateSchemaApi, Ws as NodeEntryOf, Wt as EditorSchemaContractContentRoot, Wu as Point, X as TransferSideInput, Xa as StateFieldValueInput, Xc as EditorSchemaElementStructure, Xi as HistorySettlement, Xl as SchemaElementShapeFor, Xn as EditorInstalledReadGroups, Xo as TextUnit, Xr as EditorStateView, Xs as NodeLevelsOptions, Xt as restoreEditorSchemaContract, Xu as PathApi, Y as TransferSide, Ya as StateFieldInitial, Yc as EditorSchemaElementOverrideInput, Yi as HistoryResult, Yl as SchemaElementPropertyValue, Yn as EditorInstalledApiGroups, Yo as TextDirection, Yr as EditorStateValueApi, Ys as NodeIsNodeOptions, Yt as readEditorSchemaContract, Yu as PathAncestorsOptions, Z as TransferSourceInput, Za as TargetFreshnessRequest, Zc as EditorSchemaIdentity, Zi as InitialValue, Zl as SchemaElementSlicePolicy, Zn as EditorInstalledUpdateGroups, Zo as TextUnitAdjustment, Zr as EditorStateViewApi, Zs as NodeMatch, Zt as Anchor, Zu as PathInterface, _ as PluginSlotValue, _c as MarksIn, _i as EditorTransactionNodesApi, _l as PropertySetOptions, _n as EditorCommandContinuation, _r as EditorReadContext, _s as SelectionApi, _t as SetSelectionCommand, _u as SchemaPropertySplitPolicy, aa as PluginApiFactoryContext, ac as NodeTextRangeRoot, ai as EditorTransactionAnchorApi, al as EditorSchemaPropertyQuery, ar as EditorNodeChangeContext, as as defineCommand, at as DeleteFragmentCommand, au as SchemaPluginsOf, b as AuthoredDocumentProjection, ba as PluginInput, bc as TextApi, bi as EditorTransactionRemoved, bl as PropertyValueDescriptor, bn as EditorCommandHandler, bo as TextInsertTextOptions, br as EditorReadMethodRecord, bs as TextSelection, bt as editorCommands, bu as SchemaRootNames, c as defineUpdateAnnotation, ca as PluginCapabilities, cc as NodeTypeSelector, ci as EditorTransactionBreakApi, cl as EditorSchemaUnknownPolicy, cr as EditorNodeGetOptions, cs as JsonNode, ct as InsertNodesCommand, cu as SchemaPropertyDefinition, d as decodeEditorEffect, da as PluginContributionInput, dc as TextEntryOf, di as EditorTransactionChanged, dl as PropertyEnumDescriptor, dn as EditorBlockOptions, dr as EditorNodesOptions, ds as DecorationRefresh, dt as MoveSelectionCommand, du as SchemaPropertyHandleValue, ea as NodeTarget, ec as NodeOf, ei as EditorTextChangeContext, el as EditorSchemaOverrideInput, en as AnchorOptions, eo as Value, er as EditorLifecycleError, es as TxOnlyMethod, et as TransferVetoInput, eu as SchemaElementTypes, f as encodeEditorEffect, fa as PluginDefinition, fc as BaseText, fi as EditorTransactionChangesApi, fl as PropertyJsonDescriptor, fn as EditorBlockToggleOptions, fo as isEditor, fr as EditorNodesReadOptions, fs as DecorationSource, ft as RemoveMarkCommand, fu as SchemaPropertyIds, g as PluginSlot, gc as MarkKeysOf, gi as EditorTransactionMarksApi, gl as PropertySetDescriptor, gn as EditorCommandAroundHandler, gr as EditorReadAroundHandler, gs as Selection, gt as SetNodesCommand, gu as SchemaPropertyRole, h as defineStateField, ha as PluginDependencyReference, hc as LeafPosition, hi as EditorTransactionFragmentApi, hl as PropertyOptionsOf, hn as EditorCommand, hr as EditorRead, hs as NodeSelectionMode, ht as SelectCommand, hu as SchemaPropertyReferences, ia as PluginApiFactory, ic as NodeTextRangeQuery, ii as EditorTransactionAnchor, il as EditorSchemaPropertyOverrideInput, ir as EditorNextOptions, is as txSelection, it as DeleteCommand, iu as SchemaKeyPrefix, j as TransferRead, ja as PluginSlotLike, jc as ElementIsElementOptions, ji as EditorUpdateAnnotation, jl as SchemaContentRootContribution, jn as EditorCoreStateView, jo as NodeLiftNodesOptions, jr as EditorSchemaReadProperty, js as DescendantEntryOf, jt as setEditorReadOnly, ju as SchemaValueFromPlugins, k as TransferApi, ka as PluginReconfigureOptions, kc as ElementIn, ki as EditorUniqueHolder, kl as SchemaContentPrefixSlot, kn as EditorCommitListener, ko as NodeInsertNodesOptions, kr as EditorSchemaGetProperty, ks as DescendantEntry, ku as SchemaTypesTarget, l as invertEffect, la as PluginCleanupContext, lc as TextEntry, li as EditorTransactionChangeContext, ll as NamedEditorSchemaIdentity, ls as Decoration, lt as InsertSoftBreakCommand, lu as SchemaPropertyExclusiveGroup, m as screenReaderAnnouncementEffect, mc as BooleanMarksOf, mi as EditorTransactionEffectsApi, ml as PropertyNumberDescriptor, mn as EditorCanonicalUpdateTag, mr as EditorPreviousOptions, ms as NodeSelection, mt as ReplaceSliceCommand, mu as SchemaPropertyLandingPolicy, n as PluginsFromOptions, nc as NodeTextRangeEntry, ni as EditorToggleBlockOptions, nl as EditorSchemaProperty, nn as EditorDocumentRange, nr as EditorMarks, ns as txLocate, nt as AddMarkCommand, nu as SchemaGroupNames, o as createEditorView, oa as PluginCandidateContext, oc as NodeTextRangeView, oi as EditorTransactionAnnotationsApi, ol as EditorSchemaRepairCode, on as CompatibleEditorCommand, or as EditorNodeChangeHandler, os as DocumentChange, ot as EditorCommands, ou as SchemaProperty, p as valueCodecs, pc as BooleanMarkKeysOf, pi as EditorTransactionDocumentChangeKind, pl as PropertyJsonOptions, pn as EditorBreakExitOptions, pr as EditorParentOptions, ps as EditorSelection, pt as RemoveNodesCommand, pu as SchemaPropertyKey, q as TransferRefusalReason, qa as StateFieldDescriptor, qc as EditorSchemaElement, qi as HistoryApi, ql as SchemaElementPropertyKeys, qn as EditorFragmentReadOptions, qo as SelectionEdge, qr as EditorStateTextApi, qs as NodeIn, qt as EditorSchemaContractRoot, qu as PointInterface, r as compileEditorSchemaContract, ra as PluginActivationContext, rc as NodeTextRangeMatch, ri as EditorToggleMarkOptions, rl as EditorSchemaPropertyOverride, rn as RangeAnchorAssociation, rr as EditorMarksOf, rs as txOnly, rt as CollapseSelectionCommand, ru as SchemaGroupOptions, s as defineEffect, sa as PluginCandidateEditor, sc as NodeTextsOptions, si as EditorTransactionBlocksApi, sl as EditorSchemaStructureProperty, so as getSelection, sr as EditorNodeChangeKind, ss as JsonEditorValue, st as InsertBreakCommand, su as SchemaPropertyCopyPolicy, t as EditorValueFromOptions, ta as PersistedDocumentInput, tc as NodeProps, ti as EditorTextChangeHandler, tl as EditorSchemaPlugin, tn as AnchorValue, to as ValueOf, tr as EditorLifecycleErrorSink, ts as locateAt, tt as TransferWrap, tu as SchemaGroup, u as mapEffect, ua as PluginContribution, uc as TextEntryIn, ui as EditorTransactionChangeHandler, ul as PropertyBooleanDescriptor, un as EditorAboveOptions, ur as EditorNodeUnsetOptions, us as DecorationAttributes, ut as InsertTextCommand, uu as SchemaPropertyHandle, v as definePluginSlot, vc as MarksOf, vi as EditorTransactionPluginsApi, vl as PropertyStringDescriptor, vn as EditorCommandDescriptor, vo as TextDeleteOptions, vr as EditorReadDescriptor, vs as SelectionAssociation, vt as ToggleBlockCommand, vu as SchemaPropertyTypeChangePolicy, w as NodeWriteVetoInput, wc as TextOf, wi as EditorTransactionSpecBuilder, wl as SchemaBuiltInGroupName, wn as EditorCommit, wo as SelectionMoveOptions, wr as EditorReadResult, ws as AncestorIn, wt as PropertyBuilderApi, wu as SchemaTextProperties, x as AuthoredProjectionDiagnostic, xc as TextEqualsOptions, xi as EditorTransactionRootsApi, xl as PropertyValueKind, xn as EditorCommandInput, xo as TextMutationMethods, xr as EditorReadMethodTree, xs as Ancestor, xt as PluginPublicationError, xu as SchemaTarget, y as ContentSlice, yc as Text, yi as EditorTransactionRecordsApi, yl as PropertyValidation, yn as EditorCommandDispatch, yo as TextInsertFragmentOptions, yr as EditorReadInput, ys as SelectionValue, yt as ToggleMarkCommand, yu as SchemaRecordSet, z as TransferInput, za as ProjectedRangeSegment, zc as DerivedEditorSchemaIdentity, zl as SchemaElementConstructionPropertiesFor, zn as EditorEffectCollabDecodeContext, zo as NodeUnsetNodesOptions, zr as EditorStateMarksApi, zs as NodeChildrenOptions, zt as SliceLandingTarget, zu as Range } from "./index-BU6k1Aev.js";
|
|
2
|
-
import {
|
|
3
|
-
import { $a as
|
|
4
|
-
export { type AddMarkCommand, AffinityDefinition, AffinityEdgeNodes, AffinityPlugin, AffinityPluginUpdate, Alignment, Ancestor, AncestorEntry, AncestorEntryOf, AncestorIn, AncestorOf, type Anchor, type AnchorAssociation, type AnchorDeletionPolicy, type AnchorOptions, type AnchorValue, type AnyObject, ApplyDeepToNodesOptions, type AuthoredDocumentProjection, type AuthoredProjectionDiagnostic, type AuthoredTouch, type AuthoredVeto, type AutoScrollApi, type AutoScrollChangeKind, type AutoScrollChangesMap, type AutoScrollOptions, type AutoScrollUpdate, BULLETED_LIST_STYLES, BaseBlockquotePlugin, BaseBoldPlugin, BaseCodeBlockPlugin, BaseCodeHighlightPlugin, BaseCodePlugin, BaseElement, BaseFontBackgroundColorPlugin, BaseFontColorPlugin, BaseFontFamilyPlugin, BaseFontSizePlugin, BaseFormattingPlugin, BaseHeadingPlugin, BaseHighlightPlugin, BaseHorizontalRulePlugin, BaseIndentPlugin, type BaseInjectProps, BaseInputRule, BaseItalicPlugin, BaseKbdPlugin, BaseLineHeightPlugin, BaseLinkDefinition, BaseLinkPlugin, BaseLinkPluginState, BaseListDefinition, BaseListPlugin, BaseNode, BaseParagraphDefinition, BaseParagraphPlugin, type BasePlugin, type BasePlugin as Plugin, type BasePluginConfiguration, type BasePluginContext, type BasePluginDefinition, type BasePluginDefinitionInput, type BasePluginDefinitionInput as PluginDefinitionInput, type BasePluginExtendInput, type BasePluginImplementationContext, type BasePluginInput, type BasePluginOn, type BasePluginOverride, type BasePluginPortal, type BasePluginPortal as PluginPortal, BasePoint, BaseRange, BaseScriptPlugin, BaseStrikethroughPlugin, BaseText, BaseTextAlignPlugin, BaseTextIndentPlugin, BaseUnderlinePlugin, type BlockDuplicateOptions, BlockFenceInputRuleConfig, BlockFenceInputRuleMatch, type BlockInsertOptions, BlockStartInputRuleConfig, BlockStartInputRuleMatch, type BlockUpsertOptions, BlockquoteRules, BoldRules, BooleanMarkKeysOf, BooleanMarksOf, type BreakRules, BulletedListRules, CapturedFormat, ChildOf, CodeBlockDefinition, CodeBlockElement, CodeBlockRules, CodeHighlightDefinition, CodeHighlightLowlight, CodeHighlightPluginState, CodeRules, type CollapseSelectionCommand, type CompatibleEditorCommand, type ConfiguredBasePlugin, ContentSlice, type CreateEditorOptions, CreateLinkNodeOptions, DebugApi, DebugDefinition, DebugErrorType, DebugPlugin, DebugPluginState, type DebugValueScrubber, type DeclaredPluginShortcutInput, type Decorate, type Decoration, type DecorationAttributes, type DecorationRefresh, type DecorationSource, type DefinitionOf, type DeleteCommand, type DeleteFragmentCommand, type DeleteRules, DelimitedInlineInputRuleMatch, type DerivedEditorSchemaIdentity, Descendant, DescendantEntry, DescendantEntryIn, DescendantEntryOf, DescendantIn, DescendantOf, DocumentChange, type DomApi, type DomPluginState, type DomPluginUpdate, type EditOnlyConfig, type EditableProps, type Editor, type EditorAboveOptions, type EditorApplicationSchema, type EditorBlockOptions, type EditorBlockToggleOptions, type EditorBreakExitOptions, type EditorCanonicalUpdateTag, type EditorCommand, type EditorCommandAroundHandler, type EditorCommandContinuation, type EditorCommandDescriptor, type EditorCommandDispatch, type EditorCommandHandler, type EditorCommandInput, type EditorCommandPlace, type EditorCommandResult, type EditorCommands, type EditorCommit, type EditorCommitChangeKind, type EditorCommitChanged, type EditorCommitContext, type EditorCommitHandler, type EditorCommitListener, type EditorCommitRuntimeChangeKind, type EditorCoreStateView, type EditorCoreUpdateMethods, type EditorCoreUpdateTransaction, type EditorDirectCommandDispatch, type EditorDocumentRange, type EditorDocumentRecords, type EditorDocumentValue, type EditorEffect, type EditorEffectCollabDecodeContext, type EditorEffectCollabEncodeContext, type EditorEffectCollabReplay, type EditorEffectCollabTransport, type EditorEffectHistoryReplayResult, type EditorEffectType, type EditorElementBehavior, EditorError, type EditorFragmentDeletionOptions, type EditorFragmentReadOptions, type EditorInstalledApiGroups, type EditorInstalledReadGroups, type EditorInstalledUpdateGroups, type EditorIsEditorOptions, type EditorJsonValue, type EditorLevelsOptions, type EditorLifecycleError, type EditorLifecycleErrorSink, type EditorMarks, type EditorMarksOf, type EditorNextOptions, type EditorNodeChangeContext, type EditorNodeChangeHandler, type EditorNodeChangeKind, type EditorNodeGetOptions, type EditorNodeUnsetOptions, type EditorNodesOptions, type EditorNodesReadOptions, type EditorParentOptions, type EditorPreviousOptions, type EditorRead, type EditorReadAroundHandler, type EditorReadContext, type EditorReadDescriptor, type EditorReadInput, type EditorReadMethodRecord, type EditorReadMethodTree, type EditorReadMethods, type EditorReadRegistration, type EditorReadResult, type EditorReplaceChildrenOptions, type EditorReplaceNodeOptions, type EditorRootEntry, type EditorRootOwner, type EditorSchemaContent, type EditorSchemaContentRoot, type EditorSchemaContract, type EditorSchemaContractChange, type EditorSchemaContractChangeKind, type EditorSchemaContractContentProgram, type EditorSchemaContractContentRoot, type EditorSchemaContractDiff, type EditorSchemaContractElement, type EditorSchemaContractRoot, type EditorSchemaContribution, type EditorSchemaDeclaration, type EditorSchemaDefinition, type EditorSchemaDelta, type EditorSchemaDerivedDefinition, type EditorSchemaElement, type EditorSchemaElementOverride, type EditorSchemaElementOverrideInput, type EditorSchemaElementStructure, type EditorSchemaGetProperty, type EditorSchemaIdentity, type EditorSchemaNamedDefinition, type EditorSchemaOverride, type EditorSchemaOverrideInput, type EditorSchemaPlugin, type EditorSchemaProperty, type EditorSchemaPropertyOverride, type EditorSchemaPropertyOverrideInput, type EditorSchemaPropertyQuery, type EditorSchemaPropertyReadOptions, type EditorSchemaReadProperty, type EditorSchemaRepairCode, type EditorSchemaSource, type EditorSchemaStructureProperty, type EditorSchemaUnknownPolicy, type EditorSchemaValidationCode, type EditorSchemaValidationDiagnostic, EditorSchemaValidationError, type EditorSchemaValidationPropertyContext, type EditorSchemaVocabulary, EditorSelection, type EditorSelectionBlockOptions, type EditorSelectionTargetOptions, type EditorShortcut, type EditorSliceReadOptions, type EditorSnapshot, type EditorStateField, type EditorStateFragmentApi, type EditorStateMarksApi, type EditorStateNodesApi, type EditorStatePointsApi, type EditorStateRangesApi, type EditorStateRuntimeApi, type EditorStateSchemaApi, type EditorStateSelectionApi, type EditorStateSliceApi, type EditorStateTextApi, type EditorStateUniqueApi, type EditorStateValueApi, type EditorStateView, type EditorStateViewApi, type EditorTargetRuntime, type EditorTextChangeContext, type EditorTextChangeHandler, type EditorToggleBlockOptions, type EditorToggleMarkOptions, type EditorTransactionAnchor, type EditorTransactionAnchorApi, type EditorTransactionAnnotationsApi, type EditorTransactionBlocksApi, type EditorTransactionBreakApi, type EditorTransactionChangeContext, type EditorTransactionChangeHandler, type EditorTransactionChanged, type EditorTransactionChangesApi, type EditorTransactionDocumentChangeKind, type EditorTransactionEffectsApi, type EditorTransactionFragmentApi, type EditorTransactionMarksApi, type EditorTransactionNodesApi, type EditorTransactionPluginsApi, type EditorTransactionRecordsApi, type EditorTransactionRemoved, type EditorTransactionRootsApi, type EditorTransactionSelectionApi, type EditorTransactionSliceApi, type EditorTransactionSpecBuilder, type EditorTransactionTagsApi, type EditorTransactionTextApi, type EditorTransactionTopLevelRange, type EditorTransactionValueApi, type EditorUniqueHolder, type EditorUpdate, type EditorUpdateAnnotation, type EditorUpdateContext, type EditorUpdateMethods, type EditorUpdatePolicy, type EditorUpdatePolicyFor, type EditorUpdateTag, type EditorUpdateTagInput, type EditorUpdateTransaction, type EditorUpdateValueFromPlugin, type EditorValueFromOptions, type EditorValueFromPlugins, type EditorValueInput, type EditorValuePersistence, type EditorView, type EditorViewOptions, Element, ElementApi, type ElementContentRootSlot, ElementEntry, ElementEntryOf, ElementIdEntry, ElementIdPlugin, ElementIdPluginState, ElementIn, ElementInterface, ElementIsElementOptions, ElementOf, ElementOrTextIn, ElementOrTextOf, ElementStateApi, ElementStateDefinition, ElementStatePlugin, type ElementWith, ExitBreakPlugin, FormattingBlockEntry, FormattingContribution, FragmentPropMode, GetFragmentPropOptions, type GetInjectNodePropsOptions, type GetInjectNodePropsReturnType, type HandlerReturnType, HeadingLevel, HeadingRules, HighlightNode, HighlightResult, HighlightRules, type HistoryApi, HistoryDefinition, type HistoryOutcome, HistoryPlugin, HistoryPluginState, type HistoryResult, type HistorySettlement, HorizontalRuleRules, Hotkeys, type HtmlAttributes, type HtmlContentToken, type HtmlElementPatch, type HtmlMappingDiagnosticInput, type HtmlMatchValue, type HtmlMatcher, type HtmlNodeSpec, HtmlPlugin, type HtmlPrepareDiagnosticInput, type HtmlWrapperSpec, IS_APPLE, IndentChangeOptions, IndentDefinition, IndentPluginState, type InferApi, type InferConflicts, type InferDependencies, type InferEnabled, type InferName, type InferOwnApi, type InferOwnRead, type InferOwnUpdate, type InferPluginReadGroups, type InferPluginStoreState, type InferPluginUpdateGroups, type InferRead, type InferSelectors, type InferTargetPlugins, type InferUpdate, type InitialValue, type InjectNodeProps, InputRule, InputRuleEditor, InputRuleInsertTextOptions, InputRuleTarget, InputRulesConfig, InputRulesDefinition, type InsertBreakCommand, InsertBreakInputRule, InsertBreakInputRuleContext, InsertBreakInputRuleReadContext, InsertDataInputRule, InsertDataInputRuleContext, InsertDataInputRuleReadContext, type InsertNodesCommand, type InsertSoftBreakCommand, type InsertTextCommand, InsertTextInputRule, InsertTextInputRuleContext, InsertTextInputRuleReadContext, ItalicRules, type JsonEditorValue, type JsonNode, type LeafEdge, LeafPosition, type LeafStaticProps, LineHeightDefinition, LinkAttributes, LinkElement, LinkRules, ListElement, ListStyle, ListType, Location, LocationApi, LocationInterface, LogLevel, MarkComboRules, MarkInputRuleConfig, MarkInputRuleMatch, MarkKeysOf, type MarkdownDecodeContext, type MarkdownEncodeContext, type MarkdownMarkWrapContext, type MarkdownMarkWrapper, type MarkdownMarks, type MarkdownNodeKind, type MarkdownNodeKinds, type MarkdownNodeMapping, type MarkdownNodeMappingInput, type MarkdownPluginRegistry, type MarkdownRefusal, type MarkdownTagAttributeView, type MarkdownTagNode, MarksIn, MarksOf, MatchBlockFenceOptions, MatchBlockStartOptions, MatchDelimitedInlineOptions, type MaximizeMode, type MergeRules, type MoveSelectionCommand, type MoveUnit, type NamedEditorSchemaIdentity, type NamedRootKey, Node, NodeAncestorsOptions, NodeApi, NodeChildEntry, NodeChildrenOptions, type NodeComponent, NodeDescendantsOptions, type NodeDuplicateOptions, NodeElementsOptions, NodeEntry, NodeEntryIn, NodeEntryOf, NodeFindTextRangesOptions, NodeHasPropsOptions, NodeIn, type NodeInsertNodesOptions, type NodeInsertOptions, type NodeInsertSplitOptions, NodeInterface, NodeIsNodeOptions, type NodeKey, NodeLevelsOptions, type NodeLiftNodesOptions, NodeMatch, NodeMatchPredicate, type NodeMergeNodesOptions, type NodeMoveNodesOptions, type NodeMutationMethods, NodeNodesOptions, NodeOf, NodeProps, type NodeRemoveNodesOptions, type NodeReplaceChildrenOptions, NodeSelection, NodeSelectionMode, type NodeSetNodesOptions, type NodeSplitNodesOptions, type NodeStaticProps, type NodeTarget, NodeTextRangeEntry, NodeTextRangeMatch, NodeTextRangeQuery, NodeTextRangeRoot, NodeTextRangeView, NodeTextsOptions, NodeTypeSelector, type NodeUnsetNodesOptions, type NodeUnwrapNodesOptions, type NodeWrapNodesOptions, type NodeWriteVeto, type NodeWriteVetoInput, type NormalizeRules, type Nullable, OrderedListRules, OutdentListOptions, PLUGINS, type PartialBasePlugin, Path, PathAncestorsOptions, PathApi, PathInterface, PathLevelsOptions, type PersistedDocumentInput, PlainTextDiagnostic, PlainTextDocumentOptions, PlainTextEditorOptions, type PlainTextEncodeContext, type PlainTextNodeMapping, type PlainTextNodeMappingInput, PlainTextSerializeResult, type PluginActivationContext, type PluginApiFactory, type PluginApiFactoryContext, type PluginBaseContext, type PluginCandidateContext, type PluginCandidateEditor, type PluginCapabilities, type PluginCleanupContext, type PluginContribution, type PluginContributionInput, type PluginDefinition, type PluginDependency, type PluginDependencyReference, type PluginFormatContext, type PluginFormatModelView, type PluginFormatNode, type PluginFormatRegistry, type PluginFormatSchemaView, type PluginInput, type PluginMigrationContext, PluginName, type PluginOwnUpdate, type PluginPoint, PluginPublicationError, type PluginReadContext, type PluginReadFactory, type PluginReadFactoryContext, type PluginReadMiddlewareFactory, type PluginReadState, type PluginReconfigureOptions, type PluginReference, type PluginSchema, type PluginSchemaContext, type PluginSchemaDeclaration, type PluginSchemaElement, type PluginSchemaMark, type PluginSchemaReferences, type PluginSelector, type PluginSelectorArgs, type PluginSelectorMethods, type PluginSelectorReturn, type PluginSelectors, type PluginShortcutInput, type PluginSlot, type PluginSlotLike, type PluginSlotValue, type PluginState, type PluginStore, type PluginTransaction, type PluginTypeProvider, type PluginTypes, type PluginUpdate, type PluginUpdateFactory, type PluginUpdateFactoryContext, type PluginsFromOptions, type PluginsOf, Point, PointApi, PointEntry, PointInterface, type ProjectedRangeSegment, type PropertyBooleanDescriptor, type PropertyBuilderApi, type PropertyEnumDescriptor, type PropertyJsonDescriptor, type PropertyJsonOptions, type PropertyNumberDescriptor, type PropertyOptionsOf, type PropertySetDescriptor, type PropertySetOptions, type PropertyStringDescriptor, type PropertyValidation, type PropertyValueDescriptor, type PropertyValueKind, type PropertyValueOf, type PropertyValueOptions, Range, type RangeAnchorAssociation, RangeApi, type RangeDirection, RangeEdgesOptions, RangeInterface, type RangeMode, type RemoveMarkCommand, type RemoveNodesCommand, type RenderElementFn, type RenderElementProps, type RenderElementSlots, type RenderLeafFn, type RenderLeafProps, type RenderStaticNodeWrapper, type RenderStaticNodeWrapperFunction, type RenderStaticNodeWrapperProps, type RenderTextFn, type RenderTextHostProps, type RenderTextPieceProps, type RenderTextProps, type ReplaceSliceCommand, ResolvedInputRule, ResolvedInputRulesMeta, type RootKey, type RuleDecision, type SchemaBuiltInGroupName, type SchemaContent, type SchemaContentDefault, type SchemaContentInput, type SchemaContentOptions, type SchemaContentPrefixSlot, type SchemaContentRoot, type SchemaContentRootContribution, type SchemaContentRootInput, type SchemaContentRootOwnership, type SchemaContentRootSlotsFor, type SchemaContentRootStructure, type SchemaContentRule, type SchemaDescendant, type SchemaElement, type SchemaElementConstructionPropertiesFor, type SchemaElementFor, type SchemaElementHandle, type SchemaElementInput, type SchemaElementProperties, type SchemaElementPropertiesFor, type SchemaElementProperty, type SchemaElementPropertyDefinition, type SchemaElementPropertyKeys, type SchemaElementPropertyOptions, type SchemaElementPropertyValue, type SchemaElementShapeFor, type SchemaElementSlicePolicy, type SchemaElementStructure, type SchemaElementTarget, type SchemaElementTypes, type SchemaGroup, type SchemaGroupNames, type SchemaGroupOptions, type SchemaKeyPrefix, type SchemaPluginsOf, type SchemaProperty, type SchemaPropertyCopyPolicy, type SchemaPropertyDefinition, type SchemaPropertyExclusiveGroup, type SchemaPropertyHandle, type SchemaPropertyHandleValue, type SchemaPropertyIds, type SchemaPropertyKey, type SchemaPropertyLandingPolicy, type SchemaPropertyReferences, type SchemaPropertyRole, type SchemaPropertySplitPolicy, type SchemaPropertyTypeChangePolicy, type SchemaRecordSet, type SchemaRootNames, type SchemaTarget, type SchemaText, type SchemaTextBlockOptions, type SchemaTextProperties, type SchemaTextProperty, type SchemaTextPropertyDefinition, type SchemaTextPropertyKeys, type SchemaTextPropertyOptions, type SchemaTypesTarget, type SchemaValue, type SchemaValueFromPlugins, ScriptRules, ScriptValue, type ScrollIntoViewTarget, type ScrollMode, type SelectCommand, Selection, SelectionApi, SelectionAssociation, type SelectionCollapseOptions, type SelectionEdge, SelectionInputRuleContext, type SelectionMode, type SelectionMoveOptions, type SelectionMutationMethods, type SelectionRules, type SelectionSetPointOptions, SelectionValue, type SerializedEditorEffect, type SerializedEditorSelection, type SerializedEditorValue, type SetNodesCommand, type SetSelectionCommand, SingleBlockPlugin, SingleLinePlugin, type SliceLanding, type SliceLandingInput, type SliceLandingTarget, type SnapshotIndex, type SnapshotInput, Span, SpanApi, SpanInterface, type StateFieldCollabPolicy, type StateFieldDescriptor, type StateFieldHistoryPolicy, type StateFieldInitial, type StateFieldValueInput, type StaticRenderLeafProps, StrikethroughRules, type StructuralRuleContext, type StructuralRuleEditor, type TargetFreshnessRequest, TaskListRules, Text, TextAlignDefinition, TextApi, type TextDeleteOptions, type TextDirection, TextEntry, TextEntryIn, TextEntryOf, TextEqualsOptions, TextIn, TextIndentDefinition, TextIndentPluginState, type TextInsertFragmentOptions, type TextInsertTextOptions, TextInterface, type TextMutationMethods, TextOf, type TextRemoveTextOptions, TextSelection, type TextStaticProps, TextSubstitutionInputRuleConfig, TextSubstitutionMatch, TextSubstitutionPattern, type TextUnit, type TextUnitAdjustment, type TextWith, type ToggleBlockCommand, ToggleHeadingOptions, ToggleListOptions, type ToggleMarkCommand, type TopLevelRuntimeRange, TrailingBlockDefinition, TrailingBlockPlugin, TrailingBlockPluginState, type TransactionSpec, type TransferAdoptInput, type TransferApi, type TransferCheck, type TransferDefinition, type TransferDiagnostic, type TransferEdge, type TransferInput, type TransferIntent, type TransferLandingInput, type TransferLandingTarget, type TransferOutcome, type TransferPatch, type TransferPatchProperties, type TransferPayload, TransferPlugin, type TransferRead, type TransferRefusalReason, type TransferRelation, type TransferSide, type TransferSideInput, type TransferSourceInput, type TransferTarget, type TransferVeto, type TransferVetoInput, type TransferWrap, TransformInputRuleContext, type TransformOptions, type TxDeclaredMethod, type TxMethodDeclarations, type TxOnlyMethod, UnderlineRules, type UnknownObject, UnwrapLinkOptions, UpsertLinkOptions, type Value, type ValueOf, type WithAnyName, type WithRequiredName, WrapLinkOptions, applyDeepToNodes, authoredVeto, compileEditorSchemaContract, createBlockFenceInputRule, createBlockStartInputRule, createEditor, createEditorView, createHotkey, createMarkInputRule, createTextSubstitutionInputRule, decodeEditorEffect, defaultsDeepToNodes, defineCommand, defineEditorSchema, defineEffect, defineInputRule, definePlugin, definePluginPoint, definePluginSlot, defineStateField, defineUpdateAnnotation, diffEditorSchemaContracts, documentReplacement, editorCommands, editorReads, encodeEditorEffect, formatting, getEditorRuntimeOwner, getFragmentProp, getInjectMatch, getLinkHref, getPluginNodeClass, inputRuleVeto, invertEffect, isDefined, isEditor, isHotkey, isNominalPluginDescriptor, isOrderedList, isPluginElementClass, isPluginNodeClass, isUrl, locateAt, mapEffect, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, nodeWriteVeto, property, readEditorSchemaContract, getSelection as readEditorSelection, restoreEditorSchemaContract, schema, screenReaderAnnouncementEffect, serializePlainText, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection, valueCodecs };
|
|
1
|
+
import { $ as EditorBreakExitOptions, $a as Path, $c as SnapshotIndex, $i as MarksOf, $l as TransferSourceInput, $o as PropertyBuilderApi, $r as EditorTransactionSpecBuilder, $s as SchemaElementStructure, A as CompatibleEditorCommand, Aa as NodeMutationMethods, Ac as SchemaTextPropertyOptions, Ai as ElementIsElementOptions, Al as ToggleBlockCommand, An as EditorSchemaDeclaration, Ao as PluginReadContext, Ar as EditorTextChangeHandler, As as SchemaContentPrefixSlot, At as EditorEffectCollabTransport, B as DeleteFragmentCommand, Ba as NodeTarget, Bc as SelectionMode, Bi as InsertNodesCommand, Bl as TransferIntent, Bn as EditorSchemaNamedDefinition, Br as EditorTransactionChanged, Bs as SchemaElementConstructionPropertiesFor, Bt as EditorInstalledUpdateGroups, Bu as isEditor, C as BlockDuplicateOptions, Ca as NodeKey, Cc as SchemaTarget, Ci as Element, Cl as TextMutationMethods, Cn as EditorSchemaContractChangeKind, Cr as EditorStateUniqueApi, Ct as EditorDocumentRange, Da as NodeMatchPredicate, Dc as SchemaTextProperty, Di as ElementIdTarget, Dl as TextTarget, Dn as EditorSchemaContractElement, Do as PluginPoint, Ds as SchemaContentDefault, Dt as EditorEffectCollabDecodeContext, Du as editorCommands, E as BooleanMarksOf, Ea as NodeMatch, Ec as SchemaTextProperties, Ei as ElementEntryOf, El as TextSelection, En as EditorSchemaContractDiff, Eo as PluginMigrationContext, Er as EditorStateViewApi, Es as SchemaContent, Et as EditorEffect, Eu as documentReplacement, F as DecorationAttributes, Fa as NodeReplaceChildrenOptions, Fc as Selection, Fi as HistoryOutcome, Fl as TransferApi, Fn as EditorSchemaElementOverride, Fr as EditorTransactionAnnotationsApi, Fs as SchemaContentRootSlotsFor, Ft as EditorFragmentDeletionOptions, G as DescendantEntryOf, Ga as NodeTextRangeView, Gc as SerializedEditorEffect, Gi as JsonNode, Gl as TransferPatchProperties, Gn as EditorSchemaProperty, Go as PluginsFromOptions, Gr as EditorTransactionMarksApi, Gs as SchemaElementPropertiesFor, Gt as EditorLifecycleErrorSink, H as Descendant, Ha as NodeTextRangeMatch, Hc as SelectionMutationMethods, Hi as InsertTextCommand, Hl as TransferLandingTarget, Hn as EditorSchemaOverrideInput, Ho as PluginUpdateFactory, Hr as EditorTransactionDocumentChangeKind, Hs as SchemaElementHandle, Ht as EditorJsonValue, Hu as mapEffect, I as DecorationRefresh, Ia as NodeSelection, Ic as SelectionApi, Ii as HistoryResult, Il as TransferCheck, In as EditorSchemaElementOverrideInput, Io as PluginSlot, Ir as EditorTransactionBlocksApi, Is as SchemaContentRootStructure, It as EditorFragmentReadOptions, J as DocumentChange, Ja as NodeUnsetNodesOptions, Jc as SetNodesCommand, Ji as Location, Jl as TransferRead, Jn as EditorSchemaPropertyQuery, Jo as PointApi, Jr as EditorTransactionRecordsApi, Js as SchemaElementPropertyKeys, Jt as EditorNextOptions, K as DescendantIn, Ka as NodeTextsOptions, Kc as SerializedEditorSelection, Ki as LeafEdge, Kl as TransferPayload, Kn as EditorSchemaPropertyOverride, Ko as PluginsOf, Kr as EditorTransactionNodesApi, Ks as SchemaElementProperty, Kt as EditorMarks, Ku as property, L as DecorationSource, La as NodeSelectionMode, Lc as SelectionAssociation, Li as HistorySettlement, Ll as TransferDiagnostic, Ln as EditorSchemaElementStructure, Lo as PluginSlotLike, Lr as EditorTransactionBreakApi, Ls as SchemaContentRule, Ma as NodeOf, Mc as SchemaValue, Mi as ElementOrTextIn, Ml as TopLevelRuntimeRange, Mn as EditorSchemaDelta, Mo as PluginReadFactoryContext, Mr as EditorToggleMarkOptions, Ms as SchemaContentRootContribution, Mt as EditorEffectType, Mu as getEditorRuntimeOwner, N as DebugValueScrubber, Na as NodeProps, Nc as SchemaValueFromPlugins, Ni as ElementOrTextOf, Nl as TransactionSpec, Nn as EditorSchemaDerivedDefinition, No as PluginReadMiddlewareFactory, Nr as EditorTransactionAnchor, Ns as SchemaContentRootInput, Nt as EditorElementBehavior, O as ChildOf, Oa as NodeMergeNodesOptions, Oc as SchemaTextPropertyDefinition, Oi as ElementIn, Ol as TextUnit, On as EditorSchemaContractRoot, Or as EditorTargetRuntime, Os as SchemaContentInput, Ot as EditorEffectCollabEncodeContext, Ou as editorReads, P as Decoration, Pa as NodeRemoveNodesOptions, Pc as SelectCommand, Pi as HistoryApi, Pl as TransferAdoptInput, Pn as EditorSchemaElement, Po as PluginReconfigureOptions, Pr as EditorTransactionAnchorApi, Ps as SchemaContentRootOwnership, Pt as EditorElementEntry, Pu as getSelection, Q as EditorBlockToggleOptions, Qa as NodeWriteVetoInput, Qc as SliceLandingTarget, Qi as MarksIn, Ql as TransferSideInput, Qn as EditorSchemaSource, Qo as PropertyBooleanDescriptor, Qr as EditorTransactionSliceApi, Qs as SchemaElementSlicePolicy, Qt as EditorNodeGetOptions, Qu as setDebugValueScrubber, Ra as NodeSetNodesOptions, Rc as SelectionCollapseOptions, Ri as InitialValue, Rl as TransferEdge, Rn as EditorSchemaGetProperty, Ro as PluginSlotValue, Rr as EditorTransactionChangeContext, Rs as SchemaDescendant, Rt as EditorInstalledApiGroups, Ru as invertEffect, S as BaseText, Sa as NodeIsNodeOptions, Sc as SchemaRootNames, Si as EditorViewOptions, Sl as TextInterface, Sn as EditorSchemaContractChange, Sr as EditorStateTextApi, Ss as ReplaceSliceCommand, Su as defineUpdateAnnotation, T as BooleanMarkKeysOf, Ta as NodeLiftNodesOptions, Tc as SchemaTextBlockOptions, Ti as ElementEntry, Tl as TextRemoveTextOptions, Tn as EditorSchemaContractContentRoot, Tr as EditorStateView, Ts as SchemaBuiltInGroupName, Tt as EditorDocumentValue, Tu as diffEditorSchemaContracts, U as DescendantEntry, Ua as NodeTextRangeQuery, Uc as SelectionSetPointOptions, Ul as TransferOutcome, Un as EditorSchemaPlugin, Uo as PluginUpdateFactoryContext, Ur as EditorTransactionEffectsApi, Us as SchemaElementInput, Ut as EditorLevelsOptions, V as DerivedEditorSchemaIdentity, Va as NodeTextRangeEntry, Vc as SelectionMoveOptions, Vi as InsertSoftBreakCommand, Vl as TransferLandingInput, Vn as EditorSchemaOverride, Vo as PluginTypes, Vr as EditorTransactionChangesApi, Vs as SchemaElementFor, Vt as EditorIsEditorOptions, Vu as locateAt, W as DescendantEntryIn, Wa as NodeTextRangeRoot, Wc as SelectionValue, Wi as JsonEditorValue, Wl as TransferPatch, Wr as EditorTransactionFragmentApi, Ws as SchemaElementProperties, Wt as EditorLifecycleError, Wu as nodeWriteVeto, X as EditorAboveOptions, Xa as NodeWrapNodesOptions, Xc as SliceLanding, Xi as LocationInterface, Xl as TransferRelation, Xn as EditorSchemaReadProperty, Xo as PointInterface, Xr as EditorTransactionRootsApi, Xs as SchemaElementPropertyValue, Xt as EditorNodeChangeHandler, Xu as schema$1, Ya as NodeUnwrapNodesOptions, Yc as SetSelectionCommand, Yi as LocationApi, Yl as TransferRefusalReason, Yn as EditorSchemaPropertyReadOptions, Yo as PointEntry, Yr as EditorTransactionRemoved, Ys as SchemaElementPropertyOptions, Yt as EditorNodeChangeContext, Yu as restoreEditorSchemaContract, Z as EditorBlockOptions, Za as NodeWriteVeto, Zc as SliceLandingInput, Zi as MarkKeysOf, Zl as TransferSide, Zn as EditorSchemaRepairCode, Zo as ProjectedRangeSegment, Zr as EditorTransactionSelectionApi, Zs as SchemaElementShapeFor, Zt as EditorNodeChangeKind, Zu as screenReaderAnnouncementEffect, _ as AuthoredVeto, _a as NodeHasPropsOptions, _c as SchemaPropertyReferences, _i as EditorValueFromOptions, _l as TextEntryOf, _n as EditorRootEntry, _r as EditorStateRangesApi, _s as RangeEdgesOptions, _t as EditorCommitRuntimeChangeKind, _u as defineEditorSchema, a as AncestorIn, aa as Node, ac as SchemaKeyPrefix, ad as transferVeto, ai as EditorUpdate, al as StateFieldDescriptor, an as EditorRead, ao as PlacedTarget, ar as EditorSchemaValidationPropertyContext, as as PropertySetDescriptor, at as EditorCommandDispatch, au as TxMethodDeclarations, b as BasePoint, ba as NodeInsertSplitOptions, bc as SchemaPropertyTypeChangePolicy, bl as TextInsertFragmentOptions, bn as EditorSchemaContentRoot, br as EditorStateSelectionApi, bs as RemoveMarkCommand, bt as EditorCoreUpdateTransaction, bu as definePluginSlot, c as AnchorAssociation, ca as NodeChildEntry, cc as SchemaProperty, cd as txSelection, ci as EditorUpdateMethods, cl as StateFieldValueInput, cn as EditorReadDescriptor, co as PluginApiFactory, cr as EditorSelectionBlockOptions, cs as PropertyValidation, ct as EditorCommandPlace, cu as ValueOf, d as AnchorValue, da as NodeDuplicateOptions, dc as SchemaPropertyExclusiveGroup, di as EditorUpdateTag, dl as Text, dn as EditorReadMethodTree, do as PluginCandidateEditor, dr as EditorSnapshot, ds as PropertyValueOf, dt as EditorCommit, du as authoredVeto, ea as MaximizeMode, ec as SchemaElementTarget, ed as setEditorReadOnly, ei as EditorTransactionTagsApi, el as SnapshotInput, en as EditorNodeUnsetOptions, eo as PathAncestorsOptions, er as EditorSchemaStructureProperty, es as PropertyEnumDescriptor, et as EditorCanonicalUpdateTag, eu as TransferTarget, fa as NodeElementsOptions, fc as SchemaPropertyHandle, fi as EditorUpdateTagInput, fl as TextApi, fn as EditorReadMethods, fo as PluginCapabilities, fr as EditorStateField, fs as PropertyValueOptions, ft as EditorCommitChangeKind, g as AuthoredTouch, ga as NodeFindTextRangesOptions, gc as SchemaPropertyLandingPolicy, gi as EditorUpdateValueFromPlugin, gl as TextEntryIn, gn as EditorReplaceNodeOptions, go as PluginDefinition, gr as EditorStatePointsApi, gs as RangeDirection, gt as EditorCommitListener, gu as defineCommand$1, ha as NodeEntryOf, hc as SchemaPropertyKey, hl as TextEntry, hn as EditorReplaceChildrenOptions, ho as PluginContributionInput, hr as EditorStateNodesApi, hs as RangeApi, ht as EditorCommitHandler, hu as decodeEditorEffect, i as AncestorEntryOf, ia as NamedRootKey, ic as SchemaGroupOptions, id as transfer, ii as EditorUniqueHolder, il as StateFieldCollabPolicy, in as EditorPreviousOptions, io as PersistedDocumentInput, ir as EditorSchemaValidationError, is as PropertyOptionsOf, it as EditorCommandDescriptor, iu as TxDeclaredMethod, j as ContentSlice, ja as NodeNodesOptions, jc as SchemaTypesTarget, ji as ElementOf, jl as ToggleMarkCommand, jn as EditorSchemaDefinition, jo as PluginReadFactory, jr as EditorToggleBlockOptions, js as SchemaContentRoot, jt as EditorEffectHistoryReplayResult, k as CollapseSelectionCommand, ka as NodeMoveNodesOptions, kc as SchemaTextPropertyKeys, ki as ElementInterface, kl as TextUnitAdjustment, kn as EditorSchemaContribution, ko as PluginPublicationError, kr as EditorTextChangeContext, ks as SchemaContentOptions, kt as EditorEffectCollabReplay, ku as encodeEditorEffect, l as AnchorDeletionPolicy, la as NodeChildrenOptions, lc as SchemaPropertyCopyPolicy, li as EditorUpdatePolicy, ln as EditorReadInput, lo as PluginApiFactoryContext, lr as EditorSelectionTargetOptions, ls as PropertyValueDescriptor, lt as EditorCommandResult, lu as WithNodeTarget, m as AuthoredProjectionDiagnostic, ma as NodeEntryIn, mc as SchemaPropertyIds, ml as TextDirection, mn as EditorReadResult, mo as PluginContribution, mr as EditorStateMarksApi, ms as RangeAnchorAssociation, mt as EditorCommitContext, mu as createEditorView, n as Ancestor, na as MoveUnit, nc as SchemaGroup, ni as EditorTransactionTopLevelRange, nl as SpanApi, nn as EditorNodesReadOptions, no as PathInterface, nr as EditorSchemaValidationCode, ns as PropertyJsonOptions, nt as EditorCommandAroundHandler, nu as TransferVetoInput, o as AncestorOf, oa as NodeAncestorsOptions, od as txLocate, oi as EditorUpdateAnnotation, ol as StateFieldHistoryPolicy, on as EditorReadAroundHandler, or as EditorSchemaVocabulary, os as PropertySetOptions, ot as EditorCommandHandler, ou as TxOnlyMethod, p as AuthoredDocumentProjection, pa as NodeEntry, pc as SchemaPropertyHandleValue, pi as EditorUpdateTransaction, pl as TextDeleteOptions, pn as EditorReadRegistration, po as PluginCleanupContext, pr as EditorStateFragmentApi, ps as Range, pt as EditorCommitChanged, pu as compileEditorSchemaContract, q as DescendantOf, qa as NodeTypeSelector, qc as SerializedEditorValue, qi as LeafPosition, qn as EditorSchemaPropertyOverrideInput, qo as Point, qr as EditorTransactionPluginsApi, qs as SchemaElementPropertyDefinition, qt as EditorMarksOf, qu as readEditorSchemaContract, r as AncestorEntry, ra as NamedEditorSchemaIdentity, rc as SchemaGroupNames, rd as target, ri as EditorTransactionValueApi, rl as SpanInterface, rn as EditorParentOptions, ro as PathLevelsOptions, rr as EditorSchemaValidationDiagnostic, rs as PropertyNumberDescriptor, rt as EditorCommandContinuation, ru as TransferWrap, s as Anchor, sa as NodeApi, sc as SchemaPluginsOf, sd as txOnly, si as EditorUpdateContext, sl as StateFieldInitial, sn as EditorReadContext, so as PluginActivationContext, sr as EditorSelection, ss as PropertyStringDescriptor, st as EditorCommandInput, su as Value, t as AddMarkCommand, ta as MoveSelectionCommand, tc as SchemaElementTypes, td as setEditorViewing, ti as EditorTransactionTextApi, tl as Span, tn as EditorNodesOptions, to as PathApi, tr as EditorSchemaUnknownPolicy, ts as PropertyJsonDescriptor, tt as EditorCommand, tu as TransferVeto, u as AnchorOptions, ua as NodeDescendantsOptions, uc as SchemaPropertyDefinition, ud as valueCodecs, ui as EditorUpdatePolicyFor, ul as TargetFreshnessRequest, un as EditorReadMethodRecord, uo as PluginCandidateContext, ur as EditorSliceReadOptions, us as PropertyValueKind, ut as EditorCommands, v as BaseElement, va as NodeIn, vc as SchemaPropertyRole, vi as EditorValueFromPlugins, vl as TextEqualsOptions, vn as EditorRootOwner, vr as EditorStateRuntimeApi, vs as RangeInterface, vt as EditorCoreStateView, vu as defineEffect, wa as NodeLevelsOptions, wc as SchemaText, wi as ElementApi, wl as TextOf, wn as EditorSchemaContractContentProgram, wo as PluginInput, wr as EditorStateValueApi, ws as RootKey, wt as EditorDocumentRecords, x as BaseRange, xa as NodeInterface, xc as SchemaRecordSet, xi as EditorView, xl as TextInsertTextOptions, xn as EditorSchemaContract, xr as EditorStateSliceApi, xs as RemoveNodesCommand, xt as EditorDirectCommandDispatch, xu as defineStateField, y as BaseNode, ya as NodeInsertNodesOptions, yc as SchemaPropertySplitPolicy, yi as EditorValuePersistence, yl as TextIn, yn as EditorSchemaContent, yo as PluginDependencyReference, yr as EditorStateSchemaApi, ys as RangeMode, yt as EditorCoreUpdateMethods, yu as definePluginPoint, z as DeleteCommand, za as NodeSplitNodesOptions, zc as SelectionEdge, zi as InsertBreakCommand, zl as TransferInput, zn as EditorSchemaIdentity, zo as PluginTypeProvider, zr as EditorTransactionChangeHandler, zs as SchemaElement, zt as EditorInstalledReadGroups } from "./index-BXjLmx1n-CXk17buG.js";
|
|
2
|
+
import { h as EditorApplicationSchema } from "./htmlTypes-eT2ZGDAj.js";
|
|
3
|
+
import { $a as InferConflicts, $i as HistoryPlugin, $n as HeadingRules, $r as InputRulesConfig, $t as UpsertLinkOptions, Aa as PluginFormatSchemaView, Ai as AutoScrollChangeKind, An as CapturedFormat, Ao as PluginSelector, Ar as BaseParagraphDefinition, At as PlainTextSerializeResult, B as InjectNodeProps, Ba as nanoid, Bi as DebugDefinition, Bn as BaseStrikethroughPlugin, Bo as StructuralRuleEditor, Br as HtmlPlugin, Bt as OutdentListOptions, C as BasePluginOn, Ca as MarkdownRefusal, Ci as TransformInputRuleContext, Cn as BaseTextAlignPlugin, Co as PluginReference, Cr as RenderTextFn, Ct as PluginTransaction, Da as PluginFormatContext, Di as ElementIdPlugin, Dn as TextIndentDefinition, Do as PluginSchemaElement, Dr as RenderLeafFn, Dt as PlainTextDiagnostic, E as ConfiguredBasePlugin, Ea as HtmlMappingDiagnosticInput, Ei as ElementStatePlugin, En as TextAlignDefinition, Eo as PluginSchemaDeclaration, Er as RenderTextProps, F as HtmlMatchValue, Fa as HandlerReturnType, Fi as DomPluginState, Fn as BaseCodePlugin, Fo as PluginStore, Fr as createBlockStartInputRule, Ft as BulletedListRules, G as PluginShortcutInput, Gi as LogLevel, Gn as ItalicRules, Gr as BlockStartInputRuleConfig, Gt as BaseLinkDefinition, H as LeafStaticProps, Hi as DebugPlugin, Hn as BoldRules, Ho as WithRequiredName, Hr as BaseInputRule, Ht as ToggleListOptions, I as HtmlMatcher, Ia as DocxNodeMapping, Ii as DomPluginUpdate, In as BaseHighlightPlugin, Ir as createMarkInputRule, It as ListElement, J as RenderStaticNodeWrapperProps, Ja as DeleteRules, Ji as AffinityPlugin, Jn as ScriptValue, Jo as UnknownObject, Jr as DelimitedInlineInputRuleMatch, Jt as CreateLinkNodeOptions, K as RenderStaticNodeWrapper, Ka as BreakRules, Ki as AffinityDefinition, Kn as MarkComboRules, Ko as Nullable, Kr as BlockStartInputRuleMatch, Kt as BaseLinkPlugin, L as HtmlNodeSpec, La as ElementWith, Li as ScrollIntoViewTarget, Ln as BaseItalicPlugin, Lo as RuleDecision, Lr as createTextSubstitutionInputRule, Lt as ListStyle, M as HtmlAttributes, Ma as RenderElementFn, Mi as AutoScrollOptions, Mn as FormattingContribution, Mo as PluginSelectorMethods, Mr as inputRuleVeto, Mt as BULLETED_LIST_STYLES, N as HtmlContentToken, Na as RenderElementProps, Ni as AutoScrollUpdate, Nn as formatting, No as PluginSelectorReturn, Nr as defineInputRule, Nt as BaseListDefinition, O as DeclaredPluginShortcutInput, Oa as PluginFormatModelView, Oi as ElementIdPluginState, On as TextIndentPluginState, Oo as PluginSchemaMark, Or as RenderLeafProps, Ot as PlainTextDocumentOptions, P as HtmlElementPatch, Pa as RenderElementSlots, Pi as DomApi, Pn as BaseBoldPlugin, Po as PluginSelectors, Pr as createBlockFenceInputRule, Pt as BaseListPlugin, Qa as InferApi, Qi as HistoryDefinition, Qn as HeadingLevel, Qr as InputRuleTarget, Qt as UnwrapLinkOptions, R as HtmlPrepareDiagnosticInput, Ra as PluginFormatNode, Ri as ScrollMode, Rn as BaseKbdPlugin, Ro as SelectionRules, Rr as matchBlockStart, Rt as ListType, S as BasePluginImplementationContext, Sa as MarkdownPluginRegistry, Si as TextSubstitutionPattern, Sn as BaseLineHeightPlugin, Sr as EditableProps, St as PluginState, T as BasePluginPortal, Ta as MarkdownTagNode, Ti as ElementStateDefinition, Tn as LineHeightDefinition, To as PluginSchemaContext, Tr as RenderTextPieceProps, U as NodeStaticProps, Ua as BaseInjectProps, Ui as DebugPluginState, Un as CodeRules, Ur as BlockFenceInputRuleConfig, Ut as isOrderedList, Vi as DebugErrorType, Vn as BaseUnderlinePlugin, Vo as WithAnyName, Vt as TaskListRules, W as PartialBasePlugin, Wa as BasePluginDefinition, Wi as EditorError, Wn as HighlightRules, Wr as BlockFenceInputRuleMatch, X as TransformOptions, Xa as GetInjectNodePropsOptions, Xi as TransferDefinition, Xn as UnderlineRules, Xr as InputRuleEditor, Xt as LinkElement, Y as TextStaticProps, Ya as EditOnlyConfig, Yi as AffinityPluginUpdate, Yn as StrikethroughRules, Yr as InputRule, Yt as LinkAttributes, Za as GetInjectNodePropsReturnType, Zi as TransferPlugin, Zn as BaseHeadingPlugin, Zr as InputRuleInsertTextOptions, Zt as LinkRules, _ as BasePlugin, _a as MarkdownMarks, _i as ResolvedInputRule, _n as Alignment, _r as getFragmentProp, _t as NodeInsertOptions, a as SingleLinePlugin, ai as InsertDataFollowUpInputRule, an as IndentPluginState, ao as InferOwnUpdate, ar as getPluginNodeClass, b as BasePluginDefinitionInput, ba as MarkdownNodeMapping, bi as TextSubstitutionInputRuleConfig, bn as BaseFontFamilyPlugin, br as ApplyDeepToNodesOptions, c as PLUGINS, ci as InsertDataInputRuleReadContext, cn as BaseCodeBlockPlugin, co as InferPluginUpdateGroups, cr as mergeDeepToNodes, ct as BlockInsertOptions, da as PlainTextNodeMapping, di as InsertTextInputRuleReadContext, dn as CodeBlockElement, do as InferSelectors, dr as Hotkeys, ea as HistoryPluginState, ei as InputRulesDefinition, en as WrapLinkOptions, eo as InferDependencies, er as ToggleHeadingOptions, et as CreateEditorOptions, fa as PlainTextNodeMappingInput, fi as MarkInputRuleConfig, fn as CodeHighlightDefinition, fo as InferTargetPlugins, fr as createHotkey, ga as MarkdownMarkWrapper, gi as MatchDelimitedInlineOptions, gn as HighlightResult, gr as GetFragmentPropOptions, ha as MarkdownMarkWrapContext, hi as MatchBlockStartOptions, hn as HighlightNode, ho as NodeComponent, hr as FragmentPropMode, i as TrailingBlockPluginState, ii as InsertDataFollowUpContext, in as IndentDefinition, io as InferOwnRead, ir as HorizontalRuleRules, j as EditorShortcut, ja as ElementContentRootSlot, ji as AutoScrollChangesMap, jn as FormattingBlockEntry, jo as PluginSelectorArgs, jr as BaseParagraphPlugin, jt as serializePlainText, k as Decorate, ka as PluginFormatRegistry, ki as AutoScrollApi, kn as BaseFormattingPlugin, ko as PluginSchemaReferences, kr as StaticRenderLeafProps, kt as PlainTextEditorOptions, l as PluginName, li as InsertTextInputRule, ln as BaseCodeHighlightPlugin, lr as isUrl, lt as BlockUpsertOptions, ma as MarkdownEncodeContext, mi as MatchBlockFenceOptions, mn as CodeHighlightPluginState, mo as MergeRules, mr as getInjectMatch, n as TrailingBlockDefinition, ni as InsertBreakInputRuleContext, nn as BaseIndentPlugin, no as InferName, nr as BaseHorizontalRulePlugin, o as SingleBlockPlugin, oi as InsertDataInputRule, oo as InferPluginReadGroups, or as isPluginElementClass, ot as createEditor, pa as MarkdownDecodeContext, pi as MarkInputRuleMatch, pn as CodeHighlightLowlight, po as InferUpdate, pr as isHotkey, q as RenderStaticNodeWrapperFunction, qa as DefinitionOf, qi as AffinityEdgeNodes, qn as ScriptRules, qo as AnyObject, qr as DefinedInsertDataFollowUpInputRule, qt as BaseLinkPluginState, r as TrailingBlockPlugin, ri as InsertBreakInputRuleReadContext, rn as IndentChangeOptions, ro as InferOwnApi, rr as BlockquoteRules, rt as EditorValueInput, s as ExitBreakPlugin, si as InsertDataInputRuleContext, sn as CodeBlockRules, so as InferPluginStoreState, sr as isPluginNodeClass, st as BasePluginInput, t as isNominalPluginDescriptor, ta as definePlugin, ti as InsertBreakInputRule, tn as getLinkHref, to as InferEnabled, tr as BaseBlockquotePlugin, u as Editor, ua as PlainTextEncodeContext, ui as InsertTextInputRuleContext, un as CodeBlockDefinition, uo as InferRead, ur as isDefined, v as BasePluginConfiguration, va as MarkdownNodeKind, vi as ResolvedInputRulesMeta, vn as BaseFontBackgroundColorPlugin, vo as NormalizeRules, vr as IS_APPLE, w as BasePluginOverride, wa as MarkdownTagAttributeView, wi as ElementStateApi, wn as BaseTextIndentPlugin, wo as PluginSchema, wr as RenderTextHostProps, wt as PluginUpdate, x as BasePluginExtendInput, xa as MarkdownNodeMappingInput, xi as TextSubstitutionMatch, xn as BaseFontSizePlugin, xo as PluginDependency, xr as applyDeepToNodes, xt as PluginReadState, y as BasePluginContext, ya as MarkdownNodeKinds, yi as SelectionInputRuleContext, yn as BaseFontColorPlugin, yo as PluginBaseContext, yr as defaultsDeepToNodes, yt as PluginOwnUpdate, z as HtmlWrapperSpec, za as TextWith, zi as DebugApi, zn as BaseScriptPlugin, zo as StructuralRuleContext, zr as matchDelimitedInline, zt as OrderedListRules } from "./core-BqR-fEDp.js";
|
|
4
|
+
export { type AddMarkCommand, AffinityDefinition, AffinityEdgeNodes, AffinityPlugin, AffinityPluginUpdate, Alignment, Ancestor, AncestorEntry, AncestorEntryOf, AncestorIn, AncestorOf, type Anchor, type AnchorAssociation, type AnchorDeletionPolicy, type AnchorOptions, type AnchorValue, type AnyObject, ApplyDeepToNodesOptions, type AuthoredDocumentProjection, type AuthoredProjectionDiagnostic, type AuthoredTouch, type AuthoredVeto, type AutoScrollApi, type AutoScrollChangeKind, type AutoScrollChangesMap, type AutoScrollOptions, type AutoScrollUpdate, BULLETED_LIST_STYLES, BaseBlockquotePlugin, BaseBoldPlugin, BaseCodeBlockPlugin, BaseCodeHighlightPlugin, BaseCodePlugin, BaseElement, BaseFontBackgroundColorPlugin, BaseFontColorPlugin, BaseFontFamilyPlugin, BaseFontSizePlugin, BaseFormattingPlugin, BaseHeadingPlugin, BaseHighlightPlugin, BaseHorizontalRulePlugin, BaseIndentPlugin, type BaseInjectProps, BaseInputRule, BaseItalicPlugin, BaseKbdPlugin, BaseLineHeightPlugin, BaseLinkDefinition, BaseLinkPlugin, BaseLinkPluginState, BaseListDefinition, BaseListPlugin, BaseNode, BaseParagraphDefinition, BaseParagraphPlugin, type BasePlugin, type BasePlugin as Plugin, type BasePluginConfiguration, type BasePluginContext, type BasePluginDefinition, type BasePluginDefinitionInput, type BasePluginDefinitionInput as PluginDefinitionInput, type BasePluginExtendInput, type BasePluginImplementationContext, type BasePluginInput, type BasePluginOn, type BasePluginOverride, type BasePluginPortal, type BasePluginPortal as PluginPortal, BasePoint, BaseRange, BaseScriptPlugin, BaseStrikethroughPlugin, BaseText, BaseTextAlignPlugin, BaseTextIndentPlugin, BaseUnderlinePlugin, type BlockDuplicateOptions, BlockFenceInputRuleConfig, BlockFenceInputRuleMatch, type BlockInsertOptions, BlockStartInputRuleConfig, BlockStartInputRuleMatch, type BlockUpsertOptions, BlockquoteRules, BoldRules, BooleanMarkKeysOf, BooleanMarksOf, type BreakRules, BulletedListRules, CapturedFormat, ChildOf, CodeBlockDefinition, CodeBlockElement, CodeBlockRules, CodeHighlightDefinition, CodeHighlightLowlight, CodeHighlightPluginState, CodeRules, type CollapseSelectionCommand, type CompatibleEditorCommand, type ConfiguredBasePlugin, ContentSlice, type CreateEditorOptions, CreateLinkNodeOptions, DebugApi, DebugDefinition, DebugErrorType, DebugPlugin, DebugPluginState, type DebugValueScrubber, type DeclaredPluginShortcutInput, type Decorate, type Decoration, type DecorationAttributes, type DecorationRefresh, type DecorationSource, DefinedInsertDataFollowUpInputRule, type DefinitionOf, type DeleteCommand, type DeleteFragmentCommand, type DeleteRules, DelimitedInlineInputRuleMatch, type DerivedEditorSchemaIdentity, Descendant, DescendantEntry, DescendantEntryIn, DescendantEntryOf, DescendantIn, DescendantOf, DocumentChange, type DocxNodeMapping, type DomApi, type DomPluginState, type DomPluginUpdate, type EditOnlyConfig, type EditableProps, type Editor, type EditorAboveOptions, type EditorApplicationSchema, type EditorBlockOptions, type EditorBlockToggleOptions, type EditorBreakExitOptions, type EditorCanonicalUpdateTag, type EditorCommand, type EditorCommandAroundHandler, type EditorCommandContinuation, type EditorCommandDescriptor, type EditorCommandDispatch, type EditorCommandHandler, type EditorCommandInput, type EditorCommandPlace, type EditorCommandResult, type EditorCommands, type EditorCommit, type EditorCommitChangeKind, type EditorCommitChanged, type EditorCommitContext, type EditorCommitHandler, type EditorCommitListener, type EditorCommitRuntimeChangeKind, type EditorCoreStateView, type EditorCoreUpdateMethods, type EditorCoreUpdateTransaction, type EditorDirectCommandDispatch, type EditorDocumentRange, type EditorDocumentRecords, type EditorDocumentValue, type EditorEffect, type EditorEffectCollabDecodeContext, type EditorEffectCollabEncodeContext, type EditorEffectCollabReplay, type EditorEffectCollabTransport, type EditorEffectHistoryReplayResult, type EditorEffectType, type EditorElementBehavior, type EditorElementEntry, EditorError, type EditorFragmentDeletionOptions, type EditorFragmentReadOptions, type EditorInstalledApiGroups, type EditorInstalledReadGroups, type EditorInstalledUpdateGroups, type EditorIsEditorOptions, type EditorJsonValue, type EditorLevelsOptions, type EditorLifecycleError, type EditorLifecycleErrorSink, type EditorMarks, type EditorMarksOf, type EditorNextOptions, type EditorNodeChangeContext, type EditorNodeChangeHandler, type EditorNodeChangeKind, type EditorNodeGetOptions, type EditorNodeUnsetOptions, type EditorNodesOptions, type EditorNodesReadOptions, type EditorParentOptions, type EditorPreviousOptions, type EditorRead, type EditorReadAroundHandler, type EditorReadContext, type EditorReadDescriptor, type EditorReadInput, type EditorReadMethodRecord, type EditorReadMethodTree, type EditorReadMethods, type EditorReadRegistration, type EditorReadResult, type EditorReplaceChildrenOptions, type EditorReplaceNodeOptions, type EditorRootEntry, type EditorRootOwner, type EditorSchemaContent, type EditorSchemaContentRoot, type EditorSchemaContract, type EditorSchemaContractChange, type EditorSchemaContractChangeKind, type EditorSchemaContractContentProgram, type EditorSchemaContractContentRoot, type EditorSchemaContractDiff, type EditorSchemaContractElement, type EditorSchemaContractRoot, type EditorSchemaContribution, type EditorSchemaDeclaration, type EditorSchemaDefinition, type EditorSchemaDelta, type EditorSchemaDerivedDefinition, type EditorSchemaElement, type EditorSchemaElementOverride, type EditorSchemaElementOverrideInput, type EditorSchemaElementStructure, type EditorSchemaGetProperty, type EditorSchemaIdentity, type EditorSchemaNamedDefinition, type EditorSchemaOverride, type EditorSchemaOverrideInput, type EditorSchemaPlugin, type EditorSchemaProperty, type EditorSchemaPropertyOverride, type EditorSchemaPropertyOverrideInput, type EditorSchemaPropertyQuery, type EditorSchemaPropertyReadOptions, type EditorSchemaReadProperty, type EditorSchemaRepairCode, type EditorSchemaSource, type EditorSchemaStructureProperty, type EditorSchemaUnknownPolicy, type EditorSchemaValidationCode, type EditorSchemaValidationDiagnostic, EditorSchemaValidationError, type EditorSchemaValidationPropertyContext, type EditorSchemaVocabulary, EditorSelection, type EditorSelectionBlockOptions, type EditorSelectionTargetOptions, type EditorShortcut, type EditorSliceReadOptions, type EditorSnapshot, type EditorStateField, type EditorStateFragmentApi, type EditorStateMarksApi, type EditorStateNodesApi, type EditorStatePointsApi, type EditorStateRangesApi, type EditorStateRuntimeApi, type EditorStateSchemaApi, type EditorStateSelectionApi, type EditorStateSliceApi, type EditorStateTextApi, type EditorStateUniqueApi, type EditorStateValueApi, type EditorStateView, type EditorStateViewApi, type EditorTargetRuntime, type EditorTextChangeContext, type EditorTextChangeHandler, type EditorToggleBlockOptions, type EditorToggleMarkOptions, type EditorTransactionAnchor, type EditorTransactionAnchorApi, type EditorTransactionAnnotationsApi, type EditorTransactionBlocksApi, type EditorTransactionBreakApi, type EditorTransactionChangeContext, type EditorTransactionChangeHandler, type EditorTransactionChanged, type EditorTransactionChangesApi, type EditorTransactionDocumentChangeKind, type EditorTransactionEffectsApi, type EditorTransactionFragmentApi, type EditorTransactionMarksApi, type EditorTransactionNodesApi, type EditorTransactionPluginsApi, type EditorTransactionRecordsApi, type EditorTransactionRemoved, type EditorTransactionRootsApi, type EditorTransactionSelectionApi, type EditorTransactionSliceApi, type EditorTransactionSpecBuilder, type EditorTransactionTagsApi, type EditorTransactionTextApi, type EditorTransactionTopLevelRange, type EditorTransactionValueApi, type EditorUniqueHolder, type EditorUpdate, type EditorUpdateAnnotation, type EditorUpdateContext, type EditorUpdateMethods, type EditorUpdatePolicy, type EditorUpdatePolicyFor, type EditorUpdateTag, type EditorUpdateTagInput, type EditorUpdateTransaction, type EditorUpdateValueFromPlugin, type EditorValueFromOptions, type EditorValueFromPlugins, type EditorValueInput, type EditorValuePersistence, type EditorView, type EditorViewOptions, Element, ElementApi, type ElementContentRootSlot, ElementEntry, ElementEntryOf, ElementIdPlugin, ElementIdPluginState, type ElementIdTarget, ElementIn, ElementInterface, ElementIsElementOptions, ElementOf, ElementOrTextIn, ElementOrTextOf, ElementStateApi, ElementStateDefinition, ElementStatePlugin, type ElementWith, ExitBreakPlugin, FormattingBlockEntry, FormattingContribution, FragmentPropMode, GetFragmentPropOptions, type GetInjectNodePropsOptions, type GetInjectNodePropsReturnType, type HandlerReturnType, HeadingLevel, HeadingRules, HighlightNode, HighlightResult, HighlightRules, type HistoryApi, HistoryDefinition, type HistoryOutcome, HistoryPlugin, HistoryPluginState, type HistoryResult, type HistorySettlement, HorizontalRuleRules, Hotkeys, type HtmlAttributes, type HtmlContentToken, type HtmlElementPatch, type HtmlMappingDiagnosticInput, type HtmlMatchValue, type HtmlMatcher, type HtmlNodeSpec, HtmlPlugin, type HtmlPrepareDiagnosticInput, type HtmlWrapperSpec, IS_APPLE, IndentChangeOptions, IndentDefinition, IndentPluginState, type InferApi, type InferConflicts, type InferDependencies, type InferEnabled, type InferName, type InferOwnApi, type InferOwnRead, type InferOwnUpdate, type InferPluginReadGroups, type InferPluginStoreState, type InferPluginUpdateGroups, type InferRead, type InferSelectors, type InferTargetPlugins, type InferUpdate, type InitialValue, type InjectNodeProps, InputRule, InputRuleEditor, InputRuleInsertTextOptions, InputRuleTarget, InputRulesConfig, InputRulesDefinition, type InsertBreakCommand, InsertBreakInputRule, InsertBreakInputRuleContext, InsertBreakInputRuleReadContext, InsertDataFollowUpContext, InsertDataFollowUpInputRule, InsertDataInputRule, InsertDataInputRuleContext, InsertDataInputRuleReadContext, type InsertNodesCommand, type InsertSoftBreakCommand, type InsertTextCommand, InsertTextInputRule, InsertTextInputRuleContext, InsertTextInputRuleReadContext, ItalicRules, type JsonEditorValue, type JsonNode, type LeafEdge, LeafPosition, type LeafStaticProps, LineHeightDefinition, LinkAttributes, LinkElement, LinkRules, ListElement, ListStyle, ListType, Location, LocationApi, LocationInterface, LogLevel, MarkComboRules, MarkInputRuleConfig, MarkInputRuleMatch, MarkKeysOf, type MarkdownDecodeContext, type MarkdownEncodeContext, type MarkdownMarkWrapContext, type MarkdownMarkWrapper, type MarkdownMarks, type MarkdownNodeKind, type MarkdownNodeKinds, type MarkdownNodeMapping, type MarkdownNodeMappingInput, type MarkdownPluginRegistry, type MarkdownRefusal, type MarkdownTagAttributeView, type MarkdownTagNode, MarksIn, MarksOf, MatchBlockFenceOptions, MatchBlockStartOptions, MatchDelimitedInlineOptions, type MaximizeMode, type MergeRules, type MoveSelectionCommand, type MoveUnit, type NamedEditorSchemaIdentity, type NamedRootKey, Node, NodeAncestorsOptions, NodeApi, NodeChildEntry, NodeChildrenOptions, type NodeComponent, NodeDescendantsOptions, type NodeDuplicateOptions, NodeElementsOptions, NodeEntry, NodeEntryIn, NodeEntryOf, NodeFindTextRangesOptions, NodeHasPropsOptions, NodeIn, type NodeInsertNodesOptions, type NodeInsertOptions, type NodeInsertSplitOptions, NodeInterface, NodeIsNodeOptions, type NodeKey, NodeLevelsOptions, type NodeLiftNodesOptions, NodeMatch, NodeMatchPredicate, type NodeMergeNodesOptions, type NodeMoveNodesOptions, type NodeMutationMethods, NodeNodesOptions, NodeOf, NodeProps, type NodeRemoveNodesOptions, type NodeReplaceChildrenOptions, NodeSelection, NodeSelectionMode, type NodeSetNodesOptions, type NodeSplitNodesOptions, type NodeStaticProps, type NodeTarget, NodeTextRangeEntry, NodeTextRangeMatch, NodeTextRangeQuery, NodeTextRangeRoot, NodeTextRangeView, NodeTextsOptions, NodeTypeSelector, type NodeUnsetNodesOptions, type NodeUnwrapNodesOptions, type NodeWrapNodesOptions, type NodeWriteVeto, type NodeWriteVetoInput, type NormalizeRules, type Nullable, OrderedListRules, OutdentListOptions, PLUGINS, type PartialBasePlugin, Path, PathAncestorsOptions, PathApi, PathInterface, PathLevelsOptions, type PersistedDocumentInput, type PlacedTarget, PlainTextDiagnostic, PlainTextDocumentOptions, PlainTextEditorOptions, type PlainTextEncodeContext, type PlainTextNodeMapping, type PlainTextNodeMappingInput, PlainTextSerializeResult, type PluginActivationContext, type PluginApiFactory, type PluginApiFactoryContext, type PluginBaseContext, type PluginCandidateContext, type PluginCandidateEditor, type PluginCapabilities, type PluginCleanupContext, type PluginContribution, type PluginContributionInput, type PluginDefinition, type PluginDependency, type PluginDependencyReference, type PluginFormatContext, type PluginFormatModelView, type PluginFormatNode, type PluginFormatRegistry, type PluginFormatSchemaView, type PluginInput, type PluginMigrationContext, PluginName, type PluginOwnUpdate, type PluginPoint, PluginPublicationError, type PluginReadContext, type PluginReadFactory, type PluginReadFactoryContext, type PluginReadMiddlewareFactory, type PluginReadState, type PluginReconfigureOptions, type PluginReference, type PluginSchema, type PluginSchemaContext, type PluginSchemaDeclaration, type PluginSchemaElement, type PluginSchemaMark, type PluginSchemaReferences, type PluginSelector, type PluginSelectorArgs, type PluginSelectorMethods, type PluginSelectorReturn, type PluginSelectors, type PluginShortcutInput, type PluginSlot, type PluginSlotLike, type PluginSlotValue, type PluginState, type PluginStore, type PluginTransaction, type PluginTypeProvider, type PluginTypes, type PluginUpdate, type PluginUpdateFactory, type PluginUpdateFactoryContext, type PluginsFromOptions, type PluginsOf, Point, PointApi, PointEntry, PointInterface, type ProjectedRangeSegment, type PropertyBooleanDescriptor, type PropertyBuilderApi, type PropertyEnumDescriptor, type PropertyJsonDescriptor, type PropertyJsonOptions, type PropertyNumberDescriptor, type PropertyOptionsOf, type PropertySetDescriptor, type PropertySetOptions, type PropertyStringDescriptor, type PropertyValidation, type PropertyValueDescriptor, type PropertyValueKind, type PropertyValueOf, type PropertyValueOptions, Range, type RangeAnchorAssociation, RangeApi, type RangeDirection, RangeEdgesOptions, RangeInterface, type RangeMode, type RemoveMarkCommand, type RemoveNodesCommand, type RenderElementFn, type RenderElementProps, type RenderElementSlots, type RenderLeafFn, type RenderLeafProps, type RenderStaticNodeWrapper, type RenderStaticNodeWrapperFunction, type RenderStaticNodeWrapperProps, type RenderTextFn, type RenderTextHostProps, type RenderTextPieceProps, type RenderTextProps, type ReplaceSliceCommand, ResolvedInputRule, ResolvedInputRulesMeta, type RootKey, type RuleDecision, type SchemaBuiltInGroupName, type SchemaContent, type SchemaContentDefault, type SchemaContentInput, type SchemaContentOptions, type SchemaContentPrefixSlot, type SchemaContentRoot, type SchemaContentRootContribution, type SchemaContentRootInput, type SchemaContentRootOwnership, type SchemaContentRootSlotsFor, type SchemaContentRootStructure, type SchemaContentRule, type SchemaDescendant, type SchemaElement, type SchemaElementConstructionPropertiesFor, type SchemaElementFor, type SchemaElementHandle, type SchemaElementInput, type SchemaElementProperties, type SchemaElementPropertiesFor, type SchemaElementProperty, type SchemaElementPropertyDefinition, type SchemaElementPropertyKeys, type SchemaElementPropertyOptions, type SchemaElementPropertyValue, type SchemaElementShapeFor, type SchemaElementSlicePolicy, type SchemaElementStructure, type SchemaElementTarget, type SchemaElementTypes, type SchemaGroup, type SchemaGroupNames, type SchemaGroupOptions, type SchemaKeyPrefix, type SchemaPluginsOf, type SchemaProperty, type SchemaPropertyCopyPolicy, type SchemaPropertyDefinition, type SchemaPropertyExclusiveGroup, type SchemaPropertyHandle, type SchemaPropertyHandleValue, type SchemaPropertyIds, type SchemaPropertyKey, type SchemaPropertyLandingPolicy, type SchemaPropertyReferences, type SchemaPropertyRole, type SchemaPropertySplitPolicy, type SchemaPropertyTypeChangePolicy, type SchemaRecordSet, type SchemaRootNames, type SchemaTarget, type SchemaText, type SchemaTextBlockOptions, type SchemaTextProperties, type SchemaTextProperty, type SchemaTextPropertyDefinition, type SchemaTextPropertyKeys, type SchemaTextPropertyOptions, type SchemaTypesTarget, type SchemaValue, type SchemaValueFromPlugins, ScriptRules, ScriptValue, type ScrollIntoViewTarget, type ScrollMode, type SelectCommand, Selection, SelectionApi, SelectionAssociation, type SelectionCollapseOptions, type SelectionEdge, SelectionInputRuleContext, type SelectionMode, type SelectionMoveOptions, type SelectionMutationMethods, type SelectionRules, type SelectionSetPointOptions, SelectionValue, type SerializedEditorEffect, type SerializedEditorSelection, type SerializedEditorValue, type SetNodesCommand, type SetSelectionCommand, SingleBlockPlugin, SingleLinePlugin, type SliceLanding, type SliceLandingInput, type SliceLandingTarget, type SnapshotIndex, type SnapshotInput, Span, SpanApi, SpanInterface, type StateFieldCollabPolicy, type StateFieldDescriptor, type StateFieldHistoryPolicy, type StateFieldInitial, type StateFieldValueInput, type StaticRenderLeafProps, StrikethroughRules, type StructuralRuleContext, type StructuralRuleEditor, type TargetFreshnessRequest, TaskListRules, Text, TextAlignDefinition, TextApi, type TextDeleteOptions, type TextDirection, TextEntry, TextEntryIn, TextEntryOf, TextEqualsOptions, TextIn, TextIndentDefinition, TextIndentPluginState, type TextInsertFragmentOptions, type TextInsertTextOptions, TextInterface, type TextMutationMethods, TextOf, type TextRemoveTextOptions, TextSelection, type TextStaticProps, TextSubstitutionInputRuleConfig, TextSubstitutionMatch, TextSubstitutionPattern, type TextTarget, type TextUnit, type TextUnitAdjustment, type TextWith, type ToggleBlockCommand, ToggleHeadingOptions, ToggleListOptions, type ToggleMarkCommand, type TopLevelRuntimeRange, TrailingBlockDefinition, TrailingBlockPlugin, TrailingBlockPluginState, type TransactionSpec, type TransferAdoptInput, type TransferApi, type TransferCheck, type TransferDefinition, type TransferDiagnostic, type TransferEdge, type TransferInput, type TransferIntent, type TransferLandingInput, type TransferLandingTarget, type TransferOutcome, type TransferPatch, type TransferPatchProperties, type TransferPayload, TransferPlugin, type TransferRead, type TransferRefusalReason, type TransferRelation, type TransferSide, type TransferSideInput, type TransferSourceInput, type TransferTarget, type TransferVeto, type TransferVetoInput, type TransferWrap, TransformInputRuleContext, type TransformOptions, type TxDeclaredMethod, type TxMethodDeclarations, type TxOnlyMethod, UnderlineRules, type UnknownObject, UnwrapLinkOptions, UpsertLinkOptions, type Value, type ValueOf, type WithAnyName, type WithNodeTarget, type WithRequiredName, WrapLinkOptions, applyDeepToNodes, authoredVeto, compileEditorSchemaContract, createBlockFenceInputRule, createBlockStartInputRule, createEditor, createEditorView, createHotkey, createMarkInputRule, createTextSubstitutionInputRule, decodeEditorEffect, defaultsDeepToNodes, defineCommand$1 as defineCommand, defineEditorSchema, defineEffect, defineInputRule, definePlugin, definePluginPoint, definePluginSlot, defineStateField, defineUpdateAnnotation, diffEditorSchemaContracts, documentReplacement, editorCommands, editorReads, encodeEditorEffect, formatting, getEditorRuntimeOwner, getFragmentProp, getInjectMatch, getLinkHref, getPluginNodeClass, inputRuleVeto, invertEffect, isDefined, isEditor, isHotkey, isNominalPluginDescriptor, isOrderedList, isPluginElementClass, isPluginNodeClass, isUrl, locateAt, mapEffect, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, nodeWriteVeto, property, readEditorSchemaContract, getSelection as readEditorSelection, restoreEditorSchemaContract, schema$1 as schema, screenReaderAnnouncementEffect, serializePlainText, setDebugValueScrubber, setEditorReadOnly, setEditorViewing, target, transfer, transferVeto, txLocate, txOnly, txSelection, valueCodecs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getStroke, getStrokeOutlinePoints, getStrokePoints } from "perfect-freehand";
|
|
2
|
-
//#region src/
|
|
2
|
+
//#region src/internal/penStroke.internal.ts
|
|
3
3
|
const RATE_OF_PRESSURE_CHANGE = .275;
|
|
4
4
|
const round = (value) => Math.round(value * 100) / 100;
|
|
5
5
|
const curvedPathOf = (outline) => {
|