@orangelogic/design-system 2.211.0 → 2.213.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 (98) hide show
  1. package/library/chunks/{asset-link-format.C6BPob3e.js → asset-link-format.ofivwxXM.js} +5 -5
  2. package/library/chunks/{button.BnkkUqiI.js → button.CrhpoXK8.js} +1 -1
  3. package/library/chunks/{color-swatch-group.ACpuo8Pe.js → color-swatch-group.Dr7mWhCT.js} +384 -381
  4. package/library/chunks/{color-swatch.D6Gg5bpz.js → color-swatch.CSsvAlq8.js} +1 -1
  5. package/library/chunks/{confirm-popover.jCP9CdcD.js → confirm-popover.CrB-N3KV.js} +3 -3
  6. package/library/chunks/{dialog.B6hZ7fvn.js → dialog.DWa11p4j.js} +2 -2
  7. package/library/chunks/{document-viewer.CgSEgZ5S.js → document-viewer.UJBcwZWE.js} +5 -5
  8. package/library/chunks/{dot-pagination.BqGFeFXK.js → dot-pagination.ry5d0ZtQ.js} +1 -1
  9. package/library/chunks/{folder-select.CIqVGGFl.js → folder-select.BIXyzMCY.js} +4 -4
  10. package/library/chunks/{header.DcEskmXD.js → header.tVm8jCBb.js} +22 -22
  11. package/library/chunks/{i18n.DbXTTLXx.js → i18n.CXIpdSSZ.js} +5 -2
  12. package/library/chunks/{icon-button.CVrxJcZq.js → icon-button.BBLy-yj3.js} +1 -1
  13. package/library/chunks/{iframe.-GCTFas1.js → iframe.FHGbVxm4.js} +1 -1
  14. package/library/chunks/{image.ZANuNTs8.js → image.BYDGEbte.js} +46 -37
  15. package/library/chunks/{input.33UmFGqR.js → input.B1JamaTE.js} +1 -1
  16. package/library/chunks/{markdown.DOHru2Rz.js → markdown.Cc9XwWxA.js} +2 -2
  17. package/library/chunks/{option.CCJLbAuF.js → option.DmQWgEVq.js} +1 -1
  18. package/library/chunks/{pagination.jGOZVKL5.js → pagination.GYpExPiQ.js} +5 -5
  19. package/library/chunks/{tab-group.uSHlsFu8.js → tab-group.PQnc285p.js} +3 -3
  20. package/library/chunks/{tree.CmEdKtzK.js → tree.BS7eGCf0.js} +1 -1
  21. package/library/components/alert.js +2 -2
  22. package/library/components/asset-link-format.js +3 -3
  23. package/library/components/atoms.js +14 -14
  24. package/library/components/audio.js +2 -2
  25. package/library/components/border-input-group.js +2 -2
  26. package/library/components/breadcrumb.js +1 -1
  27. package/library/components/button.js +2 -2
  28. package/library/components/color-picker.js +3 -3
  29. package/library/components/color-swatch-group.js +3 -3
  30. package/library/components/color-swatch.js +2 -2
  31. package/library/components/confirm-popover.js +4 -4
  32. package/library/components/copy-button.js +1 -1
  33. package/library/components/corner-position-input-group.js +3 -3
  34. package/library/components/date-calendar.js +1 -1
  35. package/library/components/details.js +1 -1
  36. package/library/components/dialog.js +3 -3
  37. package/library/components/document-viewer.js +3 -3
  38. package/library/components/dot-pagination.js +2 -2
  39. package/library/components/drawer.js +2 -2
  40. package/library/components/dropdown.js +2 -2
  41. package/library/components/dynamic-select.js +4 -4
  42. package/library/components/e-chart.js +1 -1
  43. package/library/components/element-clamp.js +2 -2
  44. package/library/components/file-on-demand.js +9 -9
  45. package/library/components/folder-select.js +4 -4
  46. package/library/components/format-bytes.js +1 -1
  47. package/library/components/format-date.js +1 -1
  48. package/library/components/format-number.js +1 -1
  49. package/library/components/format-time.js +1 -1
  50. package/library/components/header.js +2 -2
  51. package/library/components/icon-button.js +2 -2
  52. package/library/components/iframe.js +2 -2
  53. package/library/components/image-comparer.js +1 -1
  54. package/library/components/image.js +2 -2
  55. package/library/components/input.js +2 -2
  56. package/library/components/line-clamp.js +1 -1
  57. package/library/components/markdown.js +3 -3
  58. package/library/components/masonry.js +2 -2
  59. package/library/components/menu-item.js +6 -6
  60. package/library/components/menu.js +1 -1
  61. package/library/components/molecules.js +3 -3
  62. package/library/components/option.js +2 -2
  63. package/library/components/organisms.js +2 -2
  64. package/library/components/padding-input-group.js +1 -1
  65. package/library/components/pagination.js +6 -6
  66. package/library/components/popup.js +1 -1
  67. package/library/components/position-picker.js +1 -1
  68. package/library/components/progress-bar.js +1 -1
  69. package/library/components/progress-ring.js +1 -1
  70. package/library/components/range.js +1 -1
  71. package/library/components/rating.js +1 -1
  72. package/library/components/relative-time.js +1 -1
  73. package/library/components/select.js +2 -2
  74. package/library/components/shadow-input-group.js +1 -1
  75. package/library/components/share-option-list.js +1 -1
  76. package/library/components/sidebar.js +1 -1
  77. package/library/components/size-input-group.js +3 -3
  78. package/library/components/spinner.js +1 -1
  79. package/library/components/split-panel.js +1 -1
  80. package/library/components/tab-group.js +4 -4
  81. package/library/components/tab.js +2 -2
  82. package/library/components/tag.js +2 -2
  83. package/library/components/tooltip.js +1 -1
  84. package/library/components/tree-item.js +2 -2
  85. package/library/components/tree.js +2 -2
  86. package/library/components/typeface.js +2 -2
  87. package/library/components/types.js +5395 -5289
  88. package/library/components/video.js +2 -2
  89. package/library/package.json +1 -1
  90. package/library/packages/atoms/src/components/image/image.d.ts +1 -1
  91. package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +1 -0
  92. package/library/packages/organisms/src/chatbot/chatbot.d.ts +1 -1
  93. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +11 -1
  94. package/library/packages/organisms/src/content-builder/configs/image.d.ts +4 -0
  95. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +4 -0
  96. package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
  97. package/library/utils.js +1 -1
  98. 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.ZANuNTs8.js";
