@40rty/ams-ui 0.1.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.
Files changed (299) hide show
  1. package/dist/agent.js +148 -0
  2. package/dist/catalog-data.js +93 -0
  3. package/dist/catalog-entries.js +8 -0
  4. package/dist/chunk-432XYPDT.js +1012 -0
  5. package/dist/chunk-54QPRWEG.js +2800 -0
  6. package/dist/chunk-CKGGECAQ.js +239 -0
  7. package/dist/chunk-E3IJDSKY.js +173 -0
  8. package/dist/chunk-JQNZ5UUK.js +226 -0
  9. package/dist/chunk-LQLOG2V3.js +649 -0
  10. package/dist/chunk-MHUEIBJ3.js +117 -0
  11. package/dist/chunk-ORIOBWTD.js +112 -0
  12. package/dist/css/preset/motion.css +78 -0
  13. package/dist/css/preset/tailwind-theme.css +163 -0
  14. package/dist/css/shell/mobile/island.css +478 -0
  15. package/dist/hooks.js +25 -0
  16. package/dist/index.js +7165 -0
  17. package/dist/motion.js +113 -0
  18. package/dist/shell.js +5621 -0
  19. package/dist/types/agent/AgentStreamingState.d.ts +58 -0
  20. package/dist/types/agent/ProseSurface.d.ts +31 -0
  21. package/dist/types/agent/index.d.ts +8 -0
  22. package/dist/types/agent/phase-label.d.ts +13 -0
  23. package/dist/types/agent/presence/AgentPresenceWidget.d.ts +85 -0
  24. package/dist/types/agent/presence/BriefIdentity.d.ts +9 -0
  25. package/dist/types/agent/presence/CompactRead.d.ts +44 -0
  26. package/dist/types/agent/presence/CriteriaRail.d.ts +68 -0
  27. package/dist/types/agent/presence/DefaultNotch.d.ts +2 -0
  28. package/dist/types/agent/presence/FactChip.d.ts +10 -0
  29. package/dist/types/agent/presence/InlinePresenceRead.d.ts +25 -0
  30. package/dist/types/agent/presence/KnowledgePeek.d.ts +23 -0
  31. package/dist/types/agent/presence/LayoutMorphSkeleton.d.ts +59 -0
  32. package/dist/types/agent/presence/PresenceBrief.d.ts +29 -0
  33. package/dist/types/agent/presence/PresenceFiller.d.ts +24 -0
  34. package/dist/types/agent/presence/SourceSift.d.ts +48 -0
  35. package/dist/types/agent/presence/StreamRead.d.ts +50 -0
  36. package/dist/types/agent/presence/VoiceLine.d.ts +19 -0
  37. package/dist/types/agent/presence/band-beat.d.ts +40 -0
  38. package/dist/types/agent/presence/band-row.d.ts +188 -0
  39. package/dist/types/agent/presence/cite-image.d.ts +9 -0
  40. package/dist/types/agent/presence/class-names.d.ts +134 -0
  41. package/dist/types/agent/presence/element-view.d.ts +83 -0
  42. package/dist/types/agent/presence/fact-forms/baseline-forms.d.ts +20 -0
  43. package/dist/types/agent/presence/fact-forms/class-names.d.ts +14 -0
  44. package/dist/types/agent/presence/fact-forms/index.d.ts +3 -0
  45. package/dist/types/agent/presence/fact-forms/register.d.ts +9 -0
  46. package/dist/types/agent/presence/fact-rail.d.ts +76 -0
  47. package/dist/types/agent/presence/fact-slots.d.ts +97 -0
  48. package/dist/types/agent/presence/folded.d.ts +26 -0
  49. package/dist/types/agent/presence/forms.d.ts +5 -0
  50. package/dist/types/agent/presence/index.d.ts +39 -0
  51. package/dist/types/agent/presence/notch/PresenceNotch.d.ts +20 -0
  52. package/dist/types/agent/presence/parts.d.ts +29 -0
  53. package/dist/types/agent/presence/read-data.d.ts +48 -0
  54. package/dist/types/agent/presence/reads.d.ts +37 -0
  55. package/dist/types/agent/presence/sift-deck.d.ts +58 -0
  56. package/dist/types/agent/presence/source-cards/ArticleSourceCard.d.ts +4 -0
  57. package/dist/types/agent/presence/source-cards/CollectionSourceCard.d.ts +4 -0
  58. package/dist/types/agent/presence/source-cards/PolicySourceCard.d.ts +4 -0
  59. package/dist/types/agent/presence/source-cards/ProductSourceCard.d.ts +4 -0
  60. package/dist/types/agent/presence/source-cards/ReviewSourceCard.d.ts +4 -0
  61. package/dist/types/agent/presence/source-cards/SourceCard.d.ts +4 -0
  62. package/dist/types/agent/presence/source-cards/card-frame.d.ts +38 -0
  63. package/dist/types/agent/presence/source-cards/card-marks.d.ts +69 -0
  64. package/dist/types/agent/presence/source-cards/card-plate.d.ts +20 -0
  65. package/dist/types/agent/presence/source-cards/card-shell.d.ts +91 -0
  66. package/dist/types/agent/presence/source-cards/register.d.ts +6 -0
  67. package/dist/types/agent/presence/source-cards/review-passage.d.ts +53 -0
  68. package/dist/types/agent/presence/swatch.d.ts +4 -0
  69. package/dist/types/agent/presence/use-band-facts.d.ts +9 -0
  70. package/dist/types/agent/presence/use-forget-fact.d.ts +56 -0
  71. package/dist/types/agent/presence/use-measured-height.d.ts +11 -0
  72. package/dist/types/catalog-data/base.d.ts +2 -0
  73. package/dist/types/catalog-data/chat.d.ts +55 -0
  74. package/dist/types/catalog-data/content.d.ts +1129 -0
  75. package/dist/types/catalog-data/ecommerce.d.ts +4842 -0
  76. package/dist/types/catalog-data/index.d.ts +7 -0
  77. package/dist/types/catalog-data/social.d.ts +1552 -0
  78. package/dist/types/catalog-data/tokens.d.ts +20 -0
  79. package/dist/types/catalog-data/ugc.d.ts +50 -0
  80. package/dist/types/catalog-entries.d.ts +35 -0
  81. package/dist/types/catalog.d.ts +18 -0
  82. package/dist/types/components/SkeletonSwap.d.ts +27 -0
  83. package/dist/types/components/agentic/AgentText.d.ts +44 -0
  84. package/dist/types/components/agentic/Turn.d.ts +21 -0
  85. package/dist/types/components/browse/CanvasBootLoader.d.ts +16 -0
  86. package/dist/types/components/browse/ContinuationLoading.d.ts +22 -0
  87. package/dist/types/components/browse/canvas-booting.d.ts +37 -0
  88. package/dist/types/components/browse/constants.d.ts +2 -0
  89. package/dist/types/components/browse/index.d.ts +4 -0
  90. package/dist/types/components/chat/SuggestionCards.d.ts +2 -0
  91. package/dist/types/components/chat/index.d.ts +1 -0
  92. package/dist/types/components/content/FAQ.d.ts +12 -0
  93. package/dist/types/components/content/FeatureGrid.d.ts +11 -0
  94. package/dist/types/components/content/InfoCards.d.ts +16 -0
  95. package/dist/types/components/content/Reviews.d.ts +9 -0
  96. package/dist/types/components/content/RichText.d.ts +10 -0
  97. package/dist/types/components/content/article/ArticleDetail.d.ts +15 -0
  98. package/dist/types/components/content/article/BlogCard.d.ts +11 -0
  99. package/dist/types/components/content/article/BlogPosts.d.ts +19 -0
  100. package/dist/types/components/content/page/PageDetail.d.ts +13 -0
  101. package/dist/types/components/content/page/PolicyDetail.d.ts +23 -0
  102. package/dist/types/components/ecommerce/cart/AddToCartButton.d.ts +9 -0
  103. package/dist/types/components/ecommerce/cart/CartContent.d.ts +40 -0
  104. package/dist/types/components/ecommerce/cart/CartDrawer.d.ts +41 -0
  105. package/dist/types/components/ecommerce/cart/CartFoot.d.ts +30 -0
  106. package/dist/types/components/ecommerce/cart/CartLineItem.d.ts +13 -0
  107. package/dist/types/components/ecommerce/cart/CartLineRow.d.ts +17 -0
  108. package/dist/types/components/ecommerce/cart/CartPromoCode.d.ts +29 -0
  109. package/dist/types/components/ecommerce/cart/CartSummary.d.ts +7 -0
  110. package/dist/types/components/ecommerce/cart/CartWidget.d.ts +10 -0
  111. package/dist/types/components/ecommerce/cart/VariantPickerModal.d.ts +12 -0
  112. package/dist/types/components/ecommerce/cart/cart-format.d.ts +8 -0
  113. package/dist/types/components/ecommerce/cart/use-cart-view.d.ts +50 -0
  114. package/dist/types/components/ecommerce/collection/CollectionCard.d.ts +10 -0
  115. package/dist/types/components/ecommerce/collection/CollectionGrid.d.ts +8 -0
  116. package/dist/types/components/ecommerce/collection/CollectionList.d.ts +13 -0
  117. package/dist/types/components/ecommerce/collection/internal/CollectionListItem.d.ts +13 -0
  118. package/dist/types/components/ecommerce/product/AddToRegistry.d.ts +36 -0
  119. package/dist/types/components/ecommerce/product/ComparisonTable.d.ts +25 -0
  120. package/dist/types/components/ecommerce/product/ComparisonTableSkeleton.d.ts +11 -0
  121. package/dist/types/components/ecommerce/product/PresenceProductRail.d.ts +35 -0
  122. package/dist/types/components/ecommerce/product/ProductBadge.d.ts +9 -0
  123. package/dist/types/components/ecommerce/product/ProductCard.d.ts +27 -0
  124. package/dist/types/components/ecommerce/product/ProductDetail.d.ts +25 -0
  125. package/dist/types/components/ecommerce/product/ProductGallery.d.ts +19 -0
  126. package/dist/types/components/ecommerce/product/ProductGrid.d.ts +26 -0
  127. package/dist/types/components/ecommerce/product/ProductImage.d.ts +54 -0
  128. package/dist/types/components/ecommerce/product/ProductOption.d.ts +9 -0
  129. package/dist/types/components/ecommerce/product/ProductPrice.d.ts +8 -0
  130. package/dist/types/components/ecommerce/product/ProductVideoPlayer.d.ts +17 -0
  131. package/dist/types/components/ecommerce/product/comparison-table-parts.d.ts +41 -0
  132. package/dist/types/components/ecommerce/product/comparison-table-rows.d.ts +24 -0
  133. package/dist/types/components/ecommerce/product/image-trim.d.ts +35 -0
  134. package/dist/types/components/ecommerce/product/product-card-glyphs.d.ts +2 -0
  135. package/dist/types/components/ecommerce/product/registry-logos.d.ts +2 -0
  136. package/dist/types/components/ecommerce/product/trim-geometry.d.ts +45 -0
  137. package/dist/types/components/ecommerce/wishlist/WishlistDrawer.d.ts +16 -0
  138. package/dist/types/components/feedback/Skeleton.d.ts +13 -0
  139. package/dist/types/components/feedback/Thinking.d.ts +15 -0
  140. package/dist/types/components/layout/AspectRatio.d.ts +5 -0
  141. package/dist/types/components/layout/Backdrop.d.ts +32 -0
  142. package/dist/types/components/layout/Container.d.ts +6 -0
  143. package/dist/types/components/layout/Divider.d.ts +5 -0
  144. package/dist/types/components/layout/Drawer.d.ts +9 -0
  145. package/dist/types/components/layout/DrawerDockSlot.d.ts +40 -0
  146. package/dist/types/components/layout/Grid.d.ts +8 -0
  147. package/dist/types/components/layout/Modal.d.ts +25 -0
  148. package/dist/types/components/layout/Page.d.ts +11 -0
  149. package/dist/types/components/layout/Section.d.ts +6 -0
  150. package/dist/types/components/layout/Stack.d.ts +7 -0
  151. package/dist/types/components/marketing/AnnouncementBar.d.ts +15 -0
  152. package/dist/types/components/marketing/BrandStory.d.ts +19 -0
  153. package/dist/types/components/marketing/HeroBanner.d.ts +69 -0
  154. package/dist/types/components/marketing/HeroBannerFeatures.d.ts +10 -0
  155. package/dist/types/components/marketing/HeroBannerInline.d.ts +20 -0
  156. package/dist/types/components/marketing/PromoBanner.d.ts +11 -0
  157. package/dist/types/components/marketing/internal/AnnouncementLink.d.ts +5 -0
  158. package/dist/types/components/marketing/internal/AnnouncementMessage.d.ts +10 -0
  159. package/dist/types/components/navigation/Breadcrumbs.d.ts +10 -0
  160. package/dist/types/components/navigation/Footer.d.ts +15 -0
  161. package/dist/types/components/navigation/Header.d.ts +14 -0
  162. package/dist/types/components/navigation/internal/BreadcrumbLink.d.ts +5 -0
  163. package/dist/types/components/navigation/internal/FooterLink.d.ts +5 -0
  164. package/dist/types/components/navigation/internal/HeaderLink.d.ts +5 -0
  165. package/dist/types/components/shell/BaseMark.d.ts +11 -0
  166. package/dist/types/components/shell/CartPill.d.ts +13 -0
  167. package/dist/types/components/shell/ComposerDock.d.ts +9 -0
  168. package/dist/types/components/shell/ErrorBanner.d.ts +14 -0
  169. package/dist/types/components/shell/HistoryMenu.d.ts +15 -0
  170. package/dist/types/components/shell/MenuButton.d.ts +31 -0
  171. package/dist/types/components/shell/MountainRidges.d.ts +11 -0
  172. package/dist/types/components/shell/PendingTurn.d.ts +1 -0
  173. package/dist/types/components/shell/ShellTop.d.ts +35 -0
  174. package/dist/types/components/shell/brand-shell.d.ts +441 -0
  175. package/dist/types/components/shell/index.d.ts +9 -0
  176. package/dist/types/components/shell/marks/index.d.ts +5 -0
  177. package/dist/types/components/social/ReviewCard.d.ts +9 -0
  178. package/dist/types/components/social/ReviewSummary.d.ts +7 -0
  179. package/dist/types/components/social/TestimonialCard.d.ts +9 -0
  180. package/dist/types/components/social/TestimonialCarousel.d.ts +16 -0
  181. package/dist/types/components/social/UgcCard.d.ts +9 -0
  182. package/dist/types/components/social/UgcGallery.d.ts +8 -0
  183. package/dist/types/hooks/index.d.ts +8 -0
  184. package/dist/types/hooks/keyboard.d.ts +18 -0
  185. package/dist/types/hooks/use-container-width.d.ts +11 -0
  186. package/dist/types/hooks/use-dismiss-on-outside.d.ts +23 -0
  187. package/dist/types/hooks/use-focus-on-change.d.ts +8 -0
  188. package/dist/types/hooks/use-focus-trap.d.ts +12 -0
  189. package/dist/types/hooks/use-media-query.d.ts +12 -0
  190. package/dist/types/hooks/use-projection.d.ts +24 -0
  191. package/dist/types/hooks/use-reduced-motion.d.ts +1 -0
  192. package/dist/types/hooks/use-scroll-lock.d.ts +19 -0
  193. package/dist/types/hooks/use-scroll-threshold.d.ts +14 -0
  194. package/dist/types/hooks/use-textarea-autosize.d.ts +16 -0
  195. package/dist/types/index.d.ts +74 -0
  196. package/dist/types/labels-context.d.ts +18 -0
  197. package/dist/types/labels.d.ts +240 -0
  198. package/dist/types/motion/ease.d.ts +10 -0
  199. package/dist/types/motion/generation/ActiveBlockIndicator.d.ts +27 -0
  200. package/dist/types/motion/generation/BlurUpImage.d.ts +23 -0
  201. package/dist/types/motion/generation/ResolveEntrance.d.ts +22 -0
  202. package/dist/types/motion/generation/ShimmerSkeleton.d.ts +20 -0
  203. package/dist/types/motion/generation/WordReveal.d.ts +26 -0
  204. package/dist/types/motion/generation/index.d.ts +6 -0
  205. package/dist/types/motion/hooks/useInViewOnce.d.ts +14 -0
  206. package/dist/types/motion/hooks/useScrollDirection.d.ts +38 -0
  207. package/dist/types/motion/hooks/useScrollProgress.d.ts +23 -0
  208. package/dist/types/motion/hooks/useStableValue.d.ts +36 -0
  209. package/dist/types/motion/hooks/useSuccessFlash.d.ts +1 -0
  210. package/dist/types/motion/index.d.ts +18 -0
  211. package/dist/types/motion/presets.d.ts +335 -0
  212. package/dist/types/motion/primitives/Agent.d.ts +118 -0
  213. package/dist/types/motion/primitives/MorphRegion.d.ts +16 -0
  214. package/dist/types/motion/primitives/Parallax.d.ts +19 -0
  215. package/dist/types/motion/primitives/Pin.d.ts +26 -0
  216. package/dist/types/motion/primitives/Reveal.d.ts +29 -0
  217. package/dist/types/motion/primitives/RevealStagger.d.ts +16 -0
  218. package/dist/types/motion/primitives/StickyShelf.d.ts +18 -0
  219. package/dist/types/primitives/Badge/index.d.ts +12 -0
  220. package/dist/types/primitives/Button/index.d.ts +25 -0
  221. package/dist/types/primitives/Input/index.d.ts +5 -0
  222. package/dist/types/primitives/Money/index.d.ts +13 -0
  223. package/dist/types/primitives/Select/index.d.ts +5 -0
  224. package/dist/types/primitives/Skeleton/index.d.ts +4 -0
  225. package/dist/types/shell/AnimatedPlaceholder.d.ts +13 -0
  226. package/dist/types/shell/BottomSheet.d.ts +54 -0
  227. package/dist/types/shell/Button.d.ts +19 -0
  228. package/dist/types/shell/ChromeSurface.d.ts +33 -0
  229. package/dist/types/shell/Composer.d.ts +56 -0
  230. package/dist/types/shell/ComposerChipStrip.d.ts +9 -0
  231. package/dist/types/shell/ConversationTransition.d.ts +27 -0
  232. package/dist/types/shell/DictationButton.d.ts +24 -0
  233. package/dist/types/shell/DragSheet.d.ts +34 -0
  234. package/dist/types/shell/InlineCompletion.d.ts +38 -0
  235. package/dist/types/shell/LauncherDock.d.ts +40 -0
  236. package/dist/types/shell/ListeningWaveform.d.ts +18 -0
  237. package/dist/types/shell/MenuAccordionPanel.d.ts +26 -0
  238. package/dist/types/shell/MenuDrawer.d.ts +72 -0
  239. package/dist/types/shell/MenuFlyout.d.ts +22 -0
  240. package/dist/types/shell/MenuNav.d.ts +30 -0
  241. package/dist/types/shell/MenuNavBar.d.ts +22 -0
  242. package/dist/types/shell/ShellMenuChrome.d.ts +66 -0
  243. package/dist/types/shell/ShellScaffold.d.ts +92 -0
  244. package/dist/types/shell/SideDock.d.ts +75 -0
  245. package/dist/types/shell/Skeleton.d.ts +22 -0
  246. package/dist/types/shell/Spinner.d.ts +10 -0
  247. package/dist/types/shell/TypedPlaceholder.d.ts +11 -0
  248. package/dist/types/shell/VoiceControl.d.ts +23 -0
  249. package/dist/types/shell/VoiceIsland.d.ts +24 -0
  250. package/dist/types/shell/canvas-gutter-style.d.ts +15 -0
  251. package/dist/types/shell/composer/AttachButton.d.ts +14 -0
  252. package/dist/types/shell/composer/AttachmentStrip.d.ts +12 -0
  253. package/dist/types/shell/composer/ClearSessionButton.d.ts +16 -0
  254. package/dist/types/shell/composer/ConversationHistoryButton.d.ts +25 -0
  255. package/dist/types/shell/composer/ShareCanvasButton.d.ts +19 -0
  256. package/dist/types/shell/composer/ThreadJumpRail.d.ts +43 -0
  257. package/dist/types/shell/composer/composer-metrics.d.ts +6 -0
  258. package/dist/types/shell/composer/field-metrics.d.ts +97 -0
  259. package/dist/types/shell/composer/heic-convert.d.ts +6 -0
  260. package/dist/types/shell/composer/use-field-autosize.d.ts +26 -0
  261. package/dist/types/shell/composer/useComposerAttachments.d.ts +37 -0
  262. package/dist/types/shell/composer/usePromptComposer.d.ts +51 -0
  263. package/dist/types/shell/dock-context.d.ts +10 -0
  264. package/dist/types/shell/index.d.ts +36 -0
  265. package/dist/types/shell/menu-columns.d.ts +19 -0
  266. package/dist/types/shell/mobile/DefaultMobileShell.d.ts +88 -0
  267. package/dist/types/shell/mobile/IslandComposeGroup.d.ts +41 -0
  268. package/dist/types/shell/mobile/IslandInputBar.d.ts +61 -0
  269. package/dist/types/shell/mobile/IslandNavButtons.d.ts +20 -0
  270. package/dist/types/shell/mobile/IslandTrailingAction.d.ts +34 -0
  271. package/dist/types/shell/mobile/MobileChrome.d.ts +34 -0
  272. package/dist/types/shell/mobile/MobileVoiceConsole.d.ts +42 -0
  273. package/dist/types/shell/mobile/MorphIsland.d.ts +105 -0
  274. package/dist/types/shell/mobile/RestIsland.d.ts +41 -0
  275. package/dist/types/shell/mobile/constants.d.ts +26 -0
  276. package/dist/types/shell/mobile/document-scroll-ref.d.ts +22 -0
  277. package/dist/types/shell/mobile/hero-entry-point.d.ts +110 -0
  278. package/dist/types/shell/mobile/island-metrics.d.ts +131 -0
  279. package/dist/types/shell/mobile/sheet-detents.d.ts +49 -0
  280. package/dist/types/shell/mobile/turn-end-action.d.ts +44 -0
  281. package/dist/types/shell/mobile/use-blur-on-canvas-gesture.d.ts +31 -0
  282. package/dist/types/shell/mobile/use-island-fold-scroll.d.ts +28 -0
  283. package/dist/types/shell/mobile/use-keyboard-inset.d.ts +18 -0
  284. package/dist/types/shell/mobile/use-sheet-fold-gesture.d.ts +57 -0
  285. package/dist/types/shell/slots.d.ts +16 -0
  286. package/dist/types/shell/thread-reland.d.ts +22 -0
  287. package/dist/types/shell/use-dock-state.d.ts +54 -0
  288. package/dist/types/types/commerce.d.ts +1 -0
  289. package/dist/types/utils/cn.d.ts +2 -0
  290. package/dist/types/utils/format-money.d.ts +2 -0
  291. package/dist/types/utils/html-to-text.d.ts +8 -0
  292. package/dist/types/utils/sanitize-html.d.ts +12 -0
  293. package/dist/types/utils/use-backdrop-presence.d.ts +24 -0
  294. package/dist/types/utils/use-composer-mode.d.ts +26 -0
  295. package/dist/types/utils/use-is-seed-home.d.ts +13 -0
  296. package/dist/types/utils/use-safe-cart.d.ts +17 -0
  297. package/dist/types/utils/use-safe-facts.d.ts +9 -0
  298. package/dist/types/utils/use-safe-fourty-session.d.ts +15 -0
  299. package/package.json +80 -0
