@ibodr/draw 0.2.6 → 0.2.9
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/index.d.ts +1741 -1327
- package/dist/index.mjs +8814 -7074
- package/dist/index.mjs.map +1 -1
- package/draw.css +147 -34
- package/package.json +7 -4
package/draw.css
CHANGED
|
@@ -33,15 +33,20 @@
|
|
|
33
33
|
* background, grid, shapes, overlays, and blocker are all children of .dr-canvas,
|
|
34
34
|
* so their z-indices are relative to the canvas, not the container.
|
|
35
35
|
*
|
|
36
|
-
* watermark and canvas-in-front are siblings of .dr-canvas
|
|
37
|
-
* so they compete with the UI layer (.tlui-layout at z-index 300).
|
|
36
|
+
* collaborators, watermark, and canvas-in-front are siblings of .dr-canvas
|
|
37
|
+
* (outside it), so they compete with the UI layer (.tlui-layout at z-index 300).
|
|
38
38
|
* canvas-in-front must be below the UI layer (300) to sit between
|
|
39
|
-
* the canvas and the UI
|
|
39
|
+
* the canvas and the UI; collaborator cursors sit above canvas content
|
|
40
|
+
* (and layers that anchor to it, like comment pins) but below the
|
|
41
|
+
* in-front content and the UI panels. The watermark (a licensing element)
|
|
42
|
+
* sits above that content so it can't be occluded, but still below the
|
|
43
|
+
* in-front content and the UI.
|
|
40
44
|
*/
|
|
41
45
|
--dr-layer-canvas-hidden: -999999;
|
|
42
46
|
--dr-layer-canvas-background: 100;
|
|
43
47
|
--dr-layer-canvas-grid: 150;
|
|
44
|
-
--dr-layer-
|
|
48
|
+
--dr-layer-collaborators: 245;
|
|
49
|
+
--dr-layer-watermark: 248;
|
|
45
50
|
--dr-layer-canvas-in-front: 250;
|
|
46
51
|
--dr-layer-canvas-shapes: 300;
|
|
47
52
|
--dr-layer-canvas-overlays: 500;
|
|
@@ -78,9 +83,10 @@
|
|
|
78
83
|
|
|
79
84
|
/* Cursor SVGs */
|
|
80
85
|
--dr-cursor-none: none;
|
|
86
|
+
/* Hotspot sits between the white outline tip and the black tip: on either tip alone, hit-testing feels offset from one direction (#10855) */
|
|
81
87
|
--dr-cursor-default:
|
|
82
88
|
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='m12 24.4219v-16.015l11.591 11.619h-6.781l-.411.124z' fill='white'/><path d='m21.0845 25.0962-3.605 1.535-4.682-11.089 3.686-1.553z' fill='white'/><path d='m19.751 24.4155-1.844.774-3.1-7.374 1.841-.775z' fill='black'/><path d='m13 10.814v11.188l2.969-2.866.428-.139h4.768z' fill='black'/></g></svg>")
|
|
83
|
-
12
|
|
89
|
+
12 10,
|
|
84
90
|
default;
|
|
85
91
|
--dr-cursor-pointer:
|
|
86
92
|
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='m13.3315 21.3799c-.284-.359-.629-1.093-1.243-1.984-.348-.504-1.211-1.453-1.468-1.935-.223-.426-.199-.617-.146-.97.094-.628.738-1.117 1.425-1.051.519.049.959.392 1.355.716.239.195.533.574.71.788.163.196.203.277.377.509.23.307.302.459.214.121-.071-.496-.187-1.343-.355-2.092-.128-.568-.159-.657-.281-1.093-.129-.464-.195-.789-.316-1.281-.084-.348-.235-1.059-.276-1.459-.057-.547-.087-1.439.264-1.849.275-.321.906-.418 1.297-.22.512.259.803 1.003.936 1.3.239.534.387 1.151.516 1.961.164 1.031.466 2.462.476 2.763.024-.369-.068-1.146-.004-1.5.058-.321.328-.694.666-.795.286-.085.621-.116.916-.055.313.064.643.288.766.499.362.624.369 1.899.384 1.831.086-.376.071-1.229.284-1.584.14-.234.497-.445.687-.479.294-.052.655-.068.964-.008.249.049.586.345.677.487.218.344.342 1.317.379 1.658.015.141.074-.392.293-.736.406-.639 1.843-.763 1.898.639.025.654.02.624.02 1.064 0 .517-.012.828-.04 1.202-.031.4-.117 1.304-.242 1.742-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.191 1.813-.118.562-.079.566-.102.965-.023.398.121.922.121.922s-.802.104-1.234.035c-.391-.063-.875-.841-1-1.079-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.031-3.139.02 0 0 .185-1.011-.227-1.358-.305-.259-.83-.784-1.144-1.06z' fill='white'/><g stroke='black' stroke-linecap='round' stroke-width='.75'><path d='m13.3315 21.3799c-.284-.359-.629-1.093-1.243-1.984-.348-.504-1.211-1.453-1.468-1.935-.223-.426-.199-.617-.146-.97.094-.628.738-1.117 1.425-1.051.519.049.959.392 1.355.716.239.195.533.574.71.788.163.196.203.277.377.509.23.307.302.459.214.121-.071-.496-.187-1.343-.355-2.092-.128-.568-.159-.657-.281-1.093-.129-.464-.195-.789-.316-1.281-.084-.348-.235-1.059-.276-1.459-.057-.547-.087-1.439.264-1.849.275-.321.906-.418 1.297-.22.512.259.803 1.003.936 1.3.239.534.387 1.151.516 1.961.164 1.031.466 2.462.476 2.763.024-.369-.068-1.146-.004-1.5.058-.321.328-.694.666-.795.286-.085.621-.116.916-.055.313.064.643.288.766.499.362.624.369 1.899.384 1.831.086-.376.071-1.229.284-1.584.14-.234.497-.445.687-.479.294-.052.655-.068.964-.008.249.049.586.345.677.487.218.344.342 1.317.379 1.658.015.141.074-.392.293-.736.406-.639 1.843-.763 1.898.639.025.654.02.624.02 1.064 0 .517-.012.828-.04 1.202-.031.4-.117 1.304-.242 1.742-.086.301-.371.978-.652 1.384 0 0-1.074 1.25-1.191 1.813-.118.562-.079.566-.102.965-.023.398.121.922.121.922s-.802.104-1.234.035c-.391-.063-.875-.841-1-1.079-.172-.328-.539-.265-.682-.023-.225.383-.709 1.07-1.051 1.113-.668.084-2.054.031-3.139.02 0 0 .185-1.011-.227-1.358-.305-.259-.83-.784-1.144-1.06z' stroke-linejoin='round'/><path d='m21.5664 21.7344v-3.459'/><path d='m19.5508 21.7461-.016-3.473'/><path d='m17.5547 18.3047.021 3.426'/></g></g></svg>")
|
|
@@ -90,6 +96,10 @@
|
|
|
90
96
|
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
97
|
16 16,
|
|
92
98
|
crosshair;
|
|
99
|
+
--dr-cursor-comment:
|
|
100
|
+
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>")
|
|
101
|
+
5 19,
|
|
102
|
+
crosshair;
|
|
93
103
|
--dr-cursor-move:
|
|
94
104
|
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
105
|
16 16,
|
|
@@ -191,6 +201,7 @@
|
|
|
191
201
|
--dr-color-text-0: hsl(0, 0%, 11%);
|
|
192
202
|
--dr-color-text-1: hsl(0, 0%, 18%);
|
|
193
203
|
--dr-color-text-3: hsl(204, 4%, 45%);
|
|
204
|
+
--dr-color-text-disabled: hsl(204, 4%, 55%);
|
|
194
205
|
--dr-color-text-shadow: hsl(0, 0%, 100%);
|
|
195
206
|
--dr-color-text-highlight: hsl(52, 100%, 50%);
|
|
196
207
|
--dr-color-text-highlight-p3: color(display-p3 0.972 0.8205 0.05);
|
|
@@ -251,6 +262,7 @@
|
|
|
251
262
|
--dr-color-text-0: hsl(0, 9%, 94%);
|
|
252
263
|
--dr-color-text-1: hsl(0, 0%, 85%);
|
|
253
264
|
--dr-color-text-3: hsl(204, 4%, 75%);
|
|
265
|
+
--dr-color-text-disabled: hsl(204, 4%, 50%);
|
|
254
266
|
--dr-color-text-shadow: hsl(210, 13%, 18%);
|
|
255
267
|
--dr-color-text-highlight: hsl(52, 100%, 41%);
|
|
256
268
|
--dr-color-text-highlight-p3: color(display-p3 0.8078 0.6225 0.0312);
|
|
@@ -299,6 +311,12 @@
|
|
|
299
311
|
outline: 1px solid var(--dr-color-low);
|
|
300
312
|
}
|
|
301
313
|
|
|
314
|
+
/* The host for <EditorPortal>, last among the container's children. It's a position in the DOM
|
|
315
|
+
rather than a box: `display: contents` keeps what it holds positioned against the container. */
|
|
316
|
+
.dr-portal-host {
|
|
317
|
+
display: contents;
|
|
318
|
+
}
|
|
319
|
+
|
|
302
320
|
input,
|
|
303
321
|
*[contenteditable],
|
|
304
322
|
*[contenteditable] * {
|
|
@@ -332,6 +350,15 @@ input,
|
|
|
332
350
|
z-index: var(--dr-layer-canvas-shapes);
|
|
333
351
|
}
|
|
334
352
|
|
|
353
|
+
.dr-lod-canvas {
|
|
354
|
+
position: absolute;
|
|
355
|
+
inset: 0;
|
|
356
|
+
width: 100%;
|
|
357
|
+
height: 100%;
|
|
358
|
+
pointer-events: none;
|
|
359
|
+
z-index: var(--dr-layer-canvas-shapes);
|
|
360
|
+
}
|
|
361
|
+
|
|
335
362
|
.dr-svg-context {
|
|
336
363
|
position: absolute;
|
|
337
364
|
top: 0px;
|
|
@@ -414,6 +441,30 @@ input,
|
|
|
414
441
|
z-index: var(--dr-layer-canvas-shapes);
|
|
415
442
|
}
|
|
416
443
|
|
|
444
|
+
/* The collaborator cursor layer: a sibling of .dr-canvas, above all canvas content, below the
|
|
445
|
+
in-front layer (250) and the UI panels (300). Display-only — pointer events pass through. */
|
|
446
|
+
.dr-collaborators {
|
|
447
|
+
position: absolute;
|
|
448
|
+
inset: 0px;
|
|
449
|
+
z-index: var(--dr-layer-collaborators);
|
|
450
|
+
pointer-events: none;
|
|
451
|
+
overflow: clip;
|
|
452
|
+
contain: layout style size;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.dr-collaborators__item {
|
|
456
|
+
position: absolute;
|
|
457
|
+
top: 0px;
|
|
458
|
+
left: 0px;
|
|
459
|
+
overflow: visible;
|
|
460
|
+
pointer-events: none;
|
|
461
|
+
transform-origin: top left;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.dr-cursor {
|
|
465
|
+
overflow: visible;
|
|
466
|
+
}
|
|
467
|
+
|
|
417
468
|
/* --------------- Overlay Stack --------------- */
|
|
418
469
|
|
|
419
470
|
/* -------------- Selection foreground -------------- */
|
|
@@ -653,7 +704,15 @@ input,
|
|
|
653
704
|
overflow: hidden;
|
|
654
705
|
}
|
|
655
706
|
|
|
656
|
-
|
|
707
|
+
/**
|
|
708
|
+
* Only when there's actually a highlight to style. ProseMirror hides the native selection whenever
|
|
709
|
+
* it holds a NodeSelection — triple-clicking a list's bullet selects the whole list, for one — by
|
|
710
|
+
* zeroing the ::selection background and nothing else. Painting the selected-contrast color with
|
|
711
|
+
* no highlight behind it leaves the text invisible against the shape, and `inherit` can't undo it:
|
|
712
|
+
* highlight pseudo-elements inherit from the ancestor's ::selection, so it just picks the same
|
|
713
|
+
* color back up.
|
|
714
|
+
*/
|
|
715
|
+
.dr-text-input:not(:has(.ProseMirror-hideselection))::selection {
|
|
657
716
|
background: var(--dr-color-selected);
|
|
658
717
|
color: var(--dr-color-selected-contrast);
|
|
659
718
|
text-shadow: none;
|
|
@@ -806,17 +865,17 @@ input,
|
|
|
806
865
|
.dr-rich-text ol {
|
|
807
866
|
text-align: left;
|
|
808
867
|
margin: 0;
|
|
809
|
-
padding-left:
|
|
868
|
+
padding-left: 1.625ch;
|
|
810
869
|
/* Some resets, like Tailwind, nix the list styling. */
|
|
811
870
|
list-style: revert;
|
|
812
871
|
}
|
|
813
872
|
|
|
814
873
|
.dr-rich-text ol:has(> li:nth-child(10)) {
|
|
815
|
-
padding-left:
|
|
874
|
+
padding-left: 2.625ch;
|
|
816
875
|
}
|
|
817
876
|
|
|
818
877
|
.dr-rich-text ol:has(> li:nth-child(100)) {
|
|
819
|
-
padding-left:
|
|
878
|
+
padding-left: 3.625ch;
|
|
820
879
|
}
|
|
821
880
|
|
|
822
881
|
.dr-rich-text h1,
|
|
@@ -827,6 +886,16 @@ input,
|
|
|
827
886
|
.dr-rich-text h6 {
|
|
828
887
|
margin-top: 5px;
|
|
829
888
|
margin-bottom: 10px;
|
|
889
|
+
/**
|
|
890
|
+
* Headings render at a larger font-size than the body text (via the browser's
|
|
891
|
+
* default h1–h6 sizing), so they can't inherit the container's resolved
|
|
892
|
+
* whole-pixel line-height — that value is derived from the base font size and
|
|
893
|
+
* would cram the taller lines together. Instead, scale line-height with each
|
|
894
|
+
* heading's own font-size using tldraw's unitless line-height multiplier, which
|
|
895
|
+
* the rich-text render/measure paths expose here. The 1.35 fallback mirrors the
|
|
896
|
+
* default theme line-height (see defaultThemes.ts).
|
|
897
|
+
*/
|
|
898
|
+
line-height: var(--dr-rich-text-heading-line-height, 1.35);
|
|
830
899
|
}
|
|
831
900
|
|
|
832
901
|
.dr-rich-text a {
|
|
@@ -855,6 +924,7 @@ input,
|
|
|
855
924
|
.dr-theme__dark .dr-rich-text mark {
|
|
856
925
|
background-color: var(--dr-color-text-highlight);
|
|
857
926
|
color: currentColor;
|
|
927
|
+
text-shadow: none;
|
|
858
928
|
}
|
|
859
929
|
|
|
860
930
|
@supports (color: color(display-p3 1 1 1)) {
|
|
@@ -1027,6 +1097,15 @@ input,
|
|
|
1027
1097
|
color: var(--dr-color-text-1);
|
|
1028
1098
|
}
|
|
1029
1099
|
|
|
1100
|
+
.dr-content-slot {
|
|
1101
|
+
position: absolute;
|
|
1102
|
+
inset: 0px;
|
|
1103
|
+
height: 100%;
|
|
1104
|
+
width: 100%;
|
|
1105
|
+
pointer-events: none;
|
|
1106
|
+
transform-origin: top left;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1030
1109
|
/* -------------------- Group shape ------------------ */
|
|
1031
1110
|
|
|
1032
1111
|
.dr-group {
|
|
@@ -1614,9 +1693,8 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1614
1693
|
* (which creates its own stacking context at z-index 300), so their
|
|
1615
1694
|
* z-indices are relative to the layout, not the container.
|
|
1616
1695
|
*
|
|
1617
|
-
* cursor
|
|
1618
|
-
*
|
|
1619
|
-
* to that context.
|
|
1696
|
+
* cursor is rendered inside canvas-in-front (stacking context at
|
|
1697
|
+
* z-index 250), so their z-indices are relative to that context.
|
|
1620
1698
|
*/
|
|
1621
1699
|
--dr-layer-above: 1;
|
|
1622
1700
|
--dr-layer-focused-input: 10;
|
|
@@ -1626,7 +1704,6 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1626
1704
|
--dr-layer-toasts: 650;
|
|
1627
1705
|
--dr-layer-cursor: 700;
|
|
1628
1706
|
--dr-layer-header-footer: 999;
|
|
1629
|
-
--dr-layer-following-indicator: 1000;
|
|
1630
1707
|
}
|
|
1631
1708
|
|
|
1632
1709
|
/* Button */
|
|
@@ -1656,14 +1733,14 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1656
1733
|
|
|
1657
1734
|
.tlui-button:disabled,
|
|
1658
1735
|
.tlui-button[data-disabled] {
|
|
1659
|
-
color: var(--dr-color-text-
|
|
1736
|
+
color: var(--dr-color-text-disabled);
|
|
1660
1737
|
text-shadow: none;
|
|
1661
1738
|
cursor: default;
|
|
1662
1739
|
}
|
|
1663
1740
|
|
|
1664
1741
|
.tlui-button:disabled .tlui-kbd,
|
|
1665
1742
|
.tlui-button[data-disabled] .tlui-kbd {
|
|
1666
|
-
color: var(--dr-color-text-
|
|
1743
|
+
color: var(--dr-color-text-disabled);
|
|
1667
1744
|
}
|
|
1668
1745
|
|
|
1669
1746
|
.tlui-button > * {
|
|
@@ -2032,6 +2109,11 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2032
2109
|
height: 15px;
|
|
2033
2110
|
}
|
|
2034
2111
|
|
|
2112
|
+
.tlui-icon__tiny {
|
|
2113
|
+
width: 12px;
|
|
2114
|
+
height: 12px;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2035
2117
|
/* --------------------- Slider --------------------- */
|
|
2036
2118
|
|
|
2037
2119
|
.tlui-slider__container {
|
|
@@ -2139,6 +2221,14 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2139
2221
|
flex-shrink: 0;
|
|
2140
2222
|
}
|
|
2141
2223
|
|
|
2224
|
+
/* The label is a fixed bit of chrome next to the input; it should never be squeezed. Without this,
|
|
2225
|
+
an inherited `overflow-wrap: anywhere` (e.g. from .tlui-dialog__body) drops its min-content width
|
|
2226
|
+
to a single character and short labels wrap mid-word, e.g. "URL" breaking after "UR". */
|
|
2227
|
+
.tlui-input__wrapper > label {
|
|
2228
|
+
flex-shrink: 0;
|
|
2229
|
+
overflow-wrap: normal;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2142
2232
|
/* If mobile use 16px as font size */
|
|
2143
2233
|
/* On iOS, font size under 16px in an input will make the page zoom into the input 🤦♂️ */
|
|
2144
2234
|
/* https://css-tricks.com/16px-or-larger-text-prevents-ios-form-zoom/ */
|
|
@@ -2360,6 +2450,16 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2360
2450
|
-ms-overflow-style: none;
|
|
2361
2451
|
}
|
|
2362
2452
|
|
|
2453
|
+
.tlui-hover-card__content {
|
|
2454
|
+
position: relative;
|
|
2455
|
+
margin: 0px;
|
|
2456
|
+
border: none;
|
|
2457
|
+
border-radius: var(--dr-radius-3);
|
|
2458
|
+
background-color: var(--dr-color-panel);
|
|
2459
|
+
box-shadow: var(--dr-shadow-3);
|
|
2460
|
+
z-index: var(--dr-layer-menus);
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2363
2463
|
/* -------------------- Menu Zone ------------------- */
|
|
2364
2464
|
|
|
2365
2465
|
.tlui-menu-zone {
|
|
@@ -2631,7 +2731,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2631
2731
|
left: 8px;
|
|
2632
2732
|
}
|
|
2633
2733
|
|
|
2634
|
-
/*
|
|
2734
|
+
/*
|
|
2635
2735
|
* focusing skip-to-main-content hide top ui buttons to make sure we avoid
|
|
2636
2736
|
* z-index clashes on hover (see issue #8328)
|
|
2637
2737
|
*/
|
|
@@ -2816,6 +2916,7 @@ tldraw? probably.
|
|
|
2816
2916
|
.tlui-layout__bottom {
|
|
2817
2917
|
grid-row: 2;
|
|
2818
2918
|
width: 100%;
|
|
2919
|
+
min-width: 0px;
|
|
2819
2920
|
}
|
|
2820
2921
|
|
|
2821
2922
|
.tlui-layout__bottom__main {
|
|
@@ -3189,6 +3290,7 @@ tldraw? probably.
|
|
|
3189
3290
|
.tlui-toast__main {
|
|
3190
3291
|
flex-grow: 2;
|
|
3191
3292
|
max-width: 280px;
|
|
3293
|
+
min-width: 0;
|
|
3192
3294
|
}
|
|
3193
3295
|
|
|
3194
3296
|
.tlui-toast__content {
|
|
@@ -3197,6 +3299,7 @@ tldraw? probably.
|
|
|
3197
3299
|
line-height: 1.4;
|
|
3198
3300
|
flex-direction: column;
|
|
3199
3301
|
gap: var(--dr-space-3);
|
|
3302
|
+
min-width: 0;
|
|
3200
3303
|
}
|
|
3201
3304
|
|
|
3202
3305
|
.tlui-toast__main[data-actions='true'] .tlui-toast__content {
|
|
@@ -3208,6 +3311,7 @@ tldraw? probably.
|
|
|
3208
3311
|
color: var(--dr-color-text-1);
|
|
3209
3312
|
/* this makes the default toast look better */
|
|
3210
3313
|
line-height: 16px;
|
|
3314
|
+
overflow-wrap: anywhere;
|
|
3211
3315
|
}
|
|
3212
3316
|
|
|
3213
3317
|
.tlui-toast__description {
|
|
@@ -3215,6 +3319,7 @@ tldraw? probably.
|
|
|
3215
3319
|
padding: var(--dr-space-3);
|
|
3216
3320
|
margin: 0px;
|
|
3217
3321
|
padding: 0px;
|
|
3322
|
+
overflow-wrap: anywhere;
|
|
3218
3323
|
}
|
|
3219
3324
|
|
|
3220
3325
|
.tlui-toast__icon + .tlui-toast__main > .tlui-toast__actions {
|
|
@@ -3278,8 +3383,17 @@ tldraw? probably.
|
|
|
3278
3383
|
height: 100%;
|
|
3279
3384
|
z-index: var(--dr-layer-canvas-overlays);
|
|
3280
3385
|
background-color: var(--dr-color-overlay);
|
|
3281
|
-
pointer-events: all;
|
|
3282
3386
|
animation: tl-fade-in 0.12s ease-out;
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
.tlui-dialog__positioner {
|
|
3390
|
+
position: absolute;
|
|
3391
|
+
top: 0px;
|
|
3392
|
+
left: 0px;
|
|
3393
|
+
width: 100%;
|
|
3394
|
+
height: 100%;
|
|
3395
|
+
z-index: var(--dr-layer-canvas-overlays);
|
|
3396
|
+
pointer-events: all;
|
|
3283
3397
|
display: grid;
|
|
3284
3398
|
place-items: center;
|
|
3285
3399
|
overflow-y: auto;
|
|
@@ -3332,6 +3446,7 @@ tldraw? probably.
|
|
|
3332
3446
|
color: var(--dr-color-text-1);
|
|
3333
3447
|
user-select: all;
|
|
3334
3448
|
-webkit-user-select: text;
|
|
3449
|
+
overflow-wrap: anywhere;
|
|
3335
3450
|
}
|
|
3336
3451
|
.tlui-dialog__body a {
|
|
3337
3452
|
color: var(--dr-color-selected);
|
|
@@ -3443,6 +3558,14 @@ tldraw? probably.
|
|
|
3443
3558
|
border-bottom: 1px solid var(--dr-color-divider);
|
|
3444
3559
|
}
|
|
3445
3560
|
|
|
3561
|
+
.tlui-shortcuts-dialog__disabled-notice {
|
|
3562
|
+
flex: 0 0 auto;
|
|
3563
|
+
padding: var(--dr-space-3) var(--dr-space-4);
|
|
3564
|
+
border-bottom: 1px solid var(--dr-color-divider);
|
|
3565
|
+
background-color: var(--dr-color-muted-2);
|
|
3566
|
+
color: var(--dr-color-text-1);
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3446
3569
|
.tlui-shortcuts-dialog__body {
|
|
3447
3570
|
position: relative;
|
|
3448
3571
|
columns: 3;
|
|
@@ -3656,7 +3779,8 @@ tldraw? probably.
|
|
|
3656
3779
|
align-items: center;
|
|
3657
3780
|
}
|
|
3658
3781
|
|
|
3659
|
-
.tlui-people-menu__user__color
|
|
3782
|
+
.tlui-people-menu__user__color,
|
|
3783
|
+
.tlui-people-menu__user__edit {
|
|
3660
3784
|
flex-shrink: 0;
|
|
3661
3785
|
}
|
|
3662
3786
|
|
|
@@ -3702,7 +3826,8 @@ tldraw? probably.
|
|
|
3702
3826
|
}
|
|
3703
3827
|
|
|
3704
3828
|
.tlui-people-menu__item {
|
|
3705
|
-
|
|
3829
|
+
display: flex;
|
|
3830
|
+
align-items: center;
|
|
3706
3831
|
}
|
|
3707
3832
|
|
|
3708
3833
|
.tlui-people-menu__item:last-of-type .tlui-button__menu {
|
|
@@ -3710,7 +3835,8 @@ tldraw? probably.
|
|
|
3710
3835
|
}
|
|
3711
3836
|
|
|
3712
3837
|
.tlui-people-menu__item__button {
|
|
3713
|
-
padding:
|
|
3838
|
+
padding-inline-start: 12px;
|
|
3839
|
+
padding-inline-end: 0px;
|
|
3714
3840
|
overflow: hidden;
|
|
3715
3841
|
}
|
|
3716
3842
|
|
|
@@ -3720,7 +3846,7 @@ tldraw? probably.
|
|
|
3720
3846
|
align-items: auto;
|
|
3721
3847
|
justify-content: flex-start;
|
|
3722
3848
|
flex-grow: 2;
|
|
3723
|
-
gap:
|
|
3849
|
+
gap: 12px;
|
|
3724
3850
|
}
|
|
3725
3851
|
|
|
3726
3852
|
.tlui-people-menu__name {
|
|
@@ -3731,18 +3857,9 @@ tldraw? probably.
|
|
|
3731
3857
|
}
|
|
3732
3858
|
|
|
3733
3859
|
.tlui-people-menu__item__follow {
|
|
3734
|
-
position: absolute;
|
|
3735
|
-
top: 0px;
|
|
3736
|
-
inset-inline-end: 0px;
|
|
3737
|
-
max-width: 40px;
|
|
3738
3860
|
flex-shrink: 0;
|
|
3739
3861
|
}
|
|
3740
3862
|
|
|
3741
|
-
.tlui-people-menu__item[data-follow='true'],
|
|
3742
|
-
.tlui-people-menu__item:has(.tlui-button:focus-visible) {
|
|
3743
|
-
padding-inline-end: 36px;
|
|
3744
|
-
}
|
|
3745
|
-
|
|
3746
3863
|
.tlui-people-menu__item[data-follow='true'] .tlui-people-menu__item__follow,
|
|
3747
3864
|
.tlui-people-menu__item:has(.tlui-button:focus-visible) .tlui-people-menu__item__follow {
|
|
3748
3865
|
opacity: 1;
|
|
@@ -3753,9 +3870,6 @@ tldraw? probably.
|
|
|
3753
3870
|
opacity: 0;
|
|
3754
3871
|
}
|
|
3755
3872
|
|
|
3756
|
-
.tlui-people-menu__item:hover {
|
|
3757
|
-
padding-right: 36px;
|
|
3758
|
-
}
|
|
3759
3873
|
.tlui-people-menu__item:hover .tlui-people-menu__item__follow {
|
|
3760
3874
|
opacity: 1;
|
|
3761
3875
|
}
|
|
@@ -3769,7 +3883,6 @@ tldraw? probably.
|
|
|
3769
3883
|
inset: 0px;
|
|
3770
3884
|
border-width: 2px;
|
|
3771
3885
|
border-style: solid;
|
|
3772
|
-
z-index: var(--dr-layer-following-indicator);
|
|
3773
3886
|
pointer-events: none;
|
|
3774
3887
|
}
|
|
3775
3888
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibodr/draw",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,15 +25,18 @@
|
|
|
25
25
|
"@tiptap/core": "^3.23.6",
|
|
26
26
|
"@tiptap/extension-code": "^3.23.6",
|
|
27
27
|
"@tiptap/extension-highlight": "^3.23.6",
|
|
28
|
+
"@tiptap/extension-typography": "3.23.6",
|
|
28
29
|
"@tiptap/pm": "^3.23.6",
|
|
29
30
|
"@tiptap/react": "^3.23.6",
|
|
30
31
|
"@tiptap/starter-kit": "^3.23.6",
|
|
31
32
|
"classnames": "^2.5.1",
|
|
32
33
|
"lz-string": "^1.5.0",
|
|
33
34
|
"radix-ui": "^1.4.3",
|
|
34
|
-
"@ibodr/
|
|
35
|
-
"@ibodr/
|
|
36
|
-
"@ibodr/
|
|
35
|
+
"@ibodr/driver": "0.2.9",
|
|
36
|
+
"@ibodr/schema": "0.2.9",
|
|
37
|
+
"@ibodr/editor": "0.2.9",
|
|
38
|
+
"@ibodr/state": "0.2.9",
|
|
39
|
+
"@ibodr/store": "0.2.9"
|
|
37
40
|
},
|
|
38
41
|
"peerDependencies": {
|
|
39
42
|
"react": "^18.2.0 || ^19.2.1",
|