@floegence/floe-webapp-core 0.36.44 → 0.36.47
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/ui/InfiniteCanvas.js +39 -39
- package/dist/components/workbench/WorkbenchCanvas.js +195 -100
- package/dist/components/workbench/WorkbenchCanvasField.d.ts +6 -0
- package/dist/components/workbench/WorkbenchCanvasField.js +142 -123
- package/dist/components/workbench/WorkbenchFilterBar.js +10 -10
- package/dist/components/workbench/WorkbenchLayerObjects.d.ts +9 -0
- package/dist/components/workbench/WorkbenchLayerObjects.js +820 -612
- package/dist/components/workbench/WorkbenchOverlay.d.ts +1 -1
- package/dist/components/workbench/WorkbenchOverlay.js +9 -6
- package/dist/components/workbench/WorkbenchSurface.d.ts +2 -1
- package/dist/components/workbench/WorkbenchSurface.js +9 -5
- package/dist/components/workbench/WorkbenchWidget.js +299 -292
- package/dist/components/workbench/types.d.ts +1 -0
- package/dist/components/workbench/useWorkbenchModel.d.ts +2 -1
- package/dist/components/workbench/useWorkbenchModel.js +355 -329
- package/dist/components/workbench/workbenchHelpers.d.ts +21 -2
- package/dist/components/workbench/workbenchHelpers.js +305 -259
- package/dist/components/workbench/workbenchOwnerSafeAccessors.d.ts +2 -0
- package/dist/components/workbench/workbenchOwnerSafeAccessors.js +10 -0
- package/dist/styles.css +1 -1
- package/dist/workbench.css +136 -15
- package/package.json +1 -1
|
@@ -198,6 +198,7 @@ export interface WorkbenchBackgroundLayer {
|
|
|
198
198
|
updated_at_unix_ms: number;
|
|
199
199
|
}
|
|
200
200
|
export type WorkbenchBackgroundLayerPatch = Partial<Pick<WorkbenchBackgroundLayer, 'fill' | 'opacity' | 'material' | 'name'>>;
|
|
201
|
+
export type WorkbenchBackgroundLayerDefaults = Partial<Pick<WorkbenchBackgroundLayer, 'fill' | 'opacity' | 'material' | 'name' | 'width' | 'height'>>;
|
|
201
202
|
export interface WorkbenchViewport {
|
|
202
203
|
x: number;
|
|
203
204
|
y: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InfiniteCanvasContextMenuEvent } from '../../ui';
|
|
2
|
-
import { type WorkbenchWidgetDefinition, type WorkbenchContextMenuState, type WorkbenchSelection, type WorkbenchState, type WorkbenchAnnotationItem, type WorkbenchBackgroundLayerPatch, type WorkbenchStickyNoteItem, type WorkbenchStickyNotePatch, type WorkbenchViewport, type WorkbenchWidgetItem, type WorkbenchWidgetType, type WorkbenchBackgroundLayer, type WorkbenchDockToolId, type WorkbenchInteractionMode, type WorkbenchTextAnnotationDefaults, type WorkbenchTextAnnotationItem, type WorkbenchTextAnnotationPatch } from './types';
|
|
2
|
+
import { type WorkbenchWidgetDefinition, type WorkbenchContextMenuState, type WorkbenchSelection, type WorkbenchState, type WorkbenchAnnotationItem, type WorkbenchBackgroundLayerDefaults, type WorkbenchBackgroundLayerPatch, type WorkbenchStickyNoteItem, type WorkbenchStickyNotePatch, type WorkbenchViewport, type WorkbenchWidgetItem, type WorkbenchWidgetType, type WorkbenchBackgroundLayer, type WorkbenchDockToolId, type WorkbenchInteractionMode, type WorkbenchTextAnnotationDefaults, type WorkbenchTextAnnotationItem, type WorkbenchTextAnnotationPatch } from './types';
|
|
3
3
|
import type { WorkbenchThemeId } from './workbenchThemes';
|
|
4
4
|
import type { WorkbenchContextMenuItem } from './WorkbenchContextMenu';
|
|
5
5
|
export interface UseWorkbenchModelOptions {
|
|
@@ -8,6 +8,7 @@ export interface UseWorkbenchModelOptions {
|
|
|
8
8
|
onClose: () => void;
|
|
9
9
|
widgetDefinitions?: readonly WorkbenchWidgetDefinition[] | (() => readonly WorkbenchWidgetDefinition[] | undefined);
|
|
10
10
|
textAnnotationDefaults?: WorkbenchTextAnnotationDefaults | (() => WorkbenchTextAnnotationDefaults | undefined);
|
|
11
|
+
backgroundLayerDefaults?: WorkbenchBackgroundLayerDefaults | (() => WorkbenchBackgroundLayerDefaults | undefined);
|
|
11
12
|
}
|
|
12
13
|
export declare function useWorkbenchModel(options: UseWorkbenchModelOptions): {
|
|
13
14
|
widgets: import("solid-js").Accessor<WorkbenchWidgetItem<WorkbenchWidgetType>[]>;
|