@orangelogic/design-system 2.123.0 → 2.124.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/{asset.CPPr2-ir.js → asset.D_VITxRH.js} +6 -6
- package/library/chunks/{list-editor.CSZvS-Fm.js → list-editor.DOob19sH.js} +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/list-editor.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/types.js +23956 -23709
- package/library/package.json +1 -1
- package/library/packages/events/src/events.d.ts +0 -1
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +9 -3
- package/library/packages/organisms/src/_v1/comment/comment.d.ts +67 -0
- package/library/packages/organisms/src/_v1/comment/components/comment-menu/comment-menu.d.ts +32 -0
- package/library/packages/organisms/src/_v1/comment/extensions/time.d.ts +63 -0
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +0 -4
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -1
- package/library/packages/organisms/src/index.d.ts +1 -0
- package/library/packages/types/src/asset-format-picker.d.ts +0 -1
- package/library/packages/types/src/content-builder.d.ts +2 -2
- package/library/react-web-component.d.ts +5 -1
- package/package.json +1 -1
- package/library/packages/events/src/cx-asset-format-picker-delete.d.ts +0 -6
package/library/package.json
CHANGED
|
@@ -63,7 +63,6 @@ export * from './cx-dot-status-click';
|
|
|
63
63
|
export * from './cx-download-format-picker-delete';
|
|
64
64
|
export * from './cx-download-format-picker-select';
|
|
65
65
|
export * from './cx-download-format-request-status';
|
|
66
|
-
export * from './cx-asset-format-picker-delete';
|
|
67
66
|
export * from './cx-asset-format-picker-select';
|
|
68
67
|
export * from './cx-drag-end';
|
|
69
68
|
export * from './cx-drag-start';
|
|
@@ -11,11 +11,11 @@ import { CSSResultGroup } from 'lit';
|
|
|
11
11
|
* @summary The `cx-asset-format-picker` component lets users choose and clear an asset display format.
|
|
12
12
|
* Works for any asset type (video, audio, etc.) based on the callback provided.
|
|
13
13
|
*
|
|
14
|
-
* @event cx-asset-format-select - Emitted when a format is selected. Detail is an `AssetFormatValue`.
|
|
15
|
-
* @event cx-asset-format-delete - Emitted when the selected format is cleared.
|
|
14
|
+
* @event cx-asset-format-select - Emitted when a format is selected or reset to its default. Detail is an `AssetFormatValue`.
|
|
16
15
|
* @event cx-asset-request-status - Emitted when the format request status changes.
|
|
17
16
|
*/
|
|
18
17
|
export default class CxAssetFormatPicker extends CortexElement {
|
|
18
|
+
#private;
|
|
19
19
|
static readonly styles: CSSResultGroup;
|
|
20
20
|
static readonly dependencies: {
|
|
21
21
|
'cx-button': typeof CxButton;
|
|
@@ -25,6 +25,7 @@ export default class CxAssetFormatPicker extends CortexElement {
|
|
|
25
25
|
'cx-typography': typeof CxTypography;
|
|
26
26
|
};
|
|
27
27
|
private readonly localize;
|
|
28
|
+
private apiGetAvailableProxies;
|
|
28
29
|
inputEl?: CxInput;
|
|
29
30
|
/** The currently selected asset format value. */
|
|
30
31
|
value: AssetFormatValue | undefined;
|
|
@@ -36,6 +37,8 @@ export default class CxAssetFormatPicker extends CortexElement {
|
|
|
36
37
|
required: boolean;
|
|
37
38
|
/** Disables the picker. */
|
|
38
39
|
disabled: boolean;
|
|
40
|
+
/** The format code to reset to when the user clicks the reset button (e.g. 'Web', 'WebHigh'). */
|
|
41
|
+
defaultFormat: string;
|
|
39
42
|
/**
|
|
40
43
|
* A callback invoked when the user requests to select an asset format.
|
|
41
44
|
* It receives the asset ID and the current value, and should return a
|
|
@@ -43,8 +46,11 @@ export default class CxAssetFormatPicker extends CortexElement {
|
|
|
43
46
|
*/
|
|
44
47
|
onRequestAssetFormat: ((assetId: string, value?: AssetFormatValue) => Promise<AssetFormatValue | null | undefined>) | undefined;
|
|
45
48
|
private get hasValue();
|
|
49
|
+
private get resolvedLabel();
|
|
50
|
+
private get canReset();
|
|
46
51
|
private handleRequestFormatClick;
|
|
47
|
-
private
|
|
52
|
+
private handleResetClick;
|
|
53
|
+
handleAssetIdChange(): Promise<void>;
|
|
48
54
|
handleValueChange(): Promise<void>;
|
|
49
55
|
private renderFormatDisplay;
|
|
50
56
|
render(): import('lit').TemplateResult<1>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CxTimeBasedChangeEvent } from '../../../../events/src/cx-time-based-change';
|
|
2
|
+
import { default as CxComment } from '../../comment/comment.ts';
|
|
3
|
+
import { TimecodeMode } from '../../../../types/src/video-editor';
|
|
4
|
+
import { default as CxCommentMenuV1 } from './components/comment-menu/comment-menu';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @summary CxCommentV1 - Temporary fork of `cx-comment` that restores the time-based/timecode
|
|
8
|
+
* feature removed from `cx-comment` by the cx-annotator refactor. Kept for Cortex core
|
|
9
|
+
* compatibility until core migrates off the old timecode API; remove once no longer needed.
|
|
10
|
+
*/
|
|
11
|
+
export default class CxCommentV1 extends CxComment {
|
|
12
|
+
static readonly dependencies: {
|
|
13
|
+
'cx-comment-menu-v1': typeof CxCommentMenuV1;
|
|
14
|
+
'cx-comment-menu': typeof import('../../comment/components/comment-menu/comment-menu').default;
|
|
15
|
+
'cx-dialog': typeof import('../../../../atoms/src/index.ts').CxDialog;
|
|
16
|
+
'cx-mentions': typeof import('../../../../molecules/src/index.ts').CxMentions;
|
|
17
|
+
'cx-popup': typeof import('../../../../atoms/src/index.ts').CxPopup;
|
|
18
|
+
'cx-space': typeof import('../../../../atoms/src/index.ts').CxSpace;
|
|
19
|
+
'cx-timecode': typeof import('../../../../atoms/src/index.ts').CxTimecode;
|
|
20
|
+
};
|
|
21
|
+
readonly commentMenu: CxCommentMenuV1;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the time based button should be shown in the comment menu.
|
|
24
|
+
*/
|
|
25
|
+
canUseTimeBased: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* When true, hides the time based icon button in the comment menu while
|
|
28
|
+
* still allowing the time based feature to function (e.g. `timeBased`
|
|
29
|
+
* state is still respected). Useful when the parent wants to enable the
|
|
30
|
+
* feature without exposing the toggle button to end users.
|
|
31
|
+
*/
|
|
32
|
+
hideTimeBasedIcon: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the time based feature is enabled.
|
|
35
|
+
*/
|
|
36
|
+
timeBased: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The time values for the time based feature.
|
|
39
|
+
*/
|
|
40
|
+
time: number[];
|
|
41
|
+
/**
|
|
42
|
+
* The timecode mode for the time based feature.
|
|
43
|
+
*/
|
|
44
|
+
timecodeMode: TimecodeMode;
|
|
45
|
+
/**
|
|
46
|
+
* The frame rate for the time based feature.
|
|
47
|
+
*/
|
|
48
|
+
frameRate: number;
|
|
49
|
+
/**
|
|
50
|
+
* Legacy alias for `disabledFullscreen` using the pre-rename attribute name
|
|
51
|
+
* (`disable-fullscreen`) that Cortex core still sets. Setting this also sets
|
|
52
|
+
* `disabledFullscreen`, which is what `cx-comment` actually acts on.
|
|
53
|
+
*/
|
|
54
|
+
disableFullscreen: boolean;
|
|
55
|
+
handleDisableFullscreenChange(): void;
|
|
56
|
+
runFirstUpdated(): void;
|
|
57
|
+
handleTimeChange(): void;
|
|
58
|
+
handleTimeBasedChange(event: CxTimeBasedChangeEvent): void;
|
|
59
|
+
/** Shared timecode config for both the initial extension and `setTime` updates. */
|
|
60
|
+
private get timecodeOptions();
|
|
61
|
+
protected renderMenu(): import('lit').TemplateResult<1>;
|
|
62
|
+
}
|
|
63
|
+
declare global {
|
|
64
|
+
interface HTMLElementTagNameMap {
|
|
65
|
+
'cx-comment-v1': CxCommentV1;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as CxCommentMenu } from '../../../../comment/components/comment-menu/comment-menu';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @summary CxCommentMenuV1 - Temporary fork of `cx-comment-menu` that restores the time-based/timecode
|
|
5
|
+
* toggle button removed by the cx-annotator refactor. Used only by `cx-comment-v1`.
|
|
6
|
+
*/
|
|
7
|
+
export default class CxCommentMenuV1 extends CxCommentMenu {
|
|
8
|
+
static readonly dependencies: {
|
|
9
|
+
'cx-button': typeof import('../../../../../../atoms/src/index.ts').CxButton;
|
|
10
|
+
'cx-card': typeof import('../../../../../../atoms/src/index.ts').CxCard;
|
|
11
|
+
'cx-icon-button': typeof import('../../../../../../atoms/src/index.ts').CxIconButton;
|
|
12
|
+
'cx-input': typeof import('../../../../../../atoms/src/index.ts').CxInput;
|
|
13
|
+
'cx-popup': typeof import('../../../../../../atoms/src/index.ts').CxPopup;
|
|
14
|
+
'cx-space': typeof import('../../../../../../atoms/src/index.ts').CxSpace;
|
|
15
|
+
'cx-tooltip': typeof import('../../../../../../atoms/src/index.ts').CxTooltip;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Whether the time based button should be shown in the comment menu.
|
|
19
|
+
*/
|
|
20
|
+
canUseTimeBased: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the time based feature is enabled.
|
|
23
|
+
*/
|
|
24
|
+
timeBased: boolean;
|
|
25
|
+
protected handleTimeBasedClick(): void;
|
|
26
|
+
protected renderRightActions(): import('lit').TemplateResult<1>;
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
'cx-comment-menu-v1': CxCommentMenuV1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { PluginKey } from '@tiptap/pm/state';
|
|
3
|
+
import { TimecodeMode } from '../../../../../types/src/video-editor';
|
|
4
|
+
|
|
5
|
+
export interface TimeOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The HTML attributes for the time widget.
|
|
8
|
+
* @default {}
|
|
9
|
+
*/
|
|
10
|
+
HTMLAttributes: Record<string, string>;
|
|
11
|
+
/**
|
|
12
|
+
* The frame rate for the time based feature.
|
|
13
|
+
* @default 24
|
|
14
|
+
*/
|
|
15
|
+
frameRate: number;
|
|
16
|
+
/**
|
|
17
|
+
* The placeholder text for the time based feature.
|
|
18
|
+
* @default 'Enter a message...'
|
|
19
|
+
*/
|
|
20
|
+
placeholder: string;
|
|
21
|
+
/**
|
|
22
|
+
* The time values (in seconds) for the time based feature.
|
|
23
|
+
* Can be a single value or a range [start, end].
|
|
24
|
+
* @default []
|
|
25
|
+
*/
|
|
26
|
+
time: number[];
|
|
27
|
+
/**
|
|
28
|
+
* The timecode mode for the time based feature.
|
|
29
|
+
* @default TimecodeMode.Standard
|
|
30
|
+
*/
|
|
31
|
+
timecodeMode: TimecodeMode;
|
|
32
|
+
}
|
|
33
|
+
export interface TimeStorage {
|
|
34
|
+
frameRate: number;
|
|
35
|
+
placeholder: string;
|
|
36
|
+
time: number[];
|
|
37
|
+
timecodeMode: TimecodeMode;
|
|
38
|
+
}
|
|
39
|
+
declare module '@tiptap/core' {
|
|
40
|
+
interface Commands<ReturnType> {
|
|
41
|
+
time: {
|
|
42
|
+
/**
|
|
43
|
+
* Update the time decoration with new values.
|
|
44
|
+
*/
|
|
45
|
+
setTime: (options: {
|
|
46
|
+
frameRate?: number;
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
time?: number[];
|
|
49
|
+
timecodeMode?: TimecodeMode;
|
|
50
|
+
}) => ReturnType;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The plugin key for the time decoration plugin.
|
|
56
|
+
*/
|
|
57
|
+
export declare const TimePluginKey: PluginKey<any>;
|
|
58
|
+
/**
|
|
59
|
+
* This extension adds a node decoration widget at the start of the document
|
|
60
|
+
* displaying the time using cx-timecode component.
|
|
61
|
+
*/
|
|
62
|
+
export declare const Time: Extension<TimeOptions, TimeStorage>;
|
|
63
|
+
export default Time;
|
|
@@ -25,7 +25,6 @@ type Attribute = {
|
|
|
25
25
|
'download-names'?: CxVideo['downloadNames'];
|
|
26
26
|
'download-src'?: CxVideo['downloadSrc'];
|
|
27
27
|
'format': string;
|
|
28
|
-
'format-label'?: string;
|
|
29
28
|
'format-src': string;
|
|
30
29
|
'header-source-field': CxVideo['headerSourceField'];
|
|
31
30
|
height: CxVideo['height'];
|
|
@@ -14,7 +14,6 @@ export default class ConfigsController {
|
|
|
14
14
|
'data-width-percent': string;
|
|
15
15
|
'data-width-pixel': string;
|
|
16
16
|
format?: string;
|
|
17
|
-
'format-label'?: string;
|
|
18
17
|
'format-src'?: string;
|
|
19
18
|
name: import('./blocks/audio/audio').default["name"];
|
|
20
19
|
'parent-record-id'?: string;
|
|
@@ -330,7 +329,6 @@ export default class ConfigsController {
|
|
|
330
329
|
'download-names'?: import('./blocks/video/video').default["downloadNames"];
|
|
331
330
|
'download-src'?: import('./blocks/video/video').default["downloadSrc"];
|
|
332
331
|
format: string;
|
|
333
|
-
'format-label'?: string;
|
|
334
332
|
'format-src': string;
|
|
335
333
|
'header-source-field': import('./blocks/video/video').default["headerSourceField"];
|
|
336
334
|
height: import('./blocks/video/video').default["height"];
|
|
@@ -360,7 +358,6 @@ export default class ConfigsController {
|
|
|
360
358
|
'data-width-percent': string;
|
|
361
359
|
'data-width-pixel': string;
|
|
362
360
|
format?: string;
|
|
363
|
-
'format-label'?: string;
|
|
364
361
|
'format-src'?: string;
|
|
365
362
|
name: import('./blocks/audio/audio').default["name"];
|
|
366
363
|
'parent-record-id'?: string;
|
|
@@ -612,7 +609,6 @@ export default class ConfigsController {
|
|
|
612
609
|
'download-names'?: import('./blocks/video/video').default["downloadNames"];
|
|
613
610
|
'download-src'?: import('./blocks/video/video').default["downloadSrc"];
|
|
614
611
|
format: string;
|
|
615
|
-
'format-label'?: string;
|
|
616
612
|
'format-src': string;
|
|
617
613
|
'header-source-field': import('./blocks/video/video').default["headerSourceField"];
|
|
618
614
|
height: import('./blocks/video/video').default["height"];
|
|
@@ -10,6 +10,7 @@ export { default as CxChartPlanBuilder } from './content-builder/components/char
|
|
|
10
10
|
export { default as CxClusterManagement } from './cluster-management/cluster-management';
|
|
11
11
|
export { default as CxColorSwatchGroup } from './color-swatch-group/color-swatch-group';
|
|
12
12
|
export { default as CxComment } from './comment/comment';
|
|
13
|
+
export { default as CxCommentV1 } from './_v1/comment/comment';
|
|
13
14
|
export { default as CxDamCustomToolbarButtonsEditor } from './dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor';
|
|
14
15
|
export { default as CxContentBuilder } from './content-builder/content-builder';
|
|
15
16
|
export { default as CxDownloader } from './downloader/downloader';
|
|
@@ -49,8 +49,8 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
49
49
|
assetIdKey?: string;
|
|
50
50
|
/** The block-attribute key that stores the selected asset version. Defaults to 'asset-version'. */
|
|
51
51
|
assetVersionKey?: string;
|
|
52
|
-
/** The
|
|
53
|
-
|
|
52
|
+
/** The format code to use when the user resets the picker (e.g. 'Web' for audio, 'WebHigh' for video). */
|
|
53
|
+
defaultFormat?: string;
|
|
54
54
|
/** The block-attribute key that stores the resolved asset source URL. Defaults to 'format-src'. */
|
|
55
55
|
formatSrcKey?: string;
|
|
56
56
|
/** The block-attribute key that stores the human-readable version label. Defaults to 'version-label'. */
|
|
@@ -7696,7 +7696,7 @@
|
|
|
7696
7696
|
/**
|
|
7697
7697
|
* The currently selected asset format value.
|
|
7698
7698
|
*/
|
|
7699
|
-
value?: { assetSrc: string; assetVersion: string; format: string;
|
|
7699
|
+
value?: { assetSrc: string; assetVersion: string; format: string; versionLabel: string; };
|
|
7700
7700
|
/**
|
|
7701
7701
|
* Form field name.
|
|
7702
7702
|
*/
|
|
@@ -7713,6 +7713,10 @@
|
|
|
7713
7713
|
* Disables the picker.
|
|
7714
7714
|
*/
|
|
7715
7715
|
disabled?: boolean;
|
|
7716
|
+
/**
|
|
7717
|
+
* The format code to reset to when the user clicks the reset button (e.g. 'Web', 'WebHigh').
|
|
7718
|
+
*/
|
|
7719
|
+
defaultFormat?: string;
|
|
7716
7720
|
/**
|
|
7717
7721
|
* Make localization attributes reactive eslint-disable-next-line lit/no-native-attributes
|
|
7718
7722
|
*/
|
package/package.json
CHANGED