@portabletext/editor 6.0.5 → 6.0.6
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,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _portabletext_schema6 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, InlineObjectDefinition, InlineObjectSchemaType, InlineObjectSchemaType as InlineObjectSchemaType$1, ListDefinition, ListSchemaType, ListSchemaType as ListSchemaType$1, PortableTextBlock, PortableTextBlock as PortableTextBlock$1, PortableTextChild, PortableTextChild as PortableTextChild$1, PortableTextListBlock, 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 xstate73 from "xstate";
|
|
4
4
|
import { ActorRef, ActorRefFrom, EventObject, Snapshot } from "xstate";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react10 from "react";
|
|
6
6
|
import React$1, { BaseSyntheticEvent, ClipboardEvent as ClipboardEvent$1, FocusEvent, JSX, MutableRefObject, PropsWithChildren, ReactElement, RefObject, TextareaHTMLAttributes } from "react";
|
|
7
7
|
import { Patch, Patch as Patch$1 } from "@portabletext/patches";
|
|
8
8
|
type MIMEType = `${string}/${string}`;
|
|
@@ -1978,7 +1978,7 @@ declare class PortableTextEditor {
|
|
|
1978
1978
|
*/
|
|
1979
1979
|
static delete: (editor: PortableTextEditor, selection: EditorSelection, options?: EditableAPIDeleteOptions) => void;
|
|
1980
1980
|
static findDOMNode: (editor: PortableTextEditor, element: PortableTextBlock | PortableTextChild) => Node | undefined;
|
|
1981
|
-
static findByPath: (editor: PortableTextEditor, path: Path) => [
|
|
1981
|
+
static findByPath: (editor: PortableTextEditor, path: Path) => [_portabletext_schema6.PortableTextTextBlock<PortableTextObject | _portabletext_schema6.PortableTextSpan> | PortableTextObject | _portabletext_schema6.PortableTextSpan | undefined, Path | undefined];
|
|
1982
1982
|
/**
|
|
1983
1983
|
* @deprecated
|
|
1984
1984
|
* Use `editor.send(...)` instead
|
|
@@ -2316,7 +2316,7 @@ type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'o
|
|
|
2316
2316
|
* ```
|
|
2317
2317
|
* @group Components
|
|
2318
2318
|
*/
|
|
2319
|
-
declare const PortableTextEditable:
|
|
2319
|
+
declare const PortableTextEditable: react10.ForwardRefExoticComponent<Omit<PortableTextEditableProps, "ref"> & react10.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
|
|
2320
2320
|
/** @beta */
|
|
2321
2321
|
interface EditableAPIDeleteOptions {
|
|
2322
2322
|
mode?: 'blocks' | 'children' | 'selected';
|
|
@@ -2952,7 +2952,7 @@ declare const editorMachine: xstate73.StateMachine<{
|
|
|
2952
2952
|
initialValue?: Array<PortableTextBlock>;
|
|
2953
2953
|
}, xstate73.NonReducibleUnknown, InternalPatchEvent | MutationEvent | PatchesEvent | {
|
|
2954
2954
|
type: "blurred";
|
|
2955
|
-
event:
|
|
2955
|
+
event: react10.FocusEvent<HTMLDivElement, Element>;
|
|
2956
2956
|
} | {
|
|
2957
2957
|
type: "done loading";
|
|
2958
2958
|
} | {
|
|
@@ -2964,7 +2964,7 @@ declare const editorMachine: xstate73.StateMachine<{
|
|
|
2964
2964
|
data: unknown;
|
|
2965
2965
|
} | {
|
|
2966
2966
|
type: "focused";
|
|
2967
|
-
event:
|
|
2967
|
+
event: react10.FocusEvent<HTMLDivElement, Element>;
|
|
2968
2968
|
} | {
|
|
2969
2969
|
type: "invalid value";
|
|
2970
2970
|
resolution: InvalidValueResolution | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portabletext/editor",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "Portable Text Editor made in React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"debug": "^4.4.3",
|
|
49
49
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
50
50
|
"xstate": "^5.28.0",
|
|
51
|
-
"@portabletext/block-tools": "^5.0
|
|
51
|
+
"@portabletext/block-tools": "^5.1.0",
|
|
52
52
|
"@portabletext/keyboard-shortcuts": "^2.1.2",
|
|
53
53
|
"@portabletext/markdown": "^1.1.3",
|
|
54
54
|
"@portabletext/patches": "^2.0.4",
|