@cntrl-site/components 1.0.82-alpha.1 → 1.0.82
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/dist/Components/Pretext/imageUtils.d.ts +0 -10
- package/dist/Components/props.d.ts +0 -10
- package/dist/Components/utils/index.d.ts +0 -3
- package/dist/index.d.ts +2 -4
- package/dist/index.js +82 -2882
- package/dist/index.mjs +8954 -13631
- package/dist/readTestimonialTextMeasure-B1FI-93F.mjs +60 -0
- package/dist/readTestimonialTextMeasure-CB_Uq-fO.js +1 -0
- package/dist/types/Component.d.ts +1 -4
- package/dist/types/SchemaV1.d.ts +0 -13
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +8 -12
- package/package.json +1 -1
- package/dist/Components/Burger/Burger.d.ts +0 -139
- package/dist/Components/Burger/BurgerComponent.d.ts +0 -828
- package/dist/Components/utils/panelAvailability.d.ts +0 -13
- package/dist/panelAvailability-CgSic84c.mjs +0 -126
- package/dist/panelAvailability-D8c7cdbu.js +0 -1
|
@@ -29,16 +29,6 @@ export declare const imageOffsetFromFocal: (boundsSize: number, renderedSize: nu
|
|
|
29
29
|
export declare const focalFromImageOffset: (boundsSize: number, renderedSize: number, offset: number, options?: {
|
|
30
30
|
clamp?: boolean;
|
|
31
31
|
}) => number;
|
|
32
|
-
export declare const capScaleToMaxSize: (bounds: {
|
|
33
|
-
width: number;
|
|
34
|
-
height: number;
|
|
35
|
-
}, natural: {
|
|
36
|
-
width: number;
|
|
37
|
-
height: number;
|
|
38
|
-
}, scale: number, maxSize: {
|
|
39
|
-
width: number;
|
|
40
|
-
height: number;
|
|
41
|
-
}) => number;
|
|
42
32
|
export declare const preserveImageTransformAcrossBoundsChange: (prevBounds: {
|
|
43
33
|
x: number;
|
|
44
34
|
y: number;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
export type CommonComponentProps = {
|
|
2
2
|
metadata?: Record<string, any>;
|
|
3
|
-
/**
|
|
4
|
-
* Editor-controlled visual state, matching a `statePanels` id when set.
|
|
5
|
-
* Omitted on the published site unless a wrapper needs to pin a state.
|
|
6
|
-
*/
|
|
7
|
-
currentState?: string | null;
|
|
8
|
-
/**
|
|
9
|
-
* State panel ids that must not become the visual state.
|
|
10
|
-
* Derived from schema `availableWhen` and the current host context.
|
|
11
|
-
*/
|
|
12
|
-
unavailableStates?: string[];
|
|
13
3
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
export { scalingValue } from './scalingValue';
|
|
2
2
|
export { buildColorVars } from './buildColorVars';
|
|
3
|
-
export { getColorAlpha } from './getColorAlpha';
|
|
4
3
|
export { getFormFieldValidationError, isValidEmailFormat, isValidPhoneFormat, } from './formFieldValidation';
|
|
5
4
|
export type { ValidatableFormField } from './formFieldValidation';
|
|
6
5
|
export { useScopedStyles } from './useScopedStyles';
|
|
7
6
|
export type { ScopedStyles } from './useScopedStyles';
|
|
8
7
|
export type { CommonComponentProps } from '../props';
|
|
9
8
|
export { readTestimonialTextMeasure } from './readTestimonialTextMeasure';
|
|
10
|
-
export { getAvailableStatePanels, getUnavailableStates, isPanelAvailable, } from './panelAvailability';
|
|
11
|
-
export type { PanelAvailabilityContext } from './panelAvailability';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { type Breakpoint, type Component, type ComponentDefaultSize, type
|
|
2
|
-
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel,
|
|
1
|
+
export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentSize, isSchemaV1 } from './types/Component';
|
|
2
|
+
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaDisplay } from './types/SchemaV1';
|
|
3
3
|
export { components } from './Components/components';
|
|
4
|
-
export { getAvailableStatePanels, getUnavailableStates, isPanelAvailable, } from './Components/utils/panelAvailability';
|
|
5
|
-
export type { PanelAvailabilityContext } from './Components/utils/panelAvailability';
|