@orangelogic/design-system 2.153.0 → 2.154.0
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.
- package/library/components/sidebar.js +2 -2
- package/library/components/types.js +990 -979
- package/library/package.json +1 -1
- package/library/packages/events/src/cx-annotation-button-click.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/organisms/src/annotator-comment/annotator-comment.d.ts +10 -0
- package/library/react-web-component.d.ts +4 -0
- package/package.json +1 -1
package/library/package.json
CHANGED
|
@@ -10,6 +10,7 @@ export * from './cx-after-collapse';
|
|
|
10
10
|
export * from './cx-after-expand';
|
|
11
11
|
export * from './cx-after-hide';
|
|
12
12
|
export * from './cx-after-show';
|
|
13
|
+
export * from './cx-annotation-button-click';
|
|
13
14
|
export * from './cx-annotator-tool-change';
|
|
14
15
|
export * from './cx-asset-data-display-slot-change';
|
|
15
16
|
export * from './cx-asset-format-picker-select';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnnotationState } from '@markerjs/markerjs3';
|
|
2
|
+
import { CxAnnotationButtonClickEvent } from '../../../events/src/cx-annotation-button-click';
|
|
2
3
|
import { CxTimeBasedChangeEvent } from '../../../events/src/cx-time-based-change';
|
|
3
4
|
import { default as CxComment } from '../comment/comment.ts';
|
|
4
5
|
import { TimecodeMode } from '../../../types/src/video-editor';
|
|
@@ -13,6 +14,7 @@ declare global {
|
|
|
13
14
|
/**
|
|
14
15
|
* @summary CxAnnotatorComment - An extension of the CxComment component that allows users to annotate a specific element.
|
|
15
16
|
*
|
|
17
|
+
* @event {{ active: boolean }} cx-annotation-button-click - Emitted (bubbles, composed) via the inner `cx-annotator-comment-menu` when the annotation (draw) tool is toggled. `active` is `true` when annotation mode is opened, `false` when it is closed.
|
|
16
18
|
* @event {{ active: boolean; tool: AnnotatorTool }} cx-annotator-tool-change - Emitted via the inner `cx-annotator` when a drawing tool is selected (`active: true`) or the active tool icon is clicked again to return to select mode (`active: false`). `tool` is the `AnnotatorTool` value (`arrow-marker`, `line-marker`, `rectangle-marker`, `freehand-marker`). Bubbles and composed.
|
|
17
19
|
*/
|
|
18
20
|
export default class CxAnnotatorComment extends CxComment {
|
|
@@ -57,6 +59,13 @@ export default class CxAnnotatorComment extends CxComment {
|
|
|
57
59
|
* Whether the time based feature is enabled.
|
|
58
60
|
*/
|
|
59
61
|
timeBased: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* By default, activating the annotation tool turns the time based feature on,
|
|
64
|
+
* because annotations are tied to a timestamp. Set this to skip that
|
|
65
|
+
* auto-enable — e.g. media without a timeline (images/PDFs) or flows that
|
|
66
|
+
* intentionally allow timeless annotations.
|
|
67
|
+
*/
|
|
68
|
+
noAutoTimeBasedOnAnnotate: boolean;
|
|
60
69
|
/**
|
|
61
70
|
* The time values for the time based feature.
|
|
62
71
|
*/
|
|
@@ -72,6 +81,7 @@ export default class CxAnnotatorComment extends CxComment {
|
|
|
72
81
|
runFirstUpdated(): void;
|
|
73
82
|
handleTimeChange(): void;
|
|
74
83
|
handleTimeBasedChange(event: CxTimeBasedChangeEvent): void;
|
|
84
|
+
handleAnnotationButtonClick(event: CxAnnotationButtonClickEvent): void;
|
|
75
85
|
private get timecodeExtension();
|
|
76
86
|
private handleUndoRequest;
|
|
77
87
|
private handleRedoRequest;
|
|
@@ -7589,6 +7589,10 @@
|
|
|
7589
7589
|
* Whether the time based feature is enabled.
|
|
7590
7590
|
*/
|
|
7591
7591
|
timeBased?: boolean;
|
|
7592
|
+
/**
|
|
7593
|
+
* By default, activating the annotation tool turns the time based feature on, because annotations are tied to a timestamp. Set this to skip that auto-enable — e.g. media without a timeline (images/PDFs) or flows that intentionally allow timeless annotations.
|
|
7594
|
+
*/
|
|
7595
|
+
noAutoTimeBasedOnAnnotate?: boolean;
|
|
7592
7596
|
/**
|
|
7593
7597
|
* The time values for the time based feature.
|
|
7594
7598
|
*/
|