@tldraw/tldraw 5.5.0-next.a2698a88ecfb → 5.5.0-next.b6a9f7cd7be2

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.5.0-next.a2698a88ecfb",
22
+ "5.5.0-next.b6a9f7cd7be2",
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.5.0-next.a2698a88ecfb",
5
+ "5.5.0-next.b6a9f7cd7be2",
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.5.0-next.a2698a88ecfb",
4
+ "version": "5.5.0-next.b6a9f7cd7be2",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -53,7 +53,7 @@
53
53
  "src"
54
54
  ],
55
55
  "dependencies": {
56
- "tldraw": "5.5.0-next.a2698a88ecfb"
56
+ "tldraw": "5.5.0-next.b6a9f7cd7be2"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": "^18.2.0 || ^19.2.1",
package/tldraw.css CHANGED
@@ -654,7 +654,15 @@ input,
654
654
  overflow: hidden;
655
655
  }
656
656
 
657
- .tl-text-input::selection {
657
+ /**
658
+ * Only when there's actually a highlight to style. ProseMirror hides the native selection whenever
659
+ * it holds a NodeSelection — triple-clicking a list's bullet selects the whole list, for one — by
660
+ * zeroing the ::selection background and nothing else. Painting the selected-contrast color with
661
+ * no highlight behind it leaves the text invisible against the shape, and `inherit` can't undo it:
662
+ * highlight pseudo-elements inherit from the ancestor's ::selection, so it just picks the same
663
+ * color back up.
664
+ */
665
+ .tl-text-input:not(:has(.ProseMirror-hideselection))::selection {
658
666
  background: var(--tl-color-selected);
659
667
  color: var(--tl-color-selected-contrast);
660
668
  text-shadow: none;