@editorjs/editorjs
Advanced tools
Comparing version 2.30.0-rc.2 to 2.30.0-rc.3
{ | ||
"name": "@editorjs/editorjs", | ||
"version": "2.30.0-rc.2", | ||
"version": "2.30.0-rc.3", | ||
"description": "Editor.js — Native JS, based on API and Open Source", | ||
@@ -5,0 +5,0 @@ "main": "dist/editorjs.umd.js", |
@@ -63,3 +63,3 @@ /** | ||
/** | ||
* Represents default popover item without confirmation state configuration | ||
* Represents popover item without confirmation state configuration | ||
*/ | ||
@@ -76,8 +76,25 @@ export interface PopoverItemWithoutConfirmation extends PopoverItemBase { | ||
onActivate: (item: PopoverItem, event?: PointerEvent) => void; | ||
} | ||
/** | ||
* Represents popover item with children (nested popover items) | ||
*/ | ||
export interface PopoverItemWithChildren extends PopoverItemBase { | ||
confirmation?: never; | ||
onActivate?: never; | ||
/** | ||
* Items of nested popover that should be open on the current item hover/click (depending on platform) | ||
*/ | ||
children?: { | ||
items: PopoverItem[] | ||
} | ||
} | ||
/** | ||
* Represents single popover item | ||
*/ | ||
export type PopoverItem = PopoverItemWithConfirmation | PopoverItemWithoutConfirmation | ||
export type PopoverItem = PopoverItemWithConfirmation | PopoverItemWithoutConfirmation | PopoverItemWithChildren | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
656070
12574