@portabletext/editor 1.45.3 → 1.45.4

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.
@@ -213,7 +213,7 @@ export const editorMachine = setup({
213
213
  initialReadOnly: boolean
214
214
  maxBlocks: number | undefined
215
215
  selection: EditorSelection
216
- value: Array<PortableTextBlock> | undefined
216
+ incomingValue: Array<PortableTextBlock> | undefined
217
217
  internalDrag?: {
218
218
  ghost?: HTMLElement
219
219
  origin: Pick<EventPosition, 'selection'>
@@ -228,7 +228,7 @@ export const editorMachine = setup({
228
228
  maxBlocks?: number
229
229
  readOnly?: boolean
230
230
  schema: EditorSchema
231
- value?: Array<PortableTextBlock>
231
+ initialValue?: Array<PortableTextBlock>
232
232
  },
233
233
  tags: {} as 'dragging internally',
234
234
  },
@@ -331,7 +331,7 @@ export const editorMachine = setup({
331
331
  selection: null,
332
332
  initialReadOnly: input.readOnly ?? false,
333
333
  maxBlocks: input.maxBlocks,
334
- value: input.value,
334
+ incomingValue: input.initialValue,
335
335
  }),
336
336
  on: {
337
337
  'notify.blurred': {
@@ -365,7 +365,9 @@ export const editorMachine = setup({
365
365
  actions: assign({keyGenerator: ({event}) => event.keyGenerator}),
366
366
  },
367
367
  'update schema': {actions: 'assign schema'},
368
- 'update value': {actions: assign({value: ({event}) => event.value})},
368
+ 'update value': {
369
+ actions: assign({incomingValue: ({event}) => event.value}),
370
+ },
369
371
  'update maxBlocks': {
370
372
  actions: assign({maxBlocks: ({event}) => event.maxBlocks}),
371
373
  },