UNPKG

@atlaskit/editor-plugin-selection-extension

Version:

editor-plugin-selection-extension plugin for @atlaskit/editor-core

39 lines (32 loc) 1.48 kB
// inspired by content api operation https://bitbucket.org/atlassian/pf-adf-service/src/master/src/lib/update/types.ts /** * @private * @deprecated Use {@link SelectionExtensionPluginOptions} instead. * @see https://product-fabric.atlassian.net/browse/ED-27496 */ export let SelectionExtensionActionTypes = /*#__PURE__*/function (SelectionExtensionActionTypes) { SelectionExtensionActionTypes["SET_ACTIVE_EXTENSION"] = "set-active-extension"; SelectionExtensionActionTypes["UPDATE_ACTIVE_EXTENSION_COORDS"] = "update-active-extension-coords"; SelectionExtensionActionTypes["CLEAR_ACTIVE_EXTENSION"] = "clear-active-extension"; SelectionExtensionActionTypes["SET_SELECTED_NODE"] = "set-selected-node"; SelectionExtensionActionTypes["START_TRACK_CHANGES"] = "start-track-changes"; return SelectionExtensionActionTypes; }({}); /** * Common fields applicable to all extension menu items */ /** * Fields for a dropdown item (i.e., an item that does not have further nested menu items) */ /** * Fields for a nested dropdown menu (i.e., an menu item that has further nested menu items) */ /** * This type represents either a dropdown item or a dropdown menu, but not both. * * We mark all fields of the other type as `never` to enforce this exclusivity. */ /** * We intentionally only support dropdown items nested within dropdown menus, i.e. no menus nested * within menus – so there will be at max two levels of nesting from extension menu items */