@tldraw/tldraw 5.2.0-next.e2b8d10bf10e → 5.2.0
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/README.md +7 -1
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +5 -2
- package/tldraw.css +35 -12
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
This package is kept around for legacy purposes. It just tracks the normal `tldraw` package. Please install that one instead.
|
|
4
4
|
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
Documentation for the most recent release can be found on [tldraw.dev/docs](https://tldraw.dev/docs), including [reference docs](https://tldraw.dev/reference/editor/Editor). Our release notes can be found [here](https://tldraw.dev/releases).
|
|
8
|
+
|
|
9
|
+
For more agent-friendly docs, see our [LLMs.txt](https://tldraw.dev/llms.txt).
|
|
10
|
+
|
|
5
11
|
## License
|
|
6
12
|
|
|
7
13
|
This project is part of the tldraw SDK. It is provided under the [tldraw SDK license](https://github.com/tldraw/tldraw/blob/main/LICENSE.md).
|
|
@@ -18,7 +24,7 @@ You can find tldraw on npm [here](https://www.npmjs.com/package/@tldraw/tldraw?a
|
|
|
18
24
|
|
|
19
25
|
## Contribution
|
|
20
26
|
|
|
21
|
-
|
|
27
|
+
Found a bug? Please [submit an issue](https://github.com/tldraw/tldraw/issues/new).
|
|
22
28
|
|
|
23
29
|
## Community
|
|
24
30
|
|
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.2.0
|
|
22
|
+
"5.2.0",
|
|
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.2.0
|
|
4
|
+
"version": "5.2.0",
|
|
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.2.0
|
|
50
|
+
"tldraw": "5.2.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "^18.2.0 || ^19.2.1",
|
|
@@ -61,6 +61,9 @@
|
|
|
61
61
|
"react": "^19.2.1",
|
|
62
62
|
"react-dom": "^19.2.1"
|
|
63
63
|
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=22.12.0"
|
|
66
|
+
},
|
|
64
67
|
"module": "dist-esm/index.mjs",
|
|
65
68
|
"source": "src/index.ts",
|
|
66
69
|
"exports": {
|
package/tldraw.css
CHANGED
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
--tl-color-text-0: hsl(0, 0%, 11%);
|
|
187
187
|
--tl-color-text-1: hsl(0, 0%, 18%);
|
|
188
188
|
--tl-color-text-3: hsl(204, 4%, 45%);
|
|
189
|
+
--tl-color-text-disabled: hsl(204, 4%, 55%);
|
|
189
190
|
--tl-color-text-shadow: hsl(0, 0%, 100%);
|
|
190
191
|
--tl-color-text-highlight: hsl(52, 100%, 50%);
|
|
191
192
|
--tl-color-text-highlight-p3: color(display-p3 0.972 0.8205 0.05);
|
|
@@ -240,6 +241,7 @@
|
|
|
240
241
|
--tl-color-text-0: hsl(0, 9%, 94%);
|
|
241
242
|
--tl-color-text-1: hsl(0, 0%, 85%);
|
|
242
243
|
--tl-color-text-3: hsl(204, 4%, 75%);
|
|
244
|
+
--tl-color-text-disabled: hsl(204, 4%, 50%);
|
|
243
245
|
--tl-color-text-shadow: hsl(210, 13%, 18%);
|
|
244
246
|
--tl-color-text-highlight: hsl(52, 100%, 41%);
|
|
245
247
|
--tl-color-text-highlight-p3: color(display-p3 0.8078 0.6225 0.0312);
|
|
@@ -766,17 +768,17 @@ input,
|
|
|
766
768
|
.tl-rich-text ol {
|
|
767
769
|
text-align: left;
|
|
768
770
|
margin: 0;
|
|
769
|
-
padding-left:
|
|
771
|
+
padding-left: 1.625ch;
|
|
770
772
|
/* Some resets, like Tailwind, nix the list styling. */
|
|
771
773
|
list-style: revert;
|
|
772
774
|
}
|
|
773
775
|
|
|
774
776
|
.tl-rich-text ol:has(> li:nth-child(10)) {
|
|
775
|
-
padding-left:
|
|
777
|
+
padding-left: 2.625ch;
|
|
776
778
|
}
|
|
777
779
|
|
|
778
780
|
.tl-rich-text ol:has(> li:nth-child(100)) {
|
|
779
|
-
padding-left:
|
|
781
|
+
padding-left: 3.625ch;
|
|
780
782
|
}
|
|
781
783
|
|
|
782
784
|
.tl-rich-text h1,
|
|
@@ -815,6 +817,7 @@ input,
|
|
|
815
817
|
.tl-theme__dark .tl-rich-text mark {
|
|
816
818
|
background-color: var(--tl-color-text-highlight);
|
|
817
819
|
color: currentColor;
|
|
820
|
+
text-shadow: none;
|
|
818
821
|
}
|
|
819
822
|
|
|
820
823
|
@supports (color: color(display-p3 1 1 1)) {
|
|
@@ -987,6 +990,15 @@ input,
|
|
|
987
990
|
color: var(--tl-color-text-1);
|
|
988
991
|
}
|
|
989
992
|
|
|
993
|
+
.tl-content-slot {
|
|
994
|
+
position: absolute;
|
|
995
|
+
inset: 0px;
|
|
996
|
+
height: 100%;
|
|
997
|
+
width: 100%;
|
|
998
|
+
pointer-events: none;
|
|
999
|
+
transform-origin: top left;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
990
1002
|
/* -------------------- Group shape ------------------ */
|
|
991
1003
|
|
|
992
1004
|
.tl-group {
|
|
@@ -1573,9 +1585,8 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1573
1585
|
* (which creates its own stacking context at z-index 300), so their
|
|
1574
1586
|
* z-indices are relative to the layout, not the container.
|
|
1575
1587
|
*
|
|
1576
|
-
* cursor
|
|
1577
|
-
*
|
|
1578
|
-
* to that context.
|
|
1588
|
+
* cursor is rendered inside canvas-in-front (stacking context at
|
|
1589
|
+
* z-index 250), so their z-indices are relative to that context.
|
|
1579
1590
|
*/
|
|
1580
1591
|
--tl-layer-above: 1;
|
|
1581
1592
|
--tl-layer-focused-input: 10;
|
|
@@ -1585,7 +1596,6 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1585
1596
|
--tl-layer-toasts: 650;
|
|
1586
1597
|
--tl-layer-cursor: 700;
|
|
1587
1598
|
--tl-layer-header-footer: 999;
|
|
1588
|
-
--tl-layer-following-indicator: 1000;
|
|
1589
1599
|
}
|
|
1590
1600
|
|
|
1591
1601
|
/* Button */
|
|
@@ -1615,14 +1625,14 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1615
1625
|
|
|
1616
1626
|
.tlui-button:disabled,
|
|
1617
1627
|
.tlui-button[data-disabled] {
|
|
1618
|
-
color: var(--tl-color-text-
|
|
1628
|
+
color: var(--tl-color-text-disabled);
|
|
1619
1629
|
text-shadow: none;
|
|
1620
1630
|
cursor: default;
|
|
1621
1631
|
}
|
|
1622
1632
|
|
|
1623
1633
|
.tlui-button:disabled .tlui-kbd,
|
|
1624
1634
|
.tlui-button[data-disabled] .tlui-kbd {
|
|
1625
|
-
color: var(--tl-color-text-
|
|
1635
|
+
color: var(--tl-color-text-disabled);
|
|
1626
1636
|
}
|
|
1627
1637
|
|
|
1628
1638
|
.tlui-button > * {
|
|
@@ -1991,6 +2001,11 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1991
2001
|
height: 15px;
|
|
1992
2002
|
}
|
|
1993
2003
|
|
|
2004
|
+
.tlui-icon__tiny {
|
|
2005
|
+
width: 12px;
|
|
2006
|
+
height: 12px;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
1994
2009
|
/* --------------------- Slider --------------------- */
|
|
1995
2010
|
|
|
1996
2011
|
.tlui-slider__container {
|
|
@@ -2604,7 +2619,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2604
2619
|
left: 8px;
|
|
2605
2620
|
}
|
|
2606
2621
|
|
|
2607
|
-
/*
|
|
2622
|
+
/*
|
|
2608
2623
|
* focusing skip-to-main-content hide top ui buttons to make sure we avoid
|
|
2609
2624
|
* z-index clashes on hover (see issue #8328)
|
|
2610
2625
|
*/
|
|
@@ -3251,8 +3266,17 @@ tldraw? probably.
|
|
|
3251
3266
|
height: 100%;
|
|
3252
3267
|
z-index: var(--tl-layer-canvas-overlays);
|
|
3253
3268
|
background-color: var(--tl-color-overlay);
|
|
3254
|
-
pointer-events: all;
|
|
3255
3269
|
animation: tl-fade-in 0.12s ease-out;
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
.tlui-dialog__positioner {
|
|
3273
|
+
position: absolute;
|
|
3274
|
+
top: 0px;
|
|
3275
|
+
left: 0px;
|
|
3276
|
+
width: 100%;
|
|
3277
|
+
height: 100%;
|
|
3278
|
+
z-index: var(--tl-layer-canvas-overlays);
|
|
3279
|
+
pointer-events: all;
|
|
3256
3280
|
display: grid;
|
|
3257
3281
|
place-items: center;
|
|
3258
3282
|
overflow-y: auto;
|
|
@@ -3742,7 +3766,6 @@ tldraw? probably.
|
|
|
3742
3766
|
inset: 0px;
|
|
3743
3767
|
border-width: 2px;
|
|
3744
3768
|
border-style: solid;
|
|
3745
|
-
z-index: var(--tl-layer-following-indicator);
|
|
3746
3769
|
pointer-events: none;
|
|
3747
3770
|
}
|
|
3748
3771
|
|