@tldraw/store 4.4.0 → 4.5.0-canary.034ea85352da
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-cjs/index.d.ts +3 -3
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.d.mts +3 -3
- package/dist-esm/index.mjs +1 -1
- package/package.json +3 -3
package/dist-cjs/index.d.ts
CHANGED
|
@@ -503,7 +503,7 @@ export declare function createMigrationIds<const ID extends string, const Versio
|
|
|
503
503
|
* ```
|
|
504
504
|
* @public
|
|
505
505
|
*/
|
|
506
|
-
export declare function createMigrationSequence({ sequence, sequenceId, retroactive
|
|
506
|
+
export declare function createMigrationSequence({ sequence, sequenceId, retroactive }: {
|
|
507
507
|
retroactive?: boolean;
|
|
508
508
|
sequence: Array<Migration | StandaloneDependsOn>;
|
|
509
509
|
sequenceId: string;
|
|
@@ -1515,7 +1515,7 @@ export declare class Store<R extends UnknownRecord = UnknownRecord, Props = unkn
|
|
|
1515
1515
|
filterChangesByScope(change: RecordsDiff<R>, scope: RecordScope): {
|
|
1516
1516
|
added: { [K in IdOf<R>]: R; };
|
|
1517
1517
|
removed: { [K in IdOf<R>]: R; };
|
|
1518
|
-
updated: { [
|
|
1518
|
+
updated: { [K in IdOf<R>]: [from: R, to: R]; };
|
|
1519
1519
|
} | null;
|
|
1520
1520
|
/**
|
|
1521
1521
|
* Update the history with a diff of changes.
|
|
@@ -1764,7 +1764,7 @@ export declare class Store<R extends UnknownRecord = UnknownRecord, Props = unkn
|
|
|
1764
1764
|
* Run `fn` and return a {@link RecordsDiff} of the changes that occurred as a result.
|
|
1765
1765
|
*/
|
|
1766
1766
|
extractingChanges(fn: () => void): RecordsDiff<R>;
|
|
1767
|
-
applyDiff(diff: RecordsDiff<R>, { runCallbacks, ignoreEphemeralKeys
|
|
1767
|
+
applyDiff(diff: RecordsDiff<R>, { runCallbacks, ignoreEphemeralKeys }?: {
|
|
1768
1768
|
ignoreEphemeralKeys?: boolean;
|
|
1769
1769
|
runCallbacks?: boolean;
|
|
1770
1770
|
}): void;
|
package/dist-cjs/index.js
CHANGED
|
@@ -56,7 +56,7 @@ var import_StoreSchema = require("./lib/StoreSchema");
|
|
|
56
56
|
var import_StoreSideEffects = require("./lib/StoreSideEffects");
|
|
57
57
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
58
58
|
"@tldraw/store",
|
|
59
|
-
"4.
|
|
59
|
+
"4.5.0-canary.034ea85352da",
|
|
60
60
|
"cjs"
|
|
61
61
|
);
|
|
62
62
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.d.mts
CHANGED
|
@@ -503,7 +503,7 @@ export declare function createMigrationIds<const ID extends string, const Versio
|
|
|
503
503
|
* ```
|
|
504
504
|
* @public
|
|
505
505
|
*/
|
|
506
|
-
export declare function createMigrationSequence({ sequence, sequenceId, retroactive
|
|
506
|
+
export declare function createMigrationSequence({ sequence, sequenceId, retroactive }: {
|
|
507
507
|
retroactive?: boolean;
|
|
508
508
|
sequence: Array<Migration | StandaloneDependsOn>;
|
|
509
509
|
sequenceId: string;
|
|
@@ -1515,7 +1515,7 @@ export declare class Store<R extends UnknownRecord = UnknownRecord, Props = unkn
|
|
|
1515
1515
|
filterChangesByScope(change: RecordsDiff<R>, scope: RecordScope): {
|
|
1516
1516
|
added: { [K in IdOf<R>]: R; };
|
|
1517
1517
|
removed: { [K in IdOf<R>]: R; };
|
|
1518
|
-
updated: { [
|
|
1518
|
+
updated: { [K in IdOf<R>]: [from: R, to: R]; };
|
|
1519
1519
|
} | null;
|
|
1520
1520
|
/**
|
|
1521
1521
|
* Update the history with a diff of changes.
|
|
@@ -1764,7 +1764,7 @@ export declare class Store<R extends UnknownRecord = UnknownRecord, Props = unkn
|
|
|
1764
1764
|
* Run `fn` and return a {@link RecordsDiff} of the changes that occurred as a result.
|
|
1765
1765
|
*/
|
|
1766
1766
|
extractingChanges(fn: () => void): RecordsDiff<R>;
|
|
1767
|
-
applyDiff(diff: RecordsDiff<R>, { runCallbacks, ignoreEphemeralKeys
|
|
1767
|
+
applyDiff(diff: RecordsDiff<R>, { runCallbacks, ignoreEphemeralKeys }?: {
|
|
1768
1768
|
ignoreEphemeralKeys?: boolean;
|
|
1769
1769
|
runCallbacks?: boolean;
|
|
1770
1770
|
}): void;
|
package/dist-esm/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/store",
|
|
3
3
|
"description": "tldraw infinite canvas SDK (store).",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.5.0-canary.034ea85352da",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@tldraw/state": "4.
|
|
47
|
-
"@tldraw/utils": "4.
|
|
46
|
+
"@tldraw/state": "4.5.0-canary.034ea85352da",
|
|
47
|
+
"@tldraw/utils": "4.5.0-canary.034ea85352da"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": "^18.2.0 || ^19.2.1"
|