@tldraw/editor 3.13.0-canary.42efa4c14663 → 3.13.0-canary.9bb828b356ba
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 +1 -1
- package/dist-cjs/lib/components/default-components/DefaultErrorFallback.js +6 -6
- package/dist-cjs/lib/components/default-components/DefaultErrorFallback.js.map +2 -2
- package/dist-cjs/lib/editor/Editor.js +1 -2
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/components/default-components/DefaultErrorFallback.mjs +6 -6
- package/dist-esm/lib/components/default-components/DefaultErrorFallback.mjs.map +2 -2
- package/dist-esm/lib/editor/Editor.mjs +1 -2
- 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/editor.css +6 -0
- package/package.json +7 -7
- package/src/lib/components/default-components/DefaultErrorFallback.tsx +10 -6
- package/src/lib/editor/Editor.ts +1 -2
- package/src/version.ts +3 -3
package/dist-esm/version.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const version = "3.13.0-canary.
|
|
1
|
+
const version = "3.13.0-canary.9bb828b356ba";
|
|
2
2
|
const publishDates = {
|
|
3
3
|
major: "2024-09-13T14:36:29.063Z",
|
|
4
|
-
minor: "2025-04-
|
|
5
|
-
patch: "2025-04-
|
|
4
|
+
minor: "2025-04-22T11:29:31.204Z",
|
|
5
|
+
patch: "2025-04-22T11:29:31.204Z"
|
|
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.13.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.13.0-canary.9bb828b356ba'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-04-22T11:29:31.204Z',\n\tpatch: '2025-04-22T11:29:31.204Z',\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/editor.css
CHANGED
|
@@ -1710,6 +1710,12 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1710
1710
|
background-color: var(--color-primary);
|
|
1711
1711
|
color: var(--color-selected-contrast);
|
|
1712
1712
|
}
|
|
1713
|
+
.tl-container__focused:not(.tl-container__no-focus-ring)
|
|
1714
|
+
.tlui-button.tl-error-boundary__refresh:focus-visible {
|
|
1715
|
+
border-radius: 8px;
|
|
1716
|
+
outline-offset: 0;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1713
1719
|
/* --------------------- Coarse --------------------- */
|
|
1714
1720
|
|
|
1715
1721
|
.tl-hidden {
|
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.13.0-canary.
|
|
4
|
+
"version": "3.13.0-canary.9bb828b356ba",
|
|
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.13.0-canary.
|
|
52
|
-
"@tldraw/state-react": "3.13.0-canary.
|
|
53
|
-
"@tldraw/store": "3.13.0-canary.
|
|
54
|
-
"@tldraw/tlschema": "3.13.0-canary.
|
|
55
|
-
"@tldraw/utils": "3.13.0-canary.
|
|
56
|
-
"@tldraw/validate": "3.13.0-canary.
|
|
51
|
+
"@tldraw/state": "3.13.0-canary.9bb828b356ba",
|
|
52
|
+
"@tldraw/state-react": "3.13.0-canary.9bb828b356ba",
|
|
53
|
+
"@tldraw/store": "3.13.0-canary.9bb828b356ba",
|
|
54
|
+
"@tldraw/tlschema": "3.13.0-canary.9bb828b356ba",
|
|
55
|
+
"@tldraw/utils": "3.13.0-canary.9bb828b356ba",
|
|
56
|
+
"@tldraw/validate": "3.13.0-canary.9bb828b356ba",
|
|
57
57
|
"@types/core-js": "^2.5.8",
|
|
58
58
|
"@use-gesture/react": "^10.3.1",
|
|
59
59
|
"classnames": "^2.5.1",
|
|
@@ -157,8 +157,10 @@ My browser: ${navigator.userAgent}`
|
|
|
157
157
|
<h2>Are you sure?</h2>
|
|
158
158
|
<p>Resetting your data will delete your drawing and cannot be undone.</p>
|
|
159
159
|
<div className="tl-error-boundary__content__actions">
|
|
160
|
-
<button onClick={() => setShouldShowResetConfirmation(false)}>
|
|
161
|
-
|
|
160
|
+
<button className="tlui-button" onClick={() => setShouldShowResetConfirmation(false)}>
|
|
161
|
+
Cancel
|
|
162
|
+
</button>
|
|
163
|
+
<button className="tlui-button tl-error-boundary__reset" onClick={resetLocalState}>
|
|
162
164
|
Reset data
|
|
163
165
|
</button>
|
|
164
166
|
</div>
|
|
@@ -187,22 +189,24 @@ My browser: ${navigator.userAgent}`
|
|
|
187
189
|
<pre>
|
|
188
190
|
<code>{errorStack ?? errorMessage}</code>
|
|
189
191
|
</pre>
|
|
190
|
-
<button onClick={copyError}>
|
|
192
|
+
<button className="tlui-button" onClick={copyError}>
|
|
193
|
+
{didCopy ? 'Copied!' : 'Copy'}
|
|
194
|
+
</button>
|
|
191
195
|
</div>
|
|
192
196
|
</>
|
|
193
197
|
)}
|
|
194
198
|
<div className="tl-error-boundary__content__actions">
|
|
195
|
-
<button onClick={() => setShouldShowError(!shouldShowError)}>
|
|
199
|
+
<button className="tlui-button" onClick={() => setShouldShowError(!shouldShowError)}>
|
|
196
200
|
{shouldShowError ? 'Hide details' : 'Show details'}
|
|
197
201
|
</button>
|
|
198
202
|
<div className="tl-error-boundary__content__actions__group">
|
|
199
203
|
<button
|
|
200
|
-
className="tl-error-boundary__reset"
|
|
204
|
+
className="tlui-button tl-error-boundary__reset"
|
|
201
205
|
onClick={() => setShouldShowResetConfirmation(true)}
|
|
202
206
|
>
|
|
203
207
|
Reset data
|
|
204
208
|
</button>
|
|
205
|
-
<button className="tl-error-boundary__refresh" onClick={refresh}>
|
|
209
|
+
<button className="tlui-button tl-error-boundary__refresh" onClick={refresh}>
|
|
206
210
|
Refresh Page
|
|
207
211
|
</button>
|
|
208
212
|
</div>
|
package/src/lib/editor/Editor.ts
CHANGED
|
@@ -1705,8 +1705,7 @@ export class Editor extends EventEmitter<TLEventMap> {
|
|
|
1705
1705
|
* @readonly
|
|
1706
1706
|
*/
|
|
1707
1707
|
@computed getSelectedShapes(): TLShape[] {
|
|
1708
|
-
|
|
1709
|
-
return compact(selectedShapeIds.map((id) => this.store.get(id)))
|
|
1708
|
+
return compact(this.getSelectedShapeIds().map((id) => this.store.get(id)))
|
|
1710
1709
|
}
|
|
1711
1710
|
|
|
1712
1711
|
/**
|
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.13.0-canary.
|
|
4
|
+
export const version = '3.13.0-canary.9bb828b356ba'
|
|
5
5
|
export const publishDates = {
|
|
6
6
|
major: '2024-09-13T14:36:29.063Z',
|
|
7
|
-
minor: '2025-04-
|
|
8
|
-
patch: '2025-04-
|
|
7
|
+
minor: '2025-04-22T11:29:31.204Z',
|
|
8
|
+
patch: '2025-04-22T11:29:31.204Z',
|
|
9
9
|
}
|