@superblocksteam/library 2.0.119-next.0 → 2.0.119
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/{build-manifest-Xi8oZhWX.js → build-manifest-BOqMhObV.js} +2 -2
- package/dist/{build-manifest-Xi8oZhWX.js.map → build-manifest-BOqMhObV.js.map} +1 -1
- package/dist/{devtools-consolidated--QF_TVsD.js → devtools-consolidated-CwxpaGqQ.js} +5 -3
- package/dist/{devtools-consolidated--QF_TVsD.js.map → devtools-consolidated-CwxpaGqQ.js.map} +1 -1
- package/dist/{early-console-buffer-BJWsc4E3.js → early-console-buffer-D4wVuyBf.js} +6 -3
- package/dist/{early-console-buffer-BJWsc4E3.js.map → early-console-buffer-D4wVuyBf.js.map} +1 -1
- package/dist/jsx-dev-runtime/index.d.ts.map +1 -1
- package/dist/jsx-dev-runtime/index.js +5 -3
- package/dist/jsx-dev-runtime/index.js.map +1 -1
- package/dist/jsx-runtime/index.d.ts.map +1 -1
- package/dist/jsx-runtime/index.js +2 -1
- package/dist/jsx-runtime/index.js.map +1 -1
- package/dist/{jsx-wrapper-BaTggkUU.js → jsx-wrapper-BLrvyiEf.js} +169 -90
- package/dist/jsx-wrapper-BLrvyiEf.js.map +1 -0
- package/dist/{style.css → lib/index.css} +126 -96
- package/dist/lib/index.css.map +1 -0
- package/dist/lib/index.d.ts +41 -27
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +334 -199
- package/dist/lib/index.js.map +1 -1
- package/dist/{logs-HOxOH_w6.js → logs-hyzhDMp7.js} +5 -4
- package/dist/{logs-HOxOH_w6.js.map → logs-hyzhDMp7.js.map} +1 -1
- package/dist/{utils-BfE8-Afc.js → utils-BGEEeYie.js} +4 -19
- package/dist/{utils-BfE8-Afc.js.map → utils-BGEEeYie.js.map} +1 -1
- package/dist/utils-Co8Wr1hk.js +3 -0
- package/package.json +7 -8
- package/dist/jsx-wrapper-BaTggkUU.js.map +0 -1
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
/* Edit mode z-index values */
|
|
2
3
|
--sb-edit-z-index-high: 1010;
|
|
3
4
|
--sb-edit-z-index-mid: 1002;
|
|
4
5
|
--sb-edit-z-index-base: 1001;
|
|
5
6
|
--primary-rect-color: #0087e0;
|
|
6
7
|
}
|
|
7
8
|
|
|
9
|
+
/* A class that sets the child anchor-name to a variable that is set in react */
|
|
10
|
+
/* First level is the suspense provider, second level is the component */
|
|
8
11
|
.sb-anchor-name {
|
|
9
12
|
anchor-name: var(--anchor-name);
|
|
10
13
|
}
|
|
@@ -15,41 +18,46 @@
|
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Used to drag *new* components into the canvas.
|
|
23
|
+
* It's a full height/width layer above the editor canvas.
|
|
24
|
+
* Triggers the draggable preview box for the new component to be dropped.
|
|
25
|
+
**/
|
|
18
26
|
.sb-new-component-dragging-layer {
|
|
27
|
+
position: fixed;
|
|
19
28
|
width: 100vw;
|
|
20
29
|
height: 100vh;
|
|
21
30
|
z-index: var(--sb-edit-z-index-high);
|
|
22
|
-
position: fixed;
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
.sb-interaction-layer-wrapper {
|
|
26
34
|
z-index: var(--sb-edit-z-index-high);
|
|
27
|
-
width: 0;
|
|
28
35
|
height: 0;
|
|
36
|
+
width: 0;
|
|
29
37
|
top: 0;
|
|
30
38
|
left: 0;
|
|
31
39
|
}
|
|
32
40
|
|
|
33
41
|
.sb-edit-drag-preview {
|
|
34
|
-
|
|
35
|
-
background: #e0000029;
|
|
42
|
+
background: rgba(224, 0, 0, 0.16);
|
|
36
43
|
border: 1px solid red;
|
|
44
|
+
box-shadow: inset 0 0 0 3px rgba(224, 0, 0, 0.16);
|
|
37
45
|
width: 100%;
|
|
38
46
|
height: 100%;
|
|
39
|
-
|
|
47
|
+
pointer-events: none;
|
|
40
48
|
|
|
41
49
|
&[data-is-valid-drop="true"] {
|
|
42
50
|
border: 1px solid var(--primary-rect-color);
|
|
43
|
-
background:
|
|
44
|
-
box-shadow: inset 0 0 0 3px
|
|
51
|
+
background: rgba(0, 135, 224, 0.16);
|
|
52
|
+
box-shadow: inset 0 0 0 3px rgba(0, 135, 224, 0.16);
|
|
45
53
|
}
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
.sb-edit-selection-rect {
|
|
57
|
+
position: absolute;
|
|
49
58
|
border: 2px solid var(--primary-rect-color);
|
|
50
59
|
pointer-events: none;
|
|
51
60
|
z-index: var(--sb-edit-z-index-base);
|
|
52
|
-
position: absolute;
|
|
53
61
|
|
|
54
62
|
&.sb-edit-focus {
|
|
55
63
|
border: 1px solid var(--primary-rect-color);
|
|
@@ -60,211 +68,225 @@
|
|
|
60
68
|
}
|
|
61
69
|
|
|
62
70
|
&.sb-edit-target-mode.sb-edit-focus {
|
|
63
|
-
background: #7c4ff80a;
|
|
64
71
|
border: 1px solid #c2b9dd;
|
|
72
|
+
background: rgba(124, 79, 248, 0.04);
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
75
|
|
|
76
|
+
/* ai target mode */
|
|
77
|
+
|
|
68
78
|
.sb-target-mode-border {
|
|
79
|
+
position: absolute;
|
|
69
80
|
top: anchor(top);
|
|
70
81
|
left: anchor(left);
|
|
71
82
|
right: anchor(right);
|
|
72
83
|
bottom: anchor(bottom);
|
|
73
84
|
pointer-events: none;
|
|
74
|
-
position: absolute;
|
|
75
85
|
}
|
|
76
86
|
|
|
77
|
-
.sb-target-mode-border-top-right,
|
|
78
|
-
|
|
87
|
+
.sb-target-mode-border-top-right,
|
|
88
|
+
.sb-target-mode-border-top-left,
|
|
89
|
+
.sb-target-mode-border-bottom-right,
|
|
90
|
+
.sb-target-mode-border-bottom-left {
|
|
79
91
|
width: 12px;
|
|
80
92
|
height: 12px;
|
|
81
93
|
position: absolute;
|
|
94
|
+
box-sizing: border-box;
|
|
82
95
|
}
|
|
83
96
|
|
|
84
97
|
.sb-target-mode-border-top-right {
|
|
85
|
-
border-top: 2px solid #7c4ff8;
|
|
86
|
-
border-left: 2px solid #7c4ff8;
|
|
87
98
|
top: 0;
|
|
88
99
|
left: 0;
|
|
100
|
+
border-top: 2px solid rgba(124, 79, 248, 1);
|
|
101
|
+
border-left: 2px solid rgba(124, 79, 248, 1);
|
|
89
102
|
}
|
|
90
103
|
|
|
91
104
|
.sb-target-mode-border-top-left {
|
|
92
|
-
border-top: 2px solid #7c4ff8;
|
|
93
|
-
border-right: 2px solid #7c4ff8;
|
|
94
105
|
top: 0;
|
|
95
106
|
right: 0;
|
|
107
|
+
border-top: 2px solid rgba(124, 79, 248, 1);
|
|
108
|
+
border-right: 2px solid rgba(124, 79, 248, 1);
|
|
96
109
|
}
|
|
97
110
|
|
|
98
111
|
.sb-target-mode-border-bottom-right {
|
|
99
|
-
border-bottom: 2px solid #7c4ff8;
|
|
100
|
-
border-right: 2px solid #7c4ff8;
|
|
101
112
|
bottom: 0;
|
|
102
113
|
right: 0;
|
|
114
|
+
border-bottom: 2px solid rgba(124, 79, 248, 1);
|
|
115
|
+
border-right: 2px solid rgba(124, 79, 248, 1);
|
|
103
116
|
}
|
|
104
117
|
|
|
105
118
|
.sb-target-mode-border-bottom-left {
|
|
106
|
-
border-bottom: 2px solid #7c4ff8;
|
|
107
|
-
border-left: 2px solid #7c4ff8;
|
|
108
119
|
bottom: 0;
|
|
109
120
|
left: 0;
|
|
121
|
+
border-bottom: 2px solid rgba(124, 79, 248, 1);
|
|
122
|
+
border-left: 2px solid rgba(124, 79, 248, 1);
|
|
110
123
|
}
|
|
111
124
|
|
|
125
|
+
/*
|
|
126
|
+
Handles for resizing the selection rect.
|
|
127
|
+
These are the little circles that appear when you select a widget
|
|
128
|
+
Used in interaction-rect-handles.tsx
|
|
129
|
+
*/
|
|
130
|
+
|
|
112
131
|
.resize-handle {
|
|
113
|
-
|
|
132
|
+
position: absolute;
|
|
114
133
|
width: 12px;
|
|
115
134
|
height: 12px;
|
|
135
|
+
background-color: white;
|
|
136
|
+
border: 1px solid var(--primary-rect-color);
|
|
137
|
+
border-radius: 50%;
|
|
116
138
|
z-index: var(--sb-edit-z-index-high);
|
|
117
139
|
pointer-events: auto;
|
|
118
|
-
background-color: #fff;
|
|
119
|
-
border-radius: 50%;
|
|
120
|
-
position: absolute;
|
|
121
140
|
|
|
122
|
-
|
|
141
|
+
.bp5-popover-target {
|
|
123
142
|
width: 100%;
|
|
124
143
|
height: 100%;
|
|
125
144
|
}
|
|
126
145
|
|
|
127
146
|
&.top-left-resize-handle {
|
|
128
|
-
cursor: nw-resize;
|
|
129
147
|
top: -6px;
|
|
130
148
|
left: -6px;
|
|
149
|
+
cursor: nw-resize;
|
|
131
150
|
}
|
|
132
151
|
|
|
133
152
|
&.top-right-resize-handle {
|
|
134
|
-
cursor: ne-resize;
|
|
135
153
|
top: -6px;
|
|
136
154
|
right: -6px;
|
|
155
|
+
cursor: ne-resize;
|
|
137
156
|
}
|
|
138
157
|
|
|
139
158
|
&.bottom-right-resize-handle {
|
|
140
|
-
cursor: se-resize;
|
|
141
159
|
bottom: -6px;
|
|
142
160
|
right: -6px;
|
|
161
|
+
cursor: se-resize;
|
|
143
162
|
}
|
|
144
163
|
|
|
145
164
|
&.bottom-left-resize-handle {
|
|
146
|
-
cursor: sw-resize;
|
|
147
165
|
bottom: -6px;
|
|
148
166
|
left: -6px;
|
|
167
|
+
cursor: sw-resize;
|
|
149
168
|
}
|
|
150
169
|
|
|
151
170
|
&.top-resize-handle {
|
|
152
|
-
cursor: ns-resize;
|
|
153
|
-
pointer-events: auto;
|
|
154
|
-
background-color: #0000;
|
|
155
|
-
border: none;
|
|
156
|
-
width: auto;
|
|
157
|
-
height: 12px;
|
|
158
171
|
top: -6px;
|
|
159
172
|
left: 0;
|
|
160
173
|
right: 0;
|
|
174
|
+
height: 12px;
|
|
175
|
+
width: auto;
|
|
176
|
+
cursor: ns-resize;
|
|
177
|
+
background-color: transparent;
|
|
178
|
+
border: none;
|
|
179
|
+
pointer-events: auto;
|
|
161
180
|
}
|
|
162
181
|
|
|
163
182
|
&.right-resize-handle {
|
|
164
|
-
cursor: ew-resize;
|
|
165
|
-
pointer-events: auto;
|
|
166
|
-
background-color: #0000;
|
|
167
|
-
border: none;
|
|
168
|
-
width: 12px;
|
|
169
|
-
height: auto;
|
|
170
183
|
top: 0;
|
|
171
|
-
bottom: 0;
|
|
172
184
|
right: -6px;
|
|
185
|
+
bottom: 0;
|
|
186
|
+
width: 12px;
|
|
187
|
+
height: auto;
|
|
188
|
+
cursor: ew-resize;
|
|
189
|
+
background-color: transparent;
|
|
190
|
+
border: none;
|
|
191
|
+
pointer-events: auto;
|
|
173
192
|
}
|
|
174
193
|
|
|
175
194
|
&.bottom-resize-handle {
|
|
176
|
-
cursor: ns-resize;
|
|
177
|
-
pointer-events: auto;
|
|
178
|
-
background-color: #0000;
|
|
179
|
-
border: none;
|
|
180
|
-
width: auto;
|
|
181
|
-
height: 12px;
|
|
182
195
|
bottom: -6px;
|
|
183
196
|
left: 0;
|
|
184
197
|
right: 0;
|
|
198
|
+
height: 12px;
|
|
199
|
+
width: auto;
|
|
200
|
+
cursor: ns-resize;
|
|
201
|
+
background-color: transparent;
|
|
202
|
+
border: none;
|
|
203
|
+
pointer-events: auto;
|
|
185
204
|
}
|
|
186
205
|
|
|
187
206
|
&.left-resize-handle {
|
|
188
|
-
cursor: ew-resize;
|
|
189
|
-
pointer-events: auto;
|
|
190
|
-
background-color: #0000;
|
|
191
|
-
border: none;
|
|
192
|
-
width: 12px;
|
|
193
|
-
height: auto;
|
|
194
207
|
top: 0;
|
|
195
|
-
bottom: 0;
|
|
196
208
|
left: -6px;
|
|
209
|
+
bottom: 0;
|
|
210
|
+
width: 12px;
|
|
211
|
+
height: auto;
|
|
212
|
+
cursor: ew-resize;
|
|
213
|
+
background-color: transparent;
|
|
214
|
+
border: none;
|
|
215
|
+
pointer-events: auto;
|
|
197
216
|
}
|
|
198
217
|
}
|
|
199
218
|
|
|
200
|
-
.resize-handle-edge
|
|
219
|
+
.resize-handle-edge::after {
|
|
220
|
+
position: absolute;
|
|
201
221
|
content: "";
|
|
222
|
+
border-radius: 3px;
|
|
202
223
|
border: 1px solid var(--primary-rect-color);
|
|
224
|
+
background: rgb(255, 255, 255);
|
|
203
225
|
box-sizing: border-box;
|
|
204
|
-
|
|
205
|
-
border-radius: 3px;
|
|
206
|
-
transition: height .2s ease-in-out;
|
|
207
|
-
position: absolute;
|
|
226
|
+
transition: height 0.2s ease-in-out;
|
|
208
227
|
}
|
|
209
228
|
|
|
210
|
-
.left-resize-handle-edge
|
|
229
|
+
.left-resize-handle-edge::after {
|
|
211
230
|
width: 6px;
|
|
212
231
|
height: 16px;
|
|
213
232
|
top: calc(50% - 8px);
|
|
214
233
|
left: calc(50% - 2px);
|
|
215
234
|
}
|
|
216
235
|
|
|
217
|
-
.right-resize-handle-edge
|
|
236
|
+
.right-resize-handle-edge::after {
|
|
218
237
|
width: 6px;
|
|
219
238
|
height: 16px;
|
|
220
239
|
top: calc(50% - 8px);
|
|
221
240
|
right: calc(50% - 2px);
|
|
222
241
|
}
|
|
223
242
|
|
|
224
|
-
.top-resize-handle-edge
|
|
243
|
+
.top-resize-handle-edge::after {
|
|
225
244
|
width: 16px;
|
|
226
245
|
height: 6px;
|
|
227
|
-
top: calc(50% - 2px);
|
|
228
246
|
left: calc(50% - 8px);
|
|
247
|
+
top: calc(50% - 2px);
|
|
229
248
|
}
|
|
230
249
|
|
|
231
|
-
.bottom-resize-handle-edge
|
|
250
|
+
.bottom-resize-handle-edge::after {
|
|
232
251
|
width: 16px;
|
|
233
252
|
height: 6px;
|
|
234
|
-
bottom: calc(50% - 2px);
|
|
235
253
|
left: calc(50% - 8px);
|
|
254
|
+
bottom: calc(50% - 2px);
|
|
236
255
|
}
|
|
237
256
|
|
|
238
257
|
.bp5-unstyled-popover > .bp5-popover-content {
|
|
239
|
-
background: none !important;
|
|
240
258
|
padding: 0 !important;
|
|
259
|
+
background: none !important;
|
|
241
260
|
}
|
|
242
261
|
|
|
243
262
|
.sb-edit-interaction-rect-actions {
|
|
244
|
-
position-try-fallbacks: flip-block, --actions-below-header;
|
|
245
263
|
position: absolute;
|
|
264
|
+
/* This will flip the name pill when anchored */
|
|
265
|
+
position-try-fallbacks: flip-block, --actions-below-header;
|
|
246
266
|
}
|
|
247
267
|
|
|
248
268
|
.sb-edit-selection-name-pill {
|
|
249
269
|
max-width: 140px;
|
|
250
270
|
}
|
|
251
271
|
|
|
252
|
-
.sb-edit-selection-name-pill,
|
|
253
|
-
|
|
272
|
+
.sb-edit-selection-name-pill,
|
|
273
|
+
.sb-edit-add-to-chat-button,
|
|
274
|
+
.sb-edit-edit-component-button {
|
|
275
|
+
cursor: pointer !important;
|
|
276
|
+
display: block;
|
|
277
|
+
font-size: 11px;
|
|
278
|
+
color: white;
|
|
279
|
+
padding: 2px 4px;
|
|
254
280
|
white-space: nowrap;
|
|
255
281
|
background-color: var(--primary-rect-color);
|
|
282
|
+
border-radius: 3px;
|
|
283
|
+
overflow: hidden;
|
|
256
284
|
text-overflow: ellipsis;
|
|
257
285
|
z-index: var(--sb-edit-z-index-mid);
|
|
258
286
|
border: none;
|
|
259
|
-
border-radius: 3px;
|
|
260
287
|
outline: none;
|
|
261
|
-
padding: 2px 4px;
|
|
262
|
-
font-size: 11px;
|
|
263
|
-
display: block;
|
|
264
|
-
overflow: hidden;
|
|
265
|
-
cursor: pointer !important;
|
|
266
288
|
|
|
267
|
-
|
|
289
|
+
* {
|
|
268
290
|
cursor: pointer !important;
|
|
269
291
|
}
|
|
270
292
|
|
|
@@ -272,30 +294,36 @@
|
|
|
272
294
|
box-shadow: 0px 3px 8px -1px var(--primary-rect-color);
|
|
273
295
|
}
|
|
274
296
|
|
|
275
|
-
&:active,
|
|
297
|
+
&:active,
|
|
298
|
+
&:focus {
|
|
276
299
|
background-color: var(--primary-rect-color);
|
|
277
|
-
opacity: .8;
|
|
300
|
+
opacity: 0.8;
|
|
278
301
|
}
|
|
279
302
|
}
|
|
280
303
|
|
|
281
|
-
.sb-edit-actions-target-mode
|
|
282
|
-
|
|
304
|
+
.sb-edit-actions-target-mode
|
|
305
|
+
.sb-edit-selection-name-pill:not([data-pill-type="SELECTED"]),
|
|
306
|
+
.sb-edit-actions-target-mode .sb-edit-add-to-chat-button,
|
|
307
|
+
.sb-edit-actions-target-mode .sb-edit-edit-component-button {
|
|
308
|
+
background-color: rgba(100, 58, 223, 1);
|
|
283
309
|
|
|
284
310
|
&:hover {
|
|
285
|
-
box-shadow:
|
|
311
|
+
box-shadow: 0px 3px 8px -1px rgba(100, 58, 223, 1);
|
|
286
312
|
}
|
|
287
313
|
|
|
288
|
-
&:active,
|
|
289
|
-
|
|
314
|
+
&:active,
|
|
315
|
+
&:focus {
|
|
316
|
+
background-color: rgb(77, 50, 160);
|
|
290
317
|
}
|
|
291
318
|
}
|
|
292
319
|
|
|
293
|
-
.sb-edit-add-to-chat-button,
|
|
294
|
-
|
|
295
|
-
align-items: center;
|
|
320
|
+
.sb-edit-add-to-chat-button,
|
|
321
|
+
.sb-edit-edit-component-button {
|
|
296
322
|
display: flex;
|
|
323
|
+
align-items: center;
|
|
324
|
+
justify-content: center;
|
|
297
325
|
|
|
298
|
-
|
|
326
|
+
svg {
|
|
299
327
|
width: 16px;
|
|
300
328
|
height: 16px;
|
|
301
329
|
}
|
|
@@ -307,31 +335,30 @@
|
|
|
307
335
|
}
|
|
308
336
|
|
|
309
337
|
.sb-reparent-rect {
|
|
338
|
+
position: absolute;
|
|
310
339
|
border: 1px solid var(--primary-rect-color);
|
|
311
340
|
pointer-events: none;
|
|
312
341
|
z-index: var(--sb-edit-z-index-base);
|
|
313
|
-
animation:
|
|
314
|
-
position: absolute;
|
|
342
|
+
animation: radial-gradient-animation 2s infinite;
|
|
315
343
|
}
|
|
316
344
|
|
|
317
345
|
@keyframes radial-gradient-animation {
|
|
318
346
|
0% {
|
|
319
|
-
box-shadow: inset 0 0
|
|
347
|
+
box-shadow: inset 0 0 0 0 rgba(0, 135, 224, 0.5);
|
|
320
348
|
}
|
|
321
|
-
|
|
322
349
|
100% {
|
|
323
|
-
box-shadow: inset 0 0 20px 20px
|
|
350
|
+
box-shadow: inset 0 0 20px 20px rgba(0, 135, 224, 0.1);
|
|
324
351
|
}
|
|
325
352
|
}
|
|
326
353
|
|
|
327
354
|
.sb-edit-drop-placeholder {
|
|
355
|
+
position: absolute;
|
|
328
356
|
pointer-events: none;
|
|
329
357
|
z-index: var(--sb-edit-z-index-base);
|
|
330
|
-
position: absolute;
|
|
331
358
|
|
|
332
359
|
&[data-is-active="true"] {
|
|
333
360
|
border: 1px solid var(--primary-rect-color);
|
|
334
|
-
box-shadow: inset 0 0 0 3px
|
|
361
|
+
box-shadow: inset 0 0 0 3px rgba(0, 135, 224, 0.16);
|
|
335
362
|
}
|
|
336
363
|
|
|
337
364
|
&[data-is-valid-drop="false"] {
|
|
@@ -340,12 +367,12 @@
|
|
|
340
367
|
}
|
|
341
368
|
|
|
342
369
|
.sb-edit-drop-target-outline {
|
|
370
|
+
position: absolute;
|
|
343
371
|
pointer-events: none;
|
|
344
372
|
z-index: var(--sb-edit-z-index-base);
|
|
345
373
|
border: 1px dashed var(--primary-rect-color);
|
|
346
374
|
width: 100%;
|
|
347
375
|
height: 100%;
|
|
348
|
-
position: absolute;
|
|
349
376
|
top: 0;
|
|
350
377
|
left: 0;
|
|
351
378
|
|
|
@@ -353,3 +380,6 @@
|
|
|
353
380
|
border-color: #f45252;
|
|
354
381
|
}
|
|
355
382
|
}
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
/*# sourceMappingURL=index.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.css","names":[],"sources":["../../src/edit-mode/edit-style.css"],"sourcesContent":[":root {\n /* Edit mode z-index values */\n --sb-edit-z-index-high: 1010;\n --sb-edit-z-index-mid: 1002;\n --sb-edit-z-index-base: 1001;\n --primary-rect-color: #0087e0;\n}\n\n/* A class that sets the child anchor-name to a variable that is set in react */\n/* First level is the suspense provider, second level is the component */\n.sb-anchor-name {\n anchor-name: var(--anchor-name);\n}\n\n.sb-draggable-wrapper {\n &[data-is-dragged=\"true\"] {\n visibility: hidden;\n }\n}\n\n/**\n* Used to drag *new* components into the canvas.\n* It's a full height/width layer above the editor canvas.\n* Triggers the draggable preview box for the new component to be dropped.\n**/\n.sb-new-component-dragging-layer {\n position: fixed;\n width: 100vw;\n height: 100vh;\n z-index: var(--sb-edit-z-index-high);\n}\n\n.sb-interaction-layer-wrapper {\n z-index: var(--sb-edit-z-index-high);\n height: 0;\n width: 0;\n top: 0;\n left: 0;\n}\n\n.sb-edit-drag-preview {\n background: rgba(224, 0, 0, 0.16);\n border: 1px solid red;\n box-shadow: inset 0 0 0 3px rgba(224, 0, 0, 0.16);\n width: 100%;\n height: 100%;\n pointer-events: none;\n\n &[data-is-valid-drop=\"true\"] {\n border: 1px solid var(--primary-rect-color);\n background: rgba(0, 135, 224, 0.16);\n box-shadow: inset 0 0 0 3px rgba(0, 135, 224, 0.16);\n }\n}\n\n.sb-edit-selection-rect {\n position: absolute;\n border: 2px solid var(--primary-rect-color);\n pointer-events: none;\n z-index: var(--sb-edit-z-index-base);\n\n &.sb-edit-focus {\n border: 1px solid var(--primary-rect-color);\n }\n\n &.sb-edit-target {\n border: 2px solid #c2b9dd;\n }\n\n &.sb-edit-target-mode.sb-edit-focus {\n border: 1px solid #c2b9dd;\n background: rgba(124, 79, 248, 0.04);\n }\n}\n\n/* ai target mode */\n\n.sb-target-mode-border {\n position: absolute;\n top: anchor(top);\n left: anchor(left);\n right: anchor(right);\n bottom: anchor(bottom);\n pointer-events: none;\n}\n\n.sb-target-mode-border-top-right,\n.sb-target-mode-border-top-left,\n.sb-target-mode-border-bottom-right,\n.sb-target-mode-border-bottom-left {\n width: 12px;\n height: 12px;\n position: absolute;\n box-sizing: border-box;\n}\n\n.sb-target-mode-border-top-right {\n top: 0;\n left: 0;\n border-top: 2px solid rgba(124, 79, 248, 1);\n border-left: 2px solid rgba(124, 79, 248, 1);\n}\n\n.sb-target-mode-border-top-left {\n top: 0;\n right: 0;\n border-top: 2px solid rgba(124, 79, 248, 1);\n border-right: 2px solid rgba(124, 79, 248, 1);\n}\n\n.sb-target-mode-border-bottom-right {\n bottom: 0;\n right: 0;\n border-bottom: 2px solid rgba(124, 79, 248, 1);\n border-right: 2px solid rgba(124, 79, 248, 1);\n}\n\n.sb-target-mode-border-bottom-left {\n bottom: 0;\n left: 0;\n border-bottom: 2px solid rgba(124, 79, 248, 1);\n border-left: 2px solid rgba(124, 79, 248, 1);\n}\n\n/*\n Handles for resizing the selection rect.\n These are the little circles that appear when you select a widget\n Used in interaction-rect-handles.tsx\n*/\n\n.resize-handle {\n position: absolute;\n width: 12px;\n height: 12px;\n background-color: white;\n border: 1px solid var(--primary-rect-color);\n border-radius: 50%;\n z-index: var(--sb-edit-z-index-high);\n pointer-events: auto;\n\n .bp5-popover-target {\n width: 100%;\n height: 100%;\n }\n\n &.top-left-resize-handle {\n top: -6px;\n left: -6px;\n cursor: nw-resize;\n }\n\n &.top-right-resize-handle {\n top: -6px;\n right: -6px;\n cursor: ne-resize;\n }\n\n &.bottom-right-resize-handle {\n bottom: -6px;\n right: -6px;\n cursor: se-resize;\n }\n\n &.bottom-left-resize-handle {\n bottom: -6px;\n left: -6px;\n cursor: sw-resize;\n }\n\n &.top-resize-handle {\n top: -6px;\n left: 0;\n right: 0;\n height: 12px;\n width: auto;\n cursor: ns-resize;\n background-color: transparent;\n border: none;\n pointer-events: auto;\n }\n\n &.right-resize-handle {\n top: 0;\n right: -6px;\n bottom: 0;\n width: 12px;\n height: auto;\n cursor: ew-resize;\n background-color: transparent;\n border: none;\n pointer-events: auto;\n }\n\n &.bottom-resize-handle {\n bottom: -6px;\n left: 0;\n right: 0;\n height: 12px;\n width: auto;\n cursor: ns-resize;\n background-color: transparent;\n border: none;\n pointer-events: auto;\n }\n\n &.left-resize-handle {\n top: 0;\n left: -6px;\n bottom: 0;\n width: 12px;\n height: auto;\n cursor: ew-resize;\n background-color: transparent;\n border: none;\n pointer-events: auto;\n }\n}\n\n.resize-handle-edge::after {\n position: absolute;\n content: \"\";\n border-radius: 3px;\n border: 1px solid var(--primary-rect-color);\n background: rgb(255, 255, 255);\n box-sizing: border-box;\n transition: height 0.2s ease-in-out;\n}\n\n.left-resize-handle-edge::after {\n width: 6px;\n height: 16px;\n top: calc(50% - 8px);\n left: calc(50% - 2px);\n}\n\n.right-resize-handle-edge::after {\n width: 6px;\n height: 16px;\n top: calc(50% - 8px);\n right: calc(50% - 2px);\n}\n\n.top-resize-handle-edge::after {\n width: 16px;\n height: 6px;\n left: calc(50% - 8px);\n top: calc(50% - 2px);\n}\n\n.bottom-resize-handle-edge::after {\n width: 16px;\n height: 6px;\n left: calc(50% - 8px);\n bottom: calc(50% - 2px);\n}\n\n.bp5-unstyled-popover > .bp5-popover-content {\n padding: 0 !important;\n background: none !important;\n}\n\n.sb-edit-interaction-rect-actions {\n position: absolute;\n /* This will flip the name pill when anchored */\n position-try-fallbacks: flip-block, --actions-below-header;\n}\n\n.sb-edit-selection-name-pill {\n max-width: 140px;\n}\n\n.sb-edit-selection-name-pill,\n.sb-edit-add-to-chat-button,\n.sb-edit-edit-component-button {\n cursor: pointer !important;\n display: block;\n font-size: 11px;\n color: white;\n padding: 2px 4px;\n white-space: nowrap;\n background-color: var(--primary-rect-color);\n border-radius: 3px;\n overflow: hidden;\n text-overflow: ellipsis;\n z-index: var(--sb-edit-z-index-mid);\n border: none;\n outline: none;\n\n * {\n cursor: pointer !important;\n }\n\n &:hover {\n box-shadow: 0px 3px 8px -1px var(--primary-rect-color);\n }\n\n &:active,\n &:focus {\n background-color: var(--primary-rect-color);\n opacity: 0.8;\n }\n}\n\n.sb-edit-actions-target-mode\n .sb-edit-selection-name-pill:not([data-pill-type=\"SELECTED\"]),\n.sb-edit-actions-target-mode .sb-edit-add-to-chat-button,\n.sb-edit-actions-target-mode .sb-edit-edit-component-button {\n background-color: rgba(100, 58, 223, 1);\n\n &:hover {\n box-shadow: 0px 3px 8px -1px rgba(100, 58, 223, 1);\n }\n\n &:active,\n &:focus {\n background-color: rgb(77, 50, 160);\n }\n}\n\n.sb-edit-add-to-chat-button,\n.sb-edit-edit-component-button {\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 16px;\n height: 16px;\n }\n}\n\n@position-try --actions-below-header {\n margin-bottom: -24px;\n margin-right: 3px;\n}\n\n.sb-reparent-rect {\n position: absolute;\n border: 1px solid var(--primary-rect-color);\n pointer-events: none;\n z-index: var(--sb-edit-z-index-base);\n animation: radial-gradient-animation 2s infinite;\n}\n\n@keyframes radial-gradient-animation {\n 0% {\n box-shadow: inset 0 0 0 0 rgba(0, 135, 224, 0.5);\n }\n 100% {\n box-shadow: inset 0 0 20px 20px rgba(0, 135, 224, 0.1);\n }\n}\n\n.sb-edit-drop-placeholder {\n position: absolute;\n pointer-events: none;\n z-index: var(--sb-edit-z-index-base);\n\n &[data-is-active=\"true\"] {\n border: 1px solid var(--primary-rect-color);\n box-shadow: inset 0 0 0 3px rgba(0, 135, 224, 0.16);\n }\n\n &[data-is-valid-drop=\"false\"] {\n border-color: #f45252;\n }\n}\n\n.sb-edit-drop-target-outline {\n position: absolute;\n pointer-events: none;\n z-index: var(--sb-edit-z-index-base);\n border: 1px dashed var(--primary-rect-color);\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n\n &[data-invalid-target=\"true\"] {\n border-color: #f45252;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as React$2 from "react";
|
|
|
5
5
|
import React$1, { LegacyRef, ReactNode, createElement } from "react";
|
|
6
6
|
import { OrchestratorViewMode, PlaceholderInfo, Profile } from "@superblocksteam/shared";
|
|
7
7
|
import { AiContextMode, AppToEditorMessage, Catalog, CatalogWithInternalDetails, ComponentRegistryShareState, ConsoleLogEntry, CreateChild, CreateChild as CreateChild$1, CreateRequest, DeleteMeLibraryApi, DeleteRequest, EditOperationPayload, EditOperationType, EditOperations, EditorConfig as EditorConfig$1, Entity, EntityOutputProp, ExecutionTimingBreakdown, InitData, InteractionMode, PayloadAction, PropertyInfo, ReparentRequest, RuntimeErrorData, RuntimeSyncComposite, SbApiRunOptions, SbElement, SbSelector, SetPropertiesRequest, SetPropertyRequest, SourceLocation, TransactionInfo, UrlState, ViteMessage, ViteMessageKind, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
8
|
-
import * as
|
|
8
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
9
9
|
import { CompiledApi, IntegrationDeclaration } from "@superblocksteam/sdk-api";
|
|
10
10
|
import { Graph } from "@dagrejs/graphlib";
|
|
11
11
|
import { XYCoord } from "react-dnd";
|
|
@@ -94,7 +94,7 @@ declare const SbProvider: ({
|
|
|
94
94
|
children?: React$1.ReactNode;
|
|
95
95
|
className?: string;
|
|
96
96
|
context?: SuperblocksAppContext;
|
|
97
|
-
}) =>
|
|
97
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
98
98
|
//#endregion
|
|
99
99
|
//#region src/lib/internal-details/lib/evaluator/entity-types.d.ts
|
|
100
100
|
type SingleInputProp<T = EntityOutputProp, ARGS extends any[] = any[]> = T extends Callback ? Callback<ARGS> : T;
|
|
@@ -449,7 +449,8 @@ type ExecutionEventRequest = {
|
|
|
449
449
|
placeHoldersInfo?: Record<string, PlaceholderInfo>;
|
|
450
450
|
};
|
|
451
451
|
};
|
|
452
|
-
type Resolutions = Record<string,
|
|
452
|
+
type Resolutions = Record<string,
|
|
453
|
+
// name of the field: eg: "range", for the range field let's say the code is {{[1,2,3]}}
|
|
453
454
|
{
|
|
454
455
|
value: any;
|
|
455
456
|
bindings: any[];
|
|
@@ -515,9 +516,13 @@ interface SdkApiMetadata {
|
|
|
515
516
|
isStreaming: boolean;
|
|
516
517
|
/** Declared integrations for this API */
|
|
517
518
|
integrations: Array<{
|
|
518
|
-
/** Key used in the API code to reference this integration */
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
/** Key used in the API code to reference this integration */
|
|
520
|
+
key: string;
|
|
521
|
+
/** Plugin ID (e.g., "postgres", "slack") */
|
|
522
|
+
pluginId: string;
|
|
523
|
+
/** Integration name (e.g., "Production Postgres") */
|
|
524
|
+
name: string;
|
|
525
|
+
/** Integration ID (UUID) */
|
|
521
526
|
id: string;
|
|
522
527
|
}>;
|
|
523
528
|
/** Entry point file path relative to app root (e.g. "server/apis/GetUsers/api.ts") */
|
|
@@ -607,9 +612,12 @@ type FromParentToChildMessageTypesMap = {
|
|
|
607
612
|
agents: AgentInfo[];
|
|
608
613
|
logContext: Record<string, unknown>;
|
|
609
614
|
featureFlags?: Record<string, unknown>;
|
|
610
|
-
sessionRecordingKey?: string;
|
|
611
|
-
|
|
612
|
-
|
|
615
|
+
sessionRecordingKey?: string;
|
|
616
|
+
/** Selected integration profile for API execution */
|
|
617
|
+
profile?: SdkProfileInfo;
|
|
618
|
+
/** Current git branch name (editor mode only) */
|
|
619
|
+
branchName?: string;
|
|
620
|
+
/** Deployed/preview commit ID (non-editor modes) */
|
|
613
621
|
commitId?: string;
|
|
614
622
|
/**
|
|
615
623
|
* DP routing config mapping profile keys to DP URLs.
|
|
@@ -621,7 +629,9 @@ type FromParentToChildMessageTypesMap = {
|
|
|
621
629
|
};
|
|
622
630
|
"sb-editor-request-bootstrap": void;
|
|
623
631
|
"sb-update-active-agents": {
|
|
624
|
-
/** Pre-filtered URLs for current profile (cloud org fallback) */
|
|
632
|
+
/** Pre-filtered URLs for current profile (cloud org fallback) */
|
|
633
|
+
agentUrls: string[];
|
|
634
|
+
/** All active on-premise agents for local profile filtering */
|
|
625
635
|
agents: AgentInfo[];
|
|
626
636
|
/**
|
|
627
637
|
* DP routing config mapping profile keys to DP URLs.
|
|
@@ -1425,12 +1435,12 @@ type ManagedPropsList = Array<ManagedProp & {
|
|
|
1425
1435
|
* Merges shared and variant properties for union types without creating intersections
|
|
1426
1436
|
* Variant properties override shared properties with the same key
|
|
1427
1437
|
*/
|
|
1428
|
-
type MergeUnionVariant<SHARED extends Record<string, Prop<any, any>>, VARIANT extends Record<string, Prop<any, any>>> = Omit<SHARED, keyof VARIANT> & VARIANT;
|
|
1438
|
+
type MergeUnionVariant<SHARED$1 extends Record<string, Prop<any, any>>, VARIANT extends Record<string, Prop<any, any>>> = Omit<SHARED$1, keyof VARIANT> & VARIANT;
|
|
1429
1439
|
/**
|
|
1430
1440
|
* Converts a union type to an intersection type
|
|
1431
1441
|
* Used to merge multiple section props into a single props type
|
|
1432
1442
|
*/
|
|
1433
|
-
type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends ((x: infer I extends U) => void) ? I : never;
|
|
1443
|
+
type UnionToIntersection<U$1> = (U$1 extends any ? (x: U$1) => void : never) extends ((x: infer I extends U$1) => void) ? I : never;
|
|
1434
1444
|
/**
|
|
1435
1445
|
* Controls how default values affect property optionality
|
|
1436
1446
|
* - RequiredIfDefault: Properties with default values become required
|
|
@@ -1457,6 +1467,7 @@ type ExtractProps<T, DefaultsBehavior extends DefaultValueBehavior, IsEvaluated
|
|
|
1457
1467
|
/**
|
|
1458
1468
|
* Handles non Prop types, aka our default types and CSS props
|
|
1459
1469
|
*/
|
|
1470
|
+
|
|
1460
1471
|
type SectionPropertiesPanelConfig = {
|
|
1461
1472
|
showHeader?: boolean;
|
|
1462
1473
|
isDefaultOpen?: boolean;
|
|
@@ -1482,6 +1493,7 @@ type InternalProps<Definition extends PropertiesDefinition, FlattenedProps = Ent
|
|
|
1482
1493
|
* - All properties are optional regardless of defaults
|
|
1483
1494
|
* - Properties accept InputProp values (bindings/functions)
|
|
1484
1495
|
*/
|
|
1496
|
+
|
|
1485
1497
|
type PropertiesDefinition = Record<string, Section>;
|
|
1486
1498
|
type SectionDefinition<T extends Record<string, Prop<any, any>>> = {
|
|
1487
1499
|
props: T;
|
|
@@ -1491,7 +1503,8 @@ type SectionDefinition<T extends Record<string, Prop<any, any>>> = {
|
|
|
1491
1503
|
subHeader?: string;
|
|
1492
1504
|
};
|
|
1493
1505
|
type SectionPropRecord<Props = Record<string, any>> = Partial<{ [K in keyof Props]: Prop<Props[K], any> }>;
|
|
1494
|
-
declare class Section<TProps = any,
|
|
1506
|
+
declare class Section<TProps = any,
|
|
1507
|
+
// Component props type for validation
|
|
1495
1508
|
T extends SectionPropRecord<TProps> = SectionPropRecord<TProps>> {
|
|
1496
1509
|
readonly category: PropsCategory;
|
|
1497
1510
|
props: T;
|
|
@@ -1563,15 +1576,15 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false, _
|
|
|
1563
1576
|
* ```
|
|
1564
1577
|
*/
|
|
1565
1578
|
static record<T extends CompositeInputs>(props: T): RecordProp<T>;
|
|
1566
|
-
static union<SHARED extends Record<string, Prop<unknown, boolean>>, VARIANTS extends UnionVariant<SHARED>[] = UnionVariant<SHARED>[]>(props: {
|
|
1567
|
-
shared: SHARED;
|
|
1568
|
-
variants: VARIANTS;
|
|
1569
|
-
}): UnionProp<SHARED, VARIANTS, VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: SHARED & VARIANTS[I] }[number] : never>;
|
|
1579
|
+
static union<SHARED$1 extends Record<string, Prop<unknown, boolean>>, VARIANTS$1 extends UnionVariant<SHARED$1>[] = UnionVariant<SHARED$1>[]>(props: {
|
|
1580
|
+
shared: SHARED$1;
|
|
1581
|
+
variants: VARIANTS$1;
|
|
1582
|
+
}): UnionProp<SHARED$1, VARIANTS$1, VARIANTS$1 extends readonly any[] ? { [I in keyof VARIANTS$1]: SHARED$1 & VARIANTS$1[I] }[number] : never>;
|
|
1570
1583
|
default(de: SingleInputProp<DataType>): Prop<Type, true>;
|
|
1571
1584
|
contextual<TContext extends any[] | undefined = any[]>(computedArgs?: EvaluateOrValueComputedArgs): Prop<Type, _HasDefault, TContext>;
|
|
1572
1585
|
setName(name: string): this;
|
|
1573
1586
|
propertiesPanel<CT extends ControlType>(schema: Omit<Partial<PropertiesPanelDisplay<Type, CT>>, "isTriggerProperty">): this;
|
|
1574
|
-
setDisplayProperty<K extends keyof PropertiesPanelDisplay<Type>>(property: K, value: PropertiesPanelDisplay<Type>[K]): this;
|
|
1587
|
+
setDisplayProperty<K$1 extends keyof PropertiesPanelDisplay<Type>>(property: K$1, value: PropertiesPanelDisplay<Type>[K$1]): this;
|
|
1575
1588
|
docs(docs: Exclude<PropertyForData<DataType>["docs"], undefined>): this;
|
|
1576
1589
|
build(): ManagedProp<Type>;
|
|
1577
1590
|
toDefinition(props: Record<string, unknown>): WidgetPropertyDefinition<DataType> | undefined;
|
|
@@ -1629,13 +1642,13 @@ declare class FunctionProp<ARGS extends any[] = any[], RETURN = any> extends Pro
|
|
|
1629
1642
|
actionPanel(panel?: ActionPanel): this;
|
|
1630
1643
|
getActionPanel(): ActionPanel | undefined;
|
|
1631
1644
|
}
|
|
1632
|
-
type UnionVariant<SHARED extends Record<string, Prop<any>>> = { [K in keyof SHARED]: Prop<any> };
|
|
1633
|
-
declare class UnionProp<SHARED extends Record<string, Prop<unknown, boolean>>, VARIANTS extends UnionVariant<SHARED>[] = UnionVariant<SHARED>[], _OUTPUT = (VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: SHARED & VARIANTS[I] }[number] : never)> extends Prop<any> {
|
|
1645
|
+
type UnionVariant<SHARED$1 extends Record<string, Prop<any>>> = { [K in keyof SHARED$1]: Prop<any> };
|
|
1646
|
+
declare class UnionProp<SHARED$1 extends Record<string, Prop<unknown, boolean>>, VARIANTS$1 extends UnionVariant<SHARED$1>[] = UnionVariant<SHARED$1>[], _OUTPUT = (VARIANTS$1 extends readonly any[] ? { [I in keyof VARIANTS$1]: SHARED$1 & VARIANTS$1[I] }[number] : never)> extends Prop<any> {
|
|
1634
1647
|
typeString: "union";
|
|
1635
|
-
shared: SHARED;
|
|
1636
|
-
variants: VARIANTS;
|
|
1637
|
-
constructor(shared: SHARED, variants: VARIANTS);
|
|
1638
|
-
getProps(): SHARED & Record<string, Prop<any, false, undefined>>;
|
|
1648
|
+
shared: SHARED$1;
|
|
1649
|
+
variants: VARIANTS$1;
|
|
1650
|
+
constructor(shared: SHARED$1, variants: VARIANTS$1);
|
|
1651
|
+
getProps(): SHARED$1 & Record<string, Prop<any, false, undefined>>;
|
|
1639
1652
|
}
|
|
1640
1653
|
//#endregion
|
|
1641
1654
|
//#region src/lib/user-facing/components/app/props.d.ts
|
|
@@ -1659,7 +1672,7 @@ declare const App: (({
|
|
|
1659
1672
|
context
|
|
1660
1673
|
}: InternalProps<typeof propertiesDefinition> & {
|
|
1661
1674
|
context?: SuperblocksAppContext;
|
|
1662
|
-
}) =>
|
|
1675
|
+
}) => react_jsx_runtime0.JSX.Element) & {
|
|
1663
1676
|
displayName: string;
|
|
1664
1677
|
};
|
|
1665
1678
|
//#endregion
|
|
@@ -1717,10 +1730,10 @@ declare const PageNotFound: ({
|
|
|
1717
1730
|
buttonText?: string;
|
|
1718
1731
|
onButtonClick?: () => void;
|
|
1719
1732
|
hideActions?: boolean;
|
|
1720
|
-
}) =>
|
|
1733
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
1721
1734
|
//#endregion
|
|
1722
1735
|
//#region src/lib/internal-details/internal-components/route-load-error.d.ts
|
|
1723
|
-
declare function RouteLoadError():
|
|
1736
|
+
declare function RouteLoadError(): react_jsx_runtime0.JSX.Element;
|
|
1724
1737
|
//#endregion
|
|
1725
1738
|
//#region src/lib/internal-details/use-api.d.ts
|
|
1726
1739
|
declare global {
|
|
@@ -1746,6 +1759,7 @@ type ApiInterfaces<Name extends string> = Name extends keyof SuperblocksAPIRegis
|
|
|
1746
1759
|
* When SDK APIs are enabled, paths point to `/server/apis/<name>/api.ts`.
|
|
1747
1760
|
* When using legacy YAML mode, paths point to `/apis/<name>/api.yaml`.
|
|
1748
1761
|
*/
|
|
1762
|
+
|
|
1749
1763
|
/** Helper type to extract input type from a CompiledApi */
|
|
1750
1764
|
type ApiInput<T> = T extends CompiledApi<infer TInput, any> ? TInput : never;
|
|
1751
1765
|
/** Helper type to extract output type from a CompiledApi */
|