@@ -0,0 +1,649 @@
1
+ 'use client';
2
+
3
+ // src/catalog-data/base.ts
4
+ import { z } from "zod";
5
+ var pageProps = z.object({});
6
+
7
+ // src/catalog-data/tokens.ts
8
+ import { z as z2 } from "zod";
9
+ var emphasisEnum = z2.enum(["subtle", "normal", "feature"]);
10
+ var emphasisProp = emphasisEnum.optional().describe(
11
+ "Visual weight: subtle = quieter & smaller \xB7 normal = default \xB7 feature = larger, leads the section. Use feature for the ONE element that should carry a section; keep the rest normal so the lead actually stands out."
12
+ );
13
+ var spaceScaleEnum = z2.enum(["sm", "md", "lg"]);
14
+ var imageFitEnum = z2.enum(["cover", "contain"]);
15
+ var imageFitProp = imageFitEnum.optional().describe(
16
+ "How product images fill their card: cover = fill the card edge-to-edge, cropping empty margin so the product reads large (default, storefront-style) \xB7 contain = show the whole photo even if it letterboxes (pick this only when the full product must never be cropped, e.g. a wide laid-flat accessory)."
17
+ );
18
+
19
+ // src/catalog-data/content.ts
20
+ import { z as z3 } from "zod";
21
+ import { ArticleSchema, CmsPageSchema, CmsPolicySchema } from "@40rty/ams-sdk";
22
+ import { SuggestionActionSchema, resolved, prose } from "@40rty/ams-sdk";
23
+ var CtaSchema = z3.object({
24
+ label: z3.string().describe("button text"),
25
+ action: SuggestionActionSchema.optional().describe(
26
+ 'agentic action dispatched on click. To send the visitor to a page, use {type:"navigate", payload:{page:{kind:"product",id}}} \u2014 kind is one of home / product / collection / search / article / cms. Other types: message / cart.add. Omit to default to {type:"message", payload:{text:label}}.'
27
+ )
28
+ });
29
+ var backdropProps = z3.object({
30
+ variant: z3.enum(["ridges", "sky", "video", "none"]).optional().describe(
31
+ "Background variant. `ridges` = parallax mountain silhouettes + alpine sky gradient. `sky` = gradient + grain + vignette only. `video` = full-bleed autoplay-loop-muted video sourced from `videoUrl`. `none` = nothing rendered."
32
+ ),
33
+ ridgeColor: z3.string().optional().describe("Hex color of mountain ridges. Defaults to surface fg1."),
34
+ videoUrl: z3.string().optional().describe(
35
+ 'Direct mp4/webm URL for the `video` variant. Loaded with preload="metadata", muted, looped, playsInline.'
36
+ ),
37
+ posterUrl: z3.string().optional().describe("Optional poster frame shown while video buffers.")
38
+ });
39
+ var backdropExamples = [
40
+ { variant: "ridges" },
41
+ { variant: "video", videoUrl: "https://cdn.example.com/hero.mp4" }
42
+ ];
43
+ var heroProps = z3.object({
44
+ headline: z3.string().describe("main headline text"),
45
+ subheadline: prose(z3.string()).optional().describe("supporting text below headline"),
46
+ backgroundImage: z3.string().optional().describe("URL for full-width background image. Ignored when `videoUrl` is set."),
47
+ videoUrl: z3.string().optional().describe(
48
+ "Direct mp4/webm URL for a full-width autoplay-loop-muted background video \u2014 takes priority over `backgroundImage` when both are present. Loaded muted, looped, playsInline."
49
+ ),
50
+ posterUrl: z3.string().optional().describe("Poster frame shown while the video buffers. Only used when `videoUrl` is set."),
51
+ primaryCta: CtaSchema.optional().describe("primary call-to-action button"),
52
+ secondaryCta: CtaSchema.optional().describe("secondary/outlined call-to-action button"),
53
+ badge: z3.string().optional().describe('small label above headline \u2014 "New Collection", "Limited Edition"'),
54
+ kicker: z3.string().optional().describe('Editorial kicker line above the headline \u2014 small uppercase, used to anchor the hero in time / place / context (e.g. "field test \xB7 catamount \xB7 02.14.26"). Distinct from `badge` which is a single-token label.'),
55
+ body: prose(z3.string()).optional().describe('Lede paragraph below the headline / subheadline. Longer-form than subheadline; carries the "why" of the hero.'),
56
+ swatch: z3.string().optional().describe("Hex color used as the background swatch when no `backgroundImage` is set. Pairs with `swatchFg` for type contrast."),
57
+ swatchFg: z3.string().optional().describe("Hex color for headline / body when `swatch` is set."),
58
+ contentAlign: z3.enum(["left", "center", "right"]).optional().describe("horizontal alignment of text content over the image (default: center)"),
59
+ overlay: z3.boolean().optional().describe("dark overlay on background image for text readability (default: true)"),
60
+ height: z3.enum(["sm", "md", "lg", "full", "inline"]).optional().describe(
61
+ "banner height (default: lg). 'inline' = natural-flow editorial intro (no image/swatch/CTA chrome, no viewport-height commitment) \u2014 use for a welcome/first-state lede or a section-opener title within a turn, sized to content like a masthead, not a cinematic band."
62
+ ),
63
+ headlineStyle: z3.enum(["plain", "stacked-italic"]).optional().describe(
64
+ "Headline rendering: 'plain' single-line sans default, 'stacked-italic' two-line with the second line italic \u2014 split the headline string on `/` to set the two lines (e.g. 'built for / the storm')."
65
+ ),
66
+ bodyStyle: z3.enum(["plain", "italic-serif"]).optional().describe(
67
+ "Body rendering: 'plain' default, 'italic-serif' renders the body as a Newsreader italic lede (max-width 540px)."
68
+ ),
69
+ features: z3.array(z3.object({
70
+ title: z3.string().describe("feature title"),
71
+ description: prose(z3.string()).optional().describe("feature description")
72
+ })).optional().describe(`Optional feature/trust-point cards displayed below the CTA row (e.g. "Sustainable Materials", "Fair Trade Certified") \u2014 was the old brandBanner type's signature, now available on any hero.`)
73
+ });
74
+ var heroExamples = [
75
+ {
76
+ headline: "A headline that sets the scene",
77
+ subheadline: "A short supporting line beneath it",
78
+ backgroundImage: "https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1600&h=900&fit=crop",
79
+ primaryCta: { label: "Primary action" },
80
+ contentAlign: "left",
81
+ height: "lg"
82
+ },
83
+ // `height: 'inline'` — the old `display` type's job: a welcome/first-state
84
+ // lede or section-opener title at natural canvas flow, no image/CTA chrome.
85
+ {
86
+ headline: "<line one> / <line two>",
87
+ body: "<lede paragraph>",
88
+ headlineStyle: "stacked-italic",
89
+ height: "inline"
90
+ },
91
+ // Full-bleed statement + trust-point row — the old `brandBanner` type's job.
92
+ {
93
+ headline: "Crafted for Adventure",
94
+ subheadline: "Every product is designed to perform when it matters most.",
95
+ backgroundImage: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&h=900&fit=crop",
96
+ primaryCta: { label: "Our Story" },
97
+ contentAlign: "center",
98
+ height: "md",
99
+ features: [
100
+ { title: "Sustainable Materials", description: "Made from recycled and responsibly sourced fabrics" },
101
+ { title: "Built to Last", description: "Rigorous testing ensures durability season after season" },
102
+ { title: "Fair Trade Certified", description: "Supporting ethical manufacturing worldwide" }
103
+ ]
104
+ }
105
+ ];
106
+ var brandStoryProps = z3.object({
107
+ headline: z3.string().describe('the brand statement \u2014 short, declarative; e.g. "Built bold in New York since 1990."'),
108
+ // NOT `prose()`-marked: `body` is BLOCK copy, split on `\n\n` into paragraphs
109
+ // by current-v2's renderer (`BrandStory.tsx`'s `paragraphsFrom`). The marker
110
+ // renders INLINE markdown only and hands the component a ReactNode[], which
111
+ // has no `.split`. Block-level copy stays a raw string.
112
+ body: z3.string().describe("2-4 sentences telling the brand origin / mission / point-of-view. Sourced from the SPACE MANIFEST brand identity section \u2014 never invent."),
113
+ eyebrow: z3.string().optional().describe('small uppercase label above the headline \u2014 "Our Story", "Who We Are", "The Brand". Default omitted.'),
114
+ lede: prose(z3.string()).optional().describe("single italic-serif sentence between headline and body \u2014 usually the brand tagline / slogan from the manifest."),
115
+ founded: z3.string().optional().describe('founded year + place line, rendered as a small caps footer \u2014 e.g. "Founded 1990 \xB7 Long Island".'),
116
+ imageSrc: z3.string().optional().describe("brand hero image URL from the manifest (`brand hero image` / `square logo`). Omit to render text-only."),
117
+ imageAlt: z3.string().optional().describe("alt text for the brand image."),
118
+ layout: z3.enum(["image-right", "image-left", "full-bleed"]).optional().describe("image-right (default), image-left (mirror), full-bleed (cinematic \u2014 image fills, copy overlays bottom).")
119
+ });
120
+ var brandStoryExamples = [
121
+ {
122
+ eyebrow: "Our Story",
123
+ headline: "<one-line brand statement from manifest>",
124
+ lede: "<brand tagline / slogan from manifest>",
125
+ body: "<2-4 sentences of brand origin / mission from manifest>",
126
+ founded: "Founded <year> \xB7 <city>",
127
+ imageSrc: "<brand hero image URL from manifest>",
128
+ layout: "image-right"
129
+ }
130
+ ];
131
+ var blogPostsProps = z3.object({
132
+ title: z3.string().describe("section heading"),
133
+ subtitle: prose(z3.string()).optional().describe("supporting text below heading"),
134
+ articles: resolved(ArticleSchema, "article", { min: 1, max: 12 }).describe(
135
+ 'Article gids. Hydrated client-side into full Article objects (id + title + excerpt + image + author + publishedAt + handle + blogHandle + tags). Emit `["gid://shopify/Article/<id>", \u2026]` \u2014 never invent ids; pull from the brand catalog. Clicking a card dispatches `navigate` to a `{kind:"article", id}` destination, which the router resolves to the `articleDetail` view.'
136
+ ),
137
+ moreLabel: z3.string().optional().describe('link text for "See More" \u2014 "See More From the Blog"'),
138
+ moreAction: SuggestionActionSchema.optional().describe('agentic action dispatched when "See More" is clicked \u2014 defaults to {type:"message", payload:{text:moreLabel}}')
139
+ });
140
+ var articleDetailProps = z3.object({
141
+ article: resolved(ArticleSchema, "article", { max: 1 })
142
+ });
143
+ var articleDetailExamples = [
144
+ {
145
+ article: {
146
+ id: "gid://shopify/Article/123",
147
+ handle: "choose-your-first-snowboard",
148
+ title: "How to Choose Your First Snowboard",
149
+ excerpt: "A beginner's guide to finding the right board for your riding style.",
150
+ content: "<p>Buying your first snowboard is a major decision...</p>",
151
+ contentHtml: "<p>Buying your first snowboard is a major decision...</p>",
152
+ author: "Team",
153
+ publishedAt: "2026-02-15",
154
+ blogHandle: "journal",
155
+ tags: ["snowboard", "beginner"],
156
+ image: { url: "https://images.unsplash.com/photo-1551698618-1dfe5d97d256?w=1200&h=675&fit=crop", altText: "Snowboarder at sunset" }
157
+ }
158
+ }
159
+ ];
160
+ var pageDetailProps = z3.object({
161
+ page: resolved(CmsPageSchema, "page", { max: 1 })
162
+ });
163
+ var pageDetailExamples = [
164
+ {
165
+ page: {
166
+ id: "gid://shopify/Page/123",
167
+ handle: "shipping",
168
+ title: "Shipping & Returns",
169
+ body: "<h2>Shipping</h2><p>We ship worldwide...</p>",
170
+ bodyHtml: "<h2>Shipping</h2><p>We ship worldwide...</p>",
171
+ bodySummary: "Worldwide shipping with 30-day returns.",
172
+ updatedAt: "2026-04-01"
173
+ }
174
+ }
175
+ ];
176
+ var policyDetailProps = z3.object({
177
+ policy: resolved(CmsPolicySchema, "policy", { max: 1 }),
178
+ mode: z3.enum(["answer", "excerpt", "full"]).optional().describe(
179
+ 'How to render the policy. `answer` (default): small inline card with agent-written `answer` text + "Read full policy" link. Composable alongside other elements. `excerpt`: same card shape, body is the matched paragraph from `excerptHtml`. `full`: fullbleed reader of the entire policy body \u2014 subject-swap only, takes the whole canvas. Pick `answer` for conversational policy questions; `full` only when the visitor explicitly asks to read the whole document.'
180
+ ),
181
+ answer: z3.string().optional().describe(
182
+ "Agent-written 1-3 sentence answer to the visitor's policy question. Required when `mode: \"answer\"`. Voice it in the brand's tone, cite the load-bearing fact (window, condition, exception). Do NOT restate the policy title; the card chrome already shows it."
183
+ ),
184
+ excerptHtml: z3.string().optional().describe(
185
+ 'Matched HTML paragraph from the inline `RELEVANT POLICY EXCERPTS` block. Required when `mode: "excerpt"`. Copy verbatim from the excerpt \u2014 do NOT paraphrase, do NOT trim, do NOT add wrapping markup.'
186
+ )
187
+ });
188
+ var policyDetailExamples = [
189
+ {
190
+ mode: "answer",
191
+ answer: "Free returns within 30 days on full-price items. Sale and clearance items are final.",
192
+ policy: {
193
+ id: "gid://shopify/ShopPolicy/123",
194
+ kind: "refund",
195
+ handle: "refund-policy",
196
+ title: "Refund Policy",
197
+ body: "<h2>Returns</h2><p>We gladly accept returns within 30 days...</p>",
198
+ bodyHtml: "<h2>Returns</h2><p>We gladly accept returns within 30 days...</p>",
199
+ url: "https://example.myshopify.com/policies/refund-policy"
200
+ }
201
+ },
202
+ {
203
+ mode: "excerpt",
204
+ excerptHtml: "<p>We use first-party cookies to allow your browser to talk to the actual website that you are visiting...</p>",
205
+ policy: {
206
+ id: "gid://shopify/ShopPolicy/456",
207
+ kind: "privacy",
208
+ handle: "privacy-policy",
209
+ title: "Privacy Policy",
210
+ body: "",
211
+ bodyHtml: "",
212
+ url: "https://example.myshopify.com/policies/privacy-policy"
213
+ }
214
+ },
215
+ {
216
+ mode: "full",
217
+ policy: {
218
+ id: "gid://shopify/ShopPolicy/123",
219
+ kind: "refund",
220
+ handle: "refund-policy",
221
+ title: "Refund Policy",
222
+ body: "<h2>Returns</h2><p>We gladly accept returns within 30 days...</p>",
223
+ bodyHtml: "<h2>Returns</h2><p>We gladly accept returns within 30 days...</p>",
224
+ url: "https://example.myshopify.com/policies/refund-policy"
225
+ }
226
+ }
227
+ ];
228
+ var blogPostsExamples = [
229
+ {
230
+ title: "From the Blog",
231
+ articles: [
232
+ "gid://shopify/Article/<id>",
233
+ "gid://shopify/Article/<id>",
234
+ "gid://shopify/Article/<id>"
235
+ ],
236
+ moreLabel: "See More From the Blog Articles..."
237
+ }
238
+ ];
239
+ var infoCardsProps = z3.object({
240
+ title: z3.string().optional().describe("optional section heading"),
241
+ variant: z3.enum(["strip", "checklist", "stat"]).optional().describe(
242
+ 'Visual shape of the band (default "strip"). Pick by what the cards carry \u2014 and use it to give a stacked page RHYTHM so consecutive sections never read identically:\n - "strip": numbered editorial columns. For 2-4 explanatory points (how-it-works, what-you-get).\n - "checklist": \u2713-marked rows, no numbers. For trust / value-props / what-is-included ("Free returns", "2-year warranty", "Carbon-neutral shipping").\n - "stat": the `title` renders as a LARGE metric with the `description` as its small-caps label. For numbers worth emphasising ("10k+ riders" / "since 2008", "30-day" / "return window"). Put the value in `title`, the label in `description`.'
243
+ ),
244
+ cards: z3.array(z3.object({
245
+ title: z3.string().describe('card title \u2014 for variant "stat", this is the large metric/value'),
246
+ description: prose(z3.string()).describe('card description \u2014 for variant "stat", this is the small-caps label under the value')
247
+ })).describe("info card entries")
248
+ });
249
+ var infoCardsExamples = [
250
+ {
251
+ title: "Why Shop With Us",
252
+ cards: [
253
+ { title: "Free Shipping", description: "On all orders over $150" },
254
+ { title: "Easy Returns", description: "30-day hassle-free exchanges" },
255
+ { title: "Expert Support", description: "Chat with our gear specialists" }
256
+ ]
257
+ },
258
+ {
259
+ variant: "checklist",
260
+ title: "Included With Every Order",
261
+ cards: [
262
+ { title: "Free 2-day shipping", description: "On orders over $150" },
263
+ { title: "60-day returns", description: "No questions asked" },
264
+ { title: "Lifetime support", description: "Talk to a real specialist, not a bot" }
265
+ ]
266
+ },
267
+ {
268
+ variant: "stat",
269
+ title: "By the Numbers",
270
+ cards: [
271
+ { title: "10k+", description: "riders geared up" },
272
+ { title: "Since 2008", description: "built in Vermont" },
273
+ { title: "4.8\u2605", description: "across 2,400 reviews" }
274
+ ]
275
+ }
276
+ ];
277
+ var faqProps = z3.object({
278
+ title: z3.string().describe("section heading"),
279
+ items: z3.array(z3.object({
280
+ question: z3.string().describe("the question"),
281
+ answer: prose(z3.string()).describe("the answer")
282
+ })).describe("FAQ entries")
283
+ });
284
+ var faqExamples = [
285
+ {
286
+ title: "Frequently Asked Questions",
287
+ items: [
288
+ { question: "What size snowboard do I need?", answer: "Board size depends on your weight, height, and riding style. Use our size chart or chat with a specialist for a personalized recommendation." },
289
+ { question: "Do you offer free returns?", answer: "Yes! We offer free returns within 30 days of purchase. Items must be unused and in original packaging." },
290
+ { question: "How long does shipping take?", answer: "Standard shipping takes 3-5 business days. Express shipping is available at checkout for 1-2 day delivery." }
291
+ ]
292
+ }
293
+ ];
294
+
295
+ // src/catalog-data/ecommerce.ts
296
+ import { z as z4 } from "zod";
297
+ import { ProductSchema, CollectionSchema } from "@40rty/ams-sdk";
298
+ import { SuggestionActionSchema as SuggestionActionSchema2, resolved as resolved2, prose as prose2 } from "@40rty/ams-sdk";
299
+ var productGridProps = z4.object({
300
+ products: resolved2(ProductSchema, "product", { min: 0, max: 24, derivedFrom: "collectionSlug" }).describe(
301
+ "Render up to 12 matching product gids by default; use fewer when fewer match. Never pad with unrelated products. Up to 24 for explicit show-all requests; [] only with collectionSlug."
302
+ ),
303
+ title: z4.string().describe("section heading"),
304
+ eyebrow: z4.string().optional().describe('small mono-caps label above the title ("Appliances").'),
305
+ action: CtaSchema.optional().describe('optional link/button rendered beside the title, e.g. a "View all" that navigates to the full collection.'),
306
+ columns: z4.number().optional().describe("grid columns (default: 3)"),
307
+ collectionSlug: z4.string().optional().describe(
308
+ 'PREFER this for full-collection browse intents ("show me all heels", "women\'s sandals", "more items to browse"). Pass the Shopify handle (e.g. "womens-heels", "handbags-totes") and leave `products` EMPTY \u2014 the grid self-fetches the full collection from spacefront, paginated, with filters. Stuffing 4 sample gids into `products` for a category-browse intent reads as a chatbot returning a thin slice of what the visitor asked for. Use inline `products` for curated picks that match the request, where you control the exact lineup.'
309
+ ),
310
+ filters: z4.array(
311
+ z4.object({
312
+ label: z4.string().describe('Chip label shown to visitor ("Heels", "Under $100", "Sale", "Suede only", "Brown").'),
313
+ match: z4.object({
314
+ tag: z4.string().optional().describe("Substring match against product tags (case-insensitive)."),
315
+ productType: z4.string().optional().describe("Substring match against product.productType (case-insensitive)."),
316
+ vendor: z4.string().optional().describe("Exact match against product.vendor (case-insensitive)."),
317
+ priceMax: z4.number().optional().describe("Product price \u2264 this value."),
318
+ priceMin: z4.number().optional().describe("Product price \u2265 this value."),
319
+ saleOnly: z4.boolean().optional().describe('When true, only products with compareAtPrice > price OR tagged "sale".')
320
+ }).describe(
321
+ 'Predicate \u2014 fields AND-combine. Omit fields you do not need. Empty match `{}` matches all (use for an "All" chip). The agent decides the chip semantics; the SDK runs the match against each product.'
322
+ )
323
+ })
324
+ ).optional().describe(
325
+ 'Filter chips rendered above the grid. AGENT-OWNED \u2014 you supply the chip list based on what you know about the products you just emitted. Examples:\n - Grid is sandals only \u2192 omit `filters` (no useful axis).\n - Grid mixes 3 silhouettes \u2192 emit one chip per silhouette + "All": `[{label:"All",match:{}},{label:"Heels",match:{productType:"heels"}},{label:"Boots",match:{productType:"boots"}}]`.\n - Grid spans wide price range \u2192 emit price bands: `[{label:"All",match:{}},{label:"Under $100",match:{priceMax:100}},{label:"$100-$200",match:{priceMin:100,priceMax:200}}]`.\n - Grid has some on sale \u2192 add `[{label:"Sale",match:{saleOnly:true}}]`.\nRULES: (1) Use ONLY axes the products actually span \u2014 a chip that matches 0 or all products is broken. (2) Always include an `{label:"All",match:{}}` chip as the first entry so visitors can reset. (3) Don\'t set this for grids with <6 products \u2014 the filter UI is noise on small sets. (4) Match values must match what the data actually carries \u2014 for Shopify, `productType` is often "Women\'s Shoes" or a TaxonomyCategory gid; if the predicate won\'t hit, use `tag` against a known tag instead.'
326
+ ),
327
+ reason: prose2(z4.string()).optional().describe(
328
+ `Rationale shown under the title \u2014 WHY this set, in brand voice. **Default 2-3 sentences** (~180-280 chars) so the visitor sees the agent's thinking, not a tagline. Shape the three sentences as: (1) the constraint named + how this set honours it, (2) a concrete material / silhouette / fit texture that justifies the picks, (3) the tradeoff or what to look for in the lineup ("the slouch is a half-size up", "the suede needs proofing", "stack-heel for the long stand"). Each sentence adds a NEW reason \u2014 never restate. "Here are some options" / "we found these" / "you might like these" is filler \u2014 leave empty instead. Drop to a single clause ONLY on bare-browse turns where the title already carries the why ("Women's Heels"). Two thin sentences read as boilerplate; lean into texture.`
329
+ ),
330
+ compact: z4.boolean().optional().describe("Tighter spacing for inline / embedded grids."),
331
+ imageFit: imageFitProp
332
+ });
333
+ var productGridExamples = [
334
+ {
335
+ title: "Featured Products",
336
+ products: [
337
+ "gid://shopify/Product/<id-1>",
338
+ "gid://shopify/Product/<id-2>",
339
+ "gid://shopify/Product/<id-3>",
340
+ "gid://shopify/Product/<id-4>",
341
+ "gid://shopify/Product/<id-5>",
342
+ "gid://shopify/Product/<id-6>",
343
+ "gid://shopify/Product/<id-7>",
344
+ "gid://shopify/Product/<id-8>"
345
+ ]
346
+ }
347
+ ];
348
+ var productDetailProps = z4.object({
349
+ product: resolved2(ProductSchema, "product", { max: 1 })
350
+ });
351
+ var productDetailExamples = [
352
+ {
353
+ product: {
354
+ id: "gid://shopify/Product/123",
355
+ handle: "alpine-pro-snowboard",
356
+ title: "Alpine Pro Snowboard",
357
+ description: "All-mountain performance board with responsive flex and precise edge control for riders who demand versatility. Features a hybrid camber profile with rocker tips for float in powder and stability on groomers.",
358
+ vendor: "Peak Gear",
359
+ tags: ["snowboard", "all-mountain", "performance"],
360
+ price: { amount: 449.99, currencyCode: "USD" },
361
+ compareAtPrice: { amount: 549.99, currencyCode: "USD" },
362
+ images: [
363
+ { url: "https://images.unsplash.com/photo-1551698618-1dfe5d97d256?w=600&h=600&fit=crop", altText: "Alpine Pro Snowboard front view" },
364
+ { url: "https://images.unsplash.com/photo-1486325212027-8081e485255e?w=600&h=600&fit=crop", altText: "Alpine Pro Snowboard side view" },
365
+ { url: "https://images.unsplash.com/photo-1522056615691-da7b8106c665?w=600&h=600&fit=crop", altText: "Alpine Pro Snowboard detail" }
366
+ ],
367
+ variants: [
368
+ { id: "v1", title: "152cm", available: true, price: { amount: 449.99, currencyCode: "USD" } },
369
+ { id: "v2", title: "156cm", available: true, price: { amount: 449.99, currencyCode: "USD" } },
370
+ { id: "v3", title: "160cm", available: false, price: { amount: 449.99, currencyCode: "USD" } }
371
+ ],
372
+ availableForSale: true,
373
+ options: [{ name: "Size", values: ["152cm", "156cm", "160cm"] }],
374
+ rating: { value: 4.5, count: 128 }
375
+ }
376
+ }
377
+ ];
378
+ var comparisonTableProps = z4.object({
379
+ products: resolved2(ProductSchema, "product", { min: 2, max: 6 }).describe(
380
+ "Array of DISTINCT product gids to compare side-by-side. Each gid MUST appear at most once \u2014 never repeat the same product, even when narrowing to a single winner (in that case skip comparisonTable entirely and emit a productDetail). Duplicate gids are deduped by validation, which can drop the component below min=2 and remove it from the canvas."
381
+ ),
382
+ highlightedProductId: z4.string().optional().describe(
383
+ 'Product gid that gets the "MY PICK" verdict highlight. MUST be one of the gids in `products`. **SET this whenever the prose declares a winner** \u2014 the prose-declared winner without a matching highlight reads as visual noise; the table must mark the same product the voice recommends. Omit ONLY on genuinely neutral compare turns where the prose explicitly stays non-committal \u2014 the absence of highlight is itself the signal that the agent is staying neutral.'
384
+ ),
385
+ verdict: prose2(z4.string()).optional().describe(
386
+ 'Your one-line call, rendered as the headline banner ABOVE the products \u2014 the whole point of an agentic compare. Lead with the pick + the deciding reason in your voice: "For a beach party, the Jelina takes it \u2014 the low kitten walks the sand." \u2264140 chars, ONE sentence, no product enumeration beyond naming the winner. Set this on every decisive compare; pair it with `highlightedProductId` (same product). Omit only on a genuinely neutral side-by-side.'
387
+ ),
388
+ attributeRows: z4.array(
389
+ z4.object({
390
+ id: z4.string().describe('Stable slug for React keying ("heel-height", "material").'),
391
+ label: z4.string().describe('Row label rendered in the leftmost column ("Heel height", "Material").'),
392
+ values: z4.record(z4.union([z4.string(), z4.number(), z4.boolean()])).describe(
393
+ 'REQUIRED \u2014 map keyed by EACH product gid in `products`. Shape: `{"gid://...A": "2.5 in", "gid://...B": "3.5 in"}`. Every gid in `products` MUST have an entry; missing keys render as blank cells (broken UI). Use strings for spec text ("2.5 in", "Leather"), numbers for raw magnitudes (4.5), booleans for yes/no traits (true \u2192 \u2713, false \u2192 \u2717).'
394
+ ),
395
+ winner: z4.string().optional().describe(
396
+ 'gid of the product that WINS this axis \u2014 the agentic adjudication that turns a spec dump into a judgment. MUST be one of `products`. The renderer ticks the winning cell and synthesises a trade-off summary ("Jelina leads on heel, breathability \xB7 Sofie takes height"). Set it on every axis where one product is genuinely better FOR THE STATED INTENT (not just a bigger number \u2014 a 4in heel only "wins" if taller is what they want). Omit on axes that are a true wash or pure preference (color, a neutral style difference).'
397
+ )
398
+ })
399
+ ).optional().describe(
400
+ "Per-product JUDGMENT rows \u2014 the agent's reasoning made structural. They render ON TOP of the renderer's auto-derived floor (price, sale, rating, in-stock, all read from product data; NEVER re-emit those). Surface ONLY axes the floor can't structure: heel height, platform, material, toe shape, closure, occasion, and a \"Best for\" row naming who each suits. For each axis set `winner` to the product that wins it for the stated intent \u2014 that adjudication is what makes this a comparison instead of a table. One row per axis that meaningfully differs \u2014 fit the data, no count target. Derive values from title / description / tags / variants when no explicit field carries it. Values keyed by EACH product gid \u2014 fill every cell or drop the whole row."
401
+ )
402
+ });
403
+ var comparisonTableExamples = [
404
+ {
405
+ verdict: "For all-day wear, the <id-a> takes it \u2014 the lower heel keeps you standing past midnight.",
406
+ highlightedProductId: "gid://shopify/Product/<id-a>",
407
+ products: [
408
+ "gid://shopify/Product/<id-a>",
409
+ "gid://shopify/Product/<id-b>"
410
+ ],
411
+ attributeRows: [
412
+ {
413
+ id: "heel-height",
414
+ label: "Heel height",
415
+ values: {
416
+ "gid://shopify/Product/<id-a>": "2.5 in",
417
+ "gid://shopify/Product/<id-b>": "3.5 in"
418
+ },
419
+ winner: "gid://shopify/Product/<id-a>"
420
+ },
421
+ {
422
+ id: "material",
423
+ label: "Material",
424
+ values: {
425
+ "gid://shopify/Product/<id-a>": "Leather",
426
+ "gid://shopify/Product/<id-b>": "Patent leather"
427
+ },
428
+ winner: "gid://shopify/Product/<id-b>"
429
+ },
430
+ {
431
+ id: "best-for",
432
+ label: "Best for",
433
+ values: {
434
+ "gid://shopify/Product/<id-a>": "All-day wear",
435
+ "gid://shopify/Product/<id-b>": "A night out"
436
+ }
437
+ }
438
+ ]
439
+ }
440
+ ];
441
+ var collectionListProps = z4.object({
442
+ title: z4.string().optional().describe("section heading"),
443
+ subtitle: prose2(z4.string()).optional().describe("supporting text"),
444
+ collections: resolved2(CollectionSchema, "collection", { min: 1, max: 12 }).describe(
445
+ "Collection ids/handles. Client resolves to {handle, title, description, image, productCount} so the tile renders with cover image + count without the LLM emitting them inline."
446
+ ),
447
+ actions: z4.array(SuggestionActionSchema2).optional().describe(
448
+ 'Per-collection click actions, matched by position. Defaults to {type:"navigate", payload:{page:{kind:"collection", handle, title}}} when omitted.'
449
+ )
450
+ });
451
+ var collectionListExamples = [
452
+ {
453
+ title: "Shop by Category",
454
+ collections: ["gid://shopify/Collection/123", "gid://shopify/Collection/124", "gid://shopify/Collection/125"]
455
+ }
456
+ ];
457
+
458
+ // src/catalog-data/social.ts
459
+ import { z as z5 } from "zod";
460
+ import { ProductSchema as ProductSchema2 } from "@40rty/ams-sdk";
461
+ import { resolved as resolved3, prose as prose3 } from "@40rty/ams-sdk";
462
+ var testimonialsProps = z5.object({
463
+ title: z5.string().describe("section heading"),
464
+ testimonials: z5.array(z5.object({
465
+ quote: prose3(z5.string()).describe("testimonial quote text"),
466
+ author: z5.string().describe("author name"),
467
+ role: z5.string().optional().describe("author role or title"),
468
+ avatarUrl: z5.string().optional().describe("author avatar image URL"),
469
+ rating: z5.number().optional().describe("star rating (1-5)")
470
+ })).describe("testimonial entries")
471
+ });
472
+ var testimonialsExamples = [
473
+ {
474
+ title: "What Our Customers Say",
475
+ testimonials: [
476
+ { quote: "Best snowboard I've ever owned. The flex pattern is perfect for all-mountain riding.", author: "Alex M.", role: "Verified Buyer", rating: 5 },
477
+ { quote: "Incredible quality and the customer service team was super helpful with sizing.", author: "Sarah K.", role: "Verified Buyer", rating: 5 },
478
+ { quote: "Fast shipping and the board arrived in perfect condition. Will definitely buy again.", author: "Jordan P.", role: "Verified Buyer", rating: 4 }
479
+ ]
480
+ }
481
+ ];
482
+ var reviewsProps = z5.object({
483
+ title: z5.string().describe("section heading"),
484
+ /**
485
+ * Resolved product reference. When provided, the Reviews component
486
+ * reads the hydrated product's `reviews` (sourced from the brand's
487
+ * review store / `agent_data.reviews` metafield in Shopify) and
488
+ * renders those instead of the agent-supplied `reviews` array.
489
+ * Use this whenever you have a product gid — guarantees real
490
+ * customer review bodies, not invented prose.
491
+ */
492
+ product: resolved3(ProductSchema2, "product", { max: 1 }).optional().describe("product gid; when provided, reviews are pulled from the brand review store and the explicit `reviews` array is ignored"),
493
+ reviews: z5.array(z5.object({
494
+ author: z5.string().describe("reviewer name"),
495
+ rating: z5.number().describe("star rating (1-5)"),
496
+ // NOT `prose()`-marked: review bodies are VERBATIM customer copy, not
497
+ // agent/brand voice. A shopper who types `**` means asterisks.
498
+ content: z5.string().describe("review body text"),
499
+ date: z5.string().describe("review date"),
500
+ verified: z5.boolean().optional().describe("verified buyer badge")
501
+ })).optional().describe("explicit review entries \u2014 fallback when `product` is absent or has no review metafield")
502
+ });
503
+ var reviewsExamples = [
504
+ {
505
+ title: "Customer Reviews",
506
+ reviews: [
507
+ { author: "Mike T.", rating: 5, content: "Absolutely love this board. Perfect for carving and the pop is incredible off jumps.", date: "2026-01-20", verified: true },
508
+ { author: "Lisa R.", rating: 4, content: "Great board for the price. Took a star off because the edges needed tuning out of the box.", date: "2026-01-15", verified: true },
509
+ { author: "Chris D.", rating: 5, content: "Third season on this board and it's still holding up great. Highly recommend.", date: "2025-12-28", verified: false }
510
+ ]
511
+ }
512
+ ];
513
+
514
+ // src/catalog-data/ugc.ts
515
+ import { z as z6 } from "zod";
516
+ var ugcProps = z6.object({
517
+ title: z6.string().describe('UGC gallery heading, e.g. "Shared on Social", "Unboxings & Wear"'),
518
+ subtitle: z6.string().optional().describe('supporting subtitle / call to action, e.g. "Tag #YourBrand to be featured"'),
519
+ items: z6.array(z6.object({
520
+ mediaUrl: z6.string().describe("URL to the user-generated image/video poster frame"),
521
+ mediaType: z6.enum(["image", "video"]).optional().describe("Type of media (default: image)"),
522
+ author: z6.string().describe('Social media handle or customer name, e.g. "@alex_m", "Sarah K."'),
523
+ likes: z6.number().optional().describe("Number of likes/votes received"),
524
+ caption: z6.string().optional().describe("The post caption or snippet written by the customer"),
525
+ productGid: z6.string().optional().describe("Gid of the product tagged in this UGC item (if any)")
526
+ })).describe("List of user-generated content photos/videos")
527
+ });
528
+ var ugcExamples = [
529
+ {
530
+ title: "Seen On Social",
531
+ subtitle: "Tag #FourtyStyle to be featured in our gallery",
532
+ items: [
533
+ {
534
+ mediaUrl: "https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=400&h=400&fit=crop",
535
+ mediaType: "image",
536
+ author: "@alex_m",
537
+ likes: 124,
538
+ caption: "First test run with the new board and it feels incredible! \u2744\uFE0F\u{1F3C2}"
539
+ },
540
+ {
541
+ mediaUrl: "https://images.unsplash.com/photo-1511556532299-8f662fc26c06?w=400&h=400&fit=crop",
542
+ mediaType: "image",
543
+ author: "@sarah_k",
544
+ likes: 98,
545
+ caption: "Unboxing was a dream. The design detail on this is absolutely beautiful."
546
+ },
547
+ {
548
+ mediaUrl: "https://images.unsplash.com/photo-1525966222134-fcfa99b8ae77?w=400&h=400&fit=crop",
549
+ mediaType: "image",
550
+ author: "@jordan_p",
551
+ likes: 231,
552
+ caption: "Matching sets for the weekend cabin trip!"
553
+ }
554
+ ]
555
+ }
556
+ ];
557
+
558
+ // src/catalog-data/chat.ts
559
+ import { z as z7 } from "zod";
560
+ var promptQuoteProps = z7.object({
561
+ text: z7.string().describe("User prompt rendered as editorial lede.")
562
+ });
563
+ var promptQuoteExamples = [
564
+ { text: "<user prompt>" }
565
+ ];
566
+ var agentTextProps = z7.object({
567
+ text: z7.string().optional().describe("Plain prose. Used by the streaming text.delta slot binding so the agent can flow words in without choosing emphasis spans up front."),
568
+ parts: z7.array(z7.object({
569
+ type: z7.enum(["text", "em"]).describe("text = sans body; em = Newsreader italic emphasis."),
570
+ value: z7.string()
571
+ })).optional().describe("Pre-segmented prose with mixed sans + italic spans. When present, takes precedence over `text`. Use sparingly \u2014 italic carries weight, save it for the human moment in the answer."),
572
+ size: z7.enum(["sm", "md", "lg"]).optional().describe("Visual scale. lg for hero prose at the top of a turn; md (default) for body; sm for trailing footnote prose.")
573
+ });
574
+ var agentTextExamples = [
575
+ {
576
+ parts: [
577
+ { type: "text", value: "Here are the three I'd shortlist. The order is " },
578
+ { type: "em", value: "what I'd pick first" },
579
+ { type: "text", value: ", based on the constraints you gave me." }
580
+ ],
581
+ size: "md"
582
+ },
583
+ {
584
+ text: "A short follow-up note, sized for trailing context.",
585
+ size: "sm"
586
+ }
587
+ ];
588
+ var turnProps = z7.object({
589
+ prompt: z7.string().describe("The user's prompt for this turn, rendered as a quoted lede above the agent's response. Required so the conversation reads."),
590
+ index: z7.number().optional().describe("Turn index (0-based). When omitted the runtime infers from sibling turns."),
591
+ timestamp: z7.string().optional().describe("ISO timestamp for the small turn header. Omit to skip the header."),
592
+ thinking: z7.string().optional().describe('Short status line shown while the response streams in (e.g. "Pulling boards rated for hard snow\u2026"). Hidden once the first block lands.')
593
+ });
594
+ var turnExamples = [
595
+ {
596
+ prompt: "<the user prompt for this turn>",
597
+ thinking: "Short status line shown while the response streams in."
598
+ },
599
+ {
600
+ prompt: "<follow-up prompt>"
601
+ }
602
+ ];
603
+
604
+ export {
605
+ pageProps,
606
+ emphasisEnum,
607
+ emphasisProp,
608
+ spaceScaleEnum,
609
+ imageFitEnum,
610
+ imageFitProp,
611
+ backdropProps,
612
+ backdropExamples,
613
+ heroProps,
614
+ heroExamples,
615
+ brandStoryProps,
616
+ brandStoryExamples,
617
+ blogPostsProps,
618
+ articleDetailProps,
619
+ articleDetailExamples,
620
+ pageDetailProps,
621
+ pageDetailExamples,
622
+ policyDetailProps,
623
+ policyDetailExamples,
624
+ blogPostsExamples,
625
+ infoCardsProps,
626
+ infoCardsExamples,
627
+ faqProps,
628
+ faqExamples,
629
+ productGridProps,
630
+ productGridExamples,
631
+ productDetailProps,
632
+ productDetailExamples,
633
+ comparisonTableProps,
634
+ comparisonTableExamples,
635
+ collectionListProps,
636
+ collectionListExamples,
637
+ testimonialsProps,
638
+ testimonialsExamples,
639
+ reviewsProps,
640
+ reviewsExamples,
641
+ ugcProps,
642
+ ugcExamples,
643
+ promptQuoteProps,
644
+ promptQuoteExamples,
645
+ agentTextProps,
646
+ agentTextExamples,
647
+ turnProps,
648
+ turnExamples
649
+ };