@portabletext/editor 7.1.1 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_chunks-dts/behavior.types.action.d.ts +701 -27
- package/lib/_chunks-dts/behavior.types.action.d.ts.map +1 -1
- package/lib/_chunks-es/get-first-child.js +53 -4
- package/lib/_chunks-es/get-first-child.js.map +1 -1
- package/lib/_chunks-es/get-path-sub-schema.js +79 -0
- package/lib/_chunks-es/get-path-sub-schema.js.map +1 -1
- package/lib/_chunks-es/selector.is-at-the-start-of-block.js +7 -86
- package/lib/_chunks-es/selector.is-at-the-start-of-block.js.map +1 -1
- package/lib/_chunks-es/util.slice-blocks.js +0 -1
- package/lib/behaviors/index.d.ts +0 -1
- package/lib/index.d.ts +2 -3
- package/lib/index.js +761 -800
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.d.ts +8 -2
- package/lib/plugins/index.d.ts.map +1 -1
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.d.ts +1 -2
- package/lib/selectors/index.d.ts.map +1 -1
- package/lib/selectors/index.js +2 -8
- package/lib/selectors/index.js.map +1 -1
- package/lib/traversal/index.d.ts +41 -2
- package/lib/traversal/index.d.ts.map +1 -1
- package/lib/traversal/index.js +6 -3
- package/lib/utils/index.d.ts +1 -2
- package/lib/utils/index.d.ts.map +1 -1
- package/package.json +8 -8
- package/lib/_chunks-dts/resolve-containers.d.ts +0 -688
- package/lib/_chunks-dts/resolve-containers.d.ts.map +0 -1
package/lib/behaviors/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { X as defineBehavior, Y as Behavior, Z as BehaviorGuard, a as forward, c as CustomBehaviorEvent, d as SyntheticBehaviorEvent, i as execute, l as InsertPlacement, n as BehaviorActionSet, o as raise, r as effect, s as BehaviorEvent, t as BehaviorAction, u as NativeBehaviorEvent } from "../_chunks-dts/behavior.types.action.js";
|
|
2
|
-
import "../_chunks-dts/resolve-containers.js";
|
|
3
2
|
export { type Behavior, type BehaviorAction, type BehaviorActionSet, type BehaviorEvent, type BehaviorGuard, type CustomBehaviorEvent, type InsertPlacement, type NativeBehaviorEvent, type SyntheticBehaviorEvent, defineBehavior, effect, execute, forward, raise };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { $ as EditorSnapshot, A as PortableTextTextBlock, At as PortableTextEditor, B as EditorSelector, C as ListDefinition, Ct as RenderListItemFunction, D as PortableTextChild, Dt as PortableTextEditable, E as PortableTextBlock, Et as ScrollSelectionIntoViewFunction, F as BlockOffset, G as EditorConfig, H as EditorProvider, I as useEditor, J as MutationEvent, K as EditorEvent, L as defaultKeyGenerator, M as StyleDefinition, N as StyleSchemaType, O as PortableTextObject, Ot as PortableTextEditableProps, P as defineSchema, Q as EditorContext, R as usePortableTextEditorSelection, S as InlineObjectSchemaType, St as RenderEditableFunction, T as Patch, Tt as RenderStyleFunction, U as EditorProviderProps, V as useEditorSelector, W as Editor, _ as BlockObjectSchemaType, _t as RangeDecorationOnMovedDetails, at as BlockRenderProps, b as FieldDefinition, bt as RenderChildFunction, ct as EditorSelection, dt as OnCopyFn, et as AddedAnnotationPaths, f as PatchesEvent, ft as OnPasteFn, g as BlockObjectDefinition, gt as RangeDecoration, h as BaseDefinition, ht as PasteData, it as BlockListItemRenderProps, j as SchemaDefinition, k as PortableTextSpan, kt as HotkeyOptions, lt as EditorSelectionPoint, m as AnnotationSchemaType, mt as OnPasteResultOrPromise, nt as BlockChildRenderProps, ot as BlockStyleRenderProps, p as AnnotationDefinition, pt as OnPasteResult, q as EditorEmittedEvent, rt as BlockDecoratorRenderProps, st as EditableAPIDeleteOptions, tt as BlockAnnotationRenderProps, ut as InvalidValueResolution, v as DecoratorDefinition, vt as RenderAnnotationFunction, w as ListSchemaType, wt as RenderPlaceholderFunction, x as InlineObjectDefinition, xt as RenderDecoratorFunction, y as DecoratorSchemaType, yt as RenderBlockFunction, z as usePortableTextEditor } from "./_chunks-dts/behavior.types.action.js";
|
|
2
|
-
|
|
3
|
-
export { AddedAnnotationPaths, AnnotationDefinition, AnnotationPath, AnnotationSchemaType, BaseDefinition, BlockAnnotationRenderProps, BlockChildRenderProps, BlockDecoratorRenderProps, BlockListItemRenderProps, BlockObject, BlockObjectDefinition, BlockObjectSchemaType, BlockOffset, BlockPath, BlockRenderProps, BlockStyleRenderProps, ChildPath, Container, Containers, DecoratorDefinition, DecoratorSchemaType, EditableAPIDeleteOptions, Editor, EditorConfig, EditorContext, EditorEmittedEvent, EditorEvent, EditorProvider, EditorProviderProps, EditorSchema, EditorSelection, EditorSelectionPoint, EditorSelector, EditorSnapshot, FieldDefinition, HotkeyOptions, InlineObject, InlineObjectDefinition, InlineObjectSchemaType, InvalidValueResolution, ListDefinition, ListSchemaType, MutationEvent, OnCopyFn, OnPasteFn, OnPasteResult, OnPasteResultOrPromise, PasteData, Patch, PatchesEvent, Path, PortableTextBlock, PortableTextChild, PortableTextEditable, PortableTextEditableProps, PortableTextEditor, PortableTextObject, PortableTextSpan, PortableTextTextBlock, RangeDecoration, RangeDecorationOnMovedDetails, RegisteredBlockObject, RegisteredContainer, RegisteredInlineObject, RegisteredPositional, RegisteredSpan, RegistrableNode, RenderAnnotationFunction, RenderBlockFunction, RenderChildFunction, RenderDecoratorFunction, RenderEditableFunction, RenderListItemFunction, RenderPlaceholderFunction, RenderStyleFunction, SchemaDefinition, ScrollSelectionIntoViewFunction, Span, StyleDefinition, StyleSchemaType, TextBlock, defineBlockObject, defineContainer, defineInlineObject, defineSchema, defineSpan, defineTextBlock, defaultKeyGenerator as keyGenerator, resolveContainerAt, useEditor, useEditorSelector, usePortableTextEditor, usePortableTextEditorSelection };
|
|
1
|
+
import { $ as EditorSnapshot, $t as SpanRenderProps, A as PortableTextTextBlock, At as PortableTextEditor, B as EditorSelector, Bt as RegisteredSpan, C as ListDefinition, Ct as RenderListItemFunction, D as PortableTextChild, Dt as PortableTextEditable, E as PortableTextBlock, Et as ScrollSelectionIntoViewFunction, F as BlockOffset, Ft as Containers, G as EditorConfig, Gt as ContainerRender, H as EditorProvider, Ht as BlockObjectRender, I as useEditor, It as RegisteredBlockObject, J as MutationEvent, Jt as InlineObjectRender, K as EditorEvent, Kt as ContainerRenderProps, L as defaultKeyGenerator, Lt as RegisteredContainer, M as StyleDefinition, N as StyleSchemaType, O as PortableTextObject, Ot as PortableTextEditableProps, P as defineSchema, Pt as EditorSchema, Q as EditorContext, Qt as SpanRender, R as usePortableTextEditorSelection, Rt as RegisteredInlineObject, S as InlineObjectSchemaType, St as RenderEditableFunction, T as Patch, Tt as RenderStyleFunction, U as EditorProviderProps, Ut as BlockObjectRenderProps, V as useEditorSelector, Vt as BlockObject, W as Editor, Wt as Container, Xt as RegistrableNode, Yt as InlineObjectRenderProps, Zt as Span, _ as BlockObjectSchemaType, _t as RangeDecorationOnMovedDetails, an as defineInlineObject, at as BlockRenderProps, b as FieldDefinition, bt as RenderChildFunction, ct as EditorSelection, dn as ChildPath, dt as OnCopyFn, en as TextBlock, et as AddedAnnotationPaths, f as PatchesEvent, ft as OnPasteFn, g as BlockObjectDefinition, gt as RangeDecoration, h as BaseDefinition, ht as PasteData, in as defineContainer, it as BlockListItemRenderProps, j as SchemaDefinition, jt as resolveContainerAt, k as PortableTextSpan, kt as HotkeyOptions, ln as AnnotationPath, lt as EditorSelectionPoint, m as AnnotationSchemaType, mt as OnPasteResultOrPromise, nn as TextBlockRenderProps, nt as BlockChildRenderProps, on as defineSpan, ot as BlockStyleRenderProps, p as AnnotationDefinition, pn as Path, pt as OnPasteResult, q as EditorEmittedEvent, qt as InlineObject, rn as defineBlockObject, rt as BlockDecoratorRenderProps, sn as defineTextBlock, st as EditableAPIDeleteOptions, tn as TextBlockRender, tt as BlockAnnotationRenderProps, un as BlockPath, ut as InvalidValueResolution, v as DecoratorDefinition, vt as RenderAnnotationFunction, w as ListSchemaType, wt as RenderPlaceholderFunction, x as InlineObjectDefinition, xt as RenderDecoratorFunction, y as DecoratorSchemaType, yt as RenderBlockFunction, z as usePortableTextEditor, zt as RegisteredPositional } from "./_chunks-dts/behavior.types.action.js";
|
|
2
|
+
export { AddedAnnotationPaths, AnnotationDefinition, AnnotationPath, AnnotationSchemaType, BaseDefinition, BlockAnnotationRenderProps, BlockChildRenderProps, BlockDecoratorRenderProps, BlockListItemRenderProps, BlockObject, BlockObjectDefinition, BlockObjectRender, BlockObjectRenderProps, BlockObjectSchemaType, BlockOffset, BlockPath, BlockRenderProps, BlockStyleRenderProps, ChildPath, Container, ContainerRender, ContainerRenderProps, Containers, DecoratorDefinition, DecoratorSchemaType, EditableAPIDeleteOptions, Editor, EditorConfig, EditorContext, EditorEmittedEvent, EditorEvent, EditorProvider, EditorProviderProps, EditorSchema, EditorSelection, EditorSelectionPoint, EditorSelector, EditorSnapshot, FieldDefinition, HotkeyOptions, InlineObject, InlineObjectDefinition, InlineObjectRender, InlineObjectRenderProps, InlineObjectSchemaType, InvalidValueResolution, ListDefinition, ListSchemaType, MutationEvent, OnCopyFn, OnPasteFn, OnPasteResult, OnPasteResultOrPromise, PasteData, Patch, PatchesEvent, Path, PortableTextBlock, PortableTextChild, PortableTextEditable, PortableTextEditableProps, PortableTextEditor, PortableTextObject, PortableTextSpan, PortableTextTextBlock, RangeDecoration, RangeDecorationOnMovedDetails, RegisteredBlockObject, RegisteredContainer, RegisteredInlineObject, RegisteredPositional, RegisteredSpan, RegistrableNode, RenderAnnotationFunction, RenderBlockFunction, RenderChildFunction, RenderDecoratorFunction, RenderEditableFunction, RenderListItemFunction, RenderPlaceholderFunction, RenderStyleFunction, SchemaDefinition, ScrollSelectionIntoViewFunction, Span, SpanRender, SpanRenderProps, StyleDefinition, StyleSchemaType, TextBlock, TextBlockRender, TextBlockRenderProps, defineBlockObject, defineContainer, defineInlineObject, defineSchema, defineSpan, defineTextBlock, defaultKeyGenerator as keyGenerator, resolveContainerAt, useEditor, useEditorSelector, usePortableTextEditor, usePortableTextEditorSelection };
|