@floegence/floe-webapp-core 0.56.7 → 0.56.9
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/dist/components/workbench/WorkbenchWidget.js +309 -284
- package/dist/components/workbench/WorkbenchWidgetHeader.d.ts +10 -0
- package/dist/components/workbench/WorkbenchWidgetHeader.js +19 -0
- package/dist/components/workbench/index.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/dist/workbench-themes.css +10 -0
- package/dist/workbench.css +20 -0
- package/dist/workbench.js +29 -27
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
export interface WorkbenchWidgetHeaderProps {
|
|
3
|
+
/** Actions rendered once in the owning widget's title bar. */
|
|
4
|
+
actions: JSX.Element;
|
|
5
|
+
/** Full title or resource location displayed on title hover. */
|
|
6
|
+
titleTooltip?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const WorkbenchWidgetHeaderContext: import("solid-js").Context<((contribution: WorkbenchWidgetHeaderProps) => () => void) | undefined>;
|
|
9
|
+
/** Contribute title-bar presentation from a widget body without moving its state. */
|
|
10
|
+
export declare function WorkbenchWidgetHeader(props: WorkbenchWidgetHeaderProps): JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useContext as i, createMemo as o, onCleanup as c, createContext as a } from "solid-js";
|
|
2
|
+
const d = a();
|
|
3
|
+
function l(e) {
|
|
4
|
+
const t = i(d);
|
|
5
|
+
if (!t) throw new Error("WorkbenchWidgetHeader must be rendered inside a Workbench widget");
|
|
6
|
+
const n = o(() => e.actions), r = o(() => e.titleTooltip);
|
|
7
|
+
return c(t({
|
|
8
|
+
get actions() {
|
|
9
|
+
return n();
|
|
10
|
+
},
|
|
11
|
+
get titleTooltip() {
|
|
12
|
+
return r();
|
|
13
|
+
}
|
|
14
|
+
})), null;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
l as WorkbenchWidgetHeader,
|
|
18
|
+
d as WorkbenchWidgetHeaderContext
|
|
19
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { WorkbenchOverlay, type WorkbenchOverlayProps } from './WorkbenchOverlay';
|
|
2
|
+
export { WorkbenchWidgetHeader, type WorkbenchWidgetHeaderProps } from './WorkbenchWidgetHeader';
|
|
2
3
|
export { WorkbenchDockPopoverSurface, type WorkbenchDockPopoverSurfaceProps, } from './WorkbenchDockPopoverSurface';
|
|
3
4
|
export { WorkbenchSurface, type WorkbenchSurfaceApi, type WorkbenchCreateAtOptions, type WorkbenchCreateWidgetOptions, type WorkbenchContextMenuItemsResolver, type WorkbenchSurfaceProps, } from './WorkbenchSurface';
|
|
4
5
|
export type { WorkbenchDockAction, WorkbenchDockModeIcons, WorkbenchCanvasWidgetPlacement, WorkbenchDockCanvasPlacement, WorkbenchDockDropContext, WorkbenchDockItemPlacement, WorkbenchDockItemActivation, WorkbenchDockItemActivationMode, WorkbenchExternalDockDragController, WorkbenchExternalDockDragItem, WorkbenchHostDockItem, } from './WorkbenchFilterBar';
|