@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 +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +2 -2
- package/tldraw.css +9 -1
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.
|
|
22
|
+
"5.5.0-next.b6a9f7cd7be2",
|
|
23
23
|
"cjs"
|
|
24
24
|
);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
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.
|
|
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.
|
|
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
|
-
|
|
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;
|