@tldraw/tldraw 5.3.0-canary.fceaae5e9feb → 5.3.0-internal.1640468db8fd

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 CHANGED
@@ -19,7 +19,7 @@ var import_tldraw = require("tldraw");
19
19
  __reExport(index_exports, require("tldraw"), module.exports);
20
20
  (0, import_tldraw.registerTldrawLibraryVersion)(
21
21
  "@tldraw/tldraw",
22
- "5.3.0-canary.fceaae5e9feb",
22
+ "5.3.0-internal.1640468db8fd",
23
23
  "cjs"
24
24
  );
25
25
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { registerTldrawLibraryVersion } from "tldraw";
2
2
  export * from "tldraw";
3
3
  registerTldrawLibraryVersion(
4
4
  "@tldraw/tldraw",
5
- "5.3.0-canary.fceaae5e9feb",
5
+ "5.3.0-internal.1640468db8fd",
6
6
  "esm"
7
7
  );
8
8
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/tldraw",
3
3
  "description": "A tiny little drawing editor.",
4
- "version": "5.3.0-canary.fceaae5e9feb",
4
+ "version": "5.3.0-internal.1640468db8fd",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -47,7 +47,7 @@
47
47
  "src"
48
48
  ],
49
49
  "dependencies": {
50
- "tldraw": "5.3.0-canary.fceaae5e9feb"
50
+ "tldraw": "5.3.0-internal.1640468db8fd"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^18.2.0 || ^19.2.1",
package/tldraw.css CHANGED
@@ -90,6 +90,10 @@
90
90
  url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m25 16h-6.01v-6h-2.98v6h-6.01v3h6.01v6h2.98v-6h6.01z' fill='white'/><path d='m23.9902 17.0103h-6v-6.01h-.98v6.01h-6v.98h6v6.01h.98v-6.01h6z' fill='%23231f1f'/></g></svg>")
91
91
  16 16,
92
92
  crosshair;
93
+ --tl-cursor-comment:
94
+ url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g filter='url(%23shadow)'><path d='M5 19.5 L5 11 A8 8 0 0 1 13 3 A8 8 0 0 1 21 11 A8 8 0 0 1 13 19 Z' fill='white' stroke='black' stroke-width='1' stroke-linejoin='round'/></g></svg>")
95
+ 5 19,
96
+ crosshair;
93
97
  --tl-cursor-move:
94
98
  url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' style='color: black;'><defs><filter id='shadow' y='-40%' x='-40%' width='180px' height='180%' color-interpolation-filters='sRGB'><feDropShadow dx='1' dy='1' stdDeviation='1.2' flood-opacity='.5'/></filter></defs><g fill='none' transform='rotate(0 16 16)' filter='url(%23shadow)'><path d='m19 14h1v1h-1zm1 6h-1v-1h1zm-5-5h-1v-1h1zm0 5h-1v-1h1zm2-10.987-7.985 7.988 5.222 5.221 2.763 2.763 7.984-7.985z' fill='white'/><g fill='black'><path d='m23.5664 16.9971-2.557-2.809v1.829h-4.009-4.001v-1.829l-2.571 2.809 2.572 2.808-.001-1.808h4.001 4.009l-.001 1.808z'/><path d='m17.9873 17h.013v-4.001l1.807.001-2.807-2.571-2.809 2.57h1.809v4.001h.008v4.002l-1.828-.001 2.807 2.577 2.805-2.576h-1.805z'/></g></g></svg>")
95
99
  16 16,
@@ -789,6 +793,16 @@ input,
789
793
  .tl-rich-text h6 {
790
794
  margin-top: 5px;
791
795
  margin-bottom: 10px;
796
+ /**
797
+ * Headings render at a larger font-size than the body text (via the browser's
798
+ * default h1–h6 sizing), so they can't inherit the container's resolved
799
+ * whole-pixel line-height — that value is derived from the base font size and
800
+ * would cram the taller lines together. Instead, scale line-height with each
801
+ * heading's own font-size using tldraw's unitless line-height multiplier, which
802
+ * the rich-text render/measure paths expose here. The 1.35 fallback mirrors the
803
+ * default theme line-height (see defaultThemes.ts).
804
+ */
805
+ line-height: var(--tl-rich-text-heading-line-height, 1.35);
792
806
  }
793
807
 
794
808
  .tl-rich-text a {
@@ -3177,6 +3191,7 @@ tldraw? probably.
3177
3191
  .tlui-toast__main {
3178
3192
  flex-grow: 2;
3179
3193
  max-width: 280px;
3194
+ min-width: 0;
3180
3195
  }
3181
3196
 
3182
3197
  .tlui-toast__content {
@@ -3185,6 +3200,7 @@ tldraw? probably.
3185
3200
  line-height: 1.4;
3186
3201
  flex-direction: column;
3187
3202
  gap: var(--tl-space-3);
3203
+ min-width: 0;
3188
3204
  }
3189
3205
 
3190
3206
  .tlui-toast__main[data-actions='true'] .tlui-toast__content {
@@ -3196,6 +3212,7 @@ tldraw? probably.
3196
3212
  color: var(--tl-color-text-1);
3197
3213
  /* this makes the default toast look better */
3198
3214
  line-height: 16px;
3215
+ overflow-wrap: anywhere;
3199
3216
  }
3200
3217
 
3201
3218
  .tlui-toast__description {
@@ -3203,6 +3220,7 @@ tldraw? probably.
3203
3220
  padding: var(--tl-space-3);
3204
3221
  margin: 0px;
3205
3222
  padding: 0px;
3223
+ overflow-wrap: anywhere;
3206
3224
  }
3207
3225
 
3208
3226
  .tlui-toast__icon + .tlui-toast__main > .tlui-toast__actions {
@@ -3329,6 +3347,7 @@ tldraw? probably.
3329
3347
  color: var(--tl-color-text-1);
3330
3348
  user-select: all;
3331
3349
  -webkit-user-select: text;
3350
+ overflow-wrap: anywhere;
3332
3351
  }
3333
3352
  .tlui-dialog__body a {
3334
3353
  color: var(--tl-color-selected);