4
+ import { C as Cb } from "../chunks/image.BYDGEbte.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.DbXTTLXx.js";
10
+ import { L as kb } from "../chunks/i18n.CXIpdSSZ.js";
11
11
  import { w as Ki } from "../chunks/watch.DJF5K-8U.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";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.211.0",
4
+ "version": "2.213.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -159,7 +159,7 @@ export default class CxImage extends ResizableElement {
159
159
  get currentAltValue(): string;
160
160
  get currentSrc(): string;
161
161
  get highlighterTabindex(): "0" | undefined;
162
- get highlighterRole(): "button" | "img";
162
+ get highlighterRole(): 'button' | 'img' | undefined;
163
163
  get highlighterClass(): {
164
164
  [x: string]: boolean;
165
165
  'highlightable-item': boolean;
@@ -18,6 +18,7 @@ export default class CxBoardListItem extends CortexElement {
18
18
  textElement: HTMLElement;
19
19
  tooltipElement: CxTooltip;
20
20
  controlElement: HTMLElement;
21
+ selectionHitAreaElement: HTMLElement;
21
22
  text: string;
22
23
  tooltip: string;
23
24
  readonly: boolean;
@@ -95,7 +95,7 @@ export default class CxChatbot extends CortexElement {
95
95
  }): void;
96
96
  show(): void;
97
97
  hide(): void;
98
- updateTabIndex(): void;
98
+ updateInteractiveState(): void;
99
99
  toggleFullScreen(): void;
100
100
  pingConnection(): void;
101
101
  adjustScroll(): Promise<void>;
@@ -108,6 +108,10 @@ export default class CxSbImage extends CxImage {
108
108
  * A description of the image used by assistive devices in dark mode.
109
109
  */
110
110
  altDarkMode: string;
111
+ /** Whether to use authored alt text instead of asset metadata. */
112
+ useCustomAlt: boolean;
113
+ /** Whether to use authored alt text for the dark-mode image. */
114
+ useCustomAltDarkMode: boolean;
111
115
  altSourceField: string;
112
116
  /**
113
117
  * CMS5 only. Click action for the image.
@@ -242,7 +246,7 @@ export default class CxSbImage extends CxImage {
242
246
  */
243
247
  private get requestedAssetFields();
244
248
  get highlighterTabindex(): "0" | undefined;
245
- get highlighterRole(): "button" | "img";
249
+ get highlighterRole(): "button" | "img" | undefined;
246
250
  get highlighterClass(): {
247
251
  [x: string]: boolean;
248
252
  'highlightable-item--has-action': boolean;
@@ -263,6 +267,12 @@ export default class CxSbImage extends CxImage {
263
267
  * Whether the image has an click action.
264
268
  */
265
269
  private get hasClickAction();
270
+ /** The native link replaces the wrapper's synthetic button semantics in read mode. */
271
+ private get hasNavigationAnchor();
272
+ /** Resolves the destination shared by pointer handling and the accessibility anchor. */
273
+ private get navigationUrl();
274
+ /** Names the native link from visible content before falling back to its destination. */
275
+ private get navigationLabel();
266
276
  /**
267
277
  * The rendered width in CSS pixels, used as the `sizes` hint so the browser can pick
268
278
  * the smallest `srcset` candidate that still covers the box.
@@ -4,6 +4,8 @@ import { default as CxImage } from '../blocks/image/image';
4
4
 
5
5
  type Attribute = {
6
6
  'additional-fields': string;
7
+ alt: CxImage['alt'];
8
+ 'alt-dark-mode': CxImage['altDarkMode'];
7
9
  'alt-source-field': CxImage['altSourceField'];
8
10
  'click-action': CxImage['clickAction'];
9
11
  'click-link'?: CxImage['clickLink'];
@@ -48,6 +50,8 @@ type Attribute = {
48
50
  'text-reveal-style'?: CxImage['textRevealStyle'];
49
51
  transformations: string;
50
52
  'transition-type'?: string;
53
+ 'use-custom-alt': CxImage['useCustomAlt'];
54
+ 'use-custom-alt-dark-mode': CxImage['useCustomAltDarkMode'];
51
55
  width: CxImage['width'];
52
56
  'zoom-style'?: CxImage['zoomStyle'];
53
57
  };
@@ -238,6 +238,8 @@ export default class ConfigsController {
238
238
  src: string;
239
239
  }>[] | import('../../../types/src/content-builder').PropertyConfig<{
240
240
  'additional-fields': string;
241
+ alt: import('./blocks/image/image').default["alt"];
242
+ 'alt-dark-mode': import('./blocks/image/image').default["altDarkMode"];
241
243
  'alt-source-field': import('./blocks/image/image').default["altSourceField"];
242
244
  'click-action': import('./blocks/image/image').default["clickAction"];
243
245
  'click-link'?: import('./blocks/image/image').default["clickLink"];
@@ -282,6 +284,8 @@ export default class ConfigsController {
282
284
  'text-reveal-style'?: import('./blocks/image/image').default["textRevealStyle"];
283
285
  transformations: string;
284
286
  'transition-type'?: string;
287
+ 'use-custom-alt': import('./blocks/image/image').default["useCustomAlt"];
288
+ 'use-custom-alt-dark-mode': import('./blocks/image/image').default["useCustomAltDarkMode"];
285
289
  width: import('./blocks/image/image').default["width"];
286
290
  'zoom-style'?: import('./blocks/image/image').default["zoomStyle"];
287
291
  }>[] | import('../../../types/src/content-builder').PropertyConfig[] | import('../../../types/src/content-builder').PropertyConfig<{
@@ -282,6 +282,7 @@ export interface Translation extends DefaultTranslation {
282
282
  currentValue: string;
283
283
  currentVersion: string;
284
284
  custom: string;
285
+ customAltText: string;
285
286
  customExport: string;
286
287
  customFormat: string;
287
288
  customShadowAndBorderRadius: string;
@@ -292,7 +293,9 @@ export interface Translation extends DefaultTranslation {
292
293
  cut: string;
293
294
  damLibrary: string;
294
295
  damViewNoAvailableOptionsForThisAsset: string;
296
+ darkCustomAltText: string;
295
297
  darkImageFormat: string;
298
+ darkModeAltText: string;
296
299
  darkModeImage: string;
297
300
  dashSpacing: string;
298
301
  dashWidth: string;
package/library/utils.js CHANGED
@@ -13,7 +13,7 @@ import { d as Pe } from "./chunks/drag.DenOh3AE.js";
13
13
  import { f as Xe } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
14
  import { f as U } from "./chunks/form.DSsy3Fcy.js";
15
15
  import { F as Be, c as Ge, g as $e, v as ze, a as qe } from "./chunks/form.DSsy3Fcy.js";
16
- import { L as Ze, r as je } from "./chunks/i18n.DbXTTLXx.js";
16
+ import { L as Ze, r as je } from "./chunks/i18n.CXIpdSSZ.js";
17
17
  import { c as Ke, q as tr } from "./chunks/math.DuKzLacZ.js";
18
18
  import { g as rr } from "./chunks/modal.Ct0bJBSe.js";
19
19
  import { g as sr, l as or, s as nr, u as ir } from "./chunks/scroll.xtO5yojm.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.211.0",
4
+ "version": "2.213.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {