@lace-cloud/canvas 0.30.0 → 0.31.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 +3 -2
- package/dist/CardActions-QLTNQUVW.css +40 -0
- package/dist/{GroupNode-FXLQCVAE.css → GroupNode-NJOGOGQM.css} +3 -6
- package/dist/{ModuleNode-PPAN7NLP.css → ModuleNode-LPPBJZCD.css} +1 -38
- package/dist/{chunk-A3ATETIA.mjs → chunk-MVOO7T3B.mjs} +275 -104
- package/dist/chunk-MVOO7T3B.mjs.map +1 -0
- package/dist/engine/index.cjs +272 -102
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.mts +2 -2
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.mjs +3 -1
- package/dist/index.cjs +8189 -7983
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +1371 -1335
- package/dist/index.mjs.map +1 -1
- package/dist/{registry-C8fUGD44.d.mts → registry-B56alajR.d.mts} +87 -19
- package/dist/{registry-C8fUGD44.d.ts → registry-B56alajR.d.ts} +87 -19
- package/package.json +3 -3
- package/dist/chunk-A3ATETIA.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -72,13 +72,14 @@ const results = createResultStore();
|
|
|
72
72
|
const runner = createActionRunner({ commands, presenter }, results);
|
|
73
73
|
const apply = CORE_COMMAND_ACTIONS.find((a) => a.id === 'apply');
|
|
74
74
|
if (apply) await runner.run(apply, { root, stack }, {});
|
|
75
|
-
// results.getSnapshot().run is the run's
|
|
75
|
+
// results.getSnapshot().run is the run's stages, last log line and outcome.
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
A command that failed says why as data (`CommandExitError.failure`), and
|
|
79
79
|
`answering(CORE_COMMAND_ACTIONS, failure)` is what a host offers on it:
|
|
80
80
|
the actions that answer that failure's reason (Import the rest answers
|
|
81
|
-
`import_residual`), each run the same way with
|
|
81
|
+
`import_residual`, Lock providers `no_lockfile`), each run the same way with
|
|
82
|
+
`{ failure }` as its target.
|
|
82
83
|
|
|
83
84
|
A host that mounts the canvas can own its result store too: pass it as
|
|
84
85
|
`<App ports={ports} results={results} />` and call `results.bumpTick()`
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* A card's controls: the actions placed on it, drawn in its header while it
|
|
2
|
+
* is hovered (CardActions.tsx), on a module card and a group card alike. */
|
|
3
|
+
|
|
4
|
+
.lace-card-action {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
width: 18px;
|
|
10
|
+
height: 18px;
|
|
11
|
+
padding: 0;
|
|
12
|
+
background: none;
|
|
13
|
+
border: none;
|
|
14
|
+
border-radius: var(--lace-radius-sm);
|
|
15
|
+
color: var(--lace-color-text-muted);
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
line-height: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.lace-card-action .lace-canvas-icon {
|
|
22
|
+
stroke-width: 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.lace-card-action:hover:not([aria-disabled="true"]) {
|
|
26
|
+
background: var(--lace-icon-btn-hover);
|
|
27
|
+
color: var(--lace-color-text-primary);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.lace-card-action--danger:hover:not([aria-disabled="true"]) {
|
|
31
|
+
background: var(--lace-color-danger-bg-soft);
|
|
32
|
+
color: var(--lace-color-danger-fg);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* A control that cannot run, or is running: inert, keeping its focus so its
|
|
36
|
+
* tooltip says why. */
|
|
37
|
+
.lace-card-action[aria-disabled="true"] {
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
opacity: 0.4;
|
|
40
|
+
}
|
|
@@ -77,8 +77,7 @@
|
|
|
77
77
|
border-radius: var(--lace-radius-md);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.lace-group-node__collapse-btn
|
|
81
|
-
.lace-group-node__ungroup-btn {
|
|
80
|
+
.lace-group-node__collapse-btn {
|
|
82
81
|
display: flex;
|
|
83
82
|
flex-shrink: 0;
|
|
84
83
|
align-items: center;
|
|
@@ -95,13 +94,11 @@
|
|
|
95
94
|
line-height: 1;
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
.lace-group-node__collapse-btn:hover
|
|
99
|
-
.lace-group-node__ungroup-btn:hover {
|
|
97
|
+
.lace-group-node__collapse-btn:hover {
|
|
100
98
|
color: var(--lace-color-text-primary);
|
|
101
99
|
}
|
|
102
100
|
|
|
103
|
-
.lace-group-node__collapse-btn .lace-canvas-icon
|
|
104
|
-
.lace-group-node__ungroup-btn .lace-canvas-icon {
|
|
101
|
+
.lace-group-node__collapse-btn .lace-canvas-icon {
|
|
105
102
|
stroke-width: 2;
|
|
106
103
|
}
|
|
107
104
|
|
|
@@ -85,8 +85,7 @@
|
|
|
85
85
|
color: var(--lace-color-text-primary);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.lace-module-node__collapse-btn .lace-canvas-icon
|
|
89
|
-
.lace-module-node__action .lace-canvas-icon {
|
|
88
|
+
.lace-module-node__collapse-btn .lace-canvas-icon {
|
|
90
89
|
stroke-width: 2;
|
|
91
90
|
}
|
|
92
91
|
|
|
@@ -129,42 +128,6 @@
|
|
|
129
128
|
font-weight: var(--lace-font-weight-medium);
|
|
130
129
|
}
|
|
131
130
|
|
|
132
|
-
/* A card's own control, drawn while the card is hovered: an action placed
|
|
133
|
-
* on the card (`card`), its glyph alone. */
|
|
134
|
-
.lace-module-node__action {
|
|
135
|
-
display: flex;
|
|
136
|
-
align-items: center;
|
|
137
|
-
justify-content: center;
|
|
138
|
-
flex-shrink: 0;
|
|
139
|
-
width: 18px;
|
|
140
|
-
height: 18px;
|
|
141
|
-
padding: 0;
|
|
142
|
-
background: none;
|
|
143
|
-
border: none;
|
|
144
|
-
border-radius: var(--lace-radius-sm);
|
|
145
|
-
color: var(--lace-color-text-muted);
|
|
146
|
-
font-size: 12px;
|
|
147
|
-
cursor: pointer;
|
|
148
|
-
line-height: 1;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.lace-module-node__action:hover:not([aria-disabled="true"]) {
|
|
152
|
-
background: var(--lace-icon-btn-hover);
|
|
153
|
-
color: var(--lace-color-text-primary);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.lace-module-node__action--danger:hover:not([aria-disabled="true"]) {
|
|
157
|
-
background: var(--lace-color-danger-bg-soft);
|
|
158
|
-
color: var(--lace-color-danger-fg);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* A control that cannot run, or is running: inert, keeping its focus so its
|
|
162
|
-
* tooltip says why. */
|
|
163
|
-
.lace-module-node__action[aria-disabled="true"] {
|
|
164
|
-
cursor: not-allowed;
|
|
165
|
-
opacity: 0.4;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
131
|
.lace-module-node__body {
|
|
169
132
|
position: relative;
|
|
170
133
|
}
|