@tldraw/editor 3.14.0-canary.d1b8a584b27c → 3.14.0-canary.d3680a84375b
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 +4 -0
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +6 -0
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/lib/editor/types/emit-types.js.map +1 -1
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.d.mts +4 -0
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +6 -0
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +6 -0
- package/src/lib/editor/types/emit-types.ts +4 -0
- package/src/version.ts +3 -3
package/dist-esm/version.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const version = "3.14.0-canary.
|
|
1
|
+
const version = "3.14.0-canary.d3680a84375b";
|
|
2
2
|
const publishDates = {
|
|
3
3
|
major: "2024-09-13T14:36:29.063Z",
|
|
4
|
-
minor: "2025-06-
|
|
5
|
-
patch: "2025-06-
|
|
4
|
+
minor: "2025-06-24T15:01:38.014Z",
|
|
5
|
+
patch: "2025-06-24T15:01:38.014Z"
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
publishDates,
|
package/dist-esm/version.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/version.ts"],
|
|
4
|
-
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '3.14.0-canary.
|
|
4
|
+
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '3.14.0-canary.d3680a84375b'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-06-24T15:01:38.014Z',\n\tpatch: '2025-06-24T15:01:38.014Z',\n}\n"],
|
|
5
5
|
"mappings": "AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/editor",
|
|
3
3
|
"description": "A tiny little drawing app (editor).",
|
|
4
|
-
"version": "3.14.0-canary.
|
|
4
|
+
"version": "3.14.0-canary.d3680a84375b",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"@tiptap/core": "^2.9.1",
|
|
49
49
|
"@tiptap/pm": "^2.9.1",
|
|
50
50
|
"@tiptap/react": "^2.9.1",
|
|
51
|
-
"@tldraw/state": "3.14.0-canary.
|
|
52
|
-
"@tldraw/state-react": "3.14.0-canary.
|
|
53
|
-
"@tldraw/store": "3.14.0-canary.
|
|
54
|
-
"@tldraw/tlschema": "3.14.0-canary.
|
|
55
|
-
"@tldraw/utils": "3.14.0-canary.
|
|
56
|
-
"@tldraw/validate": "3.14.0-canary.
|
|
51
|
+
"@tldraw/state": "3.14.0-canary.d3680a84375b",
|
|
52
|
+
"@tldraw/state-react": "3.14.0-canary.d3680a84375b",
|
|
53
|
+
"@tldraw/store": "3.14.0-canary.d3680a84375b",
|
|
54
|
+
"@tldraw/tlschema": "3.14.0-canary.d3680a84375b",
|
|
55
|
+
"@tldraw/utils": "3.14.0-canary.d3680a84375b",
|
|
56
|
+
"@tldraw/validate": "3.14.0-canary.d3680a84375b",
|
|
57
57
|
"@types/core-js": "^2.5.8",
|
|
58
58
|
"@use-gesture/react": "^10.3.1",
|
|
59
59
|
"classnames": "^2.5.1",
|
package/src/lib/editor/Editor.ts
CHANGED
|
@@ -7937,6 +7937,8 @@ export class Editor extends EventEmitter<TLEventMap> {
|
|
|
7937
7937
|
}
|
|
7938
7938
|
})
|
|
7939
7939
|
|
|
7940
|
+
this.emit('created-shapes', shapeRecordsToCreate)
|
|
7941
|
+
this.emit('edit')
|
|
7940
7942
|
this.store.put(shapeRecordsToCreate)
|
|
7941
7943
|
})
|
|
7942
7944
|
|
|
@@ -8331,6 +8333,8 @@ export class Editor extends EventEmitter<TLEventMap> {
|
|
|
8331
8333
|
updates.push(updated)
|
|
8332
8334
|
}
|
|
8333
8335
|
|
|
8336
|
+
this.emit('edited-shapes', updates)
|
|
8337
|
+
this.emit('edit')
|
|
8334
8338
|
this.store.put(updates)
|
|
8335
8339
|
})
|
|
8336
8340
|
}
|
|
@@ -8380,6 +8384,8 @@ export class Editor extends EventEmitter<TLEventMap> {
|
|
|
8380
8384
|
})
|
|
8381
8385
|
}
|
|
8382
8386
|
|
|
8387
|
+
this.emit('deleted-shapes', [...allShapeIdsToDelete])
|
|
8388
|
+
this.emit('edit')
|
|
8383
8389
|
return this.run(() => this.store.remove([...allShapeIdsToDelete]))
|
|
8384
8390
|
}
|
|
8385
8391
|
|
|
@@ -18,6 +18,10 @@ export interface TLEventMap {
|
|
|
18
18
|
frame: [number]
|
|
19
19
|
'select-all-text': [{ shapeId: TLShapeId }]
|
|
20
20
|
'place-caret': [{ shapeId: TLShapeId; point: { x: number; y: number } }]
|
|
21
|
+
'created-shapes': [TLRecord[]]
|
|
22
|
+
'edited-shapes': [TLRecord[]]
|
|
23
|
+
'deleted-shapes': [TLShapeId[]]
|
|
24
|
+
edit: []
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
/** @public */
|
package/src/version.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is automatically generated by internal/scripts/refresh-assets.ts.
|
|
2
2
|
// Do not edit manually. Or do, I'm a comment, not a cop.
|
|
3
3
|
|
|
4
|
-
export const version = '3.14.0-canary.
|
|
4
|
+
export const version = '3.14.0-canary.d3680a84375b'
|
|
5
5
|
export const publishDates = {
|
|
6
6
|
major: '2024-09-13T14:36:29.063Z',
|
|
7
|
-
minor: '2025-06-
|
|
8
|
-
patch: '2025-06-
|
|
7
|
+
minor: '2025-06-24T15:01:38.014Z',
|
|
8
|
+
patch: '2025-06-24T15:01:38.014Z',
|
|
9
9
|
}
|