@portabletext/editor 2.4.1 → 2.4.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.
@@ -1,14 +1,14 @@
1
1
  import { Patch, Patch as Patch$1 } from "@portabletext/patches";
2
2
  import * as _sanity_types5 from "@sanity/types";
3
3
  import { ArrayDefinition, ArraySchemaType, BlockDecoratorDefinition, BlockListDefinition, BlockStyleDefinition, ObjectSchemaType, Path, PortableTextBlock, PortableTextBlock as PortableTextBlock$1, PortableTextChild, PortableTextChild as PortableTextChild$1, PortableTextListBlock, PortableTextObject, PortableTextObject as PortableTextObject$1, PortableTextSpan, PortableTextSpan as PortableTextSpan$1, PortableTextTextBlock, PortableTextTextBlock as PortableTextTextBlock$1, TypedObject } from "@sanity/types";
4
- import * as _portabletext_schema6 from "@portabletext/schema";
4
+ import * as _portabletext_schema5 from "@portabletext/schema";
5
5
  import { AnnotationDefinition, AnnotationSchemaType, BaseDefinition, BlockObjectDefinition, BlockObjectSchemaType, DecoratorDefinition, DecoratorSchemaType, FieldDefinition, InlineObjectDefinition, InlineObjectSchemaType, ListDefinition, ListSchemaType, Schema, SchemaDefinition, SchemaDefinition as SchemaDefinition$1, StyleDefinition, StyleSchemaType, defineSchema } from "@portabletext/schema";
6
- import * as xstate241 from "xstate";
6
+ import * as xstate227 from "xstate";
7
7
  import { ActorRef, ActorRefFrom, EventObject, Snapshot } from "xstate";
8
8
  import { BaseRange, Descendant, Operation } from "slate";
9
- import * as react13 from "react";
9
+ import * as react19 from "react";
10
10
  import React$1, { BaseSyntheticEvent, ClipboardEvent, Component, FocusEvent, JSX, KeyboardEvent as KeyboardEvent$1, MutableRefObject, PropsWithChildren, ReactElement, RefObject, TextareaHTMLAttributes } from "react";
11
- import * as xstate_guards14 from "xstate/guards";
11
+ import * as xstate_guards12 from "xstate/guards";
12
12
  import { Observable, Subject } from "rxjs";
13
13
  import { DOMNode } from "slate-dom";
14
14
  import { ReactEditor } from "slate-react";
@@ -215,7 +215,7 @@ declare class PortableTextEditor extends Component<PortableTextEditorProps<Inter
215
215
  componentDidUpdate(prevProps: PortableTextEditorProps): void;
216
216
  componentWillUnmount(): void;
217
217
  setEditable: (editable: EditableAPI) => void;
218
- render(): react13.JSX.Element;
218
+ render(): react19.JSX.Element;
219
219
  /**
220
220
  * @deprecated
221
221
  * Use built-in selectors or write your own: https://www.portabletext.org/reference/selectors/
@@ -610,7 +610,7 @@ type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'o
610
610
  * ```
611
611
  * @group Components
612
612
  */
613
- declare const PortableTextEditable: react13.ForwardRefExoticComponent<Omit<PortableTextEditableProps, "ref"> & react13.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
613
+ declare const PortableTextEditable: react19.ForwardRefExoticComponent<Omit<PortableTextEditableProps, "ref"> & react19.RefAttributes<Omit<HTMLDivElement, "as" | "onPaste" | "onBeforeInput">>>;
614
614
  type DecoratedRange = BaseRange & {
615
615
  rangeDecoration: RangeDecoration;
616
616
  };
@@ -1176,7 +1176,7 @@ type EditorActor = ActorRefFrom<typeof editorMachine>;
1176
1176
  /**
1177
1177
  * @internal
1178
1178
  */
