@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,14 @@
1
+ /**
2
+ * ErrorBanner — surfaces session-level errors above the composer so
3
+ * the visitor isn't left waiting on a streaming state that never
4
+ * finishes. Only affordance is Retry — the visitor can't dismiss the
5
+ * banner away; it stays until a successful retry clears the error.
6
+ *
7
+ * While the runtime is auto-retrying a dropped mid-turn connection
8
+ * (`sessionState.reconnecting` — see `SessionRuntime.handleTransportClose`),
9
+ * this renders a much quieter cue instead: the server-side run is still
10
+ * alive and usually resumes within the retry window, so there's no error
11
+ * to report yet. The full banner only appears once retries are exhausted
12
+ * and `error` actually lands.
13
+ */
14
+ export declare function ErrorBanner(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * HistoryMenu — top-shell dropdown listing every turn in the session.
3
+ *
4
+ * Click a row → `useSelectMessage()` time-travels the canvas back to
5
+ * that turn's frozen view. The active-row highlight is DERIVED from the
6
+ * canvas (`useCurrentMessageIndex()`), so it stays in sync however the
7
+ * visitor navigated — history click, browser back/forward, or a
8
+ * card-click morph. "Clear" destroys the session + restarts at welcome.
9
+ *
10
+ * Drives both visible affordances:
11
+ * - Compact pill in ShellTop showing the history icon
12
+ * - Dropdown list of `turn N · userMessage` rows
13
+ * - Footer with Clear button
14
+ */
15
+ export declare function HistoryMenu(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,31 @@
1
+ import { ShellMenuItem } from '@40rty/ams-sdk';
2
+ /**
3
+ * Re-export of the contract type so existing UI imports
4
+ * (`import { MenuItem } from './MenuButton'`) keep working without
5
+ * a churn-rename across the codebase. Source of truth is the contract.
6
+ */
7
+ export type MenuItem = ShellMenuItem;
8
+ export interface MenuButtonProps {
9
+ primary?: MenuItem[];
10
+ secondary?: MenuItem[];
11
+ bottomLink?: MenuItem;
12
+ legal?: MenuItem[];
13
+ /** Invoked when the visitor selects a menu item. MenuButton is dumb
14
+ * shell chrome — it reports the selected item; the harness
15
+ * (`DefaultShell`) owns what it means (dispatch the item's action). */
16
+ onSelectItem: (item: MenuItem) => void;
17
+ }
18
+ /**
19
+ * MenuButton — inline shell trigger + slide-in drawer.
20
+ *
21
+ * Renders a compact mono-caps "menu" button (with hamburger glyph)
22
+ * suitable for the left cell of `.shell-top`. Click → opens a
23
+ * left-anchored drawer with primary + secondary nav. Drawer panel +
24
+ * backdrop are absolute-positioned within the shell root, so they
25
+ * stay scoped to the spacefront preview pane.
26
+ *
27
+ * Dumb chrome: items report through `onSelectItem` — no `href`, no
28
+ * window.location, no in-component dispatch. The harness decides what
29
+ * a selected item means (layout morph or message round-trip).
30
+ */
31
+ export declare function MenuButton({ primary, secondary, bottomLink, legal, onSelectItem }: MenuButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * MountainRidges — three parallax ridge silhouettes from the design
3
+ * handoff. Drift on slow alternate timers (.layer-far breathes; near
4
+ * layer carries snowcaps). Drives the welcome backdrop atmosphere.
5
+ *
6
+ * `color` is rendered with three opacity stops (.12/.22/.4) — pass the
7
+ * brand's foreground color so ridges read against the active surface.
8
+ */
9
+ export declare function MountainRidges({ color }: {
10
+ color?: string;
11
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function PendingTurn(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { type MenuItem } from './MenuButton';
2
+ export interface ShellTopProps {
3
+ /** Brand wordmark — uppercase tracking caps. */
4
+ wordmark: string;
5
+ /** Mark glyph name (base | snowboard | …). Looked up in the
6
+ * `ShellMark` registry. Falls back to `base`. */
7
+ mark?: string;
8
+ /** Menu drawer primary nav (large italic). */
9
+ menuPrimary?: MenuItem[];
10
+ /** Menu drawer secondary nav (small mono caps). */
11
+ menuSecondary?: MenuItem[];
12
+ /** Optional bottom anchor link inside the drawer. */
13
+ menuBottomLink?: MenuItem;
14
+ /** Legal footer links inside the drawer. */
15
+ menuLegal?: MenuItem[];
16
+ /** Invoked when the visitor clicks the wordmark. ShellTop is dumb
17
+ * chrome — it reports the click; the harness (`DefaultShell`) owns
18
+ * what it means (navigate home). */
19
+ onLogoClick: () => void;
20
+ /** Invoked when the visitor selects a menu-drawer item. Forwarded
21
+ * straight to `MenuButton`; the harness owns the dispatch. */
22
+ onMenuItemSelect: (item: MenuItem) => void;
23
+ }
24
+ /**
25
+ * ShellTop — the design's `.shell-top` chrome bar.
26
+ *
27
+ * Three-column grid: left wordmark (BaseMark + caps), center spacer,
28
+ * right utility row with the bag-pill (drives the cart drawer).
29
+ *
30
+ * Cart integration: when a `<CommerceProvider>` is mounted upstream, the
31
+ * bag-pill reads `useCart()` for the live total and opens the
32
+ * brand-styled CartDrawer on click. Without commerce wiring it stays
33
+ * decorative (count badge hidden).
34
+ */
35
+ export declare function ShellTop({ wordmark, mark, menuPrimary, menuSecondary, menuBottomLink, menuLegal, onLogoClick, onMenuItemSelect }: ShellTopProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,441 @@
1
+ import { z } from 'zod';
2
+ declare const BaseShellConfigSchema: z.ZodObject<{
3
+ wordmark: z.ZodDefault<z.ZodString>;
4
+ mark: z.ZodOptional<z.ZodString>;
5
+ copyright: z.ZodOptional<z.ZodString>;
6
+ attribution: z.ZodOptional<z.ZodString>;
7
+ menuPrimary: z.ZodDefault<z.ZodArray<z.ZodObject<{
8
+ label: z.ZodString;
9
+ action: z.ZodObject<{
10
+ id: z.ZodOptional<z.ZodString>;
11
+ label: z.ZodOptional<z.ZodString>;
12
+ type: z.ZodString;
13
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
+ icon: z.ZodOptional<z.ZodString>;
15
+ expectedTool: z.ZodOptional<z.ZodObject<{
16
+ name: z.ZodString;
17
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ name: string;
20
+ args: Record<string, unknown>;
21
+ }, {
22
+ name: string;
23
+ args: Record<string, unknown>;
24
+ }>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ type: string;
27
+ payload?: Record<string, unknown> | undefined;
28
+ id?: string | undefined;
29
+ label?: string | undefined;
30
+ icon?: string | undefined;
31
+ expectedTool?: {
32
+ name: string;
33
+ args: Record<string, unknown>;
34
+ } | undefined;
35
+ }, {
36
+ type: string;
37
+ payload?: Record<string, unknown> | undefined;
38
+ id?: string | undefined;
39
+ label?: string | undefined;
40
+ icon?: string | undefined;
41
+ expectedTool?: {
42
+ name: string;
43
+ args: Record<string, unknown>;
44
+ } | undefined;
45
+ }>;
46
+ hint: z.ZodOptional<z.ZodString>;
47
+ icon: z.ZodOptional<z.ZodString>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ label: string;
50
+ action: {
51
+ type: string;
52
+ payload?: Record<string, unknown> | undefined;
53
+ id?: string | undefined;
54
+ label?: string | undefined;
55
+ icon?: string | undefined;
56
+ expectedTool?: {
57
+ name: string;
58
+ args: Record<string, unknown>;
59
+ } | undefined;
60
+ };
61
+ hint?: string | undefined;
62
+ icon?: string | undefined;
63
+ }, {
64
+ label: string;
65
+ action: {
66
+ type: string;
67
+ payload?: Record<string, unknown> | undefined;
68
+ id?: string | undefined;
69
+ label?: string | undefined;
70
+ icon?: string | undefined;
71
+ expectedTool?: {
72
+ name: string;
73
+ args: Record<string, unknown>;
74
+ } | undefined;
75
+ };
76
+ hint?: string | undefined;
77
+ icon?: string | undefined;
78
+ }>, "many">>;
79
+ menuSecondary: z.ZodDefault<z.ZodArray<z.ZodObject<{
80
+ label: z.ZodString;
81
+ action: z.ZodObject<{
82
+ id: z.ZodOptional<z.ZodString>;
83
+ label: z.ZodOptional<z.ZodString>;
84
+ type: z.ZodString;
85
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
86
+ icon: z.ZodOptional<z.ZodString>;
87
+ expectedTool: z.ZodOptional<z.ZodObject<{
88
+ name: z.ZodString;
89
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ name: string;
92
+ args: Record<string, unknown>;
93
+ }, {
94
+ name: string;
95
+ args: Record<string, unknown>;
96
+ }>>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: string;
99
+ payload?: Record<string, unknown> | undefined;
100
+ id?: string | undefined;
101
+ label?: string | undefined;
102
+ icon?: string | undefined;
103
+ expectedTool?: {
104
+ name: string;
105
+ args: Record<string, unknown>;
106
+ } | undefined;
107
+ }, {
108
+ type: string;
109
+ payload?: Record<string, unknown> | undefined;
110
+ id?: string | undefined;
111
+ label?: string | undefined;
112
+ icon?: string | undefined;
113
+ expectedTool?: {
114
+ name: string;
115
+ args: Record<string, unknown>;
116
+ } | undefined;
117
+ }>;
118
+ hint: z.ZodOptional<z.ZodString>;
119
+ icon: z.ZodOptional<z.ZodString>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ label: string;
122
+ action: {
123
+ type: string;
124
+ payload?: Record<string, unknown> | undefined;
125
+ id?: string | undefined;
126
+ label?: string | undefined;
127
+ icon?: string | undefined;
128
+ expectedTool?: {
129
+ name: string;
130
+ args: Record<string, unknown>;
131
+ } | undefined;
132
+ };
133
+ hint?: string | undefined;
134
+ icon?: string | undefined;
135
+ }, {
136
+ label: string;
137
+ action: {
138
+ type: string;
139
+ payload?: Record<string, unknown> | undefined;
140
+ id?: string | undefined;
141
+ label?: string | undefined;
142
+ icon?: string | undefined;
143
+ expectedTool?: {
144
+ name: string;
145
+ args: Record<string, unknown>;
146
+ } | undefined;
147
+ };
148
+ hint?: string | undefined;
149
+ icon?: string | undefined;
150
+ }>, "many">>;
151
+ menuLegal: z.ZodDefault<z.ZodArray<z.ZodObject<{
152
+ label: z.ZodString;
153
+ action: z.ZodObject<{
154
+ id: z.ZodOptional<z.ZodString>;
155
+ label: z.ZodOptional<z.ZodString>;
156
+ type: z.ZodString;
157
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
158
+ icon: z.ZodOptional<z.ZodString>;
159
+ expectedTool: z.ZodOptional<z.ZodObject<{
160
+ name: z.ZodString;
161
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ name: string;
164
+ args: Record<string, unknown>;
165
+ }, {
166
+ name: string;
167
+ args: Record<string, unknown>;
168
+ }>>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ type: string;
171
+ payload?: Record<string, unknown> | undefined;
172
+ id?: string | undefined;
173
+ label?: string | undefined;
174
+ icon?: string | undefined;
175
+ expectedTool?: {
176
+ name: string;
177
+ args: Record<string, unknown>;
178
+ } | undefined;
179
+ }, {
180
+ type: string;
181
+ payload?: Record<string, unknown> | undefined;
182
+ id?: string | undefined;
183
+ label?: string | undefined;
184
+ icon?: string | undefined;
185
+ expectedTool?: {
186
+ name: string;
187
+ args: Record<string, unknown>;
188
+ } | undefined;
189
+ }>;
190
+ hint: z.ZodOptional<z.ZodString>;
191
+ icon: z.ZodOptional<z.ZodString>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ label: string;
194
+ action: {
195
+ type: string;
196
+ payload?: Record<string, unknown> | undefined;
197
+ id?: string | undefined;
198
+ label?: string | undefined;
199
+ icon?: string | undefined;
200
+ expectedTool?: {
201
+ name: string;
202
+ args: Record<string, unknown>;
203
+ } | undefined;
204
+ };
205
+ hint?: string | undefined;
206
+ icon?: string | undefined;
207
+ }, {
208
+ label: string;
209
+ action: {
210
+ type: string;
211
+ payload?: Record<string, unknown> | undefined;
212
+ id?: string | undefined;
213
+ label?: string | undefined;
214
+ icon?: string | undefined;
215
+ expectedTool?: {
216
+ name: string;
217
+ args: Record<string, unknown>;
218
+ } | undefined;
219
+ };
220
+ hint?: string | undefined;
221
+ icon?: string | undefined;
222
+ }>, "many">>;
223
+ bottomLink: z.ZodOptional<z.ZodObject<{
224
+ label: z.ZodString;
225
+ action: z.ZodObject<{
226
+ id: z.ZodOptional<z.ZodString>;
227
+ label: z.ZodOptional<z.ZodString>;
228
+ type: z.ZodString;
229
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
230
+ icon: z.ZodOptional<z.ZodString>;
231
+ expectedTool: z.ZodOptional<z.ZodObject<{
232
+ name: z.ZodString;
233
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ name: string;
236
+ args: Record<string, unknown>;
237
+ }, {
238
+ name: string;
239
+ args: Record<string, unknown>;
240
+ }>>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: string;
243
+ payload?: Record<string, unknown> | undefined;
244
+ id?: string | undefined;
245
+ label?: string | undefined;
246
+ icon?: string | undefined;
247
+ expectedTool?: {
248
+ name: string;
249
+ args: Record<string, unknown>;
250
+ } | undefined;
251
+ }, {
252
+ type: string;
253
+ payload?: Record<string, unknown> | undefined;
254
+ id?: string | undefined;
255
+ label?: string | undefined;
256
+ icon?: string | undefined;
257
+ expectedTool?: {
258
+ name: string;
259
+ args: Record<string, unknown>;
260
+ } | undefined;
261
+ }>;
262
+ hint: z.ZodOptional<z.ZodString>;
263
+ icon: z.ZodOptional<z.ZodString>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ label: string;
266
+ action: {
267
+ type: string;
268
+ payload?: Record<string, unknown> | undefined;
269
+ id?: string | undefined;
270
+ label?: string | undefined;
271
+ icon?: string | undefined;
272
+ expectedTool?: {
273
+ name: string;
274
+ args: Record<string, unknown>;
275
+ } | undefined;
276
+ };
277
+ hint?: string | undefined;
278
+ icon?: string | undefined;
279
+ }, {
280
+ label: string;
281
+ action: {
282
+ type: string;
283
+ payload?: Record<string, unknown> | undefined;
284
+ id?: string | undefined;
285
+ label?: string | undefined;
286
+ icon?: string | undefined;
287
+ expectedTool?: {
288
+ name: string;
289
+ args: Record<string, unknown>;
290
+ } | undefined;
291
+ };
292
+ hint?: string | undefined;
293
+ icon?: string | undefined;
294
+ }>>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ wordmark: string;
297
+ menuPrimary: {
298
+ label: string;
299
+ action: {
300
+ type: string;
301
+ payload?: Record<string, unknown> | undefined;
302
+ id?: string | undefined;
303
+ label?: string | undefined;
304
+ icon?: string | undefined;
305
+ expectedTool?: {
306
+ name: string;
307
+ args: Record<string, unknown>;
308
+ } | undefined;
309
+ };
310
+ hint?: string | undefined;
311
+ icon?: string | undefined;
312
+ }[];
313
+ menuSecondary: {
314
+ label: string;
315
+ action: {
316
+ type: string;
317
+ payload?: Record<string, unknown> | undefined;
318
+ id?: string | undefined;
319
+ label?: string | undefined;
320
+ icon?: string | undefined;
321
+ expectedTool?: {
322
+ name: string;
323
+ args: Record<string, unknown>;
324
+ } | undefined;
325
+ };
326
+ hint?: string | undefined;
327
+ icon?: string | undefined;
328
+ }[];
329
+ menuLegal: {
330
+ label: string;
331
+ action: {
332
+ type: string;
333
+ payload?: Record<string, unknown> | undefined;
334
+ id?: string | undefined;
335
+ label?: string | undefined;
336
+ icon?: string | undefined;
337
+ expectedTool?: {
338
+ name: string;
339
+ args: Record<string, unknown>;
340
+ } | undefined;
341
+ };
342
+ hint?: string | undefined;
343
+ icon?: string | undefined;
344
+ }[];
345
+ mark?: string | undefined;
346
+ bottomLink?: {
347
+ label: string;
348
+ action: {
349
+ type: string;
350
+ payload?: Record<string, unknown> | undefined;
351
+ id?: string | undefined;
352
+ label?: string | undefined;
353
+ icon?: string | undefined;
354
+ expectedTool?: {
355
+ name: string;
356
+ args: Record<string, unknown>;
357
+ } | undefined;
358
+ };
359
+ hint?: string | undefined;
360
+ icon?: string | undefined;
361
+ } | undefined;
362
+ copyright?: string | undefined;
363
+ attribution?: string | undefined;
364
+ }, {
365
+ mark?: string | undefined;
366
+ bottomLink?: {
367
+ label: string;
368
+ action: {
369
+ type: string;
370
+ payload?: Record<string, unknown> | undefined;
371
+ id?: string | undefined;
372
+ label?: string | undefined;
373
+ icon?: string | undefined;
374
+ expectedTool?: {
375
+ name: string;
376
+ args: Record<string, unknown>;
377
+ } | undefined;
378
+ };
379
+ hint?: string | undefined;
380
+ icon?: string | undefined;
381
+ } | undefined;
382
+ wordmark?: string | undefined;
383
+ menuPrimary?: {
384
+ label: string;
385
+ action: {
386
+ type: string;
387
+ payload?: Record<string, unknown> | undefined;
388
+ id?: string | undefined;
389
+ label?: string | undefined;
390
+ icon?: string | undefined;
391
+ expectedTool?: {
392
+ name: string;
393
+ args: Record<string, unknown>;
394
+ } | undefined;
395
+ };
396
+ hint?: string | undefined;
397
+ icon?: string | undefined;
398
+ }[] | undefined;
399
+ menuSecondary?: {
400
+ label: string;
401
+ action: {
402
+ type: string;
403
+ payload?: Record<string, unknown> | undefined;
404
+ id?: string | undefined;
405
+ label?: string | undefined;
406
+ icon?: string | undefined;
407
+ expectedTool?: {
408
+ name: string;
409
+ args: Record<string, unknown>;
410
+ } | undefined;
411
+ };
412
+ hint?: string | undefined;
413
+ icon?: string | undefined;
414
+ }[] | undefined;
415
+ menuLegal?: {
416
+ label: string;
417
+ action: {
418
+ type: string;
419
+ payload?: Record<string, unknown> | undefined;
420
+ id?: string | undefined;
421
+ label?: string | undefined;
422
+ icon?: string | undefined;
423
+ expectedTool?: {
424
+ name: string;
425
+ args: Record<string, unknown>;
426
+ } | undefined;
427
+ };
428
+ hint?: string | undefined;
429
+ icon?: string | undefined;
430
+ }[] | undefined;
431
+ copyright?: string | undefined;
432
+ attribution?: string | undefined;
433
+ }>;
434
+ export type BaseShellConfig = z.infer<typeof BaseShellConfigSchema>;
435
+ /**
436
+ * Parse the SDK's open-shape shell into the base preset's typed config. On
437
+ * validation failure returns the empty default so the shell renders a
438
+ * minimal frame instead of crashing.
439
+ */
440
+ export declare function parseBaseShell(raw: unknown): BaseShellConfig;
441
+ export {};
@@ -0,0 +1,9 @@
1
+ export { PendingTurn } from './PendingTurn';
2
+ export { ShellTop } from './ShellTop';
3
+ export { ComposerDock } from './ComposerDock';
4
+ export { ErrorBanner } from './ErrorBanner';
5
+ export { CartPill } from './CartPill';
6
+ export { HistoryMenu } from './HistoryMenu';
7
+ export { BaseMark } from './BaseMark';
8
+ export { ShellMark, type ShellMarkProps } from './marks';
9
+ export { parseBaseShell, type BaseShellConfig } from './brand-shell';
@@ -0,0 +1,5 @@
1
+ export interface ShellMarkProps {
2
+ /** Mark name from `shell.mark`. Falls back to `base`. */
3
+ name?: string;
4
+ }
5
+ export declare function ShellMark({ name }: ShellMarkProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface ReviewCardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ author: string;
4
+ rating: number;
5
+ text: string;
6
+ date: string;
7
+ verified?: boolean;
8
+ }
9
+ export declare const ReviewCard: React.ForwardRefExoticComponent<ReviewCardProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface ReviewSummaryProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ averageRating: number;
4
+ totalReviews: number;
5
+ distribution?: Record<number, number>;
6
+ }
7
+ export declare const ReviewSummary: React.ForwardRefExoticComponent<ReviewSummaryProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface TestimonialCardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ quote: React.ReactNode;
4
+ author: string;
5
+ role?: string;
6
+ avatarUrl?: string;
7
+ rating?: number;
8
+ }
9
+ export declare const TestimonialCard: React.ForwardRefExoticComponent<TestimonialCardProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { type TestimonialCardProps } from './TestimonialCard';
3
+ export interface TestimonialCarouselProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ testimonials: Omit<TestimonialCardProps, 'className'>[];
5
+ title?: string;
6
+ }
7
+ /**
8
+ * Renders one or more testimonial cards. Adapts to slot density:
9
+ *
10
+ * - **Embedded** (inside a parent's slot): vertical stack of full-width
11
+ * cards. No fixed widths, no horizontal scroll. Fits whatever
12
+ * container width is available.
13
+ * - **Standalone**: horizontal carousel of fixed-width cards with
14
+ * hidden scrollbar — scroll-snap so each card lands cleanly.
15
+ */
16
+ export declare const TestimonialCarousel: React.ForwardRefExoticComponent<TestimonialCarouselProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface UgcCardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ mediaUrl: string;
4
+ mediaType?: 'image' | 'video';
5
+ author: string;
6
+ likes?: number;
7
+ caption?: string;
8
+ }
9
+ export declare const UgcCard: React.ForwardRefExoticComponent<UgcCardProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { type UgcCardProps } from './UgcCard';
3
+ export interface UgcGalleryProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ items: Omit<UgcCardProps, 'className'>[];
5
+ title: string;
6
+ subtitle?: string;
7
+ }
8
+ export declare const UgcGallery: React.ForwardRefExoticComponent<UgcGalleryProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ export { activateOnSpaceEnter, submitOnEnter } from './keyboard';
2
+ export { useDismissOnOutside } from './use-dismiss-on-outside';
3
+ export { useFocusOnChange } from './use-focus-on-change';
4
+ export { useFocusTrap } from './use-focus-trap';
5
+ export { useScrollThreshold } from './use-scroll-threshold';
6
+ export { useTextareaAutosize } from './use-textarea-autosize';
7
+ export { useProjection, type ProjectionView } from './use-projection';
8
+ export { useContainerWidth } from './use-container-width';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Pure keyboard-event helpers. Stateless, framework-agnostic — used by
3
+ * brand UIs to keep accessibility patterns consistent (div-as-button
4
+ * activation, Enter-to-submit textareas) without re-implementing the
5
+ * key checks per surface.
6
+ */
7
+ import React from 'react';
8
+ /**
9
+ * Activate a div-as-button on Enter or Space. Use as the `onKeyDown`
10
+ * for any non-`<button>` element you've given `role='button'` and
11
+ * `tabIndex={0}` so it satisfies keyboard a11y.
12
+ */
13
+ export declare function activateOnSpaceEnter<E extends HTMLElement>(onActivate: () => void): (e: React.KeyboardEvent<E>) => void;
14
+ /**
15
+ * Submit a textarea on Enter; Shift+Enter still inserts a newline.
16
+ * Standard chat-input behaviour.
17
+ */
18
+ export declare function submitOnEnter<E extends HTMLElement>(onSubmit: () => void): (e: React.KeyboardEvent<E>) => void;