@ohhwells/bridge 0.1.119 → 0.1.121

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
@@ -20,7 +20,14 @@ declare function OhhwellsBridge(): react_jsx_runtime.JSX.Element;
20
20
  */
21
21
  declare const AI_TREE_SCHEMA_VERSIONS: readonly [1];
22
22
  type SectionScaffold = 'stacked' | 'split' | 'overlay';
23
- type AiBlockType = 'text' | 'button' | 'media' | 'media-list' | 'rating' | 'divider' | 'input' | 'section-header' | 'button-row' | 'card' | 'collection' | 'accordion' | 'form' | 'embed' | 'schedule-widget' | 'group';
23
+ type AiBlockType = 'text' | 'button' | 'media' | 'media-list' | 'rating' | 'divider' | 'input' | 'section-header' | 'button-row' | 'card' | 'collection' | 'accordion' | 'media-strip' | 'form' | 'embed' | 'schedule-widget' | 'group';
24
+ /** media-strip's `items[]` entry shape (rn-mobile-backend's `itemFields` for that block). */
25
+ interface MediaStripItem {
26
+ assetId: string;
27
+ alt: string;
28
+ href?: string;
29
+ linkTarget?: 'new-tab' | 'same-tab';
30
+ }
24
31
  interface AiBlockNode {
25
32
  type: AiBlockType;
26
33
  span: number;
@@ -28,10 +35,12 @@ interface AiBlockNode {
28
35
  align?: 'left' | 'center' | 'right';
29
36
  slots?: Record<string, unknown>;
30
37
  children?: AiBlockNode[];
38
+ /** Shape is per-block-type, defined by the backend's `BlockDef.itemFields` (accordion's
39
+ * question/answer, media-strip's assetId/alt/href/linkTarget). */
31
40
  items?: Array<{
32
41
  question: string;
33
42
  answer: string;
34
- }>;
43
+ } | MediaStripItem>;
35
44
  animation?: {
36
45
  effect: 'fade-in' | 'fade-in-up' | 'slide-in-left' | 'slide-in-right' | 'zoom-in';
37
46
  trigger: 'on-scroll' | 'on-load' | 'on-hover';
package/dist/index.d.ts CHANGED
@@ -20,7 +20,14 @@ declare function OhhwellsBridge(): react_jsx_runtime.JSX.Element;
20
20
  */
21
21
  declare const AI_TREE_SCHEMA_VERSIONS: readonly [1];
22
22
  type SectionScaffold = 'stacked' | 'split' | 'overlay';
23
- type AiBlockType = 'text' | 'button' | 'media' | 'media-list' | 'rating' | 'divider' | 'input' | 'section-header' | 'button-row' | 'card' | 'collection' | 'accordion' | 'form' | 'embed' | 'schedule-widget' | 'group';
23
+ type AiBlockType = 'text' | 'button' | 'media' | 'media-list' | 'rating' | 'divider' | 'input' | 'section-header' | 'button-row' | 'card' | 'collection' | 'accordion' | 'media-strip' | 'form' | 'embed' | 'schedule-widget' | 'group';
24
+ /** media-strip's `items[]` entry shape (rn-mobile-backend's `itemFields` for that block). */
25
+ interface MediaStripItem {
26
+ assetId: string;
27
+ alt: string;
28
+ href?: string;
29
+ linkTarget?: 'new-tab' | 'same-tab';
30
+ }
24
31
  interface AiBlockNode {
25
32
  type: AiBlockType;
26
33
  span: number;
@@ -28,10 +35,12 @@ interface AiBlockNode {
28
35
  align?: 'left' | 'center' | 'right';
29
36
  slots?: Record<string, unknown>;
30
37
  children?: AiBlockNode[];
38
+ /** Shape is per-block-type, defined by the backend's `BlockDef.itemFields` (accordion's
39
+ * question/answer, media-strip's assetId/alt/href/linkTarget). */
31
40
  items?: Array<{
32
41
  question: string;
33
42
  answer: string;
34
- }>;
43
+ } | MediaStripItem>;
35
44
  animation?: {
36
45
  effect: 'fade-in' | 'fade-in-up' | 'slide-in-left' | 'slide-in-right' | 'zoom-in';
37
46
  trigger: 'on-scroll' | 'on-load' | 'on-hover';