@orangelogic/design-system 4.20.0 → 4.22.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "4.20.0",
4
+ "version": "4.22.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -215,6 +215,8 @@ export default class CxConfigManager extends CortexElement {
215
215
  private getFlattenTraits;
216
216
  handleTraitsChange(): Promise<void>;
217
217
  handleComponentChange(): Promise<void>;
218
+ /** Resolves unsaved Gallery/Carousel width defaults against the current column. */
219
+ private resolveWidthUnitDefault;
218
220
  /**
219
221
  * The variants of the font kit the block sits in, if any — the config
220
222
  * manager is the only layer holding the GrapesJS component, so it is the
@@ -10,6 +10,7 @@ import { default as CxLineClamp } from '../../../../../atoms/src/components/line
10
10
  import { default as CxMenu } from '../../../../../atoms/src/components/menu/menu.ts';
11
11
  import { default as CxMenuItem } from '../../../../../atoms/src/components/menu-item/menu-item.ts';
12
12
  import { default as CxSpace } from '../../../../../atoms/src/components/space/space.ts';
13
+ import { default as CxSpinner } from '../../../../../atoms/src/components/spinner/spinner.ts';
13
14
  import { default as CxTooltip } from '../../../../../atoms/src/components/tooltip/tooltip.ts';
14
15
  import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
15
16
  import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
@@ -45,6 +46,7 @@ export default class CxTemplateManager extends CortexElement {
45
46
  'cx-menu': typeof CxMenu;
46
47
  'cx-menu-item': typeof CxMenuItem;
47
48
  'cx-space': typeof CxSpace;
49
+ 'cx-spinner': typeof CxSpinner;
48
50
  'cx-tooltip': typeof CxTooltip;
49
51
  'cx-typography': typeof CxTypography;
50
52
  };
@@ -10,6 +10,9 @@ import { default as CxColumn } from '../../blocks/column/column';
10
10
  * handle and the width field agree with the page.
11
11
  *
12
12
  * Full-bleed blocks span the whole viewer, so they keep measuring the column.
13
+ * Columns inside a `cx-column-group` also measure their own content box: a nested
14
+ * band can inherit the root page tracks, but those tracks are not the containing
15
+ * block the width control should use.
13
16
  *
14
17
  * @param el - The block being measured.
15
18
  * @param column - The `cx-column` the block belongs to.
@@ -41,6 +41,8 @@ export type Option = {
41
41
  label?: string;
42
42
  maskBlocks?: Record<string, unknown>;
43
43
  name?: string;
44
+ /** Resolves a default only when this option has no remembered value. */
45
+ resolveDefaultValue?: () => string | undefined;
44
46
  style?: StyleInfo;
45
47
  value: string;
46
48
  };
@@ -414,6 +416,8 @@ export type ConfigsOptions = {
414
416
  containerFontVariants?: FontFamily[];
415
417
  enableAssetFormatControls?: boolean;
416
418
  enableFontFamilyControls?: boolean;
419
+ /** Resolves an unsaved width default when the author selects a unit. */
420
+ resolveWidthUnitDefault?: (unit: 'px' | '%') => string | undefined;
417
421
  };
418
422
  /**
419
423
  * Well-known editable sections of a content-builder canvas. The page content is the implicit
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "4.20.0",
4
+ "version": "4.22.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {