@ultrst-armada/floks 1.13.16 → 1.13.19
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/.krusbl-release-attestation.json +3 -3
- package/package.json +14 -4
- package/packages/canvas-ui/dist/MovableSocketView.d.ts +42 -0
- package/packages/canvas-ui/dist/NodeCard.d.ts +43 -0
- package/packages/canvas-ui/dist/NodeDetailsPanel.d.ts +11 -0
- package/packages/canvas-ui/dist/NodeEmblem.d.ts +5 -0
- package/packages/canvas-ui/dist/NodeGraphCanvas.d.ts +17 -0
- package/packages/canvas-ui/dist/Viewer2DNodes.d.ts +30 -0
- package/packages/canvas-ui/dist/WireRenderer.d.ts +23 -0
- package/packages/canvas-ui/dist/aiko/AikoModule.d.ts +62 -0
- package/packages/canvas-ui/dist/aiko/AikoModule.test.d.ts +1 -0
- package/packages/canvas-ui/dist/aiko/index.d.ts +1 -65
- package/packages/canvas-ui/dist/authoring/UiAuthoringBindingEditor.d.ts +6 -0
- package/packages/canvas-ui/dist/authoring/UiAuthoringBindingEditor.test.d.ts +1 -0
- package/packages/canvas-ui/dist/authoring/UiAuthoringInspector.d.ts +6 -0
- package/packages/canvas-ui/dist/authoring/UiAuthoringPreview.d.ts +8 -0
- package/packages/canvas-ui/dist/authoring/UiAuthoringPrimitives.test.d.ts +1 -0
- package/packages/canvas-ui/dist/authoring/UiAuthoringTree.d.ts +7 -0
- package/packages/canvas-ui/dist/authoring/UiAuthoringValidationPanel.d.ts +8 -0
- package/packages/canvas-ui/dist/authoring/UiAuthoringWorkspace.d.ts +8 -0
- package/packages/canvas-ui/dist/authoring/authoringModel.d.ts +5 -0
- package/packages/canvas-ui/dist/authoring/authoringModel.test.d.ts +1 -0
- package/packages/canvas-ui/dist/authoring/index.d.ts +8 -97
- package/packages/canvas-ui/dist/authoring/types.d.ts +50 -0
- package/packages/canvas-ui/dist/canvas/CanvasViewport.d.ts +11 -0
- package/packages/canvas-ui/dist/canvas/InfiniteCanvas.d.ts +11 -0
- package/packages/canvas-ui/dist/canvas/MiniMap.d.ts +9 -0
- package/packages/canvas-ui/dist/canvas/index.d.ts +5 -54
- package/packages/canvas-ui/dist/canvas/types.d.ts +14 -0
- package/packages/canvas-ui/dist/canvas/useCanvas.d.ts +9 -0
- package/packages/canvas-ui/dist/dock/DockBar.d.ts +11 -0
- package/packages/canvas-ui/dist/dock/DockItem.d.ts +8 -0
- package/packages/canvas-ui/dist/dock/index.d.ts +4 -37
- package/packages/canvas-ui/dist/dock/types.d.ts +9 -0
- package/packages/canvas-ui/dist/dock/useDock.d.ts +8 -0
- package/packages/canvas-ui/dist/editor/MonacoEditor.d.ts +18 -0
- package/packages/canvas-ui/dist/editor/MonacoEditor.test.d.ts +1 -0
- package/packages/canvas-ui/dist/editor/index.d.ts +4 -55
- package/packages/canvas-ui/dist/editor/themes.d.ts +22 -0
- package/packages/canvas-ui/dist/editor/types.d.ts +8 -0
- package/packages/canvas-ui/dist/editor/useMonaco.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/FodModule.d.ts +57 -0
- package/packages/canvas-ui/dist/fod/FodModule.test.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/index.d.ts +1 -59
- package/packages/canvas-ui/dist/frnl-editable-node-graph/FrnlEditableNodeGraph.d.ts +107 -0
- package/packages/canvas-ui/dist/frnl-editable-node-graph/FrnlEditableNodeGraph.test.d.ts +1 -0
- package/packages/canvas-ui/dist/frnl-editable-node-graph/index.d.ts +1 -110
- package/packages/canvas-ui/dist/graph-2d/CanvasBackground2D.d.ts +18 -0
- package/packages/canvas-ui/dist/graph-2d/CanvasErrorBoundary.d.ts +20 -0
- package/packages/canvas-ui/dist/graph-2d/MagneticTraces2D.d.ts +17 -0
- package/packages/canvas-ui/dist/graph-2d/Node2DBase.d.ts +40 -0
- package/packages/canvas-ui/dist/graph-2d/NodeRenderer2D.d.ts +34 -0
- package/packages/canvas-ui/dist/graph-2d/RecorderWaveformDisplay.d.ts +9 -0
- package/packages/canvas-ui/dist/graph-2d/RotaryKnob.d.ts +19 -0
- package/packages/canvas-ui/dist/graph-2d/Socket2D.d.ts +30 -0
- package/packages/canvas-ui/dist/graph-2d/Wire2D.d.ts +26 -0
- package/packages/canvas-ui/dist/graph-2d/index.d.ts +13 -270
- package/packages/canvas-ui/dist/graph-2d/socketCoordinates.d.ts +31 -0
- package/packages/canvas-ui/dist/{types-D3RRfQUo.d.ts → graph-2d/types.d.ts} +5 -8
- package/packages/canvas-ui/dist/graph-2d/useCanvas2DCoordinates.d.ts +16 -0
- package/packages/canvas-ui/dist/graph-2d/useCanvas2DMagnetic.d.ts +25 -0
- package/packages/canvas-ui/dist/index.d.ts +16 -191
- package/packages/canvas-ui/dist/index.js +9 -9
- package/packages/canvas-ui/dist/node-graph-ui/ghost/GhostNodeCard.d.ts +8 -0
- package/packages/canvas-ui/dist/node-graph-ui/ghost/GhostSolidifyBar.d.ts +10 -0
- package/packages/canvas-ui/dist/node-graph-ui/ghost/GhostTraceLayer.d.ts +6 -0
- package/packages/canvas-ui/dist/node-graph-ui/ghost/index.d.ts +3 -0
- package/packages/canvas-ui/dist/node-graph-ui/index.d.ts +8 -0
- package/packages/canvas-ui/dist/node-graph-ui/react-flow/ReactFlowAdapter.d.ts +72 -0
- package/packages/canvas-ui/dist/node-graph-ui/toolbar/GraphToolbar.d.ts +12 -0
- package/packages/canvas-ui/dist/node-graph-ui/widgets/CanvasContextMenu.d.ts +15 -0
- package/packages/canvas-ui/dist/node-graph-ui/widgets/CompatibleNodePicker.d.ts +16 -0
- package/packages/canvas-ui/dist/node-graph-ui/widgets/MagneticTraceLayer.d.ts +6 -0
- package/packages/canvas-ui/dist/node-graph-ui/widgets/MidpointWidgets.d.ts +9 -0
- package/packages/canvas-ui/dist/node-graph-ui/widgets/NodeSearchPalette.d.ts +19 -0
- package/packages/canvas-ui/dist/node-graph-ui/widgets/SolidifyWidget.d.ts +6 -0
- package/packages/canvas-ui/dist/predictive/PredictiveGhostNodeCard/PredictiveGhostNodeCard.d.ts +4 -0
- package/packages/canvas-ui/dist/predictive/PredictiveGhostNodeCard/types.d.ts +12 -0
- package/packages/canvas-ui/dist/predictive/PredictiveGhostNodeCard.d.ts +2 -0
- package/packages/canvas-ui/dist/predictive/PredictiveHudToolbar.d.ts +14 -0
- package/packages/canvas-ui/dist/predictive/PredictiveLayer2D.d.ts +21 -0
- package/packages/canvas-ui/dist/predictive/index.d.ts +4 -75
- package/packages/canvas-ui/dist/predictive/usePredictiveGraph2D.d.ts +25 -0
- package/packages/canvas-ui/dist/tile-menu/Tile.d.ts +11 -0
- package/packages/canvas-ui/dist/tile-menu/TileCreateButton.d.ts +3 -0
- package/packages/canvas-ui/dist/tile-menu/TileGrid.d.ts +6 -0
- package/packages/canvas-ui/dist/tile-menu/index.d.ts +5 -45
- package/packages/canvas-ui/dist/tile-menu/types.d.ts +14 -0
- package/packages/canvas-ui/dist/tile-menu/useTileMenu.d.ts +7 -0
- package/packages/canvas-ui/dist/useGhostRouting.d.ts +22 -0
- package/packages/canvas-ui/dist/useNodeGraph.d.ts +38 -0
- package/packages/canvas-ui/package.json +4 -3
- package/packages/ui/dist/chunk-HXTM3RSQ.js +225 -0
- package/packages/ui/dist/{chunk-QTAFR2V6.js → chunk-Z2477Y5G.js} +458 -120
- package/packages/ui/dist/components/ai/chat/AgentExecutionCard.d.ts +13 -0
- package/packages/ui/dist/components/ai/chat/DirectChatHeader.d.ts +13 -0
- package/packages/ui/dist/components/ai/chat/DirectChatInput.d.ts +13 -0
- package/packages/ui/dist/components/ai/chat/DirectChatInput.test.d.ts +1 -0
- package/packages/ui/dist/components/ai/chat/DirectChatMessageList.d.ts +21 -0
- package/packages/ui/dist/components/ai/chat/index.d.ts +8 -0
- package/packages/ui/dist/components/ai/execution-status/TimelineScrubber.d.ts +21 -0
- package/packages/ui/dist/components/ai/execution-status/index.d.ts +5 -0
- package/packages/ui/dist/components/ai/index.d.ts +7 -386
- package/packages/ui/dist/components/ai/key-manager/EmailProfileCard.d.ts +3 -0
- package/packages/ui/dist/components/ai/key-manager/EmailProfileRegistrationForm.d.ts +3 -0
- package/packages/ui/dist/components/ai/key-manager/EmailProviderRow.d.ts +3 -0
- package/packages/ui/dist/components/ai/key-manager/ExistingKeyControl.d.ts +3 -0
- package/packages/ui/dist/components/ai/key-manager/KeyBackupExportTab.d.ts +6 -0
- package/packages/ui/dist/components/ai/key-manager/KeyBackupImportTab.d.ts +11 -0
- package/packages/ui/dist/components/ai/key-manager/KeyBackupModal.d.ts +3 -0
- package/packages/ui/dist/components/ai/key-manager/KeyListContainer.d.ts +19 -0
- package/packages/ui/dist/components/ai/key-manager/KeyModelVerificationSuite.d.ts +11 -0
- package/packages/ui/dist/components/ai/key-manager/KeyProviderFilterBar.d.ts +12 -0
- package/packages/ui/dist/components/ai/key-manager/SingleKeyCard.d.ts +19 -0
- package/packages/ui/dist/components/ai/key-manager/SingleKeyForm.d.ts +16 -0
- package/packages/ui/dist/components/ai/key-manager/contracts.d.ts +81 -0
- package/packages/ui/dist/components/ai/key-manager/index.d.ts +17 -0
- package/packages/ui/dist/components/ai/key-manager/key-management.test.d.ts +1 -0
- package/packages/ui/dist/components/ai/model-card/ModelCard.d.ts +22 -0
- package/packages/ui/dist/components/ai/model-card/ModelCardFooter.d.ts +13 -0
- package/packages/ui/dist/components/ai/model-card/ModelCardHeader.d.ts +17 -0
- package/packages/ui/dist/components/ai/model-card/index.d.ts +9 -0
- package/packages/ui/dist/components/ai/model-card/providerIconHelper.d.ts +6 -0
- package/packages/ui/dist/components/ai/model-card/types.d.ts +23 -0
- package/packages/ui/dist/components/ai/model-picker/AIModelPicker.d.ts +13 -0
- package/packages/ui/dist/components/ai/model-picker/AIProviderSelector.d.ts +12 -0
- package/packages/ui/dist/components/ai/model-picker/index.d.ts +6 -0
- package/packages/ui/dist/components/auth/AuthLoadingScreen.d.ts +7 -0
- package/packages/ui/dist/components/auth/AuthPage.contract.test.d.ts +1 -0
- package/packages/ui/dist/components/auth/AuthPage.d.ts +81 -0
- package/packages/ui/dist/components/auth/GoogleSignInButton.d.ts +14 -0
- package/packages/ui/dist/components/auth/LoginModal.d.ts +14 -0
- package/packages/ui/dist/components/auth/LuthAuthClient.d.ts +6 -0
- package/packages/ui/dist/components/auth/LuthAuthPage.d.ts +42 -0
- package/packages/ui/dist/components/auth/LuthAuthPage.lifecycle.test.d.ts +1 -0
- package/packages/ui/dist/components/auth/LuthAuthPage.test.d.ts +1 -0
- package/packages/ui/dist/components/auth/LuthProtectedRoute.d.ts +10 -0
- package/packages/ui/dist/components/auth/authContract.test.d.ts +1 -0
- package/packages/ui/dist/components/auth/index.d.ts +9 -166
- package/packages/ui/dist/components/auth/luthAuthTypes.d.ts +2 -0
- package/packages/ui/dist/components/auth/publicExports.test.d.ts +1 -0
- package/packages/ui/dist/components/base/BaseBadge.d.ts +6 -0
- package/packages/ui/dist/components/base/BaseButton.d.ts +9 -0
- package/packages/ui/dist/components/base/BaseCard.d.ts +8 -0
- package/packages/ui/dist/components/base/BaseInput.d.ts +7 -0
- package/packages/ui/dist/components/base/BaseSelect.d.ts +10 -0
- package/packages/ui/dist/components/base/BaseTextarea.d.ts +6 -0
- package/packages/ui/dist/components/base/BaseToggle.d.ts +6 -0
- package/packages/ui/dist/components/base/BaseTooltip.d.ts +12 -0
- package/packages/ui/dist/components/base/CredentialField.d.ts +15 -0
- package/packages/ui/dist/components/base/index.d.ts +9 -74
- package/packages/ui/dist/components/bottom-strip/ApiCallIndicator.d.ts +5 -0
- package/packages/ui/dist/components/bottom-strip/AutoSaveToggle.d.ts +5 -0
- package/packages/ui/dist/components/bottom-strip/BottomStrip.d.ts +9 -0
- package/packages/ui/dist/components/bottom-strip/BottomStripContext.d.ts +41 -0
- package/packages/ui/dist/components/bottom-strip/StatusLight.d.ts +7 -0
- package/packages/ui/dist/components/bottom-strip/SystemMessageDisplay.d.ts +5 -0
- package/packages/ui/dist/components/bottom-strip/index.d.ts +6 -67
- package/packages/ui/dist/components/composite/ConfirmDialog.d.ts +10 -0
- package/packages/ui/dist/components/composite/CopyableErrorAlert.d.ts +9 -0
- package/packages/ui/dist/components/composite/CopyableLogViewer.d.ts +16 -0
- package/packages/ui/dist/components/composite/EmptyState.d.ts +9 -0
- package/packages/ui/dist/components/composite/IconOnlyButton.d.ts +13 -0
- package/packages/ui/dist/components/composite/LoadingOverlay.d.ts +3 -0
- package/packages/ui/dist/components/composite/SearchInput.d.ts +3 -0
- package/packages/ui/dist/components/composite/SearchableList.d.ts +16 -0
- package/packages/ui/dist/components/composite/StatusIndicator.d.ts +7 -0
- package/packages/ui/dist/components/composite/index.d.ts +10 -104
- package/packages/ui/dist/components/composite/useSearchKeyboardNavigation.d.ts +21 -0
- package/packages/ui/dist/components/containers/DrawerContainer.d.ts +8 -0
- package/packages/ui/dist/components/containers/FloatingDetailsPanel.d.ts +19 -0
- package/packages/ui/dist/components/containers/ModalContainer.d.ts +7 -0
- package/packages/ui/dist/components/containers/PageContainer.d.ts +9 -0
- package/packages/ui/dist/components/containers/PanelContainer.d.ts +3 -0
- package/packages/ui/dist/components/containers/ResizeHandles.d.ts +6 -0
- package/packages/ui/dist/components/containers/SectionContainer.d.ts +7 -0
- package/packages/ui/dist/components/containers/SidebarContainer.d.ts +7 -0
- package/packages/ui/dist/components/containers/SplitContainer.d.ts +6 -0
- package/packages/ui/dist/components/containers/TabContainer.d.ts +10 -0
- package/packages/ui/dist/components/containers/index.d.ts +12 -93
- package/packages/ui/dist/components/containers/usePanelGeometry.d.ts +11 -0
- package/packages/ui/dist/components/containers/usePanelInteraction.d.ts +8 -0
- package/packages/ui/dist/components/graph/GraphsMenu.d.ts +19 -0
- package/packages/ui/dist/components/graph/index.d.ts +1 -29
- package/packages/ui/dist/components/layout/AppShell.d.ts +16 -0
- package/packages/ui/dist/components/layout/BreadcrumbNav.d.ts +9 -0
- package/packages/ui/dist/components/layout/HeaderBar.d.ts +8 -0
- package/packages/ui/dist/components/layout/TopToolbar.d.ts +21 -0
- package/packages/ui/dist/components/layout/index.d.ts +4 -53
- package/packages/ui/dist/components/layout/index.js +2 -2
- package/packages/ui/dist/components/services/ClockServicePanel.d.ts +26 -0
- package/packages/ui/dist/components/services/MidiServicePanel.d.ts +31 -0
- package/packages/ui/dist/components/services/OscServicePanel.d.ts +22 -0
- package/packages/ui/dist/components/settings/AccountsSettingsSection.d.ts +6 -0
- package/packages/ui/dist/components/settings/SettingsTab.d.ts +9 -0
- package/packages/ui/dist/components/settings/ThemeSettingsSection.d.ts +2 -0
- package/packages/ui/dist/components/settings/index.d.ts +3 -20
- package/packages/ui/dist/components/tiles/TilesMenu.d.ts +80 -0
- package/packages/ui/dist/components/tiles/index.d.ts +1 -83
- package/packages/ui/dist/components/timeline/MidiTimeline.d.ts +23 -0
- package/packages/ui/dist/components/timeline/MusicalTimeline.d.ts +15 -0
- package/packages/ui/dist/components/timeline/index.d.ts +2 -0
- package/packages/ui/dist/components/timeline/index.js +14 -0
- package/packages/ui/dist/components/timeline/timeline.test.d.ts +1 -0
- package/packages/ui/dist/components/workspace/SrklBackblazeTile.d.ts +27 -0
- package/packages/ui/dist/components/workspace/StorageOptionTiles.d.ts +27 -0
- package/packages/ui/dist/components/workspace/StoragePresetTile.d.ts +8 -0
- package/packages/ui/dist/components/workspace/WorkspaceCreateDialog.contract.test.d.ts +1 -0
- package/packages/ui/dist/components/workspace/WorkspaceCreateDialog.d.ts +96 -0
- package/packages/ui/dist/components/workspace/WorkspaceGate.d.ts +31 -0
- package/packages/ui/dist/components/workspace/WorkspaceSecondaryClonesPanel.d.ts +17 -0
- package/packages/ui/dist/components/workspace/WorkspaceStorageReadonlyPanel.d.ts +6 -0
- package/packages/ui/dist/components/workspace/WorkspaceTilesMenu.d.ts +96 -0
- package/packages/ui/dist/components/workspace/index.d.ts +8 -253
- package/packages/ui/dist/components/workspace/index.js +5 -3
- package/packages/ui/dist/frnl/frnlBottomBar.d.ts +17 -0
- package/packages/ui/dist/frnl/frnlButton.d.ts +160 -0
- package/packages/ui/dist/frnl/frnlControls.d.ts +160 -0
- package/packages/ui/dist/frnl/frnlForceGraph.d.ts +76 -0
- package/packages/ui/dist/frnl/frnlNodeGraph.d.ts +105 -0
- package/packages/ui/dist/frnl/frnlPage.d.ts +31 -0
- package/packages/ui/dist/frnl/frnlTabWindow.d.ts +18 -0
- package/packages/ui/dist/frnl/frnlTextInput.d.ts +139 -0
- package/packages/ui/dist/frnl/frnlTextInput.test.d.ts +1 -0
- package/packages/ui/dist/frnl/frnlTopBar.d.ts +35 -0
- package/packages/ui/dist/frnl/graph-theme.test.d.ts +1 -0
- package/packages/ui/dist/frnl/graph.test.d.ts +1 -0
- package/packages/ui/dist/frnl/index.d.ts +10 -562
- package/packages/ui/dist/frnl/store.d.ts +9 -13
- package/packages/ui/dist/frnl/store.test.d.ts +1 -0
- package/packages/ui/dist/hierarchy/BadgeParent.d.ts +25 -0
- package/packages/ui/dist/hierarchy/ButtonParent.d.ts +37 -0
- package/packages/ui/dist/hierarchy/InputParent.d.ts +34 -0
- package/packages/ui/dist/hierarchy/PanelParent.d.ts +29 -0
- package/packages/ui/dist/hierarchy/TileParent.d.ts +26 -0
- package/packages/ui/dist/hierarchy/UIElementBase.d.ts +38 -0
- package/packages/ui/dist/hierarchy/UIParent.d.ts +8 -0
- package/packages/ui/dist/hierarchy/index.d.ts +7 -197
- package/packages/ui/dist/hierarchy/index.js +3 -3
- package/packages/ui/dist/index.d.ts +21 -24
- package/packages/ui/dist/index.js +64 -50
- package/packages/ui/dist/palette/ThemeContext.d.ts +21 -0
- package/packages/ui/dist/palette/domThemeInjector.d.ts +4 -0
- package/packages/ui/dist/palette/index.d.ts +4 -29
- package/packages/ui/dist/palette/palettes.d.ts +2 -0
- package/packages/ui/dist/palette/palettesBase.d.ts +2 -0
- package/packages/ui/dist/palette/palettesExtended.d.ts +2 -0
- package/packages/ui/dist/palette/types.d.ts +40 -0
- package/packages/ui/dist/serviceUIComponents/index.css +253 -0
- package/packages/ui/dist/serviceUIComponents/index.d.ts +4 -0
- package/packages/ui/dist/serviceUIComponents/index.js +315 -0
- package/packages/ui/dist/theme/SkipoThemeProvider.d.ts +25 -0
- package/packages/ui/dist/theme/ThemePackLoader.d.ts +8 -0
- package/packages/ui/dist/theme/appSocket.d.ts +22 -0
- package/packages/ui/dist/theme/canonicalElements.d.ts +4 -0
- package/packages/ui/dist/theme/canonicalElementsBase.d.ts +2 -0
- package/packages/ui/dist/theme/canonicalElementsDomain.d.ts +2 -0
- package/packages/ui/dist/theme/companionPacks.d.ts +3 -0
- package/packages/ui/dist/theme/defaultPacks.d.ts +3 -0
- package/packages/ui/dist/theme/docustackPacks.d.ts +2 -0
- package/packages/ui/dist/theme/elements.d.ts +17 -0
- package/packages/ui/dist/theme/engine.d.ts +35 -0
- package/packages/ui/dist/theme/index.d.ts +12 -12063
- package/packages/ui/dist/theme/modularPacks.d.ts +1 -0
- package/packages/ui/dist/theme/packs/docustack-cyberpunk-neon/elements.d.ts +3 -0
- package/packages/ui/dist/theme/packs/docustack-cyberpunk-neon/index.d.ts +8 -0
- package/packages/ui/dist/theme/packs/docustack-cyberpunk-neon/tokens.d.ts +3 -0
- package/packages/ui/dist/theme/packs/docustack-cyberpunk-neon/typography.d.ts +3 -0
- package/packages/ui/dist/theme/packs/docustack-dark-gold/elements.d.ts +3 -0
- package/packages/ui/dist/theme/packs/docustack-dark-gold/index.d.ts +8 -0
- package/packages/ui/dist/theme/packs/docustack-dark-gold/tokens.d.ts +3 -0
- package/packages/ui/dist/theme/packs/docustack-dark-gold/typography.d.ts +3 -0
- package/packages/ui/dist/theme/packs/docustack-warm-coffee/elements.d.ts +3 -0
- package/packages/ui/dist/theme/packs/docustack-warm-coffee/index.d.ts +8 -0
- package/packages/ui/dist/theme/packs/docustack-warm-coffee/tokens.d.ts +3 -0
- package/packages/ui/dist/theme/packs/docustack-warm-coffee/typography.d.ts +3 -0
- package/packages/ui/dist/theme/packs/index.d.ts +3 -0
- package/packages/ui/dist/theme/schema/cascade.d.ts +12 -0
- package/packages/ui/dist/theme/schema/index.d.ts +4 -0
- package/packages/ui/dist/theme/schema/themePack.schema.d.ts +10160 -0
- package/packages/ui/dist/{palettes-De5u5iID.d.ts → theme/schema/tokens.schema.d.ts} +2 -133
- package/packages/ui/dist/theme/schema/typography.schema.d.ts +1765 -0
- package/packages/ui/dist/theme/socket.d.ts +6 -0
- package/packages/ui/dist/theme/status.d.ts +3 -0
- package/packages/ui/dist/theme/tokenMapper.d.ts +1 -0
- package/packages/ui/dist/theme/types.d.ts +88 -0
- package/packages/ui/package.json +15 -4
- package/packages/ui/src/styles/services.css +11 -0
- package/packages/ui/dist/BottomStrip-DYhAUQR4.d.ts +0 -12
- package/packages/ui/dist/{chunk-Q324BMDJ.js → chunk-ECVX6KZM.js} +3 -3
- package/packages/ui/dist/{chunk-MYXPGPI3.js → chunk-GWW3BGOB.js} +3 -3
|
@@ -440,41 +440,164 @@ var WorkspaceSecondaryClonesPanel = ({ workspace, onClonesUpdated, onClose }) =>
|
|
|
440
440
|
};
|
|
441
441
|
|
|
442
442
|
// src/components/workspace/WorkspaceCreateDialog.tsx
|
|
443
|
-
import { useEffect as useEffect3, useState as useState5 } from "react";
|
|
444
|
-
import {
|
|
443
|
+
import { useEffect as useEffect3, useMemo, useState as useState5 } from "react";
|
|
444
|
+
import { HardDrive as HardDrive5, Loader2 } from "lucide-react";
|
|
445
445
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
446
|
-
var
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
446
|
+
var LOCAL_STORAGE_OPTION = {
|
|
447
|
+
id: "local_fs",
|
|
448
|
+
provider: "local_fs",
|
|
449
|
+
label: "Local Folder"
|
|
450
|
+
};
|
|
451
|
+
var PROVIDER_LABELS = {
|
|
452
|
+
local_fs: "Local Folder",
|
|
453
|
+
backblaze_b2: "Backblaze B2",
|
|
454
|
+
google_drive: "Google Drive",
|
|
455
|
+
cloudflare_r2: "Cloudflare R2",
|
|
456
|
+
aws_s3: "Amazon S3",
|
|
457
|
+
supabase_storage: "Supabase Storage"
|
|
458
|
+
};
|
|
459
|
+
function providerLabel(option) {
|
|
460
|
+
return PROVIDER_LABELS[option.provider] || option.provider.replace(/[_-]+/g, " ");
|
|
461
|
+
}
|
|
462
|
+
function slug(value) {
|
|
463
|
+
return value.toLowerCase().trim().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "") || "workspace";
|
|
464
|
+
}
|
|
465
|
+
function formatWorkspaceFolderPreview(appName, userName, workspaceName) {
|
|
466
|
+
return "ultrst_" + slug(appName) + "_" + slug(userName) + "_" + slug(workspaceName);
|
|
467
|
+
}
|
|
468
|
+
function buildWorkspaceCreateInput(name, description, option) {
|
|
469
|
+
const provider = option.provider || "local_fs";
|
|
470
|
+
const connectionId = option.id && option.id !== "local_fs" ? option.id : void 0;
|
|
471
|
+
const localFolderName = provider === "local_fs" ? option.localFolderName || name.trim() : void 0;
|
|
472
|
+
const b2BucketName = option.b2BucketName || option.bucketName;
|
|
473
|
+
const b2Endpoint = option.b2Endpoint || option.endpoint;
|
|
474
|
+
const b2Region = option.b2Region || option.region;
|
|
475
|
+
const storage = {
|
|
476
|
+
provider,
|
|
477
|
+
connectionId,
|
|
478
|
+
localFolderName,
|
|
479
|
+
localFolderKey: provider === "local_fs" ? option.localFolderKey : void 0,
|
|
480
|
+
b2BucketName,
|
|
481
|
+
b2Endpoint,
|
|
482
|
+
b2Region,
|
|
483
|
+
googleEmail: option.googleEmail,
|
|
484
|
+
googleRootFolderId: option.googleRootFolderId,
|
|
485
|
+
googleRootFolderName: option.googleRootFolderName
|
|
486
|
+
};
|
|
487
|
+
return {
|
|
488
|
+
name: name.trim(),
|
|
489
|
+
description: description.trim() || void 0,
|
|
490
|
+
storage,
|
|
491
|
+
storageProvider: provider,
|
|
492
|
+
storageConnectionId: connectionId,
|
|
493
|
+
localFolderName,
|
|
494
|
+
localFolderKey: storage.localFolderKey,
|
|
495
|
+
b2BucketName,
|
|
496
|
+
b2Endpoint,
|
|
497
|
+
b2Region,
|
|
498
|
+
googleEmail: option.googleEmail,
|
|
499
|
+
googleRootFolderId: option.googleRootFolderId,
|
|
500
|
+
googleRootFolderName: option.googleRootFolderName,
|
|
501
|
+
storageConnection: connectionId ? option : void 0
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
async function fetchStorageConnections(userId) {
|
|
505
|
+
const headers = new Headers({ "Content-Type": "application/json", "X-User-Id": userId });
|
|
506
|
+
for (const endpoint of ["/api/auth/storage/connections", "/api/storage/connections"]) {
|
|
459
507
|
try {
|
|
460
|
-
const
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
508
|
+
const response = await fetch(endpoint, { headers, credentials: "include" });
|
|
509
|
+
if (!response.ok) continue;
|
|
510
|
+
const data = await response.json();
|
|
511
|
+
const connections = Array.isArray(data?.connections) ? data.connections : Array.isArray(data?.storage_connections) ? data.storage_connections : [];
|
|
512
|
+
if (connections.length > 0) {
|
|
513
|
+
return connections.filter((item) => item && typeof item.id === "string" && typeof item.provider === "string");
|
|
514
|
+
}
|
|
467
515
|
} catch {
|
|
468
|
-
return [];
|
|
469
516
|
}
|
|
470
517
|
}
|
|
518
|
+
return [];
|
|
519
|
+
}
|
|
520
|
+
async function fetchBackblazeAccounts(userId) {
|
|
521
|
+
try {
|
|
522
|
+
const response = await fetch("/api/srkl/accounts?service=backblaze&userId=" + encodeURIComponent(userId));
|
|
523
|
+
const data = await response.json().catch(() => ({}));
|
|
524
|
+
return Array.isArray(data?.accounts) ? data.accounts : [];
|
|
525
|
+
} catch {
|
|
526
|
+
return [];
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
async function fetchBackblazeBuckets(accountId, userId) {
|
|
530
|
+
try {
|
|
531
|
+
const response = await fetch("/api/srkl/backblaze/buckets", {
|
|
532
|
+
method: "POST",
|
|
533
|
+
headers: { "Content-Type": "application/json" },
|
|
534
|
+
body: JSON.stringify({ accountId, userId })
|
|
535
|
+
});
|
|
536
|
+
const data = await response.json().catch(() => ({}));
|
|
537
|
+
return Array.isArray(data?.buckets) ? data.buckets : [];
|
|
538
|
+
} catch {
|
|
539
|
+
return [];
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
async function fetchDefaultStorageOptions(userId) {
|
|
543
|
+
const stored = await fetchStorageConnections(userId);
|
|
544
|
+
if (stored.length > 0) return stored;
|
|
545
|
+
const [backblaze, googleDrive] = await Promise.all([
|
|
546
|
+
fetchBackblazeAccounts(userId),
|
|
547
|
+
fetch("/api/srkl/accounts?service=google_drive&userId=" + encodeURIComponent(userId)).then((response) => response.ok ? response.json() : {}).then((data) => Array.isArray(data?.accounts) ? data.accounts : []).catch(() => [])
|
|
548
|
+
]);
|
|
549
|
+
return [...backblaze, ...googleDrive].map((account) => {
|
|
550
|
+
const credentials = account.credentials || {};
|
|
551
|
+
const value = (key, alternate) => {
|
|
552
|
+
const item = credentials[key] ?? (alternate ? credentials[alternate] : void 0);
|
|
553
|
+
return typeof item === "string" && item.length > 0 ? item : void 0;
|
|
554
|
+
};
|
|
555
|
+
return {
|
|
556
|
+
id: String(account.id),
|
|
557
|
+
provider: String(account.provider || account.serviceId || "backblaze_b2"),
|
|
558
|
+
label: String(account.label || account.name || account.id),
|
|
559
|
+
b2BucketName: value("bucketName", "b2BucketName"),
|
|
560
|
+
b2Endpoint: value("endpoint", "b2Endpoint"),
|
|
561
|
+
b2Region: value("region", "b2Region"),
|
|
562
|
+
googleEmail: value("email", "googleEmail"),
|
|
563
|
+
googleRootFolderId: value("rootFolderId", "googleRootFolderId"),
|
|
564
|
+
googleRootFolderName: value("rootFolderName", "googleRootFolderName")
|
|
565
|
+
};
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
var defaultWorkspaceStorageService = {
|
|
569
|
+
listStorageConnections: fetchDefaultStorageOptions,
|
|
570
|
+
listBackblazeAccounts: fetchBackblazeAccounts,
|
|
571
|
+
listBackblazeBuckets: fetchBackblazeBuckets
|
|
471
572
|
};
|
|
472
573
|
function createKloksWorkspaceStorageService(invoker) {
|
|
574
|
+
const listSrklAccounts = async (userId, service) => {
|
|
575
|
+
const result = await invoker.invoke("srkl", "getAccounts", { userId, service });
|
|
576
|
+
return Array.isArray(result?.accounts) ? result.accounts : [];
|
|
577
|
+
};
|
|
473
578
|
return {
|
|
474
|
-
|
|
475
|
-
const
|
|
476
|
-
return
|
|
579
|
+
listStorageConnections: async (userId) => {
|
|
580
|
+
const accounts = await listSrklAccounts(userId);
|
|
581
|
+
return accounts.map((account) => {
|
|
582
|
+
const credentials = account.credentials || {};
|
|
583
|
+
const value = (key, alternate) => {
|
|
584
|
+
const item = credentials[key] ?? (alternate ? credentials[alternate] : void 0);
|
|
585
|
+
return typeof item === "string" && item.length > 0 ? item : void 0;
|
|
586
|
+
};
|
|
587
|
+
return {
|
|
588
|
+
id: String(account.id),
|
|
589
|
+
provider: String(account.provider || account.serviceId || "backblaze_b2"),
|
|
590
|
+
label: String(account.name || account.label || account.id),
|
|
591
|
+
b2BucketName: value("bucketName", "b2BucketName"),
|
|
592
|
+
b2Endpoint: value("endpoint", "b2Endpoint"),
|
|
593
|
+
b2Region: value("region", "b2Region"),
|
|
594
|
+
googleEmail: value("email", "googleEmail"),
|
|
595
|
+
googleRootFolderId: value("rootFolderId", "googleRootFolderId"),
|
|
596
|
+
googleRootFolderName: value("rootFolderName", "googleRootFolderName")
|
|
597
|
+
};
|
|
598
|
+
});
|
|
477
599
|
},
|
|
600
|
+
listBackblazeAccounts: (userId) => listSrklAccounts(userId, "backblaze"),
|
|
478
601
|
listBackblazeBuckets: async (accountId, userId) => {
|
|
479
602
|
const result = await invoker.invoke("srkl", "listBackblazeBuckets", { accountId, userId });
|
|
480
603
|
return Array.isArray(result?.buckets) ? result.buckets : [];
|
|
@@ -485,117 +608,329 @@ function WorkspaceCreateDialog({
|
|
|
485
608
|
open,
|
|
486
609
|
userId = "system",
|
|
487
610
|
currentUser,
|
|
611
|
+
appName = "app",
|
|
612
|
+
storageOptions,
|
|
488
613
|
storageService = defaultWorkspaceStorageService,
|
|
614
|
+
onManageStorage,
|
|
489
615
|
onClose,
|
|
490
616
|
onSubmit
|
|
491
617
|
}) {
|
|
618
|
+
const [loadedOptions, setLoadedOptions] = useState5([]);
|
|
492
619
|
const [name, setName] = useState5("");
|
|
493
620
|
const [description, setDescription] = useState5("");
|
|
494
|
-
const [
|
|
495
|
-
const [
|
|
496
|
-
const [
|
|
497
|
-
const [
|
|
498
|
-
const [
|
|
499
|
-
const [
|
|
500
|
-
const [
|
|
621
|
+
const [localFolderName, setLocalFolderName] = useState5("");
|
|
622
|
+
const [selectedStorageId, setSelectedStorageId] = useState5("local_fs");
|
|
623
|
+
const [defaultStorageApplied, setDefaultStorageApplied] = useState5(false);
|
|
624
|
+
const [backblazeMode, setBackblazeMode] = useState5(false);
|
|
625
|
+
const [backblazeAccounts, setBackblazeAccounts] = useState5([]);
|
|
626
|
+
const [backblazeAccountId, setBackblazeAccountId] = useState5("");
|
|
627
|
+
const [backblazeBuckets, setBackblazeBuckets] = useState5([]);
|
|
628
|
+
const [backblazeBucketName, setBackblazeBucketName] = useState5("");
|
|
629
|
+
const [loadingBackblazeAccounts, setLoadingBackblazeAccounts] = useState5(false);
|
|
630
|
+
const [loadingBackblazeBuckets, setLoadingBackblazeBuckets] = useState5(false);
|
|
631
|
+
const [loadingStorage, setLoadingStorage] = useState5(false);
|
|
632
|
+
const [submitting, setSubmitting] = useState5(false);
|
|
501
633
|
const [error, setError] = useState5(null);
|
|
502
634
|
const effectiveUserId = userId || currentUser?.id || "system";
|
|
503
635
|
useEffect3(() => {
|
|
504
|
-
if (!open
|
|
636
|
+
if (!open) return;
|
|
637
|
+
setName("");
|
|
638
|
+
setDescription("");
|
|
639
|
+
setLocalFolderName("");
|
|
505
640
|
setError(null);
|
|
506
|
-
|
|
507
|
-
|
|
641
|
+
setSelectedStorageId("local_fs");
|
|
642
|
+
setDefaultStorageApplied(false);
|
|
643
|
+
setBackblazeMode(false);
|
|
644
|
+
setBackblazeAccounts([]);
|
|
645
|
+
setBackblazeAccountId("");
|
|
646
|
+
setBackblazeBuckets([]);
|
|
647
|
+
setBackblazeBucketName("");
|
|
648
|
+
}, [open]);
|
|
649
|
+
useEffect3(() => {
|
|
650
|
+
if (!open || storageOptions) return;
|
|
651
|
+
let active = true;
|
|
652
|
+
const listConnections = storageService.listStorageConnections;
|
|
653
|
+
if (!listConnections) {
|
|
654
|
+
setLoadingStorage(false);
|
|
655
|
+
return () => {
|
|
656
|
+
active = false;
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
setLoadingStorage(true);
|
|
660
|
+
listConnections(effectiveUserId).then((options) => {
|
|
661
|
+
if (active) setLoadedOptions(Array.isArray(options) ? options : []);
|
|
662
|
+
}).catch((reason) => {
|
|
663
|
+
if (active) setError(reason instanceof Error ? reason.message : "Unable to load storage connections.");
|
|
664
|
+
}).finally(() => {
|
|
665
|
+
if (active) setLoadingStorage(false);
|
|
666
|
+
});
|
|
667
|
+
return () => {
|
|
668
|
+
active = false;
|
|
669
|
+
};
|
|
670
|
+
}, [open, effectiveUserId, storageOptions, storageService]);
|
|
671
|
+
const availableOptions = useMemo(() => {
|
|
672
|
+
const supplied = storageOptions ?? loadedOptions;
|
|
673
|
+
const enabled = supplied.filter((option) => option && option.enabled !== false && typeof option.id === "string");
|
|
674
|
+
const local = enabled.find((option) => option.provider === "local_fs") || LOCAL_STORAGE_OPTION;
|
|
675
|
+
const external = enabled.filter((option) => option.provider !== "local_fs");
|
|
676
|
+
return [local, ...external];
|
|
677
|
+
}, [storageOptions, loadedOptions]);
|
|
678
|
+
useEffect3(() => {
|
|
679
|
+
if (!open || loadingStorage || defaultStorageApplied) return;
|
|
680
|
+
const primary = availableOptions.find((option) => option.role === "primary") || availableOptions.find((option) => option.provider !== "local_fs");
|
|
681
|
+
if (primary) setSelectedStorageId(primary.id);
|
|
682
|
+
setDefaultStorageApplied(true);
|
|
683
|
+
}, [open, loadingStorage, availableOptions, defaultStorageApplied]);
|
|
508
684
|
useEffect3(() => {
|
|
509
|
-
if (
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
}
|
|
515
|
-
}, [
|
|
685
|
+
if (!open) return;
|
|
686
|
+
const selectedStillExists = backblazeMode || availableOptions.some((option) => option.id === selectedStorageId);
|
|
687
|
+
if (!selectedStillExists) {
|
|
688
|
+
const primary = availableOptions.find((option) => option.role === "primary");
|
|
689
|
+
setSelectedStorageId(primary?.id || "local_fs");
|
|
690
|
+
}
|
|
691
|
+
}, [open, availableOptions, selectedStorageId, backblazeMode]);
|
|
516
692
|
if (!open) return null;
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
693
|
+
const selectedOption = availableOptions.find((option) => option.id === selectedStorageId) || LOCAL_STORAGE_OPTION;
|
|
694
|
+
const userName = currentUser?.username || currentUser?.name || currentUser?.email?.split("@")[0] || "user";
|
|
695
|
+
const folderPreview = formatWorkspaceFolderPreview(appName, userName, name || "workspace");
|
|
696
|
+
const handleSelectBackblaze = async () => {
|
|
697
|
+
setBackblazeMode(true);
|
|
698
|
+
setSelectedStorageId("backblaze_srkl");
|
|
699
|
+
setBackblazeAccountId("");
|
|
700
|
+
setBackblazeBuckets([]);
|
|
701
|
+
setBackblazeBucketName("");
|
|
702
|
+
setError(null);
|
|
703
|
+
if (!storageService.listBackblazeAccounts) {
|
|
704
|
+
setBackblazeAccounts([]);
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
setLoadingBackblazeAccounts(true);
|
|
522
708
|
try {
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
709
|
+
const accounts = await storageService.listBackblazeAccounts(effectiveUserId);
|
|
710
|
+
setBackblazeAccounts(Array.isArray(accounts) ? accounts : []);
|
|
711
|
+
} catch (reason) {
|
|
712
|
+
setError(reason instanceof Error ? reason.message : "Failed to load SRKL Backblaze accounts.");
|
|
713
|
+
} finally {
|
|
714
|
+
setLoadingBackblazeAccounts(false);
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
const handleBackblazeAccountChange = async (accountId) => {
|
|
718
|
+
setBackblazeAccountId(accountId);
|
|
719
|
+
setBackblazeBuckets([]);
|
|
720
|
+
setBackblazeBucketName("");
|
|
721
|
+
if (!accountId || !storageService.listBackblazeBuckets) return;
|
|
722
|
+
setLoadingBackblazeBuckets(true);
|
|
723
|
+
try {
|
|
724
|
+
const buckets = await storageService.listBackblazeBuckets(accountId, effectiveUserId);
|
|
725
|
+
setBackblazeBuckets(Array.isArray(buckets) ? buckets : []);
|
|
726
|
+
} catch (reason) {
|
|
727
|
+
setError(reason instanceof Error ? reason.message : "Failed to load Backblaze buckets.");
|
|
728
|
+
} finally {
|
|
729
|
+
setLoadingBackblazeBuckets(false);
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
const submit = async (event) => {
|
|
733
|
+
event.preventDefault();
|
|
734
|
+
if (!name.trim()) {
|
|
735
|
+
setError("Workspace name is required.");
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
if (backblazeMode && (!backblazeAccountId || !backblazeBucketName)) {
|
|
739
|
+
setError("Select an SRKL Backblaze account and bucket.");
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
if (loadingStorage || loadingBackblazeAccounts || loadingBackblazeBuckets || submitting) return;
|
|
743
|
+
setSubmitting(true);
|
|
744
|
+
setError(null);
|
|
745
|
+
try {
|
|
746
|
+
const backblazeAccount = backblazeAccounts.find((account) => account.id === backblazeAccountId);
|
|
747
|
+
const option = backblazeMode ? {
|
|
748
|
+
id: backblazeAccountId,
|
|
749
|
+
provider: "backblaze_b2",
|
|
750
|
+
label: backblazeAccount?.name || "SRKL Backblaze B2",
|
|
751
|
+
b2BucketName: backblazeBucketName,
|
|
752
|
+
bucketName: backblazeBucketName,
|
|
753
|
+
b2Endpoint: backblazeAccount?.credentials?.endpoint,
|
|
754
|
+
endpoint: backblazeAccount?.credentials?.endpoint,
|
|
755
|
+
b2Region: backblazeAccount?.credentials?.region,
|
|
756
|
+
region: backblazeAccount?.credentials?.region
|
|
757
|
+
} : selectedOption.provider === "local_fs" ? { ...selectedOption, localFolderName: localFolderName.trim() || selectedOption.localFolderName || name.trim() } : selectedOption;
|
|
758
|
+
await onSubmit(buildWorkspaceCreateInput(name, description, option));
|
|
548
759
|
onClose();
|
|
549
|
-
} catch (
|
|
550
|
-
setError(
|
|
760
|
+
} catch (reason) {
|
|
761
|
+
setError(reason instanceof Error ? reason.message : "Workspace creation failed.");
|
|
551
762
|
} finally {
|
|
552
|
-
|
|
763
|
+
setSubmitting(false);
|
|
553
764
|
}
|
|
554
765
|
};
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
766
|
+
const surface = "var(--skipo-surface, var(--color-surface, #1e1e24))";
|
|
767
|
+
const background = "var(--skipo-bg, var(--color-bg, #121116))";
|
|
768
|
+
const border = "var(--skipo-border-color, var(--color-border, #383838))";
|
|
769
|
+
const accent = "var(--skipo-accent, var(--color-accent, #d4af37))";
|
|
770
|
+
const muted = "var(--skipo-text-muted, var(--color-text-muted, #999))";
|
|
771
|
+
return /* @__PURE__ */ jsx6("div", { className: "fixed inset-0 z-[70] flex items-center justify-center bg-black/75 p-4 backdrop-blur-sm", role: "presentation", children: /* @__PURE__ */ jsxs6(
|
|
772
|
+
"form",
|
|
773
|
+
{
|
|
774
|
+
onSubmit: submit,
|
|
775
|
+
"aria-label": "Create workspace",
|
|
776
|
+
className: "w-full max-w-xl max-h-[90vh] overflow-y-auto border-2 p-5 font-mono shadow-[7px_7px_0px_var(--skipo-border-color,var(--color-border,#383838))]",
|
|
777
|
+
style: { backgroundColor: surface, borderColor: border },
|
|
778
|
+
children: [
|
|
779
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between gap-3 border-b pb-3", style: { borderColor: border }, children: [
|
|
780
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
|
781
|
+
/* @__PURE__ */ jsx6("h2", { className: "text-sm font-black uppercase", children: "Create Workspace" }),
|
|
782
|
+
/* @__PURE__ */ jsx6("p", { className: "mt-1 text-[10px]", style: { color: muted }, children: "Create an isolated workspace and select its persistent storage." })
|
|
783
|
+
] }),
|
|
784
|
+
/* @__PURE__ */ jsx6(HardDrive5, { size: 18, style: { color: accent } })
|
|
566
785
|
] }),
|
|
567
|
-
/* @__PURE__ */
|
|
568
|
-
|
|
569
|
-
"
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
786
|
+
error && /* @__PURE__ */ jsx6("div", { role: "alert", className: "mt-3 border border-red-500 p-2 text-xs text-red-300", children: error }),
|
|
787
|
+
/* @__PURE__ */ jsxs6("div", { className: "mt-4 space-y-3", children: [
|
|
788
|
+
/* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
|
|
789
|
+
/* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Workspace Name *" }),
|
|
790
|
+
/* @__PURE__ */ jsx6(
|
|
791
|
+
"input",
|
|
792
|
+
{
|
|
793
|
+
"aria-label": "Workspace name",
|
|
794
|
+
autoFocus: true,
|
|
795
|
+
required: true,
|
|
796
|
+
value: name,
|
|
797
|
+
onChange: (event) => setName(event.target.value),
|
|
798
|
+
placeholder: "e.g. Production Matrix",
|
|
799
|
+
className: "h-9 w-full border px-3 text-xs",
|
|
800
|
+
style: { backgroundColor: background, borderColor: border }
|
|
801
|
+
}
|
|
802
|
+
)
|
|
803
|
+
] }),
|
|
804
|
+
/* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
|
|
805
|
+
/* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Description" }),
|
|
806
|
+
/* @__PURE__ */ jsx6(
|
|
807
|
+
"textarea",
|
|
808
|
+
{
|
|
809
|
+
"aria-label": "Workspace description",
|
|
810
|
+
value: description,
|
|
811
|
+
onChange: (event) => setDescription(event.target.value),
|
|
812
|
+
placeholder: "What is this workspace for?",
|
|
813
|
+
rows: 2,
|
|
814
|
+
className: "w-full border p-3 text-xs",
|
|
815
|
+
style: { backgroundColor: background, borderColor: border }
|
|
816
|
+
}
|
|
817
|
+
)
|
|
818
|
+
] }),
|
|
819
|
+
/* @__PURE__ */ jsxs6("div", { className: "space-y-1", children: [
|
|
820
|
+
/* @__PURE__ */ jsx6("label", { htmlFor: "floks-workspace-storage", className: "block text-[10px] font-black uppercase", children: "Persistent Storage" }),
|
|
821
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex gap-2", children: [
|
|
822
|
+
/* @__PURE__ */ jsx6(
|
|
823
|
+
"select",
|
|
824
|
+
{
|
|
825
|
+
id: "floks-workspace-storage",
|
|
826
|
+
"aria-label": "Workspace storage",
|
|
827
|
+
value: selectedStorageId,
|
|
828
|
+
onChange: (event) => {
|
|
829
|
+
setBackblazeMode(false);
|
|
830
|
+
setSelectedStorageId(event.target.value);
|
|
831
|
+
},
|
|
832
|
+
disabled: loadingStorage || submitting,
|
|
833
|
+
className: "h-10 min-w-0 flex-1 border px-2 text-xs",
|
|
834
|
+
style: { backgroundColor: background, borderColor: border },
|
|
835
|
+
children: availableOptions.map((option) => /* @__PURE__ */ jsx6("option", { value: option.id, children: providerLabel(option) + " \u2014 " + (option.label || option.name || option.id) }, option.id))
|
|
836
|
+
}
|
|
837
|
+
),
|
|
838
|
+
/* @__PURE__ */ jsx6(
|
|
839
|
+
"button",
|
|
840
|
+
{
|
|
841
|
+
type: "button",
|
|
842
|
+
onClick: handleSelectBackblaze,
|
|
843
|
+
disabled: submitting || loadingBackblazeAccounts,
|
|
844
|
+
"aria-pressed": backblazeMode,
|
|
845
|
+
className: "shrink-0 border px-3 text-[10px] font-black uppercase disabled:opacity-50",
|
|
846
|
+
style: { borderColor: backblazeMode ? accent : border, color: backblazeMode ? accent : void 0 },
|
|
847
|
+
children: "Backblaze B2 / SRKL"
|
|
848
|
+
}
|
|
849
|
+
),
|
|
850
|
+
onManageStorage && /* @__PURE__ */ jsx6("button", { type: "button", onClick: onManageStorage, className: "shrink-0 border px-3 text-[10px] font-black uppercase", style: { borderColor: border }, children: "Manage" })
|
|
851
|
+
] }),
|
|
852
|
+
backblazeMode && /* @__PURE__ */ jsxs6("div", { className: "mt-3 space-y-2 border-t pt-3", style: { borderColor: border }, children: [
|
|
853
|
+
/* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
|
|
854
|
+
/* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Backblaze account" }),
|
|
855
|
+
/* @__PURE__ */ jsxs6(
|
|
856
|
+
"select",
|
|
857
|
+
{
|
|
858
|
+
"aria-label": "Backblaze account",
|
|
859
|
+
value: backblazeAccountId,
|
|
860
|
+
onChange: (event) => handleBackblazeAccountChange(event.target.value),
|
|
861
|
+
disabled: loadingBackblazeAccounts || submitting,
|
|
862
|
+
className: "h-9 w-full border px-2 text-xs",
|
|
863
|
+
style: { backgroundColor: background, borderColor: border },
|
|
864
|
+
children: [
|
|
865
|
+
/* @__PURE__ */ jsx6("option", { value: "", children: "Select SRKL Backblaze account" }),
|
|
866
|
+
backblazeAccounts.map((account) => /* @__PURE__ */ jsx6("option", { value: account.id, children: account.name }, account.id))
|
|
867
|
+
]
|
|
868
|
+
}
|
|
869
|
+
),
|
|
870
|
+
loadingBackblazeAccounts && /* @__PURE__ */ jsx6("span", { className: "text-[10px]", style: { color: muted }, children: "Loading SRKL accounts\u2026" })
|
|
871
|
+
] }),
|
|
872
|
+
/* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
|
|
873
|
+
/* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Backblaze bucket" }),
|
|
874
|
+
/* @__PURE__ */ jsxs6(
|
|
875
|
+
"select",
|
|
876
|
+
{
|
|
877
|
+
"aria-label": "Backblaze bucket",
|
|
878
|
+
value: backblazeBucketName,
|
|
879
|
+
onChange: (event) => setBackblazeBucketName(event.target.value),
|
|
880
|
+
disabled: !backblazeAccountId || loadingBackblazeBuckets || submitting,
|
|
881
|
+
className: "h-9 w-full border px-2 text-xs",
|
|
882
|
+
style: { backgroundColor: background, borderColor: border },
|
|
883
|
+
children: [
|
|
884
|
+
/* @__PURE__ */ jsx6("option", { value: "", children: "Select bucket" }),
|
|
885
|
+
backblazeBuckets.map((bucket) => {
|
|
886
|
+
const bucketName = bucket.bucketName || bucket.name || "";
|
|
887
|
+
return /* @__PURE__ */ jsx6("option", { value: bucketName, children: bucketName }, bucket.bucketId || bucket.id || bucketName);
|
|
888
|
+
})
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
),
|
|
892
|
+
loadingBackblazeBuckets && /* @__PURE__ */ jsx6("span", { className: "text-[10px]", style: { color: muted }, children: "Loading buckets\u2026" })
|
|
893
|
+
] })
|
|
894
|
+
] }),
|
|
895
|
+
loadingStorage ? /* @__PURE__ */ jsxs6("p", { className: "flex items-center gap-2 text-[10px]", style: { color: muted }, children: [
|
|
896
|
+
/* @__PURE__ */ jsx6(Loader2, { size: 12, className: "animate-spin" }),
|
|
897
|
+
" Loading storage connections\u2026"
|
|
898
|
+
] }) : availableOptions.length === 1 && availableOptions[0].provider === "local_fs" ? /* @__PURE__ */ jsx6("p", { className: "text-[10px]", style: { color: muted }, children: "No cloud storage connection is available yet. You can create a local workspace or manage storage connections." }) : /* @__PURE__ */ jsx6("p", { className: "text-[10px]", style: { color: muted }, children: "Cloud storage is selected from connections already authorized for this account." })
|
|
899
|
+
] }),
|
|
900
|
+
selectedOption.provider === "local_fs" && /* @__PURE__ */ jsxs6("label", { className: "block space-y-1", children: [
|
|
901
|
+
/* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", children: "Local Folder Name" }),
|
|
902
|
+
/* @__PURE__ */ jsx6(
|
|
903
|
+
"input",
|
|
904
|
+
{
|
|
905
|
+
"aria-label": "Local folder name",
|
|
906
|
+
value: localFolderName,
|
|
907
|
+
onChange: (event) => setLocalFolderName(event.target.value),
|
|
908
|
+
placeholder: name.trim() || "Workspace folder",
|
|
909
|
+
className: "h-9 w-full border px-3 text-xs",
|
|
910
|
+
style: { backgroundColor: background, borderColor: border }
|
|
911
|
+
}
|
|
912
|
+
)
|
|
913
|
+
] }),
|
|
914
|
+
/* @__PURE__ */ jsxs6("div", { className: "border p-3", style: { borderColor: border, backgroundColor: background }, children: [
|
|
915
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between gap-2", children: [
|
|
916
|
+
/* @__PURE__ */ jsx6("span", { className: "text-[10px] font-black uppercase", style: { color: accent }, children: "Canonical Workspace Folder" }),
|
|
917
|
+
/* @__PURE__ */ jsx6("span", { className: "text-[9px] uppercase", style: { color: muted }, children: "Ecosystem Standard" })
|
|
918
|
+
] }),
|
|
919
|
+
/* @__PURE__ */ jsx6("code", { className: "mt-1 block truncate text-xs font-bold text-emerald-400", children: folderPreview })
|
|
920
|
+
] })
|
|
576
921
|
] }),
|
|
577
|
-
|
|
578
|
-
/* @__PURE__ */ jsx6(
|
|
579
|
-
"
|
|
580
|
-
] }) : /* @__PURE__ */ jsxs6("select", { "aria-label": "Backblaze bucket", value: bucketName, onChange: (e) => setBucketName(e.target.value), className: "w-full h-9 bg-[var(--skipo-bg)] border border-[var(--skipo-border-color)] px-2 text-xs", children: [
|
|
581
|
-
/* @__PURE__ */ jsx6("option", { value: "", children: "Select bucket" }),
|
|
582
|
-
buckets.map((b) => {
|
|
583
|
-
const n = b.bucketName ?? b.name ?? "";
|
|
584
|
-
return /* @__PURE__ */ jsx6("option", { value: n, children: n }, b.bucketId ?? b.id ?? n);
|
|
585
|
-
})
|
|
922
|
+
/* @__PURE__ */ jsxs6("div", { className: "mt-5 flex justify-end gap-2 border-t pt-3", style: { borderColor: border }, children: [
|
|
923
|
+
/* @__PURE__ */ jsx6("button", { type: "button", onClick: onClose, disabled: submitting, className: "h-9 border px-3 text-xs", style: { borderColor: border }, children: "Cancel" }),
|
|
924
|
+
/* @__PURE__ */ jsx6("button", { type: "submit", disabled: submitting || loadingStorage || loadingBackblazeAccounts || loadingBackblazeBuckets || !name.trim(), className: "h-9 px-4 text-xs font-black uppercase text-black disabled:opacity-50", style: { backgroundColor: accent }, children: submitting ? "Creating\u2026" : "Create Workspace" })
|
|
586
925
|
] })
|
|
587
|
-
]
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
/* @__PURE__ */ jsx6("button", { type: "button", onClick: onClose, className: "h-8 px-3 border border-[var(--skipo-border-color)] text-xs", children: "CANCEL" }),
|
|
591
|
-
/* @__PURE__ */ jsx6("button", { type: "submit", disabled: loading, className: "h-8 px-3 bg-[var(--skipo-accent)] text-black text-xs font-black", children: loading ? "CREATING..." : "CREATE WORKSPACE" })
|
|
592
|
-
] })
|
|
593
|
-
] }) });
|
|
926
|
+
]
|
|
927
|
+
}
|
|
928
|
+
) });
|
|
594
929
|
}
|
|
595
930
|
|
|
596
931
|
// src/components/workspace/WorkspaceTilesMenu.tsx
|
|
597
|
-
import { useId, useMemo, useState as useState6 } from "react";
|
|
598
|
-
import { FolderOpen, HardDrive as HardDrive6, Cloud as
|
|
932
|
+
import { useId, useMemo as useMemo2, useState as useState6 } from "react";
|
|
933
|
+
import { FolderOpen, HardDrive as HardDrive6, Cloud as Cloud5, LogOut } from "lucide-react";
|
|
599
934
|
import { defineFrnlComponent } from "@ultrst-armada/frnlts";
|
|
600
935
|
import { useFrnlComponent } from "@ultrst-armada/frnlts/react";
|
|
601
936
|
import { Fragment, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
@@ -612,6 +947,8 @@ function WorkspaceTilesMenu({
|
|
|
612
947
|
workspaces,
|
|
613
948
|
userId,
|
|
614
949
|
currentUser,
|
|
950
|
+
storageOptions,
|
|
951
|
+
onManageStorage,
|
|
615
952
|
activeWorkspaceId = null,
|
|
616
953
|
appName = "Workspaces",
|
|
617
954
|
storageService = defaultWorkspaceStorageService,
|
|
@@ -628,7 +965,7 @@ function WorkspaceTilesMenu({
|
|
|
628
965
|
const generated = useId().replace(/[:/]/g, "");
|
|
629
966
|
const componentId = `workspaceTilesMenu.${generated}`;
|
|
630
967
|
const [creating, setCreating] = useState6(false);
|
|
631
|
-
const handlers =
|
|
968
|
+
const handlers = useMemo2(() => ({
|
|
632
969
|
"workspaceTilesMenu.idle.select": (value) => onSelectWorkspace(value),
|
|
633
970
|
"workspaceTilesMenu.idle.create": () => setCreating(true),
|
|
634
971
|
"workspaceTilesMenu.idle.logout": () => onLogout?.()
|
|
@@ -660,7 +997,7 @@ function WorkspaceTilesMenu({
|
|
|
660
997
|
onCreate: () => frnl.events.create(void 0),
|
|
661
998
|
renderTile: (ws, selected) => /* @__PURE__ */ jsxs7(Fragment, { children: [
|
|
662
999
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-2 text-xs font-black uppercase", children: [
|
|
663
|
-
ws.storageProvider === "backblaze_b2" ? /* @__PURE__ */ jsx7(
|
|
1000
|
+
ws.storageProvider === "backblaze_b2" ? /* @__PURE__ */ jsx7(Cloud5, { size: 14 }) : /* @__PURE__ */ jsx7(HardDrive6, { size: 14 }),
|
|
664
1001
|
ws.title || ws.name || "Workspace"
|
|
665
1002
|
] }),
|
|
666
1003
|
/* @__PURE__ */ jsx7("p", { className: "mt-2 text-[11px] text-[var(--skipo-text-muted)]", children: ws.description }),
|
|
@@ -671,12 +1008,12 @@ function WorkspaceTilesMenu({
|
|
|
671
1008
|
] })
|
|
672
1009
|
}
|
|
673
1010
|
),
|
|
674
|
-
/* @__PURE__ */ jsx7(WorkspaceCreateDialog, { open: creating, userId: effectiveUserId, currentUser, storageService, onClose: () => setCreating(false), onSubmit: onCreateWorkspace })
|
|
1011
|
+
/* @__PURE__ */ jsx7(WorkspaceCreateDialog, { open: creating, userId: effectiveUserId, currentUser, appName, storageOptions, storageService, onManageStorage, onClose: () => setCreating(false), onSubmit: onCreateWorkspace })
|
|
675
1012
|
] });
|
|
676
1013
|
}
|
|
677
1014
|
|
|
678
1015
|
// src/components/workspace/WorkspaceGate.tsx
|
|
679
|
-
import { useMemo as
|
|
1016
|
+
import { useMemo as useMemo3 } from "react";
|
|
680
1017
|
import { LogOut as LogOut2, ArrowLeft } from "lucide-react";
|
|
681
1018
|
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
682
1019
|
var WorkspaceGate = ({
|
|
@@ -697,7 +1034,7 @@ var WorkspaceGate = ({
|
|
|
697
1034
|
loading = false,
|
|
698
1035
|
error = null
|
|
699
1036
|
}) => {
|
|
700
|
-
const normalizedWorkspaces =
|
|
1037
|
+
const normalizedWorkspaces = useMemo3(() => {
|
|
701
1038
|
return (workspaces || []).map((w) => ({
|
|
702
1039
|
id: w.id,
|
|
703
1040
|
title: w.title || w.name || "Workspace",
|
|
@@ -781,7 +1118,8 @@ export {
|
|
|
781
1118
|
StorageOptionTiles,
|
|
782
1119
|
WorkspaceStorageReadonlyPanel,
|
|
783
1120
|
WorkspaceSecondaryClonesPanel,
|
|
784
|
-
|
|
1121
|
+
formatWorkspaceFolderPreview,
|
|
1122
|
+
buildWorkspaceCreateInput,
|
|
785
1123
|
defaultWorkspaceStorageService,
|
|
786
1124
|
createKloksWorkspaceStorageService,
|
|
787
1125
|
WorkspaceCreateDialog,
|