@liveblocks/core 3.20.0-exp1 → 3.20.0-exp2

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/dist/index.d.cts CHANGED
@@ -443,7 +443,7 @@ declare namespace OpCode {
443
443
  type CREATE_TEXT = typeof OpCode.CREATE_TEXT;
444
444
  type UPDATE_TEXT = typeof OpCode.UPDATE_TEXT;
445
445
  }
446
- type TextAttributes = Record<string, Json>;
446
+ type TextAttributes = JsonObject;
447
447
  type LiveTextDelta = {
448
448
  text: string;
449
449
  attributes?: TextAttributes;
@@ -461,7 +461,7 @@ type TextOperation = {
461
461
  type: "format";
462
462
  index: number;
463
463
  length: number;
464
- attributes: Record<string, Json | null>;
464
+ attributes: JsonObject;
465
465
  };
466
466
  /**
467
467
  * These operations are the payload for {@link UpdateStorageServerMsg} messages
@@ -920,7 +920,7 @@ declare class LiveObject<O extends LsonObject> extends AbstractCrdt {
920
920
  declare function applyLiveTextOperations(delta: LiveTextDelta, ops: readonly TextOperation[]): LiveTextDelta;
921
921
 
922
922
  type LiveTextAttributes = TextAttributes;
923
- type LiveTextAttributesPatch = Readonly<Record<string, Json | null>>;
923
+ type LiveTextAttributesPatch = JsonObject;
924
924
 
925
925
  type LiveTextChange = {
926
926
  readonly type: "insert";
package/dist/index.d.ts CHANGED
@@ -443,7 +443,7 @@ declare namespace OpCode {
443
443
  type CREATE_TEXT = typeof OpCode.CREATE_TEXT;
444
444
  type UPDATE_TEXT = typeof OpCode.UPDATE_TEXT;
445
445
  }
446
- type TextAttributes = Record<string, Json>;
446
+ type TextAttributes = JsonObject;
447
447
  type LiveTextDelta = {
448
448
  text: string;
449
449
  attributes?: TextAttributes;
@@ -461,7 +461,7 @@ type TextOperation = {
461
461
  type: "format";
462
462
  index: number;
463
463
  length: number;
464
- attributes: Record<string, Json | null>;
464
+ attributes: JsonObject;
465
465
  };
466
466
  /**
467
467
  * These operations are the payload for {@link UpdateStorageServerMsg} messages
@@ -920,7 +920,7 @@ declare class LiveObject<O extends LsonObject> extends AbstractCrdt {
920
920
  declare function applyLiveTextOperations(delta: LiveTextDelta, ops: readonly TextOperation[]): LiveTextDelta;
921
921
 
922
922
  type LiveTextAttributes = TextAttributes;
923
- type LiveTextAttributesPatch = Readonly<Record<string, Json | null>>;
923
+ type LiveTextAttributesPatch = JsonObject;
924
924
 
925
925
  type LiveTextChange = {
926
926
  readonly type: "insert";
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ var __export = (target, all) => {
6
6
 
7
7
  // src/version.ts
8
8
  var PKG_NAME = "@liveblocks/core";
9
- var PKG_VERSION = "3.20.0-exp1";
9
+ var PKG_VERSION = "3.20.0-exp2";
10
10
  var PKG_FORMAT = "esm";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -8704,7 +8704,9 @@ function applyTextOperationsToSegments(segments, ops) {
8704
8704
  return next;
8705
8705
  }
8706
8706
  function applyLiveTextOperations(delta, ops) {
8707
- return segmentsToDelta(applyTextOperationsToSegments(deltaToSegments(delta), ops));
8707
+ return segmentsToDelta(
8708
+ applyTextOperationsToSegments(deltaToSegments(delta), ops)
8709
+ );
8708
8710
  }
8709
8711
  function invertTextOperations(segments, ops) {
8710
8712
  let shadow = [...segments];