@lace-cloud/canvas 0.16.2 → 0.18.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 +77 -73
- package/dist/{AccordionSection-RPWRZINZ.css → AccordionSection-QHNIBNJT.css} +12 -3
- package/dist/AccountPanel-YCG6RHJI.css +32 -0
- package/dist/App-LQX66JSZ.css +126 -0
- package/dist/ChaosPanel-7JZ2KASG.css +18 -0
- package/dist/ConflictBanner-4V5K2QNU.css +44 -0
- package/dist/DiagnosticsPanel-3UQFOL4T.css +33 -0
- package/dist/{GroupNode-EY63N53G.css → GroupNode-XSB4OKGK.css} +38 -0
- package/dist/Markers-XLREDZNM.css +16 -0
- package/dist/{ModuleNode-AZZ54ONC.css → ModuleNode-VNODPUHI.css} +36 -0
- package/dist/PreviewPanel-FHSY6FS6.css +18 -0
- package/dist/RegistryPanel-DLIMDBWW.css +33 -0
- package/dist/RunPanel-DHBR5SCC.css +11 -0
- package/dist/SourceRefusedBanner-5PXHEDHT.css +23 -0
- package/dist/StackPicker-ZJQELYQ6.css +10 -0
- package/dist/index.cjs +11661 -12408
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3307 -804
- package/dist/index.d.ts +3307 -804
- package/dist/index.mjs +8738 -9519
- package/dist/index.mjs.map +1 -1
- package/dist/{panels-shared-LLLB7PR4.css → panels-shared-OFOUQSUT.css} +3 -4
- package/package.json +8 -4
- package/dist/ActionBar-7ANPCCPK.css +0 -74
- package/dist/RegistryBrowser-3G22I4EO.css +0 -78
- package/dist/ValidationErrorBanner-G6TBGMK7.css +0 -158
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* Shared structural styles used by every config panel.
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* panel-specific rules.
|
|
1
|
+
/* Shared structural styles used by every config panel. Each panel imports
|
|
2
|
+
* this file + its own panel-specific rules — no panel defines its own
|
|
3
|
+
* ad-hoc Tailwind class strings for these.
|
|
5
4
|
*
|
|
6
5
|
* Input fields, mode toggles, and buttons inside config panels adopt
|
|
7
6
|
* @lace-cloud/ui primitives (Input, ModeToggle, Button) — not replicated here. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lace-cloud/canvas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"license": "BUSL-1.1",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -9,14 +9,17 @@
|
|
|
9
9
|
"@xyflow/react": "^12.10.1",
|
|
10
10
|
"react": "^18.3.1",
|
|
11
11
|
"react-dom": "^18.3.1",
|
|
12
|
-
"
|
|
13
|
-
"@lace-cloud/
|
|
12
|
+
"zod": "^4.1.11",
|
|
13
|
+
"@lace-cloud/proto": "0.18.0",
|
|
14
|
+
"@lace-cloud/ui": "0.18.0"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
17
|
"@types/react": "^18.3.12",
|
|
17
18
|
"@types/react-dom": "^18.3.1",
|
|
18
19
|
"tsup": "^8.5.0",
|
|
19
|
-
"
|
|
20
|
+
"tsx": "^4.19.0",
|
|
21
|
+
"typescript": "^5.6.3",
|
|
22
|
+
"@lace-cloud/cast-ban-scanner": "0.0.0"
|
|
20
23
|
},
|
|
21
24
|
"publishConfig": {
|
|
22
25
|
"registry": "https://registry.npmjs.org",
|
|
@@ -34,6 +37,7 @@
|
|
|
34
37
|
"scripts": {
|
|
35
38
|
"build": "tsup",
|
|
36
39
|
"clean": "rm -rf dist",
|
|
40
|
+
"gen:commands": "tsx scripts/gen-commands.ts",
|
|
37
41
|
"test": "vitest run"
|
|
38
42
|
},
|
|
39
43
|
"module": "./dist/index.mjs",
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/* ActionBar — top-right icon strip over the canvas. Plain CSS + tokens
|
|
2
|
-
* so the composite renders identically in the canvas bundle and in
|
|
3
|
-
* Storybook (Tailwind v4 doesn't scan @lace-cloud/canvas). Matches the
|
|
4
|
-
* ContextMenu/Toast pattern from Session 1.5. */
|
|
5
|
-
|
|
6
|
-
.lace-action-bar {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
background: var(--lace-action-bar-bg);
|
|
10
|
-
backdrop-filter: blur(6px);
|
|
11
|
-
border: 1px solid var(--lace-border-default);
|
|
12
|
-
border-radius: 8px;
|
|
13
|
-
box-shadow: var(--lace-action-bar-shadow);
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.lace-action-bar__icon-btn {
|
|
18
|
-
display: inline-flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
width: 32px;
|
|
22
|
-
height: 32px;
|
|
23
|
-
padding: 0;
|
|
24
|
-
background: transparent;
|
|
25
|
-
border: none;
|
|
26
|
-
color: var(--lace-text-muted);
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
transition: color 120ms ease;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.lace-action-bar__icon-btn:hover:not(:disabled) {
|
|
32
|
-
color: var(--lace-grey);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.lace-action-bar__icon-btn:focus-visible {
|
|
36
|
-
outline: 2px solid var(--lace-green);
|
|
37
|
-
outline-offset: -2px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.lace-action-bar__separator {
|
|
41
|
-
width: 1px;
|
|
42
|
-
height: 20px;
|
|
43
|
-
margin: 0 2px;
|
|
44
|
-
background: var(--lace-action-bar-separator);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.lace-action-bar__generate {
|
|
48
|
-
display: inline-flex;
|
|
49
|
-
align-items: center;
|
|
50
|
-
justify-content: center;
|
|
51
|
-
width: 32px;
|
|
52
|
-
height: 32px;
|
|
53
|
-
padding: 0;
|
|
54
|
-
background: var(--lace-action-bar-generate-bg);
|
|
55
|
-
border: none;
|
|
56
|
-
color: var(--lace-btn-text-primary);
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
transition: background 120ms ease;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.lace-action-bar__generate:hover:not(:disabled) {
|
|
62
|
-
background: var(--lace-action-bar-generate-bg-hover);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.lace-action-bar__generate:disabled {
|
|
66
|
-
opacity: 0.5;
|
|
67
|
-
cursor: not-allowed;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.lace-action-bar__icon {
|
|
71
|
-
width: 14px;
|
|
72
|
-
height: 14px;
|
|
73
|
-
fill: currentColor;
|
|
74
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
.lace-registry-browser {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: var(--lace-space-3);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.lace-registry-browser__search {
|
|
8
|
-
padding: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.lace-registry-browser__state {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
gap: var(--lace-space-3);
|
|
17
|
-
padding: var(--lace-space-6) 0;
|
|
18
|
-
color: var(--lace-color-text-muted);
|
|
19
|
-
font-size: var(--lace-font-size-md);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.lace-registry-browser__state--error {
|
|
23
|
-
color: var(--lace-color-text-danger);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.lace-registry-browser__state--empty {
|
|
27
|
-
color: var(--lace-color-text-muted);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.lace-registry-browser__list {
|
|
31
|
-
list-style: none;
|
|
32
|
-
margin: 0;
|
|
33
|
-
padding: 0;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
gap: var(--lace-space-2);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.lace-registry-browser__item {
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
gap: var(--lace-space-3);
|
|
43
|
-
padding: var(--lace-space-3);
|
|
44
|
-
background: var(--lace-color-bg-input);
|
|
45
|
-
border: 1px solid var(--lace-color-border-default);
|
|
46
|
-
border-radius: var(--lace-radius-lg);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.lace-registry-browser__item-info {
|
|
50
|
-
flex: 1;
|
|
51
|
-
min-width: 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.lace-registry-browser__item-name {
|
|
55
|
-
font-size: var(--lace-font-size-md);
|
|
56
|
-
font-weight: var(--lace-font-weight-semibold);
|
|
57
|
-
color: var(--lace-color-text-primary);
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
text-overflow: ellipsis;
|
|
60
|
-
white-space: nowrap;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.lace-registry-browser__item-author {
|
|
64
|
-
font-size: var(--lace-font-size-sm);
|
|
65
|
-
color: var(--lace-color-text-muted);
|
|
66
|
-
margin-top: 2px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.lace-registry-browser__item-desc {
|
|
70
|
-
font-size: var(--lace-font-size-sm);
|
|
71
|
-
color: var(--lace-color-text-description);
|
|
72
|
-
margin-top: var(--lace-space-1);
|
|
73
|
-
overflow: hidden;
|
|
74
|
-
text-overflow: ellipsis;
|
|
75
|
-
display: -webkit-box;
|
|
76
|
-
-webkit-line-clamp: 2;
|
|
77
|
-
-webkit-box-orient: vertical;
|
|
78
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/* ValidationErrorBanner — persistent top-right banner shown after a
|
|
2
|
-
* failed `terraform validate`. Paired with a modal dialog that lists
|
|
3
|
-
* every diagnostic. All colors/spacing flow through design tokens so
|
|
4
|
-
* Storybook and the webview render identically. */
|
|
5
|
-
|
|
6
|
-
.lace-error-banner {
|
|
7
|
-
position: absolute;
|
|
8
|
-
top: var(--lace-space-4);
|
|
9
|
-
left: var(--lace-space-4);
|
|
10
|
-
z-index: var(--lace-z-chrome);
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: var(--lace-space-2);
|
|
14
|
-
padding: var(--lace-space-1) var(--lace-space-3);
|
|
15
|
-
background: var(--lace-toast-error-bg);
|
|
16
|
-
border: 1px solid var(--lace-toast-error-border);
|
|
17
|
-
border-radius: var(--lace-radius-md);
|
|
18
|
-
color: var(--lace-color-text-danger-soft);
|
|
19
|
-
font-size: var(--lace-font-size-md);
|
|
20
|
-
line-height: var(--lace-line-height-tight);
|
|
21
|
-
box-shadow: var(--lace-shadow-sm);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.lace-error-banner__icon {
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.lace-error-banner__message {
|
|
29
|
-
white-space: nowrap;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.lace-error-banner__view-details {
|
|
33
|
-
padding: 1px 7px;
|
|
34
|
-
background: var(--lace-color-red-alpha-12);
|
|
35
|
-
border: 1px solid var(--lace-color-red-alpha-30);
|
|
36
|
-
border-radius: var(--lace-radius-sm);
|
|
37
|
-
color: var(--lace-color-text-danger-soft);
|
|
38
|
-
font-size: var(--lace-font-size-sm);
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
transition: background var(--lace-duration-fast) var(--lace-easing-standard);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.lace-error-banner__view-details:hover {
|
|
44
|
-
background: var(--lace-color-red-alpha-20);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.lace-error-banner__dismiss {
|
|
48
|
-
padding: 0 var(--lace-space-1);
|
|
49
|
-
background: none;
|
|
50
|
-
border: none;
|
|
51
|
-
color: var(--lace-color-text-muted);
|
|
52
|
-
font-size: var(--lace-font-size-xl);
|
|
53
|
-
line-height: 1;
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
transition: color var(--lace-duration-fast) var(--lace-easing-standard);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.lace-error-banner__dismiss:hover {
|
|
59
|
-
color: var(--lace-color-text-primary);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* ── Dialog ── */
|
|
63
|
-
|
|
64
|
-
.lace-error-dialog-backdrop {
|
|
65
|
-
position: fixed;
|
|
66
|
-
inset: 0;
|
|
67
|
-
z-index: var(--lace-z-overlay);
|
|
68
|
-
display: flex;
|
|
69
|
-
align-items: center;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
background: var(--lace-modal-backdrop);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.lace-error-dialog {
|
|
75
|
-
position: relative;
|
|
76
|
-
display: flex;
|
|
77
|
-
flex-direction: column;
|
|
78
|
-
width: 520px;
|
|
79
|
-
max-height: 70vh;
|
|
80
|
-
background: var(--lace-color-bg-context-menu);
|
|
81
|
-
border: 1px solid var(--lace-color-red-alpha-35);
|
|
82
|
-
border-radius: var(--lace-radius-lg);
|
|
83
|
-
box-shadow: var(--lace-shadow-xl);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.lace-error-dialog__header {
|
|
87
|
-
display: flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
justify-content: space-between;
|
|
90
|
-
padding: var(--lace-space-3) var(--lace-space-4);
|
|
91
|
-
border-bottom: 1px solid var(--lace-color-red-alpha-20);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.lace-error-dialog__title {
|
|
95
|
-
margin: 0;
|
|
96
|
-
color: var(--lace-color-text-danger-soft);
|
|
97
|
-
font-size: var(--lace-font-size-lg);
|
|
98
|
-
font-weight: var(--lace-font-weight-semibold);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.lace-error-dialog__close {
|
|
102
|
-
padding: 0;
|
|
103
|
-
background: none;
|
|
104
|
-
border: none;
|
|
105
|
-
color: var(--lace-color-text-muted);
|
|
106
|
-
font-size: var(--lace-font-size-2xl);
|
|
107
|
-
line-height: 1;
|
|
108
|
-
cursor: pointer;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.lace-error-dialog__list {
|
|
112
|
-
flex: 1 1 auto;
|
|
113
|
-
min-height: 0;
|
|
114
|
-
padding: var(--lace-space-3) var(--lace-space-4);
|
|
115
|
-
display: flex;
|
|
116
|
-
flex-direction: column;
|
|
117
|
-
gap: var(--lace-space-2);
|
|
118
|
-
overflow-y: auto;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.lace-error-dialog__item {
|
|
122
|
-
padding: var(--lace-space-2) var(--lace-space-3);
|
|
123
|
-
background: var(--lace-color-red-900);
|
|
124
|
-
border: 1px solid var(--lace-color-red-alpha-20);
|
|
125
|
-
border-radius: var(--lace-radius-md);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.lace-error-dialog__item-message {
|
|
129
|
-
margin-bottom: var(--lace-space-1);
|
|
130
|
-
color: var(--lace-color-text-danger-soft);
|
|
131
|
-
font-size: var(--lace-font-size-md);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.lace-error-dialog__file-link {
|
|
135
|
-
display: block;
|
|
136
|
-
margin-bottom: var(--lace-space-1);
|
|
137
|
-
padding: 0;
|
|
138
|
-
background: none;
|
|
139
|
-
border: none;
|
|
140
|
-
color: var(--lace-color-text-muted);
|
|
141
|
-
font-size: var(--lace-font-size-xs);
|
|
142
|
-
text-align: left;
|
|
143
|
-
text-decoration: underline;
|
|
144
|
-
text-decoration-color: currentColor;
|
|
145
|
-
text-decoration-thickness: 1px;
|
|
146
|
-
text-underline-offset: 2px;
|
|
147
|
-
cursor: pointer;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.lace-error-dialog__node-link {
|
|
151
|
-
padding: 2px var(--lace-space-2);
|
|
152
|
-
background: var(--lace-color-accent-alpha-subtle);
|
|
153
|
-
border: 1px solid var(--lace-color-accent-alpha-medium);
|
|
154
|
-
border-radius: var(--lace-radius-sm);
|
|
155
|
-
color: var(--lace-color-accent);
|
|
156
|
-
font-size: var(--lace-font-size-xs);
|
|
157
|
-
cursor: pointer;
|
|
158
|
-
}
|