@fluidgrids/fe-sdk 0.0.0-stage → 2026.1203.8
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 +564 -2
- package/dist/ActivityOptionsFields-C2u-hY2U.js +142 -0
- package/dist/AiStudioPage-B_hNTj-_.js +1137 -0
- package/dist/ApprovalInboxPage-ClITra3n.js +1312 -0
- package/dist/ChoiceSelect-LkK-uS9J.js +65 -0
- package/dist/ConfirmActionDialog-DHWTDRbp.js +31 -0
- package/dist/ConnectionFormDialog-C0kDgcrZ.js +153 -0
- package/dist/CreateFluidgridsTagDocument-Dtp9KPLJ.js +1055 -0
- package/dist/DataSinkDashboardPage-b4ezeqa6.js +278 -0
- package/dist/DataTablesPage-C1d9YGHz.js +5575 -0
- package/dist/DateTimeField-B1qR4ruo.js +51 -0
- package/dist/Disclosure-BNKij7-v.js +45 -0
- package/dist/ElementLibraryPage-8jNO6YmE.js +2256 -0
- package/dist/ElementLibrarySequenceDocument-B-W8SPzn.js +3979 -0
- package/dist/EnsureThemeProvider-BvlNjAd0.js +24 -0
- package/dist/EntityTagBadge-1OlP6p0c.js +25 -0
- package/dist/EntityTagPicker-BBrU5cE0.js +137 -0
- package/dist/ExecuteStepDocument-B4j1mdRT.js +189 -0
- package/dist/ExecutionDetailDocument-D6QuM-kp.js +875 -0
- package/dist/ExecutionDetailPage-D4CBtFdo.js +12217 -0
- package/dist/ExecutionDetailPage-DvQ667OE.d.ts +10 -0
- package/dist/ExecutionStatusBadge-BsDVor9t.js +221 -0
- package/dist/ExecutionsListDocument-Dan7ZiqB.js +459 -0
- package/dist/ExecutionsListPage-B3XT8ITL.js +4307 -0
- package/dist/FailureTriagePanel-DOJMaJ0n.js +1285 -0
- package/dist/FileDownloadUrlDocument-CVOYKcL5.js +92 -0
- package/dist/FluidGridsDocsLink-bX0Hnhxr.js +66 -0
- package/dist/FluidGridsMark-CE2blT7K.js +74 -0
- package/dist/HeldLoadRegion-BtTxbvOW.js +34 -0
- package/dist/HistoryPage-BLoRpJ1R.d.ts +6 -0
- package/dist/HistoryPage-BSBISXoj.js +2835 -0
- package/dist/Icon-BtQ0HXLh.js +160 -0
- package/dist/InsightsPage-D7ybj8N9.js +11245 -0
- package/dist/IsolationSetting-vy911E8b.js +1153 -0
- package/dist/LibraryParts-DOeNgR8A.js +413 -0
- package/dist/ManagedAiPolicyAuthority-BxwJ3ptd.js +40 -0
- package/dist/ManagedAiPolicyAuthority-DM3t3wNr.d.ts +18 -0
- package/dist/ManagedAiPolicyAuthorityContext-CNkxIOZ1.js +10 -0
- package/dist/McpTriggerServers-BCPCAOWB.js +459 -0
- package/dist/MissingNodesInstallModal-rO_SEDrC.js +224 -0
- package/dist/NavigationV2Provider-DCDt35eG.js +17 -0
- package/dist/NodeSchemaIntrospectionDocument-C1vAIcHd.js +95 -0
- package/dist/NodesPage-DEbnz9iU.d.ts +6 -0
- package/dist/NodesPage-O7KeeKtd.js +653 -0
- package/dist/OfflineIcon-TwMKYWjA.js +207 -0
- package/dist/OpenTemplateAsCodeButton-BhWJWIF3.js +94 -0
- package/dist/PaidTemplateConfirm-_G3ag6S4.js +28 -0
- package/dist/PublishCustomNodeAction-CIySbK4c.js +134 -0
- package/dist/RecordTaskDialog-BkpCDvhR.js +2078 -0
- package/dist/RunActionsMenu-DodOgIQm.js +59 -0
- package/dist/RunnerStatusPill-C1v967iq.js +24 -0
- package/dist/RunnersPage-dB0RSdY_.js +1929 -0
- package/dist/SandboxRuntimeExhaustedNotice-BFOIF93C.js +120 -0
- package/dist/SchedulesPage-DPWr1yvf.js +1607 -0
- package/dist/SearchBox-BGtYjvfs.js +49 -0
- package/dist/SequenceEditor-CFiHeHkR.js +497 -0
- package/dist/SettingsPage-0CQBNPZV.js +8695 -0
- package/dist/StewardPages-DAJhepen.js +47 -0
- package/dist/StewardRunImportPanel-Kva2DO0u.js +2844 -0
- package/dist/StoreTemplateCardCompact-CHn5kP7A.js +2166 -0
- package/dist/TagFilterSelect-CyA8QrS7.js +42 -0
- package/dist/TaskQueuesPage-DdnDCyat.js +3571 -0
- package/dist/TechnicalDetails-B0Oi4aZw.js +19 -0
- package/dist/TemplateConfigurationModal-CdvCYJLM.js +332 -0
- package/dist/TemplateDetailPanel-CbiKciuB.js +222 -0
- package/dist/TemplatePreview-cx7-NOeG.js +868 -0
- package/dist/TemplatesPage-BG3H-6v6.d.ts +10 -0
- package/dist/TemplatesPage-BVQpGYIV.js +3251 -0
- package/dist/TerminateExecutionDocument-B_HKNVrN.js +581 -0
- package/dist/TranslationBridge-Bd4aJKMs.d.ts +11 -0
- package/dist/TranslationBridge-Da-TPgQm.js +68 -0
- package/dist/TriggerWorkflowDocument-D9Km2Vv2.js +460 -0
- package/dist/UiSequencePickerSequenceDocument-BSYnSDV7.js +607 -0
- package/dist/UiStepScreenshot-Qh4QMyUp.js +146 -0
- package/dist/UsageTimeSeriesDocument-DcInx9-z.js +177 -0
- package/dist/VariablesPage-ChfGuW22.js +2243 -0
- package/dist/VersionDiffDialog-Bd2AeUwf.js +1702 -0
- package/dist/VersionLifecycleBar-BBeWVtz-.js +143 -0
- package/dist/WebhookDeliveriesPage-D66bua0j.js +1563 -0
- package/dist/WorkflowBuilder-B6wQD1TK.js +539 -0
- package/dist/WorkflowBuilder-DR4ku8Tr.js +1611 -0
- package/dist/WorkflowDefinitionDocument-DZLbTPUZ.js +321 -0
- package/dist/WorkflowEmbed-BXfFGy0i.js +708 -0
- package/dist/WorkflowEmbed-Cbqe1s1z.d.ts +6 -0
- package/dist/WorkflowPinnedDataDocument-BODT5omd.js +782 -0
- package/dist/WorkflowProposalCard-BruukdeF.js +96 -0
- package/dist/WorkflowProposalDocument-BdUbsrd0.js +620 -0
- package/dist/WorkflowSearchRedirect-C7zJ2MKH.js +40 -0
- package/dist/WorkflowSettingsDrawer-MVU1BKfY.d.ts +18 -0
- package/dist/WorkflowSettingsDrawer-gazs97WR.js +196 -0
- package/dist/WorkflowShareDialog-e8jJtLjU.js +469 -0
- package/dist/WorkflowVersionsDocument-DRVOp8Uj.js +3213 -0
- package/dist/WorkflowsList--hR2_8gf.js +4593 -0
- package/dist/WorkflowsList-CcNDQge5.d.ts +6 -0
- package/dist/WorkflowsListPageDocument-CnzcQm_o.js +934 -0
- package/dist/addonCatalog-CbZS4deh.js +58 -0
- package/dist/addonCatalog-sjlonAmR.d.ts +15 -0
- package/dist/addons.d.ts +3 -0
- package/dist/addons.js +4 -0
- package/dist/agent-form-Bfvm32j1.js +83 -0
- package/dist/agent-tools.d.ts +3 -0
- package/dist/agent-tools.js +5 -0
- package/dist/agentTools-CyL7DLOF.js +320 -0
- package/dist/ai-usage-BrxDgvdR.js +240 -0
- package/dist/aiCreditsBridge-BuE92tKo.js +49 -0
- package/dist/api-BKq-nIOZ.js +2286 -0
- package/dist/api-Ol7I8NxE.js +8289 -0
- package/dist/apollo-type-policies.d.ts +11 -0
- package/dist/apollo-type-policies.js +64 -0
- package/dist/askAboutBridge-ByYsQams.js +106 -0
- package/dist/askQuestions-Cmx7VnMm.js +742 -0
- package/dist/assert-rules-lfYEMc99.js +318 -0
- package/dist/assistant.d.ts +94 -0
- package/dist/assistant.js +99 -0
- package/dist/attach-node-helpers-HDKQOtrD.js +32 -0
- package/dist/badge-CXfPhoMH.js +26 -0
- package/dist/basil.generated-BK-EHbwN.js +10 -0
- package/dist/browser-steps-DMpS5TyB.js +533 -0
- package/dist/builderTimings-pvGnK1m-.js +510 -0
- package/dist/button-DG7y_FVJ.js +48 -0
- package/dist/canvasNoteTools-BxuP_AYO.js +137 -0
- package/dist/card-Bomy_1UG.js +44 -0
- package/dist/catalogGrid-BOrfMgi-.js +41 -0
- package/dist/channel-CPyQ1NR1.js +212 -0
- package/dist/chips-CvNrYJZa.js +27 -0
- package/dist/client-holder-C0M5Cfwl.js +68 -0
- package/dist/cn-QqidFIgr.js +10 -0
- package/dist/code-editor-diagnostics-Zr0cIcx1.js +46 -0
- package/dist/code-editor-field-x_JrY8KR.js +113 -0
- package/dist/codec-client-DPuD6mw7.js +515 -0
- package/dist/conditionBuilder-DwfEF0Q-.js +1144 -0
- package/dist/config-DO68jw5k.js +322 -0
- package/dist/constants-DgbVc24O.d.ts +296 -0
- package/dist/constants-DlRnHBfQ.js +217 -0
- package/dist/convert-browser-action-pfecelF7.js +347 -0
- package/dist/convert-dialog-B_o22NiJ.js +382 -0
- package/dist/create-workflow-first-Azg3JUdX.js +120 -0
- package/dist/definition-canvas-Bsda-rDT.js +31 -0
- package/dist/dialog-BVd152GS.js +94 -0
- package/dist/durable-nodes-BXyYCLxT.js +91 -0
- package/dist/duration-CDb7-mT_.js +33 -0
- package/dist/edge-mapper-wEAdGVU2.js +4477 -0
- package/dist/element-library-DkSlg_VE.js +727 -0
- package/dist/entities-I_0kio3q.js +38 -0
- package/dist/error-advice-QLr5NCm7.js +65 -0
- package/dist/errors-ClKb5sEt.js +188 -0
- package/dist/executions.d.ts +3 -0
- package/dist/executions.js +5 -0
- package/dist/feature-flags-B2qetXKd.js +385 -0
- package/dist/field-label-DPZRmE_B.js +153 -0
- package/dist/firstWorkflow-C_h0KMB2.js +133 -0
- package/dist/flags.d.ts +3 -0
- package/dist/flags.js +4 -0
- package/dist/flow-builder-DIvLOhz0.js +28038 -0
- package/dist/flow-store-holder-CUN7Terz.js +52 -0
- package/dist/fluent.generated-CA_e6-4l.js +14 -0
- package/dist/fluidgridsEvents-bbEQbwU6.js +175 -0
- package/dist/fluidgridsTheme-DUhvOgoy.js +297 -0
- package/dist/global-client-BQPuFrFa.js +433 -0
- package/dist/global-operations-BG6YgxrM.js +136 -0
- package/dist/graphql-types-UTYtujY9.js +21358 -0
- package/dist/history.d.ts +3 -0
- package/dist/history.js +4 -0
- package/dist/index-AoJAa5vU.d.ts +164958 -0
- package/dist/index-DEMT3iAM.d.ts +120 -0
- package/dist/index-ROZzNGyY.d.ts +76 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +8123 -0
- package/dist/ion.generated-mbajjcAg.js +10 -0
- package/dist/label-Lzb8ZXf_.js +29 -0
- package/dist/labels-rXd9gYQz.js +1236 -0
- package/dist/liveCanvas-D5ytXDp8.js +103 -0
- package/dist/logos.generated-X6_0kjVR.js +21 -0
- package/dist/logs-panel-Cw0DkG0l.js +468 -0
- package/dist/lucide.generated-B6NVd3GT.js +29 -0
- package/dist/marksStore-a9oIMMot.js +175 -0
- package/dist/mcp-trigger-D0nRdvq5.js +307 -0
- package/dist/mdi.generated-D1BV74d6.js +292 -0
- package/dist/menus-CU3hDGYl.js +160 -0
- package/dist/mynaui.generated-DMWr5cXz.js +66 -0
- package/dist/navigation-v2.d.ts +3 -0
- package/dist/navigation-v2.js +5 -0
- package/dist/node-detail-view-Cgm5H1P-.js +1372 -0
- package/dist/node-editor-tab-body-CZ0fVuVP.js +187 -0
- package/dist/node-operation-selection-CdV3KI_V.js +3534 -0
- package/dist/node-registry-refresh-s3okf83X.js +27 -0
- package/dist/node-role-TMbnkmeP.js +132 -0
- package/dist/node-type-icon-BZa8n4iG.js +33 -0
- package/dist/nodes.d.ts +3 -0
- package/dist/nodes.js +4 -0
- package/dist/notesKey-5EaREBGA.js +12 -0
- package/dist/observability.d.ts +3 -0
- package/dist/observability.js +5 -0
- package/dist/offset-pages-zghoClB3.js +55 -0
- package/dist/operations-BBmT9ToP.js +663 -0
- package/dist/operations-WxRJWeqO.js +3133 -0
- package/dist/output-files-Ba8bu5lv.js +196 -0
- package/dist/page-operation-DrWuhd6Y.js +129 -0
- package/dist/page-twins.d.ts +13 -0
- package/dist/page-twins.js +186 -0
- package/dist/pageControlSpecs-DZJ9K37m.js +134 -0
- package/dist/pageControlsBridge-0pX9s-3k.js +54 -0
- package/dist/pageControlsBridge-DAuT3w7L.d.ts +36 -0
- package/dist/panels-PfBBAToE.js +346 -0
- package/dist/parts-B7fBcw-B.js +346 -0
- package/dist/popover-Dms9Vz3j.js +3389 -0
- package/dist/preloadable-lazy-Pp47mqQ9.js +65 -0
- package/dist/proactive.d.ts +66 -0
- package/dist/proactive.js +237 -0
- package/dist/quick-config-panel-DFd77xho.js +451 -0
- package/dist/quota-DeA_CJ2e.js +175 -0
- package/dist/quota.d.ts +3 -0
- package/dist/quota.js +4 -0
- package/dist/read-only-context-Dt9N9SIG.js +18 -0
- package/dist/relative-time-Dxt8ZIIu.js +55 -0
- package/dist/results-CwK_yDxK.js +325 -0
- package/dist/rolldown-runtime-hDbaFkMy.js +18 -0
- package/dist/route-data.d.ts +12 -0
- package/dist/route-data.js +69 -0
- package/dist/route-match-C-0_EnAt.d.ts +5 -0
- package/dist/route-match-DMkUICYV.js +41 -0
- package/dist/route-preload-C4DlGoCd.js +120 -0
- package/dist/run-display-UjLAoYqQ.js +81 -0
- package/dist/run-history-arGiHzGU.js +285 -0
- package/dist/run-list-links-DJn4Mf1T.js +98 -0
- package/dist/run-mode-USmM0-Uo.js +82 -0
- package/dist/run-parity-CWXqEJqM.js +144 -0
- package/dist/runsQuota-B6SyTbne.js +100 -0
- package/dist/runsQuota-DsniKiSg.d.ts +20 -0
- package/dist/safe-expression-Cw7-SCsm.js +1251 -0
- package/dist/save-status-store-C7nEYpfb.js +631 -0
- package/dist/schedule-panel-B4GYXzXQ.js +13774 -0
- package/dist/schedule-rules-ggVKRkBH.js +358 -0
- package/dist/secrets-Re_wSiE3.js +153 -0
- package/dist/settings.d.ts +4 -0
- package/dist/settings.js +6 -0
- package/dist/shared-DAWGGMSM.js +177 -0
- package/dist/sidebar-node-editor-6eSSgCzc.js +178 -0
- package/dist/solar.generated-CGYuUQAC.js +10 -0
- package/dist/stableTabbedDialog-BBhrfXGe.js +20 -0
- package/dist/start-url-CT6Yz96K.js +24 -0
- package/dist/status-CessxGpm.js +55 -0
- package/dist/store-icon-OctYp5zP.js +155 -0
- package/dist/styles-WGmTnZ2n.js +26 -0
- package/dist/styles.css +139 -0
- package/dist/svg-spinners.generated-CIPT7IhM.js +10 -0
- package/dist/template-code-CzN6JWNV.js +191 -0
- package/dist/template-graph-DLF9dygU.js +20 -0
- package/dist/template-preview-DcIIKOOL.js +32 -0
- package/dist/template-price-CdUHZRMF.js +40 -0
- package/dist/templates.d.ts +3 -0
- package/dist/templates.js +5 -0
- package/dist/theme-provider-CntfC4_i.js +23 -0
- package/dist/transient-DgZfhDfN.js +57 -0
- package/dist/typed-calls-C5tO03wq.js +26 -0
- package/dist/ui-script-By74Guk3.js +1094 -0
- package/dist/ui-script-editor-CqPu2bCN.js +2447 -0
- package/dist/ui-step-fix-8uM2_Hft.js +67 -0
- package/dist/ui-step-fix-store-CcO1FdRx.js +19 -0
- package/dist/ui-step-run-context-o7bLE6KP.js +46 -0
- package/dist/ui-target-editor-D2JhB_lD.js +673 -0
- package/dist/uiMarkTools-CSznnO1i.js +1054 -0
- package/dist/upgradePrompt-BAFBKKW5.js +72 -0
- package/dist/use-bare-node-registry-O6mKJO_n.js +11498 -0
- package/dist/use-browser-available-hj8wc3Kb.js +241 -0
- package/dist/use-edge-mapper-schemas-Bonofxow.js +496 -0
- package/dist/use-extension-bridge-B9ZreOkQ.js +608 -0
- package/dist/use-mobile-BTqCUjzS.js +27 -0
- package/dist/use-sdk-query-C697xZVv.js +116 -0
- package/dist/use-workflow-code-editor-CFoRFrZ5.js +753 -0
- package/dist/useActionParam-B2tU2BlY.js +85 -0
- package/dist/useAgentTokenStream-Bko_J0d0.js +4217 -0
- package/dist/useBrowserClients-3v95-gSh.js +103 -0
- package/dist/useCodeWorkflowInsights-w0tz9Ap_.js +600 -0
- package/dist/useConnections-DsgEJs05.js +439 -0
- package/dist/useDebouncedValue-BFekcv6n.js +18 -0
- package/dist/useDurableParity-8fnMZmBc.js +1787 -0
- package/dist/useEntityTags-D0spL6Ut.js +460 -0
- package/dist/useExecutions-2u5nGJJk.js +681 -0
- package/dist/useFluidGridsAnalytics-VM8lAi2x.js +238 -0
- package/dist/useGlobalStoreClient-BTdhkA2I.js +24 -0
- package/dist/useHumanRequests-zlYDp3l1.js +221 -0
- package/dist/useNavigationV2-C2WeqN7d.js +29 -0
- package/dist/useNavigationV2-DANUmg12.d.ts +9 -0
- package/dist/useObservability-BRlQ0tOA.js +285 -0
- package/dist/useRequestedProposal-B7uPXfZB.js +51 -0
- package/dist/useRunHistory-CXCMUPyf.js +2759 -0
- package/dist/useRunLive-D0JvVZT2.js +1060 -0
- package/dist/useRunnerList-Dbi59i1K.js +446 -0
- package/dist/useRunners-URUc5quU.js +173 -0
- package/dist/useRunsPage-DG656UCK.js +2709 -0
- package/dist/useVariables-BIelxcWr.js +463 -0
- package/dist/useVersionHistoryData-CTjqVw7l.js +292 -0
- package/dist/useWorkflowCodeExport-pqxyLHD1.js +522 -0
- package/dist/useWorkflowListExport-hcZNvTaB.js +232 -0
- package/dist/useWorkflowOrganization-CpBbOrs7.js +1772 -0
- package/dist/useWorkflowProposal-BH0VdNMA.js +3280 -0
- package/dist/useWorkflows-Cvg-Z_IE.js +1606 -0
- package/dist/utils-fvBb5qOD.js +89 -0
- package/dist/webhook-deliveries-AvQujaZy.js +99 -0
- package/dist/workflow-builder-CJygVkVv.d.ts +2 -0
- package/dist/workflow-builder.d.ts +3 -0
- package/dist/workflow-builder.js +8 -0
- package/dist/workflow-code-transfer-Bsy0JKAZ.js +323 -0
- package/dist/workflow-embed.d.ts +3 -0
- package/dist/workflow-embed.js +4 -0
- package/dist/workflow-git-sync--K9ZsPDC.js +263 -0
- package/dist/workflow-host.d.ts +6 -0
- package/dist/workflow-host.js +11 -0
- package/dist/workflow-pages-D-7ByLTB.d.ts +68 -0
- package/dist/workflow-pages.d.ts +3 -0
- package/dist/workflow-pages.js +115 -0
- package/dist/workflow-preview-canvas-CO8yzdE3.js +848 -0
- package/dist/workflow-preview.d.ts +65 -0
- package/dist/workflow-preview.js +4 -0
- package/dist/workflow-route.d.ts +33 -0
- package/dist/workflow-route.js +4 -0
- package/dist/workflow-save-state-D0l-DkLf.js +767 -0
- package/dist/workflow-transfer-CQnQC-ke.js +104 -0
- package/dist/workflowRouteData-BkfVOc-O.js +169 -0
- package/dist/workflows-list.d.ts +10 -0
- package/dist/workflows-list.js +5 -0
- package/package.json +320 -4
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect, useMemo, useRef } from "react";
|
|
3
|
+
|
|
4
|
+
// src/assistant/liveCanvas.ts
|
|
5
|
+
/**
|
|
6
|
+
* Live canvas for the assistant's writes (BOFF-9806).
|
|
7
|
+
*
|
|
8
|
+
* When the shared assistant panel performs an approved write that changes the
|
|
9
|
+
* workflow open in the builder, the canvas takes the change without a reload.
|
|
10
|
+
* The host passes the controller from {@link useFluidGridsAssistantLiveCanvas}
|
|
11
|
+
* as the panel's `preview`; it is HEADLESS (no `render`), so the panel shows no
|
|
12
|
+
* preview toggle and only delivers events.
|
|
13
|
+
*
|
|
14
|
+
* Like the page-controls bridge, this module does NOT import
|
|
15
|
+
* `@burdenoff/fe-libs/shared/assistant/*`: the types below are structural
|
|
16
|
+
* mirrors of fe-libs' `AssistantPreviewController` / `AssistantPreviewEvent`,
|
|
17
|
+
* so a host on any fe-libs that has the preview capability can pass the
|
|
18
|
+
* controller straight in, and one on an older fe-libs is not forced to upgrade.
|
|
19
|
+
*
|
|
20
|
+
* It is also deliberately light. The controller only hands an approved write's
|
|
21
|
+
* result to whichever builder is mounted (`registerLiveCanvasHandler`, called by
|
|
22
|
+
* the builder page). With no builder on screen the result is dropped: there is
|
|
23
|
+
* no canvas to update, and the next open loads the stored workflow anyway. The
|
|
24
|
+
* builder side owns the fetch, the merge and the notices, so importing this
|
|
25
|
+
* entry never pulls the builder into the host's main chunk.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The global key of the relay slot.
|
|
29
|
+
*
|
|
30
|
+
* ★★ The slot lives on `globalThis`, not in a module variable. The host takes
|
|
31
|
+
* the controller from this package's `/assistant` entry, while the builder
|
|
32
|
+
* page can reach it through another package (microfe-workflows imports the
|
|
33
|
+
* main entry), which may resolve to a second copy or version of this SDK. Two
|
|
34
|
+
* module copies would each keep their own handler and the writes would never
|
|
35
|
+
* reach the canvas, silently. `Symbol.for` is shared by every copy.
|
|
36
|
+
*/
|
|
37
|
+
const LIVE_CANVAS_RELAY_KEY = Symbol.for("burdenoff.fluidgrids.liveCanvas");
|
|
38
|
+
function relaySlot() {
|
|
39
|
+
const scope = globalThis;
|
|
40
|
+
const existing = scope[LIVE_CANVAS_RELAY_KEY];
|
|
41
|
+
if (existing) return existing;
|
|
42
|
+
const created = { handler: null };
|
|
43
|
+
scope[LIVE_CANVAS_RELAY_KEY] = created;
|
|
44
|
+
return created;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Called by the builder page while it is mounted. The returned function
|
|
48
|
+
* removes exactly this registration (a later builder's is left in place).
|
|
49
|
+
*/
|
|
50
|
+
function registerLiveCanvasHandler(next) {
|
|
51
|
+
const slot = relaySlot();
|
|
52
|
+
slot.handler = next;
|
|
53
|
+
return () => {
|
|
54
|
+
if (slot.handler === next) slot.handler = null;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function isActionResult(event) {
|
|
58
|
+
if (typeof event !== "object" || event === null) return false;
|
|
59
|
+
const candidate = event;
|
|
60
|
+
return candidate.kind === "action-result" && typeof candidate.run === "object" && candidate.run !== null && typeof candidate.action === "object" && candidate.action !== null && typeof candidate.action.operation === "string" && typeof candidate.action.id === "string";
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Route one panel event to the mounted builder. Errors stay here: an observer
|
|
64
|
+
* must never disturb the assistant.
|
|
65
|
+
*/
|
|
66
|
+
function deliverLiveCanvasEvent(event, options = {}) {
|
|
67
|
+
try {
|
|
68
|
+
if (!isActionResult(event)) return;
|
|
69
|
+
const current = relaySlot().handler;
|
|
70
|
+
if (!current) return;
|
|
71
|
+
if (options.getActorId) {
|
|
72
|
+
const actorId = options.getActorId();
|
|
73
|
+
if (event.run.actorId !== null && actorId !== null && event.run.actorId !== actorId) return;
|
|
74
|
+
}
|
|
75
|
+
current(event);
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error("[FluidGrids] assistant live canvas:", error);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Build the headless controller outside React (one per panel mount).
|
|
82
|
+
* `options` is read on every event.
|
|
83
|
+
*/
|
|
84
|
+
function createFluidGridsAssistantLiveCanvas(options = {}) {
|
|
85
|
+
return { onEvent: (event) => deliverLiveCanvasEvent(event, options) };
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The headless preview controller for the shared assistant panel, STABLE for
|
|
89
|
+
* the life of the calling component (fe-libs requires a stable controller).
|
|
90
|
+
* The latest `getActorId` is used on every event without changing identity.
|
|
91
|
+
*
|
|
92
|
+
* const liveCanvas = useFluidGridsAssistantLiveCanvas({ getActorId });
|
|
93
|
+
* const panelProps = useMemo(() => ({ ..., preview: liveCanvas }), [liveCanvas, ...]);
|
|
94
|
+
*/
|
|
95
|
+
function useFluidGridsAssistantLiveCanvas(options = {}) {
|
|
96
|
+
const latest = useRef(options);
|
|
97
|
+
useEffect(() => {
|
|
98
|
+
latest.current = options;
|
|
99
|
+
});
|
|
100
|
+
return useMemo(() => ({ onEvent: (event) => deliverLiveCanvasEvent(event, latest.current) }), []);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { registerLiveCanvasHandler as n, useFluidGridsAssistantLiveCanvas as r, createFluidGridsAssistantLiveCanvas as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// src/icons/bundled/logos.generated.ts
|
|
3
|
+
const LOGOS_ICONS = {
|
|
4
|
+
"prefix": "logos",
|
|
5
|
+
"width": 256,
|
|
6
|
+
"height": 256,
|
|
7
|
+
"icons": {
|
|
8
|
+
"google-gmail": {
|
|
9
|
+
"body": "<defs><linearGradient id=\"SVGHzDbHcwG\" x1=\"165\" x2=\"165\" y1=\"44\" y2=\"166\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#60d673\"/><stop offset=\".17\" stop-color=\"#42c868\"/><stop offset=\".39\" stop-color=\"#0ebc5f\"/><stop offset=\".62\" stop-color=\"#00a9bb\"/><stop offset=\".86\" stop-color=\"#3c90ff\"/><stop offset=\"1\" stop-color=\"#3186ff\"/></linearGradient><linearGradient id=\"SVG41ATXboZ\" x1=\"8\" x2=\"184\" y1=\"46.13\" y2=\"46.13\" gradientUnits=\"userSpaceOnUse\"><stop offset=\".08\" stop-color=\"#ff63a0\"/><stop offset=\".3\" stop-color=\"#fc413d\"/><stop offset=\".5\" stop-color=\"#fc413d\"/><stop offset=\".65\" stop-color=\"#fc413d\"/><stop offset=\".72\" stop-color=\"#fc5c30\"/><stop offset=\".86\" stop-color=\"#feb10c\"/><stop offset=\".91\" stop-color=\"#fec700\"/><stop offset=\".96\" stop-color=\"#ffdb0f\"/></linearGradient></defs><path fill=\"url(#SVGHzDbHcwG)\" d=\"M146 44h38v110c0 6.627-5.373 12-12 12h-20a6 6 0 0 1-6-6z\" transform=\"translate(-11.636 -37.818)scale(1.45454)\"/><path fill=\"#fc413d\" d=\"M55.273 26.182H0v160c0 9.638 7.816 17.454 17.455 17.454h29.09a8.727 8.727 0 0 0 8.728-8.728z\"/><path fill=\"url(#SVG41ATXboZ)\" d=\"M39.226 30.456c-8.033-6.752-20.018-5.714-26.77 2.319c-6.752 8.032-5.714 20.017 2.319 26.77l76.078 63.949a8 8 0 0 0 10.295 0l76.078-63.95c8.032-6.752 9.07-18.737 2.318-26.77c-6.752-8.032-18.737-9.07-26.769-2.318L96 78.18z\" transform=\"translate(-11.636 -37.818)scale(1.45454)\"/>",
|
|
10
|
+
"height": 204
|
|
11
|
+
},
|
|
12
|
+
"slack": {
|
|
13
|
+
"body": "<path d=\"m163.593 101.885l6.387-14.835c6.902 5.151 16.07 7.83 25.136 7.83c6.696 0 10.92-2.576 10.92-6.49c-.103-10.92-40.074-2.37-40.383-29.773c-.103-13.907 12.26-24.621 29.772-24.621c10.405 0 20.81 2.575 28.227 8.447l-5.975 15.144c-6.799-4.327-15.246-7.417-23.282-7.417c-5.46 0-9.065 2.575-9.065 5.872c.103 10.714 40.383 4.842 40.795 31.008c0 14.217-12.053 24.21-29.36 24.21c-12.672 0-24.313-2.988-33.172-9.375m245.08-20.192l17.616 9.787c-6.593 11.847-19.161 19.78-33.687 19.78c-21.325 0-38.632-17.307-38.632-38.632s17.307-38.632 38.632-38.632c14.423 0 27.094 8.035 33.687 19.78l-17.616 9.786c-3.194-5.563-9.169-9.374-16.071-9.374c-10.199 0-18.44 8.241-18.44 18.44s8.241 18.44 18.44 18.44c6.902 0 12.877-3.812 16.07-9.375M234.984 1.957h22.046v107.86h-22.046zm199.958 0h22.046v63.356l24.93-29.772h26.991l-30.802 35.85l33.275 38.426h-28.227L456.988 77.47v32.347h-22.046zM322.55 81.9V63.665c-3.194-5.357-9.787-9.477-17.204-9.477c-10.2 0-18.44 8.241-18.44 18.44s8.24 18.44 18.44 18.44c7.417 0 14.01-3.915 17.204-9.169m0-46.358h22.046v74.173H322.55v-8.756c-3.606 6.078-12.569 10.302-21.943 10.302c-19.368 0-34.614-17.307-34.614-38.735s15.246-38.529 34.614-38.529c9.374 0 18.337 4.224 21.943 10.302z\"/><path fill=\"#e01e5a\" d=\"M27.3 81.796c0 7.52-6.078 13.599-13.599 13.599A13.585 13.585 0 0 1 .103 81.796c0-7.52 6.078-13.598 13.598-13.598H27.3zm6.799 0c0-7.52 6.078-13.598 13.598-13.598s13.599 6.078 13.599 13.598v33.996c0 7.52-6.078 13.599-13.599 13.599A13.585 13.585 0 0 1 34.1 115.792z\"/><path fill=\"#36c5f0\" d=\"M47.697 27.197A13.585 13.585 0 0 1 34.1 13.598C34.099 6.078 40.177 0 47.697 0s13.599 6.078 13.599 13.598v13.599zm0 6.902c7.52 0 13.599 6.078 13.599 13.598s-6.078 13.599-13.599 13.599H13.598A13.585 13.585 0 0 1 0 47.697C0 40.177 6.078 34.1 13.598 34.1z\"/><path fill=\"#2eb67d\" d=\"M102.194 47.697c0-7.52 6.078-13.598 13.598-13.598s13.599 6.078 13.599 13.598s-6.078 13.599-13.599 13.599h-13.598zm-6.8 0c0 7.52-6.077 13.599-13.598 13.599a13.585 13.585 0 0 1-13.598-13.599V13.598C68.198 6.078 74.276 0 81.796 0s13.599 6.078 13.599 13.598z\"/><path fill=\"#ecb22e\" d=\"M81.796 102.194c7.52 0 13.599 6.078 13.599 13.598s-6.078 13.599-13.599 13.599a13.585 13.585 0 0 1-13.598-13.599v-13.598zm0-6.8a13.585 13.585 0 0 1-13.598-13.598c0-7.52 6.078-13.598 13.598-13.598h34.1c7.52 0 13.598 6.078 13.598 13.598s-6.078 13.599-13.599 13.599z\"/>",
|
|
14
|
+
"width": 512,
|
|
15
|
+
"height": 130
|
|
16
|
+
},
|
|
17
|
+
"slack-icon": { "body": "<path fill=\"#e01e5a\" d=\"M53.841 161.32c0 14.832-11.987 26.82-26.819 26.82S.203 176.152.203 161.32c0-14.831 11.987-26.818 26.82-26.818H53.84zm13.41 0c0-14.831 11.987-26.818 26.819-26.818s26.819 11.987 26.819 26.819v67.047c0 14.832-11.987 26.82-26.82 26.82c-14.83 0-26.818-11.988-26.818-26.82z\"/><path fill=\"#36c5f0\" d=\"M94.07 53.638c-14.832 0-26.82-11.987-26.82-26.819S79.239 0 94.07 0s26.819 11.987 26.819 26.819v26.82zm0 13.613c14.832 0 26.819 11.987 26.819 26.819s-11.987 26.819-26.82 26.819H26.82C11.987 120.889 0 108.902 0 94.069c0-14.83 11.987-26.818 26.819-26.818z\"/><path fill=\"#2eb67d\" d=\"M201.55 94.07c0-14.832 11.987-26.82 26.818-26.82s26.82 11.988 26.82 26.82s-11.988 26.819-26.82 26.819H201.55zm-13.41 0c0 14.832-11.988 26.819-26.82 26.819c-14.831 0-26.818-11.987-26.818-26.82V26.82C134.502 11.987 146.489 0 161.32 0s26.819 11.987 26.819 26.819z\"/><path fill=\"#ecb22e\" d=\"M161.32 201.55c14.832 0 26.82 11.987 26.82 26.818s-11.988 26.82-26.82 26.82c-14.831 0-26.818-11.988-26.818-26.82V201.55zm0-13.41c-14.831 0-26.818-11.988-26.818-26.82c0-14.831 11.987-26.818 26.819-26.818h67.25c14.832 0 26.82 11.987 26.82 26.819s-11.988 26.819-26.82 26.819z\"/>" }
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { LOGOS_ICONS };
|
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { s as throwIfResultError, t as describeOperationError } from "./errors-ClKb5sEt.js";
|
|
3
|
+
import { n as getFluidGridsClient } from "./client-holder-C0M5Cfwl.js";
|
|
4
|
+
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
5
|
+
import { U as useFlowStore } from "./node-operation-selection-CdV3KI_V.js";
|
|
6
|
+
import { t as Icon } from "./Icon-BtQ0HXLh.js";
|
|
7
|
+
import { pt as latestNodeLog } from "./use-bare-node-registry-O6mKJO_n.js";
|
|
8
|
+
import { a as PinNodeDataDocument, r as UnpinNodeDataDocument, t as WorkflowPinnedDataDocument } from "./WorkflowPinnedDataDocument-BODT5omd.js";
|
|
9
|
+
import { d as isSandboxRuntimeExhausted } from "./quota-DeA_CJ2e.js";
|
|
10
|
+
import { t as SandboxRuntimeExhaustedNotice } from "./SandboxRuntimeExhaustedNotice-BFOIF93C.js";
|
|
11
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useShallow } from "zustand/shallow";
|
|
14
|
+
import { toast } from "sonner";
|
|
15
|
+
import { cn } from "@burdenoff/fe-libs/utils";
|
|
16
|
+
import { Button, EmptyState } from "@burdenoff/fe-libs/ui";
|
|
17
|
+
|
|
18
|
+
// src/builder/hooks/use-toggle-pinned-data.ts
|
|
19
|
+
/**
|
|
20
|
+
* Pin / unpin a node's output from the canvas (BOFF-9734: the right-click
|
|
21
|
+
* menu's "Pin data" and the P key), with the same mutations as the node
|
|
22
|
+
* panel's Pin button (BOFF-7511). As in n8n, a node is pinned with the output
|
|
23
|
+
* of its last run in this editor; one that has not run yet has nothing to
|
|
24
|
+
* pin, so the person is told to run the step first. The pinned state is read
|
|
25
|
+
* from the service each time, so the canvas never acts on a stale copy, and
|
|
26
|
+
* the result is kept in the flow store (`workflow.pinnedNodeData`).
|
|
27
|
+
*/
|
|
28
|
+
/** The service's `pinnedNodeData` JSON as the store keeps it. */
|
|
29
|
+
function asPinnedNodeData(value) {
|
|
30
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return {};
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
/** The output a pin stores: the node's last run here, or null when it has none. */
|
|
34
|
+
function pinnableOutput(logs, nodeId, runId) {
|
|
35
|
+
const output = latestNodeLog(logs, nodeId, runId)?.output;
|
|
36
|
+
if (!output || typeof output !== "object" || Array.isArray(output)) return null;
|
|
37
|
+
return Object.keys(output).length > 0 ? output : null;
|
|
38
|
+
}
|
|
39
|
+
async function readPinnedNodeData(id) {
|
|
40
|
+
return asPinnedNodeData(throwIfResultError(await getFluidGridsClient().query({
|
|
41
|
+
query: WorkflowPinnedDataDocument,
|
|
42
|
+
variables: { id },
|
|
43
|
+
fetchPolicy: "network-only"
|
|
44
|
+
})).data?.workflowDefinition?.pinnedNodeData);
|
|
45
|
+
}
|
|
46
|
+
async function pin(id, nodeId, data) {
|
|
47
|
+
return asPinnedNodeData(throwIfResultError(await getFluidGridsClient().mutate({
|
|
48
|
+
mutation: PinNodeDataDocument,
|
|
49
|
+
variables: {
|
|
50
|
+
id,
|
|
51
|
+
nodeId,
|
|
52
|
+
data
|
|
53
|
+
}
|
|
54
|
+
})).data?.pinNodeData?.pinnedNodeData);
|
|
55
|
+
}
|
|
56
|
+
async function unpin(id, nodeId) {
|
|
57
|
+
return asPinnedNodeData(throwIfResultError(await getFluidGridsClient().mutate({
|
|
58
|
+
mutation: UnpinNodeDataDocument,
|
|
59
|
+
variables: {
|
|
60
|
+
id,
|
|
61
|
+
nodeId
|
|
62
|
+
}
|
|
63
|
+
})).data?.unpinNodeData?.pinnedNodeData);
|
|
64
|
+
}
|
|
65
|
+
/** `toggle(nodeId)`: pin the node's last output, or unpin it when pinned. */
|
|
66
|
+
function useTogglePinnedData() {
|
|
67
|
+
const tr = useTr();
|
|
68
|
+
const setWorkflow = useFlowStore((s) => s.actions.setWorkflow);
|
|
69
|
+
return useCallback(async (nodeId) => {
|
|
70
|
+
const { workflow, execution } = useFlowStore.getState();
|
|
71
|
+
const id = workflow.dbId;
|
|
72
|
+
if (!id) {
|
|
73
|
+
toast.info(tr("fluidgrids.builder.pinData.saveFirst", "Save the workflow first, then pin data."));
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
if ((await readPinnedNodeData(id))[nodeId]) {
|
|
78
|
+
setWorkflow({ pinnedNodeData: await unpin(id, nodeId) });
|
|
79
|
+
toast.success(tr("fluidgrids.builder.pinData.unpinned", "Output unpinned"));
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const output = pinnableOutput(execution.logs, nodeId, execution.currentRunId);
|
|
83
|
+
if (!output) {
|
|
84
|
+
toast.info(tr("fluidgrids.builder.pinData.runFirst", "Run this step first, then pin its output."));
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
setWorkflow({ pinnedNodeData: await pin(id, nodeId, output) });
|
|
88
|
+
toast.success(tr("fluidgrids.builder.pinData.pinned", "Output pinned: test runs replay it instead of calling the node."));
|
|
89
|
+
} catch (error) {
|
|
90
|
+
toast.error(tr("fluidgrids.builder.pinData.failed", "Couldn't change pinned data"), { description: describeOperationError(error) });
|
|
91
|
+
}
|
|
92
|
+
}, [setWorkflow, tr]);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// src/builder/components/flow-builder/components/logs-panel/logs-panel.tsx
|
|
96
|
+
const JsonView = ({ data }) => {
|
|
97
|
+
const tr = useTr();
|
|
98
|
+
if (!data) return /* @__PURE__ */ jsx("div", {
|
|
99
|
+
className: "text-text-muted p-4",
|
|
100
|
+
children: tr("fluidgrids.builder.logsPanel.jsonViewNoData", "No data")
|
|
101
|
+
});
|
|
102
|
+
return /* @__PURE__ */ jsx("pre", {
|
|
103
|
+
className: "text-xs overflow-auto p-4 bg-card/50 rounded h-full whitespace-pre-wrap [overflow-wrap:anywhere]",
|
|
104
|
+
children: JSON.stringify(data, null, 2)
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
const TableView = ({ data }) => {
|
|
108
|
+
const tr = useTr();
|
|
109
|
+
if (!data) return /* @__PURE__ */ jsx("div", {
|
|
110
|
+
className: "text-text-muted p-4",
|
|
111
|
+
children: tr("fluidgrids.builder.logsPanel.tableViewNoData", "No data")
|
|
112
|
+
});
|
|
113
|
+
const entries = Object.entries(data);
|
|
114
|
+
if (entries.length === 0) return /* @__PURE__ */ jsx("div", {
|
|
115
|
+
className: "text-text-muted p-4",
|
|
116
|
+
children: tr("fluidgrids.builder.logsPanel.tableViewEmptyObject", "Empty object")
|
|
117
|
+
});
|
|
118
|
+
return /* @__PURE__ */ jsx("div", {
|
|
119
|
+
className: "overflow-auto h-full",
|
|
120
|
+
children: /* @__PURE__ */ jsxs("table", {
|
|
121
|
+
className: "w-full text-xs",
|
|
122
|
+
children: [/* @__PURE__ */ jsx("thead", {
|
|
123
|
+
className: "bg-card-foreground/10 sticky top-0",
|
|
124
|
+
children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
125
|
+
/* @__PURE__ */ jsx("th", {
|
|
126
|
+
className: "text-left p-2",
|
|
127
|
+
children: tr("fluidgrids.builder.logsPanel.tableColumnField", "Field")
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsx("th", {
|
|
130
|
+
className: "text-left p-2",
|
|
131
|
+
children: tr("fluidgrids.builder.logsPanel.tableColumnType", "Type")
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ jsx("th", {
|
|
134
|
+
className: "text-left p-2",
|
|
135
|
+
children: tr("fluidgrids.builder.logsPanel.tableColumnValue", "Value")
|
|
136
|
+
})
|
|
137
|
+
] })
|
|
138
|
+
}), /* @__PURE__ */ jsx("tbody", { children: entries.map(([key, value]) => {
|
|
139
|
+
const text = typeof value === "object" ? JSON.stringify(value) : String(value);
|
|
140
|
+
return /* @__PURE__ */ jsxs("tr", {
|
|
141
|
+
className: "border-b border-card-foreground/10",
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ jsx("td", {
|
|
144
|
+
className: "p-2 font-medium text-accent [overflow-wrap:anywhere]",
|
|
145
|
+
children: key
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ jsx("td", {
|
|
148
|
+
className: "p-2 text-secondary",
|
|
149
|
+
children: typeof value
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ jsx("td", {
|
|
152
|
+
className: "p-2",
|
|
153
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
154
|
+
className: "truncate max-w-[200px]",
|
|
155
|
+
title: text,
|
|
156
|
+
children: text
|
|
157
|
+
})
|
|
158
|
+
})
|
|
159
|
+
]
|
|
160
|
+
}, key);
|
|
161
|
+
}) })]
|
|
162
|
+
})
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
const LogListItem = ({ log, isSelected, onClick }) => {
|
|
166
|
+
const statusIcon = {
|
|
167
|
+
pending: "mdi:clock-outline",
|
|
168
|
+
running: "svg-spinners:ring-resize",
|
|
169
|
+
completed: "mdi:check-circle",
|
|
170
|
+
failed: "mdi:close-circle"
|
|
171
|
+
}[log.status];
|
|
172
|
+
const statusColor = {
|
|
173
|
+
pending: "text-text-muted",
|
|
174
|
+
running: "text-accent",
|
|
175
|
+
completed: "text-[var(--color-status-success-text)]",
|
|
176
|
+
failed: "text-[var(--color-status-error-text)]"
|
|
177
|
+
}[log.status];
|
|
178
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
179
|
+
onClick,
|
|
180
|
+
title: log.nodeName,
|
|
181
|
+
className: cn("shrink-0 max-w-48 text-left p-2 flex items-center gap-2 text-xs transition-colors md:w-full md:max-w-none", isSelected ? "bg-primary/20 border-b-2 border-primary md:border-b-0 md:border-l-2" : "hover:bg-card-foreground/10"),
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
184
|
+
icon: statusIcon,
|
|
185
|
+
className: cn("size-4 shrink-0", statusColor)
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ jsx("span", {
|
|
188
|
+
className: "truncate flex-1",
|
|
189
|
+
children: log.nodeName
|
|
190
|
+
}),
|
|
191
|
+
log.duration && /* @__PURE__ */ jsxs("span", {
|
|
192
|
+
className: "shrink-0 text-text-muted text-[10px]",
|
|
193
|
+
children: [log.duration.toFixed(2), "s"]
|
|
194
|
+
})
|
|
195
|
+
]
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
const LogDetailView = ({ log }) => {
|
|
199
|
+
const tr = useTr();
|
|
200
|
+
const [activeTab, setActiveTab] = useState("output");
|
|
201
|
+
const [viewMode, setViewMode] = useState("json");
|
|
202
|
+
if (!log) return /* @__PURE__ */ jsx("div", {
|
|
203
|
+
"data-testid": "logs-panel-detail",
|
|
204
|
+
className: "min-w-0 flex-1 flex items-center justify-center text-text-muted text-sm",
|
|
205
|
+
children: tr("fluidgrids.builder.logsPanel.detailEmptyState", "Select a step to view details")
|
|
206
|
+
});
|
|
207
|
+
const statusColor = {
|
|
208
|
+
pending: "text-text-muted",
|
|
209
|
+
running: "text-accent",
|
|
210
|
+
completed: "text-[var(--color-status-success-text)]",
|
|
211
|
+
failed: "text-[var(--color-status-error-text)]"
|
|
212
|
+
}[log.status];
|
|
213
|
+
const data = activeTab === "input" ? log.inputArgs : log.output;
|
|
214
|
+
const itemCount = data ? Object.keys(data).length : 0;
|
|
215
|
+
const resumeUrl = typeof log.output?._resumeUrl === "string" ? log.output._resumeUrl : null;
|
|
216
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
217
|
+
"data-testid": "logs-panel-detail",
|
|
218
|
+
className: "min-w-0 min-h-0 flex-1 flex flex-col",
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ jsxs("div", {
|
|
221
|
+
className: "flex items-center justify-between gap-2 p-2 border-b border-card-foreground/10",
|
|
222
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
223
|
+
className: "flex min-w-0 items-center gap-2",
|
|
224
|
+
children: [
|
|
225
|
+
/* @__PURE__ */ jsx("span", {
|
|
226
|
+
className: "truncate text-sm font-medium",
|
|
227
|
+
title: log.nodeName,
|
|
228
|
+
children: log.nodeName
|
|
229
|
+
}),
|
|
230
|
+
/* @__PURE__ */ jsx("span", {
|
|
231
|
+
className: cn("shrink-0 whitespace-nowrap text-xs capitalize", statusColor),
|
|
232
|
+
children: log.status === "completed" ? tr("fluidgrids.builder.logsPanel.statusSuccess", "Success") : log.status
|
|
233
|
+
}),
|
|
234
|
+
log.duration && /* @__PURE__ */ jsxs("span", {
|
|
235
|
+
className: "shrink-0 whitespace-nowrap text-xs text-text-muted",
|
|
236
|
+
children: [
|
|
237
|
+
"in ",
|
|
238
|
+
(log.duration * 1e3).toFixed(0),
|
|
239
|
+
"ms"
|
|
240
|
+
]
|
|
241
|
+
})
|
|
242
|
+
]
|
|
243
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
244
|
+
className: "flex shrink-0 items-center gap-1",
|
|
245
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
246
|
+
variant: viewMode === "json" ? "secondary" : "ghost",
|
|
247
|
+
size: "icon-sm",
|
|
248
|
+
className: "lg:size-6",
|
|
249
|
+
onClick: () => setViewMode("json"),
|
|
250
|
+
title: tr("fluidgrids.builder.logsPanel.jsonViewTooltip", "JSON View"),
|
|
251
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
252
|
+
icon: "mdi:code-json",
|
|
253
|
+
className: "size-3"
|
|
254
|
+
})
|
|
255
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
256
|
+
variant: viewMode === "table" ? "secondary" : "ghost",
|
|
257
|
+
size: "icon-sm",
|
|
258
|
+
className: "lg:size-6",
|
|
259
|
+
onClick: () => setViewMode("table"),
|
|
260
|
+
title: tr("fluidgrids.builder.logsPanel.tableViewTooltip", "Table View"),
|
|
261
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
262
|
+
icon: "mdi:table",
|
|
263
|
+
className: "size-3"
|
|
264
|
+
})
|
|
265
|
+
})]
|
|
266
|
+
})]
|
|
267
|
+
}),
|
|
268
|
+
resumeUrl && /* @__PURE__ */ jsxs("div", {
|
|
269
|
+
className: "flex items-center gap-2 border-b border-card-foreground/10 px-2 py-2",
|
|
270
|
+
children: [
|
|
271
|
+
/* @__PURE__ */ jsx("span", {
|
|
272
|
+
className: "shrink-0 text-[11px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",
|
|
273
|
+
children: tr("fluidgrids.builder.logsPanel.resumeUrl", "Resume URL")
|
|
274
|
+
}),
|
|
275
|
+
/* @__PURE__ */ jsx("input", {
|
|
276
|
+
readOnly: true,
|
|
277
|
+
value: resumeUrl,
|
|
278
|
+
onFocus: (e) => e.currentTarget.select(),
|
|
279
|
+
className: "min-w-0 flex-1 rounded-md border border-border bg-muted/40 px-2 py-1 font-mono text-[11px] outline-none focus:border-primary"
|
|
280
|
+
}),
|
|
281
|
+
/* @__PURE__ */ jsx("button", {
|
|
282
|
+
type: "button",
|
|
283
|
+
onClick: () => void navigator.clipboard?.writeText(resumeUrl),
|
|
284
|
+
className: "shrink-0 rounded-md border border-border px-2 py-1 text-[11px] font-medium hover:bg-muted",
|
|
285
|
+
children: tr("fluidgrids.builder.logsPanel.copy", "Copy")
|
|
286
|
+
})
|
|
287
|
+
]
|
|
288
|
+
}),
|
|
289
|
+
/* @__PURE__ */ jsxs("div", {
|
|
290
|
+
className: "flex border-b border-card-foreground/10",
|
|
291
|
+
children: [
|
|
292
|
+
/* @__PURE__ */ jsx("button", {
|
|
293
|
+
className: cn("px-4 py-2 text-xs font-medium transition-colors duration-200", activeTab === "input" ? "border-b-2 border-primary text-primary" : "text-secondary hover:text-primary"),
|
|
294
|
+
onClick: () => setActiveTab("input"),
|
|
295
|
+
children: tr("fluidgrids.builder.logsPanel.tabInput", "Input")
|
|
296
|
+
}),
|
|
297
|
+
/* @__PURE__ */ jsx("button", {
|
|
298
|
+
className: cn("px-4 py-2 text-xs font-medium transition-colors duration-200", activeTab === "output" ? "border-b-2 border-primary text-primary" : "text-secondary hover:text-primary"),
|
|
299
|
+
onClick: () => setActiveTab("output"),
|
|
300
|
+
children: tr("fluidgrids.builder.logsPanel.tabOutput", "Output")
|
|
301
|
+
}),
|
|
302
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1" }),
|
|
303
|
+
/* @__PURE__ */ jsxs("span", {
|
|
304
|
+
className: "px-4 py-2 text-xs text-text-muted",
|
|
305
|
+
children: [
|
|
306
|
+
itemCount,
|
|
307
|
+
" ",
|
|
308
|
+
itemCount !== 1 ? tr("fluidgrids.builder.logsPanel.itemCountOther", "items") : tr("fluidgrids.builder.logsPanel.itemCountOne", "item")
|
|
309
|
+
]
|
|
310
|
+
})
|
|
311
|
+
]
|
|
312
|
+
}),
|
|
313
|
+
/* @__PURE__ */ jsx("div", {
|
|
314
|
+
className: "min-w-0 min-h-0 flex-1 overflow-auto",
|
|
315
|
+
children: log.error && activeTab === "output" ? /* @__PURE__ */ jsxs("div", {
|
|
316
|
+
className: "p-4 bg-[var(--color-status-error-bg-subtle)] text-[var(--color-status-error-text)] text-xs [overflow-wrap:anywhere]",
|
|
317
|
+
children: [
|
|
318
|
+
/* @__PURE__ */ jsx("div", {
|
|
319
|
+
className: "font-medium mb-1",
|
|
320
|
+
children: tr("fluidgrids.builder.logsPanel.errorHeading", "Error:")
|
|
321
|
+
}),
|
|
322
|
+
log.error,
|
|
323
|
+
isSandboxRuntimeExhausted(log.errorType) && /* @__PURE__ */ jsx(SandboxRuntimeExhaustedNotice, {
|
|
324
|
+
compact: true,
|
|
325
|
+
className: "mt-3"
|
|
326
|
+
})
|
|
327
|
+
]
|
|
328
|
+
}) : viewMode === "json" ? /* @__PURE__ */ jsx(JsonView, { data }) : /* @__PURE__ */ jsx(TableView, { data })
|
|
329
|
+
})
|
|
330
|
+
]
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
const MIN_PANEL_HEIGHT = 150;
|
|
334
|
+
const MAX_PANEL_HEIGHT = 600;
|
|
335
|
+
/**
|
|
336
|
+
* The lowest height a drag may set: 150px, or the panel's CSS min-height
|
|
337
|
+
* when that is higher (below md, where the steps stack above the detail).
|
|
338
|
+
*/
|
|
339
|
+
function panelFloor(panel) {
|
|
340
|
+
if (!panel) return MIN_PANEL_HEIGHT;
|
|
341
|
+
const css = Number.parseFloat(getComputedStyle(panel).minHeight);
|
|
342
|
+
return Number.isFinite(css) ? Math.min(MAX_PANEL_HEIGHT, Math.max(MIN_PANEL_HEIGHT, css)) : MIN_PANEL_HEIGHT;
|
|
343
|
+
}
|
|
344
|
+
const LogsPanel = () => {
|
|
345
|
+
const tr = useTr();
|
|
346
|
+
const [logs, selectedLogId, logFocus, panelExpanded, selectLog, togglePanel, clearLogs] = useFlowStore(useShallow((s) => [
|
|
347
|
+
s.execution.logs,
|
|
348
|
+
s.execution.selectedLogId,
|
|
349
|
+
s.execution.logFocus,
|
|
350
|
+
s.execution.panelExpanded,
|
|
351
|
+
s.actions.execution.selectLog,
|
|
352
|
+
s.actions.execution.togglePanel,
|
|
353
|
+
s.actions.execution.clearLogs
|
|
354
|
+
]));
|
|
355
|
+
const selectedLog = logs.find((l) => l.id === selectedLogId) || null;
|
|
356
|
+
const [panelHeight, setPanelHeight] = useState(350);
|
|
357
|
+
const panelRef = useRef(null);
|
|
358
|
+
const isResizing = useRef(false);
|
|
359
|
+
const startY = useRef(0);
|
|
360
|
+
const startHeight = useRef(0);
|
|
361
|
+
const minHeight = useRef(MIN_PANEL_HEIGHT);
|
|
362
|
+
const handlePointerDown = useCallback((e) => {
|
|
363
|
+
e.preventDefault();
|
|
364
|
+
isResizing.current = true;
|
|
365
|
+
startY.current = e.clientY;
|
|
366
|
+
minHeight.current = panelFloor(panelRef.current);
|
|
367
|
+
startHeight.current = Math.max(panelHeight, minHeight.current);
|
|
368
|
+
document.body.style.cursor = "ns-resize";
|
|
369
|
+
document.body.style.userSelect = "none";
|
|
370
|
+
}, [panelHeight]);
|
|
371
|
+
useEffect(() => {
|
|
372
|
+
const handlePointerMove = (e) => {
|
|
373
|
+
if (!isResizing.current) return;
|
|
374
|
+
const deltaY = startY.current - e.clientY;
|
|
375
|
+
const newHeight = Math.max(minHeight.current, Math.min(MAX_PANEL_HEIGHT, startHeight.current + deltaY));
|
|
376
|
+
setPanelHeight(newHeight);
|
|
377
|
+
};
|
|
378
|
+
const handlePointerUp = () => {
|
|
379
|
+
isResizing.current = false;
|
|
380
|
+
document.body.style.cursor = "";
|
|
381
|
+
document.body.style.userSelect = "";
|
|
382
|
+
};
|
|
383
|
+
document.addEventListener("pointermove", handlePointerMove);
|
|
384
|
+
document.addEventListener("pointerup", handlePointerUp);
|
|
385
|
+
document.addEventListener("pointercancel", handlePointerUp);
|
|
386
|
+
return () => {
|
|
387
|
+
document.removeEventListener("pointermove", handlePointerMove);
|
|
388
|
+
document.removeEventListener("pointerup", handlePointerUp);
|
|
389
|
+
document.removeEventListener("pointercancel", handlePointerUp);
|
|
390
|
+
};
|
|
391
|
+
}, []);
|
|
392
|
+
if (!panelExpanded && logs.length === 0) return null;
|
|
393
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
394
|
+
ref: panelRef,
|
|
395
|
+
className: cn("relative min-w-0 border-t border-card-foreground/10 bg-card/95 backdrop-blur-sm transition-[height] duration-150", !panelExpanded && "h-10", panelExpanded && "max-md:min-h-[min(20rem,60dvh)]"),
|
|
396
|
+
style: { height: panelExpanded ? panelHeight : 40 },
|
|
397
|
+
children: [
|
|
398
|
+
panelExpanded && /* @__PURE__ */ jsx("div", {
|
|
399
|
+
"data-testid": "logs-panel-resize",
|
|
400
|
+
className: "absolute top-0 left-0 right-0 h-1.5 max-lg:-top-1.5 max-lg:h-3 touch-none cursor-ns-resize bg-transparent hover:bg-primary/30 transition-colors z-10 group",
|
|
401
|
+
onPointerDown: handlePointerDown,
|
|
402
|
+
children: /* @__PURE__ */ jsx("div", { className: "absolute top-0.5 max-lg:top-2 left-1/2 -translate-x-1/2 w-8 h-0.5 rounded-full bg-card-foreground/20 group-hover:bg-primary/50 transition-colors" })
|
|
403
|
+
}),
|
|
404
|
+
/* @__PURE__ */ jsxs("div", {
|
|
405
|
+
className: "h-10 flex items-center justify-between px-3 border-b border-card-foreground/10",
|
|
406
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
407
|
+
className: "flex items-center gap-2",
|
|
408
|
+
children: [
|
|
409
|
+
/* @__PURE__ */ jsx(Button, {
|
|
410
|
+
variant: "ghost",
|
|
411
|
+
size: "icon",
|
|
412
|
+
className: "size-6",
|
|
413
|
+
onClick: togglePanel,
|
|
414
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
415
|
+
icon: panelExpanded ? "mdi:chevron-down" : "mdi:chevron-up",
|
|
416
|
+
className: "size-4"
|
|
417
|
+
})
|
|
418
|
+
}),
|
|
419
|
+
/* @__PURE__ */ jsx("span", {
|
|
420
|
+
className: "text-sm font-medium",
|
|
421
|
+
children: tr("fluidgrids.builder.logsPanel.title", "Logs")
|
|
422
|
+
}),
|
|
423
|
+
logs.length > 0 && /* @__PURE__ */ jsxs("span", {
|
|
424
|
+
className: "text-xs text-text-muted",
|
|
425
|
+
children: [
|
|
426
|
+
"(",
|
|
427
|
+
logs.length,
|
|
428
|
+
" ",
|
|
429
|
+
tr("fluidgrids.builder.logsPanel.stepsSuffix", "steps"),
|
|
430
|
+
")"
|
|
431
|
+
]
|
|
432
|
+
})
|
|
433
|
+
]
|
|
434
|
+
}), logs.length > 0 && /* @__PURE__ */ jsxs(Button, {
|
|
435
|
+
variant: "ghost",
|
|
436
|
+
size: "sm",
|
|
437
|
+
className: "h-6 text-xs",
|
|
438
|
+
onClick: clearLogs,
|
|
439
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
440
|
+
icon: "mdi:trash-can-outline",
|
|
441
|
+
className: "size-3 mr-1"
|
|
442
|
+
}), tr("fluidgrids.builder.logsPanel.clearExecution", "Clear execution")]
|
|
443
|
+
})]
|
|
444
|
+
}),
|
|
445
|
+
panelExpanded && /* @__PURE__ */ jsxs("div", {
|
|
446
|
+
className: "flex h-[calc(100%-40px)] min-w-0 flex-col md:flex-row",
|
|
447
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
448
|
+
"data-testid": "logs-panel-steps",
|
|
449
|
+
className: "flex max-h-18 shrink-0 flex-wrap overflow-y-auto border-b border-card-foreground/10 md:block md:max-h-none md:w-[200px] md:border-b-0 md:border-r",
|
|
450
|
+
children: logs.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
451
|
+
kind: "first-use",
|
|
452
|
+
illustration: "documents",
|
|
453
|
+
size: "inline",
|
|
454
|
+
compact: true,
|
|
455
|
+
icon: null,
|
|
456
|
+
title: tr("fluidgrids.builder.logsPanel.emptyState", "No execution logs yet")
|
|
457
|
+
}) : logs.map((log) => /* @__PURE__ */ jsx(LogListItem, {
|
|
458
|
+
log,
|
|
459
|
+
isSelected: log.id === selectedLogId,
|
|
460
|
+
onClick: () => selectLog(log.id)
|
|
461
|
+
}, log.id))
|
|
462
|
+
}), /* @__PURE__ */ jsx(LogDetailView, { log: selectedLog }, logFocus)]
|
|
463
|
+
})
|
|
464
|
+
]
|
|
465
|
+
});
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
export { useTogglePinnedData as a, asPinnedNodeData as i, LogsPanel as n, TableView as r, JsonView as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// src/icons/bundled/lucide.generated.ts
|
|
3
|
+
const LUCIDE_ICONS = {
|
|
4
|
+
"prefix": "lucide",
|
|
5
|
+
"width": 24,
|
|
6
|
+
"height": 24,
|
|
7
|
+
"icons": {
|
|
8
|
+
"triangle-exclamation-point": { "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01\"/>" },
|
|
9
|
+
"circle-check": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m16 9l-5.5 5.5L8 12\"/></g>" },
|
|
10
|
+
"copy": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"/><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"/></g>" },
|
|
11
|
+
"key-round": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z\"/><circle cx=\"16.5\" cy=\"7.5\" r=\".5\" fill=\"currentColor\"/></g>" },
|
|
12
|
+
"loader-circle": { "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21 12a9 9 0 1 1-6.219-8.56\"/>" },
|
|
13
|
+
"plus": { "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7v14\"/>" },
|
|
14
|
+
"refresh-cw": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8\"/><path d=\"M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16\"/><path d=\"M8 16H3v5\"/></g>" },
|
|
15
|
+
"rotate-ccw": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8\"/><path d=\"M3 3v5h5\"/></g>" },
|
|
16
|
+
"sliders-horizontal": { "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10 5H3m9 14H3M14 3v4m2 10v4m5-9h-9m9 7h-5m5-14h-7m-6 5v4m0-2H3\"/>" },
|
|
17
|
+
"sparkles": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594zM20 2v4m2-2h-4\"/><circle cx=\"4\" cy=\"20\" r=\"2\"/></g>" },
|
|
18
|
+
"trash": { "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"/>" },
|
|
19
|
+
"x": { "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M18 6L6 18M6 6l12 12\"/>" }
|
|
20
|
+
},
|
|
21
|
+
"aliases": {
|
|
22
|
+
"alert-triangle": { "parent": "triangle-exclamation-point" },
|
|
23
|
+
"check-circle-2": { "parent": "circle-check" },
|
|
24
|
+
"loader-2": { "parent": "loader-circle" },
|
|
25
|
+
"trash-2": { "parent": "trash" }
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { LUCIDE_ICONS };
|