@liveblocks/core 3.21.0-exp1 → 3.21.0-exp3
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -435,7 +435,7 @@ type TextAttributes = JsonObject;
|
|
|
435
435
|
* ["Hello world"]
|
|
436
436
|
* ["Hello ", { bold: true }]
|
|
437
437
|
*/
|
|
438
|
-
type LiveTextSegment =
|
|
438
|
+
type LiveTextSegment = [text: string] | [text: string, attributes: TextAttributes];
|
|
439
439
|
/**
|
|
440
440
|
* Serialized form of a {@link LiveText} document: an ordered list of text
|
|
441
441
|
* segments with optional inline attributes.
|
|
@@ -444,7 +444,7 @@ type LiveTextSegment = readonly [text: string] | readonly [text: string, attribu
|
|
|
444
444
|
* [["Hello world"]]
|
|
445
445
|
* [["Hello ", { bold: true }], ["world"]]
|
|
446
446
|
*/
|
|
447
|
-
type LiveTextData =
|
|
447
|
+
type LiveTextData = LiveTextSegment[];
|
|
448
448
|
type TextOperation = {
|
|
449
449
|
type: "insert";
|
|
450
450
|
index: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -435,7 +435,7 @@ type TextAttributes = JsonObject;
|
|
|
435
435
|
* ["Hello world"]
|
|
436
436
|
* ["Hello ", { bold: true }]
|
|
437
437
|
*/
|
|
438
|
-
type LiveTextSegment =
|
|
438
|
+
type LiveTextSegment = [text: string] | [text: string, attributes: TextAttributes];
|
|
439
439
|
/**
|
|
440
440
|
* Serialized form of a {@link LiveText} document: an ordered list of text
|
|
441
441
|
* segments with optional inline attributes.
|
|
@@ -444,7 +444,7 @@ type LiveTextSegment = readonly [text: string] | readonly [text: string, attribu
|
|
|
444
444
|
* [["Hello world"]]
|
|
445
445
|
* [["Hello ", { bold: true }], ["world"]]
|
|
446
446
|
*/
|
|
447
|
-
type LiveTextData =
|
|
447
|
+
type LiveTextData = LiveTextSegment[];
|
|
448
448
|
type TextOperation = {
|
|
449
449
|
type: "insert";
|
|
450
450
|
index: number;
|