@ohhwells/bridge 0.1.95 → 0.1.97

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/index.d.cts CHANGED
@@ -76,6 +76,20 @@ interface AiBrandKit {
76
76
  body: string;
77
77
  };
78
78
  }
79
+ /**
80
+ * Shape, padding and typography measured off a host-template CTA, so generated buttons read as the
81
+ * site's own button rather than a default. Colour stays brand-driven (band-aware); everything here
82
+ * follows the template button. Null when the page has no template button to measure.
83
+ */
84
+ interface TemplateButtonStyle {
85
+ radius: string;
86
+ padding: string;
87
+ fontFamily: string;
88
+ fontSize: string;
89
+ fontWeight: string;
90
+ letterSpacing: string;
91
+ textTransform: string;
92
+ }
79
93
  /** Section System defaults — used when a site has no brand kit override. */
80
94
  declare const AI_DEFAULT_BRAND: AiBrandKit;
81
95
  /** Design tokens from the Section System Blocks page (px unless noted). */
@@ -143,8 +157,8 @@ declare function isRenderableTree(value: unknown): value is AiLayoutTree;
143
157
  interface AiTreeRendererProps {
144
158
  tree: AiLayoutTree;
145
159
  brand?: AiBrandKit;
146
- /** The host template's button corner radius (e.g. "0px", "8px"); a form's submit adopts it. */
147
- buttonRadius?: string | null;
160
+ /** The host template's button shape/padding/typography; generated CTAs adopt it. */
161
+ buttonStyle?: TemplateButtonStyle | null;
148
162
  /** Resolves a media ref to a URL; null renders a placeholder. */
149
163
  resolveMedia?: (ref: string) => string | null;
150
164
  /**
@@ -154,7 +168,7 @@ interface AiTreeRendererProps {
154
168
  */
155
169
  editKeyPrefix?: string;
156
170
  }
157
- declare function AiTreeRenderer({ tree, brand, buttonRadius, resolveMedia, editKeyPrefix, }: AiTreeRendererProps): react_jsx_runtime.JSX.Element | null;
171
+ declare function AiTreeRenderer({ tree, brand, buttonStyle, resolveMedia, editKeyPrefix, }: AiTreeRendererProps): react_jsx_runtime.JSX.Element | null;
158
172
 
159
173
  type LinkPage = {
160
174
  path: string;
package/dist/index.d.ts CHANGED
@@ -76,6 +76,20 @@ interface AiBrandKit {
76
76
  body: string;
77
77
  };
78
78
  }
79
+ /**
80
+ * Shape, padding and typography measured off a host-template CTA, so generated buttons read as the
81
+ * site's own button rather than a default. Colour stays brand-driven (band-aware); everything here
82
+ * follows the template button. Null when the page has no template button to measure.
83
+ */
84
+ interface TemplateButtonStyle {
85
+ radius: string;
86
+ padding: string;
87
+ fontFamily: string;
88
+ fontSize: string;
89
+ fontWeight: string;
90
+ letterSpacing: string;
91
+ textTransform: string;
92
+ }
79
93
  /** Section System defaults — used when a site has no brand kit override. */
80
94
  declare const AI_DEFAULT_BRAND: AiBrandKit;
81
95
  /** Design tokens from the Section System Blocks page (px unless noted). */
@@ -143,8 +157,8 @@ declare function isRenderableTree(value: unknown): value is AiLayoutTree;
143
157
  interface AiTreeRendererProps {
144
158
  tree: AiLayoutTree;
145
159
  brand?: AiBrandKit;
146
- /** The host template's button corner radius (e.g. "0px", "8px"); a form's submit adopts it. */
147
- buttonRadius?: string | null;
160
+ /** The host template's button shape/padding/typography; generated CTAs adopt it. */
161
+ buttonStyle?: TemplateButtonStyle | null;
148
162
  /** Resolves a media ref to a URL; null renders a placeholder. */
149
163
  resolveMedia?: (ref: string) => string | null;
150
164
  /**
@@ -154,7 +168,7 @@ interface AiTreeRendererProps {
154
168
  */
155
169
  editKeyPrefix?: string;
156
170
  }
157
- declare function AiTreeRenderer({ tree, brand, buttonRadius, resolveMedia, editKeyPrefix, }: AiTreeRendererProps): react_jsx_runtime.JSX.Element | null;
171
+ declare function AiTreeRenderer({ tree, brand, buttonStyle, resolveMedia, editKeyPrefix, }: AiTreeRendererProps): react_jsx_runtime.JSX.Element | null;
158
172
 
159
173
  type LinkPage = {
160
174
  path: string;