basalt-ui 0.3.0 → 1.0.0
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/AGENTS.md +70 -0
- package/CHANGELOG.md +216 -26
- package/LICENSE +201 -0
- package/README.md +434 -160
- package/agent/rules/basalt-agent.md +395 -0
- package/agent/rules/basalt-charts.md +170 -0
- package/agent/rules/basalt-commands.md +320 -0
- package/agent/rules/basalt-content.md +390 -0
- package/agent/rules/basalt-data.md +237 -0
- package/agent/rules/basalt-forms.md +186 -0
- package/agent/rules/basalt-mantine.md +327 -0
- package/agent/rules/basalt-notifications.md +264 -0
- package/agent/rules/basalt-query.md +130 -0
- package/agent/rules/basalt-router.md +173 -0
- package/agent/rules/basalt-state.md +99 -0
- package/agent/rules/basalt-tokens.md +148 -0
- package/agent/templates/CLAUDE-block.md.tpl +35 -0
- package/agent/templates/DESIGN.md.tpl +71 -0
- package/agent/templates/__root.tpl +31 -0
- package/agent/templates/query-client.ts.tpl +12 -0
- package/bin/basalt.mjs +14 -0
- package/configs/check.yml +29 -0
- package/configs/lefthook.yml +21 -0
- package/configs/oxfmt.json +8 -0
- package/configs/oxlint-plugin.js +269 -0
- package/configs/oxlint-plugin.test.ts +107 -0
- package/configs/oxlint.json +116 -0
- package/configs/tsconfig.base.json +20 -0
- package/configs/tsconfig.node.json +8 -0
- package/configs/tsconfig.react-app.json +8 -0
- package/dist/agent/ai-sdk-transport.d.ts +85 -0
- package/dist/agent/ai-sdk-transport.d.ts.map +1 -0
- package/dist/agent/ai-sdk-transport.js +109 -0
- package/dist/agent/history.d.ts +55 -0
- package/dist/agent/history.d.ts.map +1 -0
- package/dist/agent/history.js +32 -0
- package/dist/agent/index.d.ts +53 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +23 -0
- package/dist/agent/outcome.d.ts +71 -0
- package/dist/agent/outcome.d.ts.map +1 -0
- package/dist/agent/outcome.js +30 -0
- package/dist/agent/part-list.d.ts +75 -0
- package/dist/agent/part-list.d.ts.map +1 -0
- package/dist/agent/part-list.js +127 -0
- package/dist/agent/parts.d.ts +91 -0
- package/dist/agent/parts.d.ts.map +1 -0
- package/dist/agent/parts.js +49 -0
- package/dist/agent/stick-to-bottom.d.ts +23 -0
- package/dist/agent/stick-to-bottom.d.ts.map +1 -0
- package/dist/agent/stick-to-bottom.js +73 -0
- package/dist/agent/thread.d.ts +124 -0
- package/dist/agent/thread.d.ts.map +1 -0
- package/dist/agent/thread.js +131 -0
- package/dist/agent/transport.d.ts +87 -0
- package/dist/agent/transport.d.ts.map +1 -0
- package/dist/agent/transport.js +21 -0
- package/dist/agent/use-agent-stream.d.ts +34 -0
- package/dist/agent/use-agent-stream.d.ts.map +1 -0
- package/dist/agent/use-agent-stream.js +56 -0
- package/dist/agent/use-agent-thread-runs.d.ts +72 -0
- package/dist/agent/use-agent-thread-runs.d.ts.map +1 -0
- package/dist/agent/use-agent-thread-runs.js +217 -0
- package/dist/agent-chat/composer.d.ts +18 -0
- package/dist/agent-chat/composer.d.ts.map +1 -0
- package/dist/agent-chat/composer.js +86 -0
- package/dist/agent-chat/index.d.ts +24 -0
- package/dist/agent-chat/index.d.ts.map +1 -0
- package/dist/agent-chat/index.js +15 -0
- package/dist/agent-chat/thread-detail-panel.d.ts +27 -0
- package/dist/agent-chat/thread-detail-panel.d.ts.map +1 -0
- package/dist/agent-chat/thread-detail-panel.js +108 -0
- package/dist/agent-chat/thread-feed.d.ts +18 -0
- package/dist/agent-chat/thread-feed.d.ts.map +1 -0
- package/dist/agent-chat/thread-feed.js +42 -0
- package/dist/agent-chat/thread-message.d.ts +31 -0
- package/dist/agent-chat/thread-message.d.ts.map +1 -0
- package/dist/agent-chat/thread-message.js +128 -0
- package/dist/agent-chat/thread-outcome-card.d.ts +19 -0
- package/dist/agent-chat/thread-outcome-card.d.ts.map +1 -0
- package/dist/agent-chat/thread-outcome-card.js +120 -0
- package/dist/agent-chat/thread-workspace.d.ts +27 -0
- package/dist/agent-chat/thread-workspace.d.ts.map +1 -0
- package/dist/agent-chat/thread-workspace.js +95 -0
- package/dist/charts/hooks/useChartSize.d.ts +25 -0
- package/dist/charts/hooks/useChartSize.d.ts.map +1 -0
- package/dist/charts/hooks/useChartSize.js +8 -0
- package/dist/charts/hooks/useChartTooltip.d.ts +13 -0
- package/dist/charts/hooks/useChartTooltip.d.ts.map +1 -0
- package/dist/charts/hooks/useChartTooltip.js +26 -0
- package/dist/charts/hooks/useHoverSync.d.ts +30 -0
- package/dist/charts/hooks/useHoverSync.d.ts.map +1 -0
- package/dist/charts/hooks/useHoverSync.js +70 -0
- package/dist/charts/hover-context.d.ts +21 -0
- package/dist/charts/hover-context.d.ts.map +1 -0
- package/dist/charts/hover-context.js +12 -0
- package/dist/charts/hover-sync.d.ts +14 -0
- package/dist/charts/hover-sync.d.ts.map +1 -0
- package/dist/charts/hover-sync.js +17 -0
- package/dist/charts/index.d.ts +47 -0
- package/dist/charts/index.d.ts.map +1 -0
- package/dist/charts/index.js +129 -0
- package/dist/charts/kinds/Bars.d.ts +129 -0
- package/dist/charts/kinds/Bars.d.ts.map +1 -0
- package/dist/charts/kinds/Bars.js +467 -0
- package/dist/charts/kinds/Donut.d.ts +65 -0
- package/dist/charts/kinds/Donut.d.ts.map +1 -0
- package/dist/charts/kinds/Donut.js +158 -0
- package/dist/charts/kinds/DualPanel.d.ts +67 -0
- package/dist/charts/kinds/DualPanel.d.ts.map +1 -0
- package/dist/charts/kinds/DualPanel.js +326 -0
- package/dist/charts/kinds/Heatmap.d.ts +59 -0
- package/dist/charts/kinds/Heatmap.d.ts.map +1 -0
- package/dist/charts/kinds/Heatmap.js +175 -0
- package/dist/charts/kinds/MultiLine.d.ts +73 -0
- package/dist/charts/kinds/MultiLine.d.ts.map +1 -0
- package/dist/charts/kinds/MultiLine.js +275 -0
- package/dist/charts/kinds/StackedArea.d.ts +35 -0
- package/dist/charts/kinds/StackedArea.d.ts.map +1 -0
- package/dist/charts/kinds/StackedArea.js +151 -0
- package/dist/charts/kinds/ZonedLine.d.ts +94 -0
- package/dist/charts/kinds/ZonedLine.d.ts.map +1 -0
- package/dist/charts/kinds/ZonedLine.js +218 -0
- package/dist/charts/primitives/AreaGradient.d.ts +18 -0
- package/dist/charts/primitives/AreaGradient.d.ts.map +1 -0
- package/dist/charts/primitives/AreaGradient.js +13 -0
- package/dist/charts/primitives/Axes.d.ts +22 -0
- package/dist/charts/primitives/Axes.d.ts.map +1 -0
- package/dist/charts/primitives/Axes.js +79 -0
- package/dist/charts/primitives/ChartCard.d.ts +14 -0
- package/dist/charts/primitives/ChartCard.d.ts.map +1 -0
- package/dist/charts/primitives/ChartCard.js +144 -0
- package/dist/charts/primitives/ChartFrame.d.ts +70 -0
- package/dist/charts/primitives/ChartFrame.d.ts.map +1 -0
- package/dist/charts/primitives/ChartFrame.js +77 -0
- package/dist/charts/primitives/ChartLegend.d.ts +36 -0
- package/dist/charts/primitives/ChartLegend.d.ts.map +1 -0
- package/dist/charts/primitives/ChartLegend.js +234 -0
- package/dist/charts/primitives/ChartTooltip.d.ts +34 -0
- package/dist/charts/primitives/ChartTooltip.d.ts.map +1 -0
- package/dist/charts/primitives/ChartTooltip.js +134 -0
- package/dist/charts/primitives/Crosshair.d.ts +23 -0
- package/dist/charts/primitives/Crosshair.d.ts.map +1 -0
- package/dist/charts/primitives/Crosshair.js +21 -0
- package/dist/charts/primitives/HoverOverlay.d.ts +9 -0
- package/dist/charts/primitives/HoverOverlay.d.ts.map +1 -0
- package/dist/charts/primitives/HoverOverlay.js +21 -0
- package/dist/charts/primitives/ResponsiveChart.d.ts +45 -0
- package/dist/charts/primitives/ResponsiveChart.d.ts.map +1 -0
- package/dist/charts/primitives/ResponsiveChart.js +24 -0
- package/dist/charts/primitives/ZoneRects.d.ts +38 -0
- package/dist/charts/primitives/ZoneRects.d.ts.map +1 -0
- package/dist/charts/primitives/ZoneRects.js +30 -0
- package/dist/charts/series.d.ts +99 -0
- package/dist/charts/series.d.ts.map +1 -0
- package/dist/charts/series.js +55 -0
- package/dist/charts/sparklines/BarSparkline.d.ts +13 -0
- package/dist/charts/sparklines/BarSparkline.d.ts.map +1 -0
- package/dist/charts/sparklines/BarSparkline.js +33 -0
- package/dist/charts/sparklines/LineSparkline.d.ts +15 -0
- package/dist/charts/sparklines/LineSparkline.d.ts.map +1 -0
- package/dist/charts/sparklines/LineSparkline.js +39 -0
- package/dist/charts/sparklines/index.d.ts +3 -0
- package/dist/charts/sparklines/index.d.ts.map +1 -0
- package/dist/charts/sparklines/index.js +6 -0
- package/dist/charts/theme.d.ts +21 -0
- package/dist/charts/theme.d.ts.map +1 -0
- package/dist/charts/theme.js +30 -0
- package/dist/charts/utils/domain.d.ts +20 -0
- package/dist/charts/utils/domain.d.ts.map +1 -0
- package/dist/charts/utils/domain.js +7 -0
- package/dist/charts/utils/format.d.ts +5 -0
- package/dist/charts/utils/format.d.ts.map +1 -0
- package/dist/charts/utils/format.js +27 -0
- package/dist/charts/utils/ticks.d.ts +5 -0
- package/dist/charts/utils/ticks.d.ts.map +1 -0
- package/dist/charts/utils/ticks.js +18 -0
- package/dist/cli/index.d.ts +273 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +907 -0
- package/dist/commands/ShortcutsHelp.d.ts +17 -0
- package/dist/commands/ShortcutsHelp.d.ts.map +1 -0
- package/dist/commands/ShortcutsHelp.js +64 -0
- package/dist/commands/define-commands.d.ts +140 -0
- package/dist/commands/define-commands.d.ts.map +1 -0
- package/dist/commands/define-commands.js +26 -0
- package/dist/commands/define-overlays.d.ts +134 -0
- package/dist/commands/define-overlays.d.ts.map +1 -0
- package/dist/commands/define-overlays.js +53 -0
- package/dist/commands/index.d.ts +42 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +46 -0
- package/dist/commands/overlays-mount.d.ts +117 -0
- package/dist/commands/overlays-mount.d.ts.map +1 -0
- package/dist/commands/overlays-mount.js +116 -0
- package/dist/commands/projectors.d.ts +152 -0
- package/dist/commands/projectors.d.ts.map +1 -0
- package/dist/commands/projectors.js +87 -0
- package/dist/commands/shortcut-format.d.ts +48 -0
- package/dist/commands/shortcut-format.d.ts.map +1 -0
- package/dist/commands/shortcut-format.js +33 -0
- package/dist/commands/useCommandHotkeys.d.ts +14 -0
- package/dist/commands/useCommandHotkeys.d.ts.map +1 -0
- package/dist/commands/useCommandHotkeys.js +45 -0
- package/dist/connectivity/connectivity-indicator.d.ts +8 -0
- package/dist/connectivity/connectivity-indicator.d.ts.map +1 -0
- package/dist/connectivity/connectivity-indicator.js +203 -0
- package/dist/connectivity/connectivity-provider.d.ts +7 -0
- package/dist/connectivity/connectivity-provider.d.ts.map +1 -0
- package/dist/connectivity/connectivity-provider.js +125 -0
- package/dist/connectivity/index.d.ts +13 -0
- package/dist/connectivity/index.d.ts.map +1 -0
- package/dist/connectivity/index.js +8 -0
- package/dist/connectivity/types.d.ts +36 -0
- package/dist/connectivity/types.d.ts.map +1 -0
- package/dist/connectivity/types.js +0 -0
- package/dist/connectivity/use-connectivity.d.ts +3 -0
- package/dist/connectivity/use-connectivity.d.ts.map +1 -0
- package/dist/connectivity/use-connectivity.js +14 -0
- package/dist/content/article-actions.d.ts +39 -0
- package/dist/content/article-actions.d.ts.map +1 -0
- package/dist/content/article-actions.js +28 -0
- package/dist/content/article-card.d.ts +58 -0
- package/dist/content/article-card.d.ts.map +1 -0
- package/dist/content/article-card.js +76 -0
- package/dist/content/article-card.module.css +109 -0
- package/dist/content/article-card.module.css.d.ts +16 -0
- package/dist/content/article-filter-bar.d.ts +40 -0
- package/dist/content/article-filter-bar.d.ts.map +1 -0
- package/dist/content/article-filter-bar.js +56 -0
- package/dist/content/article-layout.d.ts +61 -0
- package/dist/content/article-layout.d.ts.map +1 -0
- package/dist/content/article-layout.js +71 -0
- package/dist/content/article-layout.module.css +131 -0
- package/dist/content/article-layout.module.css.d.ts +20 -0
- package/dist/content/article-model.d.ts +62 -0
- package/dist/content/article-model.d.ts.map +1 -0
- package/dist/content/article-model.js +41 -0
- package/dist/content/block-split.d.ts +24 -0
- package/dist/content/block-split.d.ts.map +1 -0
- package/dist/content/block-split.js +63 -0
- package/dist/content/callout-alert.d.ts +27 -0
- package/dist/content/callout-alert.d.ts.map +1 -0
- package/dist/content/callout-alert.js +59 -0
- package/dist/content/callout.d.ts +24 -0
- package/dist/content/callout.d.ts.map +1 -0
- package/dist/content/callout.js +59 -0
- package/dist/content/callout.module.css +77 -0
- package/dist/content/callout.module.css.d.ts +16 -0
- package/dist/content/code-block.d.ts +26 -0
- package/dist/content/code-block.d.ts.map +1 -0
- package/dist/content/code-block.js +41 -0
- package/dist/content/code-block.module.css +86 -0
- package/dist/content/code-block.module.css.d.ts +14 -0
- package/dist/content/copy-action.d.ts +29 -0
- package/dist/content/copy-action.d.ts.map +1 -0
- package/dist/content/copy-action.js +46 -0
- package/dist/content/fence-block.d.ts +19 -0
- package/dist/content/fence-block.d.ts.map +1 -0
- package/dist/content/fence-block.js +23 -0
- package/dist/content/glyphs.d.ts +18 -0
- package/dist/content/glyphs.d.ts.map +1 -0
- package/dist/content/glyphs.js +43 -0
- package/dist/content/guide.d.ts +47 -0
- package/dist/content/guide.d.ts.map +1 -0
- package/dist/content/guide.js +110 -0
- package/dist/content/guide.module.css +62 -0
- package/dist/content/guide.module.css.d.ts +13 -0
- package/dist/content/heading-anchor.d.ts +8 -0
- package/dist/content/heading-anchor.d.ts.map +1 -0
- package/dist/content/heading-anchor.js +23 -0
- package/dist/content/heading-components.d.ts +5 -0
- package/dist/content/heading-components.d.ts.map +1 -0
- package/dist/content/heading-components.js +41 -0
- package/dist/content/highlighter.d.ts +8 -0
- package/dist/content/highlighter.d.ts.map +1 -0
- package/dist/content/highlighter.js +85 -0
- package/dist/content/index.d.ts +45 -0
- package/dist/content/index.d.ts.map +1 -0
- package/dist/content/index.js +43 -0
- package/dist/content/markdown-hast.d.ts +23 -0
- package/dist/content/markdown-hast.d.ts.map +1 -0
- package/dist/content/markdown-hast.js +48 -0
- package/dist/content/markdown.d.ts +68 -0
- package/dist/content/markdown.d.ts.map +1 -0
- package/dist/content/markdown.js +180 -0
- package/dist/content/mdx.d.ts +20 -0
- package/dist/content/mdx.d.ts.map +1 -0
- package/dist/content/mdx.js +64 -0
- package/dist/content/mermaid.d.ts +32 -0
- package/dist/content/mermaid.d.ts.map +1 -0
- package/dist/content/mermaid.js +70 -0
- package/dist/content/mermaid.module.css +20 -0
- package/dist/content/mermaid.module.css.d.ts +8 -0
- package/dist/content/prose.d.ts +29 -0
- package/dist/content/prose.d.ts.map +1 -0
- package/dist/content/prose.js +24 -0
- package/dist/content/prose.module.css +330 -0
- package/dist/content/prose.module.css.d.ts +12 -0
- package/dist/content/reading-progress.d.ts +20 -0
- package/dist/content/reading-progress.d.ts.map +1 -0
- package/dist/content/reading-progress.js +38 -0
- package/dist/content/reading-progress.module.css +22 -0
- package/dist/content/reading-progress.module.css.d.ts +9 -0
- package/dist/content/slug.d.ts +28 -0
- package/dist/content/slug.d.ts.map +1 -0
- package/dist/content/slug.js +28 -0
- package/dist/content/toc.d.ts +37 -0
- package/dist/content/toc.d.ts.map +1 -0
- package/dist/content/toc.js +134 -0
- package/dist/content/toc.module.css +51 -0
- package/dist/content/toc.module.css.d.ts +13 -0
- package/dist/content/url-hardening.d.ts +23 -0
- package/dist/content/url-hardening.d.ts.map +1 -0
- package/dist/content/url-hardening.js +23 -0
- package/dist/dashboard/delta-badge.d.ts +13 -0
- package/dist/dashboard/delta-badge.d.ts.map +1 -0
- package/dist/dashboard/delta-badge.js +45 -0
- package/dist/dashboard/empty-state.d.ts +15 -0
- package/dist/dashboard/empty-state.d.ts.map +1 -0
- package/dist/dashboard/empty-state.js +56 -0
- package/dist/dashboard/index.d.ts +5 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +16 -0
- package/dist/dashboard/settings-section.d.ts +24 -0
- package/dist/dashboard/settings-section.d.ts.map +1 -0
- package/dist/dashboard/settings-section.js +61 -0
- package/dist/dashboard/settings-section.module.css +23 -0
- package/dist/dashboard/settings-section.module.css.d.ts +10 -0
- package/dist/dashboard/stat-card.d.ts +18 -0
- package/dist/dashboard/stat-card.d.ts.map +1 -0
- package/dist/dashboard/stat-card.js +74 -0
- package/dist/data/data-table.d.ts +198 -0
- package/dist/data/data-table.d.ts.map +1 -0
- package/dist/data/data-table.js +342 -0
- package/dist/data/index.d.ts +34 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +2 -0
- package/dist/data/table.d.ts +24 -0
- package/dist/data/table.d.ts.map +1 -0
- package/dist/data/table.js +20 -0
- package/dist/data/virtual-list.d.ts +74 -0
- package/dist/data/virtual-list.d.ts.map +1 -0
- package/dist/data/virtual-list.js +86 -0
- package/dist/data/virtual.d.ts +20 -0
- package/dist/data/virtual.d.ts.map +1 -0
- package/dist/data/virtual.js +4 -0
- package/dist/forms/FormErrorSummary.d.ts +29 -0
- package/dist/forms/FormErrorSummary.d.ts.map +1 -0
- package/dist/forms/FormErrorSummary.js +28 -0
- package/dist/forms/create-form.d.ts +31 -0
- package/dist/forms/create-form.d.ts.map +1 -0
- package/dist/forms/create-form.js +18 -0
- package/dist/forms/field.d.ts +22 -0
- package/dist/forms/field.d.ts.map +1 -0
- package/dist/forms/field.js +9 -0
- package/dist/forms/index.d.ts +17 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +13 -0
- package/dist/forms/use-form-draft.d.ts +61 -0
- package/dist/forms/use-form-draft.d.ts.map +1 -0
- package/dist/forms/use-form-draft.js +55 -0
- package/dist/guard/guard-hook.d.ts +40 -0
- package/dist/guard/guard-hook.d.ts.map +1 -0
- package/dist/guard/guard-hook.js +55 -0
- package/dist/guard/index.d.ts +144 -0
- package/dist/guard/index.d.ts.map +1 -0
- package/dist/guard/index.js +315 -0
- package/dist/guard/types.d.ts +97 -0
- package/dist/guard/types.d.ts.map +1 -0
- package/dist/guard/types.js +0 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +90 -0
- package/dist/motion/index.d.ts +29 -0
- package/dist/motion/index.d.ts.map +1 -0
- package/dist/motion/index.js +12 -0
- package/dist/notifications/bell.d.ts +12 -0
- package/dist/notifications/bell.d.ts.map +1 -0
- package/dist/notifications/bell.js +84 -0
- package/dist/notifications/center.d.ts +20 -0
- package/dist/notifications/center.d.ts.map +1 -0
- package/dist/notifications/center.js +144 -0
- package/dist/notifications/define-notifications.d.ts +97 -0
- package/dist/notifications/define-notifications.d.ts.map +1 -0
- package/dist/notifications/define-notifications.js +27 -0
- package/dist/notifications/index.d.ts +36 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +52 -0
- package/dist/notifications/notify.d.ts +92 -0
- package/dist/notifications/notify.d.ts.map +1 -0
- package/dist/notifications/notify.js +127 -0
- package/dist/notifications/overlay.d.ts +20 -0
- package/dist/notifications/overlay.d.ts.map +1 -0
- package/dist/notifications/overlay.js +12 -0
- package/dist/notifications/store.d.ts +120 -0
- package/dist/notifications/store.d.ts.map +1 -0
- package/dist/notifications/store.js +113 -0
- package/dist/provider/index.d.ts +93 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +106 -0
- package/dist/query/devtools.d.ts +21 -0
- package/dist/query/devtools.d.ts.map +1 -0
- package/dist/query/devtools.js +12 -0
- package/dist/query/index.d.ts +65 -0
- package/dist/query/index.d.ts.map +1 -0
- package/dist/query/index.js +68 -0
- package/dist/register.d.ts +139 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/register.js +6 -0
- package/dist/router-tanstack/index.d.ts +74 -0
- package/dist/router-tanstack/index.d.ts.map +1 -0
- package/dist/router-tanstack/index.js +29 -0
- package/dist/router-tanstack/multi-search-param-store.d.ts +78 -0
- package/dist/router-tanstack/multi-search-param-store.d.ts.map +1 -0
- package/dist/router-tanstack/multi-search-param-store.js +35 -0
- package/dist/router-tanstack/search-param-store.d.ts +92 -0
- package/dist/router-tanstack/search-param-store.d.ts.map +1 -0
- package/dist/router-tanstack/search-param-store.js +26 -0
- package/dist/shell/account-types.d.ts +118 -0
- package/dist/shell/account-types.d.ts.map +1 -0
- package/dist/shell/account-types.js +0 -0
- package/dist/shell/app-breadcrumbs.d.ts +17 -0
- package/dist/shell/app-breadcrumbs.d.ts.map +1 -0
- package/dist/shell/app-breadcrumbs.js +39 -0
- package/dist/shell/app-header.module.css +73 -0
- package/dist/shell/app-header.module.css.d.ts +11 -0
- package/dist/shell/app-mobile-nav.d.ts +26 -0
- package/dist/shell/app-mobile-nav.d.ts.map +1 -0
- package/dist/shell/app-mobile-nav.js +106 -0
- package/dist/shell/app-mobile-nav.module.css +100 -0
- package/dist/shell/app-mobile-nav.module.css.d.ts +14 -0
- package/dist/shell/app-sidebar-account.d.ts +3 -0
- package/dist/shell/app-sidebar-account.d.ts.map +1 -0
- package/dist/shell/app-sidebar-account.js +84 -0
- package/dist/shell/app-sidebar.d.ts +56 -0
- package/dist/shell/app-sidebar.d.ts.map +1 -0
- package/dist/shell/app-sidebar.js +455 -0
- package/dist/shell/app-sidebar.module.css +414 -0
- package/dist/shell/app-sidebar.module.css.d.ts +34 -0
- package/dist/shell/index.d.ts +123 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +179 -0
- package/dist/shell/page-header.d.ts +13 -0
- package/dist/shell/page-header.d.ts.map +1 -0
- package/dist/shell/page-header.js +23 -0
- package/dist/shell/sidebar-search.d.ts +12 -0
- package/dist/shell/sidebar-search.d.ts.map +1 -0
- package/dist/shell/sidebar-search.js +62 -0
- package/dist/shell/sidebar-search.module.css +62 -0
- package/dist/shell/sidebar-search.module.css.d.ts +11 -0
- package/dist/state.d.ts +62 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/state.js +124 -0
- package/dist/styles.css +166 -0
- package/dist/surfaces.d.ts +376 -0
- package/dist/surfaces.d.ts.map +1 -0
- package/dist/surfaces.js +306 -0
- package/dist/theme/controls.module.css +143 -0
- package/dist/theme/controls.module.css.d.ts +17 -0
- package/dist/theme/floating.module.css +35 -0
- package/dist/theme/floating.module.css.d.ts +9 -0
- package/dist/theme/index.d.ts +22 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +733 -0
- package/dist/theme/nav-link.module.css +67 -0
- package/dist/theme/nav-link.module.css.d.ts +8 -0
- package/dist/theme/segmented-control.module.css +14 -0
- package/dist/theme/segmented-control.module.css.d.ts +8 -0
- package/dist/theme/timeline.module.css +29 -0
- package/dist/theme/timeline.module.css.d.ts +9 -0
- package/dist/theme-lab/index.d.ts +59 -0
- package/dist/theme-lab/index.d.ts.map +1 -0
- package/dist/theme-lab/index.js +263 -0
- package/dist/theme-toggle/index.d.ts +8 -0
- package/dist/theme-toggle/index.d.ts.map +1 -0
- package/dist/theme-toggle/index.js +155 -0
- package/dist/tokens/index.d.ts +151 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +246 -0
- package/dist/tokens/palette.d.ts +304 -0
- package/dist/tokens/palette.d.ts.map +1 -0
- package/dist/tokens/palette.js +186 -0
- package/dist/vite.d.ts +30 -0
- package/dist/vite.d.ts.map +1 -0
- package/dist/vite.js +68 -0
- package/llms.txt +149 -0
- package/package.json +246 -37
- package/src/agent/ai-sdk-transport.ts +280 -0
- package/src/agent/history.ts +128 -0
- package/src/agent/index.ts +92 -0
- package/src/agent/outcome.ts +120 -0
- package/src/agent/part-list.tsx +292 -0
- package/src/agent/parts.ts +136 -0
- package/src/agent/stick-to-bottom.tsx +154 -0
- package/src/agent/thread.ts +312 -0
- package/src/agent/transport.ts +114 -0
- package/src/agent/use-agent-stream.ts +141 -0
- package/src/agent/use-agent-thread-runs.ts +440 -0
- package/src/agent-chat/composer.tsx +131 -0
- package/src/agent-chat/index.ts +35 -0
- package/src/agent-chat/thread-detail-panel.tsx +192 -0
- package/src/agent-chat/thread-feed.tsx +81 -0
- package/src/agent-chat/thread-message.tsx +251 -0
- package/src/agent-chat/thread-outcome-card.tsx +196 -0
- package/src/agent-chat/thread-workspace.tsx +179 -0
- package/src/charts/hooks/useChartSize.ts +31 -0
- package/src/charts/hooks/useChartTooltip.ts +31 -0
- package/src/charts/hooks/useHoverSync.ts +116 -0
- package/src/charts/hover-context.ts +28 -0
- package/src/charts/hover-sync.tsx +37 -0
- package/src/charts/index.ts +118 -0
- package/src/charts/kinds/Bars.tsx +634 -0
- package/src/charts/kinds/Donut.tsx +233 -0
- package/src/charts/kinds/DualPanel.tsx +432 -0
- package/src/charts/kinds/Heatmap.tsx +255 -0
- package/src/charts/kinds/MultiLine.tsx +376 -0
- package/src/charts/kinds/StackedArea.tsx +218 -0
- package/src/charts/kinds/ZonedLine.tsx +346 -0
- package/src/charts/primitives/AreaGradient.tsx +26 -0
- package/src/charts/primitives/Axes.tsx +97 -0
- package/src/charts/primitives/ChartCard.tsx +180 -0
- package/src/charts/primitives/ChartFrame.tsx +157 -0
- package/src/charts/primitives/ChartLegend.tsx +302 -0
- package/src/charts/primitives/ChartTooltip.tsx +158 -0
- package/src/charts/primitives/Crosshair.tsx +40 -0
- package/src/charts/primitives/HoverOverlay.tsx +24 -0
- package/src/charts/primitives/ResponsiveChart.tsx +64 -0
- package/src/charts/primitives/ZoneRects.tsx +67 -0
- package/src/charts/series.ts +163 -0
- package/src/charts/sparklines/BarSparkline.tsx +48 -0
- package/src/charts/sparklines/LineSparkline.tsx +57 -0
- package/src/charts/sparklines/index.ts +2 -0
- package/src/charts/theme.tsx +53 -0
- package/src/charts/utils/domain.test.ts +24 -0
- package/src/charts/utils/domain.ts +22 -0
- package/src/charts/utils/format.ts +27 -0
- package/src/charts/utils/ticks.ts +18 -0
- package/src/cli/check-theme.test.ts +658 -0
- package/src/cli/index.ts +1497 -0
- package/src/cli/init-sync.test.ts +160 -0
- package/src/commands/ShortcutsHelp.tsx +129 -0
- package/src/commands/define-commands.ts +184 -0
- package/src/commands/define-overlays.ts +197 -0
- package/src/commands/index.ts +86 -0
- package/src/commands/overlays-mount.tsx +301 -0
- package/src/commands/projectors.ts +267 -0
- package/src/commands/shortcut-format.ts +83 -0
- package/src/commands/useCommandHotkeys.ts +114 -0
- package/src/connectivity/connectivity-indicator.tsx +249 -0
- package/src/connectivity/connectivity-provider.tsx +186 -0
- package/src/connectivity/index.ts +18 -0
- package/src/connectivity/types.ts +39 -0
- package/src/connectivity/use-connectivity.ts +25 -0
- package/src/content/article-actions.test.ts +78 -0
- package/src/content/article-actions.ts +72 -0
- package/src/content/article-card.module.css +109 -0
- package/src/content/article-card.module.css.d.ts +16 -0
- package/src/content/article-card.tsx +173 -0
- package/src/content/article-filter-bar.tsx +88 -0
- package/src/content/article-layout.module.css +131 -0
- package/src/content/article-layout.module.css.d.ts +20 -0
- package/src/content/article-layout.tsx +167 -0
- package/src/content/article-model.test.ts +119 -0
- package/src/content/article-model.ts +110 -0
- package/src/content/block-split.test.ts +75 -0
- package/src/content/block-split.ts +102 -0
- package/src/content/callout-alert.ts +88 -0
- package/src/content/callout.module.css +77 -0
- package/src/content/callout.module.css.d.ts +16 -0
- package/src/content/callout.tsx +96 -0
- package/src/content/code-block.module.css +86 -0
- package/src/content/code-block.module.css.d.ts +14 -0
- package/src/content/code-block.tsx +82 -0
- package/src/content/copy-action.tsx +79 -0
- package/src/content/fence-block.tsx +39 -0
- package/src/content/glyphs.tsx +53 -0
- package/src/content/guide.module.css +62 -0
- package/src/content/guide.module.css.d.ts +13 -0
- package/src/content/guide.tsx +174 -0
- package/src/content/heading-anchor.tsx +54 -0
- package/src/content/heading-components.tsx +62 -0
- package/src/content/highlighter.ts +123 -0
- package/src/content/index.ts +60 -0
- package/src/content/markdown-hast.ts +80 -0
- package/src/content/markdown.tsx +346 -0
- package/src/content/mdx.tsx +127 -0
- package/src/content/mermaid.module.css +20 -0
- package/src/content/mermaid.module.css.d.ts +8 -0
- package/src/content/mermaid.tsx +124 -0
- package/src/content/prose.module.css +330 -0
- package/src/content/prose.module.css.d.ts +12 -0
- package/src/content/prose.tsx +53 -0
- package/src/content/reading-progress.module.css +22 -0
- package/src/content/reading-progress.module.css.d.ts +9 -0
- package/src/content/reading-progress.tsx +67 -0
- package/src/content/slug.test.ts +62 -0
- package/src/content/slug.ts +57 -0
- package/src/content/toc.module.css +51 -0
- package/src/content/toc.module.css.d.ts +13 -0
- package/src/content/toc.tsx +226 -0
- package/src/content/url-hardening.ts +46 -0
- package/src/dashboard/delta-badge.tsx +70 -0
- package/src/dashboard/empty-state.tsx +80 -0
- package/src/dashboard/index.ts +11 -0
- package/src/dashboard/settings-section.module.css +23 -0
- package/src/dashboard/settings-section.module.css.d.ts +10 -0
- package/src/dashboard/settings-section.tsx +118 -0
- package/src/dashboard/stat-card.tsx +105 -0
- package/src/data/data-table.tsx +695 -0
- package/src/data/index.ts +37 -0
- package/src/data/table.ts +46 -0
- package/src/data/virtual-list.tsx +180 -0
- package/src/data/virtual.ts +21 -0
- package/src/forms/FormErrorSummary.tsx +64 -0
- package/src/forms/create-form.ts +57 -0
- package/src/forms/field.ts +30 -0
- package/src/forms/index.ts +26 -0
- package/src/forms/use-form-draft.ts +170 -0
- package/src/guard/check-source.test.ts +834 -0
- package/src/guard/guard-hook.test.ts +173 -0
- package/src/guard/guard-hook.ts +122 -0
- package/src/guard/index.ts +510 -0
- package/src/guard/types.ts +117 -0
- package/src/index.ts +139 -0
- package/src/motion/index.ts +26 -0
- package/src/notifications/bell.tsx +108 -0
- package/src/notifications/center.tsx +245 -0
- package/src/notifications/define-notifications.ts +162 -0
- package/src/notifications/index.ts +79 -0
- package/src/notifications/notify.tsx +260 -0
- package/src/notifications/overlay.tsx +64 -0
- package/src/notifications/store.ts +287 -0
- package/src/provider/index.tsx +234 -0
- package/src/query/devtools.tsx +38 -0
- package/src/query/index.ts +129 -0
- package/src/register.ts +158 -0
- package/src/router-tanstack/index.ts +111 -0
- package/src/router-tanstack/multi-search-param-store.test.ts +56 -0
- package/src/router-tanstack/multi-search-param-store.ts +122 -0
- package/src/router-tanstack/search-param-store.ts +125 -0
- package/src/shell/account-types.ts +119 -0
- package/src/shell/app-breadcrumbs.tsx +90 -0
- package/src/shell/app-header.module.css +73 -0
- package/src/shell/app-header.module.css.d.ts +11 -0
- package/src/shell/app-mobile-nav.module.css +100 -0
- package/src/shell/app-mobile-nav.module.css.d.ts +14 -0
- package/src/shell/app-mobile-nav.tsx +146 -0
- package/src/shell/app-sidebar-account.tsx +142 -0
- package/src/shell/app-sidebar.module.css +414 -0
- package/src/shell/app-sidebar.module.css.d.ts +34 -0
- package/src/shell/app-sidebar.tsx +632 -0
- package/src/shell/index.tsx +343 -0
- package/src/shell/page-header.tsx +35 -0
- package/src/shell/sidebar-search.module.css +62 -0
- package/src/shell/sidebar-search.module.css.d.ts +11 -0
- package/src/shell/sidebar-search.tsx +80 -0
- package/src/state.ts +246 -0
- package/src/styles.css +166 -0
- package/src/styles.floor.test.ts +36 -0
- package/src/surfaces.ts +489 -0
- package/src/theme/border-coverage.test.ts +272 -0
- package/src/theme/contrast.test.ts +306 -0
- package/src/theme/controls.module.css +143 -0
- package/src/theme/controls.module.css.d.ts +17 -0
- package/src/theme/floating.module.css +35 -0
- package/src/theme/floating.module.css.d.ts +9 -0
- package/src/theme/index.ts +933 -0
- package/src/theme/nav-link.module.css +67 -0
- package/src/theme/nav-link.module.css.d.ts +8 -0
- package/src/theme/segmented-control.module.css +14 -0
- package/src/theme/segmented-control.module.css.d.ts +8 -0
- package/src/theme/shadow-surfaces.test.ts +421 -0
- package/src/theme/timeline.module.css +29 -0
- package/src/theme/timeline.module.css.d.ts +9 -0
- package/src/theme-lab/index.tsx +359 -0
- package/src/theme-lab/theme-lab.test.ts +60 -0
- package/src/theme-toggle/index.tsx +180 -0
- package/src/tokens/index.ts +363 -0
- package/src/tokens/palette.ts +288 -0
- package/src/vite.ts +122 -0
- package/src/index.css +0 -986
- package/src/starlight.css +0 -308
- package/tailwind.config.js +0 -78
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { lazy, Suspense } from "react";
|
|
3
|
+
import { runCommand } from "./define-commands.js";
|
|
4
|
+
import { toSpotlightActions } from "./projectors.js";
|
|
5
|
+
import { useCommandHotkeys } from "./useCommandHotkeys.js";
|
|
6
|
+
let spotlightHandlePromise;
|
|
7
|
+
function loadSpotlightHandle() {
|
|
8
|
+
spotlightHandlePromise ??= import("@mantine/spotlight").then(({ createSpotlight }) => {
|
|
9
|
+
const [store, actions] = createSpotlight();
|
|
10
|
+
return { store, actions };
|
|
11
|
+
}).catch(() => void 0);
|
|
12
|
+
return spotlightHandlePromise;
|
|
13
|
+
}
|
|
14
|
+
const basaltSpotlight = {
|
|
15
|
+
open: () => {
|
|
16
|
+
void loadSpotlightHandle().then((handle) => handle?.actions.open());
|
|
17
|
+
},
|
|
18
|
+
close: () => {
|
|
19
|
+
void loadSpotlightHandle().then((handle) => handle?.actions.close());
|
|
20
|
+
},
|
|
21
|
+
toggle: () => {
|
|
22
|
+
void loadSpotlightHandle().then((handle) => handle?.actions.toggle());
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function openSpotlight() {
|
|
26
|
+
basaltSpotlight.open();
|
|
27
|
+
}
|
|
28
|
+
function closeSpotlight() {
|
|
29
|
+
basaltSpotlight.close();
|
|
30
|
+
}
|
|
31
|
+
function PassthroughFragment({ children }) {
|
|
32
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
33
|
+
}
|
|
34
|
+
const LazyModalsProvider = lazy(
|
|
35
|
+
() => import("@mantine/modals").then((m) => ({ default: m.ModalsProvider })).catch(() => ({ default: PassthroughFragment }))
|
|
36
|
+
);
|
|
37
|
+
function NullFallback() {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const LazySpotlightMount = lazy(
|
|
41
|
+
() => Promise.all([import("@mantine/spotlight"), loadSpotlightHandle()]).then(([{ Spotlight }, handle]) => {
|
|
42
|
+
if (handle === void 0) return { default: NullFallback };
|
|
43
|
+
const spotlightHandle = handle;
|
|
44
|
+
function SpotlightMountInner({
|
|
45
|
+
extraActions,
|
|
46
|
+
projectCommands = true
|
|
47
|
+
}) {
|
|
48
|
+
const commandActions = projectCommands ? toSpotlightActions((id) => {
|
|
49
|
+
spotlightHandle.actions.close();
|
|
50
|
+
void runCommand(id);
|
|
51
|
+
}) : [];
|
|
52
|
+
const actions = [...extraActions ?? [], ...commandActions];
|
|
53
|
+
return /* @__PURE__ */ jsx(
|
|
54
|
+
Spotlight,
|
|
55
|
+
{
|
|
56
|
+
store: spotlightHandle.store,
|
|
57
|
+
actions,
|
|
58
|
+
shortcut: "mod + K",
|
|
59
|
+
maxHeight: 420
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
return { default: SpotlightMountInner };
|
|
64
|
+
}).catch(() => ({ default: NullFallback }))
|
|
65
|
+
);
|
|
66
|
+
function NotificationsFallback(_props) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
const LazyNotifications = lazy(
|
|
70
|
+
() => import("@mantine/notifications").then((m) => ({ default: m.Notifications })).catch(() => ({ default: NotificationsFallback }))
|
|
71
|
+
);
|
|
72
|
+
function HotkeysMount() {
|
|
73
|
+
useCommandHotkeys();
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
function BasaltOverlays({
|
|
77
|
+
modals: enableModals = true,
|
|
78
|
+
spotlight: enableSpotlight = true,
|
|
79
|
+
notifications: enableNotifications = true,
|
|
80
|
+
hotkeys: enableHotkeys = true,
|
|
81
|
+
notificationsProps,
|
|
82
|
+
spotlightActions,
|
|
83
|
+
projectCommands = true,
|
|
84
|
+
children
|
|
85
|
+
}) {
|
|
86
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
87
|
+
enableSpotlight && /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
88
|
+
LazySpotlightMount,
|
|
89
|
+
{
|
|
90
|
+
projectCommands,
|
|
91
|
+
...spotlightActions !== void 0 && { extraActions: spotlightActions }
|
|
92
|
+
}
|
|
93
|
+
) }),
|
|
94
|
+
enableNotifications && /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
95
|
+
LazyNotifications,
|
|
96
|
+
{
|
|
97
|
+
position: "bottom-right",
|
|
98
|
+
autoClose: 4e3,
|
|
99
|
+
limit: 5,
|
|
100
|
+
...notificationsProps
|
|
101
|
+
}
|
|
102
|
+
) }),
|
|
103
|
+
enableHotkeys && /* @__PURE__ */ jsx(HotkeysMount, {}),
|
|
104
|
+
children
|
|
105
|
+
] });
|
|
106
|
+
if (enableModals) {
|
|
107
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Fragment, { children: content }), children: /* @__PURE__ */ jsx(LazyModalsProvider, { children: content }) });
|
|
108
|
+
}
|
|
109
|
+
return /* @__PURE__ */ jsx(Fragment, { children: content });
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
BasaltOverlays,
|
|
113
|
+
basaltSpotlight,
|
|
114
|
+
closeSpotlight,
|
|
115
|
+
openSpotlight
|
|
116
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* projectors — project the active command registry into Mantine Spotlight actions, a shortcut list,
|
|
3
|
+
* and a @tanstack/react-hotkeys bindings array.
|
|
4
|
+
*
|
|
5
|
+
* All functions read the runtime stash (populated by defineCommands) — they do NOT read the
|
|
6
|
+
* type-erased BasaltRegister slot. They are safe to call before any commands are registered
|
|
7
|
+
* (returns empty array).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* // In BasaltOverlays, pass toSpotlightActions() to Spotlight:
|
|
11
|
+
* <Spotlight store={basaltSpotlight[0]} actions={toSpotlightActions()} shortcut="mod + K" />
|
|
12
|
+
*
|
|
13
|
+
* // Render a shortcut reference list:
|
|
14
|
+
* const shortcuts = toShortcutList() // [{ id, label, shortcut, group? }, ...]
|
|
15
|
+
*
|
|
16
|
+
* // Opt-in: drive your own useHotkeys() call (useCommandHotkeys uses the imperative manager API instead):
|
|
17
|
+
* const bindings = toHotkeyBindings()
|
|
18
|
+
* useHotkeys(bindings)
|
|
19
|
+
*/
|
|
20
|
+
import type { SpotlightActionData } from '@mantine/spotlight';
|
|
21
|
+
import type { ReactNode } from 'react';
|
|
22
|
+
import type { CommandId } from './define-commands.js';
|
|
23
|
+
/**
|
|
24
|
+
* Shape of a single entry in the array passed to useHotkeys().
|
|
25
|
+
* Mirrors UseHotkeyDefinition from @tanstack/react-hotkeys — typed locally so
|
|
26
|
+
* projectors.ts has no hard import on the optional peer.
|
|
27
|
+
*/
|
|
28
|
+
export type HotkeyBinding = {
|
|
29
|
+
hotkey: string;
|
|
30
|
+
/**
|
|
31
|
+
* Callback invoked when the hotkey fires. Widened to match @tanstack/react-hotkeys'
|
|
32
|
+
* HotkeyCallback signature — `(event: KeyboardEvent, context?: unknown) => void` — so
|
|
33
|
+
* consumers can pass toHotkeyBindings() directly to useHotkeys() without a tsc error.
|
|
34
|
+
* The implementations produced by toHotkeyBindings() only use the zero-arg form internally.
|
|
35
|
+
*/
|
|
36
|
+
callback: (event: KeyboardEvent, context?: unknown) => void;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Project the active command registry into a Mantine Spotlight `SpotlightActionData[]` array.
|
|
40
|
+
* Commands where `when()` returns false are excluded from the list.
|
|
41
|
+
*
|
|
42
|
+
* Reads a one-time snapshot of the runtime command stash at call time — commands registered AFTER
|
|
43
|
+
* this is called (lazy/code-split) won't appear. Register all commands at module load before
|
|
44
|
+
* mounting <BasaltOverlays>.
|
|
45
|
+
*
|
|
46
|
+
* When onTrigger is provided it is called INSTEAD OF runCommand (put runCommand(id) inside your
|
|
47
|
+
* onTrigger if you want it to fire); without onTrigger, runCommand(id) fires directly.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* // Close the palette then run the command:
|
|
51
|
+
* const actions = toSpotlightActions((id) => { spotlight.close(); runCommand(id) })
|
|
52
|
+
*
|
|
53
|
+
* // Default: just runs the command directly
|
|
54
|
+
* const actions = toSpotlightActions()
|
|
55
|
+
*/
|
|
56
|
+
export declare function toSpotlightActions(onTrigger?: (id: CommandId) => void): SpotlightActionData[];
|
|
57
|
+
export type RouteActionItem = {
|
|
58
|
+
label: string;
|
|
59
|
+
href?: string;
|
|
60
|
+
icon?: ReactNode;
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
children?: RouteActionItem[];
|
|
63
|
+
};
|
|
64
|
+
export type RouteActionSection = {
|
|
65
|
+
/** Section label — the root segment of each item's breadcrumb-trail label. */
|
|
66
|
+
label: string;
|
|
67
|
+
/** Section icon — inherited as the leftSection by items/children that have no icon of their own. */
|
|
68
|
+
icon?: ReactNode;
|
|
69
|
+
items: RouteActionItem[];
|
|
70
|
+
};
|
|
71
|
+
export type ToRouteActionsOptions = {
|
|
72
|
+
/** Navigate to a route href — e.g. `(href) => router.navigate({ to: href })`. */
|
|
73
|
+
onNavigate: (href: string) => void;
|
|
74
|
+
/** Prefix for generated action ids so they never collide with command ids. Default 'route:'. */
|
|
75
|
+
idPrefix?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Spotlight group for every produced action (e.g. 'Pages'). Omit for an ungrouped, flat list.
|
|
78
|
+
* Unlike the nav section (which becomes part of the breadcrumb label), this is a single kind
|
|
79
|
+
* bucket across all routes.
|
|
80
|
+
*/
|
|
81
|
+
group?: string;
|
|
82
|
+
/** Separator between breadcrumb segments in the action label. Default ' › '. */
|
|
83
|
+
separator?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Node rendered on the right of every action — e.g. a kind badge (`<Badge>Page</Badge>`). Lets
|
|
86
|
+
* the palette distinguish pages from commands at a glance regardless of grouping.
|
|
87
|
+
*/
|
|
88
|
+
rightSection?: ReactNode;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Project a nav model (sections → items → nested children) into Mantine Spotlight
|
|
92
|
+
* page-navigation actions. Pass the result to <BasaltOverlays spotlightActions={…}> so the palette
|
|
93
|
+
* lists Pages alongside Commands.
|
|
94
|
+
*
|
|
95
|
+
* Each action's label is the full breadcrumb trail from the section down to the item
|
|
96
|
+
* (e.g. `Overview › Dashboard › Sessions`), so a result is self-describing. Disabled items and
|
|
97
|
+
* items without an href are skipped. An item/child without its own icon inherits the nearest
|
|
98
|
+
* ancestor's (section → parent item), so sub-routes carry the parent's icon in the palette while
|
|
99
|
+
* staying icon-less in a sidebar that renders them against a rail. Optionally assign one `group`
|
|
100
|
+
* (a kind bucket like 'Pages') and a `rightSection` (a kind badge) to every action. Reads a static
|
|
101
|
+
* snapshot — routes are static, so build it once.
|
|
102
|
+
*
|
|
103
|
+
* Structurally compatible with the shell's SidebarSection[] — pass your existing nav model directly.
|
|
104
|
+
*/
|
|
105
|
+
export declare function toRouteActions(sections: RouteActionSection[], options: ToRouteActionsOptions): SpotlightActionData[];
|
|
106
|
+
/** A single entry in the shortcut reference list. */
|
|
107
|
+
export type ShortcutEntry = {
|
|
108
|
+
id: string;
|
|
109
|
+
label: string;
|
|
110
|
+
shortcut: string;
|
|
111
|
+
group?: string;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Project the active command registry into a flat list of commands that have a `shortcut` field.
|
|
115
|
+
* Use this to render a shortcuts-help display (see `ShortcutsHelp`).
|
|
116
|
+
* Commands where `when()` returns false are excluded.
|
|
117
|
+
*
|
|
118
|
+
* Reads a one-time snapshot of the runtime command stash at call time — commands registered AFTER
|
|
119
|
+
* this is called (lazy/code-split) won't appear. Register all commands at module load before
|
|
120
|
+
* mounting <BasaltOverlays>.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* const shortcuts = toShortcutList()
|
|
124
|
+
* // [{ id: 'file:save', label: 'Save file', shortcut: 'Mod+S', group: 'File' }, ...]
|
|
125
|
+
*/
|
|
126
|
+
export declare function toShortcutList(): ShortcutEntry[];
|
|
127
|
+
/**
|
|
128
|
+
* Project the active command registry into a `UseHotkeyDefinition[]` bindings array — the exact
|
|
129
|
+
* shape accepted by `useHotkeys` from `@tanstack/react-hotkeys`.
|
|
130
|
+
*
|
|
131
|
+
* Commands without a `shortcut` field are skipped. Commands where `when()` returns false are
|
|
132
|
+
* included in the bindings but their callback is a no-op (the command is gated at call time, not
|
|
133
|
+
* at registration time — this avoids hook-count churn when `when()` toggles).
|
|
134
|
+
*
|
|
135
|
+
* Reads a one-time snapshot of the runtime command stash.
|
|
136
|
+
*
|
|
137
|
+
* NOTE: the built-in useCommandHotkeys() does NOT call this function. It uses the imperative
|
|
138
|
+
* getHotkeyManager() API from @tanstack/react-hotkeys directly (register/unregister per
|
|
139
|
+
* mount/unmount cycle). toHotkeyBindings() is an opt-in convenience projector for consumers
|
|
140
|
+
* who want to drive their own useHotkeys([...]) call — it is not on the path that
|
|
141
|
+
* useCommandHotkeys() takes.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* import { useHotkeys } from '@tanstack/react-hotkeys'
|
|
145
|
+
* import { toHotkeyBindings } from 'basalt-ui/commands'
|
|
146
|
+
*
|
|
147
|
+
* function MyHotkeys() {
|
|
148
|
+
* useHotkeys(toHotkeyBindings())
|
|
149
|
+
* }
|
|
150
|
+
*/
|
|
151
|
+
export declare function toHotkeyBindings(): HotkeyBinding[];
|
|
152
|
+
//# sourceMappingURL=projectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectors.d.ts","sourceRoot":"","sources":["../../src/commands/projectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAKlD;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5D,CAAA;AAID;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,KAAK,IAAI,GAAG,mBAAmB,EAAE,CA+B7F;AAID,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAA;IACb,oGAAoG;IACpG,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,KAAK,EAAE,eAAe,EAAE,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,iFAAiF;IACjF,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,gGAAgG;IAChG,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAA;CACzB,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,kBAAkB,EAAE,EAC9B,OAAO,EAAE,qBAAqB,GAC7B,mBAAmB,EAAE,CA2BvB;AAID,qDAAqD;AACrD,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAID;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,IAAI,aAAa,EAAE,CAchD;AAID;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,EAAE,CAkBlD"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { getActiveCommands, runCommand } from "./define-commands.js";
|
|
2
|
+
import { formatShortcutDisplay, detectMac } from "./shortcut-format.js";
|
|
3
|
+
function toSpotlightActions(onTrigger) {
|
|
4
|
+
const cmds = getActiveCommands();
|
|
5
|
+
const actions = [];
|
|
6
|
+
for (const [id, cmd] of Object.entries(cmds)) {
|
|
7
|
+
if (cmd.when !== void 0 && !cmd.when()) continue;
|
|
8
|
+
const action = {
|
|
9
|
+
id,
|
|
10
|
+
label: cmd.label,
|
|
11
|
+
leftSection: cmd.icon,
|
|
12
|
+
keywords: [cmd.group ?? "", id].join(" ").trim(),
|
|
13
|
+
onClick: () => {
|
|
14
|
+
if (onTrigger !== void 0) {
|
|
15
|
+
onTrigger(id);
|
|
16
|
+
} else {
|
|
17
|
+
runCommand(id);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
if (cmd.shortcut !== void 0) {
|
|
22
|
+
action.description = formatShortcutDisplay(cmd.shortcut, detectMac());
|
|
23
|
+
}
|
|
24
|
+
if (cmd.group !== void 0) action.group = cmd.group;
|
|
25
|
+
actions.push(action);
|
|
26
|
+
}
|
|
27
|
+
return actions;
|
|
28
|
+
}
|
|
29
|
+
function toRouteActions(sections, options) {
|
|
30
|
+
const { onNavigate, idPrefix = "route:", separator = " \u203A ", group, rightSection } = options;
|
|
31
|
+
const actions = [];
|
|
32
|
+
const walk = (items, trail, inheritedIcon) => {
|
|
33
|
+
for (const item of items) {
|
|
34
|
+
const itemTrail = [...trail, item.label];
|
|
35
|
+
const icon = item.icon ?? inheritedIcon;
|
|
36
|
+
if (!item.disabled && item.href !== void 0) {
|
|
37
|
+
const href = item.href;
|
|
38
|
+
const action = {
|
|
39
|
+
id: `${idPrefix}${href}`,
|
|
40
|
+
label: itemTrail.join(separator),
|
|
41
|
+
leftSection: icon,
|
|
42
|
+
keywords: [...itemTrail, href].join(" "),
|
|
43
|
+
onClick: () => onNavigate(href)
|
|
44
|
+
};
|
|
45
|
+
if (group !== void 0) action.group = group;
|
|
46
|
+
if (rightSection !== void 0) action.rightSection = rightSection;
|
|
47
|
+
actions.push(action);
|
|
48
|
+
}
|
|
49
|
+
if (item.children !== void 0) walk(item.children, itemTrail, icon);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
for (const section of sections) walk(section.items, [section.label], section.icon);
|
|
53
|
+
return actions;
|
|
54
|
+
}
|
|
55
|
+
function toShortcutList() {
|
|
56
|
+
const cmds = getActiveCommands();
|
|
57
|
+
const result = [];
|
|
58
|
+
for (const [id, cmd] of Object.entries(cmds)) {
|
|
59
|
+
if (cmd.shortcut === void 0) continue;
|
|
60
|
+
if (cmd.when !== void 0 && !cmd.when()) continue;
|
|
61
|
+
const entry = { id, label: cmd.label, shortcut: cmd.shortcut };
|
|
62
|
+
if (cmd.group !== void 0) entry.group = cmd.group;
|
|
63
|
+
result.push(entry);
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
function toHotkeyBindings() {
|
|
68
|
+
const cmds = getActiveCommands();
|
|
69
|
+
const bindings = [];
|
|
70
|
+
for (const [id, cmd] of Object.entries(cmds)) {
|
|
71
|
+
if (cmd.shortcut === void 0) continue;
|
|
72
|
+
bindings.push({
|
|
73
|
+
hotkey: cmd.shortcut,
|
|
74
|
+
callback: () => {
|
|
75
|
+
if (cmd.when !== void 0 && !cmd.when()) return;
|
|
76
|
+
void runCommand(id);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return bindings;
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
toHotkeyBindings,
|
|
84
|
+
toRouteActions,
|
|
85
|
+
toShortcutList,
|
|
86
|
+
toSpotlightActions
|
|
87
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* shortcut-format — platform-aware shortcut string parsing and display formatting.
|
|
3
|
+
*
|
|
4
|
+
* Extracted from ShortcutsHelp.tsx so projectors and other modules can share the logic.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* // Kbd tokens for ShortcutsHelp rows:
|
|
8
|
+
* parseShortcut('Mod+S', true) // ['⌘', 'S']
|
|
9
|
+
* parseShortcut('Mod+S', false) // ['Ctrl', 'S']
|
|
10
|
+
*
|
|
11
|
+
* // Single display string for Spotlight description:
|
|
12
|
+
* formatShortcutDisplay('Mod+S', true) // '⌘ S' on mac
|
|
13
|
+
* formatShortcutDisplay('Mod+S', false) // 'Ctrl+S' on windows
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Returns true when running on macOS. SSR-safe — returns false when navigator is unavailable.
|
|
17
|
+
* Uses userAgentData.platform when available; falls back to userAgent string regex.
|
|
18
|
+
* Never call during render — use only inside useEffect to avoid hydration mismatches.
|
|
19
|
+
*/
|
|
20
|
+
export declare function detectMac(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Convert a shortcut string to a list of Kbd-friendly tokens.
|
|
23
|
+
* 'Mod+S' → ['⌘', 'S'] (mac) or ['Ctrl', 'S'] (other).
|
|
24
|
+
* 'Shift+Mod+P' → ['⇧', '⌘', 'P'] (mac) or ['Shift', 'Ctrl', 'P'] (other).
|
|
25
|
+
* isMac is the post-mount platform flag; defaults false on SSR / first render.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* parseShortcut('Mod+S', true) // ['⌘', 'S']
|
|
29
|
+
* parseShortcut('Shift+Mod+P', false) // ['Shift', 'Ctrl', 'P']
|
|
30
|
+
*/
|
|
31
|
+
export declare function parseShortcut(shortcut: string, isMac: boolean): string[];
|
|
32
|
+
/**
|
|
33
|
+
* Format a shortcut string for inline display (e.g. Spotlight action description).
|
|
34
|
+
* Returns a compact string like '⌘ S' (mac) or 'Ctrl+S' (windows).
|
|
35
|
+
*
|
|
36
|
+
* isMac is the post-mount platform flag. Pass false on SSR / first client render.
|
|
37
|
+
*
|
|
38
|
+
* Note: @tanstack/hotkeys also exports `formatForDisplay` which produces equivalent output
|
|
39
|
+
* with richer symbol handling. That function requires the optional peer; this utility is
|
|
40
|
+
* always-on and produces the same tokens via parseShortcut.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* formatShortcutDisplay('Mod+S', true) // '⌘ S'
|
|
44
|
+
* formatShortcutDisplay('Mod+S', false) // 'Ctrl+S'
|
|
45
|
+
* formatShortcutDisplay('Shift+Mod+P', true) // '⇧ ⌘ P'
|
|
46
|
+
*/
|
|
47
|
+
export declare function formatShortcutDisplay(shortcut: string, isMac: boolean): string;
|
|
48
|
+
//# sourceMappingURL=shortcut-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut-format.d.ts","sourceRoot":"","sources":["../../src/commands/shortcut-format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAMnC;AAID;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAiBxE;AAID;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAI9E"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
function detectMac() {
|
|
2
|
+
if (typeof navigator === "undefined") return false;
|
|
3
|
+
const uadPlatform = navigator.userAgentData?.platform;
|
|
4
|
+
if (uadPlatform !== void 0) return /mac|iphone|ipad/i.test(uadPlatform);
|
|
5
|
+
return /Mac|iPhone|iPad/.test(navigator.userAgent);
|
|
6
|
+
}
|
|
7
|
+
function parseShortcut(shortcut, isMac) {
|
|
8
|
+
return shortcut.split("+").map((key) => {
|
|
9
|
+
switch (key.toLowerCase()) {
|
|
10
|
+
case "mod":
|
|
11
|
+
return isMac ? "\u2318" : "Ctrl";
|
|
12
|
+
case "shift":
|
|
13
|
+
return isMac ? "\u21E7" : "Shift";
|
|
14
|
+
case "alt":
|
|
15
|
+
return isMac ? "\u2325" : "Alt";
|
|
16
|
+
case "meta":
|
|
17
|
+
return isMac ? "\u2318" : "Meta";
|
|
18
|
+
case "ctrl":
|
|
19
|
+
return isMac ? "^" : "Ctrl";
|
|
20
|
+
default:
|
|
21
|
+
return key.toUpperCase();
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function formatShortcutDisplay(shortcut, isMac) {
|
|
26
|
+
const tokens = parseShortcut(shortcut, isMac);
|
|
27
|
+
return isMac ? tokens.join(" ") : tokens.join("+");
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
detectMac,
|
|
31
|
+
formatShortcutDisplay,
|
|
32
|
+
parseShortcut
|
|
33
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the active command registry and binds each command's `shortcut` to its `run()` via
|
|
3
|
+
* the @tanstack/react-hotkeys HotkeyManager singleton. Degrades to a no-op when the optional
|
|
4
|
+
* peer is absent.
|
|
5
|
+
*
|
|
6
|
+
* Registers on mount, unregisters on unmount. Re-runs whenever the effect deps change.
|
|
7
|
+
* Commands without a shortcut are skipped. Commands where `when()` returns false at press time
|
|
8
|
+
* are silently skipped (the binding stays registered; the when-gate fires in the callback).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* useCommandHotkeys()
|
|
12
|
+
*/
|
|
13
|
+
export declare function useCommandHotkeys(): void;
|
|
14
|
+
//# sourceMappingURL=useCommandHotkeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCommandHotkeys.d.ts","sourceRoot":"","sources":["../../src/commands/useCommandHotkeys.ts"],"names":[],"mappings":"AAqDA;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAgDxC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { getActiveCommands } from "./define-commands.js";
|
|
3
|
+
function useCommandHotkeys() {
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
let handles = [];
|
|
6
|
+
let cancelled = false;
|
|
7
|
+
const bind = async () => {
|
|
8
|
+
let peer;
|
|
9
|
+
try {
|
|
10
|
+
peer = await import("@tanstack/react-hotkeys");
|
|
11
|
+
} catch {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (cancelled) return;
|
|
15
|
+
if (typeof peer.getHotkeyManager !== "function") return;
|
|
16
|
+
const manager = peer.getHotkeyManager();
|
|
17
|
+
const cmds = getActiveCommands();
|
|
18
|
+
for (const [, cmd] of Object.entries(cmds)) {
|
|
19
|
+
if (cmd.shortcut === void 0) continue;
|
|
20
|
+
const handle = manager.register(
|
|
21
|
+
cmd.shortcut,
|
|
22
|
+
(event) => {
|
|
23
|
+
if (cmd.when !== void 0 && !cmd.when()) return;
|
|
24
|
+
event.preventDefault();
|
|
25
|
+
void cmd.run();
|
|
26
|
+
},
|
|
27
|
+
// preventDefault: false — we handle it manually above, gated on when()
|
|
28
|
+
{ preventDefault: false }
|
|
29
|
+
);
|
|
30
|
+
handles.push(handle);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
void bind();
|
|
34
|
+
return () => {
|
|
35
|
+
cancelled = true;
|
|
36
|
+
for (const handle of handles) {
|
|
37
|
+
handle.unregister();
|
|
38
|
+
}
|
|
39
|
+
handles = [];
|
|
40
|
+
};
|
|
41
|
+
}, []);
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
useCommandHotkeys
|
|
45
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ConnectivityIndicator — clickable wifi icon that opens a per-signal detail popover.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* <BasaltShell globalActions={<ConnectivityIndicator />} {...rest} />
|
|
6
|
+
*/
|
|
7
|
+
export declare function ConnectivityIndicator(): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=connectivity-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectivity-indicator.d.ts","sourceRoot":"","sources":["../../src/connectivity/connectivity-indicator.tsx"],"names":[],"mappings":"AA0KA;;;;;GAKG;AACH,wBAAgB,qBAAqB,gCAwEpC"}
|