@orangelogic/design-system 2.137.0 → 2.138.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-link-format.C7qLkR5q.js → asset-link-format.Cj3Jb2A9.js} +220 -219
- package/library/chunks/{button.C1SliH9f.js → button.C8bgBiYj.js} +1 -1
- package/library/chunks/{color-swatch-group.-16VIoq6.js → color-swatch-group.CtRKXJDT.js} +14 -6
- package/library/chunks/{color-swatch.C26o9Mgz.js → color-swatch.BPKlNXIX.js} +1 -1
- package/library/chunks/{confirm-popover.UaaAL0w7.js → confirm-popover.CgXY2_uO.js} +3 -3
- package/library/chunks/{dialog.Bb0_EAwb.js → dialog.Bs7RQgSa.js} +2 -2
- package/library/chunks/{document-viewer.Bfg059Ip.js → document-viewer.Bs3U0_wd.js} +6 -5
- package/library/chunks/{dot-pagination.BzRjwmKy.js → dot-pagination.t0VzNnjC.js} +1 -1
- package/library/chunks/{endpoints.tU0_RZ_7.js → endpoints.BlywT4Gl.js} +1 -1
- package/library/chunks/{file-on-demand.j_V2IDwl.js → file-on-demand.BWrBwTOn.js} +9 -9
- package/library/chunks/{folder-select.B2trdP78.js → folder-select.CItC06TB.js} +5 -5
- package/library/chunks/{header.CAG_RmQg.js → header.D_TqvPdB.js} +1 -1
- package/library/chunks/{i18n.Dqb15q5k.js → i18n.BlLEIqQ0.js} +4 -3
- package/library/chunks/{icon-button.BqFraOfp.js → icon-button.D5sM02Cd.js} +1 -1
- package/library/chunks/{iframe.Cg0YBl8p.js → iframe.D3PpeqXx.js} +1 -1
- package/library/chunks/{image.VNvhPhZ1.js → image.qP6cTWCN.js} +1 -1
- package/library/chunks/{input.C_db7iND.js → input.B8CV80Da.js} +1 -1
- package/library/chunks/{option.D5NdA-Cm.js → option.D9SqVdjL.js} +1 -1
- package/library/chunks/{pagination.C_4fPcD4.js → pagination.DAI32_PA.js} +5 -5
- package/library/chunks/{tab-group.CRTjU6He.js → tab-group.e83Yy-jY.js} +3 -3
- package/library/chunks/{tree.BYcnDDKg.js → tree.D7eyb405.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +3 -3
- package/library/components/atoms.js +13 -13
- package/library/components/audio.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +10 -10
- package/library/components/folder-select.js +5 -5
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +6 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +3 -3
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +2 -2
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +12242 -12202
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +11 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +7 -0
- package/library/packages/services/src/api/asset/asset.d.ts +2 -1
- package/library/packages/services/src/api/endpoints.d.ts +1 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/react-web-component.d.ts +4 -0
- package/library/utils.js +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { _ as kd, a as Sa, b as Be, c as Je } from "../chunks/inheritsLoose.BuSn_CvZ.js";
|
|
2
2
|
import { c as ps, a as Bn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
|
|
3
3
|
import { r as Sb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
|
|
4
|
-
import { C as Cb } from "../chunks/image.
|
|
4
|
+
import { C as Cb } from "../chunks/image.qP6cTWCN.js";
|
|
5
5
|
import Mb from "./resize-observer.js";
|
|
6
6
|
import { r as Db, R as Pb, a as Rp, b as Lb } from "../chunks/resizable-component.styles.CAfXABBc.js";
|
|
7
7
|
import { c as Rb } from "../chunks/component.styles.CRO4Odto.js";
|
|
8
8
|
import { b as Ib } from "../chunks/browser.BHOCIF_A.js";
|
|
9
9
|
import { c as Ob } from "../chunks/custom-element.L4WJXn1j.js";
|
|
10
|
-
import { L as kb } from "../chunks/i18n.
|
|
10
|
+
import { L as kb } from "../chunks/i18n.BlLEIqQ0.js";
|
|
11
11
|
import { w as Ki } from "../chunks/watch.CThbualB.js";
|
|
12
12
|
import { i as Bb, x as Qc } from "../chunks/lit-element.jLBm65_O.js";
|
|
13
13
|
import { n as Ri } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
package/library/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { default as CxButton } from '../../../atoms/src/components/button/button
|
|
|
2
2
|
import { default as CxIconButton } from '../../../atoms/src/components/icon-button/icon-button.ts';
|
|
3
3
|
import { default as CxInput } from '../../../atoms/src/components/input/input.ts';
|
|
4
4
|
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
5
|
+
import { default as CxTooltip } from '../../../atoms/src/components/tooltip/tooltip.ts';
|
|
5
6
|
import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
|
|
6
7
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
7
8
|
import { AssetFormatValue } from '../../../types/src/asset-format-picker';
|
|
@@ -22,10 +23,12 @@ export default class CxAssetFormatPicker extends CortexElement {
|
|
|
22
23
|
'cx-icon-button': typeof CxIconButton;
|
|
23
24
|
'cx-input': typeof CxInput;
|
|
24
25
|
'cx-space': typeof CxSpace;
|
|
26
|
+
'cx-tooltip': typeof CxTooltip;
|
|
25
27
|
'cx-typography': typeof CxTypography;
|
|
26
28
|
};
|
|
27
29
|
private readonly localize;
|
|
28
30
|
private apiGetAvailableProxies;
|
|
31
|
+
private apiSearchAssets;
|
|
29
32
|
inputEl?: CxInput;
|
|
30
33
|
/** The currently selected asset format value. */
|
|
31
34
|
value: AssetFormatValue | undefined;
|
|
@@ -33,6 +36,11 @@ export default class CxAssetFormatPicker extends CortexElement {
|
|
|
33
36
|
name: string;
|
|
34
37
|
/** The encrypted asset ID to request formats for. */
|
|
35
38
|
assetId: string;
|
|
39
|
+
/**
|
|
40
|
+
* When true, resolves format labels via the CMS5 Site Builder proxies endpoint, which is gated by
|
|
41
|
+
* the teamspace editor role and returns metadata only — avoiding the link-creation permission wall.
|
|
42
|
+
*/
|
|
43
|
+
isSiteBuilder: boolean;
|
|
36
44
|
/** Whether a value is required. */
|
|
37
45
|
required: boolean;
|
|
38
46
|
/** Disables the picker. */
|
|
@@ -45,6 +53,8 @@ export default class CxAssetFormatPicker extends CortexElement {
|
|
|
45
53
|
* promise that resolves to an `AssetFormatValue` or null when cancelled.
|
|
46
54
|
*/
|
|
47
55
|
onRequestAssetFormat: ((assetId: string, value?: AssetFormatValue) => Promise<AssetFormatValue | null | undefined>) | undefined;
|
|
56
|
+
/** Set to false once an access check confirms the asset is not reachable by the current user. */
|
|
57
|
+
private canAccess;
|
|
48
58
|
private get hasValue();
|
|
49
59
|
private get resolvedLabel();
|
|
50
60
|
private get canReset();
|
|
@@ -52,6 +62,7 @@ export default class CxAssetFormatPicker extends CortexElement {
|
|
|
52
62
|
private handleResetClick;
|
|
53
63
|
handleAssetIdChange(): Promise<void>;
|
|
54
64
|
handleValueChange(): Promise<void>;
|
|
65
|
+
private renderButtonContainer;
|
|
55
66
|
private renderFormatDisplay;
|
|
56
67
|
render(): import('lit').TemplateResult<1>;
|
|
57
68
|
}
|
package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { default as CxGridItem } from '../../../atoms/src/components/grid-item/g
|
|
|
5
5
|
import { default as CxIconButton } from '../../../atoms/src/components/icon-button/icon-button.ts';
|
|
6
6
|
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
7
7
|
import { default as CxSpinner } from '../../../atoms/src/components/spinner/spinner.ts';
|
|
8
|
+
import { default as CxTooltip } from '../../../atoms/src/components/tooltip/tooltip.ts';
|
|
8
9
|
import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
|
|
9
10
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
10
11
|
import { default as CxCropper } from '../../../molecules/src/cropper/cropper.ts';
|
|
@@ -34,12 +35,14 @@ export default class CxAssetTransformationDialog extends CortexElement {
|
|
|
34
35
|
'cx-icon-button': typeof CxIconButton;
|
|
35
36
|
'cx-space': typeof CxSpace;
|
|
36
37
|
'cx-spinner': typeof CxSpinner;
|
|
38
|
+
'cx-tooltip': typeof CxTooltip;
|
|
37
39
|
'cx-typography': typeof CxTypography;
|
|
38
40
|
};
|
|
39
41
|
private readonly localize;
|
|
40
42
|
private fetchAssetController?;
|
|
41
43
|
private readonly hasSlotController;
|
|
42
44
|
private apiGetAvailableProxies;
|
|
45
|
+
private apiSearchAssets;
|
|
43
46
|
/** Stores the accessible trigger element for focus return and ARIA updates. */
|
|
44
47
|
private accessibleTrigger;
|
|
45
48
|
private readonly triggerSlot;
|
|
@@ -78,8 +81,11 @@ export default class CxAssetTransformationDialog extends CortexElement {
|
|
|
78
81
|
private asset;
|
|
79
82
|
/** Available proxy formats fetched alongside the asset. */
|
|
80
83
|
private proxies;
|
|
84
|
+
/** Set to false once an access check confirms the asset is not reachable by the current user. */
|
|
85
|
+
private canAccess;
|
|
81
86
|
private get hasTransformations();
|
|
82
87
|
handleAssetIdChange(): Promise<void>;
|
|
88
|
+
handleCanAccessChange(): void;
|
|
83
89
|
handleOpenChange(): void;
|
|
84
90
|
/** Syncs disabled state and ARIA attributes on the slotted trigger element.
|
|
85
91
|
* For cx-button/cx-icon-button, ARIA is set on the inner <button> so screen readers
|
|
@@ -100,6 +106,7 @@ export default class CxAssetTransformationDialog extends CortexElement {
|
|
|
100
106
|
private handleSave;
|
|
101
107
|
private handleCancel;
|
|
102
108
|
private handleAssetLinkFormatShow;
|
|
109
|
+
private renderTriggerSlot;
|
|
103
110
|
render(): import('lit').TemplateResult<1>;
|
|
104
111
|
}
|
|
105
112
|
declare global {
|
|
@@ -43,8 +43,9 @@ export declare function apiGetTransformAssetLink({ assetId, extension, format, s
|
|
|
43
43
|
export declare function apiGetAssets({ extraFields, getPermanentAssetsPaths, isSiteBuilder, recordIds, securityByPassToken, token, }: GetAssetsRequest): Promise<GetAssetsResponse>;
|
|
44
44
|
export declare function apiGetAssetsInFolder({ countPerPage, directParentFolderIdentifier, extraFields, getPermanentAssetsPaths, isSiteBuilder, limitedDocTypes, pageNumber, parentFolderIdentifier, searchTerm, securityByPassToken, sortOrder, token, }: GetAssetsInFolderRequest): Promise<GetAssetsInFolderResponse>;
|
|
45
45
|
export declare function apiGetCropFocusMode({ autoCropMode, cropHeight, cropWidth, imageUrl, useSession, }: GetCropZoneSuggestionRequest): Promise<GetCropZoneSuggestionResponse | null>;
|
|
46
|
-
export declare function apiGetAvailableProxies({ assetRecordId, siteUrl, token, useSession, }: {
|
|
46
|
+
export declare function apiGetAvailableProxies({ assetRecordId, isSiteBuilder, siteUrl, token, useSession, }: {
|
|
47
47
|
assetRecordId: string;
|
|
48
|
+
isSiteBuilder?: boolean;
|
|
48
49
|
siteUrl?: string;
|
|
49
50
|
token?: string;
|
|
50
51
|
useSession?: string;
|
|
@@ -38,6 +38,7 @@ export declare enum CHAPTER_API_ENDPOINT {
|
|
|
38
38
|
export declare enum CMS5_API_ENDPOINT {
|
|
39
39
|
BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1",
|
|
40
40
|
GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1",
|
|
41
|
+
GET_AVAILABLE_PROXIES = "webapi/cms/cms5/availableproxies_42YX_v1",
|
|
41
42
|
GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1",
|
|
42
43
|
GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1",
|
|
43
44
|
GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1",
|
|
@@ -7283,6 +7283,10 @@
|
|
|
7283
7283
|
* The encrypted asset ID to request formats for.
|
|
7284
7284
|
*/
|
|
7285
7285
|
assetId?: string;
|
|
7286
|
+
/**
|
|
7287
|
+
* When true, resolves format labels via the CMS5 Site Builder proxies endpoint, which is gated by the teamspace editor role and returns metadata only — avoiding the link-creation permission wall.
|
|
7288
|
+
*/
|
|
7289
|
+
isSiteBuilder?: boolean;
|
|
7286
7290
|
/**
|
|
7287
7291
|
* Whether a value is required.
|
|
7288
7292
|
*/
|
package/library/utils.js
CHANGED
|
@@ -12,7 +12,7 @@ import { d as Fe } from "./chunks/default-value.COZopaet.js";
|
|
|
12
12
|
import { d as be } from "./chunks/drag.DXEXVXPv.js";
|
|
13
13
|
import { f as O } from "./chunks/form.K1XOtu3S.js";
|
|
14
14
|
import { F as ke, c as Ve, g as Oe, v as Ye, a as Ue } from "./chunks/form.K1XOtu3S.js";
|
|
15
|
-
import { L as Pe, r as _e } from "./chunks/i18n.
|
|
15
|
+
import { L as Pe, r as _e } from "./chunks/i18n.BlLEIqQ0.js";
|
|
16
16
|
import { c as Xe, q as Be } from "./chunks/math.DuKzLacZ.js";
|
|
17
17
|
import { g as Ge, l as $e, s as ze, u as qe } from "./chunks/scroll.xtO5yojm.js";
|
|
18
18
|
import { j as x } from "./chunks/dom.acWb8KCK.js";
|