@orangelogic/design-system 4.42.0 → 4.43.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "4.42.0",
4
+ "version": "4.43.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -3,12 +3,14 @@ interface ICommentLineProps {
3
3
  comments: IComment[];
4
4
  onCommentClick: (args: {
5
5
  id: string;
6
+ subClipId?: string;
6
7
  }, marker: HTMLElement) => void;
7
8
  onCommentMouseLeave: (args: {
8
9
  id: string;
9
10
  }) => void;
10
11
  onCommentMouseOver: (args: {
11
12
  id: string;
13
+ subClipId?: string;
12
14
  }, marker: HTMLElement) => void;
13
15
  seekToTime: (time: number) => void;
14
16
  }
@@ -16,6 +16,7 @@ export interface IComment {
16
16
  id: string;
17
17
  occurrenceId?: string;
18
18
  startTime: number;
19
+ subClipId?: string;
19
20
  subClipIds?: string[];
20
21
  }
21
22
  export type TimelineMarker = IComment & {
@@ -25,6 +26,7 @@ export type CommentMarkerEventArgs = {
25
26
  id: string;
26
27
  markerCenterX?: number;
27
28
  markerTop?: number;
29
+ subClipId?: string;
28
30
  timelineLeft?: number;
29
31
  timelineRight?: number;
30
32
  };
@@ -46,8 +46,8 @@ import { default as CxVideoEditor } from '../video-editor/video-editor';
46
46
  * @event cx-video-prev-frame - Fired when stepping to the previous frame.
47
47
  * @event cx-video-enter-fullscreen - Fired when entering fullscreen.
48
48
  * @event cx-video-exit-fullscreen - Fired when exiting fullscreen.
49
- * @event {{ id: string; markerCenterX?: number; markerTop?: number; timelineLeft?: number; timelineRight?: number }} cx-video-comment-click - Fired when a comment is clicked.
50
- * @event {{ id: string; markerCenterX?: number; markerTop?: number; timelineLeft?: number; timelineRight?: number }} cx-video-comment-mouseover - Fired when hovering a comment marker.
49
+ * @event {{ id: string; markerCenterX?: number; markerTop?: number; subClipId?: string; timelineLeft?: number; timelineRight?: number }} cx-video-comment-click - Fired when a comment is clicked.
50
+ * @event {{ id: string; markerCenterX?: number; markerTop?: number; subClipId?: string; timelineLeft?: number; timelineRight?: number }} cx-video-comment-mouseover - Fired when hovering a comment marker.
51
51
  * @event {{ id: string }} cx-video-comment-mouseleave - Fired when leaving a comment marker.
52
52
  * @event {{ name: string; data: unknown }} cx-video-event - Generic player event bridge.
53
53
  * @event {{ layer: HTMLElement | null }} cx-video-annotation-layer-change - Fired when the player (re)mounts its annotation layer div; hosts mount annotators into this element.
@@ -110,7 +110,11 @@ export default class CxMarkdownViewer extends CortexElement {
110
110
  * byte-exact. One ending for the whole document: a mixed-ending source comes back uniformly CRLF.
111
111
  */
112
112
  private restoreLineEndings;
113
- /** Prism escapes its input, so the result is safe to pass to `unsafeHTML` unsanitized. */
113
+ /**
114
+ * Prism escapes its input, so the result is safe to pass to `unsafeHTML` unsanitized. Without the
115
+ * markdown grammar the source is shown escaped and unhighlighted: `highlight` would throw and
116
+ * leave the whole viewer unrendered.
117
+ */
114
118
  private highlightSource;
115
119
  /** Formatting and table controls for the rich view. */
116
120
  private renderFormatToolbar;
@@ -0,0 +1 @@
1
+ export declare function restorePrismGlobal(): void;
@@ -0,0 +1,2 @@
1
+ import { default as BundledPrism } from 'prismjs';
2
+ export declare const hostPrism: typeof BundledPrism;
@@ -11487,7 +11487,7 @@
11487
11487
  /**
11488
11488
  *
11489
11489
  */
11490
- comments?: { "createUserId": string; "editTimestamp": number; "endTime": number; "id": string; "occurrenceId": string; "startTime": number; "subClipIds": string[]; }[];
11490
+ comments?: { "createUserId": string; "editTimestamp": number; "endTime": number; "id": string; "occurrenceId": string; "startTime": number; "subClipId": string; "subClipIds": string[]; }[];
11491
11491
  /**
11492
11492
  *
11493
11493
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "4.42.0",
4
+ "version": "4.43.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {