@orangelogic/design-system 2.144.0 → 2.146.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.
Files changed (27) hide show
  1. package/library/chunks/{asset-link-format.D6XVEha7.js → asset-link-format.CU3qvBEO.js} +120 -114
  2. package/library/chunks/{document-viewer.PHoFv8xz.js → document-viewer.CMHuC2Di.js} +1193 -1171
  3. package/library/chunks/{image.BzmclWBR.js → image.QVlPFadX.js} +1 -1
  4. package/library/chunks/{number.B4PQLJIg.js → number.CtCaI0T_.js} +23 -17
  5. package/library/chunks/{time.BSmpFe2G.js → time.DWfbnPnM.js} +1 -1
  6. package/library/components/asset-link-format.js +2 -2
  7. package/library/components/atoms.js +1 -1
  8. package/library/components/audio.js +1 -1
  9. package/library/components/cropper.js +2 -2
  10. package/library/components/document-viewer.js +1 -1
  11. package/library/components/file-on-demand.js +1 -1
  12. package/library/components/format-time.js +1 -1
  13. package/library/components/organisms.js +1 -1
  14. package/library/components/types.js +8093 -8025
  15. package/library/css/ol-base.css +6 -6
  16. package/library/package.json +1 -1
  17. package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +4 -0
  18. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +8 -0
  19. package/library/packages/organisms/src/content-builder/styleController.d.ts +3 -0
  20. package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.d.ts +12 -0
  21. package/library/packages/react-web-component.d.ts +14768 -2717
  22. package/library/packages/services/src/api/cms5/cms5.d.ts +7 -0
  23. package/library/packages/types/src/content-builder.d.ts +4 -0
  24. package/library/packages/types/src/dam-view.d.ts +23 -0
  25. package/library/react-web-component.d.ts +4 -0
  26. package/library/utils.js +3 -3
  27. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { EditorMode, Permission } from '../../../../types/src/content-builder';
2
+ import { DamCustomToolbarButton, DamViewAvailableButtonDetail } from '../../../../types/src/dam-view';
2
3
  import { AddTemplateRequest, AddTemplateResponse, GetAdhocPropertiesResponse, GetBlockTemplatesResponse, GetBlockTypesResponse, GetDamViewAssetStatusesResponse, GetDamViewAssetTypesResponse, GetDamViewAvailableButtonsResponse, GetDamViewAvailableFormsResponse, GetDamViewAvailableLevelsOfAccessResponse, GetDamViewAvailablePagesResponse, GetDamViewAvailablePanelsResponse, GetDamViewAvailableSpacesResponse, GetDamViewAvailableTemplatesResponse, GetDamViewDisplayModeOptionsResponse, GetPagesForBlockTemplateResponse, GetTemplatesResponse, UpdateTemplateRequest, UpdateTemplateResponse } from './cms5.types';
3
4
 
4
5
  export declare function apiAddTemplate({ blockType, description, name, settings, }: AddTemplateRequest): Promise<AddTemplateResponse | null>;
