@orangelogic/design-system 2.136.0 → 2.137.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 (103) hide show
  1. package/library/chunks/{asset-link-format.BBWyY5fn.js → asset-link-format.C7qLkR5q.js} +6 -6
  2. package/library/chunks/{button.3giRMk79.js → button.C1SliH9f.js} +1 -1
  3. package/library/chunks/{checkbox.B-2O517F.js → checkbox.Cjcht4xR.js} +18 -18
  4. package/library/chunks/{color-swatch-group.DC6vIYo4.js → color-swatch-group.-16VIoq6.js} +7 -7
  5. package/library/chunks/{color-swatch.g3FPUnxM.js → color-swatch.C26o9Mgz.js} +1 -1
  6. package/library/chunks/{confirm-popover.DtndPsMa.js → confirm-popover.UaaAL0w7.js} +3 -3
  7. package/library/chunks/{dialog.BQq3xBeH.js → dialog.Bb0_EAwb.js} +2 -2
  8. package/library/chunks/{document-viewer.BQPJD2lJ.js → document-viewer.Bfg059Ip.js} +1737 -1668
  9. package/library/chunks/{dot-pagination.DBk9Rz1e.js → dot-pagination.BzRjwmKy.js} +1 -1
  10. package/library/chunks/{file-on-demand.Bnloo9Ui.js → file-on-demand.j_V2IDwl.js} +9 -9
  11. package/library/chunks/{folder-select.DuG4dSPm.js → folder-select.B2trdP78.js} +111 -97
  12. package/library/chunks/{header.Bpjw08j7.js → header.CAG_RmQg.js} +1 -1
  13. package/library/chunks/{i18n.DJikbkDK.js → i18n.Dqb15q5k.js} +6 -2
  14. package/library/chunks/{icon-button.xobY-9OH.js → icon-button.BqFraOfp.js} +1 -1
  15. package/library/chunks/{iframe.BkvxcywO.js → iframe.Cg0YBl8p.js} +1 -1
  16. package/library/chunks/{image.KZRXIthe.js → image.VNvhPhZ1.js} +3 -2
  17. package/library/chunks/{input.GUw7x9tK.js → input.C_db7iND.js} +1 -1
  18. package/library/chunks/{option.uHye0aDT.js → option.D5NdA-Cm.js} +1 -1
  19. package/library/chunks/{pagination.D8Hzwlan.js → pagination.C_4fPcD4.js} +5 -5
  20. package/library/chunks/{tab-group.0_aOE22R.js → tab-group.CRTjU6He.js} +3 -3
  21. package/library/chunks/{tree.C14rLLol.js → tree.BYcnDDKg.js} +2 -2
  22. package/library/components/alert.js +2 -2
  23. package/library/components/asset-link-format.js +3 -3
  24. package/library/components/atoms.js +14 -14
  25. package/library/components/audio.js +2 -2
  26. package/library/components/border-input-group.js +2 -2
  27. package/library/components/breadcrumb.js +1 -1
  28. package/library/components/button.js +2 -2
  29. package/library/components/checkbox.js +1 -1
  30. package/library/components/color-picker.js +3 -3
  31. package/library/components/color-swatch-group.js +3 -3
  32. package/library/components/color-swatch.js +2 -2
  33. package/library/components/confirm-popover.js +4 -4
  34. package/library/components/copy-button.js +1 -1
  35. package/library/components/corner-position-input-group.js +3 -3
  36. package/library/components/date-calendar.js +1 -1
  37. package/library/components/details.js +1 -1
  38. package/library/components/dialog.js +3 -3
  39. package/library/components/document-viewer.js +3 -3
  40. package/library/components/dot-pagination.js +2 -2
  41. package/library/components/drawer.js +2 -2
  42. package/library/components/dropdown.js +2 -2
  43. package/library/components/dynamic-select.js +4 -4
  44. package/library/components/e-chart.js +1 -1
  45. package/library/components/element-clamp.js +2 -2
  46. package/library/components/file-on-demand.js +10 -10
  47. package/library/components/folder-select.js +4 -4
  48. package/library/components/format-bytes.js +1 -1
  49. package/library/components/format-date.js +1 -1
  50. package/library/components/format-number.js +1 -1
  51. package/library/components/format-time.js +1 -1
  52. package/library/components/header.js +2 -2
  53. package/library/components/icon-button.js +2 -2
  54. package/library/components/iframe.js +2 -2
  55. package/library/components/image-comparer.js +1 -1
  56. package/library/components/image.js +2 -2
  57. package/library/components/input.js +2 -2
  58. package/library/components/line-clamp.js +1 -1
  59. package/library/components/masonry.js +2 -2
  60. package/library/components/menu-item.js +1 -1
  61. package/library/components/menu.js +1 -1
  62. package/library/components/molecules.js +3 -3
  63. package/library/components/option.js +2 -2
  64. package/library/components/organisms.js +3 -3
  65. package/library/components/padding-input-group.js +1 -1
  66. package/library/components/pagination.js +6 -6
  67. package/library/components/popup.js +1 -1
  68. package/library/components/position-picker.js +1 -1
  69. package/library/components/progress-bar.js +1 -1
  70. package/library/components/progress-ring.js +1 -1
  71. package/library/components/range.js +1 -1
  72. package/library/components/rating.js +1 -1
  73. package/library/components/relative-time.js +1 -1
  74. package/library/components/select.js +2 -2
  75. package/library/components/shadow-input-group.js +1 -1
  76. package/library/components/share-option-list.js +1 -1
  77. package/library/components/sidebar.js +1 -1
  78. package/library/components/size-input-group.js +3 -3
  79. package/library/components/spinner.js +1 -1
  80. package/library/components/split-panel.js +1 -1
  81. package/library/components/tab-group.js +4 -4
  82. package/library/components/tab.js +2 -2
  83. package/library/components/tag.js +2 -2
  84. package/library/components/tooltip.js +1 -1
  85. package/library/components/tree-item.js +3 -3
  86. package/library/components/tree.js +2 -2
  87. package/library/components/typeface.js +2 -2
  88. package/library/components/types.js +14879 -14849
  89. package/library/components/video.js +2 -2
  90. package/library/package.json +1 -1
  91. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +6 -0
  92. package/library/packages/molecules/src/folder-select/folder-select.d.ts +5 -0
  93. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +5 -0
  94. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +5 -0
  95. package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
  96. package/library/packages/organisms/src/content-builder/content-builder.d.ts +5 -0
  97. package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -0
  98. package/library/packages/tools/src/attribute-converter/string-array.d.ts +5 -0
  99. package/library/packages/types/src/content-builder.d.ts +1 -0
  100. package/library/packages/utils/src/custom-element/i18n.d.ts +4 -0
  101. package/library/react-web-component.d.ts +8 -0
  102. package/library/utils.js +1 -1
  103. 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.KZRXIthe.js";
