@databricks/appkit-ui 0.12.0 → 0.12.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/CLAUDE.md +155 -147
- package/dist/cli/commands/docs.js +80 -17
- package/dist/cli/commands/docs.js.map +1 -1
- package/dist/react/charts/area/index.d.ts +2 -2
- package/dist/react/charts/bar/index.d.ts +2 -2
- package/dist/react/charts/base.d.ts +2 -2
- package/dist/react/charts/base.d.ts.map +1 -1
- package/dist/react/charts/create-chart.d.ts +2 -2
- package/dist/react/charts/create-chart.d.ts.map +1 -1
- package/dist/react/charts/heatmap/index.d.ts +2 -2
- package/dist/react/charts/line/index.d.ts +2 -2
- package/dist/react/charts/pie/index.d.ts +3 -3
- package/dist/react/charts/radar/index.d.ts +2 -2
- package/dist/react/charts/scatter/index.d.ts +2 -2
- package/dist/react/charts/wrapper.d.ts +2 -2
- package/dist/react/charts/wrapper.d.ts.map +1 -1
- package/dist/react/table/data-table.d.ts +2 -2
- package/dist/react/table/data-table.d.ts.map +1 -1
- package/dist/react/ui/accordion.d.ts +5 -5
- package/dist/react/ui/accordion.d.ts.map +1 -1
- package/dist/react/ui/alert-dialog.d.ts +12 -12
- package/dist/react/ui/alert.d.ts +4 -4
- package/dist/react/ui/alert.d.ts.map +1 -1
- package/dist/react/ui/aspect-ratio.d.ts +2 -2
- package/dist/react/ui/avatar.d.ts +4 -4
- package/dist/react/ui/badge.d.ts +2 -2
- package/dist/react/ui/breadcrumb.d.ts +8 -8
- package/dist/react/ui/button-group.d.ts +4 -4
- package/dist/react/ui/button.d.ts +2 -2
- package/dist/react/ui/calendar.d.ts +3 -3
- package/dist/react/ui/card.d.ts +8 -8
- package/dist/react/ui/carousel.d.ts +6 -6
- package/dist/react/ui/chart.d.ts +19 -19
- package/dist/react/ui/chart.d.ts.map +1 -1
- package/dist/react/ui/checkbox.d.ts +2 -2
- package/dist/react/ui/collapsible.d.ts +4 -4
- package/dist/react/ui/command.d.ts +10 -10
- package/dist/react/ui/context-menu.d.ts +16 -16
- package/dist/react/ui/dialog.d.ts +11 -11
- package/dist/react/ui/drawer.d.ts +11 -11
- package/dist/react/ui/drawer.d.ts.map +1 -1
- package/dist/react/ui/dropdown-menu.d.ts +16 -16
- package/dist/react/ui/empty.d.ts +7 -7
- package/dist/react/ui/field.d.ts +11 -11
- package/dist/react/ui/form.d.ts +9 -9
- package/dist/react/ui/form.d.ts.map +1 -1
- package/dist/react/ui/hover-card.d.ts +4 -4
- package/dist/react/ui/input-group.d.ts +7 -7
- package/dist/react/ui/input-otp.d.ts +5 -5
- package/dist/react/ui/input.d.ts +2 -2
- package/dist/react/ui/item.d.ts +11 -11
- package/dist/react/ui/kbd.d.ts +3 -3
- package/dist/react/ui/label.d.ts +2 -2
- package/dist/react/ui/menubar.d.ts +17 -17
- package/dist/react/ui/navigation-menu.d.ts +9 -9
- package/dist/react/ui/pagination.d.ts +8 -8
- package/dist/react/ui/popover.d.ts +5 -5
- package/dist/react/ui/progress.d.ts +2 -2
- package/dist/react/ui/radio-group.d.ts +3 -3
- package/dist/react/ui/resizable.d.ts +4 -4
- package/dist/react/ui/scroll-area.d.ts +3 -3
- package/dist/react/ui/select.d.ts +11 -11
- package/dist/react/ui/separator.d.ts +2 -2
- package/dist/react/ui/sheet.d.ts +9 -9
- package/dist/react/ui/sidebar.d.ts +41 -24
- package/dist/react/ui/sidebar.d.ts.map +1 -1
- package/dist/react/ui/sidebar.js.map +1 -1
- package/dist/react/ui/skeleton.d.ts +2 -2
- package/dist/react/ui/slider.d.ts +2 -2
- package/dist/react/ui/sonner.d.ts +2 -2
- package/dist/react/ui/spinner.d.ts +2 -2
- package/dist/react/ui/switch.d.ts +2 -2
- package/dist/react/ui/table.d.ts +9 -9
- package/dist/react/ui/tabs.d.ts +5 -5
- package/dist/react/ui/textarea.d.ts +2 -2
- package/dist/react/ui/toggle-group.d.ts +3 -3
- package/dist/react/ui/toggle.d.ts +2 -2
- package/dist/react/ui/tooltip.d.ts +5 -5
- package/dist/react/ui/tooltip.d.ts.map +1 -1
- package/docs/{docs/api → api}/appkit/Class.AppKitError.md +8 -8
- package/docs/{docs/api → api}/appkit/Class.AuthenticationError.md +9 -9
- package/docs/{docs/api → api}/appkit/Class.ConfigurationError.md +9 -9
- package/docs/{docs/api → api}/appkit/Class.ConnectionError.md +9 -9
- package/docs/{docs/api → api}/appkit/Class.ExecutionError.md +9 -9
- package/docs/{docs/api → api}/appkit/Class.InitializationError.md +9 -9
- package/docs/{docs/api → api}/appkit/Class.Plugin.md +22 -2
- package/docs/{docs/api → api}/appkit/Class.ResourceRegistry.md +11 -11
- package/docs/{docs/api → api}/appkit/Class.ServerError.md +9 -9
- package/docs/{docs/api → api}/appkit/Class.TunnelError.md +9 -9
- package/docs/{docs/api → api}/appkit/Class.ValidationError.md +9 -9
- package/docs/{docs/api → api}/appkit/Function.createApp.md +32 -3
- package/docs/{docs/api → api}/appkit/Function.createLakebasePool.md +1 -1
- package/docs/{docs/api → api}/appkit/Function.generateDatabaseCredential.md +2 -2
- package/docs/{docs/api → api}/appkit/Function.getLakebaseOrmConfig.md +1 -1
- package/docs/{docs/api → api}/appkit/Function.getLakebasePgConfig.md +1 -1
- package/docs/{docs/api → api}/appkit/Function.getPluginManifest.md +1 -1
- package/docs/{docs/api → api}/appkit/Function.getUsernameWithApiLookup.md +1 -1
- package/docs/{docs/api → api}/appkit/Function.getWorkspaceClient.md +1 -1
- package/docs/{docs/api → api}/appkit/Interface.ResourceEntry.md +8 -8
- package/docs/{docs/api → api}/appkit/Interface.ResourceRequirement.md +1 -1
- package/docs/{docs/api → api}/appkit-ui/styling.md +1 -1
- package/docs/{docs/api → api}/appkit-ui/ui/Sidebar.md +304 -37
- package/docs/api/appkit.md +78 -0
- package/docs/{docs/api.md → api.md} +4 -4
- package/docs/{docs/app-management.md → app-management.md} +2 -2
- package/docs/{docs/architecture.md → architecture.md} +6 -6
- package/docs/{docs/configuration.md → configuration.md} +2 -2
- package/docs/development/ai-assisted-development.md +88 -0
- package/docs/{docs/development → development}/llm-guide.md +8 -7
- package/docs/{docs/development → development}/local-development.md +2 -2
- package/docs/{docs/development → development}/project-setup.md +11 -11
- package/docs/{docs/development → development}/remote-bridge.md +1 -1
- package/docs/{docs/development → development}/type-generation.md +2 -2
- package/docs/development.md +22 -0
- package/docs/plugins/analytics.md +169 -0
- package/docs/{docs/plugins → plugins}/custom-plugins.md +6 -6
- package/docs/{docs/plugins → plugins}/server.md +1 -1
- package/docs/{docs/plugins.md → plugins.md} +2 -2
- package/{docs/docs.md → docs.md} +36 -5
- package/llms.txt +155 -147
- package/package.json +2 -1
- package/docs/docs/api/appkit/Class.AppKitError/index.html +0 -79
- package/docs/docs/api/appkit/Class.AuthenticationError/index.html +0 -110
- package/docs/docs/api/appkit/Class.ConfigurationError/index.html +0 -112
- package/docs/docs/api/appkit/Class.ConnectionError/index.html +0 -120
- package/docs/docs/api/appkit/Class.ExecutionError/index.html +0 -116
- package/docs/docs/api/appkit/Class.InitializationError/index.html +0 -104
- package/docs/docs/api/appkit/Class.Plugin/index.html +0 -168
- package/docs/docs/api/appkit/Class.ResourceRegistry/index.html +0 -150
- package/docs/docs/api/appkit/Class.ServerError/index.html +0 -108
- package/docs/docs/api/appkit/Class.TunnelError/index.html +0 -108
- package/docs/docs/api/appkit/Class.ValidationError/index.html +0 -106
- package/docs/docs/api/appkit/Enumeration.RequestedClaimsPermissionSet/index.html +0 -21
- package/docs/docs/api/appkit/Enumeration.ResourceType/index.html +0 -53
- package/docs/docs/api/appkit/Function.appKitTypesPlugin/index.html +0 -24
- package/docs/docs/api/appkit/Function.createApp/index.html +0 -24
- package/docs/docs/api/appkit/Function.createLakebasePool/index.html +0 -24
- package/docs/docs/api/appkit/Function.generateDatabaseCredential/index.html +0 -30
- package/docs/docs/api/appkit/Function.getExecutionContext/index.html +0 -26
- package/docs/docs/api/appkit/Function.getLakebaseOrmConfig/index.html +0 -39
- package/docs/docs/api/appkit/Function.getLakebasePgConfig/index.html +0 -27
- package/docs/docs/api/appkit/Function.getPluginManifest/index.html +0 -26
- package/docs/docs/api/appkit/Function.getResourceRequirements/index.html +0 -28
- package/docs/docs/api/appkit/Function.getUsernameWithApiLookup/index.html +0 -35
- package/docs/docs/api/appkit/Function.getWorkspaceClient/index.html +0 -22
- package/docs/docs/api/appkit/Function.isSQLTypeMarker/index.html +0 -25
- package/docs/docs/api/appkit/Interface.BasePluginConfig/index.html +0 -28
- package/docs/docs/api/appkit/Interface.CacheConfig/index.html +0 -63
- package/docs/docs/api/appkit/Interface.DatabaseCredential/index.html +0 -28
- package/docs/docs/api/appkit/Interface.GenerateDatabaseCredentialRequest/index.html +0 -32
- package/docs/docs/api/appkit/Interface.ITelemetry/index.html +0 -73
- package/docs/docs/api/appkit/Interface.LakebasePoolConfig/index.html +0 -75
- package/docs/docs/api/appkit/Interface.PluginManifest/index.html +0 -67
- package/docs/docs/api/appkit/Interface.RequestedClaims/index.html +0 -26
- package/docs/docs/api/appkit/Interface.RequestedResource/index.html +0 -27
- package/docs/docs/api/appkit/Interface.ResourceEntry/index.html +0 -83
- package/docs/docs/api/appkit/Interface.ResourceFieldEntry/index.html +0 -26
- package/docs/docs/api/appkit/Interface.ResourceRequirement/index.html +0 -51
- package/docs/docs/api/appkit/Interface.StreamExecutionSettings/index.html +0 -26
- package/docs/docs/api/appkit/Interface.TelemetryConfig/index.html +0 -32
- package/docs/docs/api/appkit/Interface.ValidationResult/index.html +0 -29
- package/docs/docs/api/appkit/TypeAlias.ConfigSchema/index.html +0 -21
- package/docs/docs/api/appkit/TypeAlias.IAppRouter/index.html +0 -18
- package/docs/docs/api/appkit/TypeAlias.ResourcePermission/index.html +0 -18
- package/docs/docs/api/appkit/TypeAlias.ToPlugin/index.html +0 -23
- package/docs/docs/api/appkit/Variable.sql/index.html +0 -98
- package/docs/docs/api/appkit/index.html +0 -30
- package/docs/docs/api/appkit-ui/data/AreaChart/index.html +0 -29
- package/docs/docs/api/appkit-ui/data/BarChart/index.html +0 -29
- package/docs/docs/api/appkit-ui/data/DataTable/index.html +0 -36
- package/docs/docs/api/appkit-ui/data/DonutChart/index.html +0 -29
- package/docs/docs/api/appkit-ui/data/HeatmapChart/index.html +0 -35
- package/docs/docs/api/appkit-ui/data/LineChart/index.html +0 -29
- package/docs/docs/api/appkit-ui/data/PieChart/index.html +0 -29
- package/docs/docs/api/appkit-ui/data/RadarChart/index.html +0 -29
- package/docs/docs/api/appkit-ui/data/ScatterChart/index.html +0 -29
- package/docs/docs/api/appkit-ui/genie/GenieChat/index.html +0 -26
- package/docs/docs/api/appkit-ui/genie/GenieChatInput/index.html +0 -24
- package/docs/docs/api/appkit-ui/genie/GenieChatMessage/index.html +0 -24
- package/docs/docs/api/appkit-ui/genie/GenieChatMessageList/index.html +0 -24
- package/docs/docs/api/appkit-ui/index.html +0 -23
- package/docs/docs/api/appkit-ui/styling/index.html +0 -74
- package/docs/docs/api/appkit-ui/ui/Accordion/index.html +0 -48
- package/docs/docs/api/appkit-ui/ui/Alert/index.html +0 -41
- package/docs/docs/api/appkit-ui/ui/AlertDialog/index.html +0 -97
- package/docs/docs/api/appkit-ui/ui/AspectRatio/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Avatar/index.html +0 -41
- package/docs/docs/api/appkit-ui/ui/Badge/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Breadcrumb/index.html +0 -69
- package/docs/docs/api/appkit-ui/ui/Button/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/ButtonGroup/index.html +0 -38
- package/docs/docs/api/appkit-ui/ui/Calendar/index.html +0 -34
- package/docs/docs/api/appkit-ui/ui/Card/index.html +0 -69
- package/docs/docs/api/appkit-ui/ui/Carousel/index.html +0 -55
- package/docs/docs/api/appkit-ui/ui/ChartContainer/index.html +0 -58
- package/docs/docs/api/appkit-ui/ui/Checkbox/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Collapsible/index.html +0 -41
- package/docs/docs/api/appkit-ui/ui/Command/index.html +0 -83
- package/docs/docs/api/appkit-ui/ui/ContextMenu/index.html +0 -111
- package/docs/docs/api/appkit-ui/ui/Dialog/index.html +0 -90
- package/docs/docs/api/appkit-ui/ui/Drawer/index.html +0 -90
- package/docs/docs/api/appkit-ui/ui/DropdownMenu/index.html +0 -111
- package/docs/docs/api/appkit-ui/ui/Empty/index.html +0 -54
- package/docs/docs/api/appkit-ui/ui/Field/index.html +0 -87
- package/docs/docs/api/appkit-ui/ui/FormControl/index.html +0 -59
- package/docs/docs/api/appkit-ui/ui/HoverCard/index.html +0 -39
- package/docs/docs/api/appkit-ui/ui/Input/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/InputGroup/index.html +0 -59
- package/docs/docs/api/appkit-ui/ui/InputOTP/index.html +0 -48
- package/docs/docs/api/appkit-ui/ui/Item/index.html +0 -78
- package/docs/docs/api/appkit-ui/ui/Kbd/index.html +0 -30
- package/docs/docs/api/appkit-ui/ui/Label/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Menubar/index.html +0 -117
- package/docs/docs/api/appkit-ui/ui/NavigationMenu/index.html +0 -76
- package/docs/docs/api/appkit-ui/ui/Pagination/index.html +0 -69
- package/docs/docs/api/appkit-ui/ui/Popover/index.html +0 -45
- package/docs/docs/api/appkit-ui/ui/Progress/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/RadioGroup/index.html +0 -33
- package/docs/docs/api/appkit-ui/ui/ResizableHandle/index.html +0 -41
- package/docs/docs/api/appkit-ui/ui/ScrollArea/index.html +0 -34
- package/docs/docs/api/appkit-ui/ui/Select/index.html +0 -82
- package/docs/docs/api/appkit-ui/ui/Separator/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Sheet/index.html +0 -76
- package/docs/docs/api/appkit-ui/ui/Sidebar/index.html +0 -183
- package/docs/docs/api/appkit-ui/ui/Skeleton/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Slider/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Spinner/index.html +0 -24
- package/docs/docs/api/appkit-ui/ui/Switch/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Table/index.html +0 -69
- package/docs/docs/api/appkit-ui/ui/Tabs/index.html +0 -48
- package/docs/docs/api/appkit-ui/ui/Textarea/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Toaster/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/Toggle/index.html +0 -27
- package/docs/docs/api/appkit-ui/ui/ToggleGroup/index.html +0 -33
- package/docs/docs/api/appkit-ui/ui/Tooltip/index.html +0 -46
- package/docs/docs/api/appkit.md +0 -78
- package/docs/docs/api/index.html +0 -28
- package/docs/docs/app-management/index.html +0 -106
- package/docs/docs/architecture/index.html +0 -71
- package/docs/docs/category/development/index.html +0 -16
- package/docs/docs/category/development.md +0 -3
- package/docs/docs/configuration/index.html +0 -66
- package/docs/docs/core-principles/index.html +0 -38
- package/docs/docs/development/ai-assisted-development/index.html +0 -33
- package/docs/docs/development/ai-assisted-development.md +0 -26
- package/docs/docs/development/index.html +0 -35
- package/docs/docs/development/llm-guide/index.html +0 -84
- package/docs/docs/development/local-development/index.html +0 -27
- package/docs/docs/development/project-setup/index.html +0 -69
- package/docs/docs/development/remote-bridge/index.html +0 -76
- package/docs/docs/development/type-generation/index.html +0 -65
- package/docs/docs/development.md +0 -22
- package/docs/docs/index.html +0 -58
- package/docs/docs/plugins/analytics/index.html +0 -53
- package/docs/docs/plugins/analytics.md +0 -66
- package/docs/docs/plugins/caching/index.html +0 -23
- package/docs/docs/plugins/custom-plugins/index.html +0 -49
- package/docs/docs/plugins/execution-context/index.html +0 -40
- package/docs/docs/plugins/index.html +0 -29
- package/docs/docs/plugins/lakebase/index.html +0 -62
- package/docs/docs/plugins/plugin-management/index.html +0 -44
- package/docs/docs/plugins/server/index.html +0 -45
- /package/docs/{docs/api → api}/appkit/Enumeration.RequestedClaimsPermissionSet.md +0 -0
- /package/docs/{docs/api → api}/appkit/Enumeration.ResourceType.md +0 -0
- /package/docs/{docs/api → api}/appkit/Function.appKitTypesPlugin.md +0 -0
- /package/docs/{docs/api → api}/appkit/Function.getExecutionContext.md +0 -0
- /package/docs/{docs/api → api}/appkit/Function.getResourceRequirements.md +0 -0
- /package/docs/{docs/api → api}/appkit/Function.isSQLTypeMarker.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.BasePluginConfig.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.CacheConfig.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.DatabaseCredential.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.GenerateDatabaseCredentialRequest.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.ITelemetry.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.LakebasePoolConfig.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.PluginManifest.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.RequestedClaims.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.RequestedResource.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.ResourceFieldEntry.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.StreamExecutionSettings.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.TelemetryConfig.md +0 -0
- /package/docs/{docs/api → api}/appkit/Interface.ValidationResult.md +0 -0
- /package/docs/{docs/api → api}/appkit/TypeAlias.ConfigSchema.md +0 -0
- /package/docs/{docs/api → api}/appkit/TypeAlias.IAppRouter.md +0 -0
- /package/docs/{docs/api → api}/appkit/TypeAlias.ResourcePermission.md +0 -0
- /package/docs/{docs/api → api}/appkit/TypeAlias.ToPlugin.md +0 -0
- /package/docs/{docs/api → api}/appkit/Variable.sql.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/data/AreaChart.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/data/BarChart.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/data/DataTable.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/data/DonutChart.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/data/HeatmapChart.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/data/LineChart.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/data/PieChart.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/data/RadarChart.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/data/ScatterChart.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/genie/GenieChat.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/genie/GenieChatInput.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/genie/GenieChatMessage.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/genie/GenieChatMessageList.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Accordion.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Alert.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/AlertDialog.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/AspectRatio.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Avatar.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Badge.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Breadcrumb.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Button.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/ButtonGroup.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Calendar.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Card.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Carousel.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/ChartContainer.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Checkbox.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Collapsible.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Command.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/ContextMenu.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Dialog.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Drawer.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/DropdownMenu.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Empty.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Field.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/FormControl.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/HoverCard.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Input.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/InputGroup.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/InputOTP.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Item.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Kbd.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Label.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Menubar.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/NavigationMenu.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Pagination.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Popover.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Progress.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/RadioGroup.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/ResizableHandle.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/ScrollArea.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Select.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Separator.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Sheet.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Skeleton.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Slider.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Spinner.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Switch.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Table.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Tabs.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Textarea.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Toaster.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Toggle.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/ToggleGroup.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui/ui/Tooltip.md +0 -0
- /package/docs/{docs/api → api}/appkit-ui.md +0 -0
- /package/docs/{docs/core-principles.md → core-principles.md} +0 -0
- /package/docs/{docs/plugins → plugins}/caching.md +0 -0
- /package/docs/{docs/plugins → plugins}/execution-context.md +0 -0
- /package/docs/{docs/plugins → plugins}/lakebase.md +0 -0
- /package/docs/{docs/plugins → plugins}/plugin-management.md +0 -0
|
@@ -4,7 +4,7 @@ Internal representation of a resource in the registry. Extends ResourceRequireme
|
|
|
4
4
|
|
|
5
5
|
## Extends[](#extends "Direct link to Extends")
|
|
6
6
|
|
|
7
|
-
* [`ResourceRequirement`](
|
|
7
|
+
* [`ResourceRequirement`](./docs/api/appkit/Interface.ResourceRequirement.md)
|
|
8
8
|
|
|
9
9
|
## Properties[](#properties "Direct link to Properties")
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ Unique alias for this resource within the plugin (e.g., 'warehouse', 'secrets').
|
|
|
19
19
|
|
|
20
20
|
#### Inherited from[](#inherited-from "Direct link to Inherited from")
|
|
21
21
|
|
|
22
|
-
[`ResourceRequirement`](
|
|
22
|
+
[`ResourceRequirement`](./docs/api/appkit/Interface.ResourceRequirement.md).[`alias`](./docs/api/appkit/Interface.ResourceRequirement.md#alias)
|
|
23
23
|
|
|
24
24
|
***
|
|
25
25
|
|
|
@@ -34,7 +34,7 @@ Human-readable description of why this resource is needed
|
|
|
34
34
|
|
|
35
35
|
#### Inherited from[](#inherited-from-1 "Direct link to Inherited from")
|
|
36
36
|
|
|
37
|
-
[`ResourceRequirement`](
|
|
37
|
+
[`ResourceRequirement`](./docs/api/appkit/Interface.ResourceRequirement.md).[`description`](./docs/api/appkit/Interface.ResourceRequirement.md#description)
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -49,7 +49,7 @@ Map of field name to env and optional description. Single-value types use one ke
|
|
|
49
49
|
|
|
50
50
|
#### Inherited from[](#inherited-from-2 "Direct link to Inherited from")
|
|
51
51
|
|
|
52
|
-
[`ResourceRequirement`](
|
|
52
|
+
[`ResourceRequirement`](./docs/api/appkit/Interface.ResourceRequirement.md).[`fields`](./docs/api/appkit/Interface.ResourceRequirement.md#fields)
|
|
53
53
|
|
|
54
54
|
***
|
|
55
55
|
|
|
@@ -64,7 +64,7 @@ Required permission level for the resource
|
|
|
64
64
|
|
|
65
65
|
#### Inherited from[](#inherited-from-3 "Direct link to Inherited from")
|
|
66
66
|
|
|
67
|
-
[`ResourceRequirement`](
|
|
67
|
+
[`ResourceRequirement`](./docs/api/appkit/Interface.ResourceRequirement.md).[`permission`](./docs/api/appkit/Interface.ResourceRequirement.md#permission)
|
|
68
68
|
|
|
69
69
|
***
|
|
70
70
|
|
|
@@ -101,7 +101,7 @@ Whether this resource is required (true) or optional (false)
|
|
|
101
101
|
|
|
102
102
|
#### Inherited from[](#inherited-from-4 "Direct link to Inherited from")
|
|
103
103
|
|
|
104
|
-
[`ResourceRequirement`](
|
|
104
|
+
[`ResourceRequirement`](./docs/api/appkit/Interface.ResourceRequirement.md).[`required`](./docs/api/appkit/Interface.ResourceRequirement.md#required)
|
|
105
105
|
|
|
106
106
|
***
|
|
107
107
|
|
|
@@ -127,7 +127,7 @@ Stable key for machine use (env naming, composite keys, app.yaml). Required.
|
|
|
127
127
|
|
|
128
128
|
#### Inherited from[](#inherited-from-5 "Direct link to Inherited from")
|
|
129
129
|
|
|
130
|
-
[`ResourceRequirement`](
|
|
130
|
+
[`ResourceRequirement`](./docs/api/appkit/Interface.ResourceRequirement.md).[`resourceKey`](./docs/api/appkit/Interface.ResourceRequirement.md#resourcekey)
|
|
131
131
|
|
|
132
132
|
***
|
|
133
133
|
|
|
@@ -142,7 +142,7 @@ Type of Databricks resource required
|
|
|
142
142
|
|
|
143
143
|
#### Inherited from[](#inherited-from-6 "Direct link to Inherited from")
|
|
144
144
|
|
|
145
|
-
[`ResourceRequirement`](
|
|
145
|
+
[`ResourceRequirement`](./docs/api/appkit/Interface.ResourceRequirement.md).[`type`](./docs/api/appkit/Interface.ResourceRequirement.md#type)
|
|
146
146
|
|
|
147
147
|
***
|
|
148
148
|
|
|
@@ -4,7 +4,7 @@ Declares a resource requirement for a plugin. Can be defined statically in a man
|
|
|
4
4
|
|
|
5
5
|
## Extended by[](#extended-by "Direct link to Extended by")
|
|
6
6
|
|
|
7
|
-
* [`ResourceEntry`](
|
|
7
|
+
* [`ResourceEntry`](./docs/api/appkit/Interface.ResourceEntry.md)
|
|
8
8
|
|
|
9
9
|
## Properties[](#properties "Direct link to Properties")
|
|
10
10
|
|
|
@@ -2,6 +2,271 @@
|
|
|
2
2
|
|
|
3
3
|
Collapsible navigation sidebar with mobile support
|
|
4
4
|
|
|
5
|
+
## Example[](#example "Direct link to Example")
|
|
6
|
+
|
|
7
|
+
<!-- -->
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import {
|
|
11
|
+
Button,
|
|
12
|
+
DropdownMenu,
|
|
13
|
+
DropdownMenuContent,
|
|
14
|
+
DropdownMenuGroup,
|
|
15
|
+
DropdownMenuItem,
|
|
16
|
+
DropdownMenuTrigger,
|
|
17
|
+
Sidebar,
|
|
18
|
+
SidebarContent,
|
|
19
|
+
SidebarGroup,
|
|
20
|
+
SidebarGroupContent,
|
|
21
|
+
SidebarGroupLabel,
|
|
22
|
+
SidebarHeader,
|
|
23
|
+
SidebarInput,
|
|
24
|
+
SidebarInset,
|
|
25
|
+
SidebarMenu,
|
|
26
|
+
SidebarMenuButton,
|
|
27
|
+
SidebarMenuItem,
|
|
28
|
+
SidebarProvider,
|
|
29
|
+
SidebarRail,
|
|
30
|
+
SidebarTrigger,
|
|
31
|
+
Item,
|
|
32
|
+
ItemActions,
|
|
33
|
+
ItemContent,
|
|
34
|
+
ItemDescription,
|
|
35
|
+
ItemTitle,
|
|
36
|
+
Label,
|
|
37
|
+
} from "@databricks/appkit-ui/react"
|
|
38
|
+
import { useState } from "react"
|
|
39
|
+
|
|
40
|
+
export default function SidebarExample() {
|
|
41
|
+
const data = {
|
|
42
|
+
versions: ["1.0.1", "1.1.0-alpha", "2.0.0-beta1"],
|
|
43
|
+
navMain: [
|
|
44
|
+
{
|
|
45
|
+
title: "Getting Started",
|
|
46
|
+
url: "#",
|
|
47
|
+
items: [
|
|
48
|
+
{
|
|
49
|
+
title: "Installation",
|
|
50
|
+
url: "#",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: "Project Structure",
|
|
54
|
+
url: "#",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: "Build Your Application",
|
|
60
|
+
url: "#",
|
|
61
|
+
items: [
|
|
62
|
+
{
|
|
63
|
+
title: "Routing",
|
|
64
|
+
url: "#",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title: "Data Fetching",
|
|
68
|
+
url: "#",
|
|
69
|
+
isActive: true,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
title: "Rendering",
|
|
73
|
+
url: "#",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
title: "Caching",
|
|
77
|
+
url: "#",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
title: "Styling",
|
|
81
|
+
url: "#",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
title: "Optimizing",
|
|
85
|
+
url: "#",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: "Configuring",
|
|
89
|
+
url: "#",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
title: "Testing",
|
|
93
|
+
url: "#",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
title: "Authentication",
|
|
97
|
+
url: "#",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: "Deploying",
|
|
101
|
+
url: "#",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: "Upgrading",
|
|
105
|
+
url: "#",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
title: "Examples",
|
|
109
|
+
url: "#",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
title: "API Reference",
|
|
115
|
+
url: "#",
|
|
116
|
+
items: [
|
|
117
|
+
{
|
|
118
|
+
title: "Components",
|
|
119
|
+
url: "#",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
title: "File Conventions",
|
|
123
|
+
url: "#",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
title: "Functions",
|
|
127
|
+
url: "#",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
title: "next.config.js Options",
|
|
131
|
+
url: "#",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
title: "CLI",
|
|
135
|
+
url: "#",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
title: "Edge Runtime",
|
|
139
|
+
url: "#",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
title: "Architecture",
|
|
145
|
+
url: "#",
|
|
146
|
+
items: [
|
|
147
|
+
{
|
|
148
|
+
title: "Accessibility",
|
|
149
|
+
url: "#",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
title: "Fast Refresh",
|
|
153
|
+
url: "#",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
title: "Next.js Compiler",
|
|
157
|
+
url: "#",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
title: "Supported Browsers",
|
|
161
|
+
url: "#",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
title: "Turbopack",
|
|
165
|
+
url: "#",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
const [selectedVersion, setSelectedVersion] = useState(data.versions[0])
|
|
173
|
+
|
|
174
|
+
return (
|
|
175
|
+
<SidebarProvider>
|
|
176
|
+
<Sidebar>
|
|
177
|
+
<SidebarHeader>
|
|
178
|
+
<SidebarMenu>
|
|
179
|
+
<SidebarMenuItem>
|
|
180
|
+
<DropdownMenu>
|
|
181
|
+
<DropdownMenuTrigger asChild>
|
|
182
|
+
<SidebarMenuButton
|
|
183
|
+
size="lg"
|
|
184
|
+
className="data-open:bg-sidebar-accent data-open:text-sidebar-accent-foreground"
|
|
185
|
+
>
|
|
186
|
+
<Item className="p-0 w-full" size="sm">
|
|
187
|
+
<ItemContent>
|
|
188
|
+
<ItemTitle className="text-sm">Documentation</ItemTitle>
|
|
189
|
+
<ItemDescription>v{selectedVersion}</ItemDescription>
|
|
190
|
+
</ItemContent>
|
|
191
|
+
<ItemActions className="ml-auto">
|
|
192
|
+
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="size-4 shrink-0 opacity-50"><path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/></svg>
|
|
193
|
+
</ItemActions>
|
|
194
|
+
</Item>
|
|
195
|
+
</SidebarMenuButton>
|
|
196
|
+
</DropdownMenuTrigger>
|
|
197
|
+
<DropdownMenuContent>
|
|
198
|
+
<DropdownMenuGroup>
|
|
199
|
+
{data.versions.map((version) => (
|
|
200
|
+
<DropdownMenuItem
|
|
201
|
+
key={version}
|
|
202
|
+
onSelect={() => setSelectedVersion(version)}
|
|
203
|
+
>
|
|
204
|
+
v{version}{" "}
|
|
205
|
+
{version === selectedVersion && (
|
|
206
|
+
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="ml-auto size-4"><path d="M20 6 9 17l-5-5"/></svg>
|
|
207
|
+
)}
|
|
208
|
+
</DropdownMenuItem>
|
|
209
|
+
))}
|
|
210
|
+
</DropdownMenuGroup>
|
|
211
|
+
</DropdownMenuContent>
|
|
212
|
+
</DropdownMenu>
|
|
213
|
+
</SidebarMenuItem>
|
|
214
|
+
</SidebarMenu>
|
|
215
|
+
<form>
|
|
216
|
+
<SidebarGroup className="py-0">
|
|
217
|
+
<SidebarGroupContent className="relative">
|
|
218
|
+
<Label htmlFor="search" className="sr-only">
|
|
219
|
+
Search
|
|
220
|
+
</Label>
|
|
221
|
+
<SidebarInput
|
|
222
|
+
id="search"
|
|
223
|
+
placeholder="Search the docs..."
|
|
224
|
+
className="pl-8"
|
|
225
|
+
/>
|
|
226
|
+
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2 opacity-50 select-none"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>
|
|
227
|
+
</SidebarGroupContent>
|
|
228
|
+
</SidebarGroup>
|
|
229
|
+
</form>
|
|
230
|
+
</SidebarHeader>
|
|
231
|
+
<SidebarContent>
|
|
232
|
+
{data.navMain.map((item) => (
|
|
233
|
+
<SidebarGroup key={item.title}>
|
|
234
|
+
<SidebarGroupLabel>{item.title}</SidebarGroupLabel>
|
|
235
|
+
<SidebarGroupContent>
|
|
236
|
+
<SidebarMenu>
|
|
237
|
+
{item.items.map((subItem) => (
|
|
238
|
+
<SidebarMenuItem key={subItem.title}>
|
|
239
|
+
<SidebarMenuButton asChild isActive={subItem.isActive}>
|
|
240
|
+
<a href={subItem.url}>{subItem.title}</a>
|
|
241
|
+
</SidebarMenuButton>
|
|
242
|
+
</SidebarMenuItem>
|
|
243
|
+
))}
|
|
244
|
+
</SidebarMenu>
|
|
245
|
+
</SidebarGroupContent>
|
|
246
|
+
</SidebarGroup>
|
|
247
|
+
))}
|
|
248
|
+
</SidebarContent>
|
|
249
|
+
<SidebarRail />
|
|
250
|
+
</Sidebar>
|
|
251
|
+
<SidebarInset>
|
|
252
|
+
<header className="flex h-16 shrink-0 items-center gap-2 border-b px-4">
|
|
253
|
+
<SidebarTrigger className="-ml-1" />
|
|
254
|
+
</header>
|
|
255
|
+
<div className="flex flex-1 flex-col gap-4 p-4">
|
|
256
|
+
<div className="grid auto-rows-min gap-4 md:grid-cols-3">
|
|
257
|
+
<div className="bg-muted/50 aspect-video rounded-xl" />
|
|
258
|
+
<div className="bg-muted/50 aspect-video rounded-xl" />
|
|
259
|
+
<div className="bg-muted/50 aspect-video rounded-xl" />
|
|
260
|
+
</div>
|
|
261
|
+
<div className="bg-muted/50 min-h-[100vh] flex-1 rounded-xl md:min-h-min" />
|
|
262
|
+
</div>
|
|
263
|
+
</SidebarInset>
|
|
264
|
+
</SidebarProvider>
|
|
265
|
+
)
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
```
|
|
269
|
+
|
|
5
270
|
## Sidebar[](#sidebar-1 "Direct link to Sidebar")
|
|
6
271
|
|
|
7
272
|
Collapsible navigation sidebar with mobile support
|
|
@@ -10,11 +275,11 @@ Collapsible navigation sidebar with mobile support
|
|
|
10
275
|
|
|
11
276
|
### Props[](#props "Direct link to Props")
|
|
12
277
|
|
|
13
|
-
| Prop | Type | Required | Default | Description
|
|
14
|
-
| ------------- | ------ | -------- | ----------- |
|
|
15
|
-
| `side` | `enum` | | `left` |
|
|
16
|
-
| `variant` | `enum` | | `sidebar` |
|
|
17
|
-
| `collapsible` | `enum` | | `offcanvas` | -
|
|
278
|
+
| Prop | Type | Required | Default | Description |
|
|
279
|
+
| ------------- | ------ | -------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
280
|
+
| `side` | `enum` | | `left` | Which side of the viewport the sidebar appears on |
|
|
281
|
+
| `variant` | `enum` | | `sidebar` | Visual style: `"sidebar"` (standard with border), `"floating"` (rounded with shadow), or `"inset"` (content area gets rounded margin) |
|
|
282
|
+
| `collapsible` | `enum` | | `offcanvas` | Collapse behavior: `"offcanvas"` (slides off-screen), `"icon"` (collapses to icon width), or `"none"` (always expanded) |
|
|
18
283
|
|
|
19
284
|
### Usage[](#usage "Direct link to Usage")
|
|
20
285
|
|
|
@@ -90,9 +355,9 @@ Action button displayed next to a sidebar group label
|
|
|
90
355
|
|
|
91
356
|
### Props[](#props-4 "Direct link to Props")
|
|
92
357
|
|
|
93
|
-
| Prop | Type | Required | Default | Description
|
|
94
|
-
| --------- | --------- | -------- | ------- |
|
|
95
|
-
| `asChild` | `boolean` | | `false` |
|
|
358
|
+
| Prop | Type | Required | Default | Description |
|
|
359
|
+
| --------- | --------- | -------- | ------- | ---------------------------------------------- |
|
|
360
|
+
| `asChild` | `boolean` | | `false` | Render as child element instead of default tag |
|
|
96
361
|
|
|
97
362
|
### Usage[](#usage-4 "Direct link to Usage")
|
|
98
363
|
|
|
@@ -130,9 +395,9 @@ Label heading for a sidebar group
|
|
|
130
395
|
|
|
131
396
|
### Props[](#props-6 "Direct link to Props")
|
|
132
397
|
|
|
133
|
-
| Prop | Type | Required | Default | Description
|
|
134
|
-
| --------- | --------- | -------- | ------- |
|
|
135
|
-
| `asChild` | `boolean` | | `false` |
|
|
398
|
+
| Prop | Type | Required | Default | Description |
|
|
399
|
+
| --------- | --------- | -------- | ------- | ---------------------------------------------- |
|
|
400
|
+
| `asChild` | `boolean` | | `false` | Render as child element instead of default tag |
|
|
136
401
|
|
|
137
402
|
### Usage[](#usage-6 "Direct link to Usage")
|
|
138
403
|
|
|
@@ -227,10 +492,10 @@ Action button displayed alongside a menu item
|
|
|
227
492
|
|
|
228
493
|
### Props[](#props-11 "Direct link to Props")
|
|
229
494
|
|
|
230
|
-
| Prop | Type | Required | Default | Description
|
|
231
|
-
| ------------- | --------- | -------- | ------- |
|
|
232
|
-
| `asChild` | `boolean` | | `false` |
|
|
233
|
-
| `showOnHover` | `boolean` | | `false` |
|
|
495
|
+
| Prop | Type | Required | Default | Description |
|
|
496
|
+
| ------------- | --------- | -------- | ------- | ---------------------------------------------- |
|
|
497
|
+
| `asChild` | `boolean` | | `false` | Render as child element instead of default tag |
|
|
498
|
+
| `showOnHover` | `boolean` | | `false` | Only show when parent menu item is hovered |
|
|
234
499
|
|
|
235
500
|
### Usage[](#usage-11 "Direct link to Usage")
|
|
236
501
|
|
|
@@ -266,13 +531,13 @@ import { SidebarMenuBadge } from '@databricks/appkit-ui';
|
|
|
266
531
|
|
|
267
532
|
### Props[](#props-13 "Direct link to Props")
|
|
268
533
|
|
|
269
|
-
| Prop | Type | Required | Default | Description
|
|
270
|
-
| ---------- | ----------------------------------------------------------------- | -------- | --------- |
|
|
271
|
-
| `asChild` | `boolean` | | `false` |
|
|
272
|
-
| `isActive` | `boolean` | | `false` |
|
|
273
|
-
| `tooltip` | `string \| (TooltipContentProps & RefAttributes<HTMLDivElement>)` | | - |
|
|
274
|
-
| `variant` | `"default" \| "outline" \| null` | | `default` | -
|
|
275
|
-
| `size` | `"default" \| "sm" \| "lg" \| null` | | `default` | -
|
|
534
|
+
| Prop | Type | Required | Default | Description |
|
|
535
|
+
| ---------- | ----------------------------------------------------------------- | -------- | --------- | ---------------------------------------------------- |
|
|
536
|
+
| `asChild` | `boolean` | | `false` | Render as child element instead of default tag |
|
|
537
|
+
| `isActive` | `boolean` | | `false` | Whether this item is currently active/selected |
|
|
538
|
+
| `tooltip` | `string \| (TooltipContentProps & RefAttributes<HTMLDivElement>)` | | - | Tooltip shown when sidebar is collapsed to icon mode |
|
|
539
|
+
| `variant` | `"default" \| "outline" \| null` | | `default` | - |
|
|
540
|
+
| `size` | `"default" \| "sm" \| "lg" \| null` | | `default` | - |
|
|
276
541
|
|
|
277
542
|
### Usage[](#usage-13 "Direct link to Usage")
|
|
278
543
|
|
|
@@ -310,9 +575,9 @@ Loading skeleton placeholder for menu items
|
|
|
310
575
|
|
|
311
576
|
### Props[](#props-15 "Direct link to Props")
|
|
312
577
|
|
|
313
|
-
| Prop | Type | Required | Default | Description
|
|
314
|
-
| ---------- | --------- | -------- | ------- |
|
|
315
|
-
| `showIcon` | `boolean` | | `false` |
|
|
578
|
+
| Prop | Type | Required | Default | Description |
|
|
579
|
+
| ---------- | --------- | -------- | ------- | ------------------------------------------------------------ |
|
|
580
|
+
| `showIcon` | `boolean` | | `false` | Show a circular icon placeholder alongside the text skeleton |
|
|
316
581
|
|
|
317
582
|
### Usage[](#usage-15 "Direct link to Usage")
|
|
318
583
|
|
|
@@ -350,11 +615,11 @@ Button for submenu items
|
|
|
350
615
|
|
|
351
616
|
### Props[](#props-17 "Direct link to Props")
|
|
352
617
|
|
|
353
|
-
| Prop | Type | Required | Default | Description
|
|
354
|
-
| ---------- | --------- | -------- | ------- |
|
|
355
|
-
| `asChild` | `boolean` | | `false` |
|
|
356
|
-
| `size` | `enum` | | `md` |
|
|
357
|
-
| `isActive` | `boolean` | | `false` |
|
|
618
|
+
| Prop | Type | Required | Default | Description |
|
|
619
|
+
| ---------- | --------- | -------- | ------- | ------------------------------------------------------ |
|
|
620
|
+
| `asChild` | `boolean` | | `false` | Render as child element instead of default tag |
|
|
621
|
+
| `size` | `enum` | | `md` | Text size of the submenu button |
|
|
622
|
+
| `isActive` | `boolean` | | `false` | Whether this submenu item is currently active/selected |
|
|
358
623
|
|
|
359
624
|
### Usage[](#usage-17 "Direct link to Usage")
|
|
360
625
|
|
|
@@ -390,11 +655,11 @@ import { SidebarMenuSubItem } from '@databricks/appkit-ui';
|
|
|
390
655
|
|
|
391
656
|
### Props[](#props-19 "Direct link to Props")
|
|
392
657
|
|
|
393
|
-
| Prop | Type | Required | Default | Description
|
|
394
|
-
| -------------- | --------------------------- | -------- | ------- |
|
|
395
|
-
| `defaultOpen` | `boolean` | | `true` |
|
|
396
|
-
| `open` | `boolean` | | - |
|
|
397
|
-
| `onOpenChange` | `((open: boolean) => void)` | | - |
|
|
658
|
+
| Prop | Type | Required | Default | Description |
|
|
659
|
+
| -------------- | --------------------------- | -------- | ------- | ----------------------------------------- |
|
|
660
|
+
| `defaultOpen` | `boolean` | | `true` | Initial open state for uncontrolled usage |
|
|
661
|
+
| `open` | `boolean` | | - | Controlled open state |
|
|
662
|
+
| `onOpenChange` | `((open: boolean) => void)` | | - | Callback when open state changes |
|
|
398
663
|
|
|
399
664
|
### Usage[](#usage-19 "Direct link to Usage")
|
|
400
665
|
|
|
@@ -478,13 +743,15 @@ Hook to access sidebar state and controls
|
|
|
478
743
|
|
|
479
744
|
### Props[](#props-23 "Direct link to Props")
|
|
480
745
|
|
|
481
|
-
This
|
|
746
|
+
This hook takes no parameters.
|
|
482
747
|
|
|
483
748
|
### Usage[](#usage-23 "Direct link to Usage")
|
|
484
749
|
|
|
485
750
|
```tsx
|
|
486
751
|
import { useSidebar } from '@databricks/appkit-ui';
|
|
487
752
|
|
|
488
|
-
|
|
753
|
+
function MyComponent() {
|
|
754
|
+
const sidebar = useSidebar();
|
|
755
|
+
}
|
|
489
756
|
|
|
490
757
|
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# @databricks/appkit
|
|
2
|
+
|
|
3
|
+
Core library for building Databricks applications with type-safe SQL queries, plugin architecture, and React integration.
|
|
4
|
+
|
|
5
|
+
## Enumerations[](#enumerations "Direct link to Enumerations")
|
|
6
|
+
|
|
7
|
+
| Enumeration | Description |
|
|
8
|
+
| --------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
|
|
9
|
+
| [RequestedClaimsPermissionSet](./docs/api/appkit/Enumeration.RequestedClaimsPermissionSet.md) | Permission set for Unity Catalog table access |
|
|
10
|
+
| [ResourceType](./docs/api/appkit/Enumeration.ResourceType.md) | Resource types from schema $defs.resourceType.enum |
|
|
11
|
+
|
|
12
|
+
## Classes[](#classes "Direct link to Classes")
|
|
13
|
+
|
|
14
|
+
| Class | Description |
|
|
15
|
+
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
16
|
+
| [AppKitError](./docs/api/appkit/Class.AppKitError.md) | Base error class for all AppKit errors. Provides a consistent structure for error handling across the framework. |
|
|
17
|
+
| [AuthenticationError](./docs/api/appkit/Class.AuthenticationError.md) | Error thrown when authentication fails. Use for missing tokens, invalid credentials, or authorization failures. |
|
|
18
|
+
| [ConfigurationError](./docs/api/appkit/Class.ConfigurationError.md) | Error thrown when configuration is missing or invalid. Use for missing environment variables, invalid settings, or setup issues. |
|
|
19
|
+
| [ConnectionError](./docs/api/appkit/Class.ConnectionError.md) | Error thrown when a connection or network operation fails. Use for database pool errors, API failures, timeouts, etc. |
|
|
20
|
+
| [ExecutionError](./docs/api/appkit/Class.ExecutionError.md) | Error thrown when an operation execution fails. Use for statement failures, canceled operations, or unexpected states. |
|
|
21
|
+
| [InitializationError](./docs/api/appkit/Class.InitializationError.md) | Error thrown when a service or component is not properly initialized. Use when accessing services before they are ready. |
|
|
22
|
+
| [Plugin](./docs/api/appkit/Class.Plugin.md) | Base abstract class for creating AppKit plugins. |
|
|
23
|
+
| [ResourceRegistry](./docs/api/appkit/Class.ResourceRegistry.md) | Central registry for tracking plugin resource requirements. Deduplication uses type + resourceKey (machine-stable); alias is for display only. |
|
|
24
|
+
| [ServerError](./docs/api/appkit/Class.ServerError.md) | Error thrown when server lifecycle operations fail. Use for server start/stop issues, configuration conflicts, etc. |
|
|
25
|
+
| [TunnelError](./docs/api/appkit/Class.TunnelError.md) | Error thrown when remote tunnel operations fail. Use for tunnel connection issues, message parsing failures, etc. |
|
|
26
|
+
| [ValidationError](./docs/api/appkit/Class.ValidationError.md) | Error thrown when input validation fails. Use for invalid parameters, missing required fields, or type mismatches. |
|
|
27
|
+
|
|
28
|
+
## Interfaces[](#interfaces "Direct link to Interfaces")
|
|
29
|
+
|
|
30
|
+
| Interface | Description |
|
|
31
|
+
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
32
|
+
| [BasePluginConfig](./docs/api/appkit/Interface.BasePluginConfig.md) | Base configuration interface for AppKit plugins |
|
|
33
|
+
| [CacheConfig](./docs/api/appkit/Interface.CacheConfig.md) | Configuration for caching |
|
|
34
|
+
| [DatabaseCredential](./docs/api/appkit/Interface.DatabaseCredential.md) | Database credentials with OAuth token for Postgres connection |
|
|
35
|
+
| [GenerateDatabaseCredentialRequest](./docs/api/appkit/Interface.GenerateDatabaseCredentialRequest.md) | Request parameters for generating database OAuth credentials |
|
|
36
|
+
| [ITelemetry](./docs/api/appkit/Interface.ITelemetry.md) | Plugin-facing interface for OpenTelemetry instrumentation. Provides a thin abstraction over OpenTelemetry APIs for plugins. |
|
|
37
|
+
| [LakebasePoolConfig](./docs/api/appkit/Interface.LakebasePoolConfig.md) | Configuration for creating a Lakebase connection pool |
|
|
38
|
+
| [PluginManifest](./docs/api/appkit/Interface.PluginManifest.md) | Plugin manifest that declares metadata and resource requirements. Attached to plugin classes as a static property. |
|
|
39
|
+
| [RequestedClaims](./docs/api/appkit/Interface.RequestedClaims.md) | Optional claims for fine-grained Unity Catalog table permissions When specified, the returned token will be scoped to only the requested tables |
|
|
40
|
+
| [RequestedResource](./docs/api/appkit/Interface.RequestedResource.md) | Resource to request permissions for in Unity Catalog |
|
|
41
|
+
| [ResourceEntry](./docs/api/appkit/Interface.ResourceEntry.md) | Internal representation of a resource in the registry. Extends ResourceRequirement with resolution state and plugin ownership. |
|
|
42
|
+
| [ResourceFieldEntry](./docs/api/appkit/Interface.ResourceFieldEntry.md) | Defines a single field for a resource. Each field has its own environment variable and optional description. Single-value types use one key (e.g. id); multi-value types (database, secret) use multiple (e.g. instance\_name, database\_name or scope, key). |
|
|
43
|
+
| [ResourceRequirement](./docs/api/appkit/Interface.ResourceRequirement.md) | Declares a resource requirement for a plugin. Can be defined statically in a manifest or dynamically via getResourceRequirements(). |
|
|
44
|
+
| [StreamExecutionSettings](./docs/api/appkit/Interface.StreamExecutionSettings.md) | Configuration for streaming execution with default and user-scoped settings |
|
|
45
|
+
| [TelemetryConfig](./docs/api/appkit/Interface.TelemetryConfig.md) | OpenTelemetry configuration for AppKit applications |
|
|
46
|
+
| [ValidationResult](./docs/api/appkit/Interface.ValidationResult.md) | Result of validating all registered resources against the environment. |
|
|
47
|
+
|
|
48
|
+
## Type Aliases[](#type-aliases "Direct link to Type Aliases")
|
|
49
|
+
|
|
50
|
+
| Type Alias | Description |
|
|
51
|
+
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
52
|
+
| [ConfigSchema](./docs/api/appkit/TypeAlias.ConfigSchema.md) | Configuration schema definition for plugin config. Re-exported from the standard JSON Schema Draft 7 types. |
|
|
53
|
+
| [IAppRouter](./docs/api/appkit/TypeAlias.IAppRouter.md) | Express router type for plugin route registration |
|
|
54
|
+
| [ResourcePermission](./docs/api/appkit/TypeAlias.ResourcePermission.md) | Union of all possible permission levels across all resource types. |
|
|
55
|
+
| [ToPlugin](./docs/api/appkit/TypeAlias.ToPlugin.md) | - |
|
|
56
|
+
|
|
57
|
+
## Variables[](#variables "Direct link to Variables")
|
|
58
|
+
|
|
59
|
+
| Variable | Description |
|
|
60
|
+
| ---------------------------------------------- | -------------------- |
|
|
61
|
+
| [sql](./docs/api/appkit/Variable.sql.md) | SQL helper namespace |
|
|
62
|
+
|
|
63
|
+
## Functions[](#functions "Direct link to Functions")
|
|
64
|
+
|
|
65
|
+
| Function | Description |
|
|
66
|
+
| -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
67
|
+
| [appKitTypesPlugin](./docs/api/appkit/Function.appKitTypesPlugin.md) | Vite plugin to generate types for AppKit queries. Calls generateFromEntryPoint under the hood. |
|
|
68
|
+
| [createApp](./docs/api/appkit/Function.createApp.md) | Bootstraps AppKit with the provided configuration. |
|
|
69
|
+
| [createLakebasePool](./docs/api/appkit/Function.createLakebasePool.md) | Create a Lakebase pool with appkit's logger integration. Telemetry automatically uses appkit's OpenTelemetry configuration via global registry. |
|
|
70
|
+
| [generateDatabaseCredential](./docs/api/appkit/Function.generateDatabaseCredential.md) | Generate OAuth credentials for Postgres database connection using the proper Postgres API. |
|
|
71
|
+
| [getExecutionContext](./docs/api/appkit/Function.getExecutionContext.md) | Get the current execution context. |
|
|
72
|
+
| [getLakebaseOrmConfig](./docs/api/appkit/Function.getLakebaseOrmConfig.md) | Get Lakebase connection configuration for ORMs that don't accept pg.Pool directly. |
|
|
73
|
+
| [getLakebasePgConfig](./docs/api/appkit/Function.getLakebasePgConfig.md) | Get Lakebase connection configuration for PostgreSQL clients. |
|
|
74
|
+
| [getPluginManifest](./docs/api/appkit/Function.getPluginManifest.md) | Loads and validates the manifest from a plugin constructor. Normalizes string type/permission to strict ResourceType/ResourcePermission. |
|
|
75
|
+
| [getResourceRequirements](./docs/api/appkit/Function.getResourceRequirements.md) | Gets the resource requirements from a plugin's manifest. |
|
|
76
|
+
| [getUsernameWithApiLookup](./docs/api/appkit/Function.getUsernameWithApiLookup.md) | Resolves the PostgreSQL username for a Lakebase connection. |
|
|
77
|
+
| [getWorkspaceClient](./docs/api/appkit/Function.getWorkspaceClient.md) | Get workspace client from config or SDK default auth chain |
|
|
78
|
+
| [isSQLTypeMarker](./docs/api/appkit/Function.isSQLTypeMarker.md) | Type guard to check if a value is a SQL type marker |
|
|
@@ -4,14 +4,14 @@ This section contains the API reference for the AppKit packages.
|
|
|
4
4
|
|
|
5
5
|
## Modules[](#modules "Direct link to Modules")
|
|
6
6
|
|
|
7
|
-
* [`appkit`](
|
|
8
|
-
* [`appkit-ui`](
|
|
7
|
+
* [`appkit`](./docs/api/appkit.md) - Core library. Provides the core functionality for building Databricks applications.
|
|
8
|
+
* [`appkit-ui`](./docs/api/appkit-ui.md) - UI components library. Provides a set of UI primitives for building Databricks apps in [React](https://react.dev/).
|
|
9
9
|
|
|
10
|
-
Learn more about the architecture of AppKit in the [architecture](
|
|
10
|
+
Learn more about the architecture of AppKit in the [architecture](./docs/architecture.md) document.
|
|
11
11
|
|
|
12
12
|
## Getting started[](#getting-started "Direct link to Getting started")
|
|
13
13
|
|
|
14
|
-
To learn how to get started with AppKit, see the [getting started guide](
|
|
14
|
+
To learn how to get started with AppKit, see the [getting started guide](./docs.md) for AI-assisted and manual quick start options.
|
|
15
15
|
|
|
16
16
|
## Installation[](#installation "Direct link to Installation")
|
|
17
17
|
|
|
@@ -9,11 +9,11 @@ Manage your AppKit application throughout its lifecycle using the Databricks CLI
|
|
|
9
9
|
|
|
10
10
|
## Create app[](#create-app "Direct link to Create app")
|
|
11
11
|
|
|
12
|
-
See the [Quick start](
|
|
12
|
+
See the [Quick start](./docs.md#quick-start-options) section to create a new Databricks app with AppKit installed.
|
|
13
13
|
|
|
14
14
|
## Configuration[](#configuration "Direct link to Configuration")
|
|
15
15
|
|
|
16
|
-
Before deploying your app, you need to configure it. See the [Configuration guide](
|
|
16
|
+
Before deploying your app, you need to configure it. See the [Configuration guide](./docs/configuration.md) for details on:
|
|
17
17
|
|
|
18
18
|
* `app.yaml` configuration and command specification
|
|
19
19
|
* Environment variables and SQL warehouse binding
|