@portabletext/editor
Advanced tools
Comparing version 1.26.2 to 1.26.3
{ | ||
"name": "@portabletext/editor", | ||
"version": "1.26.2", | ||
"version": "1.26.3", | ||
"description": "Portable Text Editor made in React", | ||
@@ -82,3 +82,3 @@ "keywords": [ | ||
"@sanity/diff-match-patch": "^3.2.0", | ||
"@sanity/pkg-utils": "^7.0.2", | ||
"@sanity/pkg-utils": "^7.0.3", | ||
"@sanity/schema": "^3.71.2", | ||
@@ -85,0 +85,0 @@ "@sanity/types": "^3.71.2", |
@@ -551,2 +551,14 @@ import type {Patch} from '@portabletext/patches' | ||
initial: 'determine initial edit mode', | ||
on: { | ||
'behavior event': { | ||
actions: 'handle behavior event', | ||
guard: ({event}) => | ||
event.behaviorEvent.type === 'copy' || | ||
event.behaviorEvent.type === 'data transfer.set' || | ||
event.behaviorEvent.type === 'serialize' || | ||
event.behaviorEvent.type === 'serialization.failure' || | ||
event.behaviorEvent.type === 'serialization.success' || | ||
event.behaviorEvent.type === 'select', | ||
}, | ||
}, | ||
states: { | ||
@@ -568,12 +580,2 @@ 'determine initial edit mode': { | ||
on: { | ||
'behavior event': { | ||
actions: 'handle behavior event', | ||
guard: ({event}) => | ||
event.behaviorEvent.type === 'copy' || | ||
event.behaviorEvent.type === 'data transfer.set' || | ||
event.behaviorEvent.type === 'serialize' || | ||
event.behaviorEvent.type === 'serialization.failure' || | ||
event.behaviorEvent.type === 'serialization.success' || | ||
event.behaviorEvent.type === 'select', | ||
}, | ||
'update readOnly': { | ||
@@ -580,0 +582,0 @@ guard: ({event}) => !event.readOnly, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
66593
4436896