@wordpress/editor
Version:
Enhanced block editor for WordPress posts.
51 lines • 1.8 kB
TypeScript
export type Action = import('@wordpress/dataviews').Action;
export type Field = import('@wordpress/dataviews').Field;
/**
* @typedef {import('@wordpress/dataviews').Action} Action
* @typedef {import('@wordpress/dataviews').Field} Field
*/
/**
* Registers a new DataViews action.
*
* This is an experimental API and is subject to change.
* it's only available in the Gutenberg plugin for now.
*
* @param {string} kind Entity kind.
* @param {string} name Entity name.
* @param {Action} config Action configuration.
*/
export declare function registerEntityAction(kind: string, name: string, config: any): void;
/**
* Unregisters a DataViews action.
*
* This is an experimental API and is subject to change.
* it's only available in the Gutenberg plugin for now.
*
* @param {string} kind Entity kind.
* @param {string} name Entity name.
* @param {string} actionId Action ID.
*/
export declare function unregisterEntityAction(kind: string, name: string, actionId: string): void;
/**
* Registers a new DataViews field.
*
* This is an experimental API and is subject to change.
* it's only available in the Gutenberg plugin for now.
*
* @param {string} kind Entity kind.
* @param {string} name Entity name.
* @param {Field} config Field configuration.
*/
export declare function registerEntityField(kind: string, name: string, config: any): void;
/**
* Unregisters a DataViews field.
*
* This is an experimental API and is subject to change.
* it's only available in the Gutenberg plugin for now.
*
* @param {string} kind Entity kind.
* @param {string} name Entity name.
* @param {string} fieldId Field ID.
*/
export declare function unregisterEntityField(kind: string, name: string, fieldId: string): void;
//# sourceMappingURL=api.d.ts.map