@portabletext/editor 1.26.1 → 1.26.3

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/index.cjs CHANGED
@@ -6262,6 +6262,14 @@ const editorMachine = xstate.setup({
6262
6262
  states: {
6263
6263
  "read only": {
6264
6264
  initial: "determine initial edit mode",
6265
+ on: {
6266
+ "behavior event": {
6267
+ actions: "handle behavior event",
6268
+ guard: ({
6269
+ event
6270
+ }) => 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"
6271
+ }
6272
+ },
6265
6273
  states: {
6266
6274
  "determine initial edit mode": {
6267
6275
  on: {
@@ -6277,12 +6285,6 @@ const editorMachine = xstate.setup({
6277
6285
  },
6278
6286
  "read only": {
6279
6287
  on: {
6280
- "behavior event": {
6281
- actions: "handle behavior event",
6282
- guard: ({
6283
- event
6284
- }) => 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"
6285
- },
6286
6288
  "update readOnly": {
6287
6289
  guard: ({
6288
6290
  event