@tldraw/store 3.15.0-next.d30ed5ad740e → 3.15.0-next.e1af71086875
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/README.md +2 -2
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ const tolkeinId = Author.createCustomId('tolkein')
|
|
|
44
44
|
|
|
45
45
|
store.put([
|
|
46
46
|
Author.create({
|
|
47
|
-
id:
|
|
47
|
+
id: tolkeinId,
|
|
48
48
|
name: 'J.R.R Tolkein',
|
|
49
49
|
}),
|
|
50
50
|
])
|
|
@@ -163,7 +163,7 @@ store.deserialize(serialized)
|
|
|
163
163
|
|
|
164
164
|
### `listen(listener: ((entry: HistoryEntry) => void): () => void`
|
|
165
165
|
|
|
166
|
-
Add a new listener to the store The store will call the function each time the history changes. Returns a function to remove the listener.
|
|
166
|
+
Add a new listener to the store. The store will call the function each time the history changes. Returns a function to remove the listener.
|
|
167
167
|
|
|
168
168
|
```ts
|
|
169
169
|
store.listen((entry) => doSomethingWith(entry))
|
package/dist-cjs/index.js
CHANGED
|
@@ -55,7 +55,7 @@ var import_StoreSchema = require("./lib/StoreSchema");
|
|
|
55
55
|
var import_StoreSideEffects = require("./lib/StoreSideEffects");
|
|
56
56
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
57
57
|
"@tldraw/store",
|
|
58
|
-
"3.15.0-next.
|
|
58
|
+
"3.15.0-next.e1af71086875",
|
|
59
59
|
"cjs"
|
|
60
60
|
);
|
|
61
61
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/store",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "3.15.0-next.
|
|
3
|
+
"description": "tldraw infinite canvas SDK (store).",
|
|
4
|
+
"version": "3.15.0-next.e1af71086875",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
19
|
"tldraw",
|
|
20
|
+
"sdk",
|
|
20
21
|
"drawing",
|
|
21
22
|
"app",
|
|
22
23
|
"development",
|
|
@@ -42,8 +43,8 @@
|
|
|
42
43
|
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@tldraw/state": "3.15.0-next.
|
|
46
|
-
"@tldraw/utils": "3.15.0-next.
|
|
46
|
+
"@tldraw/state": "3.15.0-next.e1af71086875",
|
|
47
|
+
"@tldraw/utils": "3.15.0-next.e1af71086875"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
50
|
"react": "^18.2.0 || ^19.0.0"
|