@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
18 lines • 978 B
TypeScript
import type { ObservableMap } from '@wordpress/compose';
import type { WidgetRuntimeAction } from '@wordpress/widget-primitives';
/**
* What each mounted render of an instance declares, in mount order, keyed by
* uuid. A drag preview is a second render of its instance.
*/
export type RuntimeActionsMap = ObservableMap<string, ReadonlyMap<string, WidgetRuntimeAction[]>>;
export declare function createRuntimeActionsMap(): RuntimeActionsMap;
/**
* Replaces what one render of an instance declares; an empty list clears it.
*
* @param {RuntimeActionsMap} map The dashboard's map.
* @param {string} uuid The instance.
* @param {string} renderId The render declaring.
* @param {WidgetRuntimeAction[]} actions The actions it declares.
*/
export declare function declareRuntimeActions(map: RuntimeActionsMap, uuid: string, renderId: string, actions: WidgetRuntimeAction[]): void;
//# sourceMappingURL=runtime-actions-map.d.ts.map