@@ -31,6 +32,12 @@ export declare function apiGetDamViewAvailableForms(params?: {
31
32
  export declare function apiGetDamViewAvailableButtons(params?: {
32
33
  teamspaceModule?: string;
33
34
  }): Promise<GetDamViewAvailableButtonsResponse>;
35
+ /**
36
+ * Maps the `detail` (backend `QuickAction`) of a `getavailablebuttons_42JU_v1` option
37
+ * onto the custom-toolbar-button editor's field shape, so selecting an existing button
38
+ * pre-fills its real action/config instead of the "new button" defaults.
39
+ */
40
+ export declare function mapDamViewAvailableButtonDetail(detail: DamViewAvailableButtonDetail | null): Partial<DamCustomToolbarButton>;
34
41
  export declare function apiGetDamViewAssetStatuses(): Promise<GetDamViewAssetStatusesResponse>;
35
42
  export declare function apiGetDamViewAssetTypes(): Promise<GetDamViewAssetTypesResponse>;
36
43
  export declare function apiGetDamViewAvailablePanels(params?: {
@@ -125,6 +125,10 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
125
125
  };
126
126
  helpText?: string | ((record: Record<string, unknown>) => string);
127
127
  id: string;
128
+ infoTextConfigs?: {
129
+ /** CSS color value applied to the info-text label and help text. */
130
+ color?: string;
131
+ };
128
132
  inputConfigs?: {
129
133
  label?: string;
130
134
  suffix?: {
@@ -47,3 +47,26 @@ export type DamCustomToolbarButton = {
47
47
  type: DamToolbarButtonType;
48
48
  workflowId?: string;
49
49
  };
50
+ /**
51
+ * Full button configuration returned alongside each `getavailablebuttons_42JU_v1`
52
+ * option, used to pre-fill the edit form when the user selects an existing button.
53
+ * Enum-shaped fields (`actionOnClick`, `buttonAppearanceType`, `customButtonType`)
54
+ * carry the backend's PascalCase enum member names verbatim (e.g. `'OpenForm'`).
55
+ */
56
+ export type DamViewAvailableButtonDetail = {
57
+ actionOnClick: string;
58
+ buttonActionID: string;
59
+ buttonAppearanceType: string;
60
+ completionMessage: string;
61
+ customButtonType: string;
62
+ formToOpen: string;
63
+ icon: string;
64
+ levelOfAccess: string;
65
+ link: string;
66
+ openInNewTab: boolean;
67
+ pageID: string;
68
+ spaceID: string;
69
+ subType: string;
70
+ tooltip: string;
71
+ type: string;
72
+ };
@@ -6561,6 +6561,10 @@
6561
6561
  * When true, adds a Font Awesome section alongside the default Cortex icon library.
6562
6562
  */
6563
6563
  fontAwesome?: boolean;
6564
+ /**
6565
+ * When true, hides the "Custom" icon option (asset picker) from the select footer and button-mode menu.
6566
+ */
6567
+ noCustomOption?: boolean;
6564
6568
  /**
6565
6569
  * When true, renders a cx-bicolor-picker below the icon selector. <br/>@default false
6566
6570
  */
package/library/utils.js CHANGED
@@ -26,13 +26,13 @@ import { C as Sr } from "./chunks/calendar-grid.CvdcwfTo.js";
26
26
  import { b as Ar, e as Ir, f as Lr, g as vr, a as br, i as Rr, d as Vr, c as Fr, n as kr, p as Or, t as Yr } from "./chunks/date.dSYNLBVO.js";
27
27
  import { e as c, a as u, D as m } from "./chunks/date-picker.DTUICGb9.js";
28
28
  import { f as Ur } from "./chunks/content-builder.DZRw6hpX.js";
29
- import { c as _r, f as Hr, e as Xr, b as Wr, g as Br, d as $r, i as Gr, r as zr, a as qr } from "./chunks/image.BzmclWBR.js";
29
+ import { c as _r, f as Hr, e as Xr, b as Wr, g as Br, d as $r, i as Gr, r as zr, a as qr } from "./chunks/image.QVlPFadX.js";
30
30
  import { b as Zr, e as jr } from "./chunks/waveform.1U9U_0rd.js";
31
- import { a as Kr, b as ta, c as ea, e as ra, d as aa, f as sa, g as oa, r as na, s as ia } from "./chunks/number.B4PQLJIg.js";
31
+ import { a as Kr, b as ta, c as ea, e as ra, d as aa, f as sa, g as oa, r as na, s as ia } from "./chunks/number.CtCaI0T_.js";
32
32
  import { s as ca } from "./chunks/parse.Cu5nBDTb.js";
33
33
  import { b as ma, d as fa, e as ha, f as ga, m as da, g as pa, h as Da, l as Ta, p as wa, w as Ca, v as xa, a as Ma, c as ya, s as Sa, r as Ea, o as Aa, t as Ia, n as La, q as va, i as ba, u as Ra } from "./chunks/string.BmBJ_BLT.js";
34
34
  import { g as Fa, a as ka } from "./chunks/template.ClovJacp.js";
35
- import { c as Ya, f as Na, a as Ua, g as Pa } from "./chunks/time.BSmpFe2G.js";
35
+ import { c as Ya, f as Na, a as Ua, g as Pa } from "./chunks/time.DWfbnPnM.js";
36
36
  import { b as Ha } from "./chunks/transformation.c-RS37zA.js";
37
37
  function n(t) {
38
38
  const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.144.0",
4
+ "version": "2.146.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {