@portabletext/editor 7.8.0 → 7.8.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _portabletext_schema5 from "@portabletext/schema";
|
|
2
2
|
import { AnnotationDefinition, AnnotationSchemaType, AnnotationSchemaType as AnnotationSchemaType$1, BaseDefinition, BlockObjectDefinition, BlockObjectSchemaType, BlockObjectSchemaType as BlockObjectSchemaType$1, DecoratorDefinition, DecoratorSchemaType, DecoratorSchemaType as DecoratorSchemaType$1, FieldDefinition, FieldDefinition as FieldDefinition$1, InlineObjectDefinition, InlineObjectSchemaType, InlineObjectSchemaType as InlineObjectSchemaType$1, ListDefinition, ListSchemaType, ListSchemaType as ListSchemaType$1, OfDefinition, PortableTextBlock, PortableTextBlock as PortableTextBlock$1, PortableTextChild, PortableTextChild as PortableTextChild$1, PortableTextObject, PortableTextObject as PortableTextObject$1, PortableTextSpan, PortableTextSpan as PortableTextSpan$1, PortableTextTextBlock, PortableTextTextBlock as PortableTextTextBlock$1, Schema, SchemaDefinition, SchemaDefinition as SchemaDefinition$1, StyleDefinition, StyleSchemaType, StyleSchemaType as StyleSchemaType$1, TypedObject, defineSchema } from "@portabletext/schema";
|
|
3
3
|
import * as xstate31 from "xstate";
|
|
4
4
|
import { ActorRefFrom } from "xstate";
|
|
@@ -839,7 +839,7 @@ declare class PortableTextEditor {
|
|
|
839
839
|
*/
|
|
840
840
|
static delete: (editor: PortableTextEditor, selection: EditorSelection, options?: EditableAPIDeleteOptions) => void;
|
|
841
841
|
static findDOMNode: (editor: PortableTextEditor, element: PortableTextBlock | PortableTextChild) => Node | undefined;
|
|
842
|
-
static findByPath: (editor: PortableTextEditor, path: Path) => [
|
|
842
|
+
static findByPath: (editor: PortableTextEditor, path: Path) => [_portabletext_schema5.PortableTextTextBlock<PortableTextObject | _portabletext_schema5.PortableTextSpan> | PortableTextObject | _portabletext_schema5.PortableTextSpan | undefined, Path | undefined];
|
|
843
843
|
/**
|
|
844
844
|
* @deprecated
|
|
845
845
|
* Use `editor.send(...)` instead
|
package/lib/index.js
CHANGED
|
@@ -6046,7 +6046,7 @@ function RenderLeaf(props) {
|
|
|
6046
6046
|
}
|
|
6047
6047
|
function RenderText(props) {
|
|
6048
6048
|
const $ = c(10);
|
|
6049
|
-
if (useContext(
|
|
6049
|
+
if (useContext(NewPipelineContext)) {
|
|
6050
6050
|
const t02 = props.attributes;
|
|
6051
6051
|
let rest;
|
|
6052
6052
|
if ($[0] !== t02) {
|