@superblocksteam/library 2.0.119 → 2.0.120-next.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/dist/{build-manifest-BOqMhObV.js → build-manifest-Xi8oZhWX.js} +2 -2
- package/dist/{build-manifest-BOqMhObV.js.map → build-manifest-Xi8oZhWX.js.map} +1 -1
- package/dist/{devtools-consolidated-CwxpaGqQ.js → devtools-consolidated--QF_TVsD.js} +3 -5
- package/dist/{devtools-consolidated-CwxpaGqQ.js.map → devtools-consolidated--QF_TVsD.js.map} +1 -1
- package/dist/{early-console-buffer-D4wVuyBf.js → early-console-buffer-BJWsc4E3.js} +3 -6
- package/dist/{early-console-buffer-D4wVuyBf.js.map → early-console-buffer-BJWsc4E3.js.map} +1 -1
- package/dist/jsx-dev-runtime/index.d.ts.map +1 -1
- package/dist/jsx-dev-runtime/index.js +3 -5
- 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 +1 -2
- package/dist/jsx-runtime/index.js.map +1 -1
- package/dist/{jsx-wrapper-BLrvyiEf.js → jsx-wrapper-BaTggkUU.js} +90 -169
- package/dist/jsx-wrapper-BaTggkUU.js.map +1 -0
- package/dist/lib/index.d.ts +27 -41
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +199 -334
- package/dist/lib/index.js.map +1 -1
- package/dist/{logs-hyzhDMp7.js → logs-HOxOH_w6.js} +4 -5
- package/dist/{logs-hyzhDMp7.js.map → logs-HOxOH_w6.js.map} +1 -1
- package/dist/{lib/index.css → style.css} +96 -126
- package/dist/{utils-BGEEeYie.js → utils-BfE8-Afc.js} +19 -4
- package/dist/{utils-BGEEeYie.js.map → utils-BfE8-Afc.js.map} +1 -1
- package/package.json +8 -7
- package/dist/jsx-wrapper-BLrvyiEf.js.map +0 -1
- package/dist/lib/index.css.map +0 -1
- package/dist/utils-Co8Wr1hk.js +0 -3
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as LibraryEarlyConsoleBuffer } from "./early-console-buffer-BJWsc4E3.js";
|
|
2
2
|
import { resourceFromAttributes } from "@opentelemetry/resources";
|
|
3
3
|
import { ATTR_SERVICE_NAME } from "@opentelemetry/semantic-conventions";
|
|
4
4
|
import { OTLPLogExporter } from "@opentelemetry/exporter-logs-otlp-http";
|
|
5
5
|
import { BatchLogRecordProcessor, LoggerProvider } from "@opentelemetry/sdk-logs";
|
|
6
|
-
|
|
7
6
|
//#region src/lib/tracing/logs.ts
|
|
8
7
|
function initLibraryLoggerProvider(context) {
|
|
9
8
|
const logExporter = new OTLPLogExporter({
|
|
@@ -22,9 +21,9 @@ function initLibraryLoggerProvider(context) {
|
|
|
22
21
|
}),
|
|
23
22
|
processors: [new BatchLogRecordProcessor(logExporter)]
|
|
24
23
|
}).getLogger("superblocks-ui-framework", "1.0.0");
|
|
25
|
-
|
|
24
|
+
LibraryEarlyConsoleBuffer.getInstance().enableOpenTelemetry(otelLogger);
|
|
26
25
|
}
|
|
27
|
-
|
|
28
26
|
//#endregion
|
|
29
27
|
export { initLibraryLoggerProvider };
|
|
30
|
-
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=logs-HOxOH_w6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs-
|
|
1
|
+
{"version":3,"file":"logs-HOxOH_w6.js","names":[],"sources":["../src/lib/tracing/logs.ts"],"sourcesContent":["import { OTLPLogExporter } from \"@opentelemetry/exporter-logs-otlp-http\";\nimport { resourceFromAttributes } from \"@opentelemetry/resources\";\nimport {\n BatchLogRecordProcessor,\n LoggerProvider,\n} from \"@opentelemetry/sdk-logs\";\nimport { ATTR_SERVICE_NAME } from \"@opentelemetry/semantic-conventions\";\n\nimport LibraryEarlyConsoleBuffer from \"./early-console-buffer.js\";\n\ninterface LoggingContext {\n windowOriginUrl: string;\n environment: string;\n appId: string;\n userId?: string;\n userEmail?: string;\n orgId: string;\n orgName?: string;\n}\n\nexport function initLibraryLoggerProvider(context: LoggingContext) {\n const logExporter = new OTLPLogExporter({\n url: context.windowOriginUrl + \"/api/v1/logs\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n\n const resource = resourceFromAttributes({\n [ATTR_SERVICE_NAME]: \"superblocks-ui-framework\",\n \"user-id\": context.userId,\n \"user-email\": context.userEmail,\n \"organization-id\": context.orgId,\n \"organization-name\": context.orgName,\n \"application-id\": context.appId,\n \"deployment.environment\": context.environment,\n });\n\n const loggerProvider = new LoggerProvider({\n resource,\n processors: [new BatchLogRecordProcessor(logExporter)],\n });\n\n const otelLogger = loggerProvider.getLogger(\n \"superblocks-ui-framework\",\n \"1.0.0\",\n );\n\n // Enable buffered console logs with rich context\n LibraryEarlyConsoleBuffer.getInstance().enableOpenTelemetry(otelLogger);\n}\n"],"mappings":";;;;;;AAoBA,SAAgB,0BAA0B,SAAyB;CACjE,MAAM,cAAc,IAAI,gBAAgB;EACtC,KAAK,QAAQ,kBAAkB;EAC/B,SAAS,EACP,gBAAgB,oBACjB;EACF,CAAC;CAiBF,MAAM,aAAa,IALQ,eAAe;EACxC,UAXe,uBAAuB;IACrC,oBAAoB;GACrB,WAAW,QAAQ;GACnB,cAAc,QAAQ;GACtB,mBAAmB,QAAQ;GAC3B,qBAAqB,QAAQ;GAC7B,kBAAkB,QAAQ;GAC1B,0BAA0B,QAAQ;GACnC,CAGS;EACR,YAAY,CAAC,IAAI,wBAAwB,YAAY,CAAC;EACvD,CAEgC,CAAC,UAChC,4BACA,QACD;AAGD,2BAA0B,aAAa,CAAC,oBAAoB,WAAW"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
/* Edit mode z-index values */
|
|
3
2
|
--sb-edit-z-index-high: 1010;
|
|
4
3
|
--sb-edit-z-index-mid: 1002;
|
|
5
4
|
--sb-edit-z-index-base: 1001;
|
|
6
5
|
--primary-rect-color: #0087e0;
|
|
7
6
|
}
|
|
8
7
|
|
|
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 */
|
|
11
8
|
.sb-anchor-name {
|
|
12
9
|
anchor-name: var(--anchor-name);
|
|
13
10
|
}
|
|
@@ -18,46 +15,41 @@
|
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
17
|
|
|
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
|
-
**/
|
|
26
18
|
.sb-new-component-dragging-layer {
|
|
27
|
-
position: fixed;
|
|
28
19
|
width: 100vw;
|
|
29
20
|
height: 100vh;
|
|
30
21
|
z-index: var(--sb-edit-z-index-high);
|
|
22
|
+
position: fixed;
|
|
31
23
|
}
|
|
32
24
|
|
|
33
25
|
.sb-interaction-layer-wrapper {
|
|
34
26
|
z-index: var(--sb-edit-z-index-high);
|
|
35
|
-
height: 0;
|
|
36
27
|
width: 0;
|
|
28
|
+
height: 0;
|
|
37
29
|
top: 0;
|
|
38
30
|
left: 0;
|
|
39
31
|
}
|
|
40
32
|
|
|
41
33
|
.sb-edit-drag-preview {
|
|
42
|
-
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
background: #e0000029;
|
|
43
36
|
border: 1px solid red;
|
|
44
|
-
box-shadow: inset 0 0 0 3px rgba(224, 0, 0, 0.16);
|
|
45
37
|
width: 100%;
|
|
46
38
|
height: 100%;
|
|
47
|
-
|
|
39
|
+
box-shadow: inset 0 0 0 3px #e0000029;
|
|
48
40
|
|
|
49
41
|
&[data-is-valid-drop="true"] {
|
|
50
42
|
border: 1px solid var(--primary-rect-color);
|
|
51
|
-
background:
|
|
52
|
-
box-shadow: inset 0 0 0 3px
|
|
43
|
+
background: #0087e029;
|
|
44
|
+
box-shadow: inset 0 0 0 3px #0087e029;
|
|
53
45
|
}
|
|
54
46
|
}
|
|
55
47
|
|
|
56
48
|
.sb-edit-selection-rect {
|
|
57
|
-
position: absolute;
|
|
58
49
|
border: 2px solid var(--primary-rect-color);
|
|
59
50
|
pointer-events: none;
|
|
60
51
|
z-index: var(--sb-edit-z-index-base);
|
|
52
|
+
position: absolute;
|
|
61
53
|
|
|
62
54
|
&.sb-edit-focus {
|
|
63
55
|
border: 1px solid var(--primary-rect-color);
|
|
@@ -68,225 +60,211 @@
|
|
|
68
60
|
}
|
|
69
61
|
|
|
70
62
|
&.sb-edit-target-mode.sb-edit-focus {
|
|
63
|
+
background: #7c4ff80a;
|
|
71
64
|
border: 1px solid #c2b9dd;
|
|
72
|
-
background: rgba(124, 79, 248, 0.04);
|
|
73
65
|
}
|
|
74
66
|
}
|
|
75
67
|
|
|
76
|
-
/* ai target mode */
|
|
77
|
-
|
|
78
68
|
.sb-target-mode-border {
|
|
79
|
-
position: absolute;
|
|
80
69
|
top: anchor(top);
|
|
81
70
|
left: anchor(left);
|
|
82
71
|
right: anchor(right);
|
|
83
72
|
bottom: anchor(bottom);
|
|
84
73
|
pointer-events: none;
|
|
74
|
+
position: absolute;
|
|
85
75
|
}
|
|
86
76
|
|
|
87
|
-
.sb-target-mode-border-top-right,
|
|
88
|
-
|
|
89
|
-
.sb-target-mode-border-bottom-right,
|
|
90
|
-
.sb-target-mode-border-bottom-left {
|
|
77
|
+
.sb-target-mode-border-top-right, .sb-target-mode-border-top-left, .sb-target-mode-border-bottom-right, .sb-target-mode-border-bottom-left {
|
|
78
|
+
box-sizing: border-box;
|
|
91
79
|
width: 12px;
|
|
92
80
|
height: 12px;
|
|
93
81
|
position: absolute;
|
|
94
|
-
box-sizing: border-box;
|
|
95
82
|
}
|
|
96
83
|
|
|
97
84
|
.sb-target-mode-border-top-right {
|
|
85
|
+
border-top: 2px solid #7c4ff8;
|
|
86
|
+
border-left: 2px solid #7c4ff8;
|
|
98
87
|
top: 0;
|
|
99
88
|
left: 0;
|
|
100
|
-
border-top: 2px solid rgba(124, 79, 248, 1);
|
|
101
|
-
border-left: 2px solid rgba(124, 79, 248, 1);
|
|
102
89
|
}
|
|
103
90
|
|
|
104
91
|
.sb-target-mode-border-top-left {
|
|
92
|
+
border-top: 2px solid #7c4ff8;
|
|
93
|
+
border-right: 2px solid #7c4ff8;
|
|
105
94
|
top: 0;
|
|
106
95
|
right: 0;
|
|
107
|
-
border-top: 2px solid rgba(124, 79, 248, 1);
|
|
108
|
-
border-right: 2px solid rgba(124, 79, 248, 1);
|
|
109
96
|
}
|
|
110
97
|
|
|
111
98
|
.sb-target-mode-border-bottom-right {
|
|
99
|
+
border-bottom: 2px solid #7c4ff8;
|
|
100
|
+
border-right: 2px solid #7c4ff8;
|
|
112
101
|
bottom: 0;
|
|
113
102
|
right: 0;
|
|
114
|
-
border-bottom: 2px solid rgba(124, 79, 248, 1);
|
|
115
|
-
border-right: 2px solid rgba(124, 79, 248, 1);
|
|
116
103
|
}
|
|
117
104
|
|
|
118
105
|
.sb-target-mode-border-bottom-left {
|
|
106
|
+
border-bottom: 2px solid #7c4ff8;
|
|
107
|
+
border-left: 2px solid #7c4ff8;
|
|
119
108
|
bottom: 0;
|
|
120
109
|
left: 0;
|
|
121
|
-
border-bottom: 2px solid rgba(124, 79, 248, 1);
|
|
122
|
-
border-left: 2px solid rgba(124, 79, 248, 1);
|
|
123
110
|
}
|
|
124
111
|
|
|
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
|
-
|
|
131
112
|
.resize-handle {
|
|
132
|
-
|
|
113
|
+
border: 1px solid var(--primary-rect-color);
|
|
133
114
|
width: 12px;
|
|
134
115
|
height: 12px;
|
|
135
|
-
background-color: white;
|
|
136
|
-
border: 1px solid var(--primary-rect-color);
|
|
137
|
-
border-radius: 50%;
|
|
138
116
|
z-index: var(--sb-edit-z-index-high);
|
|
139
117
|
pointer-events: auto;
|
|
118
|
+
background-color: #fff;
|
|
119
|
+
border-radius: 50%;
|
|
120
|
+
position: absolute;
|
|
140
121
|
|
|
141
|
-
.bp5-popover-target {
|
|
122
|
+
& .bp5-popover-target {
|
|
142
123
|
width: 100%;
|
|
143
124
|
height: 100%;
|
|
144
125
|
}
|
|
145
126
|
|
|
146
127
|
&.top-left-resize-handle {
|
|
128
|
+
cursor: nw-resize;
|
|
147
129
|
top: -6px;
|
|
148
130
|
left: -6px;
|
|
149
|
-
cursor: nw-resize;
|
|
150
131
|
}
|
|
151
132
|
|
|
152
133
|
&.top-right-resize-handle {
|
|
134
|
+
cursor: ne-resize;
|
|
153
135
|
top: -6px;
|
|
154
136
|
right: -6px;
|
|
155
|
-
cursor: ne-resize;
|
|
156
137
|
}
|
|
157
138
|
|
|
158
139
|
&.bottom-right-resize-handle {
|
|
140
|
+
cursor: se-resize;
|
|
159
141
|
bottom: -6px;
|
|
160
142
|
right: -6px;
|
|
161
|
-
cursor: se-resize;
|
|
162
143
|
}
|
|
163
144
|
|
|
164
145
|
&.bottom-left-resize-handle {
|
|
146
|
+
cursor: sw-resize;
|
|
165
147
|
bottom: -6px;
|
|
166
148
|
left: -6px;
|
|
167
|
-
cursor: sw-resize;
|
|
168
149
|
}
|
|
169
150
|
|
|
170
151
|
&.top-resize-handle {
|
|
152
|
+
cursor: ns-resize;
|
|
153
|
+
pointer-events: auto;
|
|
154
|
+
background-color: #0000;
|
|
155
|
+
border: none;
|
|
156
|
+
width: auto;
|
|
157
|
+
height: 12px;
|
|
171
158
|
top: -6px;
|
|
172
159
|
left: 0;
|
|
173
160
|
right: 0;
|
|
174
|
-
height: 12px;
|
|
175
|
-
width: auto;
|
|
176
|
-
cursor: ns-resize;
|
|
177
|
-
background-color: transparent;
|
|
178
|
-
border: none;
|
|
179
|
-
pointer-events: auto;
|
|
180
161
|
}
|
|
181
162
|
|
|
182
163
|
&.right-resize-handle {
|
|
183
|
-
top: 0;
|
|
184
|
-
right: -6px;
|
|
185
|
-
bottom: 0;
|
|
186
|
-
width: 12px;
|
|
187
|
-
height: auto;
|
|
188
164
|
cursor: ew-resize;
|
|
189
|
-
background-color: transparent;
|
|
190
|
-
border: none;
|
|
191
165
|
pointer-events: auto;
|
|
166
|
+
background-color: #0000;
|
|
167
|
+
border: none;
|
|
168
|
+
width: 12px;
|
|
169
|
+
height: auto;
|
|
170
|
+
top: 0;
|
|
171
|
+
bottom: 0;
|
|
172
|
+
right: -6px;
|
|
192
173
|
}
|
|
193
174
|
|
|
194
175
|
&.bottom-resize-handle {
|
|
176
|
+
cursor: ns-resize;
|
|
177
|
+
pointer-events: auto;
|
|
178
|
+
background-color: #0000;
|
|
179
|
+
border: none;
|
|
180
|
+
width: auto;
|
|
181
|
+
height: 12px;
|
|
195
182
|
bottom: -6px;
|
|
196
183
|
left: 0;
|
|
197
184
|
right: 0;
|
|
198
|
-
height: 12px;
|
|
199
|
-
width: auto;
|
|
200
|
-
cursor: ns-resize;
|
|
201
|
-
background-color: transparent;
|
|
202
|
-
border: none;
|
|
203
|
-
pointer-events: auto;
|
|
204
185
|
}
|
|
205
186
|
|
|
206
187
|
&.left-resize-handle {
|
|
207
|
-
top: 0;
|
|
208
|
-
left: -6px;
|
|
209
|
-
bottom: 0;
|
|
210
|
-
width: 12px;
|
|
211
|
-
height: auto;
|
|
212
188
|
cursor: ew-resize;
|
|
213
|
-
background-color: transparent;
|
|
214
|
-
border: none;
|
|
215
189
|
pointer-events: auto;
|
|
190
|
+
background-color: #0000;
|
|
191
|
+
border: none;
|
|
192
|
+
width: 12px;
|
|
193
|
+
height: auto;
|
|
194
|
+
top: 0;
|
|
195
|
+
bottom: 0;
|
|
196
|
+
left: -6px;
|
|
216
197
|
}
|
|
217
198
|
}
|
|
218
199
|
|
|
219
|
-
.resize-handle-edge
|
|
220
|
-
position: absolute;
|
|
200
|
+
.resize-handle-edge:after {
|
|
221
201
|
content: "";
|
|
222
|
-
border-radius: 3px;
|
|
223
202
|
border: 1px solid var(--primary-rect-color);
|
|
224
|
-
background: rgb(255, 255, 255);
|
|
225
203
|
box-sizing: border-box;
|
|
226
|
-
|
|
204
|
+
background: #fff;
|
|
205
|
+
border-radius: 3px;
|
|
206
|
+
transition: height .2s ease-in-out;
|
|
207
|
+
position: absolute;
|
|
227
208
|
}
|
|
228
209
|
|
|
229
|
-
.left-resize-handle-edge
|
|
210
|
+
.left-resize-handle-edge:after {
|
|
230
211
|
width: 6px;
|
|
231
212
|
height: 16px;
|
|
232
213
|
top: calc(50% - 8px);
|
|
233
214
|
left: calc(50% - 2px);
|
|
234
215
|
}
|
|
235
216
|
|
|
236
|
-
.right-resize-handle-edge
|
|
217
|
+
.right-resize-handle-edge:after {
|
|
237
218
|
width: 6px;
|
|
238
219
|
height: 16px;
|
|
239
220
|
top: calc(50% - 8px);
|
|
240
221
|
right: calc(50% - 2px);
|
|
241
222
|
}
|
|
242
223
|
|
|
243
|
-
.top-resize-handle-edge
|
|
224
|
+
.top-resize-handle-edge:after {
|
|
244
225
|
width: 16px;
|
|
245
226
|
height: 6px;
|
|
246
|
-
left: calc(50% - 8px);
|
|
247
227
|
top: calc(50% - 2px);
|
|
228
|
+
left: calc(50% - 8px);
|
|
248
229
|
}
|
|
249
230
|
|
|
250
|
-
.bottom-resize-handle-edge
|
|
231
|
+
.bottom-resize-handle-edge:after {
|
|
251
232
|
width: 16px;
|
|
252
233
|
height: 6px;
|
|
253
|
-
left: calc(50% - 8px);
|
|
254
234
|
bottom: calc(50% - 2px);
|
|
235
|
+
left: calc(50% - 8px);
|
|
255
236
|
}
|
|
256
237
|
|
|
257
238
|
.bp5-unstyled-popover > .bp5-popover-content {
|
|
258
|
-
padding: 0 !important;
|
|
259
239
|
background: none !important;
|
|
240
|
+
padding: 0 !important;
|
|
260
241
|
}
|
|
261
242
|
|
|
262
243
|
.sb-edit-interaction-rect-actions {
|
|
263
|
-
position: absolute;
|
|
264
|
-
/* This will flip the name pill when anchored */
|
|
265
244
|
position-try-fallbacks: flip-block, --actions-below-header;
|
|
245
|
+
position: absolute;
|
|
266
246
|
}
|
|
267
247
|
|
|
268
248
|
.sb-edit-selection-name-pill {
|
|
269
249
|
max-width: 140px;
|
|
270
250
|
}
|
|
271
251
|
|
|
272
|
-
.sb-edit-selection-name-pill,
|
|
273
|
-
|
|
274
|
-
.sb-edit-edit-component-button {
|
|
275
|
-
cursor: pointer !important;
|
|
276
|
-
display: block;
|
|
277
|
-
font-size: 11px;
|
|
278
|
-
color: white;
|
|
279
|
-
padding: 2px 4px;
|
|
252
|
+
.sb-edit-selection-name-pill, .sb-edit-add-to-chat-button, .sb-edit-edit-component-button {
|
|
253
|
+
color: #fff;
|
|
280
254
|
white-space: nowrap;
|
|
281
255
|
background-color: var(--primary-rect-color);
|
|
282
|
-
border-radius: 3px;
|
|
283
|
-
overflow: hidden;
|
|
284
256
|
text-overflow: ellipsis;
|
|
285
257
|
z-index: var(--sb-edit-z-index-mid);
|
|
286
258
|
border: none;
|
|
259
|
+
border-radius: 3px;
|
|
287
260
|
outline: none;
|
|
261
|
+
padding: 2px 4px;
|
|
262
|
+
font-size: 11px;
|
|
263
|
+
display: block;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
cursor: pointer !important;
|
|
288
266
|
|
|
289
|
-
* {
|
|
267
|
+
& * {
|
|
290
268
|
cursor: pointer !important;
|
|
291
269
|
}
|
|
292
270
|
|
|
@@ -294,36 +272,30 @@
|
|
|
294
272
|
box-shadow: 0px 3px 8px -1px var(--primary-rect-color);
|
|
295
273
|
}
|
|
296
274
|
|
|
297
|
-
&:active,
|
|
298
|
-
&:focus {
|
|
275
|
+
&:active, &:focus {
|
|
299
276
|
background-color: var(--primary-rect-color);
|
|
300
|
-
opacity:
|
|
277
|
+
opacity: .8;
|
|
301
278
|
}
|
|
302
279
|
}
|
|
303
280
|
|
|
304
|
-
.sb-edit-actions-target-mode
|
|
305
|
-
|
|
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);
|
|
281
|
+
.sb-edit-actions-target-mode .sb-edit-selection-name-pill:not([data-pill-type="SELECTED"]), .sb-edit-actions-target-mode .sb-edit-add-to-chat-button, .sb-edit-actions-target-mode .sb-edit-edit-component-button {
|
|
282
|
+
background-color: #643adf;
|
|
309
283
|
|
|
310
284
|
&:hover {
|
|
311
|
-
box-shadow:
|
|
285
|
+
box-shadow: 0 3px 8px -1px #643adf;
|
|
312
286
|
}
|
|
313
287
|
|
|
314
|
-
&:active,
|
|
315
|
-
|
|
316
|
-
background-color: rgb(77, 50, 160);
|
|
288
|
+
&:active, &:focus {
|
|
289
|
+
background-color: #4d32a0;
|
|
317
290
|
}
|
|
318
291
|
}
|
|
319
292
|
|
|
320
|
-
.sb-edit-add-to-chat-button,
|
|
321
|
-
.sb-edit-edit-component-button {
|
|
322
|
-
display: flex;
|
|
323
|
-
align-items: center;
|
|
293
|
+
.sb-edit-add-to-chat-button, .sb-edit-edit-component-button {
|
|
324
294
|
justify-content: center;
|
|
295
|
+
align-items: center;
|
|
296
|
+
display: flex;
|
|
325
297
|
|
|
326
|
-
svg {
|
|
298
|
+
& svg {
|
|
327
299
|
width: 16px;
|
|
328
300
|
height: 16px;
|
|
329
301
|
}
|
|
@@ -335,30 +307,31 @@
|
|
|
335
307
|
}
|
|
336
308
|
|
|
337
309
|
.sb-reparent-rect {
|
|
338
|
-
position: absolute;
|
|
339
310
|
border: 1px solid var(--primary-rect-color);
|
|
340
311
|
pointer-events: none;
|
|
341
312
|
z-index: var(--sb-edit-z-index-base);
|
|
342
|
-
animation: radial-gradient-animation
|
|
313
|
+
animation: 2s infinite radial-gradient-animation;
|
|
314
|
+
position: absolute;
|
|
343
315
|
}
|
|
344
316
|
|
|
345
317
|
@keyframes radial-gradient-animation {
|
|
346
318
|
0% {
|
|
347
|
-
box-shadow: inset 0 0
|
|
319
|
+
box-shadow: inset 0 0 #0087e080;
|
|
348
320
|
}
|
|
321
|
+
|
|
349
322
|
100% {
|
|
350
|
-
box-shadow: inset 0 0 20px 20px
|
|
323
|
+
box-shadow: inset 0 0 20px 20px #0087e01a;
|
|
351
324
|
}
|
|
352
325
|
}
|
|
353
326
|
|
|
354
327
|
.sb-edit-drop-placeholder {
|
|
355
|
-
position: absolute;
|
|
356
328
|
pointer-events: none;
|
|
357
329
|
z-index: var(--sb-edit-z-index-base);
|
|
330
|
+
position: absolute;
|
|
358
331
|
|
|
359
332
|
&[data-is-active="true"] {
|
|
360
333
|
border: 1px solid var(--primary-rect-color);
|
|
361
|
-
box-shadow: inset 0 0 0 3px
|
|
334
|
+
box-shadow: inset 0 0 0 3px #0087e029;
|
|
362
335
|
}
|
|
363
336
|
|
|
364
337
|
&[data-is-valid-drop="false"] {
|
|
@@ -367,12 +340,12 @@
|
|
|
367
340
|
}
|
|
368
341
|
|
|
369
342
|
.sb-edit-drop-target-outline {
|
|
370
|
-
position: absolute;
|
|
371
343
|
pointer-events: none;
|
|
372
344
|
z-index: var(--sb-edit-z-index-base);
|
|
373
345
|
border: 1px dashed var(--primary-rect-color);
|
|
374
346
|
width: 100%;
|
|
375
347
|
height: 100%;
|
|
348
|
+
position: absolute;
|
|
376
349
|
top: 0;
|
|
377
350
|
left: 0;
|
|
378
351
|
|
|
@@ -380,6 +353,3 @@
|
|
|
380
353
|
border-color: #f45252;
|
|
381
354
|
}
|
|
382
355
|
}
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
/*# sourceMappingURL=index.css.map*/
|
|
@@ -5,8 +5,23 @@ import { resourceFromAttributes } from "@opentelemetry/resources";
|
|
|
5
5
|
import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
6
6
|
import { WebTracerProvider } from "@opentelemetry/sdk-trace-web";
|
|
7
7
|
import { ATTR_SERVICE_NAME } from "@opentelemetry/semantic-conventions";
|
|
8
|
-
|
|
8
|
+
//#region \0rolldown/runtime.js
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __exportAll = (all, no_symbols) => {
|
|
11
|
+
let target = {};
|
|
12
|
+
for (var name in all) __defProp(target, name, {
|
|
13
|
+
get: all[name],
|
|
14
|
+
enumerable: true
|
|
15
|
+
});
|
|
16
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
9
20
|
//#region src/lib/utils.ts
|
|
21
|
+
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
22
|
+
getTracer: () => getTracer,
|
|
23
|
+
initTracerProviderWithOrigin: () => initTracerProviderWithOrigin
|
|
24
|
+
});
|
|
10
25
|
const serviceName = "superblocks-ui-framework";
|
|
11
26
|
let otlpEndpoint = void 0;
|
|
12
27
|
const otlpPath = "/api/v1/traces";
|
|
@@ -38,7 +53,7 @@ function getTracer(name) {
|
|
|
38
53
|
if (!currentProvider) console.error("Tracer provider not initialized. Call initTracerProviderWithOrigin() first with a valid windowOriginUrl. Tracing will be disabled.");
|
|
39
54
|
return trace.getTracer(name || serviceName);
|
|
40
55
|
}
|
|
41
|
-
|
|
42
56
|
//#endregion
|
|
43
|
-
export { initTracerProviderWithOrigin as n, getTracer as t };
|
|
44
|
-
|
|
57
|
+
export { initTracerProviderWithOrigin as n, utils_exports as r, getTracer as t };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=utils-BfE8-Afc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-BfE8-Afc.js","names":[],"sources":["../src/lib/utils.ts"],"sourcesContent":["import { trace } from \"@opentelemetry/api\";\nimport {\n CompositePropagator,\n W3CBaggagePropagator,\n W3CTraceContextPropagator,\n} from \"@opentelemetry/core\";\nimport { OTLPTraceExporter } from \"@opentelemetry/exporter-trace-otlp-http\";\nimport { resourceFromAttributes } from \"@opentelemetry/resources\";\nimport { BatchSpanProcessor } from \"@opentelemetry/sdk-trace-base\";\nimport { WebTracerProvider } from \"@opentelemetry/sdk-trace-web\";\nimport { ATTR_SERVICE_NAME } from \"@opentelemetry/semantic-conventions\";\n\nconst serviceName = \"superblocks-ui-framework\";\n\nlet otlpEndpoint: string | undefined = undefined;\nconst otlpPath = \"/api/v1/traces\";\n\nlet currentProvider: WebTracerProvider | undefined;\nconst ATTR_DEPLOYMENT_ENVIRONMENT = \"deployment.environment\";\n\nexport function initTracerProviderWithOrigin(windowOriginUrl: string) {\n otlpEndpoint = windowOriginUrl + otlpPath;\n\n console.debug(\n \"Initializing direct OTLP tracer provider for iframe to:\",\n otlpEndpoint,\n );\n\n const provider = new WebTracerProvider({\n resource: resourceFromAttributes({\n [ATTR_SERVICE_NAME]: serviceName,\n [ATTR_DEPLOYMENT_ENVIRONMENT]: getEnvironmentFromHostname(otlpEndpoint),\n }),\n });\n provider.addSpanProcessor(\n new BatchSpanProcessor(\n new OTLPTraceExporter({\n url: otlpEndpoint,\n }),\n ),\n );\n\n provider.register({\n propagator: new CompositePropagator({\n propagators: [\n new W3CBaggagePropagator(),\n new W3CTraceContextPropagator(),\n ],\n }),\n });\n\n currentProvider = provider;\n console.debug(\n \"Direct OTLP tracing initialized for iframe with dynamic origin\",\n );\n\n return provider;\n}\n\n// TODO: move this to a shared location since it's used by CLI as well\nfunction getEnvironmentFromHostname(hostname: string): string {\n if (hostname.match(/^app\\.superblocks(?:hq)?\\.com/)) {\n return \"prod\";\n } else if (hostname.match(/^eu\\.superblocks(?:hq)?\\.com/)) {\n return \"prod-eu\";\n } else if (hostname.match(/^staging\\.superblocks(?:hq)?\\.com/)) {\n return \"staging\";\n } else if (hostname.match(/^dev\\.superblocks(?:hq)?\\.com/)) {\n return \"dev\";\n } else if (hostname.match(/^pr-[0-9]+\\.superblocks(?:hq)?\\.dev/)) {\n return \"ephemeral\";\n } else if (hostname.match(/^localhost/)) {\n return \"local\";\n } else {\n return \"other\";\n }\n}\n\nexport function getTracer(name?: string) {\n if (!currentProvider) {\n console.error(\n \"Tracer provider not initialized. Call initTracerProviderWithOrigin() first with a valid windowOriginUrl. Tracing will be disabled.\",\n );\n }\n return trace.getTracer(name || serviceName);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,cAAc;AAEpB,IAAI,eAAmC,KAAA;AACvC,MAAM,WAAW;AAEjB,IAAI;AACJ,MAAM,8BAA8B;AAEpC,SAAgB,6BAA6B,iBAAyB;AACpE,gBAAe,kBAAkB;AAEjC,SAAQ,MACN,2DACA,aACD;CAED,MAAM,WAAW,IAAI,kBAAkB,EACrC,UAAU,uBAAuB;GAC9B,oBAAoB;GACpB,8BAA8B,2BAA2B,aAAa;EACxE,CAAC,EACH,CAAC;AACF,UAAS,iBACP,IAAI,mBACF,IAAI,kBAAkB,EACpB,KAAK,cACN,CAAC,CACH,CACF;AAED,UAAS,SAAS,EAChB,YAAY,IAAI,oBAAoB,EAClC,aAAa,CACX,IAAI,sBAAsB,EAC1B,IAAI,2BAA2B,CAChC,EACF,CAAC,EACH,CAAC;AAEF,mBAAkB;AAClB,SAAQ,MACN,iEACD;AAED,QAAO;;AAIT,SAAS,2BAA2B,UAA0B;AAC5D,KAAI,SAAS,MAAM,gCAAgC,CACjD,QAAO;UACE,SAAS,MAAM,+BAA+B,CACvD,QAAO;UACE,SAAS,MAAM,oCAAoC,CAC5D,QAAO;UACE,SAAS,MAAM,gCAAgC,CACxD,QAAO;UACE,SAAS,MAAM,sCAAsC,CAC9D,QAAO;UACE,SAAS,MAAM,aAAa,CACrC,QAAO;KAEP,QAAO;;AAIX,SAAgB,UAAU,MAAe;AACvC,KAAI,CAAC,gBACH,SAAQ,MACN,qIACD;AAEH,QAAO,MAAM,UAAU,QAAQ,YAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.120-next.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"import": "./dist/jsx-dev-runtime/index.js"
|
|
23
23
|
},
|
|
24
24
|
"./package.json": "./package.json",
|
|
25
|
-
"./index.css": "./dist/
|
|
25
|
+
"./index.css": "./dist/style.css"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"registry": "https://registry.npmjs.org"
|
|
@@ -63,15 +63,16 @@
|
|
|
63
63
|
"swr": "2.4.1",
|
|
64
64
|
"tailwindcss": "^4.1.13",
|
|
65
65
|
"zod-to-json-schema": "^3.25.1",
|
|
66
|
-
"@superblocksteam/library-shared": "2.0.
|
|
67
|
-
"@superblocksteam/sdk-api": "2.0.
|
|
68
|
-
"@superblocksteam/shared": "0.
|
|
66
|
+
"@superblocksteam/library-shared": "2.0.120-next.1",
|
|
67
|
+
"@superblocksteam/sdk-api": "2.0.120-next.1",
|
|
68
|
+
"@superblocksteam/shared": "0.9589.3"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@eslint/js": "^9.39.2",
|
|
72
72
|
"@svgr/rollup": "^8.1.0",
|
|
73
73
|
"@testing-library/dom": "^10.4.0",
|
|
74
74
|
"@testing-library/react": "^16.0.1",
|
|
75
|
+
"@tsdown/css": "^0.21.10",
|
|
75
76
|
"@types/lodash": "^4.17.15",
|
|
76
77
|
"@types/node": "^24",
|
|
77
78
|
"@types/react": "^18.3.10",
|
|
@@ -93,10 +94,10 @@
|
|
|
93
94
|
"jsdom": "^26.1.0",
|
|
94
95
|
"react-router": "^7.9.4",
|
|
95
96
|
"ts-morph": "^25.0.0",
|
|
96
|
-
"tsdown": "^0.
|
|
97
|
+
"tsdown": "^0.21.10",
|
|
97
98
|
"tsx": "^4.19.2",
|
|
98
99
|
"typescript": "^5.9.3",
|
|
99
|
-
"typescript-eslint": "^8.
|
|
100
|
+
"typescript-eslint": "^8.59.2",
|
|
100
101
|
"vitest": "^4.0.17"
|
|
101
102
|
},
|
|
102
103
|
"peerDependencies": {
|