@portabletext/editor 3.0.4 → 3.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.
- package/lib/_chunks-dts/index.d.ts +2 -2
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/package.json +12 -12
- package/src/editor/create-editor.ts +3 -0
|
@@ -6,7 +6,7 @@ import { ActorRef, ActorRefFrom, EventObject, Snapshot } from "xstate";
|
|
|
6
6
|
import * as react18 from "react";
|
|
7
7
|
import React$1, { BaseSyntheticEvent, ClipboardEvent, Component, FocusEvent, JSX, KeyboardEvent as KeyboardEvent$1, MutableRefObject, PropsWithChildren, ReactElement, RefObject, TextareaHTMLAttributes } from "react";
|
|
8
8
|
import { Patch, Patch as Patch$1 } from "@portabletext/patches";
|
|
9
|
-
import * as
|
|
9
|
+
import * as _portabletext_schema6 from "@portabletext/schema";
|
|
10
10
|
import { AnnotationDefinition, AnnotationSchemaType, BaseDefinition, BlockObjectDefinition, BlockObjectSchemaType, DecoratorDefinition, DecoratorSchemaType, FieldDefinition, InlineObjectDefinition, InlineObjectSchemaType, ListDefinition, ListSchemaType, PortableTextObject as PortableTextObject$1, PortableTextSpan as PortableTextSpan$1, PortableTextTextBlock as PortableTextTextBlock$1, Schema, SchemaDefinition, SchemaDefinition as SchemaDefinition$1, StyleDefinition, StyleSchemaType, defineSchema } from "@portabletext/schema";
|
|
11
11
|
import { Observable, Subject } from "rxjs";
|
|
12
12
|
import { DOMNode } from "slate-dom";
|
|
@@ -1935,7 +1935,7 @@ declare const editorMachine: xstate228.StateMachine<{
|
|
|
1935
1935
|
keyGenerator: () => string;
|
|
1936
1936
|
pendingEvents: never[];
|
|
1937
1937
|
pendingIncomingPatchesEvents: never[];
|
|
1938
|
-
schema:
|
|
1938
|
+
schema: _portabletext_schema6.Schema;
|
|
1939
1939
|
selection: null;
|
|
1940
1940
|
initialReadOnly: boolean;
|
|
1941
1941
|
initialValue: PortableTextBlock[] | undefined;
|
package/lib/index.js
CHANGED
|
@@ -12310,7 +12310,9 @@ function createActors(config) {
|
|
|
12310
12310
|
})), event.type === "patch" && config.relayActor.send(event);
|
|
12311
12311
|
});
|
|
12312
12312
|
return () => {
|
|
12313
|
-
|
|
12313
|
+
mutationActor.send({
|
|
12314
|
+
type: "emit changes"
|
|
12315
|
+
}), subscription.unsubscribe();
|
|
12314
12316
|
};
|
|
12315
12317
|
}), config.subscriptions.push(() => {
|
|
12316
12318
|
const subscription = syncActor.on("*", (event) => {
|