1179
- declare const editorMachine: xstate241.StateMachine<{
1179
+ declare const editorMachine: xstate227.StateMachine<{
1180
1180
  behaviors: Set<BehaviorConfig>;
1181
1181
  behaviorsSorted: boolean;
1182
1182
  converters: Set<Converter>;
@@ -1241,58 +1241,58 @@ declare const editorMachine: xstate241.StateMachine<{
1241
1241
  type: "dragend";
1242
1242
  } | {
1243
1243
  type: "drop";
1244
- }, {}, never, xstate241.Values<{
1244
+ }, {}, never, xstate227.Values<{
1245
1245
  "add behavior to context": {
1246
1246
  type: "add behavior to context";
1247
- params: xstate241.NonReducibleUnknown;
1247
+ params: xstate227.NonReducibleUnknown;
1248
1248
  };
1249
1249
  "remove behavior from context": {
1250
1250
  type: "remove behavior from context";
1251
- params: xstate241.NonReducibleUnknown;
1251
+ params: xstate227.NonReducibleUnknown;
1252
1252
  };
1253
1253
  "emit patch event": {
1254
1254
  type: "emit patch event";
1255
- params: xstate241.NonReducibleUnknown;
1255
+ params: xstate227.NonReducibleUnknown;
1256
1256
  };
1257
1257
  "emit mutation event": {
1258
1258
  type: "emit mutation event";
1259
- params: xstate241.NonReducibleUnknown;
1259
+ params: xstate227.NonReducibleUnknown;
1260
1260
  };
1261
1261
  "emit read only": {
1262
1262
  type: "emit read only";
1263
- params: xstate241.NonReducibleUnknown;
1263
+ params: xstate227.NonReducibleUnknown;
1264
1264
  };
1265
1265
  "emit editable": {
1266
1266
  type: "emit editable";
1267
- params: xstate241.NonReducibleUnknown;
1267
+ params: xstate227.NonReducibleUnknown;
1268
1268
  };
1269
1269
  "defer event": {
1270
1270
  type: "defer event";
1271
- params: xstate241.NonReducibleUnknown;
1271
+ params: xstate227.NonReducibleUnknown;
1272
1272
  };
1273
1273
  "emit pending events": {
1274
1274
  type: "emit pending events";
1275
- params: xstate241.NonReducibleUnknown;
1275
+ params: xstate227.NonReducibleUnknown;
1276
1276
  };
1277
1277
  "emit ready": {
1278
1278
  type: "emit ready";
1279
- params: xstate241.NonReducibleUnknown;
1279
+ params: xstate227.NonReducibleUnknown;
1280
1280
  };
1281
1281
  "clear pending events": {
1282
1282
  type: "clear pending events";
1283
- params: xstate241.NonReducibleUnknown;
1283
+ params: xstate227.NonReducibleUnknown;
1284
1284
  };
1285
1285
  "defer incoming patches": {
1286
1286
  type: "defer incoming patches";
1287
- params: xstate241.NonReducibleUnknown;
1287
+ params: xstate227.NonReducibleUnknown;
1288
1288
  };
1289
1289
  "emit pending incoming patches": {
1290
1290
  type: "emit pending incoming patches";
1291
- params: xstate241.NonReducibleUnknown;
1291
+ params: xstate227.NonReducibleUnknown;
1292
1292
  };
1293
1293
  "clear pending incoming patches": {
1294
1294
  type: "clear pending incoming patches";
1295
- params: xstate241.NonReducibleUnknown;
1295
+ params: xstate227.NonReducibleUnknown;
1296
1296
  };
1297
1297
  "handle blur": {
1298
1298
  type: "handle blur";
@@ -1308,7 +1308,7 @@ declare const editorMachine: xstate241.StateMachine<{
1308
1308
  };
1309
1309
  "sort behaviors": {
1310
1310
  type: "sort behaviors";
1311
- params: xstate241.NonReducibleUnknown;
1311
+ params: xstate227.NonReducibleUnknown;
1312
1312
  };
1313
1313
  }>, {
1314
1314
  type: "slate is busy";
@@ -1337,9 +1337,9 @@ declare const editorMachine: xstate241.StateMachine<{
1337
1337
  readOnly?: boolean;
1338
1338
  schema: EditorSchema;
1339
1339
  initialValue?: Array<PortableTextBlock>;
1340
- }, xstate241.NonReducibleUnknown, InternalPatchEvent | MutationEvent | PatchesEvent | {
1340
+ }, xstate227.NonReducibleUnknown, InternalPatchEvent | MutationEvent | PatchesEvent | {
1341
1341
  type: "blurred";
1342
- event: react13.FocusEvent<HTMLDivElement, Element>;
1342
+ event: react19.FocusEvent<HTMLDivElement, Element>;
1343
1343
  } | {
1344
1344
  type: "done loading";
1345
1345
  } | {
@@ -1351,7 +1351,7 @@ declare const editorMachine: xstate241.StateMachine<{
1351
1351
  data: unknown;
1352
1352
  } | {
1353
1353
  type: "focused";
1354
- event: react13.FocusEvent<HTMLDivElement, Element>;
1354
+ event: react19.FocusEvent<HTMLDivElement, Element>;
1355
1355
  } | {
1356
1356
  type: "invalid value";
1357
1357
  resolution: InvalidValueResolution | null;
@@ -1368,19 +1368,19 @@ declare const editorMachine: xstate241.StateMachine<{
1368
1368
  } | {
1369
1369
  type: "value changed";
1370
1370
  value: Array<PortableTextBlock> | undefined;
1371
- }, xstate241.MetaObject, {
1371
+ }, xstate227.MetaObject, {
1372
1372
  readonly id: "editor";
1373
1373
  readonly context: ({
1374
1374
  input
1375
1375
  }: {
1376
1376
  spawn: {
1377
- <TSrc extends never>(logic: TSrc, ...[options]: never): xstate241.ActorRefFromLogic<never>;
1378
- <TLogic extends xstate241.AnyActorLogic>(src: TLogic, ...[options]: xstate241.ConditionalRequired<[options?: ({
1377
+ <TSrc extends never>(logic: TSrc, ...[options]: never): xstate227.ActorRefFromLogic<never>;
1378
+ <TLogic extends xstate227.AnyActorLogic>(src: TLogic, ...[options]: xstate227.ConditionalRequired<[options?: ({
1379
1379
  id?: never;
1380
1380
  systemId?: string;
1381
- input?: xstate241.InputFrom<TLogic> | undefined;
1381
+ input?: xstate227.InputFrom<TLogic> | undefined;
1382
1382
  syncSnapshot?: boolean;
1383
- } & { [K in xstate241.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate241.IsNotNever<xstate241.RequiredLogicInput<TLogic>>>): xstate241.ActorRefFromLogic<TLogic>;
1383
+ } & { [K in xstate227.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate227.IsNotNever<xstate227.RequiredLogicInput<TLogic>>>): xstate227.ActorRefFromLogic<TLogic>;
1384
1384
  };
1385
1385
  input: {
1386
1386
  converters?: Array<Converter>;
@@ -1391,7 +1391,7 @@ declare const editorMachine: xstate241.StateMachine<{
1391
1391
  schema: EditorSchema;
1392
1392
  initialValue?: Array<PortableTextBlock>;
1393
1393
  };
1394
- self: xstate241.ActorRef<xstate241.MachineSnapshot<{
1394
+ self: xstate227.ActorRef<xstate227.MachineSnapshot<{
1395
1395
  behaviors: Set<BehaviorConfig>;
1396
1396
  behaviorsSorted: boolean;
1397
1397
  converters: Set<Converter>;
@@ -1456,7 +1456,7 @@ declare const editorMachine: xstate241.StateMachine<{
1456
1456
  type: "dragend";
1457
1457
  } | {
1458
1458
  type: "drop";
1459
- }, Record<string, xstate241.AnyActorRef | undefined>, xstate241.StateValue, string, unknown, any, any>, InternalPatchEvent | MutationEvent | PatchesEvent | {
1459
+ }, Record<string, xstate227.AnyActorRef | undefined>, xstate227.StateValue, string, unknown, any, any>, InternalPatchEvent | MutationEvent | PatchesEvent | {
1460
1460
  type: "update readOnly";
1461
1461
  readOnly: boolean;
1462
1462
  } | {
@@ -1503,7 +1503,7 @@ declare const editorMachine: xstate241.StateMachine<{
1503
1503
  type: "dragend";
1504
1504
  } | {
1505
1505
  type: "drop";
1506
- }, xstate241.AnyEventObject>;
1506
+ }, xstate227.AnyEventObject>;
1507
1507
  }) => {
1508
1508
  behaviors: Set<{
1509
1509
  behavior: Behavior<"*" | "split" | `custom.${string}` | "annotation.add" | "annotation.remove" | "block.set" | "block.unset" | "child.set" | "child.unset" | "decorator.add" | "decorator.remove" | "delete" | "history.redo" | "history.undo" | "insert.inline object" | "insert.block" | "insert.span" | "insert.text" | "move.backward" | "move.block" | "move.forward" | "select" | "annotation.set" | "annotation.toggle" | "decorator.toggle" | "delete.backward" | "delete.block" | "delete.child" | "delete.forward" | "delete.text" | "deserialize" | "deserialize.data" | "deserialization.success" | "deserialization.failure" | "insert.blocks" | "insert.break" | "insert.soft break" | "list item.add" | "list item.remove" | "list item.toggle" | "move.block down" | "move.block up" | "select.previous block" | "select.next block" | "serialize" | "serialize.data" | "serialization.success" | "serialization.failure" | "style.add" | "style.remove" | "style.toggle" | "clipboard.copy" | "clipboard.cut" | "clipboard.paste" | "drag.dragstart" | "drag.drag" | "drag.dragend" | "drag.dragenter" | "drag.dragover" | "drag.dragleave" | "drag.drop" | "input.*" | "keyboard.keydown" | "keyboard.keyup" | "mouse.click" | "style.*" | "history.*" | "split.*" | "delete.*" | "select.*" | "deserialize.*" | "serialize.*" | "annotation.*" | "block.*" | "child.*" | "decorator.*" | "insert.*" | "move.*" | "deserialization.*" | "list item.*" | "serialization.*" | "clipboard.*" | "drag.*" | "keyboard.*" | "mouse.*", true, {
@@ -1784,7 +1784,7 @@ declare const editorMachine: xstate241.StateMachine<{
1784
1784
  keyGenerator: () => string;
1785
1785
  pendingEvents: never[];
1786
1786
  pendingIncomingPatchesEvents: never[];
1787
- schema: _portabletext_schema6.Schema;
1787
+ schema: _portabletext_schema5.Schema;
1788
1788
  selection: null;
1789
1789
  initialReadOnly: boolean;
1790
1790
  maxBlocks: number | undefined;
@@ -1798,7 +1798,7 @@ declare const editorMachine: xstate241.StateMachine<{
1798
1798
  readonly actions: "remove behavior from context";
1799
1799
  };
1800
1800
  readonly 'update maxBlocks': {
1801
- readonly actions: xstate241.ActionFunction<{
1801
+ readonly actions: xstate227.ActionFunction<{
1802
1802
  behaviors: Set<BehaviorConfig>;
1803
1803
  behaviorsSorted: boolean;
1804
1804
  converters: Set<Converter>;
@@ -1869,7 +1869,7 @@ declare const editorMachine: xstate241.StateMachine<{
1869
1869
  }, undefined, never, never, never, never, never>;
1870
1870
  };
1871
1871
  readonly 'update selection': {
1872
- readonly actions: readonly [xstate241.ActionFunction<{
1872
+ readonly actions: readonly [xstate227.ActionFunction<{
1873
1873
  behaviors: Set<BehaviorConfig>;
1874
1874
  behaviorsSorted: boolean;
1875
1875
  converters: Set<Converter>;
@@ -1937,7 +1937,7 @@ declare const editorMachine: xstate241.StateMachine<{
1937
1937
  type: "dragend";
1938
1938
  } | {
1939
1939
  type: "drop";
1940
- }, undefined, never, never, never, never, never>, xstate241.ActionFunction<{
1940
+ }, undefined, never, never, never, never, never>, xstate227.ActionFunction<{
1941
1941
  behaviors: Set<BehaviorConfig>;
1942
1942
  behaviorsSorted: boolean;
1943
1943
  converters: Set<Converter>;
@@ -2007,7 +2007,7 @@ declare const editorMachine: xstate241.StateMachine<{
2007
2007
  type: "drop";
2008
2008
  }, undefined, never, never, never, never, InternalPatchEvent | MutationEvent | PatchesEvent | {
2009
2009
  type: "blurred";
2010
- event: react13.FocusEvent<HTMLDivElement, Element>;
2010
+ event: react19.FocusEvent<HTMLDivElement, Element>;
2011
2011
  } | {
2012
2012
  type: "done loading";
2013
2013
  } | {
@@ -2019,7 +2019,7 @@ declare const editorMachine: xstate241.StateMachine<{
2019
2019
  data: unknown;
2020
2020
  } | {
2021
2021
  type: "focused";
2022
- event: react13.FocusEvent<HTMLDivElement, Element>;
2022
+ event: react19.FocusEvent<HTMLDivElement, Element>;
2023
2023
  } | {
2024
2024
  type: "invalid value";
2025
2025
  resolution: InvalidValueResolution | null;
@@ -2039,7 +2039,7 @@ declare const editorMachine: xstate241.StateMachine<{
2039
2039
  }>];
2040
2040
  };
2041
2041
  readonly 'set drag ghost': {
2042
- readonly actions: xstate241.ActionFunction<{
2042
+ readonly actions: xstate227.ActionFunction<{
2043
2043
  behaviors: Set<BehaviorConfig>;
2044
2044
  behaviorsSorted: boolean;
2045
2045
  converters: Set<Converter>;
@@ -2122,7 +2122,7 @@ declare const editorMachine: xstate241.StateMachine<{
2122
2122
  readonly actions: readonly ["sort behaviors", "handle behavior event"];
2123
2123
  readonly guard: ({
2124
2124
  event
2125
- }: xstate_guards14.GuardArgs<{
2125
+ }: xstate_guards12.GuardArgs<{
2126
2126
  behaviors: Set<BehaviorConfig>;
2127
2127
  behaviorsSorted: boolean;
2128
2128
  converters: Set<Converter>;
@@ -2159,7 +2159,7 @@ declare const editorMachine: xstate241.StateMachine<{
2159
2159
  readonly target: "#editor.edit mode.read only.read only";
2160
2160
  readonly guard: ({
2161
2161
  context
2162
- }: xstate_guards14.GuardArgs<{
2162
+ }: xstate_guards12.GuardArgs<{
2163
2163
  behaviors: Set<BehaviorConfig>;
2164
2164
  behaviorsSorted: boolean;
2165
2165
  converters: Set<Converter>;
@@ -2192,7 +2192,7 @@ declare const editorMachine: xstate241.StateMachine<{
2192
2192
  readonly 'update readOnly': {
2193
2193
  readonly guard: ({
2194
2194
  event
2195
- }: xstate_guards14.GuardArgs<{
2195
+ }: xstate_guards12.GuardArgs<{
2196
2196
  behaviors: Set<BehaviorConfig>;
2197
2197
  behaviorsSorted: boolean;
2198
2198
  converters: Set<Converter>;
@@ -2226,7 +2226,7 @@ declare const editorMachine: xstate241.StateMachine<{
2226
2226
  readonly 'update readOnly': {
2227
2227
  readonly guard: ({
2228
2228
  event
2229
- }: xstate_guards14.GuardArgs<{
2229
+ }: xstate_guards12.GuardArgs<{
2230
2230
  behaviors: Set<BehaviorConfig>;
2231
2231
  behaviorsSorted: boolean;
2232
2232
  converters: Set<Converter>;
@@ -2259,7 +2259,7 @@ declare const editorMachine: xstate241.StateMachine<{
2259
2259
  };
2260
2260
  readonly focus: {
2261
2261
  readonly target: ".focusing";
2262
- readonly actions: readonly [xstate241.ActionFunction<{
2262
+ readonly actions: readonly [xstate227.ActionFunction<{
2263
2263
  behaviors: Set<BehaviorConfig>;
2264
2264
  behaviorsSorted: boolean;
2265
2265
  converters: Set<Converter>;
@@ -2337,7 +2337,7 @@ declare const editorMachine: xstate241.StateMachine<{
2337
2337
  readonly exit: readonly [() => void];
2338
2338
  readonly on: {
2339
2339
  readonly dragstart: {
2340
- readonly actions: readonly [xstate241.ActionFunction<{
2340
+ readonly actions: readonly [xstate227.ActionFunction<{
2341
2341
  behaviors: Set<BehaviorConfig>;
2342
2342
  behaviorsSorted: boolean;
2343
2343
  converters: Set<Converter>;
@@ -2440,7 +2440,7 @@ declare const editorMachine: xstate241.StateMachine<{
2440
2440
  readonly entry: readonly [() => void];
2441
2441
  readonly exit: readonly [() => void, ({
2442
2442
  context
2443
- }: xstate241.ActionArgs<{
2443
+ }: xstate227.ActionArgs<{
2444
2444
  behaviors: Set<BehaviorConfig>;
2445
2445
  behaviorsSorted: boolean;
2446
2446
  converters: Set<Converter>;
@@ -2552,7 +2552,7 @@ declare const editorMachine: xstate241.StateMachine<{
2552
2552
  type: "dragend";
2553
2553
  } | {
2554
2554
  type: "drop";
2555
- }>) => void, xstate241.ActionFunction<{
2555
+ }>) => void, xstate227.ActionFunction<{
2556
2556
  behaviors: Set<BehaviorConfig>;
2557
2557
  behaviorsSorted: boolean;
2558
2558
  converters: Set<Converter>;
@@ -2664,7 +2664,7 @@ declare const editorMachine: xstate241.StateMachine<{
2664
2664
  type: "dragend";
2665
2665
  } | {
2666
2666
  type: "drop";
2667
- }, undefined, never, never, never, never, never>, xstate241.ActionFunction<{
2667
+ }, undefined, never, never, never, never, never>, xstate227.ActionFunction<{
2668
2668
  behaviors: Set<BehaviorConfig>;
2669
2669
  behaviorsSorted: boolean;
2670
2670
  converters: Set<Converter>;
@@ -2823,7 +2823,7 @@ declare const editorMachine: xstate241.StateMachine<{
2823
2823
  readonly exit: readonly [() => void];
2824
2824
  readonly on: {
2825
2825
  readonly patches: {
2826
- readonly actions: readonly [xstate241.ActionFunction<{
2826
+ readonly actions: readonly [xstate227.ActionFunction<{
2827
2827
  behaviors: Set<BehaviorConfig>;
2828
2828
  behaviorsSorted: boolean;
2829
2829
  converters: Set<Converter>;
@@ -2890,7 +2890,7 @@ declare const editorMachine: xstate241.StateMachine<{
2890
2890
  type: "drop";
2891
2891
  }, undefined, never, never, never, never, InternalPatchEvent | MutationEvent | PatchesEvent | {
2892
2892
  type: "blurred";
2893
- event: react13.FocusEvent<HTMLDivElement, Element>;
2893
+ event: react19.FocusEvent<HTMLDivElement, Element>;
2894
2894
  } | {
2895
2895
  type: "done loading";
2896
2896
  } | {
@@ -2902,7 +2902,7 @@ declare const editorMachine: xstate241.StateMachine<{
2902
2902
  data: unknown;
2903
2903
  } | {
2904
2904
  type: "focused";
2905
- event: react13.FocusEvent<HTMLDivElement, Element>;
2905
+ event: react19.FocusEvent<HTMLDivElement, Element>;
2906
2906
  } | {
2907
2907
  type: "invalid value";
2908
2908
  resolution: InvalidValueResolution | null;
@@ -740,7 +740,7 @@ function isOverlappingSelection(selection) {
740
740
  }
741
741
  }
742
742
  }), endPointEqualToOriginalStartPoint = isEqualSelectionPoints(selectionEndPoint, originalSelectionStartPoint), startPointEqualToOriginalEndPoint = isEqualSelectionPoints(selectionStartPoint, originalSelectionEndPoint);
743
- return endPointBeforeSelection && !endPointEqualToOriginalStartPoint || startPointAfterSelection && !startPointEqualToOriginalEndPoint ? !1 : !originalStartPointBeforeStartPoint && originalStartPointAfterStartPoint && !originalEndPointBeforeEndPoint && originalEndPointAfterEndPoint ? !endPointEqualToOriginalStartPoint : originalStartPointBeforeStartPoint && !originalStartPointAfterStartPoint && originalEndPointBeforeEndPoint && !originalEndPointAfterEndPoint ? !startPointEqualToOriginalEndPoint : !startPointAfterSelection || !startPointBeforeSelection || !endPointAfterSelection || !endPointBeforeSelection;
743
+ return !endPointEqualToOriginalStartPoint && !startPointEqualToOriginalEndPoint && !originalStartPointBeforeStartPoint && !originalStartPointAfterStartPoint && !originalEndPointBeforeEndPoint && !originalEndPointAfterEndPoint || endPointBeforeSelection && !endPointEqualToOriginalStartPoint || startPointAfterSelection && !startPointEqualToOriginalEndPoint ? !1 : !originalStartPointBeforeStartPoint && originalStartPointAfterStartPoint && !originalEndPointBeforeEndPoint && originalEndPointAfterEndPoint ? !endPointEqualToOriginalStartPoint : originalStartPointBeforeStartPoint && !originalStartPointAfterStartPoint && originalEndPointBeforeEndPoint && !originalEndPointAfterEndPoint ? !startPointEqualToOriginalEndPoint : !startPointAfterSelection || !startPointBeforeSelection || !endPointAfterSelection || !endPointBeforeSelection;
744
744
  };
745
745
  }
746
746
  const isSelectingEntireBlocks = (snapshot) => {