@tldraw/store 3.15.0-next.d30ed5ad740e → 3.15.0-next.f1dfcef63951
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.js +4 -4
- package/dist-cjs/index.js.map +2 -2
- package/dist-esm/index.mjs +13 -13
- package/dist-esm/index.mjs.map +2 -2
- package/package.json +3 -3
- package/src/index.ts +20 -20
package/dist-cjs/index.js
CHANGED
|
@@ -44,18 +44,18 @@ __export(index_exports, {
|
|
|
44
44
|
module.exports = __toCommonJS(index_exports);
|
|
45
45
|
var import_utils = require("@tldraw/utils");
|
|
46
46
|
var import_AtomMap = require("./lib/AtomMap");
|
|
47
|
-
var import_devFreeze = require("./lib/devFreeze");
|
|
48
47
|
var import_IncrementalSetConstructor = require("./lib/IncrementalSetConstructor");
|
|
49
|
-
var import_migrate = require("./lib/migrate");
|
|
50
|
-
var import_RecordsDiff = require("./lib/RecordsDiff");
|
|
51
48
|
var import_RecordType = require("./lib/RecordType");
|
|
49
|
+
var import_RecordsDiff = require("./lib/RecordsDiff");
|
|
52
50
|
var import_Store = require("./lib/Store");
|
|
53
51
|
var import_StoreQueries = require("./lib/StoreQueries");
|
|
54
52
|
var import_StoreSchema = require("./lib/StoreSchema");
|
|
55
53
|
var import_StoreSideEffects = require("./lib/StoreSideEffects");
|
|
54
|
+
var import_devFreeze = require("./lib/devFreeze");
|
|
55
|
+
var import_migrate = require("./lib/migrate");
|
|
56
56
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
57
57
|
"@tldraw/store",
|
|
58
|
-
"3.15.0-next.
|
|
58
|
+
"3.15.0-next.f1dfcef63951",
|
|
59
59
|
"cjs"
|
|
60
60
|
);
|
|
61
61
|
//# sourceMappingURL=index.js.map
|
package/dist-cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { registerTldrawLibraryVersion } from '@tldraw/utils'\nexport { AtomMap } from './lib/AtomMap'\nexport type { BaseRecord, IdOf, RecordId, UnknownRecord } from './lib/BaseRecord'\nexport {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA6C;AAC7C,qBAAwB;AAExB,
|
|
4
|
+
"sourcesContent": ["import { registerTldrawLibraryVersion } from '@tldraw/utils'\nexport { AtomMap } from './lib/AtomMap'\nexport type { BaseRecord, IdOf, RecordId, UnknownRecord } from './lib/BaseRecord'\nexport { IncrementalSetConstructor } from './lib/IncrementalSetConstructor'\nexport { RecordType, assertIdType, createRecordType, type RecordScope } from './lib/RecordType'\nexport {\n\tcreateEmptyRecordsDiff,\n\tisRecordsDiffEmpty,\n\treverseRecordsDiff,\n\tsquashRecordDiffs,\n\tsquashRecordDiffsMutable,\n\ttype RecordsDiff,\n} from './lib/RecordsDiff'\nexport {\n\tStore,\n\tcreateComputedCache,\n\ttype ChangeSource,\n\ttype CollectionDiff,\n\ttype ComputedCache,\n\ttype CreateComputedCacheOpts,\n\ttype HistoryEntry,\n\ttype RecordFromId,\n\ttype SerializedStore,\n\ttype StoreError,\n\ttype StoreListener,\n\ttype StoreListenerFilters,\n\ttype StoreObject,\n\ttype StoreObjectRecordType,\n\ttype StoreRecord,\n\ttype StoreSnapshot,\n\ttype StoreValidator,\n\ttype StoreValidators,\n} from './lib/Store'\nexport { StoreQueries, type RSIndex, type RSIndexDiff, type RSIndexMap } from './lib/StoreQueries'\nexport { StoreSchema, type StoreValidationFailure } from './lib/StoreSchema'\nexport type {\n\tSerializedSchema,\n\tSerializedSchemaV1,\n\tSerializedSchemaV2,\n\tStoreSchemaOptions,\n} from './lib/StoreSchema'\nexport {\n\tStoreSideEffects,\n\ttype StoreAfterChangeHandler,\n\ttype StoreAfterCreateHandler,\n\ttype StoreAfterDeleteHandler,\n\ttype StoreBeforeChangeHandler,\n\ttype StoreBeforeCreateHandler,\n\ttype StoreBeforeDeleteHandler,\n\ttype StoreOperationCompleteHandler,\n} from './lib/StoreSideEffects'\nexport { devFreeze } from './lib/devFreeze'\nexport { type QueryExpression, type QueryValueMatcher } from './lib/executeQuery'\nexport {\n\tMigrationFailureReason,\n\tcreateMigrationIds,\n\tcreateMigrationSequence,\n\tcreateRecordMigrationSequence,\n\tdefineMigrations,\n\tparseMigrationId,\n\ttype LegacyBaseMigrationsInfo,\n\ttype LegacyMigration,\n\ttype LegacyMigrations,\n\ttype Migration,\n\ttype MigrationId,\n\ttype MigrationResult,\n\ttype MigrationSequence,\n\ttype StandaloneDependsOn,\n} from './lib/migrate'\n\nregisterTldrawLibraryVersion(\n\t(globalThis as any).TLDRAW_LIBRARY_NAME,\n\t(globalThis as any).TLDRAW_LIBRARY_VERSION,\n\t(globalThis as any).TLDRAW_LIBRARY_MODULES\n)\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA6C;AAC7C,qBAAwB;AAExB,uCAA0C;AAC1C,wBAA6E;AAC7E,yBAOO;AACP,mBAmBO;AACP,0BAA8E;AAC9E,yBAAyD;AAOzD,8BASO;AACP,uBAA0B;AAE1B,qBAeO;AAAA,IAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist-esm/index.mjs
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { registerTldrawLibraryVersion } from "@tldraw/utils";
|
|
2
2
|
import { AtomMap } from "./lib/AtomMap.mjs";
|
|
3
|
-
import { devFreeze } from "./lib/devFreeze.mjs";
|
|
4
3
|
import { IncrementalSetConstructor } from "./lib/IncrementalSetConstructor.mjs";
|
|
5
|
-
import {
|
|
6
|
-
createMigrationIds,
|
|
7
|
-
createMigrationSequence,
|
|
8
|
-
createRecordMigrationSequence,
|
|
9
|
-
defineMigrations,
|
|
10
|
-
MigrationFailureReason,
|
|
11
|
-
parseMigrationId
|
|
12
|
-
} from "./lib/migrate.mjs";
|
|
4
|
+
import { RecordType, assertIdType, createRecordType } from "./lib/RecordType.mjs";
|
|
13
5
|
import {
|
|
14
6
|
createEmptyRecordsDiff,
|
|
15
7
|
isRecordsDiffEmpty,
|
|
@@ -17,19 +9,27 @@ import {
|
|
|
17
9
|
squashRecordDiffs,
|
|
18
10
|
squashRecordDiffsMutable
|
|
19
11
|
} from "./lib/RecordsDiff.mjs";
|
|
20
|
-
import { assertIdType, createRecordType, RecordType } from "./lib/RecordType.mjs";
|
|
21
12
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
Store,
|
|
14
|
+
createComputedCache
|
|
24
15
|
} from "./lib/Store.mjs";
|
|
25
16
|
import { StoreQueries } from "./lib/StoreQueries.mjs";
|
|
26
17
|
import { StoreSchema } from "./lib/StoreSchema.mjs";
|
|
27
18
|
import {
|
|
28
19
|
StoreSideEffects
|
|
29
20
|
} from "./lib/StoreSideEffects.mjs";
|
|
21
|
+
import { devFreeze } from "./lib/devFreeze.mjs";
|
|
22
|
+
import {
|
|
23
|
+
MigrationFailureReason,
|
|
24
|
+
createMigrationIds,
|
|
25
|
+
createMigrationSequence,
|
|
26
|
+
createRecordMigrationSequence,
|
|
27
|
+
defineMigrations,
|
|
28
|
+
parseMigrationId
|
|
29
|
+
} from "./lib/migrate.mjs";
|
|
30
30
|
registerTldrawLibraryVersion(
|
|
31
31
|
"@tldraw/store",
|
|
32
|
-
"3.15.0-next.
|
|
32
|
+
"3.15.0-next.f1dfcef63951",
|
|
33
33
|
"esm"
|
|
34
34
|
);
|
|
35
35
|
export {
|
package/dist-esm/index.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { registerTldrawLibraryVersion } from '@tldraw/utils'\nexport { AtomMap } from './lib/AtomMap'\nexport type { BaseRecord, IdOf, RecordId, UnknownRecord } from './lib/BaseRecord'\nexport {
|
|
5
|
-
"mappings": "AAAA,SAAS,oCAAoC;AAC7C,SAAS,eAAe;AAExB,SAAS,
|
|
4
|
+
"sourcesContent": ["import { registerTldrawLibraryVersion } from '@tldraw/utils'\nexport { AtomMap } from './lib/AtomMap'\nexport type { BaseRecord, IdOf, RecordId, UnknownRecord } from './lib/BaseRecord'\nexport { IncrementalSetConstructor } from './lib/IncrementalSetConstructor'\nexport { RecordType, assertIdType, createRecordType, type RecordScope } from './lib/RecordType'\nexport {\n\tcreateEmptyRecordsDiff,\n\tisRecordsDiffEmpty,\n\treverseRecordsDiff,\n\tsquashRecordDiffs,\n\tsquashRecordDiffsMutable,\n\ttype RecordsDiff,\n} from './lib/RecordsDiff'\nexport {\n\tStore,\n\tcreateComputedCache,\n\ttype ChangeSource,\n\ttype CollectionDiff,\n\ttype ComputedCache,\n\ttype CreateComputedCacheOpts,\n\ttype HistoryEntry,\n\ttype RecordFromId,\n\ttype SerializedStore,\n\ttype StoreError,\n\ttype StoreListener,\n\ttype StoreListenerFilters,\n\ttype StoreObject,\n\ttype StoreObjectRecordType,\n\ttype StoreRecord,\n\ttype StoreSnapshot,\n\ttype StoreValidator,\n\ttype StoreValidators,\n} from './lib/Store'\nexport { StoreQueries, type RSIndex, type RSIndexDiff, type RSIndexMap } from './lib/StoreQueries'\nexport { StoreSchema, type StoreValidationFailure } from './lib/StoreSchema'\nexport type {\n\tSerializedSchema,\n\tSerializedSchemaV1,\n\tSerializedSchemaV2,\n\tStoreSchemaOptions,\n} from './lib/StoreSchema'\nexport {\n\tStoreSideEffects,\n\ttype StoreAfterChangeHandler,\n\ttype StoreAfterCreateHandler,\n\ttype StoreAfterDeleteHandler,\n\ttype StoreBeforeChangeHandler,\n\ttype StoreBeforeCreateHandler,\n\ttype StoreBeforeDeleteHandler,\n\ttype StoreOperationCompleteHandler,\n} from './lib/StoreSideEffects'\nexport { devFreeze } from './lib/devFreeze'\nexport { type QueryExpression, type QueryValueMatcher } from './lib/executeQuery'\nexport {\n\tMigrationFailureReason,\n\tcreateMigrationIds,\n\tcreateMigrationSequence,\n\tcreateRecordMigrationSequence,\n\tdefineMigrations,\n\tparseMigrationId,\n\ttype LegacyBaseMigrationsInfo,\n\ttype LegacyMigration,\n\ttype LegacyMigrations,\n\ttype Migration,\n\ttype MigrationId,\n\ttype MigrationResult,\n\ttype MigrationSequence,\n\ttype StandaloneDependsOn,\n} from './lib/migrate'\n\nregisterTldrawLibraryVersion(\n\t(globalThis as any).TLDRAW_LIBRARY_NAME,\n\t(globalThis as any).TLDRAW_LIBRARY_VERSION,\n\t(globalThis as any).TLDRAW_LIBRARY_MODULES\n)\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,oCAAoC;AAC7C,SAAS,eAAe;AAExB,SAAS,iCAAiC;AAC1C,SAAS,YAAY,cAAc,wBAA0C;AAC7E;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAiBM;AACP,SAAS,oBAAqE;AAC9E,SAAS,mBAAgD;AAOzD;AAAA,EACC;AAAA,OAQM;AACP,SAAS,iBAAiB;AAE1B;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OASM;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/store",
|
|
3
3
|
"description": "A tiny little drawing app (store).",
|
|
4
|
-
"version": "3.15.0-next.
|
|
4
|
+
"version": "3.15.0-next.f1dfcef63951",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@tldraw/state": "3.15.0-next.
|
|
46
|
-
"@tldraw/utils": "3.15.0-next.
|
|
45
|
+
"@tldraw/state": "3.15.0-next.f1dfcef63951",
|
|
46
|
+
"@tldraw/utils": "3.15.0-next.f1dfcef63951"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^18.2.0 || ^19.0.0"
|
package/src/index.ts
CHANGED
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
import { registerTldrawLibraryVersion } from '@tldraw/utils'
|
|
2
2
|
export { AtomMap } from './lib/AtomMap'
|
|
3
3
|
export type { BaseRecord, IdOf, RecordId, UnknownRecord } from './lib/BaseRecord'
|
|
4
|
-
export { devFreeze } from './lib/devFreeze'
|
|
5
|
-
export { type QueryExpression, type QueryValueMatcher } from './lib/executeQuery'
|
|
6
4
|
export { IncrementalSetConstructor } from './lib/IncrementalSetConstructor'
|
|
7
|
-
export {
|
|
8
|
-
createMigrationIds,
|
|
9
|
-
createMigrationSequence,
|
|
10
|
-
createRecordMigrationSequence,
|
|
11
|
-
defineMigrations,
|
|
12
|
-
MigrationFailureReason,
|
|
13
|
-
parseMigrationId,
|
|
14
|
-
type LegacyBaseMigrationsInfo,
|
|
15
|
-
type LegacyMigration,
|
|
16
|
-
type LegacyMigrations,
|
|
17
|
-
type Migration,
|
|
18
|
-
type MigrationId,
|
|
19
|
-
type MigrationResult,
|
|
20
|
-
type MigrationSequence,
|
|
21
|
-
type StandaloneDependsOn,
|
|
22
|
-
} from './lib/migrate'
|
|
5
|
+
export { RecordType, assertIdType, createRecordType, type RecordScope } from './lib/RecordType'
|
|
23
6
|
export {
|
|
24
7
|
createEmptyRecordsDiff,
|
|
25
8
|
isRecordsDiffEmpty,
|
|
@@ -28,10 +11,9 @@ export {
|
|
|
28
11
|
squashRecordDiffsMutable,
|
|
29
12
|
type RecordsDiff,
|
|
30
13
|
} from './lib/RecordsDiff'
|
|
31
|
-
export { assertIdType, createRecordType, RecordType, type RecordScope } from './lib/RecordType'
|
|
32
14
|
export {
|
|
33
|
-
createComputedCache,
|
|
34
15
|
Store,
|
|
16
|
+
createComputedCache,
|
|
35
17
|
type ChangeSource,
|
|
36
18
|
type CollectionDiff,
|
|
37
19
|
type ComputedCache,
|
|
@@ -67,6 +49,24 @@ export {
|
|
|
67
49
|
type StoreBeforeDeleteHandler,
|
|
68
50
|
type StoreOperationCompleteHandler,
|
|
69
51
|
} from './lib/StoreSideEffects'
|
|
52
|
+
export { devFreeze } from './lib/devFreeze'
|
|
53
|
+
export { type QueryExpression, type QueryValueMatcher } from './lib/executeQuery'
|
|
54
|
+
export {
|
|
55
|
+
MigrationFailureReason,
|
|
56
|
+
createMigrationIds,
|
|
57
|
+
createMigrationSequence,
|
|
58
|
+
createRecordMigrationSequence,
|
|
59
|
+
defineMigrations,
|
|
60
|
+
parseMigrationId,
|
|
61
|
+
type LegacyBaseMigrationsInfo,
|
|
62
|
+
type LegacyMigration,
|
|
63
|
+
type LegacyMigrations,
|
|
64
|
+
type Migration,
|
|
65
|
+
type MigrationId,
|
|
66
|
+
type MigrationResult,
|
|
67
|
+
type MigrationSequence,
|
|
68
|
+
type StandaloneDependsOn,
|
|
69
|
+
} from './lib/migrate'
|
|
70
70
|
|
|
71
71
|
registerTldrawLibraryVersion(
|
|
72
72
|
(globalThis as any).TLDRAW_LIBRARY_NAME,
|