@orangelogic/design-system 4.41.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.
- package/library/chunks/{block-width.BazivzBm.js → block-width.e6gi5gdK.js} +19 -5
- package/library/chunks/{config-manager.DjEc937J.js → config-manager.DCxcRDo5.js} +1 -1
- package/library/chunks/{markdown.CrAalbNm.js → markdown.Evcme-Lw.js} +566 -566
- package/library/chunks/{src.fE9Cl6UM.js → src.CkVx3FOe.js} +1 -1
- package/library/components/atoms.js +2 -2
- package/library/components/markdown.js +1 -1
- package/library/components/types.js +9332 -9322
- package/library/package.json +1 -1
- package/library/packages/hybrid/video-advanced/src/react/plugins/CommentLine/CommentLine.d.ts +2 -0
- package/library/packages/hybrid/video-advanced/src/react/type.d.ts +2 -0
- package/library/packages/hybrid/video-advanced/src/video-advanced/video-advanced.d.ts +2 -2
- package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +13 -1
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +5 -1
- package/library/packages/molecules/src/markdown-viewer/prism-global.d.ts +1 -0
- package/library/packages/molecules/src/markdown-viewer/prism-global.mock.d.ts +2 -0
- package/library/react-web-component.d.ts +1 -1
- package/package.json +1 -1
package/library/package.json
CHANGED
package/library/packages/hybrid/video-advanced/src/react/plugins/CommentLine/CommentLine.d.ts
CHANGED
|
@@ -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.
|
|
@@ -74,6 +74,7 @@ export default class CxIconPicker extends CortexElement {
|
|
|
74
74
|
private readonly select;
|
|
75
75
|
private readonly customOption;
|
|
76
76
|
private readonly dropdown?;
|
|
77
|
+
private readonly selectVirtualizer?;
|
|
77
78
|
value: {
|
|
78
79
|
name: string;
|
|
79
80
|
src: string;
|
|
@@ -155,6 +156,10 @@ export default class CxIconPicker extends CortexElement {
|
|
|
155
156
|
* @default undefined
|
|
156
157
|
*/
|
|
157
158
|
onRequestAsset: ((type: AssetTypeString, multiple?: boolean) => Promise<Asset | Record<string, Asset>>) | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* Lower-cased text the icon list is filtered by. Set from the select's input in select mode
|
|
161
|
+
* and from the panel's search input in button mode.
|
|
162
|
+
*/
|
|
158
163
|
searchTerm: string;
|
|
159
164
|
/**
|
|
160
165
|
* Recreate the virtualizer for each open because it does not reliably
|
|
@@ -171,6 +176,8 @@ export default class CxIconPicker extends CortexElement {
|
|
|
171
176
|
/** Called by the containing form when reporting errors on save. */
|
|
172
177
|
reportValidity(): boolean;
|
|
173
178
|
handleVariantChange(): Promise<void>;
|
|
179
|
+
/** cx-select re-checks no-option-text only on its own render, not when the virtualizer swaps options. */
|
|
180
|
+
handleSelectOptionsChange(): Promise<void>;
|
|
174
181
|
handleCustomIconValidation(): Promise<void>;
|
|
175
182
|
private updateCustomIconValidity;
|
|
176
183
|
renderOption(item: IconData): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
@@ -200,12 +207,17 @@ export default class CxIconPicker extends CortexElement {
|
|
|
200
207
|
handleContentBuilderAssetSelect(event: CxAssetPickerSelectEvent): Promise<void>;
|
|
201
208
|
handleContentBuilderAssetDelete(): Promise<void>;
|
|
202
209
|
private handleSearchInput;
|
|
210
|
+
/** Native input, not cx-input: cx-input also fires on an option pick, with its label in the input. */
|
|
211
|
+
private handleSelectSearchInput;
|
|
212
|
+
/** cx-select drops its typed filter on blur and on clear. */
|
|
213
|
+
private handleSelectSearchReset;
|
|
203
214
|
private handleMenuSelect;
|
|
204
215
|
private handleBicolorChange;
|
|
205
216
|
private setValueMenuSelect;
|
|
206
217
|
setSelectOptionCurrent(option: HTMLElement, current?: boolean): void;
|
|
207
218
|
selectGetOptionLabel(option: HTMLElement): string;
|
|
208
|
-
|
|
219
|
+
/** Filtering is done by virtualListItems; this runs per rendered option, so it can't track the search term. */
|
|
220
|
+
selectFilterCallback(option: HTMLElement): boolean;
|
|
209
221
|
private renderIcon;
|
|
210
222
|
private renderCustomIconPickerMenuItem;
|
|
211
223
|
private renderCustomIconPicker;
|
|
@@ -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
|
-
/**
|
|
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;
|
|
@@ -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
|
*/
|