@tldraw/tldraw 4.3.0 → 4.4.0-canary.09e80a09d230

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 CHANGED
@@ -6,7 +6,7 @@ This package is kept around for legacy purposes. It just tracks the normal `tldr
6
6
 
7
7
  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).
8
8
 
9
- You can use the tldraw SDK in commercial or non-commercial projects so long as you preserve the "Made with tldraw" watermark on the canvas. To remove the watermark, you can purchase a [business license](https://tldraw.dev#pricing). Visit [tldraw.dev](https://tldraw.dev) to learn more.
9
+ You can use the tldraw SDK in commercial or non-commercial projects so long as you preserve the "Made with tldraw" watermark on the canvas. To remove the watermark, you can purchase a [business license](https://tldraw.dev/pricing). Visit [tldraw.dev](https://tldraw.dev) to learn more.
10
10
 
11
11
  ## Trademarks
12
12
 
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
- "4.3.0",
22
+ "4.4.0-canary.09e80a09d230",
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
- "4.3.0",
5
+ "4.4.0-canary.09e80a09d230",
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": "4.3.0",
4
+ "version": "4.4.0-canary.09e80a09d230",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -48,7 +48,7 @@
48
48
  "src"
49
49
  ],
50
50
  "dependencies": {
51
- "tldraw": "4.3.0"
51
+ "tldraw": "4.4.0-canary.09e80a09d230"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^18.2.0 || ^19.2.1",
package/tldraw.css CHANGED
@@ -1166,6 +1166,12 @@ input,
1166
1166
  contain: size layout;
1167
1167
  }
1168
1168
 
1169
+ .tl-canvas-indicators {
1170
+ position: absolute;
1171
+ inset: 0;
1172
+ pointer-events: none;
1173
+ }
1174
+
1169
1175
  /* ---------------------- Shape --------------------- */
1170
1176
 
1171
1177
  .tl-shape {
@@ -1840,13 +1846,15 @@ it from receiving any pointer events or affecting the cursor. */
1840
1846
  z-index: 0;
1841
1847
  }
1842
1848
 
1843
- .tlui-button:disabled {
1849
+ .tlui-button:disabled,
1850
+ .tlui-button[data-disabled] {
1844
1851
  color: var(--tl-color-text-3);
1845
1852
  text-shadow: none;
1846
1853
  cursor: default;
1847
1854
  }
1848
1855
 
1849
- .tlui-button:disabled .tlui-kbd {
1856
+ .tlui-button:disabled .tlui-kbd,
1857
+ .tlui-button[data-disabled] .tlui-kbd {
1850
1858
  color: var(--tl-color-text-3);
1851
1859
  }
1852
1860
 
@@ -1895,7 +1903,7 @@ it from receiving any pointer events or affecting the cursor. */
1895
1903
  }
1896
1904
 
1897
1905
  .tlui-button[data-isactive='true']::after,
1898
- .tlui-button[data-isactive='true']:not(:disabled, :focus-visible):active:after {
1906
+ .tlui-button[data-isactive='true']:not(:disabled, [data-disabled], :focus-visible):active:after {
1899
1907
  background: var(--tl-color-hint);
1900
1908
  opacity: 1;
1901
1909
  }
@@ -1911,11 +1919,11 @@ it from receiving any pointer events or affecting the cursor. */
1911
1919
  opacity: 1;
1912
1920
  }
1913
1921
 
1914
- .tlui-button:not(:disabled):hover {
1922
+ .tlui-button:not(:disabled, [data-disabled]):hover {
1915
1923
  z-index: 1;
1916
1924
  }
1917
1925
 
1918
- .tlui-button:not(:disabled):hover::after {
1926
+ .tlui-button:not(:disabled, [data-disabled]):hover::after {
1919
1927
  opacity: 1;
1920
1928
  }
1921
1929
  }
@@ -1954,11 +1962,11 @@ it from receiving any pointer events or affecting the cursor. */
1954
1962
  }
1955
1963
 
1956
1964
  @media (hover: hover) {
1957
- .tlui-button__primary:not(:disabled, :focus-visible):hover {
1965
+ .tlui-button__primary:not(:disabled, [data-disabled], :focus-visible):hover {
1958
1966
  color: var(--tl-color-primary);
1959
1967
  }
1960
1968
 
1961
- .tlui-button__danger:not(:disabled, :focus-visible):hover {
1969
+ .tlui-button__danger:not(:disabled, [data-disabled], :focus-visible):hover {
1962
1970
  color: var(--tl-color-danger);
1963
1971
  text-shadow: none;
1964
1972
  }
@@ -2046,11 +2054,11 @@ it from receiving any pointer events or affecting the cursor. */
2046
2054
  color: var(--tl-color-selected-contrast);
2047
2055
  }
2048
2056
 
2049
- .tlui-button__tool[aria-pressed='true']:not(:disabled, :focus-visible):active {
2057
+ .tlui-button__tool[aria-pressed='true']:not(:disabled, [data-disabled], :focus-visible):active {
2050
2058
  color: var(--tl-color-selected-contrast);
2051
2059
  }
2052
2060
 
2053
- .tlui-button__tool[aria-pressed='true']:not(:disabled)::after {
2061
+ .tlui-button__tool[aria-pressed='true']:not(:disabled, [data-disabled])::after {
2054
2062
  background: var(--tl-color-selected);
2055
2063
  opacity: 1;
2056
2064
  }
@@ -3529,6 +3537,12 @@ tldraw? probably.
3529
3537
 
3530
3538
  /* Terrible fix to allow firefox users to scroll the dialog */
3531
3539
  overflow-x: auto;
3540
+
3541
+ scrollbar-width: none;
3542
+ }
3543
+
3544
+ .tlui-shortcuts-dialog__body::-webkit-scrollbar {
3545
+ display: none;
3532
3546
  }
3533
3547
 
3534
3548
  .tlui-shortcuts-dialog__body__tablet {