@lace-cloud/canvas 0.20.0 → 0.21.1
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 +3 -3
- package/dist/{AccordionSection-QHNIBNJT.css → AccordionSection-J3ALHB5M.css} +22 -12
- package/dist/{App-D7WF3TWZ.css → App-IFIOMNV7.css} +47 -33
- package/dist/Banner-4TSIKYLF.css +48 -0
- package/dist/{Canvas-J6F7YHEK.css → Canvas-JRY2HAY6.css} +0 -56
- package/dist/CanvasControls-L6Q2LX2P.css +47 -0
- package/dist/ContextMenu-C7SLX23S.css +74 -0
- package/dist/DiagnosticsPanel-T6VDHH4A.css +64 -0
- package/dist/Drawer-34ZYTEWE.css +62 -0
- package/dist/EdgeInspectorPanel-JD6CVUAT.css +45 -0
- package/dist/EmptyCanvas-QA2OV3T3.css +21 -0
- package/dist/GroupNode-QWSLBFCH.css +197 -0
- package/dist/Identifier-V6MZ37EG.css +4 -0
- package/dist/{ModuleConfigPanel-LZRL4F3Q.css → ModuleConfigPanel-LTPLEG2L.css} +29 -10
- package/dist/{ModuleNode-OJXMNOL3.css → ModuleNode-RRZ37SFM.css} +97 -27
- package/dist/PaperGrid-WFRL3N4P.css +25 -0
- package/dist/ToolbarAction-PQNWHJSU.css +36 -0
- package/dist/UpdateButton-TJKSFVBA.css +16 -0
- package/dist/{chunk-R4RA2QI7.mjs → chunk-TPJXMHYN.mjs} +106 -110
- package/dist/chunk-TPJXMHYN.mjs.map +1 -0
- package/dist/engine/index.cjs +83 -104
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +3 -5
- package/dist/engine/index.d.ts +3 -5
- package/dist/engine/index.mjs +1 -3
- package/dist/icons-SBZCWI5T.css +14 -0
- package/dist/index.cjs +10718 -10373
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +35 -25
- package/dist/index.d.ts +35 -25
- package/dist/index.mjs +3035 -2641
- package/dist/index.mjs.map +1 -1
- package/dist/{mapping-ChSnv11V.d.mts → mapping-REUTGeUE.d.mts} +61 -53
- package/dist/{mapping-ChSnv11V.d.ts → mapping-REUTGeUE.d.ts} +61 -53
- package/dist/{panels-shared-OFOUQSUT.css → panels-shared-5JFNYXQ7.css} +47 -66
- package/package.json +3 -3
- package/dist/ConflictBanner-4V5K2QNU.css +0 -44
- package/dist/ContextMenu-EAQFLI5L.css +0 -46
- package/dist/DiagnosticsPanel-HB3JQYSY.css +0 -39
- package/dist/EdgeInspectorPanel-D536U5MZ.css +0 -54
- package/dist/GroupNode-XSB4OKGK.css +0 -150
- package/dist/Markers-XLREDZNM.css +0 -16
- package/dist/SourceRefusedBanner-5PXHEDHT.css +0 -23
- package/dist/chunk-R4RA2QI7.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@ optional `editor`, `commands`); a host wires only the ports it can
|
|
|
7
7
|
support, and read-only is the absence of `editor` (or a live session
|
|
8
8
|
whose source tf is refused), never a flag.
|
|
9
9
|
|
|
10
|
-
The canvas draws module authoring: the graph, the
|
|
11
|
-
inspectors
|
|
10
|
+
The canvas draws module authoring: the graph, the settings panel and
|
|
11
|
+
the module and connection inspectors in its drawer, Save, Generate, Validate, Convert,
|
|
12
12
|
undo/redo, groups, the diagnostics list, the conflict and refused-tf
|
|
13
13
|
banners, and node badges for the stack its host supplies. The package
|
|
14
14
|
carries more than the canvas draws — the typed command contract, the
|
|
@@ -47,7 +47,7 @@ Code, JetBrains, Storybook, the portal — renders against:
|
|
|
47
47
|
not on the `ports` object, so that change detaches nothing still
|
|
48
48
|
running.
|
|
49
49
|
- `viewState` (required) — the consumer-owned arrangement (node
|
|
50
|
-
positions, group collapse
|
|
50
|
+
positions, group collapse), never transported over the wire.
|
|
51
51
|
|
|
52
52
|
## The data layer a host draws
|
|
53
53
|
|
|
@@ -16,20 +16,23 @@
|
|
|
16
16
|
border-bottom: 1px solid var(--lace-color-border-default);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
/* A section head reads like a VS Code view section's: small capitals,
|
|
20
|
+
* letter-spaced, muted until hovered, a chevron that turns as it opens. */
|
|
19
21
|
.lace-accordion__header {
|
|
20
22
|
display: flex;
|
|
21
23
|
align-items: center;
|
|
22
|
-
gap: var(--lace-space-
|
|
24
|
+
gap: var(--lace-space-1);
|
|
23
25
|
width: 100%;
|
|
24
|
-
|
|
26
|
+
min-height: 32px;
|
|
27
|
+
padding: var(--lace-space-1) var(--lace-space-4) var(--lace-space-1) var(--lace-space-3);
|
|
25
28
|
background: transparent;
|
|
26
29
|
border: none;
|
|
27
|
-
color: var(--lace-color-
|
|
30
|
+
color: var(--lace-color-text-description);
|
|
28
31
|
font-family: inherit;
|
|
29
|
-
font-size: var(--lace-font-size-
|
|
32
|
+
font-size: var(--lace-font-size-sm);
|
|
30
33
|
font-weight: var(--lace-font-weight-bold);
|
|
31
34
|
text-transform: uppercase;
|
|
32
|
-
letter-spacing: 0.
|
|
35
|
+
letter-spacing: 0.06em;
|
|
33
36
|
text-align: left;
|
|
34
37
|
cursor: pointer;
|
|
35
38
|
transition: color var(--lace-duration-fast) var(--lace-easing-standard);
|
|
@@ -39,11 +42,15 @@
|
|
|
39
42
|
color: var(--lace-color-text-primary);
|
|
40
43
|
}
|
|
41
44
|
|
|
45
|
+
.lace-accordion__header:focus-visible {
|
|
46
|
+
outline: 2px solid var(--lace-color-focus-ring);
|
|
47
|
+
outline-offset: -2px;
|
|
48
|
+
}
|
|
49
|
+
|
|
42
50
|
.lace-accordion__chevron {
|
|
51
|
+
display: inline-flex;
|
|
43
52
|
flex-shrink: 0;
|
|
44
|
-
|
|
45
|
-
height: 12px;
|
|
46
|
-
fill: currentColor;
|
|
53
|
+
font-size: 14px;
|
|
47
54
|
transition: transform var(--lace-duration-medium) var(--lace-easing-standard);
|
|
48
55
|
}
|
|
49
56
|
|
|
@@ -54,17 +61,20 @@
|
|
|
54
61
|
.lace-accordion__title {
|
|
55
62
|
flex: 1 1 auto;
|
|
56
63
|
min-width: 0;
|
|
57
|
-
opacity: 0.85;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
.lace-accordion__badge {
|
|
61
|
-
|
|
67
|
+
color: var(--lace-color-text-muted);
|
|
62
68
|
font-weight: var(--lace-font-weight-regular);
|
|
63
|
-
|
|
69
|
+
letter-spacing: 0;
|
|
64
70
|
}
|
|
65
71
|
|
|
72
|
+
/* The one column is the section's width and no wider: an implicit `auto`
|
|
73
|
+
* column grows to its content's min-content width, so a row of controls
|
|
74
|
+
* (two inputs and a button) would widen the section past its panel. */
|
|
66
75
|
.lace-accordion__body {
|
|
67
76
|
display: grid;
|
|
77
|
+
grid-template-columns: minmax(0, 1fr);
|
|
68
78
|
grid-template-rows: 0fr;
|
|
69
79
|
transition: grid-template-rows var(--lace-duration-medium) var(--lace-easing-out);
|
|
70
80
|
}
|
|
@@ -79,5 +89,5 @@
|
|
|
79
89
|
}
|
|
80
90
|
|
|
81
91
|
.lace-accordion__body-content {
|
|
82
|
-
padding:
|
|
92
|
+
padding: var(--lace-space-1) var(--lace-space-4) var(--lace-space-4);
|
|
83
93
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* App's own layout: the fixed slots every contribution renders
|
|
2
|
-
* into — toolbar (actions
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* a
|
|
2
|
+
* into — the toolbar (actions grouped by intent, the state chips, the
|
|
3
|
+
* Settings gear), the banner strip under it, the canvas itself with its
|
|
4
|
+
* bottom tabs, and the right-hand drawer (components/Drawer.css). Every
|
|
5
|
+
* slot is a row or column in flow: nothing is drawn over another slot. The
|
|
6
|
+
* drawer exists only while a panel in it resolves, so a closed panel takes
|
|
7
|
+
* no space. A host's own contributions land in the exact same slots a core
|
|
8
|
+
* one does; there is no host-specific layout. */
|
|
6
9
|
|
|
7
10
|
.lace-app {
|
|
8
11
|
display: flex;
|
|
@@ -17,16 +20,26 @@
|
|
|
17
20
|
outline: none;
|
|
18
21
|
}
|
|
19
22
|
|
|
23
|
+
/* Each banner is a full-width row of its own; the strip holds its height
|
|
24
|
+
* (it is never squeezed by the flex column) and is empty while no banner
|
|
25
|
+
* shows. */
|
|
20
26
|
.lace-app__banners {
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
flex-shrink: 0;
|
|
23
30
|
}
|
|
24
31
|
|
|
32
|
+
/* The toolbar: a slim surface row at VS Code's density (a 40px row of
|
|
33
|
+
* 28px controls) — groups of the design system's controls split by
|
|
34
|
+
* hairlines, the Settings gear at the far end. It wraps onto a second line
|
|
35
|
+
* rather than running past a narrow webview. */
|
|
25
36
|
.lace-app__toolbar {
|
|
26
37
|
display: flex;
|
|
38
|
+
flex-wrap: wrap;
|
|
27
39
|
align-items: center;
|
|
28
|
-
gap: var(--lace-space-
|
|
29
|
-
|
|
40
|
+
gap: var(--lace-space-1);
|
|
41
|
+
min-height: 40px;
|
|
42
|
+
padding: var(--lace-space-1) var(--lace-space-2);
|
|
30
43
|
border-bottom: 1px solid var(--lace-color-border-default);
|
|
31
44
|
background: var(--lace-color-bg-surface);
|
|
32
45
|
/* A normal-flow row above the pane, never an overlay: fixed height
|
|
@@ -36,14 +49,29 @@
|
|
|
36
49
|
position: relative;
|
|
37
50
|
}
|
|
38
51
|
|
|
39
|
-
.lace-app__toolbar-
|
|
40
|
-
display: flex;
|
|
52
|
+
.lace-app__toolbar-section {
|
|
53
|
+
display: inline-flex;
|
|
41
54
|
align-items: center;
|
|
42
|
-
gap:
|
|
55
|
+
gap: 2px;
|
|
43
56
|
}
|
|
44
57
|
|
|
45
|
-
.
|
|
46
|
-
|
|
58
|
+
/* The state chips sit a step away from the button they describe. */
|
|
59
|
+
.lace-app__toolbar-section .lace-marker {
|
|
60
|
+
margin-left: var(--lace-space-1);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.lace-app__toolbar-separator {
|
|
64
|
+
width: 1px;
|
|
65
|
+
height: 20px;
|
|
66
|
+
margin: 0 var(--lace-space-1);
|
|
67
|
+
background: var(--lace-color-border-default);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* The toolbar panels that name no group (the Settings gear). */
|
|
71
|
+
.lace-app__toolbar-end {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
margin-left: auto;
|
|
47
75
|
}
|
|
48
76
|
|
|
49
77
|
.lace-app__body {
|
|
@@ -52,15 +80,6 @@
|
|
|
52
80
|
min-height: 0;
|
|
53
81
|
}
|
|
54
82
|
|
|
55
|
-
.lace-app__sidebar {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
width: 260px;
|
|
59
|
-
overflow-y: auto;
|
|
60
|
-
border-right: 1px solid var(--lace-color-border-default);
|
|
61
|
-
background: var(--lace-color-bg-surface);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
83
|
.lace-app__main {
|
|
65
84
|
display: flex;
|
|
66
85
|
flex-direction: column;
|
|
@@ -80,10 +99,13 @@
|
|
|
80
99
|
overflow: hidden;
|
|
81
100
|
}
|
|
82
101
|
|
|
102
|
+
/* The bottom tray is as tall as what it lists, up to two fifths of the
|
|
103
|
+
* column; past that its content scrolls. The canvas keeps the rest. */
|
|
83
104
|
.lace-app__bottom {
|
|
84
105
|
display: flex;
|
|
85
106
|
flex-direction: column;
|
|
86
|
-
|
|
107
|
+
flex: 0 0 auto;
|
|
108
|
+
max-height: 40%;
|
|
87
109
|
border-top: 1px solid var(--lace-color-border-default);
|
|
88
110
|
background: var(--lace-color-bg-surface);
|
|
89
111
|
}
|
|
@@ -108,7 +130,8 @@
|
|
|
108
130
|
}
|
|
109
131
|
|
|
110
132
|
.lace-app__bottom-content {
|
|
111
|
-
flex: 1;
|
|
133
|
+
flex: 1 1 auto;
|
|
134
|
+
min-height: 0;
|
|
112
135
|
overflow: auto;
|
|
113
136
|
padding: var(--lace-space-2);
|
|
114
137
|
}
|
|
@@ -121,12 +144,3 @@
|
|
|
121
144
|
padding: var(--lace-space-1) var(--lace-space-2);
|
|
122
145
|
color: var(--lace-color-text-danger);
|
|
123
146
|
}
|
|
124
|
-
|
|
125
|
-
.lace-app__inspector {
|
|
126
|
-
display: flex;
|
|
127
|
-
flex-direction: column;
|
|
128
|
-
width: 300px;
|
|
129
|
-
overflow-y: auto;
|
|
130
|
-
border-left: 1px solid var(--lace-color-border-default);
|
|
131
|
-
background: var(--lace-color-bg-surface);
|
|
132
|
-
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* A banner: a full-width row in App's banner strip, between the toolbar and
|
|
2
|
+
* the canvas. It is in flow, so it never covers the toolbar; in a narrow
|
|
3
|
+
* webview its sentence wraps and its buttons wrap under it. */
|
|
4
|
+
|
|
5
|
+
.lace-banner {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: var(--lace-space-2) var(--lace-space-3);
|
|
10
|
+
min-height: 40px;
|
|
11
|
+
padding: var(--lace-space-1) var(--lace-space-2) var(--lace-space-1) var(--lace-space-3);
|
|
12
|
+
border-bottom: 1px solid;
|
|
13
|
+
font-size: var(--lace-font-size-md);
|
|
14
|
+
line-height: var(--lace-line-height-tight);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.lace-banner--warning {
|
|
18
|
+
background: var(--lace-banner-warning-bg);
|
|
19
|
+
border-bottom-color: var(--lace-banner-warning-border);
|
|
20
|
+
color: var(--lace-banner-warning-fg);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.lace-banner--error {
|
|
24
|
+
background: var(--lace-banner-error-bg);
|
|
25
|
+
border-bottom-color: var(--lace-banner-error-border);
|
|
26
|
+
color: var(--lace-banner-error-fg);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.lace-banner__icon {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* The sentence reads in the text colour; the glyph and the rule carry the
|
|
36
|
+
* severity. */
|
|
37
|
+
.lace-banner__message {
|
|
38
|
+
flex: 1 1 16rem;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
color: var(--lace-color-text-primary);
|
|
41
|
+
overflow-wrap: anywhere;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.lace-banner__actions {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
gap: var(--lace-space-2);
|
|
48
|
+
}
|
|
@@ -36,62 +36,6 @@
|
|
|
36
36
|
transform: scale(1.35);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
/* ── Controls (zoom in / zoom out / fit) ──
|
|
40
|
-
* xyflow's defaults give us a white-on-white result. We override with
|
|
41
|
-
* the brand gunmetal + accent-green so controls are legible against
|
|
42
|
-
* the night-black canvas. */
|
|
43
|
-
|
|
44
|
-
.react-flow__controls {
|
|
45
|
-
border-radius: var(--lace-radius-md);
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
border: 1px solid var(--lace-canvas-controls-border);
|
|
48
|
-
box-shadow: var(--lace-shadow-md);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.react-flow__controls-button {
|
|
52
|
-
width: 28px;
|
|
53
|
-
height: 28px;
|
|
54
|
-
padding: 5px;
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
background: var(--lace-canvas-controls-bg);
|
|
59
|
-
border: none;
|
|
60
|
-
border-bottom: 1px solid var(--lace-color-accent-alpha-subtle);
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
transition: background var(--lace-duration-fast) var(--lace-easing-standard);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.react-flow__controls-button:last-child {
|
|
66
|
-
border-bottom: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.react-flow__controls-button:hover {
|
|
70
|
-
background: var(--lace-canvas-controls-bg-hover);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.react-flow__controls-button svg {
|
|
74
|
-
width: 13px;
|
|
75
|
-
height: 13px;
|
|
76
|
-
max-width: 13px;
|
|
77
|
-
max-height: 13px;
|
|
78
|
-
fill: var(--lace-canvas-controls-icon);
|
|
79
|
-
transition: fill var(--lace-duration-fast) var(--lace-easing-standard);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.react-flow__controls-button:hover svg {
|
|
83
|
-
fill: var(--lace-canvas-controls-icon-hover);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/* ── MiniMap ── */
|
|
87
|
-
|
|
88
|
-
.react-flow__minimap {
|
|
89
|
-
border-radius: var(--lace-radius-md);
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
border: 1px solid var(--lace-canvas-minimap-border);
|
|
92
|
-
box-shadow: var(--lace-shadow-md);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
39
|
/* ── Edges ──
|
|
96
40
|
* Default edges use the brand green. Selected edges get a brighter
|
|
97
41
|
* stroke + drop-shadow so the user can see what will be deleted on
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* The view controls' bar and the minimap above it, both bottom-left on the
|
|
2
|
+
* canvas's floating surface. */
|
|
3
|
+
|
|
4
|
+
.react-flow__panel.lace-canvas-controls {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: 2px;
|
|
8
|
+
margin: var(--lace-space-3);
|
|
9
|
+
padding: 2px;
|
|
10
|
+
border: 1px solid var(--lace-color-border-default);
|
|
11
|
+
border-radius: var(--lace-radius-md);
|
|
12
|
+
background: var(--lace-color-bg-surface);
|
|
13
|
+
box-shadow: var(--lace-shadow-sm);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.lace-canvas-controls__zoom {
|
|
17
|
+
min-width: 3.5em;
|
|
18
|
+
color: var(--lace-color-text-muted);
|
|
19
|
+
font-family: var(--lace-font-mono);
|
|
20
|
+
font-size: var(--lace-font-size-xs);
|
|
21
|
+
font-variant-numeric: tabular-nums;
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.lace-canvas-controls__rule {
|
|
26
|
+
width: 1px;
|
|
27
|
+
height: 14px;
|
|
28
|
+
margin: 0 2px;
|
|
29
|
+
background: var(--lace-color-border-default);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* The minimap sits over the bar: the bar's 28px, its margin, and a gap. */
|
|
33
|
+
.react-flow__panel.react-flow__minimap.lace-canvas-minimap {
|
|
34
|
+
width: 160px;
|
|
35
|
+
height: 110px;
|
|
36
|
+
margin: 0 0 calc(var(--lace-space-3) + 28px + var(--lace-space-2)) var(--lace-space-3);
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
border: 1px solid var(--lace-color-border-default);
|
|
39
|
+
border-radius: var(--lace-radius-md);
|
|
40
|
+
background: var(--lace-canvas-minimap-bg);
|
|
41
|
+
box-shadow: var(--lace-shadow-sm);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.lace-canvas-minimap .react-flow__minimap-svg {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* ContextMenu — right-click menu over the canvas. All colors flow through
|
|
2
|
+
* @lace-cloud/design-tokens. The pattern mirrors @lace-cloud/ui primitives: plain CSS,
|
|
3
|
+
* colocated with the component, imported from the TSX module. Keeps this
|
|
4
|
+
* composite renderable in Storybook where Tailwind v4 doesn't scan the
|
|
5
|
+
* @lace-cloud/canvas package for arbitrary-value utilities. */
|
|
6
|
+
|
|
7
|
+
/* Placed by ContextMenu.tsx inside the window; a menu taller than the
|
|
8
|
+
* window gets a max-height there and scrolls. */
|
|
9
|
+
.lace-ctx-menu {
|
|
10
|
+
position: fixed;
|
|
11
|
+
z-index: var(--lace-z-overlay);
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
min-width: 180px;
|
|
15
|
+
padding: var(--lace-space-1);
|
|
16
|
+
background: var(--lace-color-bg-context-menu);
|
|
17
|
+
border: 1px solid var(--lace-color-border-default);
|
|
18
|
+
border-radius: var(--lace-radius-md);
|
|
19
|
+
box-shadow: var(--lace-shadow-lg);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.lace-ctx-menu__item {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
gap: var(--lace-space-5);
|
|
27
|
+
width: 100%;
|
|
28
|
+
padding: 5px var(--lace-space-2);
|
|
29
|
+
background: transparent;
|
|
30
|
+
border: none;
|
|
31
|
+
border-radius: var(--lace-radius-sm);
|
|
32
|
+
color: var(--lace-color-text-primary);
|
|
33
|
+
font-family: inherit;
|
|
34
|
+
font-size: var(--lace-font-size-md);
|
|
35
|
+
text-align: left;
|
|
36
|
+
/* One line per item wherever the menu opens: a menu measured against the
|
|
37
|
+
* window's right edge keeps its natural width rather than wrapping. */
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.lace-ctx-menu__item:hover,
|
|
43
|
+
.lace-ctx-menu__item:focus-visible {
|
|
44
|
+
background: var(--lace-color-accent-alpha-medium);
|
|
45
|
+
outline: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.lace-ctx-menu__item--danger {
|
|
49
|
+
color: var(--lace-color-danger-fg);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.lace-ctx-menu__item--danger:hover,
|
|
53
|
+
.lace-ctx-menu__item--danger:focus-visible {
|
|
54
|
+
background: var(--lace-color-danger-bg-soft);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.lace-ctx-menu__separator {
|
|
58
|
+
height: 1px;
|
|
59
|
+
margin: var(--lace-space-1) var(--lace-space-1);
|
|
60
|
+
border: none;
|
|
61
|
+
background: var(--lace-color-border-default);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.lace-ctx-menu__shortcut {
|
|
65
|
+
color: var(--lace-color-text-muted);
|
|
66
|
+
font-family: var(--lace-font-mono);
|
|
67
|
+
font-size: var(--lace-font-size-xs);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.lace-ctx-menu__scrim {
|
|
71
|
+
position: fixed;
|
|
72
|
+
inset: 0;
|
|
73
|
+
z-index: var(--lace-z-scrim);
|
|
74
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.lace-diagnostics-panel {
|
|
2
|
+
list-style: none;
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: var(--lace-space-2);
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--lace-space-1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* A row: the severity's glyph in its tone, then the finding in the text
|
|
11
|
+
* colour, where it is and the rule it breaks — identifiers, muted. The glyph
|
|
12
|
+
* holds its own column, so a row that wraps hangs under the message, never
|
|
13
|
+
* under the glyph. */
|
|
14
|
+
.lace-diagnostics-panel__row {
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
17
|
+
column-gap: var(--lace-space-2);
|
|
18
|
+
align-items: start;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.lace-diagnostics-panel__icon {
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
/* One line of the message tall, so the glyph sits level with its first
|
|
24
|
+
* line. */
|
|
25
|
+
height: calc(1em * var(--lace-line-height-normal));
|
|
26
|
+
align-items: center;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.lace-diagnostics-panel__body {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
align-items: baseline;
|
|
34
|
+
gap: 0 var(--lace-space-2);
|
|
35
|
+
min-width: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.lace-diagnostics-panel__message {
|
|
39
|
+
color: var(--lace-color-text-primary);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.lace-diagnostics-panel__where,
|
|
43
|
+
.lace-diagnostics-panel__code {
|
|
44
|
+
color: var(--lace-color-text-muted);
|
|
45
|
+
font-size: var(--lace-font-size-sm);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* A host's row action (Open source, …): the design system's ghost button,
|
|
49
|
+
* set off from the finding it acts on. */
|
|
50
|
+
.lace-diagnostics-panel__action {
|
|
51
|
+
margin-left: var(--lace-space-2);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.lace-diagnostics-panel__row--error .lace-diagnostics-panel__icon {
|
|
55
|
+
color: var(--lace-color-danger-fg);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.lace-diagnostics-panel__row--warning .lace-diagnostics-panel__icon {
|
|
59
|
+
color: var(--lace-color-warning-fg);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.lace-diagnostics-panel__row--info .lace-diagnostics-panel__icon {
|
|
63
|
+
color: var(--lace-color-text-muted);
|
|
64
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* The right-hand drawer: a column beside the canvas, sized between the
|
|
2
|
+
* drawer tokens (and never past three fifths of the body, so the canvas
|
|
3
|
+
* keeps room in a narrow webview). `--drawer-width` is the width the
|
|
4
|
+
* developer dragged it to; unset, the default token. */
|
|
5
|
+
|
|
6
|
+
.lace-app__drawer {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
width: clamp(
|
|
12
|
+
var(--lace-size-drawer-min),
|
|
13
|
+
var(--drawer-width, var(--lace-size-drawer-default)),
|
|
14
|
+
var(--lace-size-drawer-max)
|
|
15
|
+
);
|
|
16
|
+
max-width: 60%;
|
|
17
|
+
min-height: 0;
|
|
18
|
+
border-left: 1px solid var(--lace-color-border-default);
|
|
19
|
+
background: var(--lace-color-bg-surface);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.lace-app__drawer-body {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
flex: 1;
|
|
26
|
+
min-height: 0;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* The resize handle straddles the drawer's left edge: a 7px target that
|
|
31
|
+
* draws a 2px accent line while hovered, held or focused. */
|
|
32
|
+
.lace-app__drawer-handle {
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: -4px;
|
|
37
|
+
z-index: 2;
|
|
38
|
+
width: 7px;
|
|
39
|
+
cursor: col-resize;
|
|
40
|
+
touch-action: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.lace-app__drawer-handle::after {
|
|
44
|
+
content: "";
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
bottom: 0;
|
|
48
|
+
left: 2px;
|
|
49
|
+
width: 2px;
|
|
50
|
+
background: transparent;
|
|
51
|
+
transition: background var(--lace-duration-fast) var(--lace-easing-standard);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.lace-app__drawer-handle:hover::after,
|
|
55
|
+
.lace-app__drawer-handle:active::after,
|
|
56
|
+
.lace-app__drawer-handle:focus-visible::after {
|
|
57
|
+
background: var(--lace-color-accent);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.lace-app__drawer-handle:focus-visible {
|
|
61
|
+
outline: none;
|
|
62
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* EdgeInspectorPanel — the drawer's panel for a selected connection. Its
|
|
2
|
+
* head matches the module inspector's: what it is in small muted capitals,
|
|
3
|
+
* over the two ends in monospace. All colours, spacing and font sizes flow
|
|
4
|
+
* through design tokens. */
|
|
5
|
+
|
|
6
|
+
.lace-edge-panel__title-eyebrow {
|
|
7
|
+
color: var(--lace-color-text-muted);
|
|
8
|
+
font-size: var(--lace-font-size-xs);
|
|
9
|
+
font-weight: var(--lace-font-weight-bold);
|
|
10
|
+
text-transform: uppercase;
|
|
11
|
+
letter-spacing: 0.06em;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.lace-edge-panel__title {
|
|
15
|
+
margin-top: 2px;
|
|
16
|
+
color: var(--lace-color-text-primary);
|
|
17
|
+
font-size: var(--lace-font-size-lg);
|
|
18
|
+
font-weight: var(--lace-font-weight-semibold);
|
|
19
|
+
line-height: var(--lace-line-height-tight);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.lace-edge-panel__section-label {
|
|
23
|
+
margin-bottom: var(--lace-space-2);
|
|
24
|
+
color: var(--lace-color-text-description);
|
|
25
|
+
font-size: var(--lace-font-size-sm);
|
|
26
|
+
font-weight: var(--lace-font-weight-bold);
|
|
27
|
+
text-transform: uppercase;
|
|
28
|
+
letter-spacing: 0.06em;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.lace-edge-panel__wiring {
|
|
32
|
+
margin-bottom: var(--lace-space-4);
|
|
33
|
+
color: var(--lace-color-text-primary);
|
|
34
|
+
font-size: var(--lace-font-size-sm);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.lace-edge-panel__wiring-arrow {
|
|
38
|
+
margin: var(--lace-space-1) 0;
|
|
39
|
+
color: var(--lace-color-text-muted);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.lace-edge-panel__hint {
|
|
43
|
+
color: var(--lace-color-text-muted);
|
|
44
|
+
font-size: var(--lace-font-size-sm);
|
|
45
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* The empty canvas's prompt, centred over the paper and transparent to the
|
|
2
|
+
* pointer. */
|
|
3
|
+
.lace-canvas-empty {
|
|
4
|
+
position: absolute;
|
|
5
|
+
inset: 0;
|
|
6
|
+
z-index: 4;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
padding: var(--lace-space-5);
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.lace-canvas-empty .lace-empty-state {
|
|
15
|
+
max-width: 360px;
|
|
16
|
+
box-shadow: var(--lace-shadow-md);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.lace-canvas-empty .lace-empty-state__icon {
|
|
20
|
+
font-size: 22px;
|
|
21
|
+
}
|