platejs 54.0.0-beta.2 → 54.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +56 -0
- package/dist/{AIChatRequestContext-BMVWhfPV.d.ts → AIChatRequestContext-DY104TqL.d.ts} +2 -2
- package/dist/{BaseSuggestionPlugin-DBl3fqnm.d.ts → BaseSuggestionPlugin-Deo6n6Fs.d.ts} +7 -3
- package/dist/{PlateStatic-DhNv2ejp.d.ts → PlateStatic-CJX5bKuv.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-DAOYWuvC.d.ts} +2 -2
- package/dist/{comparison-types-CYnJ35qU.d.ts → comparison-types-Dt-unJZY-DCddmbSD.d.ts} +10 -2
- package/dist/compiler/index.d.ts +2 -2
- package/dist/{core-BJG8l_mk.d.ts → core-ClHasORr.d.ts} +433 -95
- 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 +4 -2
- package/dist/docs/api/core/plate-plugin.md +3 -0
- package/dist/docs/api/core/plate-store.md +3 -3
- package/dist/docs/api/dom.md +14 -4
- package/dist/docs/api/editor-transforms.md +2 -1
- package/dist/docs/api/react-hooks.md +25 -11
- package/dist/docs/authored-changes.md +5 -2
- package/dist/docs/basic-blocks.md +42 -29
- package/dist/docs/blockquote.md +5 -3
- package/dist/docs/board.md +63 -8
- package/dist/docs/code-block.md +47 -0
- package/dist/docs/discussion.md +1 -1
- package/dist/docs/docx.md +1 -1
- package/dist/docs/dom-coverage.md +5 -0
- 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 +176 -8
- package/dist/docs/plugin-components.md +13 -10
- package/dist/docs/plugin-input-rules.md +4 -12
- 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 +29 -5
- package/dist/docx/export/lib/reviewPart.js +1 -1
- package/dist/docx/export/lib/reviewProjection.js +10 -8
- 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/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 +10 -10
- package/dist/features/field/index.d.ts +2 -0
- package/dist/features/field/index.js +2 -0
- package/dist/features/field/lib/BaseFieldPlugin.js +414 -0
- package/dist/features/field/lib/fieldRules.internal.js +42 -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 +533 -62
- 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 +1 -1
- package/dist/features/media/lib/media/parseMediaUrl.js +11 -1
- package/dist/features/media/lib/media-embed/BaseMediaEmbedPlugin.js +6 -2
- 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 +14 -8
- 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-cg_cWsaN.d.ts} +2 -31
- package/dist/hyperscript/index.d.ts +1 -1
- package/dist/{index-D1CFXA-i.d.ts → index-8WO2vI0U.d.ts} +475 -143
- package/dist/{index-DaM37gF6.d.ts → index-B5mYEawV.d.ts} +37 -21
- package/dist/{index-Bq3sdm3S.d.ts → index-BZWFoUXt.d.ts} +5 -4
- package/dist/{index-DdIRduDG.d.ts → index-C0POz7rg.d.ts} +3 -2
- package/dist/{index-Bxfvicyy.d.ts → index-C1_JIhL4.d.ts} +4 -3
- package/dist/{index-DC_MNGyu.d.ts → index-C35V_hj0.d.ts} +3 -3
- package/dist/{index-kLKMc-pI.d.ts → index-C6ql9pKw.d.ts} +2 -2
- package/dist/{index-hsC_sOn2.d.ts → index-C9DiGDVj.d.ts} +35 -5
- package/dist/{index-DTgaSxKr.d.ts → index-CLsEe3LY.d.ts} +40 -4
- package/dist/{index-CT7miqQN.d.ts → index-CdOLsPaW.d.ts} +29 -9
- package/dist/{index-DLA2DUR2.d.ts → index-CktYvOgk.d.ts} +4 -3
- package/dist/{index-BBKGrsG3.d.ts → index-Cmuluh6f.d.ts} +1 -1
- package/dist/{index-BiQerPJS.d.ts → index-CzLwBZpY.d.ts} +2 -2
- package/dist/{index-DzD6BIFJ.d.ts → index-D3-2iM1b.d.ts} +7 -5
- package/dist/{index-Cl77E9yr.d.ts → index-DKOFvteF.d.ts} +2 -2
- package/dist/{index-iaZOhA76.d.ts → index-DPWyk3lG-DOYwohXO.d.ts} +1 -1
- package/dist/index-DQnjqtQa.d.ts +678 -0
- package/dist/{index-CcZbqPqk.d.ts → index-Do9pj1GK.d.ts} +73 -39
- package/dist/{index-BU6k1Aev.d.ts → index-DpltOCot-A2b3p3Eb.d.ts} +4735 -4586
- package/dist/{index-Bc2Yg_2j.d.ts → index-HPYawTae-BCUQLEWF.d.ts} +2 -2
- package/dist/{index-BkR7-GLI.d.ts → index-baQOK89E.d.ts} +2 -2
- package/dist/{index-D5W-p9bS.d.ts → index-oIJAZxc2.d.ts} +49 -4
- package/dist/{index-xdmCBvlT.d.ts → index-r7yb77Wy.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 +8 -2
- 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 +5 -15
- package/dist/lib/plugins/input-rules/inputRuleVeto.internal.js +16 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +2 -1
- package/dist/markdown/lib/MarkdownPlugin.js +16 -9
- package/dist/markdown/lib/RawHtmlPlugin.js +24 -0
- package/dist/markdown/lib/deserializer/mdastToSlate.js +12 -2
- package/dist/markdown/lib/internal/markdownConversion.js +773 -74
- package/dist/markdown/lib/internal/markdownDiagnostics.js +18 -7
- 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 +314 -0
- package/dist/markdown/lib/internal/markdownSegments.js +57 -48
- package/dist/markdown/lib/internal/markdownTags.js +22 -8
- 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/pagination/index.d.ts +1 -1
- package/dist/pagination/react/index.d.ts +4 -4
- package/dist/react/components/EditorContentView.internal.js +17 -8
- package/dist/react/components/EditorProvider.js +5 -5
- package/dist/react/components/Plate.js +103 -122
- 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/boardGesture.internal.js +6 -3
- package/dist/react/features/board/boardIndex.internal.js +7 -18
- package/dist/react/features/board/boardPictures.internal.js +19 -13
- package/dist/react/features/board/boardView.internal.js +184 -49
- package/dist/react/features/board/boardVoice.internal.js +10 -11
- package/dist/react/features/board/index.d.ts +64 -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 +34 -0
- package/dist/react/features/field/index.d.ts +312 -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 -29
- 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 +331 -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 +8 -7
- 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 +425 -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 +66 -21
- 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-aUwpNnAw.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,7 +1,7 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { $ as EditorBreakExitOptions, $t as EditorNodeUnsetOptions, Aa as NodeOf, Ar as EditorToggleBlockOptions, Cc as SchemaTextProperties, Cs as SchemaContent, Dc as SchemaTextPropertyOptions, Er as EditorStateViewProvider, Es as SchemaContentOptions, F as DecorationAttributes, Ga as NodeTypeSelector, Gi as LeafPosition, H as Descendant, Hn as EditorSchemaPlugin, Hs as SchemaElementPropertiesFor, Ht as EditorLevelsOptions, I as DecorationRefresh, Ia as NodeSetNodesOptions, Io as PluginTypeProvider, Is as SchemaElement, It as EditorGenericMethod, Js as SchemaElementShapeFor, Jt as EditorNodeChangeContext, K as DescendantIn, Ki as Location, Lo as PluginTypeProviderOf, Lr as EditorTransactionChangeContext, Ls as SchemaElementConstructionPropertiesFor, Ma as NodeRemoveNodesOptions, Mi as HistoryApi, Mn as EditorSchemaDerivedDefinition, Mo as PluginReference$1, Nn as EditorSchemaElement, Oc as SchemaTypesTarget, On as EditorSchemaContribution, Or as EditorTextChangeContext, P as Decoration, Pa as NodeSelection, Ps as SchemaContentRule, Qi as MaximizeMode, Qn as EditorSchemaSourceProvider, Qo as PropertyJsonDescriptor, Qr as EditorTransactionSpecBuilder, Qs as SchemaElementTypes, Qt as EditorNodeTypeProvider, R as DefinitionOf$1, Ra as NodeTarget, S as BaseText, Si as Element, So as PluginInstalledCapabilitiesOf, St as EditorDirectUpdate, Ta as NodeMatchPredicate, Tc as SchemaTextPropertyDefinition, To as PluginPortal, Tt as EditorDocumentValue, Ul as TransferPlugin$1, Un as EditorSchemaPluginProvider, Us as SchemaElementProperty, Vo as PluginWitnessFor, Vt as EditorJsonValue, Wl as TransferRead, Wo as Point$1, Ws as SchemaElementPropertyDefinition, Wt as EditorLifecycleErrorSink, X as EditorAboveOptions, Xr as EditorTransactionSelectionApi, Y as Editor$1, Yo as PropertyBooleanDescriptor, Z as EditorBlockOptions, Za as Path, Zo as PropertyEnumDescriptor, Zt as EditorNodeGetOptions, _a as NodeInsertNodesOptions, _l as TextInsertFragmentOptions, _o as PluginDependencyReferenceFor, ac as SchemaProperty, b as BasePoint, bc as SchemaTarget, bn as EditorSchemaContract, ci as EditorUpdatePolicy, cl as Text$1, cs as PropertyValueOf, da as NodeEntry, dn as EditorReadMethods, do as PluginContribution, en as EditorNodesOptions, es as PropertyNumberDescriptor, eu as TxDeclaredMethod, fc as SchemaPropertyKey, fi as EditorUpdateTransaction, ga as NodeIn, go as PluginDependencyReference, hi as EditorUpdateValueFromPlugin, ho as PluginDependencyContractReference, ic as SchemaPluginsOf, is as PropertyStringDescriptor, j as ContentSlice, jl as TransferApi, ki as ElementOf, kl as TransactionSpec, ks as SchemaContentRootContribution, lc as SchemaPropertyHandle, ln as EditorReadMethodRecord, lo as PluginCapabilities, ls as PropertyValueOptions, m as AuthoredProjectionDiagnostic, mi as EditorUpdateTransactionProvider, mo as PluginDefinitionInput, mt as EditorCommitContext, nc as SchemaKeyPrefix, nn as EditorParentOptions, no as PersistedDocumentInput, oi as EditorUpdateContext, ol as StructuralPlainTextDiagnostic, or as EditorSelection, os as PropertyValueDescriptor, pi as EditorUpdateTransactionOf, po as PluginDefinition, qt as EditorNextOptions, ra as Node$1, rc as SchemaNodeTypeProvider, rn as EditorPreviousOptions, ro as Plugin, ru as Value, sc as SchemaPropertyDefinition, si as EditorUpdateMethods, sr as EditorSelectionBlockOptions, tn as EditorNodesReadOptions, ts as PropertyOptionsOf, tu as TxMethodDeclarations, un as EditorReadMethodTree, us as Range, v as BaseElement, vl as TextInsertTextOptions, vr as EditorStateSchemaApi, vt as EditorCoreStateView, w as BlockInsertOptions$1, wa as NodeMatch, wc as SchemaTextProperty, wr as EditorStateView, ws as SchemaContentDefault, xa as NodeKey, xc as SchemaText, xs as RootKey, yi as EditorValueTypeProvider, yr as EditorStateSelectionApi, zt as EditorInstalledUpdateGroups } from "./index-DpltOCot-A2b3p3Eb.js";
|
|
2
|
+
import { a as HtmlEditorSerializeOptions, d as HtmlSerializeResult, f as HtmlSliceParseResult, h as EditorApplicationSchema, i as HtmlEditorParseOptions, r as HtmlDocumentParseResult, t as HtmlApi } from "./htmlTypes-cg_cWsaN.js";
|
|
3
|
+
import { E as DataTransferEncodeContext, I as ScrollIntoViewOptions, P as HotkeySpec, _ as DOMRange, i as DOMClipboardApi, m as DOMPlugin$1, r as DOMApi, w as DataTransferDecodeContext } from "./index-B5mYEawV.js";
|
|
4
|
+
import { d as HistoryTxApi, s as HistoryPlugin$1, u as HistoryStateApi } from "./index-baQOK89E.js";
|
|
5
5
|
import { Draft } from "mutative";
|
|
6
6
|
import { nanoid as nanoid$1 } from "nanoid";
|
|
7
7
|
import "zustand/vanilla";
|
|
@@ -10,17 +10,6 @@ import { InlineMath, Math } from "mdast-util-math";
|
|
|
10
10
|
import { MdxJsxAttribute, MdxJsxFlowElement, MdxJsxTextElement } from "mdast-util-mdx";
|
|
11
11
|
import { Node } from "unist";
|
|
12
12
|
import { KeyboardEventLike, isHotkey } from "is-hotkey";
|
|
13
|
-
/** Runtime document/fragment validation error with immutable diagnostics. */
|
|
14
|
-
declare class EditorSchemaValidationError extends Error {
|
|
15
|
-
readonly diagnostics: readonly EditorSchemaValidationDiagnostic[];
|
|
16
|
-
constructor(diagnostics: EditorSchemaValidationDiagnostic | readonly EditorSchemaValidationDiagnostic[] | string, options?: Readonly<{
|
|
17
|
-
cause?: unknown;
|
|
18
|
-
}>);
|
|
19
|
-
}
|
|
20
|
-
/** Hook for replacing values before debug output is stringified. */
|
|
21
|
-
type DebugValueScrubber = (key: string, value: unknown) => unknown;
|
|
22
|
-
/** Override the debug value scrubber used by diagnostic formatting. */
|
|
23
|
-
declare const setDebugValueScrubber: (scrubber: DebugValueScrubber | null | undefined) => void;
|
|
24
13
|
declare const generatedEditorTypes: unique symbol;
|
|
25
14
|
type GeneratedEditorSchema = Readonly<{
|
|
26
15
|
plugins: Readonly<Record<string, Readonly<{
|
|
@@ -768,6 +757,93 @@ type WithRequiredName<P = {}> = (P extends {
|
|
|
768
757
|
type ExactPluginDefinitionOf<P> = P extends PluginDefinitionWitness<infer D> ? D : never;
|
|
769
758
|
/** Internal exact definition, including finite dependency capability carriers. */
|
|
770
759
|
type InternalPluginDefinitionOf<P> = [ExactPluginDefinitionOf<P>] extends [never] ? P extends PluginReference$1 ? never : P extends AnyBasePluginDefinition ? P : Extract<DefinitionOf<P>, AnyBasePluginDefinition> : Extract<ExactPluginDefinitionOf<P>, AnyBasePluginDefinition>;
|
|
760
|
+
type PluginDefinitionOf$1<P> = InternalPluginDefinitionOf<P> extends (infer D) ? [D] extends [never] ? P extends AnyBasePluginDefinition ? P : P extends AnyBasePlugin ? AnyBasePluginDefinition : never : Extract<D, AnyBasePluginDefinition> : never;
|
|
761
|
+
type SchemaPropertyDescriptorMap = Readonly<Record<string, PropertyValueDescriptor>>;
|
|
762
|
+
type PluginWritablePropertyEntriesOf$1<D extends AnyBasePluginDefinition> = D extends Readonly<{
|
|
763
|
+
__pluginWritableProperties: infer TEntry;
|
|
764
|
+
}> ? TEntry : InferPluginWritablePropertyEntries<D>;
|
|
765
|
+
type RawSchemaPropertyEntries<TProperties extends SchemaPropertyDescriptorMap, TPlacement extends 'element' | 'text'> = { [TLocalId in Extract<keyof TProperties, string>]: Readonly<{
|
|
766
|
+
descriptor: TProperties[TLocalId];
|
|
767
|
+
key: TLocalId;
|
|
768
|
+
localId: TLocalId;
|
|
769
|
+
placement: TPlacement;
|
|
770
|
+
}>; }[Extract<keyof TProperties, string>];
|
|
771
|
+
type SchemaPropertyEntriesOf<TSource, TPlacement extends 'element' | 'text'> = TSource extends unknown ? [PluginDefinitionOf$1<TSource>] extends [never] ? TSource extends SchemaPropertyDescriptorMap ? RawSchemaPropertyEntries<TSource, TPlacement> : never : Extract<PluginWritablePropertyEntriesOf$1<Extract<PluginDefinitionOf$1<TSource>, AnyBasePluginDefinition>>, Readonly<{
|
|
772
|
+
placement: TPlacement;
|
|
773
|
+
}>> : never;
|
|
774
|
+
type SchemaPropertyRequiredLocalId<TEntries> = TEntries extends Readonly<{
|
|
775
|
+
key: string;
|
|
776
|
+
localId: infer TLocalId extends string;
|
|
777
|
+
}> ? TLocalId : never;
|
|
778
|
+
type SchemaPropertyName<TKey> = TKey extends string ? TKey : TKey extends SchemaKeyPrefix<infer TPrefix> ? `${TPrefix}${string}` : never;
|
|
779
|
+
type SchemaPropertyEntryName<TEntry> = TEntry extends Readonly<{
|
|
780
|
+
key: infer TKey;
|
|
781
|
+
}> ? SchemaPropertyName<TKey> : never;
|
|
782
|
+
type SchemaPropertyEntryValue<TEntry> = TEntry extends Readonly<{
|
|
783
|
+
descriptor: infer TDescriptor;
|
|
784
|
+
}> ? PropertyValueOf<TDescriptor> : never;
|
|
785
|
+
type PresentSchemaPropertyEntryValue<TEntry> = TEntry extends Readonly<{
|
|
786
|
+
descriptor: infer TDescriptor;
|
|
787
|
+
}> ? TDescriptor extends PropertyValueDescriptor ? TDescriptor extends Readonly<{
|
|
788
|
+
omitDefault: true;
|
|
789
|
+
}> ? PropertyOptionsOf<TDescriptor> extends {
|
|
790
|
+
default: infer TDefault;
|
|
791
|
+
} ? Exclude<PropertyValueOf<TDescriptor>, TDefault> : PropertyValueOf<TDescriptor> : PropertyValueOf<TDescriptor> : never : never;
|
|
792
|
+
type Materialize$2<T> = { [TKey in keyof T]: T[TKey]; };
|
|
793
|
+
type UnionToIntersection<T> = (T extends unknown ? (value: T) => void : never) extends ((value: infer TIntersection) => void) ? TIntersection : never;
|
|
794
|
+
type SchemaPropertyEntryShape<TEntry, TRequired extends string> = TEntry extends Readonly<{
|
|
795
|
+
localId: infer TLocalId extends string;
|
|
796
|
+
}> ? TLocalId extends TRequired ? Readonly<{ [TName in SchemaPropertyEntryName<TEntry>]-?: PresentSchemaPropertyEntryValue<TEntry>; }> : Readonly<{ [TName in SchemaPropertyEntryName<TEntry>]?: SchemaPropertyEntryValue<TEntry>; }> : never;
|
|
797
|
+
type SchemaPropertyShape<TEntries, TRequired extends SchemaPropertyRequiredLocalId<TEntries>> = Materialize$2<UnionToIntersection<SchemaPropertyEntryShape<TEntries, TRequired>>>;
|
|
798
|
+
type SchemaPropertySource = AnyBasePlugin | AnyBasePluginDefinition | SchemaPropertyDescriptorMap;
|
|
799
|
+
/**
|
|
800
|
+
* Element narrowed to schema properties contributed by one or more owners.
|
|
801
|
+
* The second generic marks exact authored local IDs known to be present.
|
|
802
|
+
*/
|
|
803
|
+
type ElementWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'element'>> = never> = Element & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'element'>, TRequired>;
|
|
804
|
+
/**
|
|
805
|
+
* Text leaf narrowed to schema properties contributed by one or more owners.
|
|
806
|
+
* The second generic marks exact authored local IDs known to be present.
|
|
807
|
+
*/
|
|
808
|
+
type TextWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'text'>> = never> = Text$1 & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'text'>, TRequired>;
|
|
809
|
+
type FormatContribution<D extends AnyBasePluginDefinition> = InferExactPluginSchemaContribution<D>;
|
|
810
|
+
type FormatContributionSource<D extends AnyBasePluginDefinition> = EditorSchemaSourceProvider<() => FormatContribution<D>>;
|
|
811
|
+
type FormatContributionElementType<D extends AnyBasePluginDefinition> = Extract<InferPluginDocumentType<D>, SchemaElementTypes<FormatContributionSource<D>>>;
|
|
812
|
+
type FormatElementNode<D extends AnyBasePluginDefinition> = [FormatContributionElementType<D>] extends [never] ? never : Extract<SchemaElementShapeFor<FormatContributionSource<D>, FormatContributionElementType<D>>, Element>;
|
|
813
|
+
type FormatPropertyEntries<D extends AnyBasePluginDefinition, TPlacement extends 'element' | 'text'> = Extract<InferPluginWritablePropertyEntries<D>, Readonly<{
|
|
814
|
+
placement: TPlacement;
|
|
815
|
+
}>>;
|
|
816
|
+
/** Value owned by the format mapping's schema-bound text property. */
|
|
817
|
+
type PluginFormatTextValue<D extends AnyBasePluginDefinition> = FormatPropertyEntries<D, 'text'> extends (infer TEntry) ? TEntry extends Readonly<{
|
|
818
|
+
descriptor: infer TDescriptor extends PropertyValueDescriptor;
|
|
819
|
+
}> ? PropertyValueOf<TDescriptor> : never : never;
|
|
820
|
+
/**
|
|
821
|
+
* Whether the format mapping target contributes a mark (a text property)
|
|
822
|
+
* rather than an element; `boolean` when the definition does not say.
|
|
823
|
+
*/
|
|
824
|
+
type PluginFormatIsMark<D extends AnyBasePluginDefinition> = [FormatElementNode<D>] extends [never] ? [FormatPropertyEntries<D, 'text'>] extends [never] ? boolean : true : false;
|
|
825
|
+
/** Element property keys the format mapping target's own schema contributes. */
|
|
826
|
+
type PluginFormatOwnedPropertyKey<D extends AnyBasePluginDefinition> = Exclude<Extract<keyof FormatElementNode<D>, string>, 'children' | 'type'> | (FormatPropertyEntries<D, 'element'> extends (infer TEntry) ? TEntry extends Readonly<{
|
|
827
|
+
key: infer TKey extends string;
|
|
828
|
+
}> ? TKey : never : never);
|
|
829
|
+
/** Node narrowed from the format mapping target's schema contribution. */
|
|
830
|
+
type PluginFormatNode<D extends AnyBasePluginDefinition> = [FormatElementNode<D>] extends [never] ? [FormatPropertyEntries<D, 'text'>] extends [never] ? [FormatPropertyEntries<D, 'element'>] extends [never] ? Descendant : ElementWith<D> : [FormatPropertyEntries<D, 'element'>] extends [never] ? TextWith<D> : TextWith<D> | ElementWith<D> : FormatElementNode<D>;
|
|
831
|
+
/**
|
|
832
|
+
* How Word export writes an element Word has no form for: as one run of text.
|
|
833
|
+
* The export reports what that drops once per plugin, as a `property-dropped`
|
|
834
|
+
* warning that counts the elements.
|
|
835
|
+
*/
|
|
836
|
+
type DocxNodeMapping<D extends AnyBasePluginDefinition> = Readonly<{
|
|
837
|
+
/**
|
|
838
|
+
* What Word keeps and drops of each element, such as "Word keeps each field
|
|
839
|
+
* answer and drops its settings." It is the warning's message.
|
|
840
|
+
*/
|
|
841
|
+
dropped: string;
|
|
842
|
+
/** The text Word export writes in place of `node`. */
|
|
843
|
+
text: (context: Readonly<{
|
|
844
|
+
node: PluginFormatNode<D>;
|
|
845
|
+
}>) => string;
|
|
846
|
+
}>;
|
|
771
847
|
/** If true, the next handlers will be skipped. */
|
|
772
848
|
type HandlerReturnType = boolean | void;
|
|
773
849
|
/** The `childRoots` slot names of `N`, or any slot name when `N` declares none. */
|
|
@@ -850,77 +926,6 @@ type MarkdownOmittedPropertyInput = Readonly<{
|
|
|
850
926
|
message: string;
|
|
851
927
|
nodeType?: never;
|
|
852
928
|
}>;
|
|
853
|
-
type PluginDefinitionOf$1<P> = InternalPluginDefinitionOf<P> extends (infer D) ? [D] extends [never] ? P extends AnyBasePluginDefinition ? P : P extends AnyBasePlugin ? AnyBasePluginDefinition : never : Extract<D, AnyBasePluginDefinition> : never;
|
|
854
|
-
type SchemaPropertyDescriptorMap = Readonly<Record<string, PropertyValueDescriptor>>;
|
|
855
|
-
type PluginWritablePropertyEntriesOf$1<D extends AnyBasePluginDefinition> = D extends Readonly<{
|
|
856
|
-
__pluginWritableProperties: infer TEntry;
|
|
857
|
-
}> ? TEntry : InferPluginWritablePropertyEntries<D>;
|
|
858
|
-
type RawSchemaPropertyEntries<TProperties extends SchemaPropertyDescriptorMap, TPlacement extends 'element' | 'text'> = { [TLocalId in Extract<keyof TProperties, string>]: Readonly<{
|
|
859
|
-
descriptor: TProperties[TLocalId];
|
|
860
|
-
key: TLocalId;
|
|
861
|
-
localId: TLocalId;
|
|
862
|
-
placement: TPlacement;
|
|
863
|
-
}>; }[Extract<keyof TProperties, string>];
|
|
864
|
-
type SchemaPropertyEntriesOf<TSource, TPlacement extends 'element' | 'text'> = TSource extends unknown ? [PluginDefinitionOf$1<TSource>] extends [never] ? TSource extends SchemaPropertyDescriptorMap ? RawSchemaPropertyEntries<TSource, TPlacement> : never : Extract<PluginWritablePropertyEntriesOf$1<Extract<PluginDefinitionOf$1<TSource>, AnyBasePluginDefinition>>, Readonly<{
|
|
865
|
-
placement: TPlacement;
|
|
866
|
-
}>> : never;
|
|
867
|
-
type SchemaPropertyRequiredLocalId<TEntries> = TEntries extends Readonly<{
|
|
868
|
-
key: string;
|
|
869
|
-
localId: infer TLocalId extends string;
|
|
870
|
-
}> ? TLocalId : never;
|
|
871
|
-
type SchemaPropertyName<TKey> = TKey extends string ? TKey : TKey extends SchemaKeyPrefix<infer TPrefix> ? `${TPrefix}${string}` : never;
|
|
872
|
-
type SchemaPropertyEntryName<TEntry> = TEntry extends Readonly<{
|
|
873
|
-
key: infer TKey;
|
|
874
|
-
}> ? SchemaPropertyName<TKey> : never;
|
|
875
|
-
type SchemaPropertyEntryValue<TEntry> = TEntry extends Readonly<{
|
|
876
|
-
descriptor: infer TDescriptor;
|
|
877
|
-
}> ? PropertyValueOf<TDescriptor> : never;
|
|
878
|
-
type PresentSchemaPropertyEntryValue<TEntry> = TEntry extends Readonly<{
|
|
879
|
-
descriptor: infer TDescriptor;
|
|
880
|
-
}> ? TDescriptor extends PropertyValueDescriptor ? TDescriptor extends Readonly<{
|
|
881
|
-
omitDefault: true;
|
|
882
|
-
}> ? PropertyOptionsOf<TDescriptor> extends {
|
|
883
|
-
default: infer TDefault;
|
|
884
|
-
} ? Exclude<PropertyValueOf<TDescriptor>, TDefault> : PropertyValueOf<TDescriptor> : PropertyValueOf<TDescriptor> : never : never;
|
|
885
|
-
type Materialize$2<T> = { [TKey in keyof T]: T[TKey]; };
|
|
886
|
-
type UnionToIntersection<T> = (T extends unknown ? (value: T) => void : never) extends ((value: infer TIntersection) => void) ? TIntersection : never;
|
|
887
|
-
type SchemaPropertyEntryShape<TEntry, TRequired extends string> = TEntry extends Readonly<{
|
|
888
|
-
localId: infer TLocalId extends string;
|
|
889
|
-
}> ? TLocalId extends TRequired ? Readonly<{ [TName in SchemaPropertyEntryName<TEntry>]-?: PresentSchemaPropertyEntryValue<TEntry>; }> : Readonly<{ [TName in SchemaPropertyEntryName<TEntry>]?: SchemaPropertyEntryValue<TEntry>; }> : never;
|
|
890
|
-
type SchemaPropertyShape<TEntries, TRequired extends SchemaPropertyRequiredLocalId<TEntries>> = Materialize$2<UnionToIntersection<SchemaPropertyEntryShape<TEntries, TRequired>>>;
|
|
891
|
-
type SchemaPropertySource = AnyBasePlugin | AnyBasePluginDefinition | SchemaPropertyDescriptorMap;
|
|
892
|
-
/**
|
|
893
|
-
* Element narrowed to schema properties contributed by one or more owners.
|
|
894
|
-
* The second generic marks exact authored local IDs known to be present.
|
|
895
|
-
*/
|
|
896
|
-
type ElementWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'element'>> = never> = Element & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'element'>, TRequired>;
|
|
897
|
-
/**
|
|
898
|
-
* Text leaf narrowed to schema properties contributed by one or more owners.
|
|
899
|
-
* The second generic marks exact authored local IDs known to be present.
|
|
900
|
-
*/
|
|
901
|
-
type TextWith<TSource extends SchemaPropertySource, TRequired extends SchemaPropertyRequiredLocalId<SchemaPropertyEntriesOf<TSource, 'text'>> = never> = Text$1 & SchemaPropertyShape<SchemaPropertyEntriesOf<TSource, 'text'>, TRequired>;
|
|
902
|
-
type FormatContribution<D extends AnyBasePluginDefinition> = InferExactPluginSchemaContribution<D>;
|
|
903
|
-
type FormatContributionSource<D extends AnyBasePluginDefinition> = EditorSchemaSourceProvider<() => FormatContribution<D>>;
|
|
904
|
-
type FormatContributionElementType<D extends AnyBasePluginDefinition> = Extract<InferPluginDocumentType<D>, SchemaElementTypes<FormatContributionSource<D>>>;
|
|
905
|
-
type FormatElementNode<D extends AnyBasePluginDefinition> = [FormatContributionElementType<D>] extends [never] ? never : Extract<SchemaElementShapeFor<FormatContributionSource<D>, FormatContributionElementType<D>>, Element>;
|
|
906
|
-
type FormatPropertyEntries<D extends AnyBasePluginDefinition, TPlacement extends 'element' | 'text'> = Extract<InferPluginWritablePropertyEntries<D>, Readonly<{
|
|
907
|
-
placement: TPlacement;
|
|
908
|
-
}>>;
|
|
909
|
-
/** Value owned by the format mapping's schema-bound text property. */
|
|
910
|
-
type PluginFormatTextValue<D extends AnyBasePluginDefinition> = FormatPropertyEntries<D, 'text'> extends (infer TEntry) ? TEntry extends Readonly<{
|
|
911
|
-
descriptor: infer TDescriptor extends PropertyValueDescriptor;
|
|
912
|
-
}> ? PropertyValueOf<TDescriptor> : never : never;
|
|
913
|
-
/**
|
|
914
|
-
* Whether the format mapping target contributes a mark (a text property)
|
|
915
|
-
* rather than an element; `boolean` when the definition does not say.
|
|
916
|
-
*/
|
|
917
|
-
type PluginFormatIsMark<D extends AnyBasePluginDefinition> = [FormatElementNode<D>] extends [never] ? [FormatPropertyEntries<D, 'text'>] extends [never] ? boolean : true : false;
|
|
918
|
-
/** Element property keys the format mapping target's own schema contributes. */
|
|
919
|
-
type PluginFormatOwnedPropertyKey<D extends AnyBasePluginDefinition> = Exclude<Extract<keyof FormatElementNode<D>, string>, 'children' | 'type'> | (FormatPropertyEntries<D, 'element'> extends (infer TEntry) ? TEntry extends Readonly<{
|
|
920
|
-
key: infer TKey extends string;
|
|
921
|
-
}> ? TKey : never : never);
|
|
922
|
-
/** Node narrowed from the format mapping target's schema contribution. */
|
|
923
|
-
type PluginFormatNode<D extends AnyBasePluginDefinition> = [FormatElementNode<D>] extends [never] ? [FormatPropertyEntries<D, 'text'>] extends [never] ? [FormatPropertyEntries<D, 'element'>] extends [never] ? Descendant : ElementWith<D> : [FormatPropertyEntries<D, 'element'>] extends [never] ? TextWith<D> : TextWith<D> | ElementWith<D> : FormatElementNode<D>;
|
|
924
929
|
/** Standard MDAST node kinds a mapping can select with `node`. */
|
|
925
930
|
type MarkdownNodeKinds = {
|
|
926
931
|
blockquote: Blockquote;
|
|
@@ -1003,7 +1008,12 @@ type MarkdownDecodeContext<TNode extends Node = Node, D extends AnyBasePluginDef
|
|
|
1003
1008
|
node: TNode;
|
|
1004
1009
|
/** The node before this one among its Markdown siblings. */
|
|
1005
1010
|
previousSibling: RootContent | null;
|
|
1006
|
-
/**
|
|
1011
|
+
/**
|
|
1012
|
+
* Attributes of `tag` (default: this node). `properties` holds the
|
|
1013
|
+
* non-metadata properties decoded from them: this plugin's under their
|
|
1014
|
+
* `attributes` names and other plugins' by key. Read a metadata property,
|
|
1015
|
+
* such as an id, from the raw `attributes`.
|
|
1016
|
+
*/
|
|
1007
1017
|
readTagAttributes: (tag?: MarkdownTagNode) => MarkdownTagAttributeView;
|
|
1008
1018
|
refuse: (message: string) => MarkdownRefusal;
|
|
1009
1019
|
report: (diagnostic: MarkdownMappingDiagnosticInput | MarkdownOmittedPropertyInput) => void;
|
|
@@ -1049,10 +1059,12 @@ type MarkdownEncodeContext<TNode extends Descendant = Descendant, D extends AnyB
|
|
|
1049
1059
|
encodeAttributes: (properties: Readonly<Record<string, unknown>>) => MdxJsxAttribute[];
|
|
1050
1060
|
/**
|
|
1051
1061
|
* Encode `node` as a mapping without `encode` writes its tag: this
|
|
1052
|
-
* plugin's properties under their `attributes` names, then
|
|
1053
|
-
* non-metadata properties by key, except those the
|
|
1054
|
-
* structure writes (list topology). Claims the
|
|
1055
|
-
* return the attributes in your output.
|
|
1062
|
+
* plugin's non-metadata properties under their `attributes` names, then
|
|
1063
|
+
* other plugins' non-metadata properties by key, except those the
|
|
1064
|
+
* enclosing Markdown structure writes (list topology). Claims the
|
|
1065
|
+
* properties it writes, so return the attributes in your output. A
|
|
1066
|
+
* mapping that keeps a metadata property, such as an id, writes it with
|
|
1067
|
+
* `encodeAttributes`.
|
|
1056
1068
|
*/
|
|
1057
1069
|
encodeNodeAttributes: () => MdxJsxAttribute[];
|
|
1058
1070
|
node: TNode;
|
|
@@ -1536,6 +1548,9 @@ declare const ElementIdPlugin: BasePlugin<Readonly<{
|
|
|
1536
1548
|
}>, Readonly<{
|
|
1537
1549
|
group: "element";
|
|
1538
1550
|
kind: "group";
|
|
1551
|
+
}>, Readonly<{
|
|
1552
|
+
key: string;
|
|
1553
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
1539
1554
|
}>>;
|
|
1540
1555
|
};
|
|
1541
1556
|
};
|
|
@@ -2707,7 +2722,12 @@ declare const BaseHeadingPlugin: BasePlugin<Readonly<{
|
|
|
2707
2722
|
readonly name: "heading";
|
|
2708
2723
|
readonly formats: true;
|
|
2709
2724
|
readonly read: {
|
|
2710
|
-
readonly level: (node: Element) => HeadingLevel | undefined;
|
|
2725
|
+
readonly level: (node: Readonly<Element>) => HeadingLevel | undefined;
|
|
2726
|
+
/**
|
|
2727
|
+
* Whether `setLevel(level)` can apply: the schema lets every selected
|
|
2728
|
+
* block take the level where it sits.
|
|
2729
|
+
*/
|
|
2730
|
+
readonly canSetLevel: (level: HeadingLevel) => boolean;
|
|
2711
2731
|
};
|
|
2712
2732
|
readonly rules: true;
|
|
2713
2733
|
readonly update: {
|
|
@@ -2796,7 +2816,12 @@ declare const HeadingRules: {
|
|
|
2796
2816
|
readonly name: "heading";
|
|
2797
2817
|
readonly formats: true;
|
|
2798
2818
|
readonly read: {
|
|
2799
|
-
readonly level: (node: Element) => HeadingLevel | undefined;
|
|
2819
|
+
readonly level: (node: Readonly<Element>) => HeadingLevel | undefined;
|
|
2820
|
+
/**
|
|
2821
|
+
* Whether `setLevel(level)` can apply: the schema lets every selected
|
|
2822
|
+
* block take the level where it sits.
|
|
2823
|
+
*/
|
|
2824
|
+
readonly canSetLevel: (level: HeadingLevel) => boolean;
|
|
2800
2825
|
};
|
|
2801
2826
|
readonly rules: true;
|
|
2802
2827
|
readonly update: {
|
|
@@ -2878,7 +2903,12 @@ declare const HeadingRules: {
|
|
|
2878
2903
|
readonly name: "heading";
|
|
2879
2904
|
readonly formats: true;
|
|
2880
2905
|
readonly read: {
|
|
2881
|
-
readonly level: (node: Element) => HeadingLevel | undefined;
|
|
2906
|
+
readonly level: (node: Readonly<Element>) => HeadingLevel | undefined;
|
|
2907
|
+
/**
|
|
2908
|
+
* Whether `setLevel(level)` can apply: the schema lets every selected
|
|
2909
|
+
* block take the level where it sits.
|
|
2910
|
+
*/
|
|
2911
|
+
readonly canSetLevel: (level: HeadingLevel) => boolean;
|
|
2882
2912
|
};
|
|
2883
2913
|
readonly rules: true;
|
|
2884
2914
|
readonly update: {
|
|
@@ -3364,6 +3394,9 @@ declare const BaseLineHeightPlugin: BasePlugin<Readonly<{
|
|
|
3364
3394
|
}>, Readonly<{
|
|
3365
3395
|
kind: 'types';
|
|
3366
3396
|
types: readonly string[];
|
|
3397
|
+
}>, Readonly<{
|
|
3398
|
+
key: string;
|
|
3399
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3367
3400
|
}>>;
|
|
3368
3401
|
};
|
|
3369
3402
|
};
|
|
@@ -3439,6 +3472,9 @@ declare const BaseTextAlignPlugin: BasePlugin<Readonly<{
|
|
|
3439
3472
|
textAlign: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["center", "end", "justify", "left", "right", "start"], PropertyValueOptions<"center" | "end" | "justify" | "left" | "right" | "start">>, Readonly<{
|
|
3440
3473
|
kind: 'types';
|
|
3441
3474
|
types: readonly string[];
|
|
3475
|
+
}>, Readonly<{
|
|
3476
|
+
key: string;
|
|
3477
|
+
map: (value: "center" | "end" | "justify" | "left" | "right" | "start", renamed: (name: string) => string | undefined) => "center" | "end" | "justify" | "left" | "right" | "start";
|
|
3442
3478
|
}>>;
|
|
3443
3479
|
};
|
|
3444
3480
|
};
|
|
@@ -3518,6 +3554,9 @@ declare const BaseTextIndentPlugin: BasePlugin<Readonly<{
|
|
|
3518
3554
|
textIndent: SchemaElementPropertyDefinition<PropertyNumberDescriptor<PropertyValueOptions<number>>, Readonly<{
|
|
3519
3555
|
kind: 'types';
|
|
3520
3556
|
types: readonly string[];
|
|
3557
|
+
}>, Readonly<{
|
|
3558
|
+
key: string;
|
|
3559
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
3521
3560
|
}>>;
|
|
3522
3561
|
};
|
|
3523
3562
|
};
|
|
@@ -3595,6 +3634,14 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
|
|
|
3595
3634
|
placement: "element";
|
|
3596
3635
|
unaliased: true;
|
|
3597
3636
|
value: string;
|
|
3637
|
+
}> | Readonly<{
|
|
3638
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3639
|
+
key: "meta";
|
|
3640
|
+
localId: "meta";
|
|
3641
|
+
ownerName: "codeBlock";
|
|
3642
|
+
placement: "element";
|
|
3643
|
+
unaliased: true;
|
|
3644
|
+
value: string;
|
|
3598
3645
|
}>;
|
|
3599
3646
|
readonly schema: {
|
|
3600
3647
|
readonly element: {
|
|
@@ -3621,6 +3668,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
|
|
|
3621
3668
|
readonly ownsExit: true;
|
|
3622
3669
|
readonly properties: {
|
|
3623
3670
|
language: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3671
|
+
meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3624
3672
|
};
|
|
3625
3673
|
readonly slice: {
|
|
3626
3674
|
readonly preserveContext: true;
|
|
@@ -3641,6 +3689,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
|
|
|
3641
3689
|
type: "codeBlock";
|
|
3642
3690
|
}> & Readonly<{} & {
|
|
3643
3691
|
language?: string | undefined;
|
|
3692
|
+
meta?: string | undefined;
|
|
3644
3693
|
}>>;
|
|
3645
3694
|
} | undefined;
|
|
3646
3695
|
readonly indentDepth: () => number;
|
|
@@ -3653,6 +3702,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
|
|
|
3653
3702
|
type: "codeBlock";
|
|
3654
3703
|
}> & Readonly<{} & {
|
|
3655
3704
|
language?: string | undefined;
|
|
3705
|
+
meta?: string | undefined;
|
|
3656
3706
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
3657
3707
|
text: string;
|
|
3658
3708
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -3661,6 +3711,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
|
|
|
3661
3711
|
type: "codeBlock";
|
|
3662
3712
|
}> & Readonly<{} & {
|
|
3663
3713
|
language?: string | undefined;
|
|
3714
|
+
meta?: string | undefined;
|
|
3664
3715
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
|
|
3665
3716
|
readonly resetBlock: () => boolean;
|
|
3666
3717
|
readonly selectAll: () => boolean;
|
|
@@ -3675,6 +3726,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
|
|
|
3675
3726
|
type: "codeBlock";
|
|
3676
3727
|
}> & Readonly<{} & {
|
|
3677
3728
|
language?: string | undefined;
|
|
3729
|
+
meta?: string | undefined;
|
|
3678
3730
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
3679
3731
|
text: string;
|
|
3680
3732
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -3683,6 +3735,7 @@ declare const BaseCodeBlockPlugin: BasePlugin<Readonly<{
|
|
|
3683
3735
|
type: "codeBlock";
|
|
3684
3736
|
}> & Readonly<{} & {
|
|
3685
3737
|
language?: string | undefined;
|
|
3738
|
+
meta?: string | undefined;
|
|
3686
3739
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
|
|
3687
3740
|
};
|
|
3688
3741
|
}>> & Readonly<Record<never, never>>;
|
|
@@ -3703,6 +3756,14 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3703
3756
|
placement: "element";
|
|
3704
3757
|
unaliased: true;
|
|
3705
3758
|
value: string;
|
|
3759
|
+
}> | Readonly<{
|
|
3760
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3761
|
+
key: "meta";
|
|
3762
|
+
localId: "meta";
|
|
3763
|
+
ownerName: "codeBlock";
|
|
3764
|
+
placement: "element";
|
|
3765
|
+
unaliased: true;
|
|
3766
|
+
value: string;
|
|
3706
3767
|
}>;
|
|
3707
3768
|
}> & Readonly<Record<"read", {
|
|
3708
3769
|
readonly entry: ({ at }?: {
|
|
@@ -3712,6 +3773,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3712
3773
|
type: "codeBlock";
|
|
3713
3774
|
}> & Readonly<{} & {
|
|
3714
3775
|
language?: string | undefined;
|
|
3776
|
+
meta?: string | undefined;
|
|
3715
3777
|
}>>;
|
|
3716
3778
|
} | undefined;
|
|
3717
3779
|
readonly indentDepth: () => number;
|
|
@@ -3741,6 +3803,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3741
3803
|
readonly ownsExit: true;
|
|
3742
3804
|
readonly properties: {
|
|
3743
3805
|
language: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3806
|
+
meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3744
3807
|
};
|
|
3745
3808
|
readonly slice: {
|
|
3746
3809
|
readonly preserveContext: true;
|
|
@@ -3753,6 +3816,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3753
3816
|
type: "codeBlock";
|
|
3754
3817
|
}> & Readonly<{} & {
|
|
3755
3818
|
language?: string | undefined;
|
|
3819
|
+
meta?: string | undefined;
|
|
3756
3820
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
3757
3821
|
text: string;
|
|
3758
3822
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -3761,6 +3825,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3761
3825
|
type: "codeBlock";
|
|
3762
3826
|
}> & Readonly<{} & {
|
|
3763
3827
|
language?: string | undefined;
|
|
3828
|
+
meta?: string | undefined;
|
|
3764
3829
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
|
|
3765
3830
|
readonly resetBlock: () => boolean;
|
|
3766
3831
|
readonly selectAll: () => boolean;
|
|
@@ -3775,6 +3840,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3775
3840
|
type: "codeBlock";
|
|
3776
3841
|
}> & Readonly<{} & {
|
|
3777
3842
|
language?: string | undefined;
|
|
3843
|
+
meta?: string | undefined;
|
|
3778
3844
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
3779
3845
|
text: string;
|
|
3780
3846
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -3783,6 +3849,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3783
3849
|
type: "codeBlock";
|
|
3784
3850
|
}> & Readonly<{} & {
|
|
3785
3851
|
language?: string | undefined;
|
|
3852
|
+
meta?: string | undefined;
|
|
3786
3853
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
|
|
3787
3854
|
}>> & Readonly<Record<never, never>>> & Pick<BasePlugin<Readonly<{
|
|
3788
3855
|
readonly __pluginWritableProperties: Readonly<{
|
|
@@ -3793,6 +3860,14 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3793
3860
|
placement: "element";
|
|
3794
3861
|
unaliased: true;
|
|
3795
3862
|
value: string;
|
|
3863
|
+
}> | Readonly<{
|
|
3864
|
+
descriptor: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3865
|
+
key: "meta";
|
|
3866
|
+
localId: "meta";
|
|
3867
|
+
ownerName: "codeBlock";
|
|
3868
|
+
placement: "element";
|
|
3869
|
+
unaliased: true;
|
|
3870
|
+
value: string;
|
|
3796
3871
|
}>;
|
|
3797
3872
|
readonly schema: {
|
|
3798
3873
|
readonly element: {
|
|
@@ -3819,6 +3894,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3819
3894
|
readonly ownsExit: true;
|
|
3820
3895
|
readonly properties: {
|
|
3821
3896
|
language: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3897
|
+
meta: PropertyStringDescriptor<PropertyValueOptions<string>>;
|
|
3822
3898
|
};
|
|
3823
3899
|
readonly slice: {
|
|
3824
3900
|
readonly preserveContext: true;
|
|
@@ -3839,6 +3915,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3839
3915
|
type: "codeBlock";
|
|
3840
3916
|
}> & Readonly<{} & {
|
|
3841
3917
|
language?: string | undefined;
|
|
3918
|
+
meta?: string | undefined;
|
|
3842
3919
|
}>>;
|
|
3843
3920
|
} | undefined;
|
|
3844
3921
|
readonly indentDepth: () => number;
|
|
@@ -3851,6 +3928,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3851
3928
|
type: "codeBlock";
|
|
3852
3929
|
}> & Readonly<{} & {
|
|
3853
3930
|
language?: string | undefined;
|
|
3931
|
+
meta?: string | undefined;
|
|
3854
3932
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
3855
3933
|
text: string;
|
|
3856
3934
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -3859,6 +3937,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3859
3937
|
type: "codeBlock";
|
|
3860
3938
|
}> & Readonly<{} & {
|
|
3861
3939
|
language?: string | undefined;
|
|
3940
|
+
meta?: string | undefined;
|
|
3862
3941
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockInsertOptions) => boolean>;
|
|
3863
3942
|
readonly resetBlock: () => boolean;
|
|
3864
3943
|
readonly selectAll: () => boolean;
|
|
@@ -3873,6 +3952,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3873
3952
|
type: "codeBlock";
|
|
3874
3953
|
}> & Readonly<{} & {
|
|
3875
3954
|
language?: string | undefined;
|
|
3955
|
+
meta?: string | undefined;
|
|
3876
3956
|
}> & Readonly<Record<never, never>>, Readonly<{
|
|
3877
3957
|
text: string;
|
|
3878
3958
|
}> & Readonly<{} & {}>> | undefined;
|
|
@@ -3881,6 +3961,7 @@ declare const BaseCodeHighlightPlugin: BasePlugin<Readonly<{
|
|
|
3881
3961
|
type: "codeBlock";
|
|
3882
3962
|
}> & Readonly<{} & {
|
|
3883
3963
|
language?: string | undefined;
|
|
3964
|
+
meta?: string | undefined;
|
|
3884
3965
|
}> & Readonly<Record<never, never>>, "language">, options?: BlockUpsertOptions) => boolean>;
|
|
3885
3966
|
};
|
|
3886
3967
|
}>> & Readonly<Record<never, never>>, "~schema.plugins">];
|
|
@@ -4104,6 +4185,9 @@ declare const BaseIndentPlugin: BasePlugin<Readonly<{
|
|
|
4104
4185
|
}>, Readonly<{
|
|
4105
4186
|
kind: 'types';
|
|
4106
4187
|
types: readonly string[];
|
|
4188
|
+
}>, Readonly<{
|
|
4189
|
+
key: string;
|
|
4190
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
4107
4191
|
}>>;
|
|
4108
4192
|
};
|
|
4109
4193
|
};
|
|
@@ -5641,6 +5725,9 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
|
|
|
5641
5725
|
}>, Readonly<{
|
|
5642
5726
|
kind: 'types';
|
|
5643
5727
|
types: readonly string[];
|
|
5728
|
+
}>, Readonly<{
|
|
5729
|
+
key: string;
|
|
5730
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5644
5731
|
}>>;
|
|
5645
5732
|
};
|
|
5646
5733
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -5709,6 +5796,9 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
|
|
|
5709
5796
|
}>, Readonly<{
|
|
5710
5797
|
kind: 'types';
|
|
5711
5798
|
types: readonly string[];
|
|
5799
|
+
}>, Readonly<{
|
|
5800
|
+
key: string;
|
|
5801
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5712
5802
|
}>>;
|
|
5713
5803
|
};
|
|
5714
5804
|
};
|
|
@@ -5871,6 +5961,9 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
|
|
|
5871
5961
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
5872
5962
|
kind: 'types';
|
|
5873
5963
|
types: readonly string[];
|
|
5964
|
+
}>, Readonly<{
|
|
5965
|
+
key: string;
|
|
5966
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
5874
5967
|
}>>;
|
|
5875
5968
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
5876
5969
|
readonly validate: typeof isListOrdinal;
|
|
@@ -5878,6 +5971,9 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
|
|
|
5878
5971
|
}>, Readonly<{
|
|
5879
5972
|
kind: 'types';
|
|
5880
5973
|
types: readonly string[];
|
|
5974
|
+
}>, Readonly<{
|
|
5975
|
+
key: string;
|
|
5976
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5881
5977
|
}>>;
|
|
5882
5978
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
5883
5979
|
readonly validate: typeof isListOrdinal;
|
|
@@ -5885,10 +5981,16 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
|
|
|
5885
5981
|
}>, Readonly<{
|
|
5886
5982
|
kind: 'types';
|
|
5887
5983
|
types: readonly string[];
|
|
5984
|
+
}>, Readonly<{
|
|
5985
|
+
key: string;
|
|
5986
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
5888
5987
|
}>>;
|
|
5889
5988
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
5890
5989
|
kind: 'types';
|
|
5891
5990
|
types: readonly string[];
|
|
5991
|
+
}>, Readonly<{
|
|
5992
|
+
key: string;
|
|
5993
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
5892
5994
|
}>>;
|
|
5893
5995
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
5894
5996
|
label?: string;
|
|
@@ -5920,14 +6022,31 @@ declare const BaseListPlugin: BasePlugin<Readonly<{
|
|
|
5920
6022
|
}>>, Readonly<{
|
|
5921
6023
|
kind: 'types';
|
|
5922
6024
|
types: readonly string[];
|
|
6025
|
+
}>, Readonly<{
|
|
6026
|
+
key: string;
|
|
6027
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
6028
|
+
label?: string;
|
|
6029
|
+
restartAfter?: number;
|
|
6030
|
+
start?: number;
|
|
6031
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
6032
|
+
label?: string;
|
|
6033
|
+
restartAfter?: number;
|
|
6034
|
+
start?: number;
|
|
6035
|
+
}>>>;
|
|
5923
6036
|
}>>;
|
|
5924
6037
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
5925
6038
|
kind: 'types';
|
|
5926
6039
|
types: readonly string[];
|
|
6040
|
+
}>, Readonly<{
|
|
6041
|
+
key: string;
|
|
6042
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
5927
6043
|
}>>;
|
|
5928
6044
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
5929
6045
|
kind: 'types';
|
|
5930
6046
|
types: readonly string[];
|
|
6047
|
+
}>, Readonly<{
|
|
6048
|
+
key: string;
|
|
6049
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
5931
6050
|
}>>;
|
|
5932
6051
|
};
|
|
5933
6052
|
};
|
|
@@ -6052,6 +6171,9 @@ declare const BulletedListRules: {
|
|
|
6052
6171
|
}>, Readonly<{
|
|
6053
6172
|
kind: 'types';
|
|
6054
6173
|
types: readonly string[];
|
|
6174
|
+
}>, Readonly<{
|
|
6175
|
+
key: string;
|
|
6176
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6055
6177
|
}>>;
|
|
6056
6178
|
};
|
|
6057
6179
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -6120,6 +6242,9 @@ declare const BulletedListRules: {
|
|
|
6120
6242
|
}>, Readonly<{
|
|
6121
6243
|
kind: 'types';
|
|
6122
6244
|
types: readonly string[];
|
|
6245
|
+
}>, Readonly<{
|
|
6246
|
+
key: string;
|
|
6247
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6123
6248
|
}>>;
|
|
6124
6249
|
};
|
|
6125
6250
|
};
|
|
@@ -6282,6 +6407,9 @@ declare const BulletedListRules: {
|
|
|
6282
6407
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
6283
6408
|
kind: 'types';
|
|
6284
6409
|
types: readonly string[];
|
|
6410
|
+
}>, Readonly<{
|
|
6411
|
+
key: string;
|
|
6412
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
6285
6413
|
}>>;
|
|
6286
6414
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
6287
6415
|
readonly validate: typeof isListOrdinal;
|
|
@@ -6289,6 +6417,9 @@ declare const BulletedListRules: {
|
|
|
6289
6417
|
}>, Readonly<{
|
|
6290
6418
|
kind: 'types';
|
|
6291
6419
|
types: readonly string[];
|
|
6420
|
+
}>, Readonly<{
|
|
6421
|
+
key: string;
|
|
6422
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6292
6423
|
}>>;
|
|
6293
6424
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
6294
6425
|
readonly validate: typeof isListOrdinal;
|
|
@@ -6296,10 +6427,16 @@ declare const BulletedListRules: {
|
|
|
6296
6427
|
}>, Readonly<{
|
|
6297
6428
|
kind: 'types';
|
|
6298
6429
|
types: readonly string[];
|
|
6430
|
+
}>, Readonly<{
|
|
6431
|
+
key: string;
|
|
6432
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6299
6433
|
}>>;
|
|
6300
6434
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
6301
6435
|
kind: 'types';
|
|
6302
6436
|
types: readonly string[];
|
|
6437
|
+
}>, Readonly<{
|
|
6438
|
+
key: string;
|
|
6439
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
6303
6440
|
}>>;
|
|
6304
6441
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
6305
6442
|
label?: string;
|
|
@@ -6331,14 +6468,31 @@ declare const BulletedListRules: {
|
|
|
6331
6468
|
}>>, Readonly<{
|
|
6332
6469
|
kind: 'types';
|
|
6333
6470
|
types: readonly string[];
|
|
6471
|
+
}>, Readonly<{
|
|
6472
|
+
key: string;
|
|
6473
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
6474
|
+
label?: string;
|
|
6475
|
+
restartAfter?: number;
|
|
6476
|
+
start?: number;
|
|
6477
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
6478
|
+
label?: string;
|
|
6479
|
+
restartAfter?: number;
|
|
6480
|
+
start?: number;
|
|
6481
|
+
}>>>;
|
|
6334
6482
|
}>>;
|
|
6335
6483
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
6336
6484
|
kind: 'types';
|
|
6337
6485
|
types: readonly string[];
|
|
6486
|
+
}>, Readonly<{
|
|
6487
|
+
key: string;
|
|
6488
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
6338
6489
|
}>>;
|
|
6339
6490
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
6340
6491
|
kind: 'types';
|
|
6341
6492
|
types: readonly string[];
|
|
6493
|
+
}>, Readonly<{
|
|
6494
|
+
key: string;
|
|
6495
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
6342
6496
|
}>>;
|
|
6343
6497
|
};
|
|
6344
6498
|
};
|
|
@@ -6454,6 +6608,9 @@ declare const BulletedListRules: {
|
|
|
6454
6608
|
}>, Readonly<{
|
|
6455
6609
|
kind: 'types';
|
|
6456
6610
|
types: readonly string[];
|
|
6611
|
+
}>, Readonly<{
|
|
6612
|
+
key: string;
|
|
6613
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6457
6614
|
}>>;
|
|
6458
6615
|
};
|
|
6459
6616
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -6522,6 +6679,9 @@ declare const BulletedListRules: {
|
|
|
6522
6679
|
}>, Readonly<{
|
|
6523
6680
|
kind: 'types';
|
|
6524
6681
|
types: readonly string[];
|
|
6682
|
+
}>, Readonly<{
|
|
6683
|
+
key: string;
|
|
6684
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6525
6685
|
}>>;
|
|
6526
6686
|
};
|
|
6527
6687
|
};
|
|
@@ -6684,6 +6844,9 @@ declare const BulletedListRules: {
|
|
|
6684
6844
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
6685
6845
|
kind: 'types';
|
|
6686
6846
|
types: readonly string[];
|
|
6847
|
+
}>, Readonly<{
|
|
6848
|
+
key: string;
|
|
6849
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
6687
6850
|
}>>;
|
|
6688
6851
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
6689
6852
|
readonly validate: typeof isListOrdinal;
|
|
@@ -6691,6 +6854,9 @@ declare const BulletedListRules: {
|
|
|
6691
6854
|
}>, Readonly<{
|
|
6692
6855
|
kind: 'types';
|
|
6693
6856
|
types: readonly string[];
|
|
6857
|
+
}>, Readonly<{
|
|
6858
|
+
key: string;
|
|
6859
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6694
6860
|
}>>;
|
|
6695
6861
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
6696
6862
|
readonly validate: typeof isListOrdinal;
|
|
@@ -6698,10 +6864,16 @@ declare const BulletedListRules: {
|
|
|
6698
6864
|
}>, Readonly<{
|
|
6699
6865
|
kind: 'types';
|
|
6700
6866
|
types: readonly string[];
|
|
6867
|
+
}>, Readonly<{
|
|
6868
|
+
key: string;
|
|
6869
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6701
6870
|
}>>;
|
|
6702
6871
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
6703
6872
|
kind: 'types';
|
|
6704
6873
|
types: readonly string[];
|
|
6874
|
+
}>, Readonly<{
|
|
6875
|
+
key: string;
|
|
6876
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
6705
6877
|
}>>;
|
|
6706
6878
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
6707
6879
|
label?: string;
|
|
@@ -6733,14 +6905,31 @@ declare const BulletedListRules: {
|
|
|
6733
6905
|
}>>, Readonly<{
|
|
6734
6906
|
kind: 'types';
|
|
6735
6907
|
types: readonly string[];
|
|
6908
|
+
}>, Readonly<{
|
|
6909
|
+
key: string;
|
|
6910
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
6911
|
+
label?: string;
|
|
6912
|
+
restartAfter?: number;
|
|
6913
|
+
start?: number;
|
|
6914
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
6915
|
+
label?: string;
|
|
6916
|
+
restartAfter?: number;
|
|
6917
|
+
start?: number;
|
|
6918
|
+
}>>>;
|
|
6736
6919
|
}>>;
|
|
6737
6920
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
6738
6921
|
kind: 'types';
|
|
6739
6922
|
types: readonly string[];
|
|
6923
|
+
}>, Readonly<{
|
|
6924
|
+
key: string;
|
|
6925
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
6740
6926
|
}>>;
|
|
6741
6927
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
6742
6928
|
kind: 'types';
|
|
6743
6929
|
types: readonly string[];
|
|
6930
|
+
}>, Readonly<{
|
|
6931
|
+
key: string;
|
|
6932
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
6744
6933
|
}>>;
|
|
6745
6934
|
};
|
|
6746
6935
|
};
|
|
@@ -6873,6 +7062,9 @@ declare const OrderedListRules: {
|
|
|
6873
7062
|
}>, Readonly<{
|
|
6874
7063
|
kind: 'types';
|
|
6875
7064
|
types: readonly string[];
|
|
7065
|
+
}>, Readonly<{
|
|
7066
|
+
key: string;
|
|
7067
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6876
7068
|
}>>;
|
|
6877
7069
|
};
|
|
6878
7070
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -6941,6 +7133,9 @@ declare const OrderedListRules: {
|
|
|
6941
7133
|
}>, Readonly<{
|
|
6942
7134
|
kind: 'types';
|
|
6943
7135
|
types: readonly string[];
|
|
7136
|
+
}>, Readonly<{
|
|
7137
|
+
key: string;
|
|
7138
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
6944
7139
|
}>>;
|
|
6945
7140
|
};
|
|
6946
7141
|
};
|
|
@@ -7103,6 +7298,9 @@ declare const OrderedListRules: {
|
|
|
7103
7298
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
7104
7299
|
kind: 'types';
|
|
7105
7300
|
types: readonly string[];
|
|
7301
|
+
}>, Readonly<{
|
|
7302
|
+
key: string;
|
|
7303
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
7106
7304
|
}>>;
|
|
7107
7305
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
7108
7306
|
readonly validate: typeof isListOrdinal;
|
|
@@ -7110,6 +7308,9 @@ declare const OrderedListRules: {
|
|
|
7110
7308
|
}>, Readonly<{
|
|
7111
7309
|
kind: 'types';
|
|
7112
7310
|
types: readonly string[];
|
|
7311
|
+
}>, Readonly<{
|
|
7312
|
+
key: string;
|
|
7313
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7113
7314
|
}>>;
|
|
7114
7315
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
7115
7316
|
readonly validate: typeof isListOrdinal;
|
|
@@ -7117,10 +7318,16 @@ declare const OrderedListRules: {
|
|
|
7117
7318
|
}>, Readonly<{
|
|
7118
7319
|
kind: 'types';
|
|
7119
7320
|
types: readonly string[];
|
|
7321
|
+
}>, Readonly<{
|
|
7322
|
+
key: string;
|
|
7323
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7120
7324
|
}>>;
|
|
7121
7325
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
7122
7326
|
kind: 'types';
|
|
7123
7327
|
types: readonly string[];
|
|
7328
|
+
}>, Readonly<{
|
|
7329
|
+
key: string;
|
|
7330
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
7124
7331
|
}>>;
|
|
7125
7332
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
7126
7333
|
label?: string;
|
|
@@ -7152,14 +7359,31 @@ declare const OrderedListRules: {
|
|
|
7152
7359
|
}>>, Readonly<{
|
|
7153
7360
|
kind: 'types';
|
|
7154
7361
|
types: readonly string[];
|
|
7362
|
+
}>, Readonly<{
|
|
7363
|
+
key: string;
|
|
7364
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
7365
|
+
label?: string;
|
|
7366
|
+
restartAfter?: number;
|
|
7367
|
+
start?: number;
|
|
7368
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
7369
|
+
label?: string;
|
|
7370
|
+
restartAfter?: number;
|
|
7371
|
+
start?: number;
|
|
7372
|
+
}>>>;
|
|
7155
7373
|
}>>;
|
|
7156
7374
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
7157
7375
|
kind: 'types';
|
|
7158
7376
|
types: readonly string[];
|
|
7377
|
+
}>, Readonly<{
|
|
7378
|
+
key: string;
|
|
7379
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
7159
7380
|
}>>;
|
|
7160
7381
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
7161
7382
|
kind: 'types';
|
|
7162
7383
|
types: readonly string[];
|
|
7384
|
+
}>, Readonly<{
|
|
7385
|
+
key: string;
|
|
7386
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
7163
7387
|
}>>;
|
|
7164
7388
|
};
|
|
7165
7389
|
};
|
|
@@ -7275,6 +7499,9 @@ declare const OrderedListRules: {
|
|
|
7275
7499
|
}>, Readonly<{
|
|
7276
7500
|
kind: 'types';
|
|
7277
7501
|
types: readonly string[];
|
|
7502
|
+
}>, Readonly<{
|
|
7503
|
+
key: string;
|
|
7504
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7278
7505
|
}>>;
|
|
7279
7506
|
};
|
|
7280
7507
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -7343,6 +7570,9 @@ declare const OrderedListRules: {
|
|
|
7343
7570
|
}>, Readonly<{
|
|
7344
7571
|
kind: 'types';
|
|
7345
7572
|
types: readonly string[];
|
|
7573
|
+
}>, Readonly<{
|
|
7574
|
+
key: string;
|
|
7575
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7346
7576
|
}>>;
|
|
7347
7577
|
};
|
|
7348
7578
|
};
|
|
@@ -7505,6 +7735,9 @@ declare const OrderedListRules: {
|
|
|
7505
7735
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
7506
7736
|
kind: 'types';
|
|
7507
7737
|
types: readonly string[];
|
|
7738
|
+
}>, Readonly<{
|
|
7739
|
+
key: string;
|
|
7740
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
7508
7741
|
}>>;
|
|
7509
7742
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
7510
7743
|
readonly validate: typeof isListOrdinal;
|
|
@@ -7512,6 +7745,9 @@ declare const OrderedListRules: {
|
|
|
7512
7745
|
}>, Readonly<{
|
|
7513
7746
|
kind: 'types';
|
|
7514
7747
|
types: readonly string[];
|
|
7748
|
+
}>, Readonly<{
|
|
7749
|
+
key: string;
|
|
7750
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7515
7751
|
}>>;
|
|
7516
7752
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
7517
7753
|
readonly validate: typeof isListOrdinal;
|
|
@@ -7519,10 +7755,16 @@ declare const OrderedListRules: {
|
|
|
7519
7755
|
}>, Readonly<{
|
|
7520
7756
|
kind: 'types';
|
|
7521
7757
|
types: readonly string[];
|
|
7758
|
+
}>, Readonly<{
|
|
7759
|
+
key: string;
|
|
7760
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7522
7761
|
}>>;
|
|
7523
7762
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
7524
7763
|
kind: 'types';
|
|
7525
7764
|
types: readonly string[];
|
|
7765
|
+
}>, Readonly<{
|
|
7766
|
+
key: string;
|
|
7767
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
7526
7768
|
}>>;
|
|
7527
7769
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
7528
7770
|
label?: string;
|
|
@@ -7554,14 +7796,31 @@ declare const OrderedListRules: {
|
|
|
7554
7796
|
}>>, Readonly<{
|
|
7555
7797
|
kind: 'types';
|
|
7556
7798
|
types: readonly string[];
|
|
7799
|
+
}>, Readonly<{
|
|
7800
|
+
key: string;
|
|
7801
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
7802
|
+
label?: string;
|
|
7803
|
+
restartAfter?: number;
|
|
7804
|
+
start?: number;
|
|
7805
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
7806
|
+
label?: string;
|
|
7807
|
+
restartAfter?: number;
|
|
7808
|
+
start?: number;
|
|
7809
|
+
}>>>;
|
|
7557
7810
|
}>>;
|
|
7558
7811
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
7559
7812
|
kind: 'types';
|
|
7560
7813
|
types: readonly string[];
|
|
7814
|
+
}>, Readonly<{
|
|
7815
|
+
key: string;
|
|
7816
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
7561
7817
|
}>>;
|
|
7562
7818
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
7563
7819
|
kind: 'types';
|
|
7564
7820
|
types: readonly string[];
|
|
7821
|
+
}>, Readonly<{
|
|
7822
|
+
key: string;
|
|
7823
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
7565
7824
|
}>>;
|
|
7566
7825
|
};
|
|
7567
7826
|
};
|
|
@@ -7682,6 +7941,9 @@ declare const TaskListRules: {
|
|
|
7682
7941
|
}>, Readonly<{
|
|
7683
7942
|
kind: 'types';
|
|
7684
7943
|
types: readonly string[];
|
|
7944
|
+
}>, Readonly<{
|
|
7945
|
+
key: string;
|
|
7946
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7685
7947
|
}>>;
|
|
7686
7948
|
};
|
|
7687
7949
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -7750,6 +8012,9 @@ declare const TaskListRules: {
|
|
|
7750
8012
|
}>, Readonly<{
|
|
7751
8013
|
kind: 'types';
|
|
7752
8014
|
types: readonly string[];
|
|
8015
|
+
}>, Readonly<{
|
|
8016
|
+
key: string;
|
|
8017
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7753
8018
|
}>>;
|
|
7754
8019
|
};
|
|
7755
8020
|
};
|
|
@@ -7912,6 +8177,9 @@ declare const TaskListRules: {
|
|
|
7912
8177
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
7913
8178
|
kind: 'types';
|
|
7914
8179
|
types: readonly string[];
|
|
8180
|
+
}>, Readonly<{
|
|
8181
|
+
key: string;
|
|
8182
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
7915
8183
|
}>>;
|
|
7916
8184
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
7917
8185
|
readonly validate: typeof isListOrdinal;
|
|
@@ -7919,6 +8187,9 @@ declare const TaskListRules: {
|
|
|
7919
8187
|
}>, Readonly<{
|
|
7920
8188
|
kind: 'types';
|
|
7921
8189
|
types: readonly string[];
|
|
8190
|
+
}>, Readonly<{
|
|
8191
|
+
key: string;
|
|
8192
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7922
8193
|
}>>;
|
|
7923
8194
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
7924
8195
|
readonly validate: typeof isListOrdinal;
|
|
@@ -7926,10 +8197,16 @@ declare const TaskListRules: {
|
|
|
7926
8197
|
}>, Readonly<{
|
|
7927
8198
|
kind: 'types';
|
|
7928
8199
|
types: readonly string[];
|
|
8200
|
+
}>, Readonly<{
|
|
8201
|
+
key: string;
|
|
8202
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
7929
8203
|
}>>;
|
|
7930
8204
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
7931
8205
|
kind: 'types';
|
|
7932
8206
|
types: readonly string[];
|
|
8207
|
+
}>, Readonly<{
|
|
8208
|
+
key: string;
|
|
8209
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
7933
8210
|
}>>;
|
|
7934
8211
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
7935
8212
|
label?: string;
|
|
@@ -7961,14 +8238,31 @@ declare const TaskListRules: {
|
|
|
7961
8238
|
}>>, Readonly<{
|
|
7962
8239
|
kind: 'types';
|
|
7963
8240
|
types: readonly string[];
|
|
8241
|
+
}>, Readonly<{
|
|
8242
|
+
key: string;
|
|
8243
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
8244
|
+
label?: string;
|
|
8245
|
+
restartAfter?: number;
|
|
8246
|
+
start?: number;
|
|
8247
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
8248
|
+
label?: string;
|
|
8249
|
+
restartAfter?: number;
|
|
8250
|
+
start?: number;
|
|
8251
|
+
}>>>;
|
|
7964
8252
|
}>>;
|
|
7965
8253
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
7966
8254
|
kind: 'types';
|
|
7967
8255
|
types: readonly string[];
|
|
8256
|
+
}>, Readonly<{
|
|
8257
|
+
key: string;
|
|
8258
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
7968
8259
|
}>>;
|
|
7969
8260
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
7970
8261
|
kind: 'types';
|
|
7971
8262
|
types: readonly string[];
|
|
8263
|
+
}>, Readonly<{
|
|
8264
|
+
key: string;
|
|
8265
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
7972
8266
|
}>>;
|
|
7973
8267
|
};
|
|
7974
8268
|
};
|
|
@@ -8084,6 +8378,9 @@ declare const TaskListRules: {
|
|
|
8084
8378
|
}>, Readonly<{
|
|
8085
8379
|
kind: 'types';
|
|
8086
8380
|
types: readonly string[];
|
|
8381
|
+
}>, Readonly<{
|
|
8382
|
+
key: string;
|
|
8383
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
8087
8384
|
}>>;
|
|
8088
8385
|
};
|
|
8089
8386
|
}>> & Readonly<Record<"targetPlugins", readonly [BasePlugin<Readonly<{
|
|
@@ -8152,6 +8449,9 @@ declare const TaskListRules: {
|
|
|
8152
8449
|
}>, Readonly<{
|
|
8153
8450
|
kind: 'types';
|
|
8154
8451
|
types: readonly string[];
|
|
8452
|
+
}>, Readonly<{
|
|
8453
|
+
key: string;
|
|
8454
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
8155
8455
|
}>>;
|
|
8156
8456
|
};
|
|
8157
8457
|
};
|
|
@@ -8314,6 +8614,9 @@ declare const TaskListRules: {
|
|
|
8314
8614
|
checked: SchemaElementPropertyDefinition<PropertyBooleanDescriptor<PropertyValueOptions<boolean>>, Readonly<{
|
|
8315
8615
|
kind: 'types';
|
|
8316
8616
|
types: readonly string[];
|
|
8617
|
+
}>, Readonly<{
|
|
8618
|
+
key: string;
|
|
8619
|
+
map: (value: boolean, renamed: (name: string) => string | undefined) => boolean;
|
|
8317
8620
|
}>>;
|
|
8318
8621
|
listStart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
8319
8622
|
readonly validate: typeof isListOrdinal;
|
|
@@ -8321,6 +8624,9 @@ declare const TaskListRules: {
|
|
|
8321
8624
|
}>, Readonly<{
|
|
8322
8625
|
kind: 'types';
|
|
8323
8626
|
types: readonly string[];
|
|
8627
|
+
}>, Readonly<{
|
|
8628
|
+
key: string;
|
|
8629
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
8324
8630
|
}>>;
|
|
8325
8631
|
listRestart: SchemaElementPropertyDefinition<PropertyNumberDescriptor<{
|
|
8326
8632
|
readonly validate: typeof isListOrdinal;
|
|
@@ -8328,10 +8634,16 @@ declare const TaskListRules: {
|
|
|
8328
8634
|
}>, Readonly<{
|
|
8329
8635
|
kind: 'types';
|
|
8330
8636
|
types: readonly string[];
|
|
8637
|
+
}>, Readonly<{
|
|
8638
|
+
key: string;
|
|
8639
|
+
map: (value: number, renamed: (name: string) => string | undefined) => number;
|
|
8331
8640
|
}>>;
|
|
8332
8641
|
listId: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
8333
8642
|
kind: 'types';
|
|
8334
8643
|
types: readonly string[];
|
|
8644
|
+
}>, Readonly<{
|
|
8645
|
+
key: string;
|
|
8646
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
8335
8647
|
}>>;
|
|
8336
8648
|
listLevels: SchemaElementPropertyDefinition<PropertyJsonDescriptor<Readonly<Record<string, Readonly<{
|
|
8337
8649
|
label?: string;
|
|
@@ -8363,14 +8675,31 @@ declare const TaskListRules: {
|
|
|
8363
8675
|
}>>, Readonly<{
|
|
8364
8676
|
kind: 'types';
|
|
8365
8677
|
types: readonly string[];
|
|
8678
|
+
}>, Readonly<{
|
|
8679
|
+
key: string;
|
|
8680
|
+
map: (value: Readonly<Record<string, Readonly<{
|
|
8681
|
+
label?: string;
|
|
8682
|
+
restartAfter?: number;
|
|
8683
|
+
start?: number;
|
|
8684
|
+
}>>>, renamed: (name: string) => string | undefined) => Readonly<Record<string, Readonly<{
|
|
8685
|
+
label?: string;
|
|
8686
|
+
restartAfter?: number;
|
|
8687
|
+
start?: number;
|
|
8688
|
+
}>>>;
|
|
8366
8689
|
}>>;
|
|
8367
8690
|
listStyle: SchemaElementPropertyDefinition<PropertyStringDescriptor<PropertyValueOptions<string>>, Readonly<{
|
|
8368
8691
|
kind: 'types';
|
|
8369
8692
|
types: readonly string[];
|
|
8693
|
+
}>, Readonly<{
|
|
8694
|
+
key: string;
|
|
8695
|
+
map: (value: string, renamed: (name: string) => string | undefined) => string;
|
|
8370
8696
|
}>>;
|
|
8371
8697
|
listType: SchemaElementPropertyDefinition<PropertyEnumDescriptor<readonly ["bulleted", "numbered", "task"], PropertyValueOptions<"bulleted" | "numbered" | "task">>, Readonly<{
|
|
8372
8698
|
kind: 'types';
|
|
8373
8699
|
types: readonly string[];
|
|
8700
|
+
}>, Readonly<{
|
|
8701
|
+
key: string;
|
|
8702
|
+
map: (value: "bulleted" | "numbered" | "task", renamed: (name: string) => string | undefined) => "bulleted" | "numbered" | "task";
|
|
8374
8703
|
}>>;
|
|
8375
8704
|
};
|
|
8376
8705
|
};
|
|
@@ -9588,6 +9917,7 @@ type ErasedPluginSlots = {
|
|
|
9588
9917
|
afterNodeChildren?: ErasedPluginCallable | null;
|
|
9589
9918
|
beforeContainer?: NodeComponent | null;
|
|
9590
9919
|
beforeEditable?: NodeComponent | null;
|
|
9920
|
+
caret?: NodeComponent | null;
|
|
9591
9921
|
wrapContent?: NodeComponent<{
|
|
9592
9922
|
children: any;
|
|
9593
9923
|
}> | null;
|
|
@@ -9901,6 +10231,7 @@ type PluginDataTransferFormatDeclaration<C extends AnyBasePluginDefinition = Bas
|
|
|
9901
10231
|
}>;
|
|
9902
10232
|
/** Schema format mappings registered through `defineFormats`. */
|
|
9903
10233
|
interface PluginProductNodeMappingRegistry<C extends AnyBasePluginDefinition> {
|
|
10234
|
+
docx: DocxNodeMapping<C>;
|
|
9904
10235
|
plainText: PlainTextNodeMappingInput<C>;
|
|
9905
10236
|
markdown: MarkdownNodeMappingInput<C>;
|
|
9906
10237
|
}
|
|
@@ -9950,6 +10281,7 @@ type PluginTargetedHtmlMixedMappingMap<C extends AnyBasePluginDefinition> = C ex
|
|
|
9950
10281
|
markdown?: never;
|
|
9951
10282
|
}> : never;
|
|
9952
10283
|
type PluginSelfHtmlProductNodeMappingMap<C extends AnyBasePluginDefinition> = PluginSelfHtmlMappingMap<C> & Readonly<{
|
|
10284
|
+
docx?: DocxNodeMapping<C>;
|
|
9953
10285
|
plainText?: PlainTextNodeMappingInput<C>;
|
|
9954
10286
|
markdown: MarkdownNodeMappingInput<C>;
|
|
9955
10287
|
}>;
|
|
@@ -10134,6 +10466,12 @@ type BasePluginAuthorFields<C extends AnyBasePluginDefinition = BasePluginDefini
|
|
|
10134
10466
|
beforeContainer?: () => any;
|
|
10135
10467
|
/** Renders a component before the Editable. */
|
|
10136
10468
|
beforeEditable?: () => any;
|
|
10469
|
+
/**
|
|
10470
|
+
* Renders a component after the Editable, whose editor is the view
|
|
10471
|
+
* holding the caret while that view is this view or mounted inside it,
|
|
10472
|
+
* such as a board note, and this view otherwise.
|
|
10473
|
+
*/
|
|
10474
|
+
caret?: () => any;
|
|
10137
10475
|
/** Wraps the Editable content and its lifecycle effects. */
|
|
10138
10476
|
wrapContent?: NodeComponent<{
|
|
10139
10477
|
children: any;
|
|
@@ -10521,4 +10859,4 @@ type NominalPluginReference = Readonly<{
|
|
|
10521
10859
|
name: string;
|
|
10522
10860
|
}>;
|
|
10523
10861
|
declare const isNominalPluginDescriptor: (value: unknown) => value is NominalPluginReference;
|
|
10524
|
-
export { PluginContributionCompatibility as $,
|
|
10862
|
+
export { PluginContributionCompatibility as $, InferEnabled as $a, definePlugin as $i, HeadingRules as $n, InputRulesDefinition as $r, UpsertLinkOptions as $t, DefinePluginFormats as A, RenderElementFn as Aa, AutoScrollOptions as Ai, CapturedFormat as An, PluginSelectorMethods as Ao, BaseParagraphDefinition as Ar, PlainTextSerializeResult as At, InjectNodeProps as B, AnyBasePluginDefinition as Ba, DebugPlugin as Bi, BaseStrikethroughPlugin as Bn, WithRequiredName as Bo, HtmlPlugin as Br, OutdentListOptions as Bt, BasePluginOn as C, MarkdownTagNode as Ca, ElementStatePlugin as Ci, BaseTextAlignPlugin as Cn, PluginSchemaContext as Co, RenderTextFn as Cr, PluginTransaction as Ct, ConfiguredPluginDescriptor as D, PluginFormatRegistry as Da, AutoScrollApi as Di, TextIndentDefinition as Dn, PluginSchemaReferences as Do, RenderLeafFn as Dr, PlainTextDiagnostic as Dt, ConfiguredBasePlugin as E, PluginFormatModelView as Ea, ElementIdPluginState as Ei, TextAlignDefinition as En, PluginSchemaMark as Eo, RenderTextProps as Er, CorePlugins as Et, HtmlMatchValue as F, ElementWith as Fa, ScrollIntoViewTarget as Fi, BaseCodePlugin as Fn, RuleDecision as Fo, createBlockStartInputRule as Fr, BulletedListRules as Ft, PluginShortcutInput as G, DefinitionOf as Ga, AffinityEdgeNodes as Gi, ItalicRules as Gn, AnyObject as Go, BlockStartInputRuleConfig as Gr, BaseLinkDefinition as Gt, LeafStaticProps as H, BasePluginDefinition as Ha, EditorError as Hi, BoldRules as Hn, InferPluginSchema as Ho, BaseInputRule as Hr, ToggleListOptions as Ht, HtmlMatcher as I, PluginFormatNode as Ia, ScrollMode as Ii, BaseHighlightPlugin as In, SelectionRules as Io, createMarkInputRule as Ir, ListElement as It, RenderStaticNodeWrapperProps as J, GetInjectNodePropsOptions as Ja, TransferDefinition as Ji, ScriptValue as Jn, GeneratedEditorTypeProvider as Jo, InputRule as Jr, CreateLinkNodeOptions as Jt, RenderStaticNodeWrapper as K, DeleteRules as Ka, AffinityPlugin as Ki, MarkComboRules as Kn, UnknownObject as Ko, BlockStartInputRuleMatch as Kr, BaseLinkPlugin as Kt, HtmlNodeSpec as L, TextWith as La, DebugApi as Li, BaseItalicPlugin as Ln, StructuralRuleContext as Lo, createTextSubstitutionInputRule as Lr, ListStyle as Lt, HtmlAttributes as M, RenderElementSlots as Ma, DomApi as Mi, FormattingContribution as Mn, PluginSelectors as Mo, inputRuleVeto as Mr, BULLETED_LIST_STYLES as Mt, HtmlContentToken as N, HandlerReturnType as Na, DomPluginState as Ni, formatting$1 as Nn, PluginStore as No, defineInputRule as Nr, BaseListDefinition as Nt, DeclaredPluginShortcutInput as O, PluginFormatSchemaView as Oa, AutoScrollChangeKind as Oi, TextIndentPluginState as On, PluginSelector as Oo, RenderLeafProps as Or, PlainTextDocumentOptions as Ot, HtmlElementPatch as P, DocxNodeMapping as Pa, DomPluginUpdate as Pi, BaseBoldPlugin as Pn, PluginViewStore as Po, createBlockFenceInputRule as Pr, BaseListPlugin as Pt, PluginCompatibilityArguments as Q, InferDependencies as Qa, HistoryPluginState as Qi, HeadingLevel as Qn, InputRulesConfig as Qr, UnwrapLinkOptions as Qt, HtmlPrepareDiagnosticInput as R, nanoid$1 as Ra, DebugDefinition as Ri, BaseKbdPlugin as Rn, StructuralRuleEditor as Ro, matchBlockStart as Rr, ListType as Rt, BasePluginImplementationContext as S, MarkdownTagAttributeView as Sa, ElementStateDefinition as Si, BaseLineHeightPlugin as Sn, PluginSchema as So, EditableProps as Sr, PluginState as St, BasePluginPortal as T, PluginFormatContext as Ta, ElementIdPlugin as Ti, LineHeightDefinition as Tn, PluginSchemaElement as To, RenderTextPieceProps as Tr, CoreEditorApi as Tt, NodeStaticProps as U, BaseTransformOptions as Ua, LogLevel as Ui, CodeRules as Un, InferPluginSchemaContribution as Uo, BlockFenceInputRuleConfig as Ur, isOrderedList as Ut, InternalBasePluginRuntimeExtension as V, BaseInjectProps as Va, DebugPluginState as Vi, BaseUnderlinePlugin as Vn, InferPluginNodeTypeProvider as Vo, decodeHtmlDataTransfer as Vr, TaskListRules as Vt, PartialBasePlugin as W, BreakRules as Wa, AffinityDefinition as Wi, HighlightRules as Wn, Nullable as Wo, BlockFenceInputRuleMatch as Wr, isListLevels as Wt, TransformOptions as X, InferApi as Xa, HistoryDefinition as Xi, UnderlineRules as Xn, InputRuleInsertTextOptions as Xr, LinkElement as Xt, TextStaticProps as Y, GetInjectNodePropsReturnType as Ya, TransferPlugin as Yi, StrikethroughRules as Yn, InputRuleEditor as Yr, LinkAttributes as Yt, MergePluginDefinitions as Z, InferConflicts as Za, HistoryPlugin as Zi, BaseHeadingPlugin as Zn, InputRuleTarget as Zr, LinkRules as Zt, BasePlugin as _, MarkdownNodeKinds as _a, TextSubstitutionInputRuleConfig as _i, Alignment as _n, PluginBaseContext as _o, getFragmentProp as _r, NodeInsertOptions as _t, SingleLinePlugin as a, BasePluginInstalledCapabilityWitness as aa, InsertDataInputRuleReadContext as ai, IndentPluginState as an, InferPluginStoreState as ao, getPluginNodeClass as ar, RuntimePluginsFromTuple as at, BasePluginDefinitionInput as b, MarkdownPluginRegistry as ba, TransformInputRuleContext as bi, BaseFontFamilyPlugin as bn, PluginPortalContext as bo, ApplyDeepToNodesOptions as br, PluginReadCapability as bt, PLUGINS as c, PlainTextEncodeContext as ca, InsertTextInputRuleReadContext as ci, BaseCodeBlockPlugin as cn, InferRead as co, mergeDeepToNodes as cr, BlockInsertOptions as ct, InferBaseEditorPlugins as d, MarkdownDecodeContext as da, MatchBlockFenceOptions as di, CodeBlockElement as dn, InferUpdate as do, Hotkeys as dr, InferEditorRuntimePlugins as dt, PluginInitialStateInput as ea, InsertBreakInputRule as ei, WrapLinkOptions as en, InferName as eo, ToggleHeadingOptions as er, CreateEditorOptions as et, InternalBaseEditorWithInstalledPlugins as f, MarkdownEncodeContext as fa, MatchBlockStartOptions as fi, CodeHighlightDefinition as fn, MergeRules as fo, createHotkey as fr, InferRuntimePlugins as ft, AnyPluginBase as g, MarkdownNodeKind as ga, SelectionInputRuleContext as gi, HighlightResult as gn, NormalizeRules as go, GetFragmentPropOptions as gr, MergeInstalledPluginDefinitions as gt, AnyBasePluginPortal as h, MarkdownMarks as ha, ResolvedInputRulesMeta as hi, HighlightNode as hn, NormalizePluginState as ho, FragmentPropMode as hr, InternalInstalledSchemaMutationProvider as ht, TrailingBlockPluginState as i, BasePluginDependencyReferences as ia, InsertDataInputRuleContext as ii, IndentDefinition as in, InferPluginReadGroups as io, HorizontalRuleRules as ir, PlatePluginsFromTuple as it, EditorShortcut as j, RenderElementProps as ja, AutoScrollUpdate as ji, FormattingBlockEntry as jn, PluginSelectorReturn as jo, BaseParagraphPlugin as jr, serializePlainText as jt, Decorate as k, ElementContentRootSlot as ka, AutoScrollChangesMap as ki, BaseFormattingPlugin as kn, PluginSelectorArgs as ko, StaticRenderLeafProps as kr, PlainTextEditorOptions as kt, PluginName as l, PlainTextNodeMapping as la, MarkInputRuleConfig as li, BaseCodeHighlightPlugin as ln, InferSelectors as lo, isUrl as lr, BlockUpsertOptions as lt, AnyBasePluginContext as m, MarkdownMarkWrapper as ma, ResolvedInputRule as mi, CodeHighlightPluginState as mn, NormalizePluginSelectors as mo, getInjectMatch as mr, InternalInstalledSchemaDefinitionsProvider as mt, TrailingBlockDefinition as n, BasePluginDependencyDescriptors as na, InsertBreakInputRuleReadContext as ni, BaseIndentPlugin as nn, InferOwnRead as no, BaseHorizontalRulePlugin as nr, EditorOptions as nt, SingleBlockPlugin as o, LowerBasePlugin as oa, InsertTextInputRule as oi, isNonNegativeSafeInteger as on, InferPluginUpdateGroups as oo, isPluginElementClass as or, createEditor as ot, AnyBasePlugin as p, MarkdownMarkWrapContext as pa, MatchDelimitedInlineOptions as pi, CodeHighlightLowlight as pn, NodeComponent as po, isHotkey as pr, InternalEditorMutationProvider as pt, RenderStaticNodeWrapperFunction as q, EditOnlyConfig as qa, AffinityPluginUpdate as qi, ScriptRules as qn, GeneratedEditorMutations as qo, DelimitedInlineInputRuleMatch as qr, BaseLinkPluginState as qt, TrailingBlockPlugin as r, BasePluginDependencyReferenceFor as ra, InsertDataInputRule as ri, IndentChangeOptions as rn, InferOwnUpdate as ro, BlockquoteRules as rr, EditorValueInput as rt, ExitBreakPlugin as s, NormalizeBasePluginInput$1 as sa, InsertTextInputRuleContext as si, CodeBlockRules as sn, InferPluginViewState as so, isPluginNodeClass as sr, BasePluginInput as st, isNominalPluginDescriptor as t, RequiredPluginState as ta, InsertBreakInputRuleContext as ti, getLinkHref as tn, InferOwnApi as to, BaseBlockquotePlugin as tr, EditorCompilation as tt, Editor as u, PlainTextNodeMappingInput as ua, MarkInputRuleMatch as ui, CodeBlockDefinition as un, InferTargetPlugins as uo, isDefined as ur, EditorPropertyTypes as ut, BasePluginConfiguration as v, MarkdownNodeMapping as va, TextSubstitutionMatch as vi, BaseFontBackgroundColorPlugin as vn, PluginDefinitionWitness as vo, IS_APPLE as vr, PluginDirectUpdate as vt, BasePluginOverride as w, HtmlMappingDiagnosticInput as wa, ElementIdEntry as wi, BaseTextIndentPlugin as wn, PluginSchemaDeclaration as wo, RenderTextHostProps as wr, PluginUpdate as wt, BasePluginExtendInput as x, MarkdownRefusal as xa, ElementStateApi as xi, BaseFontSizePlugin as xn, PluginReference as xo, applyDeepToNodes as xr, PluginReadState as xt, BasePluginContext as y, MarkdownNodeMappingInput as ya, TextSubstitutionPattern as yi, BaseFontColorPlugin as yn, PluginDependency as yo, defaultsDeepToNodes as yr, PluginOwnUpdate as yt, HtmlWrapperSpec as z, InternalPluginDefinitionOf as za, DebugErrorType as zi, BaseScriptPlugin as zn, WithAnyName as zo, matchDelimitedInline as zr, OrderedListRules as zt };
|