@tldraw/tldraw 5.3.0-next.299378752aaf → 5.3.0-next.75e2874c4b3f

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-next.299378752aaf",
22
+ "5.3.0-next.75e2874c4b3f",
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-next.299378752aaf",
5
+ "5.3.0-next.75e2874c4b3f",
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-next.299378752aaf",
4
+ "version": "5.3.0-next.75e2874c4b3f",
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-next.299378752aaf"
50
+ "tldraw": "5.3.0-next.75e2874c4b3f"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^18.2.0 || ^19.2.1",
package/tldraw.css CHANGED
@@ -789,6 +789,16 @@ input,
789
789
  .tl-rich-text h6 {
790
790
  margin-top: 5px;
791
791
  margin-bottom: 10px;
792
+ /**
793
+ * Headings render at a larger font-size than the body text (via the browser's
794
+ * default h1–h6 sizing), so they can't inherit the container's resolved
795
+ * whole-pixel line-height — that value is derived from the base font size and
796
+ * would cram the taller lines together. Instead, scale line-height with each
797
+ * heading's own font-size using tldraw's unitless line-height multiplier, which
798
+ * the rich-text render/measure paths expose here. The 1.35 fallback mirrors the
799
+ * default theme line-height (see defaultThemes.ts).
800
+ */
801
+ line-height: var(--tl-rich-text-heading-line-height, 1.35);
792
802
  }
793
803
 
794
804
  .tl-rich-text a {
@@ -2113,6 +2123,14 @@ it from receiving any pointer events or affecting the cursor. */
2113
2123
  flex-shrink: 0;
2114
2124
  }
2115
2125
 
2126
+ /* The label is a fixed bit of chrome next to the input; it should never be squeezed. Without this,
2127
+ an inherited `overflow-wrap: anywhere` (e.g. from .tlui-dialog__body) drops its min-content width
2128
+ to a single character and short labels wrap mid-word, e.g. "URL" breaking after "UR". */
2129
+ .tlui-input__wrapper > label {
2130
+ flex-shrink: 0;
2131
+ overflow-wrap: normal;
2132
+ }
2133
+
2116
2134
  /* If mobile use 16px as font size */
2117
2135
  /* On iOS, font size under 16px in an input will make the page zoom into the input 🤦‍♂️ */
2118
2136
  /* https://css-tricks.com/16px-or-larger-text-prevents-ios-form-zoom/ */
@@ -3177,6 +3195,7 @@ tldraw? probably.
3177
3195
  .tlui-toast__main {
3178
3196
  flex-grow: 2;
3179
3197
  max-width: 280px;
3198
+ min-width: 0;
3180
3199
  }
3181
3200
 
3182
3201
  .tlui-toast__content {
@@ -3185,6 +3204,7 @@ tldraw? probably.
3185
3204
  line-height: 1.4;
3186
3205
  flex-direction: column;
3187
3206
  gap: var(--tl-space-3);
3207
+ min-width: 0;
3188
3208
  }
3189
3209
 
3190
3210
  .tlui-toast__main[data-actions='true'] .tlui-toast__content {
@@ -3196,6 +3216,7 @@ tldraw? probably.
3196
3216
  color: var(--tl-color-text-1);
3197
3217
  /* this makes the default toast look better */
3198
3218
  line-height: 16px;
3219
+ overflow-wrap: anywhere;
3199
3220
  }
3200
3221
 
3201
3222
  .tlui-toast__description {
@@ -3203,6 +3224,7 @@ tldraw? probably.
3203
3224
  padding: var(--tl-space-3);
3204
3225
  margin: 0px;
3205
3226
  padding: 0px;
3227
+ overflow-wrap: anywhere;
3206
3228
  }
3207
3229
 
3208
3230
  .tlui-toast__icon + .tlui-toast__main > .tlui-toast__actions {
@@ -3329,6 +3351,7 @@ tldraw? probably.
3329
3351
  color: var(--tl-color-text-1);
3330
3352
  user-select: all;
3331
3353
  -webkit-user-select: text;
3354
+ overflow-wrap: anywhere;
3332
3355
  }
3333
3356
  .tlui-dialog__body a {
3334
3357
  color: var(--tl-color-selected);