@portabletext/editor 7.6.0 → 7.6.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.
@@ -2,7 +2,7 @@ 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, 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 { ActorRef, ActorRefFrom, EventObject, Snapshot } from "xstate";
5
- import * as react6 from "react";
5
+ import * as react4 from "react";
6
6
  import React$1, { BaseSyntheticEvent, ClipboardEvent as ClipboardEvent$1, FocusEvent, JSX, PropsWithChildren, ReactElement, RefObject, TextareaHTMLAttributes } from "react";
7
7
  import { Patch, Patch as Patch$1 } from "@portabletext/patches";
8
8
  type MIMEType = `${string}/${string}`;
@@ -1177,7 +1177,7 @@ type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'o
1177
1177
  * ```
1178
1178
  * @group Components
1179
1179
  */
1180
- declare const PortableTextEditable: react6.ForwardRefExoticComponent<Omit<PortableTextEditableProps, "ref"> & react6.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
1180
+ declare const PortableTextEditable: react4.ForwardRefExoticComponent<Omit<PortableTextEditableProps, "ref"> & react4.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
1181
1181
  /** @beta */
1182
1182
  interface EditableAPIDeleteOptions {
1183
1183
  mode?: 'blocks' | 'children' | 'selected';
@@ -2451,7 +2451,7 @@ declare const editorMachine: xstate31.StateMachine<{
2451
2451
  initialValue?: Array<PortableTextBlock>;
2452
2452
  }, xstate31.NonReducibleUnknown, InternalPatchEvent | MutationEvent | PatchesEvent | {
2453
2453
  type: "blurred";
2454
- event: react6.FocusEvent<HTMLDivElement, Element>;
2454
+ event: react4.FocusEvent<HTMLDivElement, Element>;
2455
2455
  } | {
2456
2456
  type: "done loading";
2457
2457
  } | {
@@ -2463,7 +2463,7 @@ declare const editorMachine: xstate31.StateMachine<{
2463
2463
  data: unknown;
2464
2464
  } | {
2465
2465
  type: "focused";
2466
- event: react6.FocusEvent<HTMLDivElement, Element>;
2466
+ event: react4.FocusEvent<HTMLDivElement, Element>;
2467
2467
  } | {
2468
2468
  type: "invalid value";
2469
2469
  resolution: InvalidValueResolution | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portabletext/editor",
3
- "version": "7.6.0",
3
+ "version": "7.6.1",
4
4
  "description": "Portable Text Editor made in React",
5
5
  "keywords": [
6
6
  "sanity",
@@ -48,11 +48,11 @@
48
48
  "debug": "^4.4.3",
49
49
  "scroll-into-view-if-needed": "^3.1.0",
50
50
  "xstate": "^5.32.1",
51
- "@portabletext/html": "^1.0.2",
51
+ "@portabletext/html": "^1.0.3",
52
52
  "@portabletext/keyboard-shortcuts": "^2.1.2",
53
- "@portabletext/markdown": "^1.4.0",
53
+ "@portabletext/markdown": "^1.4.1",
54
54
  "@portabletext/patches": "^2.0.4",
55
- "@portabletext/schema": "^2.2.0"
55
+ "@portabletext/schema": "^2.2.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@sanity/diff-match-patch": "^3.2.0",