@jini-ai/ui 0.7.2 → 0.7.3-next.2
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/CHANGELOG.md +1 -1
- package/README.md +15 -22
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.js +2 -1
- package/dist/browser/useDismissOnOutsideOrEscape.d.ts +4 -1
- package/dist/browser/useDismissOnOutsideOrEscape.js +5 -5
- package/dist/browser/useFileDropTarget.js +21 -18
- package/dist/browser/useGlobalKeydown.js +1 -1
- package/dist/browser/useMenuKeyboard.d.ts +34 -0
- package/dist/browser/useMenuKeyboard.js +55 -0
- package/dist/browser/useModalWindowDragGuard.d.ts +4 -1
- package/dist/browser/useModalWindowDragGuard.js +2 -2
- package/dist/core/theme/css-name.d.ts +3 -1
- package/dist/core/theme/css-name.js +1 -1
- package/dist/core/theme/stylesheet.js +1 -1
- package/dist/core.d.ts +2 -0
- package/dist/core.js +2 -0
- package/dist/features/a2ui/catalog-from-registry.d.ts +10 -4
- package/dist/features/a2ui/catalog-from-registry.js +1 -1
- package/dist/features/a2ui/index.d.ts +1 -2
- package/dist/features/a2ui/index.js +0 -1
- package/dist/features/a2ui/renderer.d.ts +13 -2
- package/dist/features/a2ui/renderer.hooks.d.ts +19 -0
- package/dist/features/a2ui/renderer.hooks.js +26 -0
- package/dist/features/a2ui/renderer.js +5 -19
- package/dist/features/a2ui/use-a2ui-surface.d.ts +1 -1
- package/dist/features/about/react/components/AboutTab.d.ts +16 -1
- package/dist/features/about/react/components/AboutTab.js +6 -6
- package/dist/features/about/react/hooks/useSilentUpdatesToggle.js +3 -3
- package/dist/features/about/rules.d.ts +19 -5
- package/dist/features/about/rules.js +5 -5
- package/dist/features/admin-widgets/components/ComingSoonNotice.js +2 -2
- package/dist/features/admin-widgets/components/ComingSoonPanel.js +1 -1
- package/dist/features/admin-widgets/components/ImagePreviewModal.d.ts +4 -1
- package/dist/features/admin-widgets/components/ImagePreviewModal.js +4 -4
- package/dist/features/admin-widgets/components/InfoTip.d.ts +4 -1
- package/dist/features/admin-widgets/components/InfoTip.hooks.js +67 -54
- package/dist/features/admin-widgets/components/InfoTip.js +12 -4
- package/dist/features/admin-widgets/components/InfoTip.rules.d.ts +2 -9
- package/dist/features/admin-widgets/components/InfoTip.rules.js +3 -3
- package/dist/features/admin-widgets/components/Lightbox/Lightbox.d.ts +1 -1
- package/dist/features/admin-widgets/components/Lightbox/Lightbox.hooks.js +4 -6
- package/dist/features/admin-widgets/components/Lightbox/Lightbox.js +2 -2
- package/dist/features/admin-widgets/components/SeeMore/SeeMore.d.ts +4 -1
- package/dist/features/admin-widgets/components/SeeMore/SeeMore.js +4 -4
- package/dist/features/admin-widgets/components/Select/Select.d.ts +13 -3
- package/dist/features/admin-widgets/components/Select/Select.hooks.d.ts +4 -0
- package/dist/features/admin-widgets/components/Select/Select.hooks.js +14 -3
- package/dist/features/admin-widgets/components/Select/Select.js +29 -19
- package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.d.ts +12 -2
- package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.hooks.d.ts +5 -0
- package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.hooks.js +7 -1
- package/dist/features/admin-widgets/components/SuggestInput/SuggestInput.js +9 -8
- package/dist/features/appearance/react/components/AppearanceTab.d.ts +3 -1
- package/dist/features/appearance/react/components/AppearanceTab.js +8 -4
- package/dist/features/appearance/types.d.ts +1 -1
- package/dist/features/appearance/types.js +1 -1
- package/dist/features/asset-grid/dependencies.js +6 -6
- package/dist/features/asset-grid/react/components/AssetCard.d.ts +13 -2
- package/dist/features/asset-grid/react/components/AssetCard.hooks.d.ts +9 -0
- package/dist/features/asset-grid/react/components/AssetCard.hooks.js +23 -0
- package/dist/features/asset-grid/react/components/AssetCard.js +12 -24
- package/dist/features/asset-grid/react/components/AssetGrid.d.ts +16 -3
- package/dist/features/asset-grid/react/components/AssetGrid.hooks.d.ts +56 -0
- package/dist/features/asset-grid/react/components/AssetGrid.hooks.js +143 -0
- package/dist/features/asset-grid/react/components/AssetGrid.js +14 -143
- package/dist/features/asset-grid/react/components/AssetGridBody.d.ts +4 -1
- package/dist/features/asset-grid/react/components/AssetGridBody.js +7 -7
- package/dist/features/asset-grid/react/components/AssetGridToolbar.d.ts +3 -1
- package/dist/features/asset-grid/react/components/AssetGridToolbar.js +14 -3
- package/dist/features/asset-grid/react/components/DeleteConfirmDialog.d.ts +6 -2
- package/dist/features/asset-grid/react/components/DeleteConfirmDialog.js +7 -7
- package/dist/features/asset-grid/react/components/SelectionActionBar.d.ts +3 -1
- package/dist/features/asset-grid/react/components/SelectionActionBar.js +3 -3
- package/dist/features/asset-grid/react/components/SelectionBand.js +1 -1
- package/dist/features/asset-grid/react/components/useAssetGridFilters.js +2 -2
- package/dist/features/asset-grid/react/hooks/useAssetGridData.js +4 -4
- package/dist/features/asset-grid/react/hooks/useAssetGridKeyboardShortcuts.js +1 -1
- package/dist/features/asset-grid/react/hooks/useAssetGridLiveUpdates.d.ts +3 -1
- package/dist/features/asset-grid/react/hooks/useAssetGridLiveUpdates.js +129 -128
- package/dist/features/asset-grid/react/hooks/useAssetGridSelection.js +4 -4
- package/dist/features/asset-grid/react/hooks/useRubberBandDrag.js +79 -70
- package/dist/features/asset-grid/rules.d.ts +83 -22
- package/dist/features/asset-grid/rules.js +23 -23
- package/dist/features/asset-tree-browser/dependencies.js +10 -10
- package/dist/features/asset-tree-browser/index.d.ts +1 -1
- package/dist/features/asset-tree-browser/index.js +1 -1
- package/dist/features/asset-tree-browser/react/components/AssetTreeBreadcrumbs.d.ts +3 -1
- package/dist/features/asset-tree-browser/react/components/AssetTreeBreadcrumbs.js +4 -4
- package/dist/features/asset-tree-browser/react/components/AssetTreeBrowser.d.ts +8 -3
- package/dist/features/asset-tree-browser/react/components/AssetTreeBrowser.js +4 -4
- package/dist/features/asset-tree-browser/react/components/AssetTreeBrowserParts.d.ts +6 -2
- package/dist/features/asset-tree-browser/react/components/AssetTreeBrowserParts.js +16 -16
- package/dist/features/asset-tree-browser/react/components/AssetTreeEmptyState.d.ts +3 -1
- package/dist/features/asset-tree-browser/react/components/AssetTreeEmptyState.js +3 -3
- package/dist/features/asset-tree-browser/react/components/AssetTreeFileRow.d.ts +5 -1
- package/dist/features/asset-tree-browser/react/components/AssetTreeFileRow.hooks.d.ts +8 -0
- package/dist/features/asset-tree-browser/react/components/AssetTreeFileRow.hooks.js +26 -0
- package/dist/features/asset-tree-browser/react/components/AssetTreeFileRow.js +53 -52
- package/dist/features/asset-tree-browser/react/components/AssetTreeFolderRow.d.ts +3 -1
- package/dist/features/asset-tree-browser/react/components/AssetTreeFolderRow.js +3 -3
- package/dist/features/asset-tree-browser/react/components/AssetTreeRowMenu.d.ts +3 -1
- package/dist/features/asset-tree-browser/react/components/AssetTreeRowMenu.js +3 -3
- package/dist/features/asset-tree-browser/react/components/AssetTreeSelectionBar.d.ts +3 -1
- package/dist/features/asset-tree-browser/react/components/AssetTreeSelectionBar.js +3 -3
- package/dist/features/asset-tree-browser/react/components/AssetTreeToolbar.d.ts +3 -1
- package/dist/features/asset-tree-browser/react/components/AssetTreeToolbar.js +3 -3
- package/dist/features/asset-tree-browser/react/components/AssetTreeUploadErrorBanner.d.ts +3 -1
- package/dist/features/asset-tree-browser/react/components/AssetTreeUploadErrorBanner.js +3 -3
- package/dist/features/asset-tree-browser/react/components/FilePreviewPane.d.ts +5 -2
- package/dist/features/asset-tree-browser/react/components/FilePreviewPane.js +5 -5
- package/dist/features/asset-tree-browser/react/hooks/useAssetTreeBatchActions.d.ts +4 -1
- package/dist/features/asset-tree-browser/react/hooks/useAssetTreeBatchActions.js +2 -2
- package/dist/features/asset-tree-browser/react/hooks/useAssetTreeNavigation.js +3 -3
- package/dist/features/asset-tree-browser/react/hooks/useAssetTreeRename.js +2 -2
- package/dist/features/asset-tree-browser/react/hooks/useAssetTreeRowMenu.js +1 -1
- package/dist/features/asset-tree-browser/react/hooks/useAssetTreeSelection.js +2 -2
- package/dist/features/asset-tree-browser/rules.d.ts +70 -17
- package/dist/features/asset-tree-browser/rules.js +17 -17
- package/dist/features/browser-chrome/dependencies.js +3 -3
- package/dist/features/browser-chrome/react/components/BrowserViewportControls.d.ts +6 -2
- package/dist/features/browser-chrome/react/components/BrowserViewportControls.js +4 -4
- package/dist/features/browser-chrome/react/hooks/useBrowserBridgeRegistration.d.ts +4 -1
- package/dist/features/browser-chrome/react/hooks/useBrowserBridgeRegistration.js +1 -1
- package/dist/features/browser-chrome/react/hooks/useBrowserHistory.d.ts +4 -1
- package/dist/features/browser-chrome/react/hooks/useBrowserHistory.js +2 -3
- package/dist/features/browser-chrome/react/hooks/useBrowserNavigationStack.js +5 -5
- package/dist/features/browser-chrome/rules.d.ts +76 -16
- package/dist/features/browser-chrome/rules.js +32 -32
- package/dist/features/browser-chrome/types.js +1 -1
- package/dist/features/charts/browser.d.ts +2 -2
- package/dist/features/charts/browser.js +64 -32
- package/dist/features/charts/catalog-manifests.d.ts +1 -1
- package/dist/features/charts/catalog-manifests.js +2 -1
- package/dist/features/charts/contract.d.ts +3 -44
- package/dist/features/charts/contract.js +2 -3
- package/dist/features/charts/default-theme.d.ts +3 -0
- package/dist/features/charts/default-theme.js +2 -0
- package/dist/features/charts/react.d.ts +1 -1
- package/dist/features/charts/react.js +3 -1
- package/dist/features/charts/registry.d.ts +3 -3
- package/dist/features/charts/registry.js +1 -1
- package/dist/features/charts/table.d.ts +1 -1
- package/dist/features/charts/wire.d.ts +17 -17
- package/dist/features/charts/wire.js +2 -1
- package/dist/features/command-palette/dependencies.js +2 -2
- package/dist/features/command-palette/ports.js +1 -1
- package/dist/features/command-palette/react/components/CommandPalette.d.ts +6 -2
- package/dist/features/command-palette/react/components/CommandPalette.hooks.d.ts +8 -0
- package/dist/features/command-palette/react/components/CommandPalette.hooks.js +14 -0
- package/dist/features/command-palette/react/components/CommandPalette.js +5 -12
- package/dist/features/command-palette/react/hooks/useCommandPalette.js +2 -2
- package/dist/features/command-palette/rules.d.ts +22 -5
- package/dist/features/command-palette/rules.js +6 -6
- package/dist/features/connectors/ConnectorsBrowser.d.ts +13 -2
- package/dist/features/connectors/ConnectorsBrowser.hooks.d.ts +41 -0
- package/dist/features/connectors/ConnectorsBrowser.hooks.js +50 -0
- package/dist/features/connectors/ConnectorsBrowser.js +7 -45
- package/dist/features/connectors/components/ConnectorAlertList.d.ts +3 -1
- package/dist/features/connectors/components/ConnectorAlertList.js +3 -3
- package/dist/features/connectors/components/ConnectorCard.d.ts +5 -1
- package/dist/features/connectors/components/ConnectorCard.hooks.d.ts +15 -0
- package/dist/features/connectors/components/ConnectorCard.hooks.js +39 -0
- package/dist/features/connectors/components/ConnectorCard.js +29 -50
- package/dist/features/connectors/components/ConnectorDetailDrawer.d.ts +17 -2
- package/dist/features/connectors/components/ConnectorDetailDrawer.js +34 -38
- package/dist/features/connectors/components/ConnectorGate.js +1 -1
- package/dist/features/connectors/components/ConnectorGrid.js +4 -4
- package/dist/features/connectors/components/ConnectorLogo.js +3 -3
- package/dist/features/connectors/components/ConnectorSearchBar.d.ts +5 -1
- package/dist/features/connectors/components/ConnectorSearchBar.hooks.d.ts +9 -0
- package/dist/features/connectors/components/ConnectorSearchBar.hooks.js +15 -0
- package/dist/features/connectors/components/ConnectorSearchBar.js +5 -13
- package/dist/features/connectors/components/ProviderTabBar.d.ts +3 -1
- package/dist/features/connectors/components/ProviderTabBar.js +4 -4
- package/dist/features/connectors/dependencies.js +15 -15
- package/dist/features/connectors/hooks/useConnectorAuthorization.d.ts +10 -8
- package/dist/features/connectors/hooks/useConnectorAuthorization.js +76 -95
- package/dist/features/connectors/hooks/useConnectorCatalog.d.ts +2 -0
- package/dist/features/connectors/hooks/useConnectorCatalog.js +11 -8
- package/dist/features/connectors/hooks/useConnectorDetail.js +5 -18
- package/dist/features/connectors/hooks/useWiredConnectorsBrowser.d.ts +2 -0
- package/dist/features/connectors/hooks/useWiredConnectorsBrowser.js +12 -7
- package/dist/features/connectors/rules.d.ts +123 -30
- package/dist/features/connectors/rules.js +51 -43
- package/dist/features/execution/claude/env-fields.d.ts +3 -0
- package/dist/features/execution/claude/env-fields.js +22 -0
- package/dist/features/execution/codex/env-fields.d.ts +3 -0
- package/dist/features/execution/codex/env-fields.js +36 -0
- package/dist/features/execution/constants.js +4 -52
- package/dist/features/execution/dependencies.js +15 -10
- package/dist/features/execution/http-adapter.d.ts +1 -1
- package/dist/features/execution/http-adapter.js +43 -38
- package/dist/features/execution/react/components/AgentCliEnvFields.d.ts +3 -1
- package/dist/features/execution/react/components/AgentCliEnvFields.js +4 -4
- package/dist/features/execution/react/components/AgentDiagnosticRow.d.ts +3 -1
- package/dist/features/execution/react/components/AgentDiagnosticRow.js +3 -3
- package/dist/features/execution/react/components/ByokProviderForm.d.ts +10 -1
- package/dist/features/execution/react/components/ByokProviderForm.hooks.d.ts +26 -0
- package/dist/features/execution/react/components/ByokProviderForm.hooks.js +29 -0
- package/dist/features/execution/react/components/ByokProviderForm.js +35 -52
- package/dist/features/execution/react/components/ExecutionTab.d.ts +6 -2
- package/dist/features/execution/react/components/ExecutionTab.hooks.d.ts +30 -0
- package/dist/features/execution/react/components/ExecutionTab.hooks.js +68 -0
- package/dist/features/execution/react/components/ExecutionTab.js +13 -69
- package/dist/features/execution/react/components/LocalCliAgentCard.d.ts +10 -1
- package/dist/features/execution/react/components/LocalCliAgentCard.js +19 -14
- package/dist/features/execution/react/components/LocalCliAgentList.d.ts +5 -1
- package/dist/features/execution/react/components/LocalCliAgentList.hooks.d.ts +12 -0
- package/dist/features/execution/react/components/LocalCliAgentList.hooks.js +15 -0
- package/dist/features/execution/react/components/LocalCliAgentList.js +8 -14
- package/dist/features/execution/react/components/LocalCliAgentSettings.js +15 -6
- package/dist/features/execution/react/components/ProviderChipGroup.js +1 -1
- package/dist/features/execution/react/components/SearchableModelSelect.d.ts +5 -2
- package/dist/features/execution/react/components/SearchableModelSelect.hooks.d.ts +14 -0
- package/dist/features/execution/react/components/SearchableModelSelect.hooks.js +33 -0
- package/dist/features/execution/react/components/SearchableModelSelect.js +5 -31
- package/dist/features/execution/react/hooks/use-byok-field-validation.hooks.js +1 -1
- package/dist/features/execution/react/hooks/use-execution-credential.hooks.d.ts +1 -1
- package/dist/features/execution/react/hooks/use-execution-credential.hooks.js +34 -9
- package/dist/features/execution/react/hooks/useExecutionTab.js +65 -39
- package/dist/features/execution/react/hooks/useLocalCliAgentCard.js +2 -2
- package/dist/features/execution/react/hooks/useLocalCliAgentList.js +1 -1
- package/dist/features/execution/react/hooks/useReasoningControl.js +8 -8
- package/dist/features/execution/rules.d.ts +145 -35
- package/dist/features/execution/rules.js +45 -45
- package/dist/features/external-mcp/react/components/ExternalMcpTab.d.ts +12 -1
- package/dist/features/external-mcp/react/components/ExternalMcpTab.js +9 -8
- package/dist/features/file-dropzone/react/components/FileDropzone.d.ts +11 -2
- package/dist/features/file-dropzone/react/components/FileDropzone.js +18 -7
- package/dist/features/file-dropzone/react/components/FileDropzoneLightbox.d.ts +3 -1
- package/dist/features/file-dropzone/react/components/FileDropzoneLightbox.js +4 -4
- package/dist/features/file-dropzone/react/components/FileDropzoneNameList.d.ts +3 -1
- package/dist/features/file-dropzone/react/components/FileDropzoneNameList.js +2 -2
- package/dist/features/file-dropzone/react/components/FileDropzoneThumbnailGrid.d.ts +3 -1
- package/dist/features/file-dropzone/react/components/FileDropzoneThumbnailGrid.js +2 -2
- package/dist/features/file-dropzone/react/components/FileDropzoneZone.d.ts +5 -1
- package/dist/features/file-dropzone/react/components/FileDropzoneZone.hooks.d.ts +12 -0
- package/dist/features/file-dropzone/react/components/FileDropzoneZone.hooks.js +21 -0
- package/dist/features/file-dropzone/react/components/FileDropzoneZone.js +5 -18
- package/dist/features/file-dropzone/react/hooks/useFileDialogTracking.js +20 -22
- package/dist/features/file-dropzone/react/hooks/useFileDropzone.d.ts +1 -1
- package/dist/features/file-dropzone/react/hooks/useFileDropzone.js +74 -57
- package/dist/features/file-dropzone/react/hooks/useFileDropzonePreviews.js +2 -2
- package/dist/features/file-dropzone/rules.d.ts +15 -4
- package/dist/features/file-dropzone/rules.js +5 -5
- package/dist/features/file-dropzone/types.d.ts +1 -1
- package/dist/features/file-dropzone/types.js +1 -1
- package/dist/features/find/find-query-scheduler.d.ts +22 -0
- package/dist/features/find/find-query-scheduler.js +28 -0
- package/dist/features/folder-path-drop/rules.d.ts +4 -1
- package/dist/features/folder-path-drop/rules.js +2 -2
- package/dist/features/html-editor/canvas-content-wrapper.d.ts +4 -1
- package/dist/features/html-editor/canvas-content-wrapper.js +2 -2
- package/dist/features/html-editor/canvas-embed-placeholders.d.ts +4 -1
- package/dist/features/html-editor/canvas-embed-placeholders.js +1 -1
- package/dist/features/html-editor/css.d.ts +3 -1
- package/dist/features/html-editor/css.js +107 -120
- package/dist/features/html-editor/dom.d.ts +0 -14
- package/dist/features/html-editor/dom.js +0 -19
- package/dist/features/html-editor/editor-serialization.d.ts +4 -2
- package/dist/features/html-editor/editor-serialization.js +18 -15
- package/dist/features/html-editor/index.d.ts +0 -1
- package/dist/features/html-editor/index.js +0 -1
- package/dist/features/html-editor/protected-elements.js +24 -21
- package/dist/features/html-editor/react/components/InteractiveHtmlEditor.d.ts +4 -2
- package/dist/features/html-editor/react/components/InteractiveHtmlEditor.js +2 -2
- package/dist/features/html-editor/react/hooks/useInteractiveHtmlEditor.d.ts +2 -0
- package/dist/features/html-editor/react/hooks/useInteractiveHtmlEditor.js +4 -4
- package/dist/features/html-editor/source-splice.d.ts +14 -5
- package/dist/features/html-editor/source-splice.js +7 -7
- package/dist/features/html-viewer/constants.d.ts +1 -1
- package/dist/features/html-viewer/constants.js +1 -1
- package/dist/features/html-viewer/dependencies.js +1 -1
- package/dist/features/html-viewer/react/components/DeckNavigationControls.d.ts +3 -1
- package/dist/features/html-viewer/react/components/DeckNavigationControls.js +2 -2
- package/dist/features/html-viewer/react/components/PresentMenu.d.ts +5 -1
- package/dist/features/html-viewer/react/components/PresentMenu.hooks.d.ts +8 -0
- package/dist/features/html-viewer/react/components/PresentMenu.hooks.js +14 -0
- package/dist/features/html-viewer/react/components/PresentMenu.js +4 -11
- package/dist/features/html-viewer/react/components/ZoomMenu.d.ts +5 -1
- package/dist/features/html-viewer/react/components/ZoomMenu.js +3 -3
- package/dist/features/html-viewer/react/hooks/useDeckNavigation.js +4 -4
- package/dist/features/html-viewer/react/hooks/useZoomControl.js +1 -1
- package/dist/features/html-viewer/rules.d.ts +23 -7
- package/dist/features/html-viewer/rules.js +7 -7
- package/dist/features/html-viewer/types.d.ts +1 -1
- package/dist/features/html-viewer/types.js +1 -1
- package/dist/features/i18n/context.d.ts +5 -2
- package/dist/features/i18n/context.hooks.d.ts +19 -0
- package/dist/features/i18n/context.hooks.js +43 -0
- package/dist/features/i18n/context.js +6 -39
- package/dist/features/i18n/dictionaries/settings-dialog.en.d.ts +1 -1
- package/dist/features/i18n/index.d.ts +0 -3
- package/dist/features/i18n/index.js +0 -2
- package/dist/features/i18n/locale.d.ts +5 -2
- package/dist/features/i18n/locale.js +2 -2
- package/dist/features/iframe-pool/react/components/IframeKeepAliveProvider.d.ts +5 -2
- package/dist/features/iframe-pool/react/components/IframeKeepAliveProvider.hooks.d.ts +9 -0
- package/dist/features/iframe-pool/react/components/IframeKeepAliveProvider.hooks.js +80 -0
- package/dist/features/iframe-pool/react/components/IframeKeepAliveProvider.js +4 -73
- package/dist/features/iframe-pool/react/components/PooledIframe.d.ts +4 -0
- package/dist/features/iframe-pool/react/components/PooledIframe.js +5 -5
- package/dist/features/iframe-pool/react/hooks/useIframeKeepAlivePool.js +1 -1
- package/dist/features/iframe-pool/rules.d.ts +11 -2
- package/dist/features/iframe-pool/rules.js +2 -2
- package/dist/features/instructions/react/components/InstructionsTab.d.ts +3 -1
- package/dist/features/instructions/react/components/InstructionsTab.js +3 -3
- package/dist/features/integrations/dependencies.js +6 -6
- package/dist/features/integrations/react/components/ClientPicker.d.ts +10 -1
- package/dist/features/integrations/react/components/ClientPicker.js +5 -4
- package/dist/features/integrations/react/components/CodexInstallToggleButton.d.ts +5 -1
- package/dist/features/integrations/react/components/CodexInstallToggleButton.js +8 -8
- package/dist/features/integrations/react/components/IntegrationsTab.d.ts +10 -1
- package/dist/features/integrations/react/components/IntegrationsTab.js +23 -18
- package/dist/features/integrations/react/components/SnippetBlock.d.ts +5 -1
- package/dist/features/integrations/react/components/SnippetBlock.hooks.d.ts +8 -0
- package/dist/features/integrations/react/components/SnippetBlock.hooks.js +42 -0
- package/dist/features/integrations/react/components/SnippetBlock.js +4 -39
- package/dist/features/integrations/react/hooks/useCodexInstallToggle.js +2 -2
- package/dist/features/integrations/react/hooks/useMcpInstallInfo.js +3 -3
- package/dist/features/integrations/rules.d.ts +50 -13
- package/dist/features/integrations/rules.js +34 -30
- package/dist/features/integrations/types.d.ts +1 -1
- package/dist/features/integrations/types.js +1 -1
- package/dist/features/interactive-ui/providers/native/data-table.d.ts +2 -1
- package/dist/features/interactive-ui/providers/native/data-table.js +2 -6
- package/dist/features/interactive-ui/providers/native/data-table.manifest.d.ts +7 -7
- package/dist/features/interactive-ui/providers/native/data-table.manifest.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/action-button.manifest.d.ts +1 -1
- package/dist/features/interactive-ui/providers/shadcn/action-button.manifest.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/button.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/card.js +5 -5
- package/dist/features/interactive-ui/providers/shadcn/checkbox-field.d.ts +3 -2
- package/dist/features/interactive-ui/providers/shadcn/checkbox-field.js +3 -3
- package/dist/features/interactive-ui/providers/shadcn/checkbox-field.manifest.d.ts +1 -1
- package/dist/features/interactive-ui/providers/shadcn/checkbox-field.manifest.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/checkbox.js +4 -1
- package/dist/features/interactive-ui/providers/shadcn/content-card.manifest.d.ts +1 -1
- package/dist/features/interactive-ui/providers/shadcn/content-card.manifest.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/data-table.d.ts +2 -1
- package/dist/features/interactive-ui/providers/shadcn/data-table.js +2 -6
- package/dist/features/interactive-ui/providers/shadcn/data-table.manifest.d.ts +7 -7
- package/dist/features/interactive-ui/providers/shadcn/data-table.manifest.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/input.js +4 -1
- package/dist/features/interactive-ui/providers/shadcn/label.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/lib/utils.d.ts +3 -1
- package/dist/features/interactive-ui/providers/shadcn/lib/utils.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/radio-group-field.manifest.d.ts +1 -1
- package/dist/features/interactive-ui/providers/shadcn/radio-group-field.manifest.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/radio-group.js +5 -2
- package/dist/features/interactive-ui/providers/shadcn/select-field.d.ts +3 -2
- package/dist/features/interactive-ui/providers/shadcn/select-field.js +3 -3
- package/dist/features/interactive-ui/providers/shadcn/select-field.manifest.d.ts +1 -1
- package/dist/features/interactive-ui/providers/shadcn/select-field.manifest.js +1 -1
- package/dist/features/interactive-ui/providers/shadcn/select.d.ts +2 -0
- package/dist/features/interactive-ui/providers/shadcn/select.js +22 -9
- package/dist/features/interactive-ui/providers/shadcn/table.d.ts +1 -1
- package/dist/features/interactive-ui/providers/shadcn/table.js +13 -7
- package/dist/features/interactive-ui/providers/shadcn/text-input-field.manifest.d.ts +1 -1
- package/dist/features/interactive-ui/providers/shadcn/text-input-field.manifest.js +1 -1
- package/dist/features/interactive-ui/table-row-activation.d.ts +15 -0
- package/dist/features/interactive-ui/table-row-activation.js +13 -0
- package/dist/features/interactive-ui/types.d.ts +1 -1
- package/dist/features/language/react/components/LanguageTab.d.ts +3 -1
- package/dist/features/language/react/components/LanguageTab.js +3 -3
- package/dist/features/list-detail-panel/react/components/ListDetailPanel.js +14 -9
- package/dist/features/list-detail-panel/react/hooks/useListDetailSelection.js +2 -2
- package/dist/features/list-detail-panel/rules.d.ts +8 -2
- package/dist/features/list-detail-panel/rules.js +2 -2
- package/dist/features/list-detail-panel/types.d.ts +1 -1
- package/dist/features/list-detail-panel/types.js +1 -1
- package/dist/features/live-views/live-views.d.ts +88 -0
- package/dist/features/live-views/live-views.js +116 -0
- package/dist/features/mcp-ui/confirmation-store.js +1 -1
- package/dist/features/mcp-ui/early-message-buffer.d.ts +3 -1
- package/dist/features/mcp-ui/early-message-buffer.js +1 -1
- package/dist/features/mcp-ui/escape.d.ts +8 -6
- package/dist/features/mcp-ui/escape.js +11 -4
- package/dist/features/mcp-ui/index.d.ts +0 -1
- package/dist/features/mcp-ui/index.js +0 -1
- package/dist/features/mcp-ui/protocol.d.ts +7 -11
- package/dist/features/mcp-ui/protocol.js +7 -10
- package/dist/features/mcp-ui/sandbox-proxy.d.ts +7 -3
- package/dist/features/mcp-ui/sandbox-proxy.js +4 -4
- package/dist/features/mcp-ui/secret-card.d.ts +2 -16
- package/dist/features/mcp-ui/sign-in-card.d.ts +3 -8
- package/dist/features/mcp-ui/surfaces/bridge.js +4 -4
- package/dist/features/mcp-ui/surfaces/checkbox.js +3 -3
- package/dist/features/mcp-ui/surfaces/choice-group.js +6 -6
- package/dist/features/mcp-ui/surfaces/confirmation.d.ts +1 -1
- package/dist/features/mcp-ui/surfaces/confirmation.js +12 -12
- package/dist/features/mcp-ui/surfaces/document.d.ts +9 -3
- package/dist/features/mcp-ui/surfaces/document.js +17 -17
- package/dist/features/mcp-ui/surfaces/fields.d.ts +9 -2
- package/dist/features/mcp-ui/surfaces/fields.js +3 -3
- package/dist/features/mcp-ui/surfaces/form.d.ts +1 -1
- package/dist/features/mcp-ui/surfaces/form.js +12 -12
- package/dist/features/mcp-ui/surfaces/host-theme.d.ts +4 -1
- package/dist/features/mcp-ui/surfaces/host-theme.js +1 -1
- package/dist/features/mcp-ui/surfaces/outcome.d.ts +1 -1
- package/dist/features/mcp-ui/surfaces/outcome.js +9 -9
- package/dist/features/mcp-ui/surfaces/select.js +4 -4
- package/dist/features/mcp-ui/surfaces/structured-details.js +5 -5
- package/dist/features/mcp-ui/surfaces/text-input.js +5 -5
- package/dist/features/media-providers/dependencies.js +5 -4
- package/dist/features/media-providers/react/components/MediaProviderCard.js +7 -7
- package/dist/features/media-providers/react/components/MediaProvidersTab.d.ts +7 -1
- package/dist/features/media-providers/react/components/MediaProvidersTab.hooks.d.ts +6 -0
- package/dist/features/media-providers/react/components/MediaProvidersTab.hooks.js +21 -0
- package/dist/features/media-providers/react/components/MediaProvidersTab.js +8 -22
- package/dist/features/media-providers/react/hooks/useMediaProvidersTab.js +4 -4
- package/dist/features/media-providers/rules.d.ts +42 -12
- package/dist/features/media-providers/rules.js +28 -25
- package/dist/features/memory/async-commit-guard.d.ts +1 -1
- package/dist/features/memory/constants.d.ts +3 -1
- package/dist/features/memory/constants.js +1 -1
- package/dist/features/memory/dependencies.js +29 -32
- package/dist/features/memory/formatters.d.ts +46 -13
- package/dist/features/memory/formatters.js +26 -26
- package/dist/features/memory/react/components/MemoryAdvancedModal.d.ts +5 -2
- package/dist/features/memory/react/components/MemoryAdvancedModal.js +51 -31
- package/dist/features/memory/react/components/MemoryConnectedPanel.d.ts +5 -2
- package/dist/features/memory/react/components/MemoryConnectedPanel.js +39 -44
- package/dist/features/memory/react/components/MemoryEntryCard.d.ts +3 -1
- package/dist/features/memory/react/components/MemoryEntryCard.js +4 -4
- package/dist/features/memory/react/components/MemoryExtractionCard.d.ts +3 -1
- package/dist/features/memory/react/components/MemoryExtractionCard.js +6 -6
- package/dist/features/memory/react/components/MemoryHooksPanel.d.ts +3 -1
- package/dist/features/memory/react/components/MemoryHooksPanel.js +4 -4
- package/dist/features/memory/react/components/MemoryHowPanel.d.ts +3 -1
- package/dist/features/memory/react/components/MemoryHowPanel.js +3 -3
- package/dist/features/memory/react/components/MemoryList.d.ts +3 -1
- package/dist/features/memory/react/components/MemoryList.js +22 -18
- package/dist/features/memory/react/components/MemoryManualEditor.d.ts +5 -2
- package/dist/features/memory/react/components/MemoryManualEditor.js +75 -51
- package/dist/features/memory/react/components/MemorySettingsPanel.d.ts +3 -1
- package/dist/features/memory/react/components/MemorySettingsPanel.js +8 -4
- package/dist/features/memory/react/components/MemorySuggestionPanel.d.ts +13 -0
- package/dist/features/memory/react/components/MemorySuggestionPanel.js +18 -0
- package/dist/features/memory/react/hooks/useMemoryConfig.hooks.js +116 -100
- package/dist/features/memory/react/hooks/useMemoryConnectors.hooks.d.ts +2 -13
- package/dist/features/memory/react/hooks/useMemoryConnectors.hooks.js +45 -391
- package/dist/features/memory/react/hooks/useMemoryConnectors.parts.hooks.d.ts +77 -0
- package/dist/features/memory/react/hooks/useMemoryConnectors.parts.hooks.js +483 -0
- package/dist/features/memory/react/hooks/useMemoryConnectors.rules.d.ts +3 -6
- package/dist/features/memory/react/hooks/useMemoryConnectors.rules.js +4 -12
- package/dist/features/memory/react/hooks/useMemoryEntries.hooks.js +159 -137
- package/dist/features/memory/react/hooks/useMemoryExtractions.hooks.js +36 -24
- package/dist/features/memory/react/hooks/useMemoryExtractions.store.js +194 -183
- package/dist/features/memory/react/render-markdown.js +2 -2
- package/dist/features/memory/rules.d.ts +19 -5
- package/dist/features/memory/rules.js +8 -8
- package/dist/features/memory/types.d.ts +1 -1
- package/dist/features/mention-autocomplete/react/components/MentionAutocomplete.d.ts +4 -1
- package/dist/features/mention-autocomplete/react/components/MentionAutocomplete.js +2 -2
- package/dist/features/mention-autocomplete/react/components/MentionCategoryTabs.d.ts +3 -1
- package/dist/features/mention-autocomplete/react/components/MentionCategoryTabs.js +2 -2
- package/dist/features/mention-autocomplete/react/components/MentionResultsList.d.ts +4 -1
- package/dist/features/mention-autocomplete/react/components/MentionResultsList.js +3 -3
- package/dist/features/mention-autocomplete/react/components/SelectedMentionChips.d.ts +4 -1
- package/dist/features/mention-autocomplete/react/components/SelectedMentionChips.js +3 -3
- package/dist/features/mention-autocomplete/react/hooks/useMentionAutocomplete.js +68 -49
- package/dist/features/mention-autocomplete/rules.d.ts +41 -8
- package/dist/features/mention-autocomplete/rules.js +9 -9
- package/dist/features/notifications/react/components/NotificationsTab.d.ts +10 -1
- package/dist/features/notifications/react/components/NotificationsTab.hooks.d.ts +33 -0
- package/dist/features/notifications/react/components/NotificationsTab.hooks.js +51 -0
- package/dist/features/notifications/react/components/NotificationsTab.js +16 -54
- package/dist/features/notifications/rules.d.ts +7 -4
- package/dist/features/notifications/rules.js +1 -1
- package/dist/features/notifications/types.d.ts +1 -1
- package/dist/features/observability/boot-timing.js +2 -2
- package/dist/features/observability/index.d.ts +0 -2
- package/dist/features/observability/index.js +0 -1
- package/dist/features/observability/install.d.ts +2 -4
- package/dist/features/observability/install.js +2 -4
- package/dist/features/observability/white-screen.js +4 -4
- package/dist/features/panel-kit/ErrorNotice.d.ts +7 -3
- package/dist/features/panel-kit/ErrorNotice.hooks.d.ts +14 -0
- package/dist/features/panel-kit/ErrorNotice.hooks.js +12 -0
- package/dist/features/panel-kit/ErrorNotice.js +5 -9
- package/dist/features/panel-kit/fetch-query/adapter.react.d.ts +11 -5
- package/dist/features/panel-kit/fetch-query/adapter.react.js +8 -6
- package/dist/features/panel-kit/fetch-query/adapter.tanstack.js +7 -5
- package/dist/features/panel-kit/fetch-query/browser-timing.d.ts +7 -0
- package/dist/features/panel-kit/fetch-query/browser-timing.js +8 -0
- package/dist/features/panel-kit/fetch-query/index.d.ts +3 -1
- package/dist/features/panel-kit/fetch-query/index.js +1 -0
- package/dist/features/panel-kit/fetch-query/use-cursor-pages.hooks.d.ts +45 -0
- package/dist/features/panel-kit/fetch-query/use-cursor-pages.hooks.js +56 -0
- package/dist/features/panel-kit/helpers/permissions.js +2 -2
- package/dist/features/panel-kit/helpers/retry-unreachable.d.ts +0 -4
- package/dist/features/panel-kit/helpers/retry-unreachable.js +0 -4
- package/dist/features/panel-kit/helpers/standing-draft-local-backup.js +3 -2
- package/dist/features/panel-kit/helpers/standing-draft-recovery-message.js +4 -2
- package/dist/features/panel-kit/hooks/settings-slice.helpers.d.ts +150 -0
- package/dist/features/panel-kit/hooks/settings-slice.helpers.js +79 -0
- package/dist/features/panel-kit/hooks/use-async-action.hooks.js +1 -1
- package/dist/features/panel-kit/hooks/use-bounded-status-poll.hooks.d.ts +29 -0
- package/dist/features/panel-kit/hooks/use-bounded-status-poll.hooks.js +46 -0
- package/dist/features/panel-kit/hooks/use-dirty-guard.hooks.d.ts +1 -1
- package/dist/features/panel-kit/hooks/use-dirty-guard.hooks.js +1 -0
- package/dist/features/panel-kit/hooks/use-optimistic-stored-value.hooks.d.ts +39 -0
- package/dist/features/panel-kit/hooks/use-optimistic-stored-value.hooks.js +38 -0
- package/dist/features/panel-kit/hooks/use-settings-slice-refresh.hooks.d.ts +5 -0
- package/dist/features/panel-kit/hooks/use-settings-slice-refresh.hooks.js +81 -0
- package/dist/features/panel-kit/hooks/use-settings-slice-save.hooks.d.ts +4 -0
- package/dist/features/panel-kit/hooks/use-settings-slice-save.hooks.js +94 -0
- package/dist/features/panel-kit/hooks/use-settings-slice-state.hooks.d.ts +27 -0
- package/dist/features/panel-kit/hooks/use-settings-slice-state.hooks.js +124 -0
- package/dist/features/panel-kit/hooks/use-settings-slice.hooks.d.ts +12 -150
- package/dist/features/panel-kit/hooks/use-settings-slice.hooks.js +31 -345
- package/dist/features/panel-kit/hooks/use-standing-draft-autosave.hooks.d.ts +26 -2
- package/dist/features/panel-kit/hooks/use-standing-draft-autosave.hooks.js +29 -295
- package/dist/features/panel-kit/hooks/use-standing-draft-recovery.hooks.d.ts +13 -0
- package/dist/features/panel-kit/hooks/use-standing-draft-recovery.hooks.js +106 -0
- package/dist/features/panel-kit/hooks/use-standing-draft-state.hooks.d.ts +23 -0
- package/dist/features/panel-kit/hooks/use-standing-draft-state.hooks.js +58 -0
- package/dist/features/panel-kit/hooks/use-standing-draft-writes.hooks.d.ts +29 -0
- package/dist/features/panel-kit/hooks/use-standing-draft-writes.hooks.js +193 -0
- package/dist/features/panel-kit/index.d.ts +8 -8
- package/dist/features/panel-kit/index.js +5 -6
- package/dist/features/privacy/react/components/PrivacyTab.d.ts +5 -2
- package/dist/features/privacy/react/components/PrivacyTab.js +5 -5
- package/dist/features/privacy/rules.d.ts +23 -4
- package/dist/features/privacy/rules.js +4 -4
- package/dist/features/privacy/types.d.ts +1 -1
- package/dist/features/privacy/types.js +1 -1
- package/dist/features/progress-card/components/ProgressCard.d.ts +5 -2
- package/dist/features/progress-card/components/ProgressCard.js +8 -8
- package/dist/features/progress-card/reference-adapters.d.ts +22 -8
- package/dist/features/progress-card/reference-adapters.js +17 -17
- package/dist/features/progress-card/rules.d.ts +19 -7
- package/dist/features/progress-card/rules.js +9 -9
- package/dist/features/progress-card/types.d.ts +1 -1
- package/dist/features/progress-card/types.js +1 -1
- package/dist/features/project-locations/dependencies.js +16 -13
- package/dist/features/project-locations/react/components/ProjectLocationsTab.d.ts +6 -1
- package/dist/features/project-locations/react/components/ProjectLocationsTab.hooks.d.ts +6 -0
- package/dist/features/project-locations/react/components/ProjectLocationsTab.hooks.js +5 -0
- package/dist/features/project-locations/react/components/ProjectLocationsTab.js +37 -26
- package/dist/features/project-locations/react/hooks/useProjectLocationsTab.js +84 -48
- package/dist/features/project-locations/rules.d.ts +13 -3
- package/dist/features/project-locations/rules.js +4 -4
- package/dist/features/project-locations/types.d.ts +5 -0
- package/dist/features/resource-dashboard/dependencies.d.ts +0 -13
- package/dist/features/resource-dashboard/dependencies.js +25 -13
- package/dist/features/resource-dashboard/index.js +4 -8
- package/dist/features/resource-dashboard/ports.d.ts +1 -1
- package/dist/features/resource-dashboard/react/components/ResourceBoard.d.ts +5 -2
- package/dist/features/resource-dashboard/react/components/ResourceBoard.js +36 -3
- package/dist/features/resource-dashboard/react/components/ResourceBoardToolbar.d.ts +2 -2
- package/dist/features/resource-dashboard/react/components/ResourceBoardToolbar.js +15 -6
- package/dist/features/resource-dashboard/react/components/ResourceBoardView.d.ts +3 -26
- package/dist/features/resource-dashboard/react/components/ResourceBoardViewParts.js +4 -4
- package/dist/features/resource-dashboard/react/components/ResourceCard.d.ts +4 -1
- package/dist/features/resource-dashboard/react/components/ResourceCard.hooks.d.ts +7 -0
- package/dist/features/resource-dashboard/react/components/ResourceCard.hooks.js +12 -0
- package/dist/features/resource-dashboard/react/components/ResourceCard.js +3 -8
- package/dist/features/resource-dashboard/react/components/ResourceCardParts.d.ts +1 -1
- package/dist/features/resource-dashboard/react/components/ResourceCardParts.js +14 -4
- package/dist/features/resource-dashboard/react/components/ResourceMetrics.js +1 -1
- package/dist/features/resource-dashboard/react/components/ResourceRowList.d.ts +6 -1
- package/dist/features/resource-dashboard/react/components/ResourceRowList.js +5 -5
- package/dist/features/resource-dashboard/react/components/ResourceRowListItem.js +1 -1
- package/dist/features/resource-dashboard/react/components/ResourceRowListItemParts.js +2 -2
- package/dist/features/resource-dashboard/react/components/ResourceRowListView.d.ts +1 -1
- package/dist/features/resource-dashboard/react/components/ResourceRowListView.js +2 -2
- package/dist/features/resource-dashboard/react/components/ResourceRowListViewParts.js +3 -3
- package/dist/features/resource-dashboard/react/components/ResourceRunHistoryList.d.ts +1 -1
- package/dist/features/resource-dashboard/react/components/ResourceRunHistoryList.js +1 -1
- package/dist/features/resource-dashboard/react/components/StatusPill.d.ts +1 -1
- package/dist/features/resource-dashboard/react/components/StatusPill.js +2 -2
- package/dist/features/resource-dashboard/react/components/resourceRowListProps.d.ts +6 -0
- package/dist/features/resource-dashboard/react/components/resourceRowListProps.js +4 -0
- package/dist/features/resource-dashboard/react/hooks/useResourceBoard.d.ts +0 -11
- package/dist/features/resource-dashboard/react/hooks/useResourceBoard.js +82 -85
- package/dist/features/resource-dashboard/react/hooks/useResourceRowList.js +42 -29
- package/dist/features/resource-dashboard/rules.d.ts +24 -11
- package/dist/features/resource-dashboard/rules.js +8 -27
- package/dist/features/revision-review/react/components/RevisionDiffCard.d.ts +4 -1
- package/dist/features/revision-review/react/components/RevisionDiffCard.js +4 -4
- package/dist/features/revision-review/react/components/RevisionHistoryList.d.ts +4 -1
- package/dist/features/revision-review/react/components/RevisionHistoryList.js +3 -3
- package/dist/features/revision-review/rules.d.ts +7 -2
- package/dist/features/revision-review/rules.js +2 -2
- package/dist/features/schedule-picker/react/components/RecurringSchedulePicker.d.ts +3 -1
- package/dist/features/schedule-picker/react/components/RecurringSchedulePicker.js +3 -3
- package/dist/features/schedule-picker/react/components/ScheduleFields.d.ts +3 -1
- package/dist/features/schedule-picker/react/components/ScheduleFields.js +4 -4
- package/dist/features/schedule-picker/react/components/ScheduleKindTabs.d.ts +3 -1
- package/dist/features/schedule-picker/react/components/ScheduleKindTabs.js +2 -2
- package/dist/features/schedule-picker/react/components/ScheduleSummary.d.ts +3 -1
- package/dist/features/schedule-picker/react/components/ScheduleSummary.js +4 -4
- package/dist/features/schedule-picker/react/components/WeekdayGrid.d.ts +3 -1
- package/dist/features/schedule-picker/react/components/WeekdayGrid.js +2 -2
- package/dist/features/schedule-picker/react/hooks/useRecurringSchedulePicker.js +3 -3
- package/dist/features/schedule-picker/rules.d.ts +29 -8
- package/dist/features/schedule-picker/rules.js +10 -10
- package/dist/features/settings/dialog/react/components/SettingsDialogShell.d.ts +4 -1
- package/dist/features/settings/dialog/react/components/SettingsDialogShell.js +2 -2
- package/dist/features/settings/dialog/styles/settings-dialog.css +155 -155
- package/dist/features/site-card/index.d.ts +2 -0
- package/dist/features/site-card/index.js +2 -0
- package/dist/features/site-card/rules.d.ts +79 -0
- package/dist/features/site-card/rules.js +84 -0
- package/dist/features/site-card/site-card.css +30 -31
- package/dist/features/site-card/use-site-list-prefs.hooks.d.ts +36 -0
- package/dist/features/site-card/use-site-list-prefs.hooks.js +37 -0
- package/dist/features/sketch-editor/constants.d.ts +1 -1
- package/dist/features/sketch-editor/constants.js +1 -1
- package/dist/features/sketch-editor/dom.d.ts +49 -11
- package/dist/features/sketch-editor/dom.js +29 -29
- package/dist/features/sketch-editor/react/components/SketchEditor.d.ts +13 -3
- package/dist/features/sketch-editor/react/components/SketchEditor.js +35 -26
- package/dist/features/sketch-editor/react/components/SketchSaveStateBadge.js +1 -1
- package/dist/features/sketch-editor/react/dependencies-fake.d.ts +36 -0
- package/dist/features/sketch-editor/react/dependencies-fake.hooks.d.ts +10 -0
- package/dist/features/sketch-editor/react/dependencies-fake.hooks.js +33 -0
- package/dist/features/sketch-editor/react/dependencies-fake.js +3 -43
- package/dist/features/sketch-editor/react/hooks/useSketchDomEnhancements.d.ts +1 -1
- package/dist/features/sketch-editor/react/hooks/useSketchDomEnhancements.js +9 -9
- package/dist/features/sketch-editor/react/hooks/useSketchSaveWorkflow.d.ts +2 -0
- package/dist/features/sketch-editor/react/hooks/useSketchSaveWorkflow.js +71 -59
- package/dist/features/sketch-editor/react/hooks/useSketchScene.js +7 -5
- package/dist/features/sketch-editor/rules.d.ts +60 -15
- package/dist/features/sketch-editor/rules.js +20 -20
- package/dist/features/sketch-editor/types.d.ts +1 -1
- package/dist/features/sketch-editor/types.js +1 -1
- package/dist/features/skills/dependencies.js +30 -23
- package/dist/features/skills/react/components/SkillDraftForm.d.ts +3 -1
- package/dist/features/skills/react/components/SkillDraftForm.hooks.d.ts +12 -0
- package/dist/features/skills/react/components/SkillDraftForm.hooks.js +5 -0
- package/dist/features/skills/react/components/SkillDraftForm.js +5 -4
- package/dist/features/skills/react/components/SkillRow.d.ts +3 -1
- package/dist/features/skills/react/components/SkillRow.js +11 -7
- package/dist/features/skills/react/components/SkillsTab.d.ts +10 -1
- package/dist/features/skills/react/components/SkillsTab.js +15 -6
- package/dist/features/skills/react/hooks/useSkillsTab.js +6 -6
- package/dist/features/skills/rules.d.ts +50 -12
- package/dist/features/skills/rules.js +21 -18
- package/dist/features/source-config-list/agent-handles.d.ts +19 -46
- package/dist/features/source-config-list/agent-handles.js +10 -10
- package/dist/features/source-config-list/dependencies.d.ts +0 -13
- package/dist/features/source-config-list/dependencies.js +22 -11
- package/dist/features/source-config-list/react/components/SourceConfigAddForm.d.ts +4 -1
- package/dist/features/source-config-list/react/components/SourceConfigAddForm.js +16 -16
- package/dist/features/source-config-list/react/components/SourceConfigField.d.ts +19 -1
- package/dist/features/source-config-list/react/components/SourceConfigField.js +18 -18
- package/dist/features/source-config-list/react/components/SourceConfigItemCard.d.ts +18 -2
- package/dist/features/source-config-list/react/components/SourceConfigItemCard.js +32 -32
- package/dist/features/source-config-list/react/components/SourceConfigList.d.ts +1 -1
- package/dist/features/source-config-list/react/components/SourceConfigList.js +1 -1
- package/dist/features/source-config-list/react/components/SourceConfigListView.js +12 -12
- package/dist/features/source-config-list/react/components/SourceConfigTestControl.d.ts +4 -2
- package/dist/features/source-config-list/react/components/SourceConfigTestControl.js +9 -9
- package/dist/features/source-config-list/react/components/SourceConfigTrustOptions.d.ts +3 -1
- package/dist/features/source-config-list/react/components/SourceConfigTrustOptions.js +2 -2
- package/dist/features/source-config-list/react/hooks/useSourceConfigAddForm.d.ts +1 -1
- package/dist/features/source-config-list/react/hooks/useSourceConfigAddForm.js +5 -5
- package/dist/features/source-config-list/react/hooks/useSourceConfigList.js +91 -81
- package/dist/features/source-config-list/rules.d.ts +51 -12
- package/dist/features/source-config-list/rules.js +19 -24
- package/dist/features/source-config-list/types.d.ts +1 -1
- package/dist/features/source-config-list/types.js +1 -1
- package/dist/features/tab-launcher-menu/react/components/TabLauncherMenu.d.ts +5 -2
- package/dist/features/tab-launcher-menu/react/components/TabLauncherMenu.js +32 -22
- package/dist/features/tab-launcher-menu/react/hooks/useTabLauncherMenu.js +81 -57
- package/dist/features/tab-launcher-menu/rules.d.ts +33 -6
- package/dist/features/tab-launcher-menu/rules.js +6 -6
- package/dist/features/tab-strip/index.d.ts +2 -0
- package/dist/features/tab-strip/index.js +2 -0
- package/dist/features/tab-strip/react/components/TabBar.d.ts +4 -1
- package/dist/features/tab-strip/react/components/TabBar.hooks.js +1 -1
- package/dist/features/tab-strip/react/components/TabBar.js +4 -4
- package/dist/features/tab-strip/react/components/TabStrip.d.ts +4 -3
- package/dist/features/tab-strip/react/components/TabStrip.js +4 -4
- package/dist/features/tab-strip/react/components/TabStripItem.d.ts +7 -2
- package/dist/features/tab-strip/react/components/TabStripItem.hooks.d.ts +11 -0
- package/dist/features/tab-strip/react/components/TabStripItem.hooks.js +30 -0
- package/dist/features/tab-strip/react/components/TabStripItem.js +6 -31
- package/dist/features/tab-strip/react/hooks/useScrollableTabStrip.d.ts +27 -0
- package/dist/features/tab-strip/react/hooks/useScrollableTabStrip.js +30 -0
- package/dist/features/tab-strip/react/hooks/useTabStripDragReorder.js +93 -68
- package/dist/features/tab-strip/rules.d.ts +34 -10
- package/dist/features/tab-strip/rules.js +8 -8
- package/dist/features/tab-strip/scrollable.d.ts +32 -0
- package/dist/features/tab-strip/scrollable.js +45 -0
- package/dist/features/tabbed-dialog/react/components/TabbedDialog.d.ts +7 -2
- package/dist/features/tabbed-dialog/react/components/TabbedDialog.js +5 -5
- package/dist/features/tabbed-dialog/react/hooks/useTabbedDialog.js +1 -1
- package/dist/features/tabbed-dialog/rules.d.ts +9 -2
- package/dist/features/tabbed-dialog/rules.js +2 -2
- package/dist/features/tabbed-dialog/types.d.ts +1 -1
- package/dist/features/tabbed-dialog/types.js +1 -1
- package/dist/features/version-manager/ports.d.ts +1 -1
- package/dist/features/version-manager/react/components/VersionManagerModal.d.ts +9 -3
- package/dist/features/version-manager/react/components/VersionManagerModal.hooks.d.ts +5 -0
- package/dist/features/version-manager/react/components/VersionManagerModal.hooks.js +32 -0
- package/dist/features/version-manager/react/components/VersionManagerModal.js +40 -42
- package/dist/features/version-manager/react/components/VersionPreviewFrame.d.ts +10 -1
- package/dist/features/version-manager/react/components/VersionPreviewFrame.js +15 -8
- package/dist/features/version-manager/react/components/VersionPromptPopover.d.ts +5 -1
- package/dist/features/version-manager/react/components/VersionPromptPopover.js +3 -3
- package/dist/features/version-manager/react/components/VersionRestoreControl.d.ts +5 -1
- package/dist/features/version-manager/react/components/VersionRestoreControl.js +3 -3
- package/dist/features/version-manager/react/components/VersionSidebar.d.ts +4 -1
- package/dist/features/version-manager/react/components/VersionSidebar.js +17 -8
- package/dist/features/version-manager/react/hooks/useVersionManager.d.ts +3 -5
- package/dist/features/version-manager/react/hooks/useVersionManager.js +24 -233
- package/dist/features/version-manager/react/hooks/useVersionManager.state.d.ts +133 -0
- package/dist/features/version-manager/react/hooks/useVersionManager.state.js +257 -0
- package/dist/features/version-manager/rules.d.ts +52 -12
- package/dist/features/version-manager/rules.js +12 -12
- package/dist/features/version-manager/types.d.ts +1 -1
- package/dist/features/version-manager/types.js +1 -1
- package/dist/features/viewer-shell/index.d.ts +4 -0
- package/dist/features/viewer-shell/index.js +2 -0
- package/dist/features/viewer-shell/ports.d.ts +1 -1
- package/dist/features/viewer-shell/react/components/AudioViewerBody.js +1 -1
- package/dist/features/viewer-shell/react/components/CodeWithLines.d.ts +4 -3
- package/dist/features/viewer-shell/react/components/CodeWithLines.js +17 -3
- package/dist/features/viewer-shell/react/components/CodeWrapToggle.d.ts +12 -0
- package/dist/features/viewer-shell/react/components/CodeWrapToggle.js +8 -0
- package/dist/features/viewer-shell/react/components/CommentSidePanel.d.ts +21 -4
- package/dist/features/viewer-shell/react/components/CommentSidePanel.hooks.d.ts +7 -0
- package/dist/features/viewer-shell/react/components/CommentSidePanel.hooks.js +11 -0
- package/dist/features/viewer-shell/react/components/CommentSidePanel.js +42 -64
- package/dist/features/viewer-shell/react/components/CommentSideParts.d.ts +30 -0
- package/dist/features/viewer-shell/react/components/CommentSideParts.js +43 -0
- package/dist/features/viewer-shell/react/components/JsonPanel.js +1 -1
- package/dist/features/viewer-shell/react/components/MarkdownSplitPane.d.ts +12 -3
- package/dist/features/viewer-shell/react/components/MarkdownSplitPane.hooks.d.ts +6 -0
- package/dist/features/viewer-shell/react/components/MarkdownSplitPane.hooks.js +5 -0
- package/dist/features/viewer-shell/react/components/MarkdownSplitPane.js +22 -21
- package/dist/features/viewer-shell/react/components/SegmentedToggle.d.ts +1 -1
- package/dist/features/viewer-shell/react/components/SegmentedToggle.js +2 -2
- package/dist/features/viewer-shell/react/components/SvgSourcePane.js +1 -1
- package/dist/features/viewer-shell/react/components/ViewerFileActions.d.ts +3 -1
- package/dist/features/viewer-shell/react/components/ViewerFileActions.js +3 -3
- package/dist/features/viewer-shell/react/components/ViewerShell.js +1 -1
- package/dist/features/viewer-shell/react/components/ViewportSwitcher.d.ts +4 -2
- package/dist/features/viewer-shell/react/components/ViewportSwitcher.js +3 -3
- package/dist/features/viewer-shell/react/components/ViewportToggleGroup.d.ts +1 -1
- package/dist/features/viewer-shell/react/components/ViewportToggleGroup.js +2 -2
- package/dist/features/viewer-shell/react/hooks/useCodeWrap.d.ts +16 -0
- package/dist/features/viewer-shell/react/hooks/useCodeWrap.js +10 -0
- package/dist/features/viewer-shell/react/hooks/useCommentReorder.js +2 -2
- package/dist/features/viewer-shell/react/hooks/useMarkdownScrollSync.d.ts +1 -1
- package/dist/features/viewer-shell/react/hooks/useMarkdownScrollSync.js +102 -73
- package/dist/features/viewer-shell/rules.d.ts +44 -15
- package/dist/features/viewer-shell/rules.js +14 -14
- package/dist/features/viewer-shell/types.d.ts +1 -1
- package/dist/features/viewer-shell/types.js +1 -1
- package/dist/icon-name.d.ts +1 -1
- package/dist/icon-name.js +18 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.js +5 -3
- package/dist/react/components/AppChromeHeader.js +2 -2
- package/dist/react/components/BrandLogo.d.ts +8 -13
- package/dist/react/components/BrandLogo.js +2 -2
- package/dist/react/components/CompactToggle.js +1 -1
- package/dist/react/components/ComponentKitPreview.d.ts +4 -2
- package/dist/react/components/ComponentKitPreview.js +3 -3
- package/dist/react/components/CustomSelect.d.ts +13 -4
- package/dist/react/components/CustomSelect.hooks.d.ts +12 -0
- package/dist/react/components/CustomSelect.hooks.js +7 -0
- package/dist/react/components/CustomSelect.js +13 -12
- package/dist/react/components/CustomSelect.types.d.ts +76 -0
- package/dist/react/components/CustomSelect.types.js +2 -0
- package/dist/react/components/CustomSelectMarkup.d.ts +27 -0
- package/dist/react/components/CustomSelectMarkup.js +35 -0
- package/dist/react/components/EditorIcon.js +2 -2
- package/dist/react/components/ExportDiagnosticsButton.d.ts +2 -1
- package/dist/react/components/ExportDiagnosticsButton.js +3 -3
- package/dist/react/components/FileImportPanel.d.ts +3 -1
- package/dist/react/components/FileImportPanel.js +4 -4
- package/dist/react/components/HeaderActionsMenu.d.ts +4 -1
- package/dist/react/components/HeaderActionsMenu.js +2 -2
- package/dist/react/components/Icon.d.ts +3 -10
- package/dist/react/components/Icon.js +8 -138
- package/dist/react/components/ImportChoice.js +2 -2
- package/dist/react/components/LanguageMenu.d.ts +13 -3
- package/dist/react/components/LanguageMenu.js +6 -6
- package/dist/react/components/Loading.js +4 -4
- package/dist/react/components/Notice.d.ts +3 -1
- package/dist/react/components/Notice.js +6 -6
- package/dist/react/components/OnboardingDropdown.d.ts +1 -1
- package/dist/react/components/OnboardingDropdown.js +32 -23
- package/dist/react/components/OptionCards.js +1 -1
- package/dist/react/components/PaletteTweaks.d.ts +11 -3
- package/dist/react/components/PaletteTweaks.js +8 -8
- package/dist/react/components/PillButton.d.ts +3 -2
- package/dist/react/components/PillButton.js +4 -4
- package/dist/react/components/PopoverItem.d.ts +3 -2
- package/dist/react/components/PopoverItem.js +3 -3
- package/dist/react/components/PopoverMenu.js +2 -2
- package/dist/react/components/RemixIcon.d.ts +3 -1
- package/dist/react/components/RemixIcon.js +3 -3
- package/dist/react/components/RemixIcon.stylesheet.d.ts +4 -1
- package/dist/react/components/RemixIcon.stylesheet.js +7 -5
- package/dist/react/components/SecretInput.d.ts +16 -1
- package/dist/react/components/SecretInput.js +6 -7
- package/dist/react/components/StatCard.js +1 -1
- package/dist/react/components/Toast.d.ts +4 -1
- package/dist/react/components/Toast.js +3 -3
- package/dist/react/components/ToggleRow.js +1 -1
- package/dist/react/components/TooltipLayer.js +168 -139
- package/dist/react/components/WorkingDirPicker.d.ts +11 -1
- package/dist/react/components/WorkingDirPicker.hooks.d.ts +8 -0
- package/dist/react/components/WorkingDirPicker.hooks.js +59 -0
- package/dist/react/components/WorkingDirPicker.js +5 -57
- package/dist/react/components/icon-action-renderers.d.ts +31 -0
- package/dist/react/components/icon-action-renderers.js +40 -0
- package/dist/react/components/icon-control-renderers.d.ts +33 -0
- package/dist/react/components/icon-control-renderers.js +47 -0
- package/dist/react/components/icon-line-glyphs.d.ts +9 -0
- package/dist/react/components/icon-line-glyphs.js +30 -0
- package/dist/react/components/icon-path-data.d.ts +7 -0
- package/dist/react/components/icon-path-data.js +7 -0
- package/dist/react/components/icon-renderer-types.d.ts +4 -0
- package/dist/react/components/icon-renderer-types.js +2 -0
- package/dist/react/components/icon-workspace-renderers.d.ts +42 -0
- package/dist/react/components/icon-workspace-renderers.js +56 -0
- package/dist/react/components/select-popover.js +2 -2
- package/dist/react/hooks/useAgentHandle.js +1 -1
- package/dist/react/hooks/usePersistedDisclosure.d.ts +15 -0
- package/dist/react/hooks/usePersistedDisclosure.js +41 -0
- package/dist/react/hooks/useResizableSplitPane.d.ts +12 -2
- package/dist/react/hooks/useResizableSplitPane.js +193 -128
- package/dist/react/kit.d.ts +61 -0
- package/dist/react/kit.js +27 -0
- package/dist/react/mcp-ui/McpUiHost.d.ts +11 -2
- package/dist/react/mcp-ui/McpUiHost.js +5 -3
- package/dist/react/mcp-ui/host-message-source.js +1 -1
- package/dist/react/mcp-ui/mcp-ui-host-frame.js +1 -1
- package/dist/react/mcp-ui/useMcpUiHost.d.ts +1 -11
- package/dist/react/mcp-ui/useMcpUiHost.js +39 -15
- package/dist/react/testing.d.ts +6 -0
- package/dist/react/testing.js +18 -0
- package/dist/renderers/annotation-canvas/drawing.d.ts +35 -14
- package/dist/renderers/annotation-canvas/drawing.js +20 -21
- package/dist/renderers/annotation-canvas/react/components/AnnotationCanvas.d.ts +3 -1
- package/dist/renderers/annotation-canvas/react/components/AnnotationCanvas.js +30 -18
- package/dist/renderers/annotation-canvas/react/hooks/useAnnotationCanvas.js +21 -10
- package/dist/renderers/annotation-canvas/rules.d.ts +15 -5
- package/dist/renderers/annotation-canvas/rules.js +6 -6
- package/dist/renderers/annotation-canvas/types.d.ts +1 -1
- package/dist/renderers/html-utils.d.ts +15 -4
- package/dist/renderers/html-utils.js +4 -4
- package/dist/renderers/index.d.ts +2 -2
- package/dist/renderers/index.js +2 -2
- package/dist/renderers/new-tab-preview.d.ts +8 -2
- package/dist/renderers/new-tab-preview.js +6 -6
- package/dist/renderers/preview-modal-shell/react/components/PreviewModalShell.d.ts +6 -2
- package/dist/renderers/preview-modal-shell/react/components/PreviewModalShell.js +14 -14
- package/dist/renderers/preview-modal-shell/react/hooks/usePreviewModalShell.d.ts +1 -1
- package/dist/renderers/preview-modal-shell/react/hooks/usePreviewModalShell.js +65 -56
- package/dist/renderers/preview-modal-shell/rules.d.ts +24 -9
- package/dist/renderers/preview-modal-shell/rules.js +5 -5
- package/dist/renderers/preview-modal-shell/types.d.ts +3 -3
- package/dist/renderers/preview-modal-shell/types.js +2 -2
- package/dist/renderers/react/components/ArtifactView.d.ts +12 -2
- package/dist/renderers/react/components/ArtifactView.hooks.d.ts +8 -0
- package/dist/renderers/react/components/ArtifactView.hooks.js +10 -0
- package/dist/renderers/react/components/ArtifactView.js +6 -6
- package/dist/renderers/react/components/SrcDocSandbox.d.ts +5 -2
- package/dist/renderers/react/components/SrcDocSandbox.js +3 -3
- package/dist/renderers/renderers/markdown.js +1 -1
- package/dist/renderers/sandbox-bridge.js +0 -1
- package/dist/renderers/sandbox-scripts.js +7 -1
- package/dist/renderers/sandboxed-document.d.ts +13 -4
- package/dist/renderers/sandboxed-document.js +11 -11
- package/dist/renderers/shiki.d.ts +4 -1
- package/dist/renderers/shiki.js +1 -1
- package/dist/renderers/srcdoc/bridge.d.ts +4 -1
- package/dist/renderers/srcdoc/bridge.js +1 -1
- package/dist/renderers/srcdoc/build.d.ts +22 -7
- package/dist/renderers/srcdoc/build.js +15 -16
- package/dist/renderers/url-load-decision.d.ts +9 -3
- package/dist/renderers/url-load-decision.js +3 -3
- package/dist/styles/admin.css +5 -5
- package/dist/styles/lightbox.css +1 -1
- package/dist/theme/apply.js +1 -1
- package/dist/utils/auto-open-file.d.ts +7 -2
- package/dist/utils/auto-open-file.js +2 -2
- package/dist/utils/class-names.d.ts +4 -1
- package/dist/utils/class-names.js +1 -1
- package/dist/utils/copy-to-clipboard.js +2 -2
- package/dist/utils/design-md.d.ts +26 -6
- package/dist/utils/design-md.js +16 -13
- package/dist/utils/dom-subscriptions.d.ts +28 -9
- package/dist/utils/dom-subscriptions.js +18 -11
- package/dist/utils/endpoint-policy.d.ts +1 -1
- package/dist/utils/endpoint-policy.js +1 -1
- package/dist/utils/fake-latency.d.ts +9 -0
- package/dist/utils/fake-latency.js +5 -0
- package/dist/utils/file-system-errors.d.ts +4 -1
- package/dist/utils/file-system-errors.js +1 -1
- package/dist/utils/file-transfer.d.ts +6 -3
- package/dist/utils/file-transfer.js +6 -24
- package/dist/utils/ime-composing.d.ts +4 -1
- package/dist/utils/ime-composing.js +1 -1
- package/dist/utils/localized-url.d.ts +3 -1
- package/dist/utils/localized-url.js +2 -2
- package/dist/utils/markdown-scroll-sync.d.ts +23 -5
- package/dist/utils/markdown-scroll-sync.js +8 -8
- package/dist/utils/notifications.d.ts +10 -4
- package/dist/utils/notifications.js +6 -6
- package/dist/utils/pending-actions.d.ts +24 -0
- package/dist/utils/pending-actions.js +23 -0
- package/dist/utils/polygon-selection.d.ts +12 -3
- package/dist/utils/polygon-selection.js +4 -4
- package/dist/utils/smooth-scroll-to-top.js +1 -1
- package/dist/utils/timezone.d.ts +3 -1
- package/dist/utils/timezone.js +1 -1
- package/dist/utils/trim-chars.d.ts +16 -4
- package/dist/utils/trim-chars.js +5 -5
- package/dist/utils/unhandled-case.d.ts +4 -2
- package/dist/utils/unhandled-case.js +2 -2
- package/dist/utils/unit-bezier.d.ts +6 -1
- package/dist/utils/unit-bezier.js +1 -1
- package/dist/utils/visible-interval.d.ts +41 -0
- package/dist/utils/visible-interval.js +51 -0
- package/dist/utils/visual-stability.d.ts +3 -1
- package/dist/utils/visual-stability.js +1 -1
- package/dist/utils/zip.d.ts +3 -1
- package/dist/utils/zip.js +1 -1
- package/package.json +46 -52
- package/dist/features/a2ui/protocol.d.ts +0 -7
- package/dist/features/a2ui/protocol.js +0 -7
- package/dist/features/admin-widgets/components/ImagePreviewModal.hooks.d.ts +0 -13
- package/dist/features/admin-widgets/components/ImagePreviewModal.hooks.js +0 -46
- package/dist/features/i18n/dictionary-translator.d.ts +0 -19
- package/dist/features/i18n/dictionary-translator.js +0 -14
- package/dist/features/i18n/template-i18n.d.ts +0 -37
- package/dist/features/i18n/template-i18n.js +0 -48
- package/dist/features/i18n/universal.d.ts +0 -3
- package/dist/features/i18n/universal.js +0 -3
- package/dist/features/lexical-rich-text-editor/constants.d.ts +0 -16
- package/dist/features/lexical-rich-text-editor/constants.js +0 -18
- package/dist/features/lexical-rich-text-editor/deserialize.d.ts +0 -4
- package/dist/features/lexical-rich-text-editor/deserialize.js +0 -50
- package/dist/features/lexical-rich-text-editor/index.d.ts +0 -12
- package/dist/features/lexical-rich-text-editor/index.js +0 -11
- package/dist/features/lexical-rich-text-editor/mention-node.d.ts +0 -44
- package/dist/features/lexical-rich-text-editor/mention-node.js +0 -130
- package/dist/features/lexical-rich-text-editor/mention-parser.d.ts +0 -45
- package/dist/features/lexical-rich-text-editor/mention-parser.js +0 -242
- package/dist/features/lexical-rich-text-editor/react/components/CaretFloatingLayer.d.ts +0 -20
- package/dist/features/lexical-rich-text-editor/react/components/CaretFloatingLayer.js +0 -33
- package/dist/features/lexical-rich-text-editor/react/components/RichTextInput.d.ts +0 -61
- package/dist/features/lexical-rich-text-editor/react/components/RichTextInput.js +0 -156
- package/dist/features/lexical-rich-text-editor/react/hooks/useCaretFloatingLayerPosition.d.ts +0 -15
- package/dist/features/lexical-rich-text-editor/react/hooks/useCaretFloatingLayerPosition.js +0 -54
- package/dist/features/lexical-rich-text-editor/react/hooks/useKeyboardCommands.d.ts +0 -11
- package/dist/features/lexical-rich-text-editor/react/hooks/useKeyboardCommands.js +0 -65
- package/dist/features/lexical-rich-text-editor/react/hooks/useMentionAtomicNavigation.d.ts +0 -8
- package/dist/features/lexical-rich-text-editor/react/hooks/useMentionAtomicNavigation.js +0 -63
- package/dist/features/lexical-rich-text-editor/react/hooks/useMentionColorStamping.d.ts +0 -18
- package/dist/features/lexical-rich-text-editor/react/hooks/useMentionColorStamping.js +0 -64
- package/dist/features/lexical-rich-text-editor/react/hooks/usePasteFiles.d.ts +0 -5
- package/dist/features/lexical-rich-text-editor/react/hooks/usePasteFiles.js +0 -24
- package/dist/features/lexical-rich-text-editor/react/hooks/useSeededValue.d.ts +0 -21
- package/dist/features/lexical-rich-text-editor/react/hooks/useSeededValue.js +0 -35
- package/dist/features/lexical-rich-text-editor/react/hooks/useSyncedOnChange.d.ts +0 -10
- package/dist/features/lexical-rich-text-editor/react/hooks/useSyncedOnChange.js +0 -29
- package/dist/features/lexical-rich-text-editor/react/hooks/useTriggerDetection.d.ts +0 -6
- package/dist/features/lexical-rich-text-editor/react/hooks/useTriggerDetection.js +0 -39
- package/dist/features/lexical-rich-text-editor/rules.d.ts +0 -83
- package/dist/features/lexical-rich-text-editor/rules.js +0 -330
- package/dist/features/lexical-rich-text-editor/serialize.d.ts +0 -4
- package/dist/features/lexical-rich-text-editor/serialize.js +0 -45
- package/dist/features/lexical-rich-text-editor/types.d.ts +0 -73
- package/dist/features/lexical-rich-text-editor/types.js +0 -5
- package/dist/features/mcp-ui/resource.d.ts +0 -252
- package/dist/features/mcp-ui/resource.js +0 -248
- package/dist/features/observability/stuck-run.d.ts +0 -41
- package/dist/features/observability/stuck-run.js +0 -117
- package/dist/features/panel-kit/helpers/format-timestamp.d.ts +0 -20
- package/dist/features/panel-kit/helpers/format-timestamp.js +0 -29
- package/dist/features/panel-kit/helpers/resolve-active-tab-id.d.ts +0 -13
- package/dist/features/panel-kit/helpers/resolve-active-tab-id.js +0 -15
- package/dist/react/components/SecretInput.hooks.d.ts +0 -3
- package/dist/react/components/SecretInput.hooks.js +0 -3
|
@@ -1,146 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
'document-outline-compact': 'M6.5 3.5h7.6l3.9 3.9v13.1H6.5z',
|
|
6
|
-
'folder-outline-compact': 'M3.5 7.5V6A1.5 1.5 0 0 1 5 4.5h4l2 2h8A1.5 1.5 0 0 1 20.5 8v10A1.5 1.5 0 0 1 19 19.5H5A1.5 1.5 0 0 1 3.5 18z',
|
|
7
|
-
};
|
|
1
|
+
import { LINE_GLYPH_RENDERERS } from './icon-line-glyphs.js';
|
|
2
|
+
import { ACTION_ICON_RENDERERS } from './icon-action-renderers.js';
|
|
3
|
+
import { WORKSPACE_ICON_RENDERERS } from './icon-workspace-renderers.js';
|
|
4
|
+
import { CONTROL_ICON_RENDERERS } from './icon-control-renderers.js';
|
|
8
5
|
// Exported as a test seam only — call it directly to assert key-set
|
|
9
6
|
// completeness and per-entry validity without rendering. NOT part of the
|
|
10
7
|
// package's public API: do not re-export it from `packages/ui/src/index.ts`
|
|
11
8
|
// or any entry point.
|
|
12
9
|
export const ICON_RENDERERS = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
'chevron-right-wide': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M9 5.5 15.5 12 9 18.5" }) })),
|
|
18
|
-
'check-long': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "m5 13 4.5 4.5L19 6.5" }) })),
|
|
19
|
-
'alert-triangle': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }), _jsx("path", { d: "M12 9v4" }), _jsx("path", { d: "M12 17h.01" })] })),
|
|
20
|
-
'arrow-left': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M19 12H5" }), _jsx("path", { d: "m12 19-7-7 7-7" })] })),
|
|
21
|
-
'arrow-up': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M12 19V5" }), _jsx("path", { d: "m5 12 7-7 7 7" })] })),
|
|
22
|
-
'attach': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }) })),
|
|
23
|
-
'bell': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9" }), _jsx("path", { d: "M10.3 21a1.94 1.94 0 0 0 3.4 0" })] })),
|
|
24
|
-
'blocks': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2" }), _jsx("rect", { x: "14", y: "2", width: "8", height: "8", rx: "1" })] })),
|
|
25
|
-
'check': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M20 6 9 17l-5-5" }) })),
|
|
26
|
-
'chevron-down': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "m6 9 6 6 6-6" }) })),
|
|
27
|
-
'chevron-left': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "m15 18-6-6 6-6" }) })),
|
|
28
|
-
'chevron-right': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "m9 18 6-6-6-6" }) })),
|
|
29
|
-
'close': (common) => (
|
|
30
|
-
// Tighter X than the Lucide default (which uses coords 6→18 inside a
|
|
31
|
-
// 24-unit viewBox, so the visible glyph is only 50% of the icon box).
|
|
32
|
-
// Close buttons read as a small dot inside their container at typical
|
|
33
|
-
// 14-18px icon sizes. Extending the strokes to 4→20 lifts the visible
|
|
34
|
-
// extent to ~67% so the X feels balanced inside compact modal close
|
|
35
|
-
// buttons (PluginMediaDetail / NewProjectModal / PreviewModal) without
|
|
36
|
-
// overpowering chip-sized close icons (ChatComposer / SettingsDialog).
|
|
37
|
-
_jsxs("svg", { ...common, children: [_jsx("path", { d: "M20 4 4 20" }), _jsx("path", { d: "m4 4 16 16" })] })),
|
|
38
|
-
'copy': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2" }), _jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })] })),
|
|
39
|
-
'comment': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }) })),
|
|
40
|
-
'message-circle': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5A8.5 8.5 0 0 1 21 11v.5z" }) })),
|
|
41
|
-
'discord': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M8.52062 13.8458C7.48059 13.8458 6.63159 12.9014 6.63159 11.7446 6.63159 10.5879 7.45936 9.64331 8.52062 9.64331 9.57123 9.64331 10.4308 10.5879 10.4096 11.7446 10.4096 12.9014 9.57123 13.8458 8.52062 13.8458ZM15.4941 13.8458C14.454 13.8458 13.604 12.9014 13.604 11.7446 13.604 10.5879 14.4328 9.64331 15.4941 9.64331 16.5447 9.64331 17.4043 10.5879 17.3831 11.7446 17.3831 12.9014 16.5553 13.8458 15.4941 13.8458ZM10.1253 4.32296 9.81655 3.76001 9.18323 3.86556C7.71915 4.10958 6.32658 4.54677 5.02544 5.14604L4.79651 5.25148 4.65507 5.46009C2.0418 9.31441 1.3258 13.1087 1.68032 16.8362L1.71897 17.2425 2.04912 17.4824C3.78851 18.7465 5.47417 19.5189 7.12727 20.0257L7.91657 20.2676 9.03013 17.5506C10.9397 18.0226 13.0592 18.0228 14.969 17.5511L16.0757 20.2683 16.8668 20.0256C18.5173 19.5193 20.2137 18.7472 21.9466 17.4811L22.2726 17.243 22.3131 16.8414C22.7491 12.5213 21.616 8.75773 19.3547 5.45652L19.2128 5.24944 18.9846 5.14504C17.6767 4.54685 16.2852 4.10981 14.8309 3.86573L14.2132 3.76207 13.8987 4.30369C13.8112 4.45445 13.7215 4.62464 13.6364 4.79687 12.5441 4.6847 11.456 4.68446 10.3726 4.79652 10.2882 4.62736 10.2025 4.4638 10.1253 4.32296ZM6.71436 16.6102C6.91235 16.7243 7.11973 16.8358 7.32557 16.9381L6.8764 18.034C5.75585 17.6259 4.61837 17.0637 3.4476 16.2557 3.22313 13.1178 3.86092 9.951 6.01196 6.68626 6.90962 6.29123 7.8535 5.98279 8.83606 5.77295 8.89631 5.89831 8.95235 6.02066 8.99839 6.12917L9.27128 6.77238 9.96259 6.67098C11.3152 6.4726 12.6772 6.47234 14.0523 6.67124L14.7424 6.77106 15.0147 6.12917C15.0621 6.01743 15.1167 5.89547 15.1743 5.77322 16.1525 5.98326 17.098 6.29212 18.0029 6.68812 19.8781 9.50857 20.8241 12.6544 20.5486 16.2552 19.3837 17.0625 18.2422 17.6249 17.1193 18.0335L16.6735 16.939C16.8799 16.8365 17.0879 16.7246 17.2865 16.6102 17.7763 16.328 18.3039 15.976 18.6402 15.6397L17.3606 14.3602C17.1969 14.5239 16.837 14.7808 16.3831 15.0423 15.9388 15.2983 15.498 15.5052 15.2164 15.5983 13.2126 16.2608 10.7883 16.2608 8.78443 15.5983 8.50285 15.5052 8.06205 15.2983 7.61772 15.0423 7.16383 14.7808 6.80392 14.5239 6.64017 14.3602L5.36065 15.6397C5.6969 15.976 6.2245 16.328 6.71436 16.6102Z" }) })),
|
|
42
|
-
'download': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), _jsx("path", { d: "m7 10 5 5 5-5" }), _jsx("path", { d: "M12 15V3" })] })),
|
|
43
|
-
'draw': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z" }), _jsx("path", { d: "m14.06 6.19 3.75 3.75" })] })),
|
|
44
|
-
'edit': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }), _jsx("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })] })),
|
|
45
|
-
'eye': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z" }), _jsx("circle", { cx: "12", cy: "12", r: "3" })] })),
|
|
46
|
-
'eye-off': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "m3 3 18 18" }), _jsx("path", { d: "M10.6 10.6a2 2 0 0 0 2.8 2.8" }), _jsx("path", { d: "M9.9 4.2A9.9 9.9 0 0 1 12 4c6.5 0 10 8 10 8a17.8 17.8 0 0 1-2.1 3.1" }), _jsx("path", { d: "M6.1 6.1C3.5 7.9 2 12 2 12s3.5 8 10 8a9.9 9.9 0 0 0 4.2-.9" })] })),
|
|
47
|
-
'external-link': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M15 3h6v6" }), _jsx("path", { d: "M10 14 21 3" }), _jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })] })),
|
|
48
|
-
'log-out': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }), _jsx("path", { d: "m16 17 5-5-5-5" }), _jsx("path", { d: "M21 12H9" })] })),
|
|
49
|
-
'file': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }), _jsx("path", { d: "M14 2v6h6" })] })),
|
|
50
|
-
'file-code': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }), _jsx("path", { d: "M14 2v6h6" }), _jsx("path", { d: "m10 13-2 2 2 2" }), _jsx("path", { d: "m14 17 2-2-2-2" })] })),
|
|
51
|
-
'folder': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" }) })),
|
|
52
|
-
'fork': (common) => (_jsxs("svg", { ...common, children: [_jsx("circle", { cx: "6", cy: "18", r: "3" }), _jsx("circle", { cx: "18", cy: "6", r: "3" }), _jsx("circle", { cx: "18", cy: "18", r: "3" }), _jsx("path", { d: "M8.6 15.4 15.4 8.6" }), _jsx("path", { d: "M9 18h6" })] })),
|
|
53
|
-
'folder-filled': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M2 4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21L3 21C2.45 21 2 20.55 2 20V4ZM10.5858 6L9.58579 5H4V7H9.58579L10.5858 6ZM4 9V19L20 19V7H12.4142L10.4142 9H4Z" }) })),
|
|
54
|
-
'github': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.4 5.4 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4" }), _jsx("path", { d: "M9 18c-4.51 2-5-2-7-2" })] })),
|
|
55
|
-
'github-filled': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M5.88401 18.6533C5.58404 18.4526 5.32587 18.1975 5.0239 17.8369C4.91473 17.7065 4.47283 17.1524 4.55811 17.2583C4.09533 16.6833 3.80296 16.417 3.50156 16.3089C2.9817 16.1225 2.7114 15.5499 2.89784 15.0301C3.08428 14.5102 3.65685 14.2399 4.17672 14.4263C4.92936 14.6963 5.43847 15.1611 6.12425 16.0143C6.03025 15.8974 6.46364 16.441 6.55731 16.5529C6.74784 16.7804 6.88732 16.9182 6.99629 16.9911C7.20118 17.1283 7.58451 17.1874 8.14709 17.1311C8.17065 16.7489 8.24136 16.3783 8.34919 16.0358C5.38097 15.3104 3.70116 13.3952 3.70116 9.63971C3.70116 8.40085 4.0704 7.28393 4.75917 6.3478C4.5415 5.45392 4.57433 4.37284 5.06092 3.15636C5.1725 2.87739 5.40361 2.66338 5.69031 2.57352C5.77242 2.54973 5.81791 2.53915 5.89878 2.52673C6.70167 2.40343 7.83573 2.69705 9.31449 3.62336C10.181 3.41879 11.0885 3.315 12.0012 3.315C12.9129 3.315 13.8196 3.4186 14.6854 3.62277C16.1619 2.69 17.2986 2.39649 18.1072 2.52651C18.1919 2.54013 18.2645 2.55783 18.3249 2.57766C18.6059 2.66991 18.8316 2.88179 18.9414 3.15636C19.4279 4.37256 19.4608 5.45344 19.2433 6.3472C19.9342 7.28337 20.3012 8.39208 20.3012 9.63971C20.3012 13.3968 18.627 15.3048 15.6588 16.032C15.7837 16.447 15.8496 16.9105 15.8496 17.4121C15.8496 18.0765 15.8471 18.711 15.8424 19.4225C15.8412 19.6127 15.8397 19.8159 15.8375 20.1281C16.2129 20.2109 16.5229 20.5077 16.6031 20.9089C16.7114 21.4504 16.3602 21.9773 15.8186 22.0856C14.6794 22.3134 13.8353 21.5538 13.8353 20.5611C13.8353 20.4708 13.836 20.3417 13.8375 20.1145C13.8398 19.8015 13.8412 19.599 13.8425 19.4094C13.8471 18.7019 13.8496 18.0716 13.8496 17.4121C13.8496 16.7148 13.6664 16.2602 13.4237 16.051C12.7627 15.4812 13.0977 14.3973 13.965 14.2999C16.9314 13.9666 18.3012 12.8177 18.3012 9.63971C18.3012 8.68508 17.9893 7.89571 17.3881 7.23559C17.1301 6.95233 17.0567 6.54659 17.199 6.19087C17.3647 5.77663 17.4354 5.23384 17.2941 4.57702L17.2847 4.57968C16.7928 4.71886 16.1744 5.0198 15.4261 5.5285C15.182 5.69438 14.8772 5.74401 14.5932 5.66413C13.7729 5.43343 12.8913 5.315 12.0012 5.315C11.111 5.315 10.2294 5.43343 9.40916 5.66413C9.12662 5.74359 8.82344 5.69492 8.57997 5.53101C7.8274 5.02439 7.2056 4.72379 6.71079 4.58376C6.56735 5.23696 6.63814 5.77782 6.80336 6.19087C6.94565 6.54659 6.87219 6.95233 6.61423 7.23559C6.01715 7.8912 5.70116 8.69376 5.70116 9.63971C5.70116 12.8116 7.07225 13.9683 10.023 14.2999C10.8883 14.3971 11.2246 15.4769 10.5675 16.0482C10.3751 16.2156 10.1384 16.7802 10.1384 17.4121V20.5611C10.1384 21.5474 9.30356 22.2869 8.17878 22.09C7.63476 21.9948 7.27093 21.4766 7.36613 20.9326C7.43827 20.5204 7.75331 20.2116 8.13841 20.1276V19.1381C7.22829 19.1994 6.47656 19.0498 5.88401 18.6533Z" }) })),
|
|
56
|
-
'grip-vertical': (common) => (_jsxs("svg", { ...common, fill: "currentColor", stroke: "none", children: [_jsx("circle", { cx: "9", cy: "5", r: "1.45" }), _jsx("circle", { cx: "15", cy: "5", r: "1.45" }), _jsx("circle", { cx: "9", cy: "12", r: "1.45" }), _jsx("circle", { cx: "15", cy: "12", r: "1.45" }), _jsx("circle", { cx: "9", cy: "19", r: "1.45" }), _jsx("circle", { cx: "15", cy: "19", r: "1.45" })] })),
|
|
57
|
-
'grid': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "3", y: "3", width: "7", height: "7", rx: "1" }), _jsx("rect", { x: "14", y: "3", width: "7", height: "7", rx: "1" }), _jsx("rect", { x: "3", y: "14", width: "7", height: "7", rx: "1" }), _jsx("rect", { x: "14", y: "14", width: "7", height: "7", rx: "1" })] })),
|
|
58
|
-
'globe': (common) => (_jsxs("svg", { ...common, children: [_jsx("circle", { cx: "12", cy: "12", r: "10" }), _jsx("path", { d: "M2 12h20" }), _jsx("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10Z" })] })),
|
|
59
|
-
'puzzle': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M7 5C7 2.79086 8.79086 1 11 1C13.2091 1 15 2.79086 15 5H18C18.5523 5 19 5.44772 19 6V9C21.2091 9 23 10.7909 23 13C23 15.2091 21.2091 17 19 17V20C19 20.5523 18.5523 21 18 21H4C3.44772 21 3 20.5523 3 20V6C3 5.44772 3.44772 5 4 5H7ZM11 3C9.89543 3 9 3.89543 9 5C9 5.23554 9.0403 5.45952 9.11355 5.66675C9.22172 5.97282 9.17461 6.31235 8.98718 6.57739C8.79974 6.84243 8.49532 7 8.17071 7H5V19H17V15.8293C17 15.5047 17.1576 15.2003 17.4226 15.0128C17.6877 14.8254 18.0272 14.7783 18.3332 14.8865C18.5405 14.9597 18.7645 15 19 15C20.1046 15 21 14.1046 21 13C21 11.8954 20.1046 11 19 11C18.7645 11 18.5405 11.0403 18.3332 11.1135C18.0272 11.2217 17.6877 11.1746 17.4226 10.9872C17.1576 10.7997 17 10.4953 17 10.1707V7H13.8293C13.5047 7 13.2003 6.84243 13.0128 6.57739C12.8254 6.31235 12.7783 5.97282 12.8865 5.66675C12.9597 5.45952 13 5.23555 13 5C13 3.89543 12.1046 3 11 3Z" }) })),
|
|
60
|
-
'hammer': (common) => (
|
|
61
|
-
// Lucide-style hammer — a slanted head plus diagonal handle, used
|
|
62
|
-
// to signal "tool / functionality" affordances. Pairs with the
|
|
63
|
-
// entry topbar's Use everywhere chip where a chain link would
|
|
64
|
-
// misleadingly read as a hyperlink instead of a callable tool.
|
|
65
|
-
_jsxs("svg", { ...common, children: [_jsx("path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9" }), _jsx("path", { d: "m18 15 4-4" }), _jsx("path", { d: "m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" })] })),
|
|
66
|
-
'help-circle': (common) => (_jsxs("svg", { ...common, children: [_jsx("circle", { cx: "12", cy: "12", r: "10" }), _jsx("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }), _jsx("path", { d: "M12 17h.01" })] })),
|
|
67
|
-
'history': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M3 12a9 9 0 1 0 3-6.7" }), _jsx("path", { d: "M3 4v5h5" }), _jsx("path", { d: "M12 7v5l3 2" })] })),
|
|
68
|
-
'home': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "m3 9 9-7 9 7v11a2 2 0 0 1-2 2h-4v-7h-6v7H5a2 2 0 0 1-2-2z" }) })),
|
|
69
|
-
'home-filled': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M19 21H5C4.44772 21 4 20.5523 4 20V11L1 11L11.3273 1.6115C11.7087 1.26475 12.2913 1.26475 12.6727 1.6115L23 11L20 11V20C20 20.5523 19.5523 21 19 21ZM6 19H18V9.15745L12 3.7029L6 9.15745V19ZM8 15H16V17H8V15Z" }) })),
|
|
70
|
-
'image': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }), _jsx("circle", { cx: "9", cy: "9", r: "2" }), _jsx("path", { d: "m21 15-4.5-4.5L7 20" })] })),
|
|
71
|
-
'panel-left': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }), _jsx("line", { x1: "9", y1: "3", x2: "9", y2: "21" })] })),
|
|
72
|
-
'slides': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "3", y: "7", width: "14", height: "14", rx: "2.5" }), _jsx("path", { d: "M8 3.5h10A2.5 2.5 0 0 1 20.5 6v10" })] })),
|
|
73
|
-
'import': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), _jsx("path", { d: "m17 8-5-5-5 5" }), _jsx("path", { d: "M12 3v12" })] })),
|
|
74
|
-
'info': (common) => (_jsxs("svg", { ...common, children: [_jsx("circle", { cx: "12", cy: "12", r: "10" }), _jsx("line", { x1: "12", y1: "16", x2: "12", y2: "12" }), _jsx("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })] })),
|
|
75
|
-
'kanban': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "3", y: "4", width: "5", height: "16", rx: "1" }), _jsx("rect", { x: "10", y: "4", width: "5", height: "10", rx: "1" }), _jsx("rect", { x: "17", y: "4", width: "4", height: "13", rx: "1" })] })),
|
|
76
|
-
'layers-filled': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M20.0833 15.1999L21.2854 15.9212C21.5221 16.0633 21.5989 16.3704 21.4569 16.6072C21.4146 16.6776 21.3557 16.7365 21.2854 16.7787L12.5144 22.0412C12.1977 22.2313 11.8021 22.2313 11.4854 22.0412L2.71451 16.7787C2.47772 16.6366 2.40093 16.3295 2.54301 16.0927C2.58523 16.0223 2.64413 15.9634 2.71451 15.9212L3.9166 15.1999L11.9999 20.0499L20.0833 15.1999ZM20.0833 10.4999L21.2854 11.2212C21.5221 11.3633 21.5989 11.6704 21.4569 11.9072C21.4146 11.9776 21.3557 12.0365 21.2854 12.0787L11.9999 17.6499L2.71451 12.0787C2.47772 11.9366 2.40093 11.6295 2.54301 11.3927C2.58523 11.3223 2.64413 11.2634 2.71451 11.2212L3.9166 10.4999L11.9999 15.3499L20.0833 10.4999ZM12.5144 1.30864L21.2854 6.5712C21.5221 6.71327 21.5989 7.0204 21.4569 7.25719C21.4146 7.32757 21.3557 7.38647 21.2854 7.42869L11.9999 12.9999L2.71451 7.42869C2.47772 7.28662 2.40093 6.97949 2.54301 6.7427C2.58523 6.67232 2.64413 6.61343 2.71451 6.5712L11.4854 1.30864C11.8021 1.11864 12.1977 1.11864 12.5144 1.30864ZM11.9999 3.33233L5.88723 6.99995L11.9999 10.6676L18.1126 6.99995L11.9999 3.33233Z" }) })),
|
|
77
|
-
'languages': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "m5 8 6 6" }), _jsx("path", { d: "m4 14 6-6 2-3" }), _jsx("path", { d: "M2 5h12" }), _jsx("path", { d: "M7 2h1" }), _jsx("path", { d: "m22 22-5-10-5 10" }), _jsx("path", { d: "M14 18h6" })] })),
|
|
78
|
-
'lightbulb': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M9 18h6" }), _jsx("path", { d: "M10 22h4" }), _jsx("path", { d: "M12 2a7 7 0 0 0-4.1 12.7c.8.6 1.1 1.5 1.1 2.3h6c0-.8.3-1.7 1.1-2.3A7 7 0 0 0 12 2Z" }), _jsx("path", { d: "M10 10a2 2 0 0 1 4 0" })] })),
|
|
79
|
-
'link': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 1 0-7.07-7.07L11.75 5.18" }), _jsx("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 1 0 7.07 7.07l1.71-1.71" })] })),
|
|
80
|
-
'lock': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }), _jsx("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })] })),
|
|
81
|
-
'integrations-filled': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M6.00723 7.29726C6.00242 7.19876 5.99998 7.09965 5.99998 7C5.99998 3.68629 8.68627 1 12 1C13.3496 1 14.5977 1.44677 15.6006 2.20007L14.3994 3.7992C13.731 3.29712 12.9016 3 12 3C11.7239 3 11.4542 3.02798 11.1938 3.08127C9.37112 3.45426 8 5.06701 8 7C8 9.03308 9.51679 10.7119 11.4805 10.9666C12.5039 9.55847 14.055 8.70883 15.696 8.53306C16.3796 8.45983 17.0792 8.50382 17.7635 8.67248C18.3006 8.80481 18.828 9.01404 19.33 9.3039C22.1998 10.9608 23.183 14.6303 21.5262 17.5C19.8693 20.3698 16.1998 21.3531 13.33 19.6962C12.828 19.4064 12.3832 19.0543 12 18.6554C11.6169 19.0543 11.172 19.4064 10.6699 19.6963C7.80019 21.3531 4.13065 20.3699 2.47379 17.5001C0.81694 14.6304 1.80019 10.9608 4.66995 9.30397C5.17193 9.01416 5.69919 8.80494 6.23623 8.67261C6.11278 8.24646 6.03531 7.80079 6.00955 7.3413L6.00723 7.29726ZM7.14979 10.5328C6.64359 10.5989 6.14138 10.7638 5.66995 11.036C3.75678 12.1406 3.10128 14.587 4.20585 16.5001C5.31042 18.4133 7.75678 19.0688 9.66995 17.9642C10.3021 17.5993 10.7949 17.09 11.1337 16.5024C11.7429 15.4457 11.8532 14.1391 11.3649 12.9669C10.9807 12.9264 10.6072 12.8497 10.2481 12.7402C10.2028 12.7264 10.1577 12.712 10.1128 12.6972C8.91238 12.2997 7.87997 11.5335 7.14979 10.5328ZM13.1543 16.9343C13.4647 17.3396 13.8586 17.692 14.33 17.9642C16.2432 19.0687 18.6895 18.4132 19.7941 16.5C20.2936 15.635 20.4332 14.6609 20.2593 13.7511C20.0488 12.6488 19.3781 11.6409 18.33 11.0357C17.6978 10.6708 17.0104 10.4986 16.3322 10.499C15.1125 10.4998 13.9259 11.0576 13.1548 12.0666C13.2661 12.3165 13.3588 12.5707 13.4336 12.8277C13.4774 12.9785 13.5151 13.1302 13.5467 13.2825C13.5602 13.3478 13.5726 13.4131 13.5839 13.4786C13.7871 14.6567 13.6297 15.8611 13.1543 16.9343ZM18.5774 7C18.866 7.33402 19.106 7.71371 19.2866 8.12811L19.5331 8.69379C19.7136 9.10792 20.2864 9.10792 20.4668 8.69379L20.7134 8.12811C21.1529 7.11947 21.9445 6.31641 22.9323 5.87708L23.67 5.53922C24.0808 5.35653 24.0808 4.75881 23.67 4.57612L22.9748 4.25714C21.9616 3.80651 21.1558 2.97373 20.7238 1.93083L20.4706 1.31953C20.2942 0.893489 19.7058 0.893489 19.5293 1.31953L19.2761 1.93083C19.1965 2.12319 19.1041 2.3084 19 2.48538C18.5399 3.26793 17.8515 3.88963 17.0252 4.25714L16.308 4.57612C15.8973 4.75881 15.8973 5.35653 16.308 5.53922L17.0677 5.87708C17.6496 6.13591 18.1635 6.521 18.5774 7Z" }) })),
|
|
82
|
-
'mic': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "9", y: "2", width: "6", height: "11", rx: "3" }), _jsx("path", { d: "M19 10v1a7 7 0 0 1-14 0v-1" }), _jsx("path", { d: "M12 18v3" })] })),
|
|
83
|
-
'minus': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M5 12h14" }) })),
|
|
84
|
-
'more-horizontal': (common) => (_jsxs("svg", { ...common, fill: "currentColor", stroke: "none", children: [_jsx("circle", { cx: "5.5", cy: "12", r: "1.75" }), _jsx("circle", { cx: "12", cy: "12", r: "1.75" }), _jsx("circle", { cx: "18.5", cy: "12", r: "1.75" })] })),
|
|
85
|
-
'orbit': (common) => (
|
|
86
|
-
// Tilted elliptical orbit + central body + a small satellite riding the
|
|
87
|
-
// path. Reads unmistakably as "orbit/automation" rather than the
|
|
88
|
-
// generic refresh loop, and the rotated ellipse keeps the silhouette
|
|
89
|
-
// distinct from `refresh` and `reload` at small sizes.
|
|
90
|
-
_jsxs("svg", { ...common, children: [_jsx("ellipse", { cx: "12", cy: "12", rx: "9", ry: "3.5", transform: "rotate(-25 12 12)" }), _jsx("circle", { cx: "12", cy: "12", r: "2.25", fill: "currentColor", stroke: "none" }), _jsx("circle", { cx: "16", cy: "6.8", r: "1.5", fill: "currentColor", stroke: "none" })] })),
|
|
91
|
-
'paint-bucket': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M11 7 6 2m12.992 10H2.041m19.104 6.38A3.34 3.34 0 0 1 20 16.5a3.3 3.3 0 0 1-1.145 1.88c-.575.46-.855 1.02-.855 1.595A2 2 0 0 0 20 22a2 2 0 0 0 2-2.025c0-.58-.285-1.13-.855-1.595M8.5 4.5l2.148-2.148a1.205 1.205 0 0 1 1.704 0l7.296 7.296a1.205 1.205 0 0 1 0 1.704l-7.592 7.592a3.615 3.615 0 0 1-5.112 0l-3.888-3.888a3.615 3.615 0 0 1 0-5.112L5.67 7.33" }) })),
|
|
92
|
-
'palette': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M12 2a10 10 0 1 0 0 20 2 2 0 0 0 0-4 1.5 1.5 0 0 1-1.06-2.56l.78-.78A2 2 0 0 1 13.13 14H17a5 5 0 0 0 5-5c0-3.87-4.48-7-10-7Z" }), _jsx("circle", { cx: "7.5", cy: "10.5", r: "1", fill: "currentColor", stroke: "none" }), _jsx("circle", { cx: "9.5", cy: "6.5", r: "1", fill: "currentColor", stroke: "none" }), _jsx("circle", { cx: "14", cy: "6", r: "1", fill: "currentColor", stroke: "none" }), _jsx("circle", { cx: "17.5", cy: "9", r: "1", fill: "currentColor", stroke: "none" })] })),
|
|
93
|
-
'palette-filled': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" }) })),
|
|
94
|
-
'pencil': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M12 20h9" }), _jsx("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4z" })] })),
|
|
95
|
-
'layout': (common) => (
|
|
96
|
-
// Dashboard/wireframe frame: outer card with a header band and a
|
|
97
|
-
// sidebar column — reads as "lo-fi screen layout" at small sizes.
|
|
98
|
-
_jsxs("svg", { ...common, children: [_jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }), _jsx("path", { d: "M3 9h18" }), _jsx("path", { d: "M9 21V9" })] })),
|
|
99
|
-
'smartphone': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }), _jsx("path", { d: "M11 18h2" })] })),
|
|
100
|
-
'file-text': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M14 3v4a1 1 0 0 0 1 1h4" }), _jsx("path", { d: "M5 3h9l5 5v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" }), _jsx("path", { d: "M8 13h8" }), _jsx("path", { d: "M8 17h6" })] })),
|
|
101
|
-
'plus': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M12 5v14" }), _jsx("path", { d: "M5 12h14" })] })),
|
|
102
|
-
'plus-filled': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" }) })),
|
|
103
|
-
'play': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M6 4v16l14-8z" }) })),
|
|
104
|
-
'present': (common) => (_jsxs("svg", { ...common, children: [_jsx("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }), _jsx("path", { d: "M8 21h8" }), _jsx("path", { d: "M12 17v4" })] })),
|
|
105
|
-
'refresh': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M3 12a9 9 0 0 1 15.9-5.7L21 8" }), _jsx("path", { d: "M21 3v5h-5" }), _jsx("path", { d: "M21 12a9 9 0 0 1-15.9 5.7L3 16" }), _jsx("path", { d: "M3 21v-5h5" })] })),
|
|
106
|
-
'reload': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M21 12a9 9 0 1 1-3-6.7" }), _jsx("path", { d: "M21 4v5h-5" })] })),
|
|
107
|
-
'search': (common) => (_jsxs("svg", { ...common, children: [_jsx("circle", { cx: "11", cy: "11", r: "7" }), _jsx("path", { d: "m21 21-4.3-4.3" })] })),
|
|
108
|
-
'send': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("path", { d: "M3.48 2.41a.75.75 0 0 0-.93.94l2.43 7.9h8.52a.75.75 0 0 1 0 1.5H4.98l-2.43 7.9a.75.75 0 0 0 .93.94 60.5 60.5 0 0 0 18.44-8.98.75.75 0 0 0 0-1.22A60.5 60.5 0 0 0 3.48 2.41Z" }) })),
|
|
109
|
-
'settings': (common) => (_jsxs("svg", { ...common, children: [_jsx("circle", { cx: "12", cy: "12", r: "3" }), _jsx("path", { d: "M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 0 1-2.82 2.83l-.06-.07a1.7 1.7 0 0 0-1.88-.33 1.7 1.7 0 0 0-1.04 1.56V21a2 2 0 0 1-4 0v-.1A1.7 1.7 0 0 0 9 19.4a1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.82l.07-.06a1.7 1.7 0 0 0 .33-1.88 1.7 1.7 0 0 0-1.56-1.04H3a2 2 0 0 1 0-4h.1a1.7 1.7 0 0 0 1.56-1.04 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.07A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1.04-1.56V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1.04 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.07.06a1.7 1.7 0 0 0-.33 1.87V9a1.7 1.7 0 0 0 1.56 1.04H21a2 2 0 0 1 0 4h-.1a1.7 1.7 0 0 0-1.56 1.04Z" })] })),
|
|
110
|
-
'share': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7" }), _jsx("path", { d: "m16 6-4-4-4 4" }), _jsx("path", { d: "M12 2v13" })] })),
|
|
111
|
-
'sliders': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M4 21v-7" }), _jsx("path", { d: "M4 10V3" }), _jsx("path", { d: "M12 21v-9" }), _jsx("path", { d: "M12 8V3" }), _jsx("path", { d: "M20 21v-5" }), _jsx("path", { d: "M20 12V3" }), _jsx("path", { d: "M1 14h6" }), _jsx("path", { d: "M9 8h6" }), _jsx("path", { d: "M17 16h6" })] })),
|
|
112
|
-
'spinner': (common) => (_jsx("svg", { ...common, className: `icon-spin ${common.className ?? ''}`.trim(), children: _jsx("path", { d: "M21 12a9 9 0 1 1-6.22-8.56" }) })),
|
|
113
|
-
'sparkles': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "m12 3 1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5z" }), _jsx("path", { d: "M19 14v3" }), _jsx("path", { d: "M19 21v-1" }), _jsx("path", { d: "M22 17h-3" }), _jsx("path", { d: "M16 17h-1" })] })),
|
|
114
|
-
'star': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" }) })),
|
|
115
|
-
'stop': (common) => (_jsx("svg", { ...common, fill: "currentColor", stroke: "none", children: _jsx("rect", { x: "5", y: "5", width: "14", height: "14", rx: "2" }) })),
|
|
116
|
-
'swatchbook': (common) => (
|
|
117
|
-
// Lucide-style swatchbook — a folded swatch card peeling off a stacked
|
|
118
|
-
// base. Reads as "brand kit / palette card" rather than the generic
|
|
119
|
-
// `blocks` glyph, matching the Brand Kit nav destination and the
|
|
120
|
-
// "Create Brand Kit" home chip.
|
|
121
|
-
_jsxs("svg", { ...common, children: [_jsx("path", { d: "M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z" }), _jsx("path", { d: "M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7" }), _jsx("path", { d: "M7 17h.01" }), _jsx("path", { d: "m11 8 2.3-2.3a2.4 2.4 0 0 1 3.404.004L18.6 7.6a2.4 2.4 0 0 1 .026 3.434L9.9 19.8" })] })),
|
|
122
|
-
'sun': (common) => (_jsxs("svg", { ...common, children: [_jsx("circle", { cx: "12", cy: "12", r: "4" }), _jsx("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41" })] })),
|
|
123
|
-
'moon': (common) => (_jsx("svg", { ...common, children: _jsx("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }) })),
|
|
124
|
-
'sun-moon': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4" }), _jsx("path", { d: "M12 2v2" }), _jsx("path", { d: "M12 20v2" }), _jsx("path", { d: "m4.9 4.9 1.4 1.4" }), _jsx("path", { d: "m17.7 17.7 1.4 1.4" }), _jsx("path", { d: "M2 12h2" }), _jsx("path", { d: "M20 12h2" }), _jsx("path", { d: "m6.3 17.7-1.4 1.4" }), _jsx("path", { d: "m19.1 4.9-1.4 1.4" })] })),
|
|
125
|
-
'terminal': (common) => (
|
|
126
|
-
// Lucide-style terminal — a command-prompt chevron plus an underscore
|
|
127
|
-
// input line, used for the workspace "New Terminal" launcher action and
|
|
128
|
-
// the terminal:<id> tab icon.
|
|
129
|
-
_jsxs("svg", { ...common, children: [_jsx("path", { d: "m7 11 3-3-3-3" }), _jsx("path", { d: "M13 13h6" })] })),
|
|
130
|
-
'thumbs-up': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M7 10v11" }), _jsx("path", { d: "M15 6.8 14 10h4.5a2 2 0 0 1 2 2.3l-1.1 6.6A2.5 2.5 0 0 1 17 21H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h2.8L12 4a2 2 0 0 1 3 2.8Z" })] })),
|
|
131
|
-
'thumbs-down': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M7 14V3" }), _jsx("path", { d: "m15 17.2-1-3.2h4.5a2 2 0 0 0 2-2.3L19.4 5A2.5 2.5 0 0 0 17 3H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2.8L12 20a2 2 0 0 0 3-2.8Z" })] })),
|
|
132
|
-
'tweaks': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M4 6h13" }), _jsx("circle", { cx: "19", cy: "6", r: "2" }), _jsx("path", { d: "M4 18h7" }), _jsx("circle", { cx: "13", cy: "18", r: "2" }), _jsx("path", { d: "M17 12H4" }), _jsx("circle", { cx: "19", cy: "12", r: "2" })] })),
|
|
133
|
-
'upload': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), _jsx("path", { d: "m17 8-5-5-5 5" }), _jsx("path", { d: "M12 3v12" })] })),
|
|
134
|
-
'volume': (common) => (
|
|
135
|
-
// Speaker + sound waves (Lucide volume-2). A box-filling glyph so the
|
|
136
|
-
// audio row's icon reads at the same visual weight as `image`/`play`,
|
|
137
|
-
// unlike the narrow vertical `mic`.
|
|
138
|
-
_jsxs("svg", { ...common, children: [_jsx("path", { d: "M11 5 6 9H2v6h4l5 4z" }), _jsx("path", { d: "M15.54 8.46a5 5 0 0 1 0 7.07" }), _jsx("path", { d: "M19.07 4.93a10 10 0 0 1 0 14.14" })] })),
|
|
139
|
-
'maximize': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M8 3H5a2 2 0 0 0-2 2v3" }), _jsx("path", { d: "M16 3h3a2 2 0 0 1 2 2v3" }), _jsx("path", { d: "M21 16v3a2 2 0 0 1-2 2h-3" }), _jsx("path", { d: "M8 21H5a2 2 0 0 1-2-2v-3" })] })),
|
|
140
|
-
'minimize': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M8 3v3a2 2 0 0 1-2 2H3" }), _jsx("path", { d: "M16 3v3a2 2 0 0 0 2 2h3" }), _jsx("path", { d: "M21 16h-3a2 2 0 0 0-2 2v3" }), _jsx("path", { d: "M3 16h3a2 2 0 0 1 2 2v3" })] })),
|
|
141
|
-
'zoom-in': (common) => (_jsxs("svg", { ...common, children: [_jsx("circle", { cx: "11", cy: "11", r: "7" }), _jsx("path", { d: "M11 8v6" }), _jsx("path", { d: "M8 11h6" }), _jsx("path", { d: "m21 21-4.3-4.3" })] })),
|
|
142
|
-
'zoom-out': (common) => (_jsxs("svg", { ...common, children: [_jsx("circle", { cx: "11", cy: "11", r: "7" }), _jsx("path", { d: "M8 11h6" }), _jsx("path", { d: "m21 21-4.3-4.3" })] })),
|
|
143
|
-
'trash': (common) => (_jsxs("svg", { ...common, children: [_jsx("path", { d: "M3 6h18" }), _jsx("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }), _jsx("path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" })] })),
|
|
10
|
+
...LINE_GLYPH_RENDERERS,
|
|
11
|
+
...ACTION_ICON_RENDERERS,
|
|
12
|
+
...WORKSPACE_ICON_RENDERERS,
|
|
13
|
+
...CONTROL_ICON_RENDERERS,
|
|
144
14
|
};
|
|
145
15
|
/**
|
|
146
16
|
* Lightweight inline-SVG icon set tuned to the design system. Stroke-based
|
|
@@ -3,13 +3,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
// / "Upload zip" / "Upload folder"). Origin: `ImportChoice` in
|
|
4
4
|
// `PluginsView.tsx` (OD), verbatim structural port — all copy
|
|
5
5
|
// (title/body) is supplied by the caller as props, so there was nothing
|
|
6
|
-
// product-specific to strip. See
|
|
6
|
+
// product-specific to strip. See archived UI source map.
|
|
7
7
|
import { Icon } from './Icon.js';
|
|
8
8
|
export function ImportChoice({ active, icon, title, body, onClick, className }) {
|
|
9
9
|
return (_jsxs("button", { type: "button", className: [
|
|
10
10
|
'plugins-import-modal__choice',
|
|
11
11
|
active ? 'is-active' : '',
|
|
12
12
|
className,
|
|
13
|
-
].filter(Boolean).join(' '), onClick: onClick, children: [_jsx("span", { className: "plugins-import-modal__choice-icon", "aria-hidden": true, children: _jsx(Icon, { name: icon, size: 16 }) }), _jsxs("span", { className: "plugins-import-modal__choice-copy", children: [_jsx("span", { children: title }), _jsx("span", { children: body })] })] }));
|
|
13
|
+
].filter(Boolean).join(' '), onClick: onClick, children: [_jsx("span", { className: "jini-plugins-import-modal__choice-icon", "aria-hidden": true, children: _jsx(Icon, { name: icon, size: 16 }) }), _jsxs("span", { className: "jini-plugins-import-modal__choice-copy", children: [_jsx("span", { children: title }), _jsx("span", { children: body })] })] }));
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=ImportChoice.js.map
|
|
@@ -13,7 +13,10 @@ export interface LanguageMenuProps {
|
|
|
13
13
|
useLanguageMenu?: typeof useLanguageMenu;
|
|
14
14
|
}
|
|
15
15
|
/** The label for the active locale, falling back to the raw code when unknown. */
|
|
16
|
-
export declare function resolveActiveLocaleLabel(locales
|
|
16
|
+
export declare function resolveActiveLocaleLabel({ locales, locale }: {
|
|
17
|
+
locales: LocaleOption[];
|
|
18
|
+
locale: string;
|
|
19
|
+
}, _optional?: {}): string;
|
|
17
20
|
/** The single key that dismisses the menu. */
|
|
18
21
|
export declare function isLanguageMenuDismissKey(key: string): boolean;
|
|
19
22
|
/**
|
|
@@ -23,7 +26,11 @@ export declare function isLanguageMenuDismissKey(key: string): boolean;
|
|
|
23
26
|
*/
|
|
24
27
|
export declare function isOutsideLanguageMenu(container: HTMLElement | null, target: EventTarget | null): boolean;
|
|
25
28
|
export declare function languageMenuPillClassName(compact: boolean): string;
|
|
26
|
-
export declare function languageMenuPopoverClassName(placement
|
|
29
|
+
export declare function languageMenuPopoverClassName({ placement, compact, align }: {
|
|
30
|
+
placement: 'up' | 'down';
|
|
31
|
+
compact: boolean;
|
|
32
|
+
align: 'start' | 'end';
|
|
33
|
+
}, _optional?: {}): string;
|
|
27
34
|
export declare function languageMenuItemClassName(active: boolean): string;
|
|
28
35
|
export interface LanguageMenuDisclosure {
|
|
29
36
|
open: boolean;
|
|
@@ -33,7 +40,10 @@ export interface LanguageMenuDisclosure {
|
|
|
33
40
|
/** Open/close state for the popover with stable toggle/close callbacks. */
|
|
34
41
|
export declare function useLanguageMenuDisclosure(): LanguageMenuDisclosure;
|
|
35
42
|
/** Memoized active-locale label derived from the (host-supplied) locale list. */
|
|
36
|
-
export declare function useActiveLocaleLabel(locales
|
|
43
|
+
export declare function useActiveLocaleLabel({ locales, locale }: {
|
|
44
|
+
locales: LocaleOption[];
|
|
45
|
+
locale: string;
|
|
46
|
+
}, _optional?: {}): string;
|
|
37
47
|
/**
|
|
38
48
|
* While `open`, closes the menu on an outside `mousedown` or an Escape keydown.
|
|
39
49
|
* Listeners are only attached while open and torn down on close/unmount.
|
|
@@ -5,7 +5,7 @@ import { Icon } from './Icon.js';
|
|
|
5
5
|
// Pure helpers — no React, directly unit-testable.
|
|
6
6
|
// ---------------------------------------------------------------------------
|
|
7
7
|
/** The label for the active locale, falling back to the raw code when unknown. */
|
|
8
|
-
export function resolveActiveLocaleLabel(locales, locale) {
|
|
8
|
+
export function resolveActiveLocaleLabel({ locales, locale }, _optional = {}) {
|
|
9
9
|
return locales.find((l) => l.code === locale)?.label ?? locale;
|
|
10
10
|
}
|
|
11
11
|
/** The single key that dismisses the menu. */
|
|
@@ -25,7 +25,7 @@ export function isOutsideLanguageMenu(container, target) {
|
|
|
25
25
|
export function languageMenuPillClassName(compact) {
|
|
26
26
|
return `foot-pill lang-pill${compact ? ' lang-pill--compact' : ''}`;
|
|
27
27
|
}
|
|
28
|
-
export function languageMenuPopoverClassName(placement, compact, align) {
|
|
28
|
+
export function languageMenuPopoverClassName({ placement, compact, align }, _optional = {}) {
|
|
29
29
|
return `lang-menu-popover lang-menu-popover--${placement}${compact ? ' lang-menu-popover--compact' : ''} lang-menu-popover--align-${align}`;
|
|
30
30
|
}
|
|
31
31
|
export function languageMenuItemClassName(active) {
|
|
@@ -39,8 +39,8 @@ export function useLanguageMenuDisclosure() {
|
|
|
39
39
|
return { open, toggle, close };
|
|
40
40
|
}
|
|
41
41
|
/** Memoized active-locale label derived from the (host-supplied) locale list. */
|
|
42
|
-
export function useActiveLocaleLabel(locales, locale) {
|
|
43
|
-
return useMemo(() => resolveActiveLocaleLabel(locales, locale), [locales, locale]);
|
|
42
|
+
export function useActiveLocaleLabel({ locales, locale }, _optional = {}) {
|
|
43
|
+
return useMemo(() => resolveActiveLocaleLabel({ locales, locale }), [locales, locale]);
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* While `open`, closes the menu on an outside `mousedown` or an Escape keydown.
|
|
@@ -75,7 +75,7 @@ export function useLanguageMenuDismiss(params) {
|
|
|
75
75
|
export function useLanguageMenu(locales, locale) {
|
|
76
76
|
const containerRef = useRef(null);
|
|
77
77
|
const { open, toggle, close } = useLanguageMenuDisclosure();
|
|
78
|
-
const activeLabel = useActiveLocaleLabel(locales, locale);
|
|
78
|
+
const activeLabel = useActiveLocaleLabel({ locales, locale });
|
|
79
79
|
useLanguageMenuDismiss({ open, onDismiss: close, containerRef });
|
|
80
80
|
return { open, toggle, close, containerRef, activeLabel };
|
|
81
81
|
}
|
|
@@ -91,7 +91,7 @@ export function useLanguageMenu(locales, locale) {
|
|
|
91
91
|
*/
|
|
92
92
|
export function LanguageMenu({ locales, locale, onLocaleChange, compact = false, placement = 'up', align = 'start', useLanguageMenu: useLanguageMenuHook = useLanguageMenu, }) {
|
|
93
93
|
const { open, toggle, close, containerRef, activeLabel } = useLanguageMenuHook(locales, locale);
|
|
94
|
-
return (_jsxs("div", { className: "lang-menu-wrap", ref: containerRef, children: [_jsxs("button", { type: "button", className: languageMenuPillClassName(compact), "aria-haspopup": "menu", "aria-expanded": open, "aria-label": compact ? activeLabel : undefined, onClick: toggle, title: activeLabel, children: [_jsx(Icon, { name: "languages", size: compact ? 20 : 12 }), compact ? null : (_jsxs(_Fragment, { children: [_jsx("span", { children: activeLabel }), _jsx(Icon, { name: "chevron-down", size: 11 })] }))] }), open ? (_jsx("div", { className: languageMenuPopoverClassName(placement, compact, align), role: "menu", children: locales.map(({ code, label }) => {
|
|
94
|
+
return (_jsxs("div", { className: "lang-menu-wrap", ref: containerRef, children: [_jsxs("button", { type: "button", className: languageMenuPillClassName(compact), "aria-haspopup": "menu", "aria-expanded": open, "aria-label": compact ? activeLabel : undefined, onClick: toggle, title: activeLabel, children: [_jsx(Icon, { name: "languages", size: compact ? 20 : 12 }), compact ? null : (_jsxs(_Fragment, { children: [_jsx("span", { children: activeLabel }), _jsx(Icon, { name: "chevron-down", size: 11 })] }))] }), open ? (_jsx("div", { className: languageMenuPopoverClassName({ placement, compact, align }), role: "menu", children: locales.map(({ code, label }) => {
|
|
95
95
|
const active = locale === code;
|
|
96
96
|
return (_jsxs("button", { type: "button", role: "menuitemradio", "aria-checked": active, className: languageMenuItemClassName(active), onClick: () => {
|
|
97
97
|
onLocaleChange(code);
|
|
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Icon } from './Icon.js';
|
|
3
3
|
import { withClassName } from '../../utils/class-names.js';
|
|
4
4
|
export function Spinner({ size = 14, label }) {
|
|
5
|
-
return (_jsxs("span", { className: "loading-spinner", role: "status", "aria-live": "polite", children: [_jsx(Icon, { name: "spinner", size: size }), label ? _jsx("span", { className: "loading-spinner-label", children: label }) : null] }));
|
|
5
|
+
return (_jsxs("span", { className: "jini-loading-spinner", role: "status", "aria-live": "polite", children: [_jsx(Icon, { name: "spinner", size: size }), label ? _jsx("span", { className: "jini-loading-spinner-label", children: label }) : null] }));
|
|
6
6
|
}
|
|
7
7
|
export function Skeleton({ width, height = 14, radius = 6, className }) {
|
|
8
|
-
return (_jsx("span", { className: withClassName('skeleton-block', className), style: { width, height, borderRadius: radius }, "aria-hidden": true }));
|
|
8
|
+
return (_jsx("span", { className: withClassName({ base: 'skeleton-block', extra: className }), style: { width, height, borderRadius: radius }, "aria-hidden": true }));
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Card-shaped skeleton for grid layouts (thumbnail area over a row of meta
|
|
@@ -13,13 +13,13 @@ export function Skeleton({ width, height = 14, radius = 6, className }) {
|
|
|
13
13
|
* missing.
|
|
14
14
|
*/
|
|
15
15
|
export function DesignCardSkeleton() {
|
|
16
|
-
return (_jsxs("div", { className: "design-card design-card-skeleton", "aria-hidden": true, children: [_jsx("div", { className: "design-card-thumb skeleton-shimmer" }), _jsxs("div", { className: "design-card-meta-block", children: [_jsx(Skeleton, { height: 13, width: "65%" }), _jsx(Skeleton, { height: 11, width: "45%" })] })] }));
|
|
16
|
+
return (_jsxs("div", { className: "jini-design-card jini-design-card-skeleton", "aria-hidden": true, children: [_jsx("div", { className: "jini-design-card-thumb skeleton-shimmer" }), _jsxs("div", { className: "jini-design-card-meta-block", children: [_jsx(Skeleton, { height: 13, width: "65%" }), _jsx(Skeleton, { height: 11, width: "45%" })] })] }));
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Centered overlay used while bootstrap data loads. Sits inside a flex/grid
|
|
20
20
|
* parent and grows with it.
|
|
21
21
|
*/
|
|
22
22
|
export function CenteredLoader({ label }) {
|
|
23
|
-
return (_jsxs("div", { className: "centered-loader", children: [_jsx(Spinner, { size: 20 }), label ? _jsx("span", { className: "centered-loader-label", children: label }) : null] }));
|
|
23
|
+
return (_jsxs("div", { className: "jini-centered-loader", children: [_jsx(Spinner, { size: 20 }), label ? _jsx("span", { className: "jini-centered-loader-label", children: label }) : null] }));
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=Loading.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useT } from '../../features/i18n/index.js';
|
|
1
2
|
export interface NoticeOutcome {
|
|
2
3
|
ok: boolean;
|
|
3
4
|
message: string;
|
|
@@ -9,6 +10,7 @@ export interface NoticeProps {
|
|
|
9
10
|
/** Label for the collapsible log's `<summary>`. Defaults to `t('Install log')`. */
|
|
10
11
|
logLabel?: string;
|
|
11
12
|
className?: string;
|
|
13
|
+
useTHook?: typeof useT;
|
|
12
14
|
}
|
|
13
|
-
export declare function Notice({ outcome, logLabel, className }: NoticeProps): import("react").JSX.Element;
|
|
15
|
+
export declare function Notice({ outcome, logLabel, className, useTHook }: NoticeProps): import("react").JSX.Element;
|
|
14
16
|
//# sourceMappingURL=Notice.d.ts.map
|
|
@@ -6,18 +6,18 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
// carrying the same three optional fields any "ran an operation, got a
|
|
7
7
|
// result + warnings + a log" flow would need. Every user-facing string now
|
|
8
8
|
// goes through `useT()` — the origin hardcoded "Install log" and the
|
|
9
|
-
// warning-count pluralization. See
|
|
9
|
+
// warning-count pluralization. See archived UI source map.
|
|
10
10
|
import { useT } from '../../features/i18n/index.js';
|
|
11
|
-
export function Notice({ outcome, logLabel, className }) {
|
|
12
|
-
const t =
|
|
11
|
+
export function Notice({ outcome, logLabel, className, useTHook = useT }) {
|
|
12
|
+
const t = useTHook();
|
|
13
13
|
const warnings = outcome.warnings ?? [];
|
|
14
14
|
const log = outcome.log ?? [];
|
|
15
15
|
return (_jsxs("div", { className: [
|
|
16
16
|
'plugins-view__notice',
|
|
17
|
-
outcome.ok ? 'is-success' : 'is-error',
|
|
17
|
+
outcome.ok ? 'jini-is-success' : 'is-error',
|
|
18
18
|
className,
|
|
19
|
-
].filter(Boolean).join(' '), role: "status", children: [_jsx("div", { children: outcome.message }), warnings.length > 0 ? (_jsx("div", { className: "plugins-view__notice-sub", children: warnings.length === 1
|
|
19
|
+
].filter(Boolean).join(' '), role: "status", children: [_jsx("div", { children: outcome.message }), warnings.length > 0 ? (_jsx("div", { className: "jini-plugins-view__notice-sub", children: warnings.length === 1
|
|
20
20
|
? t('{n} warning', { n: warnings.length })
|
|
21
|
-
: t('{n} warnings', { n: warnings.length }) })) : null, log.length > 0 ? (_jsxs("details", { className: "plugins-view__notice-log", children: [_jsx("summary", { children: logLabel ?? t('Install log') }), _jsx("ul", { children: log.map((line, idx) => (_jsx("li", { children: line }, `${line}-${idx}`))) })] })) : null] }));
|
|
21
|
+
: t('{n} warnings', { n: warnings.length }) })) : null, log.length > 0 ? (_jsxs("details", { className: "jini-plugins-view__notice-log", children: [_jsx("summary", { children: logLabel ?? t('Install log') }), _jsx("ul", { children: log.map((line, idx) => (_jsx("li", { children: line }, `${line}-${idx}`))) })] })) : null] }));
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=Notice.js.map
|
|
@@ -128,6 +128,6 @@ export declare function useOnboardingDropdown(props: OnboardingDropdownProps): U
|
|
|
128
128
|
* {@link useOnboardingDropdown}; this component only renders the field,
|
|
129
129
|
* trigger, and (when open) the menu.
|
|
130
130
|
*/
|
|
131
|
-
export declare function OnboardingDropdown(props: OnboardingDropdownProps): import("react").JSX.Element;
|
|
131
|
+
export declare function OnboardingDropdown({ useOnboardingDropdown: useOnboardingDropdownHook, ...props }: OnboardingDropdownProps): import("react").JSX.Element;
|
|
132
132
|
export {};
|
|
133
133
|
//# sourceMappingURL=OnboardingDropdown.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
17
17
|
// available'` for an empty non-searchable field (the origin's fallback
|
|
18
18
|
// text talked about "text models", which was itself a leftover from the
|
|
19
19
|
// one call site it happened to serve, not a generic empty state).
|
|
20
|
-
// See
|
|
20
|
+
// See archived UI source map.
|
|
21
21
|
//
|
|
22
22
|
// Shape: this module follows the package's "dumb component + co-located
|
|
23
23
|
// testable hooks" pattern (see `TooltipLayer.tsx`). All state, refs,
|
|
@@ -141,22 +141,8 @@ export function useOnboardingDropdownPlacement(rootRef, open, placement, optionC
|
|
|
141
141
|
}, [open, placement, optionCount, rootRef]);
|
|
142
142
|
return metrics;
|
|
143
143
|
}
|
|
144
|
-
/**
|
|
145
|
-
|
|
146
|
-
* viewport-aware placement, the click-outside/Escape dismissal, the query
|
|
147
|
-
* reset on close, the single-open-at-a-time peer coordination, and the
|
|
148
|
-
* select/toggle logic — with no rendering. Exported (with the pure helpers
|
|
149
|
-
* above) so the logic is testable in isolation; `OnboardingDropdown` is the
|
|
150
|
-
* dumb consumer.
|
|
151
|
-
*/
|
|
152
|
-
export function useOnboardingDropdown(props) {
|
|
153
|
-
const t = useT();
|
|
154
|
-
const { placeholder, value, options, placement = 'bottom', multiple = false, searchable = false, } = props;
|
|
155
|
-
const [open, setOpen] = useState(false);
|
|
156
|
-
const [query, setQuery] = useState('');
|
|
157
|
-
const rootRef = useRef(null);
|
|
158
|
-
const dropdownIdRef = useRef(`onboarding-dropdown-${globalThis.crypto.getRandomValues(new Uint32Array(1))[0].toString(36)}`);
|
|
159
|
-
const { placement: resolvedPlacement, maxHeight: menuMaxHeight } = useOnboardingDropdownPlacement(rootRef, open, placement, options.length);
|
|
144
|
+
/** Closes the open menu on an outside pointer-down or Escape. */
|
|
145
|
+
function useDropdownDismiss({ open, rootRef, setOpen, }) {
|
|
160
146
|
useEffect(() => {
|
|
161
147
|
if (!open)
|
|
162
148
|
return undefined;
|
|
@@ -176,7 +162,14 @@ export function useOnboardingDropdown(props) {
|
|
|
176
162
|
document.removeEventListener('pointerdown', handlePointerDown);
|
|
177
163
|
document.removeEventListener('keydown', handleKeyDown);
|
|
178
164
|
};
|
|
179
|
-
}, [open]);
|
|
165
|
+
}, [open, rootRef, setOpen]);
|
|
166
|
+
}
|
|
167
|
+
/** Open/query state: dismissal (outside click / Escape), query reset on close, and single-open-at-a-time peer coordination. */
|
|
168
|
+
function useDropdownOpenState(rootRef) {
|
|
169
|
+
const [open, setOpen] = useState(false);
|
|
170
|
+
const [query, setQuery] = useState('');
|
|
171
|
+
const dropdownIdRef = useRef(`onboarding-dropdown-${globalThis.crypto.getRandomValues(new Uint32Array(1))[0].toString(36)}`);
|
|
172
|
+
useDropdownDismiss({ open, rootRef, setOpen });
|
|
180
173
|
useEffect(() => {
|
|
181
174
|
if (!open) {
|
|
182
175
|
setQuery('');
|
|
@@ -204,6 +197,22 @@ export function useOnboardingDropdown(props) {
|
|
|
204
197
|
return nextOpen;
|
|
205
198
|
});
|
|
206
199
|
}, []);
|
|
200
|
+
return { open, setOpen, query, setQuery, toggleOpen };
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* All of the dropdown's behavior — open/query state, the field ref, the
|
|
204
|
+
* viewport-aware placement, the click-outside/Escape dismissal, the query
|
|
205
|
+
* reset on close, the single-open-at-a-time peer coordination, and the
|
|
206
|
+
* select/toggle logic — with no rendering. Exported (with the pure helpers
|
|
207
|
+
* above) so the logic is testable in isolation; `OnboardingDropdown` is the
|
|
208
|
+
* dumb consumer.
|
|
209
|
+
*/
|
|
210
|
+
export function useOnboardingDropdown(props) {
|
|
211
|
+
const t = useT();
|
|
212
|
+
const { placeholder, value, options, placement = 'bottom', multiple = false, searchable = false } = props;
|
|
213
|
+
const rootRef = useRef(null);
|
|
214
|
+
const { open, setOpen, query, setQuery, toggleOpen } = useDropdownOpenState(rootRef);
|
|
215
|
+
const { placement: resolvedPlacement, maxHeight: menuMaxHeight } = useOnboardingDropdownPlacement(rootRef, open, placement, options.length);
|
|
207
216
|
const selectedValues = resolveOnboardingSelectedValues(value);
|
|
208
217
|
const selectedOptions = options.filter((option) => selectedValues.includes(option.value));
|
|
209
218
|
const hasValue = selectedOptions.length > 0;
|
|
@@ -240,7 +249,7 @@ export function useOnboardingDropdown(props) {
|
|
|
240
249
|
// Dumb component
|
|
241
250
|
// ---------------------------------------------------------------------------
|
|
242
251
|
function OnboardingDropdownSearch({ query, setQuery, placeholder, label }) {
|
|
243
|
-
return (_jsxs("label", { className: "onboarding-view__select-search", onClick: (event) => event.stopPropagation(), children: [_jsx(Icon, { name: "search", size: 14 }), _jsx("input", { type: "search", value: query, placeholder: placeholder, "aria-label": label, autoFocus: true, onChange: (event) => setQuery(event.target.value), onKeyDown: (event) => {
|
|
252
|
+
return (_jsxs("label", { className: "jini-onboarding-view__select-search", onClick: (event) => event.stopPropagation(), children: [_jsx(Icon, { name: "search", size: 14 }), _jsx("input", { type: "search", value: query, placeholder: placeholder, "aria-label": label, autoFocus: true, onChange: (event) => setQuery(event.target.value), onKeyDown: (event) => {
|
|
244
253
|
if (event.key !== 'Escape') {
|
|
245
254
|
event.stopPropagation();
|
|
246
255
|
}
|
|
@@ -250,21 +259,21 @@ function OnboardingDropdownOptionButton({ option, selected, selectOption }) {
|
|
|
250
259
|
return (_jsxs("button", { type: "button", className: `onboarding-view__select-option${selected ? ' is-selected' : ''}`, role: "option", "aria-selected": selected, onClick: () => selectOption(option, selected), children: [_jsx("span", { children: option.label }), selected ? _jsx(Icon, { name: "check", size: 15 }) : null] }));
|
|
251
260
|
}
|
|
252
261
|
function OnboardingDropdownOptions({ label, multiple, visibleOptions, selectedValues, emptyMessage, selectOption }) {
|
|
253
|
-
return (_jsxs("div", { className: "onboarding-view__select-options", role: "listbox", "aria-label": label, "aria-multiselectable": multiple || undefined, children: [visibleOptions.map((option) => (_jsx(OnboardingDropdownOptionButton, { option: option, selected: selectedValues.includes(option.value), selectOption: selectOption }, option.value))), visibleOptions.length === 0 ? (_jsx("div", { className: "onboarding-view__select-empty", children: emptyMessage })) : null] }));
|
|
262
|
+
return (_jsxs("div", { className: "jini-onboarding-view__select-options", role: "listbox", "aria-label": label, "aria-multiselectable": multiple || undefined, children: [visibleOptions.map((option) => (_jsx(OnboardingDropdownOptionButton, { option: option, selected: selectedValues.includes(option.value), selectOption: selectOption }, option.value))), visibleOptions.length === 0 ? (_jsx("div", { className: "jini-onboarding-view__select-empty", children: emptyMessage })) : null] }));
|
|
254
263
|
}
|
|
255
264
|
function OnboardingDropdownTrigger({ open, hasValue, triggerLabel, toggleOpen }) {
|
|
256
265
|
return (_jsxs("button", { type: "button", className: `onboarding-view__select-trigger${open ? ' is-open' : ''}${hasValue ? ' has-value' : ''}`, "aria-haspopup": "listbox", "aria-expanded": open, title: triggerLabel, onClick: toggleOpen, children: [_jsx("span", { children: triggerLabel }), _jsx(Icon, { name: "chevron-down", size: 16 })] }));
|
|
257
266
|
}
|
|
258
267
|
function OnboardingDropdownMenu({ label, placeholder, multiple, searchable, searchPlaceholder, query, setQuery, menuMaxHeight, ...listProps }) {
|
|
259
|
-
return (_jsxs("div", { className: "onboarding-view__select-menu", "data-searchable": searchable || undefined, style: { '--onboarding-select-menu-max-height': `${menuMaxHeight}px` }, children: [searchable ? (_jsx(OnboardingDropdownSearch, { query: query, setQuery: setQuery, placeholder: searchPlaceholder || placeholder, label: searchPlaceholder || label })) : null, _jsx(OnboardingDropdownOptions, { label: label, multiple: multiple, ...listProps })] }));
|
|
268
|
+
return (_jsxs("div", { className: "jini-onboarding-view__select-menu", "data-searchable": searchable || undefined, style: { '--onboarding-select-menu-max-height': `${menuMaxHeight}px` }, children: [searchable ? (_jsx(OnboardingDropdownSearch, { query: query, setQuery: setQuery, placeholder: searchPlaceholder || placeholder, label: searchPlaceholder || label })) : null, _jsx(OnboardingDropdownOptions, { label: label, multiple: multiple, ...listProps })] }));
|
|
260
269
|
}
|
|
261
270
|
/**
|
|
262
271
|
* Searchable/multi-select onboarding dropdown. All behavior lives in
|
|
263
272
|
* {@link useOnboardingDropdown}; this component only renders the field,
|
|
264
273
|
* trigger, and (when open) the menu.
|
|
265
274
|
*/
|
|
266
|
-
export function OnboardingDropdown(props) {
|
|
267
|
-
const { label, placeholder, multiple = false, searchable = false, searchPlaceholder, sourceTone, className,
|
|
275
|
+
export function OnboardingDropdown({ useOnboardingDropdown: useOnboardingDropdownHook = useOnboardingDropdown, ...props }) {
|
|
276
|
+
const { label, placeholder, multiple = false, searchable = false, searchPlaceholder, sourceTone, className, } = props;
|
|
268
277
|
const { open, query, setQuery, toggleOpen, rootRef, resolvedPlacement, menuMaxHeight, selectedValues, hasValue, triggerLabel, visibleOptions, emptyMessage, selectOption, } = useOnboardingDropdownHook(props);
|
|
269
278
|
return (_jsxs("div", { className: ['onboarding-view__select-field', className].filter(Boolean).join(' '), "data-placement": resolvedPlacement, "data-open": open || undefined, ref: rootRef, children: [_jsx("span", { className: "onboarding-view__select-label", "data-source-tone": sourceTone || undefined, children: label }), _jsx(OnboardingDropdownTrigger, { open: open, hasValue: hasValue, triggerLabel: triggerLabel, toggleOpen: toggleOpen }), open ? (_jsx(OnboardingDropdownMenu, { label: label, placeholder: placeholder, multiple: multiple, searchable: searchable, searchPlaceholder: searchPlaceholder, query: query, setQuery: setQuery, menuMaxHeight: menuMaxHeight, visibleOptions: visibleOptions, selectedValues: selectedValues, emptyMessage: emptyMessage, selectOption: selectOption })) : null] }));
|
|
270
279
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
export function OptionCards({ label, options, value, onChange, className, }) {
|
|
3
|
-
return (_jsxs("div", { className: ['newproj-media-field', className].filter(Boolean).join(' '), children: [_jsx("div", { className: "newproj-label", children: label }), _jsx("div", { className: "newproj-option-grid compact", children: options.map((option) => (_jsxs("button", { type: "button", className: `newproj-card newproj-option-card${value === option.value ? ' active' : ''}`, onClick: () => onChange(option.value), "aria-pressed": value === option.value, children: [_jsx("span", { children: option.title }), option.hint ? _jsx("small", { children: option.hint }) : null] }, String(option.value)))) })] }));
|
|
3
|
+
return (_jsxs("div", { className: ['newproj-media-field', className].filter(Boolean).join(' '), children: [_jsx("div", { className: "jini-newproj-label", children: label }), _jsx("div", { className: "jini-newproj-option-grid compact", children: options.map((option) => (_jsxs("button", { type: "button", className: `newproj-card newproj-option-card${value === option.value ? ' active' : ''}`, onClick: () => onChange(option.value), "aria-pressed": value === option.value, children: [_jsx("span", { children: option.title }), option.hint ? _jsx("small", { children: option.hint }) : null] }, String(option.value)))) })] }));
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=OptionCards.js.map
|
|
@@ -14,18 +14,26 @@ export interface PaletteTweaksProps {
|
|
|
14
14
|
onChange: (id: PaletteId | null) => void;
|
|
15
15
|
onPreview: (id: PaletteId | null) => void;
|
|
16
16
|
onClose: () => void;
|
|
17
|
+
usePaletteDismissHook?: typeof usePaletteDismiss;
|
|
18
|
+
usePaletteHoverHook?: typeof usePaletteHover;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* The palette to preview for a given hover target: the "original" row previews
|
|
20
22
|
* nothing (`null`), leaving the row (target `null`) restores the current
|
|
21
23
|
* `selected` preview, and hovering a palette previews that palette.
|
|
22
24
|
*/
|
|
23
|
-
export declare function resolvePalettePreview(target
|
|
25
|
+
export declare function resolvePalettePreview({ target, selected }: {
|
|
26
|
+
target: PaletteHoverTarget;
|
|
27
|
+
selected: PaletteId | null;
|
|
28
|
+
}, _optional?: {}): PaletteId | null;
|
|
24
29
|
/**
|
|
25
30
|
* The next selection when a palette row is clicked: clicking the already
|
|
26
31
|
* selected palette deselects it (back to `null`), otherwise it selects it.
|
|
27
32
|
*/
|
|
28
|
-
export declare function nextPaletteSelection(selected
|
|
33
|
+
export declare function nextPaletteSelection({ selected, id }: {
|
|
34
|
+
selected: PaletteId | null;
|
|
35
|
+
id: PaletteId;
|
|
36
|
+
}, _optional?: {}): PaletteId | null;
|
|
29
37
|
/** The `className` for a picker row, given its selected/hovered state. */
|
|
30
38
|
export declare function paletteItemClassName(state: {
|
|
31
39
|
selected: boolean;
|
|
@@ -61,5 +69,5 @@ export declare function usePaletteDismiss(options: {
|
|
|
61
69
|
* {@link usePaletteHover} and {@link usePaletteDismiss}; the row derivations
|
|
62
70
|
* are module-level helpers. This component is a pure render.
|
|
63
71
|
*/
|
|
64
|
-
export declare function PaletteTweaks({ open, selected, onChange, onPreview, onClose }: PaletteTweaksProps): import("react").JSX.Element | null;
|
|
72
|
+
export declare function PaletteTweaks({ open, selected, onChange, onPreview, onClose, usePaletteDismissHook, usePaletteHoverHook }: PaletteTweaksProps): import("react").JSX.Element | null;
|
|
65
73
|
//# sourceMappingURL=PaletteTweaks.d.ts.map
|