@cntrl-site/components 1.0.66-alpha.1 → 1.0.66-alpha.10

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,6 +1,6 @@
1
1
  import { CommonComponentProps } from '../props';
2
2
  import { TextStyles } from '../utils/textStylesToCss';
3
- export declare const SHAPE_IDS: readonly ["rectangle", "ellipse", "circle", "triangle-up", "triangle-down", "diamond", "hourglass", "teardrop", "leaf", "wave", "custom"];
3
+ export declare const SHAPE_IDS: readonly ["bobbin", "circle", "shield", "vase", "parallelogram", "diamond", "custom"];
4
4
  export type ShapeId = typeof SHAPE_IDS[number];
5
5
  type Align = 'left' | 'center' | 'right' | 'justify';
6
6
  type PathFit = 'stretch' | 'viewbox';
@@ -37,7 +37,6 @@ type PretextSettings = {
37
37
  shapeMode?: 'A' | 'B';
38
38
  overflowMode?: 'clip' | 'visible';
39
39
  fitText?: 'on' | 'off';
40
- dropCap?: 'on' | 'off';
41
40
  dropCapLines?: number;
42
41
  dropCapSize?: number;
43
42
  image?: string | null;
@@ -105,12 +104,13 @@ export declare function flattenContours(contours: VecContour[]): Ring[];
105
104
  * it is thinned out and smoothed back, which lands within a hair of the original.
106
105
  */
107
106
  export declare function ringsToContours(rings: Ring[]): VecContour[];
108
- /** Turns a preset into the editable viewBox path the editor persists after a shape pick. */
109
- export declare function settingsForEditablePreset(shape: ShapeId, aspect?: number, previous?: {
110
- customPath?: string;
111
- pathFit?: string;
112
- pathViewBox?: string;
113
- }): {
107
+ /**
108
+ * Turns a preset into the editable viewBox path the editor persists after a
109
+ * shape pick. Always maps into the full 0–100 edit space — carrying the
110
+ * previous path's bbox compounded smaller on every switch (presets with
111
+ * natural margins, then circle letterboxing, then the next pick…).
112
+ */
113
+ export declare function settingsForEditablePreset(shape: ShapeId): {
114
114
  shape: ShapeId;
115
115
  customPath: string;
116
116
  pathFit: 'viewbox';
@@ -6,7 +6,7 @@ export declare const PretextComponent: {
6
6
  name: string;
7
7
  category: string;
8
8
  version: number;
9
- normalizeLayoutSettingsUpdate: (nextSettings: Record<string, any>, prevSettings: Record<string, any>) => Record<string, any>;
9
+ normalizeLayoutSettingsUpdate: (nextSettings: Record<string, any>, _prevSettings: Record<string, any>) => Record<string, any>;
10
10
  defaultSize: {
11
11
  d: {
12
12
  width: number;