@floegence/floe-webapp-core 0.36.45 → 0.36.48
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/WorkbenchCanvas.d.ts +2 -1
- package/dist/components/workbench/WorkbenchCanvas.js +108 -88
- package/dist/components/workbench/WorkbenchCanvasField.d.ts +2 -1
- package/dist/components/workbench/WorkbenchCanvasField.js +40 -34
- 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 +6 -5
- package/dist/components/workbench/WorkbenchWidget.d.ts +2 -1
- package/dist/components/workbench/WorkbenchWidget.js +175 -168
- package/dist/components/workbench/types.d.ts +8 -0
- package/dist/components/workbench/useWorkbenchModel.d.ts +2 -1
- package/dist/components/workbench/useWorkbenchModel.js +325 -312
- package/dist/components/workbench/workbenchMotion.d.ts +3 -0
- package/dist/components/workbench/workbenchMotion.js +60 -0
- package/dist/styles.css +1 -1
- package/dist/workbench.css +25 -0
- package/package.json +1 -1
|
@@ -87,6 +87,12 @@ export interface WorkbenchWidgetBodyActivation {
|
|
|
87
87
|
pointerType?: string;
|
|
88
88
|
}
|
|
89
89
|
export type WorkbenchWidgetLifecycle = 'hot' | 'warm' | 'cold';
|
|
90
|
+
export type WorkbenchWidgetMotionPhase = 'enter';
|
|
91
|
+
export interface WorkbenchWidgetMotionIntent {
|
|
92
|
+
widgetId: string;
|
|
93
|
+
phase: WorkbenchWidgetMotionPhase;
|
|
94
|
+
reason?: string;
|
|
95
|
+
}
|
|
90
96
|
export interface WorkbenchWidgetBodyProps<TWidgetType extends string = WorkbenchWidgetType> {
|
|
91
97
|
widgetId: string;
|
|
92
98
|
title: string;
|
|
@@ -94,6 +100,7 @@ export interface WorkbenchWidgetBodyProps<TWidgetType extends string = Workbench
|
|
|
94
100
|
surfaceMetrics?: Accessor<WorkbenchWidgetSurfaceMetrics | undefined>;
|
|
95
101
|
activation?: WorkbenchWidgetBodyActivation;
|
|
96
102
|
lifecycle?: WorkbenchWidgetLifecycle;
|
|
103
|
+
motion?: WorkbenchWidgetMotionIntent | null;
|
|
97
104
|
selected?: boolean;
|
|
98
105
|
filtered?: boolean;
|
|
99
106
|
requestActivate?: () => void;
|
|
@@ -198,6 +205,7 @@ export interface WorkbenchBackgroundLayer {
|
|
|
198
205
|
updated_at_unix_ms: number;
|
|
199
206
|
}
|
|
200
207
|
export type WorkbenchBackgroundLayerPatch = Partial<Pick<WorkbenchBackgroundLayer, 'fill' | 'opacity' | 'material' | 'name'>>;
|
|
208
|
+
export type WorkbenchBackgroundLayerDefaults = Partial<Pick<WorkbenchBackgroundLayer, 'fill' | 'opacity' | 'material' | 'name' | 'width' | 'height'>>;
|
|
201
209
|
export interface WorkbenchViewport {
|
|
202
210
|
x: number;
|
|
203
211
|
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>[]>;
|