@orangelogic/design-system 3.41.0 → 3.43.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.
- package/library/chunks/{config-manager.utils.BvTZWpSg.js → block-width.D0aVpqVS.js} +18 -4
- package/library/chunks/{config-manager.LNBg46oc.js → config-manager.D02Qm2fo.js} +133 -127
- package/library/chunks/{configs-controller.CCJxfSjT.js → configs-controller.Cz3w_qEo.js} +4 -0
- package/library/components/atoms.js +8 -8
- package/library/components/types.js +12553 -12567
- package/library/package.json +1 -1
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/template-manager/template-manager.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/utils/block-width.d.ts +3 -0
- package/library/packages/types/src/content-builder.d.ts +4 -0
- package/package.json +1 -1
- package/library/chunks/{src.3xfb7ora.js → src.CblQoZkB.js} +1 -1
package/library/package.json
CHANGED
package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts
CHANGED
|
@@ -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
|
@@ -42,12 +42,12 @@ import "./details.DRv08ocO.js";
|
|
|
42
42
|
import "./dialog.DyVvpdaY.js";
|
|
43
43
|
import "./divider.CqSNZCU8.js";
|
|
44
44
|
import "./diff.C5J0fzbu.js";
|
|
45
|
+
import "./dot-pagination.rTg08FAr.js";
|
|
45
46
|
import "./drawer.rdGcXxzU.js";
|
|
46
47
|
import "./progress-bar.Br8Zi53n.js";
|
|
47
48
|
import "./document-viewer.c03KTUv2.js";
|
|
48
49
|
import "./image.BjLoAnzR.js";
|
|
49
50
|
import "./skeleton.BtwugOTG.js";
|
|
50
|
-
import "./dot-pagination.rTg08FAr.js";
|
|
51
51
|
import "./dot-status.BATg_Fn-.js";
|
|
52
52
|
import "./e-chart.JrYFPEVr.js";
|
|
53
53
|
import "./element-clamp.DO-eDDRj.js";
|