@portabletext/editor 1.49.3 → 1.49.5

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.d.cts CHANGED
@@ -4035,6 +4035,8 @@ declare const editorMachine: StateMachine<
4035
4035
  }
4036
4036
  readonly states: {
4037
4037
  readonly 'determine initial edit mode': {
4038
+ readonly entry: readonly [() => void]
4039
+ readonly exit: readonly [() => void]
4038
4040
  readonly on: {
4039
4041
  readonly 'done syncing value': readonly [
4040
4042
  {
@@ -4074,6 +4076,8 @@ declare const editorMachine: StateMachine<
4074
4076
  }
4075
4077
  }
4076
4078
  readonly 'read only': {
4079
+ readonly entry: readonly [() => void]
4080
+ readonly exit: readonly [() => void]
4077
4081
  readonly on: {
4078
4082
  readonly 'update readOnly': {
4079
4083
  readonly guard: ({
@@ -4312,6 +4316,8 @@ declare const editorMachine: StateMachine<
4312
4316
  readonly initial: 'idle'
4313
4317
  readonly states: {
4314
4318
  readonly 'idle': {
4319
+ readonly entry: readonly [() => void]
4320
+ readonly exit: readonly [() => void]
4315
4321
  readonly on: {
4316
4322
  readonly dragstart: {
4317
4323
  readonly actions: readonly [
@@ -4483,6 +4489,8 @@ declare const editorMachine: StateMachine<
4483
4489
  readonly initial: 'checking if busy'
4484
4490
  readonly states: {
4485
4491
  readonly 'checking if busy': {
4492
+ readonly entry: readonly [() => void]
4493
+ readonly exit: readonly [() => void]
4486
4494
  readonly always: readonly [
4487
4495
  {
4488
4496
  readonly guard: 'slate is busy'
@@ -4495,6 +4503,8 @@ declare const editorMachine: StateMachine<
4495
4503
  ]
4496
4504
  }
4497
4505
  readonly 'busy': {
4506
+ readonly entry: readonly [() => void]
4507
+ readonly exit: readonly [() => void]
4498
4508
  readonly after: {
4499
4509
  readonly 10: {
4500
4510
  readonly target: 'checking if busy'
@@ -4504,7 +4514,9 @@ declare const editorMachine: StateMachine<
4504
4514
  }
4505
4515
  }
4506
4516
  readonly 'dragging internally': {
4517
+ readonly entry: readonly [() => void]
4507
4518
  readonly exit: readonly [
4519
+ () => void,
4508
4520
  ({
4509
4521
  context,
4510
4522
  }: ActionArgs<
@@ -5076,7 +5088,9 @@ declare const editorMachine: StateMachine<
5076
5088
  readonly initial: 'setting up'
5077
5089
  readonly states: {
5078
5090
  readonly 'setting up': {
5091
+ readonly entry: readonly [() => void]
5079
5092
  readonly exit: readonly [
5093
+ () => void,
5080
5094
  'emit ready',
5081
5095
  'emit pending incoming patches',
5082
5096
  'clear pending incoming patches',
@@ -5103,6 +5117,8 @@ declare const editorMachine: StateMachine<
5103
5117
  readonly initial: 'idle'
5104
5118
  readonly states: {
5105
5119
  readonly 'idle': {
5120
+ readonly entry: readonly [() => void]
5121
+ readonly exit: readonly [() => void]
5106
5122
  readonly on: {
5107
5123
  readonly 'patches': {
5108
5124
  readonly actions: readonly [
@@ -5317,7 +5333,9 @@ declare const editorMachine: StateMachine<
5317
5333
  }
5318
5334
  }
5319
5335
  readonly 'syncing value': {
5336
+ readonly entry: readonly [() => void]
5320
5337
  readonly exit: readonly [
5338
+ () => void,
5321
5339
  'emit pending incoming patches',
5322
5340
  'clear pending incoming patches',
5323
5341
  ]
@@ -5339,6 +5357,8 @@ declare const editorMachine: StateMachine<
5339
5357
  readonly initial: 'idle'
5340
5358
  readonly states: {
5341
5359
  readonly idle: {
5360
+ readonly entry: readonly [() => void]
5361
+ readonly exit: readonly [() => void]
5342
5362
  readonly on: {
5343
5363
  readonly 'normalizing': {
5344
5364
  readonly target: 'normalizing'
@@ -5354,6 +5374,8 @@ declare const editorMachine: StateMachine<
5354
5374
  }
5355
5375
  }
5356
5376
  readonly normalizing: {
5377
+ readonly entry: readonly [() => void]
5378
+ readonly exit: readonly [() => void]
5357
5379
  readonly on: {
5358
5380
  readonly 'done normalizing': {
5359
5381
  readonly target: 'idle'
@@ -5370,9 +5392,11 @@ declare const editorMachine: StateMachine<
5370
5392
  }
5371
5393
  readonly dirty: {
5372
5394
  readonly entry: readonly [
5395
+ () => void,
5373
5396
  'emit pending events',
5374
5397
  'clear pending events',
5375
5398
  ]
5399
+ readonly exit: readonly [() => void]
5376
5400
  readonly on: {
5377
5401
  readonly 'internal.patch': {
5378
5402
  readonly actions: 'emit patch event'
package/lib/index.d.ts CHANGED
@@ -4035,6 +4035,8 @@ declare const editorMachine: StateMachine<
4035
4035
  }
4036
4036
  readonly states: {
4037
4037
  readonly 'determine initial edit mode': {
4038
+ readonly entry: readonly [() => void]
4039
+ readonly exit: readonly [() => void]
4038
4040
  readonly on: {
4039
4041
  readonly 'done syncing value': readonly [
4040
4042
  {
@@ -4074,6 +4076,8 @@ declare const editorMachine: StateMachine<
4074
4076
  }
4075
4077
  }
4076
4078
  readonly 'read only': {
4079
+ readonly entry: readonly [() => void]
4080
+ readonly exit: readonly [() => void]
4077
4081
  readonly on: {
4078
4082
  readonly 'update readOnly': {
4079
4083
  readonly guard: ({
@@ -4312,6 +4316,8 @@ declare const editorMachine: StateMachine<
4312
4316
  readonly initial: 'idle'
4313
4317
  readonly states: {
4314
4318
  readonly 'idle': {
4319
+ readonly entry: readonly [() => void]
4320
+ readonly exit: readonly [() => void]
4315
4321
  readonly on: {
4316
4322
  readonly dragstart: {
4317
4323
  readonly actions: readonly [
@@ -4483,6 +4489,8 @@ declare const editorMachine: StateMachine<
4483
4489
  readonly initial: 'checking if busy'
4484
4490
  readonly states: {
4485
4491
  readonly 'checking if busy': {
4492
+ readonly entry: readonly [() => void]
4493
+ readonly exit: readonly [() => void]
4486
4494
  readonly always: readonly [
4487
4495
  {
4488
4496
  readonly guard: 'slate is busy'
@@ -4495,6 +4503,8 @@ declare const editorMachine: StateMachine<
4495
4503
  ]
4496
4504
  }
4497
4505
  readonly 'busy': {
4506
+ readonly entry: readonly [() => void]
4507
+ readonly exit: readonly [() => void]
4498
4508
  readonly after: {
4499
4509
  readonly 10: {
4500
4510
  readonly target: 'checking if busy'
@@ -4504,7 +4514,9 @@ declare const editorMachine: StateMachine<
4504
4514
  }
4505
4515
  }
4506
4516
  readonly 'dragging internally': {
4517
+ readonly entry: readonly [() => void]
4507
4518
  readonly exit: readonly [
4519
+ () => void,
4508
4520
  ({
4509
4521
  context,
4510
4522
  }: ActionArgs<
@@ -5076,7 +5088,9 @@ declare const editorMachine: StateMachine<
5076
5088
  readonly initial: 'setting up'
5077
5089
  readonly states: {
5078
5090
  readonly 'setting up': {
5091
+ readonly entry: readonly [() => void]
5079
5092
  readonly exit: readonly [
5093
+ () => void,
5080
5094
  'emit ready',
5081
5095
  'emit pending incoming patches',
5082
5096
  'clear pending incoming patches',
@@ -5103,6 +5117,8 @@ declare const editorMachine: StateMachine<
5103
5117
  readonly initial: 'idle'
5104
5118
  readonly states: {
5105
5119
  readonly 'idle': {
5120
+ readonly entry: readonly [() => void]
5121
+ readonly exit: readonly [() => void]
5106
5122
  readonly on: {
5107
5123
  readonly 'patches': {
5108
5124
  readonly actions: readonly [
@@ -5317,7 +5333,9 @@ declare const editorMachine: StateMachine<
5317
5333
  }
5318
5334
  }
5319
5335
  readonly 'syncing value': {
5336
+ readonly entry: readonly [() => void]
5320
5337
  readonly exit: readonly [
5338
+ () => void,
5321
5339
  'emit pending incoming patches',
5322
5340
  'clear pending incoming patches',
5323
5341
  ]
@@ -5339,6 +5357,8 @@ declare const editorMachine: StateMachine<
5339
5357
  readonly initial: 'idle'
5340
5358
  readonly states: {
5341
5359
  readonly idle: {
5360
+ readonly entry: readonly [() => void]
5361
+ readonly exit: readonly [() => void]
5342
5362
  readonly on: {
5343
5363
  readonly 'normalizing': {
5344
5364
  readonly target: 'normalizing'
@@ -5354,6 +5374,8 @@ declare const editorMachine: StateMachine<
5354
5374
  }
5355
5375
  }
5356
5376
  readonly normalizing: {
5377
+ readonly entry: readonly [() => void]
5378
+ readonly exit: readonly [() => void]
5357
5379
  readonly on: {
5358
5380
  readonly 'done normalizing': {
5359
5381
  readonly target: 'idle'
@@ -5370,9 +5392,11 @@ declare const editorMachine: StateMachine<
5370
5392
  }
5371
5393
  readonly dirty: {
5372
5394
  readonly entry: readonly [
5395
+ () => void,
5373
5396
  'emit pending events',
5374
5397
  'clear pending events',
5375
5398
  ]
5399
+ readonly exit: readonly [() => void]
5376
5400
  readonly on: {
5377
5401
  readonly 'internal.patch': {
5378
5402
  readonly actions: 'emit patch event'