File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ import {
88 findOutlineElements ,
99 useActiveOutline ,
1010} from "../../components/editor/chrome/panels/outline/useActiveOutline" ;
11- import type { IStatelessPlugin , IStatelessPluginProps } from "../stateless-plugin" ;
11+ import type {
12+ IStatelessPlugin ,
13+ IStatelessPluginProps ,
14+ } from "../stateless-plugin" ;
1215
1316interface Data {
1417 label ?: string ;
@@ -26,12 +29,14 @@ export class OutlinePlugin implements IStatelessPlugin<Data> {
2629 const { items } = store . get ( notebookOutline ) ;
2730 const headerElements = findOutlineElements ( items ) ;
2831
29- const { activeHeaderId, activeOccurrences } = useActiveOutline ( headerElements ) ;
32+ const { activeHeaderId, activeOccurrences } =
33+ useActiveOutline ( headerElements ) ;
3034
3135 if ( items . length === 0 ) {
3236 return (
3337 < div className = "text-muted-foreground text-sm p-4 border border-dashed border-border rounded-lg" >
34- No outline found. Add markdown headings to your notebook to create an outline.
38+ No outline found. Add markdown headings to your notebook to create an
39+ outline.
3540 </ div >
3641 ) ;
3742 }
@@ -52,4 +57,4 @@ export class OutlinePlugin implements IStatelessPlugin<Data> {
5257 </ div >
5358 ) ;
5459 }
55- }
60+ }
Original file line number Diff line number Diff line change 22/* eslint-disable @typescript-eslint/no-explicit-any */
33
44import { NavigationMenuPlugin } from "@/plugins/layout/NavigationMenuPlugin" ;
5- import { OutlinePlugin } from "./layout/OutlinePlugin" ;
65import { initializeUIElement } from "../core/dom/ui-element" ;
76import { registerReactComponent } from "./core/registerReactComponent" ;
87import { initializeSidebarElement } from "./core/sidebar-element" ;
@@ -46,6 +45,7 @@ import { JsonOutputPlugin } from "./layout/JsonOutputPlugin";
4645import { LazyPlugin } from "./layout/LazyPlugin" ;
4746import { MimeRendererPlugin } from "./layout/MimeRenderPlugin" ;
4847import { MermaidPlugin } from "./layout/mermaid/MermaidPlugin" ;
48+ import { OutlinePlugin } from "./layout/OutlinePlugin" ;
4949import { ProgressPlugin } from "./layout/ProgressPlugin" ;
5050import { RoutesPlugin } from "./layout/RoutesPlugin" ;
5151import { StatPlugin } from "./layout/StatPlugin" ;
Original file line number Diff line number Diff line change @@ -35,4 +35,4 @@ def outline(*, label: str = "") -> Html:
3535 component_name = "marimo-outline" ,
3636 args = {"label" : label },
3737 )
38- )
38+ )
You can’t perform that action at this time.
0 commit comments