@floegence/floe-webapp-core 0.55.2 → 0.56.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.
@@ -159,6 +159,8 @@ export type WorkbenchSelection = {
159
159
  export type WorkbenchStickyNoteColor = 'graphite' | 'sage' | 'amber' | 'azure' | 'coral' | 'rose';
160
160
  export type WorkbenchStickyNoteMaterial = 'tint' | 'tab' | 'ruled';
161
161
  export interface WorkbenchStickyNoteItem {
162
+ /** Optional editable heading; old body-only notes remain valid. */
163
+ title?: string;
162
164
  id: string;
163
165
  kind: 'sticky_note';
164
166
  body: string;
@@ -173,7 +175,7 @@ export interface WorkbenchStickyNoteItem {
173
175
  created_at_unix_ms: number;
174
176
  updated_at_unix_ms: number;
175
177
  }
176
- export type WorkbenchStickyNotePatch = Partial<Pick<WorkbenchStickyNoteItem, 'body' | 'color' | 'material'>>;
178
+ export type WorkbenchStickyNotePatch = Partial<Pick<WorkbenchStickyNoteItem, 'title' | 'body' | 'color' | 'material'>>;
177
179
  export type WorkbenchTextAnnotationAlign = 'left' | 'center' | 'right';
178
180
  export interface WorkbenchTextAnnotationItem {
179
181
  id: string;
@@ -1,5 +1,5 @@
1
1
  import type { InfiniteCanvasContextMenuEvent } from '../../ui';
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';
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 WorkbenchStickyNoteColor, 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 {
@@ -127,6 +127,21 @@ export declare function useWorkbenchModel(options: UseWorkbenchModelOptions): {
127
127
  addWidgetAtWorldCenter: (type: WorkbenchWidgetType, worldX: number, worldY: number) => WorkbenchWidgetItem<WorkbenchWidgetType>;
128
128
  addStickyNoteAtCursor: (worldX: number, worldY: number) => WorkbenchStickyNoteItem;
129
129
  addTextAnnotationAtCursor: (worldX: number, worldY: number) => WorkbenchTextAnnotationItem;
130
+ duplicateStickyNoteFrom: (item: WorkbenchStickyNoteItem) => {
131
+ id: string;
132
+ x: number;
133
+ y: number;
134
+ z_index: number;
135
+ created_at_unix_ms: number;
136
+ updated_at_unix_ms: number;
137
+ title?: string;
138
+ kind: "sticky_note";
139
+ body: string;
140
+ color: WorkbenchStickyNoteColor;
141
+ material?: import("./types").WorkbenchStickyNoteMaterial;
142
+ width: number;
143
+ height: number;
144
+ };
130
145
  duplicateTextAnnotationFrom: (item: WorkbenchTextAnnotationItem) => WorkbenchTextAnnotationItem;
131
146
  addBackgroundLayerAtCursor: (worldX: number, worldY: number) => WorkbenchBackgroundLayer;
132
147
  duplicateBackgroundLayerFrom: (item: WorkbenchBackgroundLayer) => WorkbenchBackgroundLayer;