@tscircuit/runframe 0.0.1577 → 0.0.1579
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.
|
@@ -1730,7 +1730,7 @@ var useErrorTelemetry = ({
|
|
|
1730
1730
|
};
|
|
1731
1731
|
|
|
1732
1732
|
// package.json
|
|
1733
|
-
var version = "0.0.
|
|
1733
|
+
var version = "0.0.1578";
|
|
1734
1734
|
var package_default = {
|
|
1735
1735
|
name: "@tscircuit/runframe",
|
|
1736
1736
|
main: "dist/preview.js",
|
|
@@ -1782,7 +1782,7 @@ var package_default = {
|
|
|
1782
1782
|
"@tscircuit/3d-viewer": "^0.0.509",
|
|
1783
1783
|
"@tscircuit/assembly-viewer": "^0.0.5",
|
|
1784
1784
|
"@tscircuit/create-snippet-url": "^0.0.9",
|
|
1785
|
-
"@tscircuit/eval": "^0.0.
|
|
1785
|
+
"@tscircuit/eval": "^0.0.624",
|
|
1786
1786
|
"@tscircuit/circuit-json-util": "^0.0.75",
|
|
1787
1787
|
"@tscircuit/fake-snippets": "^0.0.163",
|
|
1788
1788
|
"@tscircuit/file-server": "^0.0.32",
|
|
@@ -5096,249 +5096,258 @@ var FileMenuLeftHeader = (props) => {
|
|
|
5096
5096
|
setPendingLbrnExport(null);
|
|
5097
5097
|
};
|
|
5098
5098
|
return /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
5099
|
-
/* @__PURE__ */ jsxs27(
|
|
5100
|
-
/* @__PURE__ */
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
/* @__PURE__ */
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5099
|
+
/* @__PURE__ */ jsxs27("div", { className: "rf-flex rf-items-center rf-gap-1 rf-flex-shrink-0", children: [
|
|
5100
|
+
/* @__PURE__ */ jsxs27(DropdownMenu, { children: [
|
|
5101
|
+
/* @__PURE__ */ jsx37(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx37("div", { className: "rf-whitespace-nowrap rf-text-xs font-medium rf-p-2 rf-mx-1 rf-cursor-pointer rf-relative", children: "File" }) }),
|
|
5102
|
+
/* @__PURE__ */ jsxs27(DropdownMenuContent, { className: "rf-z-[101]", children: [
|
|
5103
|
+
!props.isWebEmbedded && /* @__PURE__ */ jsxs27(Fragment9, { children: [
|
|
5104
|
+
/* @__PURE__ */ jsx37(
|
|
5105
|
+
DropdownMenuItem,
|
|
5106
|
+
{
|
|
5107
|
+
className: "rf-text-xs",
|
|
5108
|
+
onSelect: triggerSaveSnippet,
|
|
5109
|
+
disabled: isSaving,
|
|
5110
|
+
children: isSaving ? "Saving..." : "Push"
|
|
5111
|
+
}
|
|
5112
|
+
),
|
|
5113
|
+
parseInt(window.location.port) > 5e3 && /* @__PURE__ */ jsx37(
|
|
5114
|
+
DropdownMenuItem,
|
|
5115
|
+
{
|
|
5116
|
+
className: "rf-text-xs",
|
|
5117
|
+
onSelect: () => {
|
|
5118
|
+
orderDialog.open();
|
|
5119
|
+
},
|
|
5120
|
+
children: "Order"
|
|
5121
|
+
}
|
|
5122
|
+
),
|
|
5123
|
+
/* @__PURE__ */ jsx37(
|
|
5124
|
+
DropdownMenuItem,
|
|
5125
|
+
{
|
|
5126
|
+
className: "rf-text-xs",
|
|
5127
|
+
onSelect: () => setIsImportDialogOpen(true),
|
|
5128
|
+
disabled: isSaving,
|
|
5129
|
+
children: "Import"
|
|
5130
|
+
}
|
|
5131
|
+
),
|
|
5132
|
+
/* @__PURE__ */ jsx37(
|
|
5133
|
+
DropdownMenuItem,
|
|
5134
|
+
{
|
|
5135
|
+
className: "rf-text-xs",
|
|
5136
|
+
onSelect: () => {
|
|
5137
|
+
if (!hasRegistryToken()) {
|
|
5138
|
+
toast.error("Requires tscircuit token");
|
|
5139
|
+
return;
|
|
5140
|
+
}
|
|
5141
|
+
setIsAiReviewDialogOpen(true);
|
|
5142
|
+
},
|
|
5143
|
+
children: "AI Review"
|
|
5144
|
+
}
|
|
5145
|
+
)
|
|
5146
|
+
] }),
|
|
5147
|
+
!props.isWebEmbedded && props.onLoginRequired && /* @__PURE__ */ jsx37(
|
|
5113
5148
|
DropdownMenuItem,
|
|
5114
5149
|
{
|
|
5115
5150
|
className: "rf-text-xs",
|
|
5116
5151
|
onSelect: () => {
|
|
5117
|
-
|
|
5152
|
+
props.onLoginRequired?.();
|
|
5118
5153
|
},
|
|
5119
|
-
children: "
|
|
5120
|
-
}
|
|
5121
|
-
),
|
|
5122
|
-
/* @__PURE__ */ jsx37(
|
|
5123
|
-
DropdownMenuItem,
|
|
5124
|
-
{
|
|
5125
|
-
className: "rf-text-xs",
|
|
5126
|
-
onSelect: () => setIsImportDialogOpen(true),
|
|
5127
|
-
disabled: isSaving,
|
|
5128
|
-
children: "Import"
|
|
5154
|
+
children: "Sign In"
|
|
5129
5155
|
}
|
|
5130
5156
|
),
|
|
5131
|
-
/* @__PURE__ */ jsx37(
|
|
5157
|
+
!props.isWebEmbedded && /* @__PURE__ */ jsx37(
|
|
5132
5158
|
DropdownMenuItem,
|
|
5133
5159
|
{
|
|
5134
5160
|
className: "rf-text-xs",
|
|
5135
5161
|
onSelect: () => {
|
|
5136
|
-
|
|
5137
|
-
toast.error("Requires tscircuit token");
|
|
5138
|
-
return;
|
|
5139
|
-
}
|
|
5140
|
-
setIsAiReviewDialogOpen(true);
|
|
5162
|
+
openBugReportDialog();
|
|
5141
5163
|
},
|
|
5142
|
-
children: "
|
|
5143
|
-
}
|
|
5144
|
-
)
|
|
5145
|
-
] }),
|
|
5146
|
-
!props.isWebEmbedded && props.onLoginRequired && /* @__PURE__ */ jsx37(
|
|
5147
|
-
DropdownMenuItem,
|
|
5148
|
-
{
|
|
5149
|
-
className: "rf-text-xs",
|
|
5150
|
-
onSelect: () => {
|
|
5151
|
-
props.onLoginRequired?.();
|
|
5152
|
-
},
|
|
5153
|
-
children: "Sign In"
|
|
5154
|
-
}
|
|
5155
|
-
),
|
|
5156
|
-
!props.isWebEmbedded && /* @__PURE__ */ jsx37(
|
|
5157
|
-
DropdownMenuItem,
|
|
5158
|
-
{
|
|
5159
|
-
className: "rf-text-xs",
|
|
5160
|
-
onSelect: () => {
|
|
5161
|
-
openBugReportDialog();
|
|
5162
|
-
},
|
|
5163
|
-
children: "Report Bug"
|
|
5164
|
-
}
|
|
5165
|
-
),
|
|
5166
|
-
/* @__PURE__ */ jsxs27(DropdownMenuSub, { children: [
|
|
5167
|
-
/* @__PURE__ */ jsx37(
|
|
5168
|
-
DropdownMenuSubTrigger,
|
|
5169
|
-
{
|
|
5170
|
-
className: "rf-text-xs",
|
|
5171
|
-
disabled: isExporting,
|
|
5172
|
-
children: isExporting ? "Exporting..." : "Export"
|
|
5164
|
+
children: "Report Bug"
|
|
5173
5165
|
}
|
|
5174
5166
|
),
|
|
5175
|
-
/* @__PURE__ */
|
|
5176
|
-
DropdownMenuItem,
|
|
5177
|
-
{
|
|
5178
|
-
onSelect: () => {
|
|
5179
|
-
if (!circuitJson) {
|
|
5180
|
-
toast.error("No Circuit JSON to export");
|
|
5181
|
-
return;
|
|
5182
|
-
}
|
|
5183
|
-
let projectNameFromPath = "Untitled";
|
|
5184
|
-
if (currentMainComponentPath) {
|
|
5185
|
-
const filename = currentMainComponentPath.split("/").pop();
|
|
5186
|
-
if (filename) {
|
|
5187
|
-
projectNameFromPath = filename.replace(/\.[^.]+$/, "");
|
|
5188
|
-
}
|
|
5189
|
-
}
|
|
5190
|
-
const projectName = props.projectName ?? snippetName ?? projectNameFromPath;
|
|
5191
|
-
if (exp.name === "LightBurn") {
|
|
5192
|
-
setPendingLbrnExport({
|
|
5193
|
-
circuitJson,
|
|
5194
|
-
projectName
|
|
5195
|
-
});
|
|
5196
|
-
setIsLbrnDialogOpen(true);
|
|
5197
|
-
return;
|
|
5198
|
-
}
|
|
5199
|
-
exportAndDownload({
|
|
5200
|
-
exportName: exp.name,
|
|
5201
|
-
circuitJson,
|
|
5202
|
-
projectName
|
|
5203
|
-
});
|
|
5204
|
-
},
|
|
5205
|
-
disabled: isExporting,
|
|
5206
|
-
children: /* @__PURE__ */ jsx37("span", { className: "rf-text-xs", children: exp.name })
|
|
5207
|
-
},
|
|
5208
|
-
i
|
|
5209
|
-
)) }) })
|
|
5210
|
-
] }),
|
|
5211
|
-
!props.isWebEmbedded && /* @__PURE__ */ jsxs27(DropdownMenuSub, { children: [
|
|
5212
|
-
/* @__PURE__ */ jsx37(DropdownMenuSubTrigger, { className: "rf-text-xs", children: "Advanced" }),
|
|
5213
|
-
/* @__PURE__ */ jsx37(DropdownMenuPortal, { children: /* @__PURE__ */ jsxs27(DropdownMenuSubContent, { children: [
|
|
5214
|
-
/* @__PURE__ */ jsx37(DropdownMenuItem, { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsxs27("div", { className: "rf-flex rf-items-center rf-gap-2", children: [
|
|
5215
|
-
/* @__PURE__ */ jsx37(
|
|
5216
|
-
Checkbox,
|
|
5217
|
-
{
|
|
5218
|
-
id: "load-latest-eval",
|
|
5219
|
-
checked: props.shouldLoadLatestEval,
|
|
5220
|
-
onCheckedChange: (checked) => {
|
|
5221
|
-
props.onChangeShouldLoadLatestEval?.(checked === true);
|
|
5222
|
-
}
|
|
5223
|
-
}
|
|
5224
|
-
),
|
|
5225
|
-
/* @__PURE__ */ jsx37(
|
|
5226
|
-
"label",
|
|
5227
|
-
{
|
|
5228
|
-
htmlFor: "load-latest-eval",
|
|
5229
|
-
className: "rf-text-xs rf-cursor-pointer",
|
|
5230
|
-
children: "Force Latest @tscircuit/eval"
|
|
5231
|
-
}
|
|
5232
|
-
)
|
|
5233
|
-
] }) }),
|
|
5234
|
-
lastRunEvalVersion && /* @__PURE__ */ jsx37(DropdownMenuItem, { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsx37("div", { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsxs27("span", { className: "rf-text-xs", children: [
|
|
5235
|
-
"@tscircuit/eval@",
|
|
5236
|
-
lastRunEvalVersion
|
|
5237
|
-
] }) }) }),
|
|
5238
|
-
/* @__PURE__ */ jsx37(DropdownMenuItem, { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsx37("div", { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsxs27("span", { className: "rf-text-xs", children: [
|
|
5239
|
-
"@tscircuit/runframe@",
|
|
5240
|
-
package_default.version
|
|
5241
|
-
] }) }) }),
|
|
5167
|
+
/* @__PURE__ */ jsxs27(DropdownMenuSub, { children: [
|
|
5242
5168
|
/* @__PURE__ */ jsx37(
|
|
5243
|
-
|
|
5169
|
+
DropdownMenuSubTrigger,
|
|
5244
5170
|
{
|
|
5245
|
-
className: "rf-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
},
|
|
5249
|
-
children: /* @__PURE__ */ jsx37("div", { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsx37("span", { className: "rf-text-xs", children: "CLI Admin Panel" }) })
|
|
5171
|
+
className: "rf-text-xs",
|
|
5172
|
+
disabled: isExporting,
|
|
5173
|
+
children: isExporting ? "Exporting..." : "Export"
|
|
5250
5174
|
}
|
|
5251
|
-
)
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
setRequestToSaveSentAt(Date.now());
|
|
5269
|
-
setSnippetName(name);
|
|
5270
|
-
await pushEvent({
|
|
5271
|
-
event_type: "REQUEST_TO_SAVE_SNIPPET",
|
|
5272
|
-
snippet_name: name
|
|
5273
|
-
});
|
|
5274
|
-
setIsSelectSnippetDialogOpen(false);
|
|
5275
|
-
},
|
|
5276
|
-
onCancel: () => setIsSelectSnippetDialogOpen(false),
|
|
5277
|
-
isOpen: isSelectSnippetDialogOpen
|
|
5278
|
-
}
|
|
5279
|
-
)
|
|
5280
|
-
] }),
|
|
5281
|
-
/* @__PURE__ */ jsxs27(DropdownMenu, { children: [
|
|
5282
|
-
/* @__PURE__ */ jsx37(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx37("div", { className: "rf-whitespace-nowrap rf-text-xs font-medium rf-p-2 rf-mx-1 rf-cursor-pointer rf-relative", children: "View" }) }),
|
|
5283
|
-
/* @__PURE__ */ jsx37(DropdownMenuContent, { className: "rf-z-[101]", children: /* @__PURE__ */ jsxs27(DropdownMenuSub, { children: [
|
|
5284
|
-
/* @__PURE__ */ jsx37(DropdownMenuSubTrigger, { className: "rf-text-xs", children: "Schematic" }),
|
|
5285
|
-
/* @__PURE__ */ jsx37(DropdownMenuPortal, { children: /* @__PURE__ */ jsxs27(DropdownMenuSubContent, { children: [
|
|
5286
|
-
/* @__PURE__ */ jsx37(
|
|
5287
|
-
DropdownMenuItem,
|
|
5288
|
-
{
|
|
5289
|
-
className: "rf-flex rf-items-center rf-gap-2",
|
|
5290
|
-
onSelect: (e) => e.preventDefault(),
|
|
5291
|
-
children: /* @__PURE__ */ jsxs27("div", { className: "rf-flex rf-items-center rf-gap-2", children: [
|
|
5292
|
-
/* @__PURE__ */ jsx37(
|
|
5293
|
-
Checkbox,
|
|
5294
|
-
{
|
|
5295
|
-
id: "show-schematic-ports",
|
|
5296
|
-
checked: props.showSchematicPorts,
|
|
5297
|
-
onCheckedChange: (checked) => {
|
|
5298
|
-
props.onChangeShowSchematicPorts?.(checked === true);
|
|
5175
|
+
),
|
|
5176
|
+
/* @__PURE__ */ jsx37(DropdownMenuPortal, { children: /* @__PURE__ */ jsx37(DropdownMenuSubContent, { children: availableExports.map((exp, i) => /* @__PURE__ */ jsx37(
|
|
5177
|
+
DropdownMenuItem,
|
|
5178
|
+
{
|
|
5179
|
+
onSelect: () => {
|
|
5180
|
+
if (!circuitJson) {
|
|
5181
|
+
toast.error("No Circuit JSON to export");
|
|
5182
|
+
return;
|
|
5183
|
+
}
|
|
5184
|
+
let projectNameFromPath = "Untitled";
|
|
5185
|
+
if (currentMainComponentPath) {
|
|
5186
|
+
const filename = currentMainComponentPath.split("/").pop();
|
|
5187
|
+
if (filename) {
|
|
5188
|
+
projectNameFromPath = filename.replace(
|
|
5189
|
+
/\.[^.]+$/,
|
|
5190
|
+
""
|
|
5191
|
+
);
|
|
5299
5192
|
}
|
|
5300
5193
|
}
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5194
|
+
const projectName = props.projectName ?? snippetName ?? projectNameFromPath;
|
|
5195
|
+
if (exp.name === "LightBurn") {
|
|
5196
|
+
setPendingLbrnExport({
|
|
5197
|
+
circuitJson,
|
|
5198
|
+
projectName
|
|
5199
|
+
});
|
|
5200
|
+
setIsLbrnDialogOpen(true);
|
|
5201
|
+
return;
|
|
5308
5202
|
}
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5203
|
+
exportAndDownload({
|
|
5204
|
+
exportName: exp.name,
|
|
5205
|
+
circuitJson,
|
|
5206
|
+
projectName
|
|
5207
|
+
});
|
|
5208
|
+
},
|
|
5209
|
+
disabled: isExporting,
|
|
5210
|
+
children: /* @__PURE__ */ jsx37("span", { className: "rf-text-xs", children: exp.name })
|
|
5211
|
+
},
|
|
5212
|
+
i
|
|
5213
|
+
)) }) })
|
|
5214
|
+
] }),
|
|
5215
|
+
!props.isWebEmbedded && /* @__PURE__ */ jsxs27(DropdownMenuSub, { children: [
|
|
5216
|
+
/* @__PURE__ */ jsx37(DropdownMenuSubTrigger, { className: "rf-text-xs", children: "Advanced" }),
|
|
5217
|
+
/* @__PURE__ */ jsx37(DropdownMenuPortal, { children: /* @__PURE__ */ jsxs27(DropdownMenuSubContent, { children: [
|
|
5218
|
+
/* @__PURE__ */ jsx37(DropdownMenuItem, { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsxs27("div", { className: "rf-flex rf-items-center rf-gap-2", children: [
|
|
5319
5219
|
/* @__PURE__ */ jsx37(
|
|
5320
5220
|
Checkbox,
|
|
5321
5221
|
{
|
|
5322
|
-
id: "
|
|
5323
|
-
checked: props.
|
|
5222
|
+
id: "load-latest-eval",
|
|
5223
|
+
checked: props.shouldLoadLatestEval,
|
|
5324
5224
|
onCheckedChange: (checked) => {
|
|
5325
|
-
props.
|
|
5225
|
+
props.onChangeShouldLoadLatestEval?.(
|
|
5226
|
+
checked === true
|
|
5227
|
+
);
|
|
5326
5228
|
}
|
|
5327
5229
|
}
|
|
5328
5230
|
),
|
|
5329
5231
|
/* @__PURE__ */ jsx37(
|
|
5330
5232
|
"label",
|
|
5331
5233
|
{
|
|
5332
|
-
htmlFor: "
|
|
5234
|
+
htmlFor: "load-latest-eval",
|
|
5333
5235
|
className: "rf-text-xs rf-cursor-pointer",
|
|
5334
|
-
children: "
|
|
5236
|
+
children: "Force Latest @tscircuit/eval"
|
|
5335
5237
|
}
|
|
5336
5238
|
)
|
|
5337
|
-
] })
|
|
5338
|
-
|
|
5339
|
-
|
|
5239
|
+
] }) }),
|
|
5240
|
+
lastRunEvalVersion && /* @__PURE__ */ jsx37(DropdownMenuItem, { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsx37("div", { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsxs27("span", { className: "rf-text-xs", children: [
|
|
5241
|
+
"@tscircuit/eval@",
|
|
5242
|
+
lastRunEvalVersion
|
|
5243
|
+
] }) }) }),
|
|
5244
|
+
/* @__PURE__ */ jsx37(DropdownMenuItem, { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsx37("div", { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsxs27("span", { className: "rf-text-xs", children: [
|
|
5245
|
+
"@tscircuit/runframe@",
|
|
5246
|
+
package_default.version
|
|
5247
|
+
] }) }) }),
|
|
5248
|
+
/* @__PURE__ */ jsx37(
|
|
5249
|
+
DropdownMenuItem,
|
|
5250
|
+
{
|
|
5251
|
+
className: "rf-flex rf-items-center rf-gap-2",
|
|
5252
|
+
onClick: () => {
|
|
5253
|
+
window.open("/api/admin", "_blank");
|
|
5254
|
+
},
|
|
5255
|
+
children: /* @__PURE__ */ jsx37("div", { className: "rf-flex rf-items-center rf-gap-2", children: /* @__PURE__ */ jsx37("span", { className: "rf-text-xs", children: "CLI Admin Panel" }) })
|
|
5256
|
+
}
|
|
5257
|
+
)
|
|
5258
|
+
] }) })
|
|
5259
|
+
] })
|
|
5260
|
+
] }),
|
|
5261
|
+
/* @__PURE__ */ jsx37(AlertDialog, { open: isError, onOpenChange: setIsError, children: /* @__PURE__ */ jsxs27(AlertDialogContent, { children: [
|
|
5262
|
+
/* @__PURE__ */ jsxs27(AlertDialogHeader, { children: [
|
|
5263
|
+
/* @__PURE__ */ jsx37(AlertDialogTitle, { children: "Error Saving Snippet" }),
|
|
5264
|
+
/* @__PURE__ */ jsx37(AlertDialogDescription, { children: errorMessage })
|
|
5265
|
+
] }),
|
|
5266
|
+
/* @__PURE__ */ jsx37(AlertDialogFooter, { children: /* @__PURE__ */ jsx37(AlertDialogCancel, { onClick: () => setIsError(false), children: "Dismiss" }) })
|
|
5267
|
+
] }) }),
|
|
5268
|
+
/* @__PURE__ */ jsx37(
|
|
5269
|
+
SelectSnippetDialog,
|
|
5270
|
+
{
|
|
5271
|
+
snippetNames: availableSnippets ?? [],
|
|
5272
|
+
onSelect: async (name) => {
|
|
5273
|
+
setIsSaving(true);
|
|
5274
|
+
setRequestToSaveSentAt(Date.now());
|
|
5275
|
+
setSnippetName(name);
|
|
5276
|
+
await pushEvent({
|
|
5277
|
+
event_type: "REQUEST_TO_SAVE_SNIPPET",
|
|
5278
|
+
snippet_name: name
|
|
5279
|
+
});
|
|
5280
|
+
setIsSelectSnippetDialogOpen(false);
|
|
5281
|
+
},
|
|
5282
|
+
onCancel: () => setIsSelectSnippetDialogOpen(false),
|
|
5283
|
+
isOpen: isSelectSnippetDialogOpen
|
|
5284
|
+
}
|
|
5285
|
+
)
|
|
5286
|
+
] }),
|
|
5287
|
+
/* @__PURE__ */ jsxs27(DropdownMenu, { children: [
|
|
5288
|
+
/* @__PURE__ */ jsx37(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx37("div", { className: "rf-whitespace-nowrap rf-text-xs font-medium rf-p-2 rf-mx-1 rf-cursor-pointer rf-relative", children: "View" }) }),
|
|
5289
|
+
/* @__PURE__ */ jsx37(DropdownMenuContent, { className: "rf-z-[101]", children: /* @__PURE__ */ jsxs27(DropdownMenuSub, { children: [
|
|
5290
|
+
/* @__PURE__ */ jsx37(DropdownMenuSubTrigger, { className: "rf-text-xs", children: "Schematic" }),
|
|
5291
|
+
/* @__PURE__ */ jsx37(DropdownMenuPortal, { children: /* @__PURE__ */ jsxs27(DropdownMenuSubContent, { children: [
|
|
5292
|
+
/* @__PURE__ */ jsx37(
|
|
5293
|
+
DropdownMenuItem,
|
|
5294
|
+
{
|
|
5295
|
+
className: "rf-flex rf-items-center rf-gap-2",
|
|
5296
|
+
onSelect: (e) => e.preventDefault(),
|
|
5297
|
+
children: /* @__PURE__ */ jsxs27("div", { className: "rf-flex rf-items-center rf-gap-2", children: [
|
|
5298
|
+
/* @__PURE__ */ jsx37(
|
|
5299
|
+
Checkbox,
|
|
5300
|
+
{
|
|
5301
|
+
id: "show-schematic-ports",
|
|
5302
|
+
checked: props.showSchematicPorts,
|
|
5303
|
+
onCheckedChange: (checked) => {
|
|
5304
|
+
props.onChangeShowSchematicPorts?.(checked === true);
|
|
5305
|
+
}
|
|
5306
|
+
}
|
|
5307
|
+
),
|
|
5308
|
+
/* @__PURE__ */ jsx37(
|
|
5309
|
+
"label",
|
|
5310
|
+
{
|
|
5311
|
+
htmlFor: "show-schematic-ports",
|
|
5312
|
+
className: "rf-text-xs rf-cursor-pointer",
|
|
5313
|
+
children: "Show Schematic Ports"
|
|
5314
|
+
}
|
|
5315
|
+
)
|
|
5316
|
+
] })
|
|
5317
|
+
}
|
|
5318
|
+
),
|
|
5319
|
+
/* @__PURE__ */ jsx37(
|
|
5320
|
+
DropdownMenuItem,
|
|
5321
|
+
{
|
|
5322
|
+
className: "rf-flex rf-items-center rf-gap-2",
|
|
5323
|
+
onSelect: (e) => e.preventDefault(),
|
|
5324
|
+
children: /* @__PURE__ */ jsxs27("div", { className: "rf-flex rf-items-center rf-gap-2", children: [
|
|
5325
|
+
/* @__PURE__ */ jsx37(
|
|
5326
|
+
Checkbox,
|
|
5327
|
+
{
|
|
5328
|
+
id: "show-schematic-grid",
|
|
5329
|
+
checked: props.showSchematicDebugGrid,
|
|
5330
|
+
onCheckedChange: (checked) => {
|
|
5331
|
+
props.onChangeShowSchematicDebugGrid?.(
|
|
5332
|
+
checked === true
|
|
5333
|
+
);
|
|
5334
|
+
}
|
|
5335
|
+
}
|
|
5336
|
+
),
|
|
5337
|
+
/* @__PURE__ */ jsx37(
|
|
5338
|
+
"label",
|
|
5339
|
+
{
|
|
5340
|
+
htmlFor: "show-schematic-grid",
|
|
5341
|
+
className: "rf-text-xs rf-cursor-pointer",
|
|
5342
|
+
children: "Show Schematic Grid"
|
|
5343
|
+
}
|
|
5344
|
+
)
|
|
5345
|
+
] })
|
|
5346
|
+
}
|
|
5347
|
+
)
|
|
5348
|
+
] }) })
|
|
5340
5349
|
] }) })
|
|
5341
|
-
] })
|
|
5350
|
+
] })
|
|
5342
5351
|
] }),
|
|
5343
5352
|
BugReportDialog,
|
|
5344
5353
|
/* @__PURE__ */ jsx37(
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED