@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
@@ -4,9 +4,9 @@
4
4
  */
5
5
 
6
6
  --cx-border-radius-small : 4px; /* 4px */
7
- --cx-border-radius-medium : 6px; /* 6px */
8
- --cx-border-radius-large : 8px; /* 8px */
9
- --cx-border-radius-x-large: 12px; /* 16px */
7
+ --cx-border-radius-medium : 8px; /* 8px */
8
+ --cx-border-radius-large : 12px; /* 12px */
9
+ --cx-border-radius-x-large: 16px; /* 16px */
10
10
  --cx-border-radius-circle : 50%;
11
11
  --cx-border-radius-pill : 9999px;
12
12
 
@@ -82,9 +82,9 @@
82
82
  */
83
83
 
84
84
  /* Buttons */
85
- --cx-button-border-radius-large : var(--cx-border-radius-large);
86
- --cx-button-border-radius-medium : var(--cx-border-radius-large);
87
- --cx-button-border-radius-small : var(--cx-border-radius-large);
85
+ --cx-button-border-radius-large : var(--cx-border-radius-medium);
86
+ --cx-button-border-radius-medium : var(--cx-border-radius-medium);
87
+ --cx-button-border-radius-small : var(--cx-border-radius-medium);
88
88
  --cx-button-font-size-large : var(--cx-font-size-medium);
89
89
  --cx-button-font-size-medium : var(--cx-font-size-small);
90
90
  --cx-button-font-size-small : var(--cx-font-size-x-small);
@@ -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": {
@@ -76,6 +76,10 @@ export default class CxIconPicker extends CortexElement {
76
76
  * When true, adds a Font Awesome section alongside the default Cortex icon library.
77
77
  */
78
78
  fontAwesome: boolean;
79
+ /**
80
+ * When true, hides the "Custom" icon option (asset picker) from the select footer and button-mode menu.
81
+ */
82
+ noCustomOption: boolean;
79
83
  /**
80
84
  * When true, renders a cx-bicolor-picker below the icon selector.
81
85
  * @default false
@@ -40,6 +40,8 @@ export type CxAssetLinkFormatCropFocusModeChangeEvent = CustomEvent<{
40
40
  * @event `cx-asset-link-format-crop-changed` - Emitted when crop input changes are complete.
41
41
  * @event `cx-asset-link-format-crop-apply` - Emitted when the crop settings are applied.
42
42
  * @event `cx-asset-link-format-crop-auto` - Emitted when the auto cropping is applied.
43
+ *
44
+ * @property {boolean} no-ratio-modes - When true, hides the ratio mode select (Free, Widescreen, Square, etc.).
43
45
  */
44
46
  export default class CxAssetLinkFormatCrop extends CortexElement {
45
47
  static readonly styles: CSSResultGroup;
@@ -106,6 +108,12 @@ export default class CxAssetLinkFormatCrop extends CortexElement {
106
108
  * Whether the apply button is disabled.
107
109
  */
108
110
  disabledApply: boolean;
111
+ /**
112
+ * Whether to hide the ratio mode select (Free, Widescreen, Square, etc.).
113
+ * Useful when no asset is attached yet, since switching between ratios
114
+ * without known dimensions only produces tiny, meaningless pixel values.
115
+ */
116
+ noRatioModes: boolean;
109
117
  /**
110
118
  * The last applied crop settings for each unit.
111
119
  * This is used to restore the last applied settings when the component is closed.
@@ -113,6 +113,9 @@ export default class StyleController {
113
113
  wrap?: "nowrap" | "wrap" | "wrap-reverse";
114
114
  };
115
115
  helpText?: string | ((record: Record<string, unknown>) => string);
116
+ infoTextConfigs?: {
117
+ color?: string;
118
+ };
116
119
  inputConfigs?: {
117
120
  label?: string;
118
121
  suffix?: {
@@ -74,6 +74,12 @@ export default class CxDamCustomToolbarButtonsEditor extends CortexElement {
74
74
  private apiGetDamViewAvailablePages;
75
75
  /** Tracks whether `subTypesApi` has resolved at least once for the current API. */
76
76
  private subTypesLoaded;
77
+ /**
78
+ * Full button config (backend `QuickAction`) for each available button option, keyed by
79
+ * its `value`. Populated by `availableButtonsApi` and consumed by
80
+ * `handleAvailableButtonSelect` to pre-fill the edit form for an existing button.
81
+ */
82
+ private availableButtonDetailsByValue;
77
83
  private readonly formApi;
78
84
  private readonly spaceApi;
79
85
  private readonly accessLevelApi;
@@ -148,6 +154,12 @@ export default class CxDamCustomToolbarButtonsEditor extends CortexElement {
148
154
  private findDefaultSubTypeFor;
149
155
  private createNewButton;
150
156
  private updateEditedItem;
157
+ /**
158
+ * True when another button (not the one currently being added/edited) already
159
+ * holds DamToolbarButtonType.Primary. Used to force/disable the "Primary" choice
160
+ * in the dialog so only one button can ever be Primary.
161
+ */
162
+ private hasOtherPrimaryButton;
151
163
  /**
152
164
  * Enforces the "single primary" constraint: at most one button may have
153
165
  * type === DamToolbarButtonType.Primary. When the button identified by