@tldraw/editor 5.7.0-next.c1f7f00fa975 → 5.7.0-next.f64b0c9050e1

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.
Files changed (31) hide show
  1. package/dist-cjs/index.d.ts +2 -8
  2. package/dist-cjs/index.js +1 -1
  3. package/dist-cjs/lib/components/default-components/DefaultErrorFallback.js +91 -29
  4. package/dist-cjs/lib/components/default-components/DefaultErrorFallback.js.map +2 -2
  5. package/dist-cjs/lib/editor/Editor.js +8 -2
  6. package/dist-cjs/lib/editor/Editor.js.map +2 -2
  7. package/dist-cjs/lib/editor/managers/ThemeManager/defaultThemes.js +3 -1
  8. package/dist-cjs/lib/editor/managers/ThemeManager/defaultThemes.js.map +2 -2
  9. package/dist-cjs/lib/editor/managers/ThemeManager/drawFontCheckbox.js +35 -0
  10. package/dist-cjs/lib/editor/managers/ThemeManager/drawFontCheckbox.js.map +7 -0
  11. package/dist-cjs/version.js +3 -3
  12. package/dist-cjs/version.js.map +1 -1
  13. package/dist-esm/index.d.mts +2 -8
  14. package/dist-esm/index.mjs +1 -1
  15. package/dist-esm/lib/components/default-components/DefaultErrorFallback.mjs +91 -29
  16. package/dist-esm/lib/components/default-components/DefaultErrorFallback.mjs.map +2 -2
  17. package/dist-esm/lib/editor/Editor.mjs +8 -2
  18. package/dist-esm/lib/editor/Editor.mjs.map +2 -2
  19. package/dist-esm/lib/editor/managers/ThemeManager/defaultThemes.mjs +3 -1
  20. package/dist-esm/lib/editor/managers/ThemeManager/defaultThemes.mjs.map +2 -2
  21. package/dist-esm/lib/editor/managers/ThemeManager/drawFontCheckbox.mjs +15 -0
  22. package/dist-esm/lib/editor/managers/ThemeManager/drawFontCheckbox.mjs.map +7 -0
  23. package/dist-esm/version.mjs +3 -3
  24. package/dist-esm/version.mjs.map +1 -1
  25. package/editor.css +266 -58
  26. package/package.json +7 -7
  27. package/src/lib/components/default-components/DefaultErrorFallback.tsx +84 -38
  28. package/src/lib/editor/Editor.ts +6 -2
  29. package/src/lib/editor/managers/ThemeManager/defaultThemes.ts +2 -0
  30. package/src/lib/editor/managers/ThemeManager/drawFontCheckbox.ts +18 -0
  31. package/src/version.ts +3 -3
@@ -0,0 +1,18 @@
1
+ import { TLThemeFontCheckbox } from '@tldraw/tlschema'
2
+
3
+ /**
4
+ * The draw font's checkboxes: draw-dash rectangles taken off the canvas, so a checkbox reads as
5
+ * drawn alongside the shapes around it, and a round-capped tick. Each box is two passes around the
6
+ * same rectangle, which is where its uneven weight comes from.
7
+ */
8
+ export const DRAW_FONT_CHECKBOX: TLThemeFontCheckbox = {
9
+ boxes: [
10
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Csvg x='0' y='20' width='96' height='80' viewBox='-2.82 -3.88 33.53 33.53' overflow='visible'%3E%3Cpath d='M 7.7942 -0.7977 L 20.9303 0.1728 Q 27.9303 0.1728 27.9303 6.6728 L 27.563 18.8742 Q 27.563 25.3742 20.563 25.3742 L 6.7319 25.3957 Q -0.2681 25.3957 -0.2681 18.8957 L 0.7942 5.7023 Q 0.7942 -0.7977 7.7942 -0.7977 M 8.032 -0.1323 L 20.7344 -0.3169 Q 27.7344 -0.3169 27.7344 6.1831 L 28.1662 20.0728 Q 28.1662 26.5728 21.1662 26.5728 L 7.689 25.7836 Q 0.689 25.7836 0.689 19.2836 L 1.032 6.3677 Q 1.032 -0.1323 8.032 -0.1323' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%3C/svg%3E",
11
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Csvg x='0' y='20' width='96' height='80' viewBox='-2.95 -3.81 33.53 33.53' overflow='visible'%3E%3Cpath d='M 6.2504 0.4966 L 21.5032 -0.5973 Q 28.5032 -0.5973 28.5032 5.9027 L 27.5021 19.2322 Q 27.5021 25.7322 20.5021 25.7322 L 8.1299 26.0094 Q 1.1299 26.0094 1.1299 19.5094 L -0.7496 6.9966 Q -0.7496 0.4966 6.2504 0.4966 M 6.4494 0.8401 L 21.4457 0.4984 Q 28.4457 0.4984 28.4457 6.9984 L 28.2656 19.6803 Q 28.2656 26.1803 21.2656 26.1803 L 6.1284 26.511 Q -0.8716 26.511 -0.8716 20.011 L -0.5506 7.3401 Q -0.5506 0.8401 6.4494 0.8401' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%3C/svg%3E",
12
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Csvg x='0' y='20' width='96' height='80' viewBox='-2.6 -3.86 33.53 33.53' overflow='visible'%3E%3Cpath d='M 7.6462 0.7616 L 19.9118 0.0937 Q 26.9118 0.0937 26.9118 6.5937 L 27.233 19.5467 Q 27.233 26.0467 20.233 26.0467 L 7.4038 26.3203 Q 0.4038 26.3203 0.4038 19.8203 L 0.6462 7.2616 Q 0.6462 0.7616 7.6462 0.7616 M 7.1783 0.9003 L 20.1038 -0.5038 Q 27.1038 -0.5038 27.1038 5.9962 L 28.409 19.0812 Q 28.409 25.5812 21.409 25.5812 L 6.9218 26.062 Q -0.0782 26.062 -0.0782 19.562 L 0.1783 7.4003 Q 0.1783 0.9003 7.1783 0.9003' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%3C/svg%3E",
13
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Csvg x='0' y='20' width='96' height='80' viewBox='-2.62 -3.36 33.53 33.53' overflow='visible'%3E%3Cpath d='M 6.4356 0.5013 L 21.8359 0.6755 Q 28.8359 0.6755 28.8359 7.1755 L 28.1881 18.6065 Q 28.1881 25.1065 21.1881 25.1065 L 8.1605 25.8971 Q 1.1605 25.8971 1.1605 19.3971 L -0.5644 7.0013 Q -0.5644 0.5013 6.4356 0.5013 M 6.6292 0.531 L 22.1652 -0.0355 Q 29.1652 -0.0355 29.1652 6.4645 L 27.4982 20.3388 Q 27.4982 26.8388 20.4982 26.8388 L 6.1336 25.4065 Q -0.8664 25.4065 -0.8664 18.9065 L -0.3708 7.031 Q -0.3708 0.531 6.6292 0.531' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%3C/svg%3E",
14
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Csvg x='0' y='20' width='96' height='80' viewBox='-2.58 -3.98 33.53 33.53' overflow='visible'%3E%3Cpath d='M 7.4122 -1.0816 L 20.5836 -0.3961 Q 27.5836 -0.3961 27.5836 6.1039 L 28.6339 20.1467 Q 28.6339 26.6467 21.6339 26.6467 L 6.717 26.007 Q -0.283 26.007 -0.283 19.507 L 0.4122 5.4184 Q 0.4122 -1.0816 7.4122 -1.0816 M 7.8241 -0.7087 L 20.7916 0.2964 Q 27.7916 0.2964 27.7916 6.7964 L 27.0591 19.2197 Q 27.0591 25.7197 20.0591 25.7197 L 7.4822 26.3218 Q 0.4822 26.3218 0.4822 19.8218 L 0.8241 5.7913 Q 0.8241 -0.7087 7.8241 -0.7087' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%3C/svg%3E",
15
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Csvg x='0' y='20' width='96' height='80' viewBox='-2.94 -3.81 33.53 33.53' overflow='visible'%3E%3Cpath d='M 6.1214 -0.381 L 21.2459 0.7554 Q 28.2459 0.7554 28.2459 7.2554 L 28.5419 18.8817 Q 28.5419 25.3817 21.5419 25.3817 L 8.1179 26.2372 Q 1.1179 26.2372 1.1179 19.7372 L -0.8786 6.119 Q -0.8786 -0.381 6.1214 -0.381 M 6.3687 -0.5776 L 21.2599 -0.5987 Q 28.2599 -0.5987 28.2599 5.9013 L 27.3476 19.5423 Q 27.3476 26.0423 20.3476 26.0423 L 6.1089 26.506 Q -0.8911 26.506 -0.8911 20.006 L -0.6313 5.9224 Q -0.6313 -0.5776 6.3687 -0.5776' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%3C/svg%3E",
16
+ ],
17
+ tick: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M34.87 62.29L42.93 71.72L63.5 47.63' fill='none' stroke='%23000' stroke-width='10.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E",
18
+ }
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 = '5.7.0-next.c1f7f00fa975'
4
+ export const version = '5.7.0-next.f64b0c9050e1'
5
5
  export const publishDates = {
6
6
  major: '2026-05-06T16:28:18.473Z',
7
- minor: '2026-11-12T11:57:53.522Z',
8
- patch: '2026-11-12T11:57:53.522Z',
7
+ minor: '2026-11-19T13:08:56.113Z',
8
+ patch: '2026-11-19T13:08:56.113Z',
9
9
  }