UNPKG

1.3 kBTypeScriptView Raw
1import { ModelManager } from './ModelManager';
2/**
3 * Broadcast an event to indicate the page model has been loaded
4 *
5 * @param {{}} model - model item to be added to the broadcast payload
6 * @fires cq-pagemodel-loaded
7 */
8export declare function triggerPageModelLoaded(model: any): void;
9/**
10 * The EditorClient is responsible for the interactions with the Page Editor.
11 */
12export declare class EditorClient {
13 _modelManager: ModelManager;
14 _windowListener: EventListenerOrEventListenerObject;
15 constructor(ModelManager: ModelManager);
16 /**
17 * Updates the page model with the given data
18 *
19 * @param {Object} msg - Object containing the data to update the page model
20 * @property {String} msg.dataPath - Relative data path in the PageModel which needs to be updated
21 * @property {String} msg.pagePath - Absolute page path corresponding to the page in the PageModel which needs to be updated
22 * @param {String} msg.cmd - Command Action requested via Editable on the content Node
23 * @param {Object} msg.data - Data that needs to be updated in the PageModel at {path}
24 * @fires cq-pagemodel-loaded
25 * @private
26 */
27 _updateModel(msg: any): void;
28 /**
29 * @private
30 */
31 destroy(): void;
32}
33//# sourceMappingURL=EditorClient.d.ts.map
\No newline at end of file