@sprucelabs/spruce-calendar-components 22.3.9 → 22.3.10
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpruceSchemas, ToolBeltState, ViewControllerId } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
import { CalendarTool, CalendarToolBeltContext, CalendarToolBeltStateMachine, CalendarToolOptions, GetPersonFromEventHandler } from '../../types/calendar.types';
|
|
2
|
+
import { CalendarTool, CalendarToolBeltContext, CalendarToolBeltStateMachine, CalendarToolOptions, GetPersonFromEventHandler, UpdateCalendarContextOptions } from '../../types/calendar.types';
|
|
3
3
|
import EventControlsCardViewController from '../../viewControllers/EventControlsCard.vc';
|
|
4
4
|
declare type Tool = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ToolBeltTool;
|
|
5
5
|
export declare type AddToolOptions = Omit<Tool, 'card'> & {
|
|
@@ -23,7 +23,7 @@ export default abstract class AbstractCalendarEventToolBeltState implements Tool
|
|
|
23
23
|
protected buildVcConstructorOptions(id: string): CalendarToolOptions;
|
|
24
24
|
private addVc;
|
|
25
25
|
protected getPersonFromEvent(): ReturnType<GetPersonFromEventHandler>;
|
|
26
|
-
|
|
26
|
+
protected handleUpdateContextFromTool(updates: Partial<CalendarToolBeltContext>, fromToolId: string, options?: UpdateCalendarContextOptions): Promise<boolean>;
|
|
27
27
|
removeTool(id: string): void;
|
|
28
28
|
getPendingContextChanges(): Partial<CalendarToolBeltContext>;
|
|
29
29
|
getVcForTool(toolId: string): CalendarTool | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpruceSchemas, ToolBeltState, ViewControllerId } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
import { CalendarTool, CalendarToolBeltContext, CalendarToolBeltStateMachine, CalendarToolOptions, GetPersonFromEventHandler } from '../../types/calendar.types';
|
|
2
|
+
import { CalendarTool, CalendarToolBeltContext, CalendarToolBeltStateMachine, CalendarToolOptions, GetPersonFromEventHandler, UpdateCalendarContextOptions } from '../../types/calendar.types';
|
|
3
3
|
import EventControlsCardViewController from '../../viewControllers/EventControlsCard.vc';
|
|
4
4
|
declare type Tool = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ToolBeltTool;
|
|
5
5
|
export declare type AddToolOptions = Omit<Tool, 'card'> & {
|
|
@@ -23,7 +23,7 @@ export default abstract class AbstractCalendarEventToolBeltState implements Tool
|
|
|
23
23
|
protected buildVcConstructorOptions(id: string): CalendarToolOptions;
|
|
24
24
|
private addVc;
|
|
25
25
|
protected getPersonFromEvent(): ReturnType<GetPersonFromEventHandler>;
|
|
26
|
-
|
|
26
|
+
protected handleUpdateContextFromTool(updates: Partial<CalendarToolBeltContext>, fromToolId: string, options?: UpdateCalendarContextOptions): Promise<boolean>;
|
|
27
27
|
removeTool(id: string): void;
|
|
28
28
|
getPendingContextChanges(): Partial<CalendarToolBeltContext>;
|
|
29
29
|
getVcForTool(toolId: string): CalendarTool | undefined;
|