@pie-players/pie-tool-annotation-toolbar 1.0.0-beta.5 → 1.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ import { ToolSelectionAction } from '@pie-players/pie-assessment-toolkit/tools/registration';
2
+ /** Inputs shared by the component and its native element declaration. */
3
+ export interface AnnotationToolbarProps {
4
+ enabled?: boolean;
5
+ /**
6
+ * Actions on the current selection, supplied by whoever mounts this gateway.
7
+ *
8
+ * This strip does not know what they do — it renders the buttons and hands each
9
+ * one the selection. Pairing an action to a capability is the composer's job,
10
+ * which is what keeps a highlighter from naming a dictionary and lets a host
11
+ * contribute an action for a capability PIE does not ship.
12
+ */
13
+ selectionActions?: ToolSelectionAction[] | null;
14
+ }
package/dist/index.d.ts CHANGED
@@ -1 +1,9 @@
1
- export {}
1
+ import { AnnotationToolbarProps } from './element-props.js';
2
+ /** Native host interface for `<pie-tool-annotation-toolbar>`. Properties may be unset until it mounts. */
3
+ export interface PieToolAnnotationToolbarElement extends HTMLElement, AnnotationToolbarProps {
4
+ }
5
+ declare global {
6
+ interface HTMLElementTagNameMap {
7
+ "pie-tool-annotation-toolbar": PieToolAnnotationToolbarElement;
8
+ }
9
+ }