@tldraw/tldraw 5.5.0-canary.fdb2d37fcb2a → 5.5.0-canary.fdd9b4dee0d9
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 +11 -17
- package/tldraw.css +18 -5
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-canary.
|
|
22
|
+
"5.5.0-canary.fdd9b4dee0d9",
|
|
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-canary.
|
|
4
|
+
"version": "5.5.0-canary.fdd9b4dee0d9",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -32,20 +32,6 @@
|
|
|
32
32
|
"infinite"
|
|
33
33
|
],
|
|
34
34
|
"main": "dist-cjs/index.js",
|
|
35
|
-
"scripts": {
|
|
36
|
-
"test-ci": "yarn run -T vitest run --passWithNoTests",
|
|
37
|
-
"test": "yarn run -T vitest --passWithNoTests",
|
|
38
|
-
"test-coverage": "yarn run -T vitest run --coverage --passWithNoTests",
|
|
39
|
-
"predev": "node ./scripts/copy-css-files.mjs",
|
|
40
|
-
"dev": "chokidar '../tldraw/tldraw.css' -c 'node ./scripts/copy-css-files.mjs'",
|
|
41
|
-
"prebuild": "node ./scripts/copy-css-files.mjs",
|
|
42
|
-
"build": "yarn run -T tsx ../../internal/scripts/build-package.ts",
|
|
43
|
-
"build-api": "yarn run -T tsx ../../internal/scripts/build-api.ts",
|
|
44
|
-
"prepack": "yarn run -T tsx ../../internal/scripts/prepack.ts",
|
|
45
|
-
"postpack": "../../internal/scripts/postpack.sh",
|
|
46
|
-
"pack-tarball": "yarn pack",
|
|
47
|
-
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
48
|
-
},
|
|
49
35
|
"files": [
|
|
50
36
|
"tldraw.css",
|
|
51
37
|
"dist-esm",
|
|
@@ -53,7 +39,7 @@
|
|
|
53
39
|
"src"
|
|
54
40
|
],
|
|
55
41
|
"dependencies": {
|
|
56
|
-
"tldraw": "5.5.0-canary.
|
|
42
|
+
"tldraw": "5.5.0-canary.fdd9b4dee0d9"
|
|
57
43
|
},
|
|
58
44
|
"peerDependencies": {
|
|
59
45
|
"react": "^18.2.0 || ^19.2.1",
|
|
@@ -62,7 +48,6 @@
|
|
|
62
48
|
"devDependencies": {
|
|
63
49
|
"@types/react": "^19.2.7",
|
|
64
50
|
"@types/react-dom": "^19.2.3",
|
|
65
|
-
"chokidar-cli": "^3.0.0",
|
|
66
51
|
"lazyrepo": "0.0.0-alpha.27",
|
|
67
52
|
"react": "^19.2.1",
|
|
68
53
|
"react-dom": "^19.2.1"
|
|
@@ -78,5 +63,14 @@
|
|
|
78
63
|
"require": "./dist-cjs/index.js"
|
|
79
64
|
},
|
|
80
65
|
"./tldraw.css": "./tldraw.css"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"test-ci": "pnpm exec vitest run --passWithNoTests",
|
|
69
|
+
"test": "pnpm exec vitest --passWithNoTests",
|
|
70
|
+
"test-coverage": "pnpm exec vitest run --coverage --passWithNoTests",
|
|
71
|
+
"build": "pnpm exec tsx ../../internal/scripts/build-package.ts",
|
|
72
|
+
"build-api": "pnpm exec tsx ../../internal/scripts/build-api.ts",
|
|
73
|
+
"pack-tarball": "pnpm pack",
|
|
74
|
+
"lint": "pnpm exec tsx ../../internal/scripts/lint.ts"
|
|
81
75
|
}
|
|
82
76
|
}
|
package/tldraw.css
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/* THIS CSS FILE IS GENERATED! DO NOT EDIT. OR EDIT. I'M A COMMENT NOT A COP */
|
|
2
|
-
/* This file is created by the copy-css-files.mjs script in packages/namespaced-tldraw. */
|
|
3
|
-
/* It combines @tldraw/editor's editor.css and tldraw's ui.css */
|
|
4
|
-
|
|
5
1
|
/* @tldraw/editor */
|
|
6
2
|
|
|
7
3
|
.tl-container {
|
|
@@ -654,7 +650,15 @@ input,
|
|
|
654
650
|
overflow: hidden;
|
|
655
651
|
}
|
|
656
652
|
|
|
657
|
-
|
|
653
|
+
/**
|
|
654
|
+
* Only when there's actually a highlight to style. ProseMirror hides the native selection whenever
|
|
655
|
+
* it holds a NodeSelection — triple-clicking a list's bullet selects the whole list, for one — by
|
|
656
|
+
* zeroing the ::selection background and nothing else. Painting the selected-contrast color with
|
|
657
|
+
* no highlight behind it leaves the text invisible against the shape, and `inherit` can't undo it:
|
|
658
|
+
* highlight pseudo-elements inherit from the ancestor's ::selection, so it just picks the same
|
|
659
|
+
* color back up.
|
|
660
|
+
*/
|
|
661
|
+
.tl-text-input:not(:has(.ProseMirror-hideselection))::selection {
|
|
658
662
|
background: var(--tl-color-selected);
|
|
659
663
|
color: var(--tl-color-selected-contrast);
|
|
660
664
|
text-shadow: none;
|
|
@@ -3513,6 +3517,14 @@ tldraw? probably.
|
|
|
3513
3517
|
border-bottom: 1px solid var(--tl-color-divider);
|
|
3514
3518
|
}
|
|
3515
3519
|
|
|
3520
|
+
.tlui-shortcuts-dialog__disabled-notice {
|
|
3521
|
+
flex: 0 0 auto;
|
|
3522
|
+
padding: var(--tl-space-3) var(--tl-space-4);
|
|
3523
|
+
border-bottom: 1px solid var(--tl-color-divider);
|
|
3524
|
+
background-color: var(--tl-color-muted-2);
|
|
3525
|
+
color: var(--tl-color-text-1);
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3516
3528
|
.tlui-shortcuts-dialog__body {
|
|
3517
3529
|
position: relative;
|
|
3518
3530
|
columns: 3;
|
|
@@ -3957,3 +3969,4 @@ tldraw? probably.
|
|
|
3957
3969
|
}
|
|
3958
3970
|
}
|
|
3959
3971
|
|
|
3972
|
+
|