SDK & UI reference
Public surface of the shared frontend libs. @kubuno/sdk provides registries, stores, hooks and i18n; @kubuno/ui provides the visual primitives.
@kubuno/sdk — registries #
| Registry | Usage |
|---|---|
RouteRegistry | Declare the module's routes (lazy components). |
SlotRegistry | Inject a component into a named slot (e.g. app-dialogs). |
ExtensionRegistry | Extend an extension point exposed by another module. |
WidgetRegistry | Add a widget to the dashboard. |
ModuleServiceRegistry | Publish / consume a cross-module contract. |
FileTypeRegistry | Map a file type to an icon and a handler. |
WaffleAppRegistry · FaviconRegistry | App launcher · per-module favicon. |
@kubuno/sdk — stores & hooks #
Zustand stores: useAuthStore, useModulesStore, useSidebarStore, useToolbarStore, useSearchStore, useNotificationStore, useThemeStore, useUiStore, useRightPanelStore, useWsStore…
Hooks & utils: useConfirm, useContextMenu, prompt(), applyDir(), LANGUAGES, and the SDK_VERSION compatibility constant.
@kubuno/ui — components #
Controls: Button, Input, Textarea, NumberInput, Checkbox, Radio, Toggle, Dropdown, DatePicker, Tabs, FontPicker.
Content & color: RichText, ColorPicker, ColorField, GradientPicker.
Surfaces & display: MenuDropdown, AnchoredPopover, FloatingWindow, Badge, Spinner, Separator, KubunoLogo, ConfirmDialog, ConflictDialog.
This showcase site faithfully reproduces two of these primitives (Button and MenuDropdown) to stay consistent with the application.