4
+ import { C as Cb } from "../chunks/image.VNvhPhZ1.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.DJikbkDK.js";
10
+ import { L as kb } from "../chunks/i18n.Dqb15q5k.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";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.136.0",
4
+ "version": "2.137.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -22,6 +22,12 @@ export default class CxFolderSelectTree extends CortexElement {
22
22
  token: string;
23
23
  bearerToken: string;
24
24
  baseUrl: string;
25
+ /**
26
+ * Restricts the tree's top-level roots to these folder ids. When set, the root
27
+ * fetch passes them as `allowedFolders` so the browser only exposes folders
28
+ * under the configured space roots. Empty = browse from the global root.
29
+ */
30
+ allowedFolders: string[];
25
31
  extraFolderId: string;
26
32
  extraFolderTitle: string;
27
33
  extraFolderIcon: string;
@@ -28,6 +28,11 @@ export default class CxFolderSelect extends CortexElement {
28
28
  name: string;
29
29
  selectedLabel: string;
30
30
  baseUrl: string;
31
+ /**
32
+ * Restricts the browser tree's top-level roots to these folder ids
33
+ * (forwarded to cx-folder-select-tree). Empty = browse from the global root.
34
+ */
35
+ allowedFolders: string[];
31
36
  open: boolean;
32
37
  token: string;
33
38
  bearerToken: string;
@@ -282,6 +282,11 @@ export default class CxConfigForm extends CortexElement {
282
282
  dialogTitle: string;
283
283
  skipShowCheck: boolean;
284
284
  enableAssetFormatControls: boolean;
285
+ /**
286
+ * Root folder ids the folder-picker controls are restricted to (forwarded to
287
+ * cx-folder-picker). Sourced from the space's configured root folders.
288
+ */
289
+ allowedFolders: string[];
285
290
  /**
286
291
  * Whether the user is currently editing the template settings.
287
292
  * This is used to determine if the user is editing the template name and description.
@@ -61,6 +61,11 @@ export default class CxConfigManager extends CortexElement {
61
61
  * @default false
62
62
  */
63
63
  enableAssetFormatControls: boolean;
64
+ /**
65
+ * Root folder ids the folder-picker controls are restricted to (forwarded to
66
+ * cx-config-form). Sourced from the space's configured root folders.
67
+ */
68
+ allowedFolders: string[];
64
69
  /**
65
70
  * A list of properties that are not shown in the configuration manager if mode is EditorMode.Content.
66
71
  * @default []
@@ -43,6 +43,12 @@ export default class CxFolderPicker extends CortexElement {
43
43
  * list of selected folder ids and `detail.representativeAssetId` from the first selected folder.
44
44
  */
45
45
  multiple: boolean;
46
+ /**
47
+ * Restricts the folder browser to these root folder ids (forwarded to
48
+ * cx-folder-select). Used to scope the picker to the space's configured
49
+ * root folders. Empty = browse from the global root.
50
+ */
51
+ allowedFolders: string[];
46
52
  /**
47
53
  * The select's required attribute.
48
54
  */
@@ -105,6 +105,11 @@ export default class CxContentBuilder extends CortexElement {
105
105
  * @default false
106
106
  */
107
107
  enableAssetFormatControls: boolean;
108
+ /**
109
+ * Root folder ids that the folder-picker controls in the block config are
110
+ * restricted to.
111
+ */
112
+ allowedFolders: string[];
108
113
  /**
109
114
  * The default language of the content builder.
110
115
  * This is the language that will be used to store the translatable texts.
@@ -87,6 +87,7 @@ export default class StyleController {
87
87
  prescribedDocTypes?: import('../../../types/src/download-format-picker').DownloadDocType[];
88
88
  };
89
89
  folderPickerConfigs?: {
90
+ useAllowedFolders?: boolean;
90
91
  useFullPath?: boolean;
91
92
  variant?: import('../../../types/src/folder-select').FolderSelectVariant;
92
93
  };
@@ -0,0 +1,5 @@
1
+ declare const stringArrayConverter: {
2
+ fromAttribute: (value: string) => string[];
3
+ toAttribute: (value: string[]) => string;
4
+ };
5
+ export default stringArrayConverter;
@@ -93,6 +93,7 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
93
93
  prescribedDocTypes?: DownloadDocType[];
94
94
  };
95
95
  folderPickerConfigs?: {
96
+ useAllowedFolders?: boolean;
96
97
  useFullPath?: boolean;
97
98
  variant?: FolderSelectVariant;
98
99
  };
@@ -469,6 +469,7 @@ export interface Translation extends DefaultTranslation {
469
469
  formatDDMMYYYY: string;
470
470
  formats: string;
471
471
  forward: string;
472
+ fourPageView: string;
472
473
  freehandDrawing: string;
473
474
  fromLabel: string;
474
475
  fullscreen: string;
@@ -669,6 +670,7 @@ export interface Translation extends DefaultTranslation {
669
670
  ok: string;
670
671
  onHover: string;
671
672
  onThisPage: string;
673
+ onePageView: string;
672
674
  ongoing: string;
673
675
  oopsSomethingWentWrong: string;
674
676
  opacity: string;
@@ -997,6 +999,7 @@ export interface Translation extends DefaultTranslation {
997
999
  trim: string;
998
1000
  tuneDisabled: string;
999
1001
  turnOnSeeThru: string;
1002
+ twoPageView: string;
1000
1003
  txtOnly: string;
1001
1004
  type: string;
1002
1005
  typeAMessage: string;
@@ -1046,6 +1049,7 @@ export interface Translation extends DefaultTranslation {
1046
1049
  viewAndSortElement: string;
1047
1050
  viewInAR: string;
1048
1051
  viewLogs: string;
1052
+ viewMode: string;
1049
1053
  viewOnAsset: string;
1050
1054
  viewOptions: string;
1051
1055
  viewPageDetails: string;
@@ -6379,6 +6379,10 @@
6379
6379
  *
6380
6380
  */
6381
6381
  baseUrl?: string;
6382
+ /**
6383
+ * Restricts the browser tree's top-level roots to these folder ids (forwarded to cx-folder-select-tree). Empty = browse from the global root.
6384
+ */
6385
+ allowedFolders?: string[];
6382
6386
  /**
6383
6387
  *
6384
6388
  */
@@ -9501,6 +9505,10 @@
9501
9505
  * Whether to expose the asset format / transformation / download-format / asset-format-picker controls in the per-block config sidebar for image, video, gallery, carousel, and timeline blocks. <br/>@default false
9502
9506
  */
9503
9507
  enableAssetFormatControls?: boolean;
9508
+ /**
9509
+ * Root folder ids that the folder-picker controls in the block config are restricted to.
9510
+ */
9511
+ allowedFolders?: string[];
9504
9512
  /**
9505
9513
  * The default language of the content builder. This is the language that will be used to store the translatable texts.
9506
9514
  */
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.DJikbkDK.js";
15
+ import { L as Pe, r as _e } from "./chunks/i18n.Dqb15q5k.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";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.136.0",
4
+ "version": "2.137.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {