@astryxdesign/core 0.1.6-canary.1b61ba6 → 0.1.6-canary.1d64659

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 (418) hide show
  1. package/README.md +0 -2
  2. package/dist/AlertDialog/AlertDialog.d.ts +1 -1
  3. package/dist/AlertDialog/AlertDialog.d.ts.map +1 -1
  4. package/dist/AlertDialog/AlertDialog.js +1 -4
  5. package/dist/AppShell/AppShell.d.ts.map +1 -1
  6. package/dist/AppShell/AppShell.js +1 -3
  7. package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
  8. package/dist/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  9. package/dist/AvatarGroup/AvatarGroup.js +1 -4
  10. package/dist/Banner/Banner.d.ts.map +1 -1
  11. package/dist/Banner/Banner.js +6 -8
  12. package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  13. package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  14. package/dist/Breadcrumbs/Breadcrumbs.js +1 -4
  15. package/dist/Button/Button.d.ts.map +1 -1
  16. package/dist/Button/Button.js +4 -34
  17. package/dist/ButtonGroup/ButtonGroup.d.ts +5 -20
  18. package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  19. package/dist/ButtonGroup/ButtonGroup.js +11 -27
  20. package/dist/Calendar/Calendar.d.ts.map +1 -1
  21. package/dist/Calendar/Calendar.js +5 -8
  22. package/dist/Carousel/Carousel.d.ts +1 -1
  23. package/dist/Carousel/Carousel.d.ts.map +1 -1
  24. package/dist/Carousel/Carousel.js +5 -8
  25. package/dist/Chat/ChatComposer.d.ts.map +1 -1
  26. package/dist/Chat/ChatComposer.js +1 -4
  27. package/dist/Chat/ChatComposerDrawer.d.ts +1 -1
  28. package/dist/Chat/ChatComposerDrawer.d.ts.map +1 -1
  29. package/dist/Chat/ChatComposerDrawer.js +2 -9
  30. package/dist/Chat/ChatComposerInput.d.ts.map +1 -1
  31. package/dist/Chat/ChatComposerInput.js +2 -6
  32. package/dist/Chat/ChatLayout.d.ts +11 -1
  33. package/dist/Chat/ChatLayout.d.ts.map +1 -1
  34. package/dist/Chat/ChatLayout.js +4 -6
  35. package/dist/Chat/ChatLayoutScrollButton.d.ts.map +1 -1
  36. package/dist/Chat/ChatLayoutScrollButton.js +2 -4
  37. package/dist/Chat/ChatMessage.d.ts +1 -1
  38. package/dist/Chat/ChatMessage.d.ts.map +1 -1
  39. package/dist/Chat/ChatMessage.js +2 -8
  40. package/dist/Chat/ChatMessageBubble.d.ts +1 -1
  41. package/dist/Chat/ChatMessageBubble.d.ts.map +1 -1
  42. package/dist/Chat/ChatMessageBubble.js +1 -3
  43. package/dist/Chat/ChatMessageList.d.ts +1 -1
  44. package/dist/Chat/ChatMessageList.d.ts.map +1 -1
  45. package/dist/Chat/ChatMessageList.js +1 -3
  46. package/dist/Chat/ChatMessageMetadata.d.ts.map +1 -1
  47. package/dist/Chat/ChatMessageMetadata.js +8 -13
  48. package/dist/Chat/ChatPastedTextToken.d.ts.map +1 -1
  49. package/dist/Chat/ChatPastedTextToken.js +1 -3
  50. package/dist/Chat/ChatSendButton.d.ts.map +1 -1
  51. package/dist/Chat/ChatSendButton.js +1 -3
  52. package/dist/Chat/index.d.ts +1 -1
  53. package/dist/Chat/index.d.ts.map +1 -1
  54. package/dist/Chat/useChatStreamScroll.d.ts +1 -12
  55. package/dist/Chat/useChatStreamScroll.d.ts.map +1 -1
  56. package/dist/Chat/useChatStreamScroll.js +6 -43
  57. package/dist/Chat/useSpeechRecognition.d.ts.map +1 -1
  58. package/dist/Chat/useSpeechRecognition.js +2 -4
  59. package/dist/Chat/useTriggerMenu.d.ts.map +1 -1
  60. package/dist/Chat/useTriggerMenu.js +2 -4
  61. package/dist/CheckboxList/CheckboxList.d.ts +1 -1
  62. package/dist/CheckboxList/CheckboxList.d.ts.map +1 -1
  63. package/dist/CheckboxList/CheckboxList.js +1 -3
  64. package/dist/CheckboxList/CheckboxListItem.d.ts.map +1 -1
  65. package/dist/CheckboxList/CheckboxListItem.js +1 -3
  66. package/dist/Citation/Citation.d.ts.map +1 -1
  67. package/dist/Citation/Citation.js +2 -10
  68. package/dist/CodeBlock/CodeBlock.d.ts.map +1 -1
  69. package/dist/CodeBlock/CodeBlock.js +2 -4
  70. package/dist/CommandPalette/CommandPalette.d.ts +1 -1
  71. package/dist/CommandPalette/CommandPalette.d.ts.map +1 -1
  72. package/dist/CommandPalette/CommandPalette.js +3 -8
  73. package/dist/CommandPalette/CommandPaletteInput.d.ts +1 -1
  74. package/dist/CommandPalette/CommandPaletteInput.d.ts.map +1 -1
  75. package/dist/CommandPalette/CommandPaletteInput.js +1 -4
  76. package/dist/CommandPalette/CommandPaletteList.d.ts +1 -1
  77. package/dist/CommandPalette/CommandPaletteList.d.ts.map +1 -1
  78. package/dist/CommandPalette/CommandPaletteList.js +1 -4
  79. package/dist/ContextMenu/ContextMenu.d.ts +1 -1
  80. package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
  81. package/dist/ContextMenu/ContextMenu.js +1 -4
  82. package/dist/DateInput/DateInput.d.ts +1 -1
  83. package/dist/DateInput/DateInput.d.ts.map +1 -1
  84. package/dist/DateInput/DateInput.js +5 -10
  85. package/dist/DateRangeInput/DateRangeInput.d.ts +1 -1
  86. package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
  87. package/dist/DateRangeInput/DateRangeInput.js +6 -11
  88. package/dist/DateTimeInput/DateTimeInput.d.ts +1 -1
  89. package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
  90. package/dist/DateTimeInput/DateTimeInput.js +7 -15
  91. package/dist/Dialog/Dialog.d.ts.map +1 -1
  92. package/dist/Dialog/Dialog.js +12 -15
  93. package/dist/Dialog/DialogHeader.d.ts +1 -1
  94. package/dist/Dialog/DialogHeader.d.ts.map +1 -1
  95. package/dist/Dialog/DialogHeader.js +3 -7
  96. package/dist/DropdownMenu/DropdownMenu.d.ts +1 -1
  97. package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  98. package/dist/DropdownMenu/DropdownMenu.js +5 -11
  99. package/dist/FileInput/FileInput.d.ts.map +1 -1
  100. package/dist/FileInput/FileInput.js +1 -11
  101. package/dist/Lightbox/Lightbox.d.ts.map +1 -1
  102. package/dist/Lightbox/Lightbox.js +4 -6
  103. package/dist/Link/Link.d.ts +1 -1
  104. package/dist/Link/Link.d.ts.map +1 -1
  105. package/dist/Link/Link.js +1 -4
  106. package/dist/Markdown/Markdown.d.ts.map +1 -1
  107. package/dist/Markdown/Markdown.js +8 -10
  108. package/dist/MobileNav/MobileNav.d.ts.map +1 -1
  109. package/dist/MobileNav/MobileNav.js +2 -4
  110. package/dist/MobileNav/MobileNavToggle.d.ts +1 -1
  111. package/dist/MobileNav/MobileNavToggle.d.ts.map +1 -1
  112. package/dist/MobileNav/MobileNavToggle.js +1 -4
  113. package/dist/MoreMenu/MoreMenu.d.ts +1 -1
  114. package/dist/MoreMenu/MoreMenu.d.ts.map +1 -1
  115. package/dist/MoreMenu/MoreMenu.js +1 -4
  116. package/dist/MultiSelector/MultiSelector.d.ts +1 -1
  117. package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
  118. package/dist/MultiSelector/MultiSelector.js +6 -13
  119. package/dist/NavItem/index.d.ts +9 -0
  120. package/dist/NavItem/index.d.ts.map +1 -0
  121. package/dist/NavItem/index.js +10 -0
  122. package/dist/NumberInput/NumberInput.d.ts.map +1 -1
  123. package/dist/NumberInput/NumberInput.js +1 -5
  124. package/dist/Outline/Outline.d.ts +1 -1
  125. package/dist/Outline/Outline.d.ts.map +1 -1
  126. package/dist/Outline/Outline.js +1 -4
  127. package/dist/Pagination/Pagination.d.ts +1 -1
  128. package/dist/Pagination/Pagination.d.ts.map +1 -1
  129. package/dist/Pagination/Pagination.js +11 -38
  130. package/dist/Popover/usePopover.d.ts.map +1 -1
  131. package/dist/Popover/usePopover.js +1 -4
  132. package/dist/PowerSearch/PowerSearch.d.ts +1 -1
  133. package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
  134. package/dist/PowerSearch/PowerSearch.js +12 -22
  135. package/dist/PowerSearch/PowerSearchEditPopover.d.ts +1 -1
  136. package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
  137. package/dist/PowerSearch/PowerSearchEditPopover.js +20 -26
  138. package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
  139. package/dist/PowerSearch/PowerSearchToken.js +3 -7
  140. package/dist/PowerSearch/PowerSearchValueEditor.d.ts.map +1 -1
  141. package/dist/PowerSearch/PowerSearchValueEditor.js +21 -34
  142. package/dist/PowerSearch/formatFilterValue.d.ts +1 -2
  143. package/dist/PowerSearch/formatFilterValue.d.ts.map +1 -1
  144. package/dist/PowerSearch/formatFilterValue.js +9 -19
  145. package/dist/PowerSearch/index.d.ts +1 -2
  146. package/dist/PowerSearch/index.d.ts.map +1 -1
  147. package/dist/PowerSearch/index.js +0 -1
  148. package/dist/PowerSearch/types.d.ts +2 -28
  149. package/dist/PowerSearch/types.d.ts.map +1 -1
  150. package/dist/PowerSearch/usePowerSearchConfig.d.ts.map +1 -1
  151. package/dist/PowerSearch/usePowerSearchConfig.js +27 -27
  152. package/dist/PowerSearch/usePowerSearchSource.d.ts.map +1 -1
  153. package/dist/PowerSearch/usePowerSearchSource.js +8 -15
  154. package/dist/Resizable/ResizeHandle.d.ts +1 -1
  155. package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
  156. package/dist/Resizable/ResizeHandle.js +1 -4
  157. package/dist/Selector/Selector.d.ts.map +1 -1
  158. package/dist/Selector/Selector.js +5 -11
  159. package/dist/SideNav/SideNav.d.ts.map +1 -1
  160. package/dist/SideNav/SideNav.js +2 -4
  161. package/dist/SideNav/SideNavCollapseButton.d.ts.map +1 -1
  162. package/dist/SideNav/SideNavCollapseButton.js +1 -3
  163. package/dist/SideNav/SideNavHeading.d.ts.map +1 -1
  164. package/dist/SideNav/SideNavHeading.js +3 -5
  165. package/dist/SideNav/SideNavItem.d.ts.map +1 -1
  166. package/dist/SideNav/SideNavItem.js +1 -7
  167. package/dist/TabList/TabList.d.ts +1 -1
  168. package/dist/TabList/TabList.d.ts.map +1 -1
  169. package/dist/TabList/TabList.js +1 -4
  170. package/dist/Table/BaseTable.d.ts.map +1 -1
  171. package/dist/Table/BaseTable.js +16 -29
  172. package/dist/Table/Table.d.ts.map +1 -1
  173. package/dist/Table/Table.js +3 -5
  174. package/dist/Table/plugins/columnResize/useTableColumnResize.js +1 -1
  175. package/dist/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
  176. package/dist/Table/plugins/filtering/useTableFiltering.js +19 -56
  177. package/dist/Table/plugins/groupedRows/useTableGroupedRows.d.ts.map +1 -1
  178. package/dist/Table/plugins/groupedRows/useTableGroupedRows.js +4 -11
  179. package/dist/Table/plugins/pagination/useTablePagination.d.ts.map +1 -1
  180. package/dist/Table/plugins/pagination/useTablePagination.js +3 -6
  181. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.d.ts.map +1 -1
  182. package/dist/Table/plugins/rowExpansion/useTableRowExpansion.js +6 -8
  183. package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
  184. package/dist/Table/plugins/selection/useTableSelection.js +2 -5
  185. package/dist/Table/plugins/sortable/useTableSortable.d.ts.map +1 -1
  186. package/dist/Table/plugins/sortable/useTableSortable.js +4 -6
  187. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +2 -2
  188. package/dist/Table/types.d.ts +10 -17
  189. package/dist/Table/types.d.ts.map +1 -1
  190. package/dist/TextInput/TextInput.d.ts.map +1 -1
  191. package/dist/TextInput/TextInput.js +1 -5
  192. package/dist/Thumbnail/Thumbnail.d.ts.map +1 -1
  193. package/dist/Thumbnail/Thumbnail.js +2 -8
  194. package/dist/TimeInput/TimeInput.d.ts +1 -1
  195. package/dist/TimeInput/TimeInput.d.ts.map +1 -1
  196. package/dist/TimeInput/TimeInput.js +2 -7
  197. package/dist/Toast/Toast.d.ts.map +1 -1
  198. package/dist/Toast/Toast.js +1 -3
  199. package/dist/Toast/ToastViewport.d.ts.map +1 -1
  200. package/dist/Toast/ToastViewport.js +1 -3
  201. package/dist/Token/Token.d.ts.map +1 -1
  202. package/dist/Token/Token.js +2 -8
  203. package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
  204. package/dist/Tokenizer/Tokenizer.js +1 -3
  205. package/dist/TopNav/TopNav.d.ts +1 -1
  206. package/dist/TopNav/TopNav.d.ts.map +1 -1
  207. package/dist/TopNav/TopNav.js +1 -4
  208. package/dist/TopNav/TopNavHeading.d.ts.map +1 -1
  209. package/dist/TopNav/TopNavHeading.js +3 -5
  210. package/dist/TreeList/TreeList.d.ts.map +1 -1
  211. package/dist/TreeList/TreeList.js +1 -5
  212. package/dist/TreeList/TreeListItem.d.ts.map +1 -1
  213. package/dist/TreeList/TreeListItem.js +1 -7
  214. package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
  215. package/dist/Typeahead/BaseTypeahead.js +4 -8
  216. package/dist/Typeahead/Typeahead.d.ts.map +1 -1
  217. package/dist/Typeahead/Typeahead.js +1 -3
  218. package/dist/VisuallyHidden/VisuallyHidden.d.ts +0 -1
  219. package/dist/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
  220. package/dist/VisuallyHidden/VisuallyHidden.js +0 -1
  221. package/dist/astryx.css +1 -3
  222. package/dist/astryx.umd.js +60 -62
  223. package/dist/astryx.umd.js.map +4 -4
  224. package/dist/index.d.ts +0 -1
  225. package/dist/index.d.ts.map +1 -1
  226. package/dist/index.js +0 -3
  227. package/package.json +2 -23
  228. package/src/AlertDialog/AlertDialog.tsx +1 -4
  229. package/src/AppShell/AppShell.doc.mjs +2 -8
  230. package/src/AppShell/AppShell.tsx +1 -3
  231. package/src/AvatarGroup/AvatarGroup.tsx +1 -4
  232. package/src/Banner/Banner.tsx +5 -10
  233. package/src/Breadcrumbs/Breadcrumbs.tsx +1 -4
  234. package/src/Button/Button.tsx +4 -34
  235. package/src/ButtonGroup/ButtonGroup.test.tsx +2 -386
  236. package/src/ButtonGroup/ButtonGroup.tsx +11 -27
  237. package/src/Calendar/Calendar.tsx +5 -8
  238. package/src/Card/Card.doc.mjs +3 -3
  239. package/src/Carousel/Carousel.tsx +7 -10
  240. package/src/Chat/ChatComposer.tsx +1 -5
  241. package/src/Chat/ChatComposerDrawer.tsx +2 -9
  242. package/src/Chat/ChatComposerInput.tsx +4 -10
  243. package/src/Chat/ChatLayout.test.tsx +2 -127
  244. package/src/Chat/ChatLayout.tsx +12 -5
  245. package/src/Chat/ChatLayoutScrollButton.tsx +2 -4
  246. package/src/Chat/ChatMessage.tsx +1 -5
  247. package/src/Chat/ChatMessageBubble.tsx +0 -2
  248. package/src/Chat/ChatMessageList.doc.mjs +1 -1
  249. package/src/Chat/ChatMessageList.tsx +0 -2
  250. package/src/Chat/ChatMessageMetadata.tsx +9 -15
  251. package/src/Chat/ChatPastedTextToken.tsx +1 -3
  252. package/src/Chat/ChatSendButton.tsx +1 -3
  253. package/src/Chat/ChatToolCalls.doc.mjs +1 -1
  254. package/src/Chat/index.ts +0 -1
  255. package/src/Chat/useChatStreamScroll.ts +11 -67
  256. package/src/Chat/useSpeechRecognition.ts +2 -11
  257. package/src/Chat/useTriggerMenu.tsx +2 -4
  258. package/src/CheckboxList/CheckboxList.doc.mjs +1 -1
  259. package/src/CheckboxList/CheckboxList.tsx +0 -2
  260. package/src/CheckboxList/CheckboxListItem.tsx +1 -7
  261. package/src/Citation/Citation.tsx +2 -4
  262. package/src/ClickableCard/ClickableCard.doc.mjs +1 -1
  263. package/src/CodeBlock/CodeBlock.tsx +2 -4
  264. package/src/CommandPalette/CommandPalette.tsx +3 -10
  265. package/src/CommandPalette/CommandPaletteInput.test.tsx +1 -1
  266. package/src/CommandPalette/CommandPaletteInput.tsx +1 -5
  267. package/src/CommandPalette/CommandPaletteList.tsx +1 -4
  268. package/src/ContextMenu/ContextMenu.tsx +1 -4
  269. package/src/DateInput/DateInput.doc.mjs +2 -2
  270. package/src/DateInput/DateInput.tsx +5 -13
  271. package/src/DateRangeInput/DateRangeInput.doc.mjs +1 -1
  272. package/src/DateRangeInput/DateRangeInput.tsx +6 -14
  273. package/src/DateTimeInput/DateTimeInput.doc.mjs +2 -2
  274. package/src/DateTimeInput/DateTimeInput.tsx +7 -17
  275. package/src/Dialog/Dialog.tsx +15 -11
  276. package/src/Dialog/DialogHeader.tsx +3 -7
  277. package/src/DropdownMenu/DropdownMenu.tsx +8 -12
  278. package/src/Field/Field.doc.mjs +2 -2
  279. package/src/FileInput/FileInput.test.tsx +1 -40
  280. package/src/FileInput/FileInput.tsx +1 -12
  281. package/src/Grid/Grid.doc.mjs +5 -5
  282. package/src/InputGroup/InputGroup.doc.mjs +1 -1
  283. package/src/Lightbox/Lightbox.doc.mjs +2 -7
  284. package/src/Lightbox/Lightbox.tsx +4 -6
  285. package/src/Link/Link.tsx +1 -4
  286. package/src/Markdown/Markdown.tsx +4 -12
  287. package/src/MobileNav/MobileNav.tsx +2 -4
  288. package/src/MobileNav/MobileNavToggle.tsx +3 -5
  289. package/src/MoreMenu/MoreMenu.tsx +1 -4
  290. package/src/MultiSelector/MultiSelector.tsx +5 -14
  291. package/src/NavItem/index.ts +11 -0
  292. package/src/NumberInput/NumberInput.tsx +1 -3
  293. package/src/Outline/Outline.tsx +1 -4
  294. package/src/OverflowList/OverflowList.doc.mjs +2 -2
  295. package/src/Pagination/Pagination.tsx +12 -35
  296. package/src/Popover/usePopover.tsx +1 -6
  297. package/src/PowerSearch/PowerSearch.doc.mjs +4 -4
  298. package/src/PowerSearch/PowerSearch.tsx +10 -22
  299. package/src/PowerSearch/PowerSearchEditPopover.tsx +20 -27
  300. package/src/PowerSearch/PowerSearchToken.tsx +6 -17
  301. package/src/PowerSearch/PowerSearchValueEditor.tsx +21 -34
  302. package/src/PowerSearch/formatFilterValue.ts +8 -21
  303. package/src/PowerSearch/index.ts +0 -5
  304. package/src/PowerSearch/types.ts +9 -33
  305. package/src/PowerSearch/usePowerSearchConfig.ts +27 -59
  306. package/src/PowerSearch/usePowerSearchSource.ts +8 -17
  307. package/src/RadioList/RadioList.doc.mjs +1 -1
  308. package/src/Resizable/ResizeHandle.tsx +1 -4
  309. package/src/Section/Section.doc.mjs +4 -4
  310. package/src/SelectableCard/SelectableCard.doc.mjs +1 -1
  311. package/src/Selector/Selector.tsx +6 -11
  312. package/src/SideNav/SideNav.tsx +2 -4
  313. package/src/SideNav/SideNavCollapseButton.tsx +1 -3
  314. package/src/SideNav/SideNavHeading.tsx +3 -5
  315. package/src/SideNav/SideNavItem.tsx +1 -3
  316. package/src/Slider/Slider.doc.mjs +2 -2
  317. package/src/Stack/Stack.doc.mjs +10 -10
  318. package/src/Switch/Switch.doc.mjs +2 -2
  319. package/src/TabList/TabList.tsx +1 -4
  320. package/src/Table/BaseTable.tsx +19 -36
  321. package/src/Table/Table.test.tsx +1 -132
  322. package/src/Table/Table.tsx +4 -6
  323. package/src/Table/plugins/columnResize/useTableColumnResize.tsx +1 -1
  324. package/src/Table/plugins/filtering/useTableFiltering.tsx +30 -31
  325. package/src/Table/plugins/groupedRows/useTableGroupedRows.tsx +4 -6
  326. package/src/Table/plugins/pagination/useTablePagination.tsx +1 -4
  327. package/src/Table/plugins/rowExpansion/useTableRowExpansion.tsx +8 -9
  328. package/src/Table/plugins/selection/useTableSelection.tsx +7 -6
  329. package/src/Table/plugins/sortable/useTableSortable.tsx +5 -8
  330. package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +4 -4
  331. package/src/Table/types.ts +12 -18
  332. package/src/Table/useTableFiltering.doc.mjs +2 -2
  333. package/src/Table/useTableSortable.doc.mjs +11 -11
  334. package/src/Text/Text.doc.mjs +2 -2
  335. package/src/TextInput/TextInput.tsx +1 -3
  336. package/src/Thumbnail/Thumbnail.tsx +2 -4
  337. package/src/TimeInput/TimeInput.doc.mjs +2 -2
  338. package/src/TimeInput/TimeInput.tsx +2 -6
  339. package/src/Timestamp/Timestamp.doc.mjs +4 -4
  340. package/src/Toast/Toast.tsx +1 -3
  341. package/src/Toast/ToastViewport.tsx +1 -3
  342. package/src/Token/Token.tsx +2 -4
  343. package/src/Tokenizer/Tokenizer.doc.mjs +2 -2
  344. package/src/Tokenizer/Tokenizer.tsx +4 -4
  345. package/src/Toolbar/Toolbar.doc.mjs +1 -1
  346. package/src/TopNav/TopNav.tsx +1 -4
  347. package/src/TopNav/TopNavHeading.tsx +3 -5
  348. package/src/TreeList/TreeList.tsx +1 -5
  349. package/src/TreeList/TreeListItem.tsx +1 -6
  350. package/src/Typeahead/BaseTypeahead.tsx +4 -11
  351. package/src/Typeahead/Typeahead.doc.mjs +1 -1
  352. package/src/Typeahead/Typeahead.tsx +1 -3
  353. package/src/VisuallyHidden/VisuallyHidden.tsx +0 -1
  354. package/src/index.ts +0 -3
  355. package/dist/PowerSearch/resolveOperatorLabel.d.ts +0 -23
  356. package/dist/PowerSearch/resolveOperatorLabel.d.ts.map +0 -1
  357. package/dist/PowerSearch/resolveOperatorLabel.js +0 -28
  358. package/dist/authoring/doc.d.ts +0 -145
  359. package/dist/authoring/doc.d.ts.map +0 -1
  360. package/dist/authoring/doc.js +0 -100
  361. package/dist/authoring/index.d.ts +0 -29
  362. package/dist/authoring/index.d.ts.map +0 -1
  363. package/dist/authoring/index.js +0 -28
  364. package/dist/authoring/integration.d.ts +0 -35
  365. package/dist/authoring/integration.d.ts.map +0 -1
  366. package/dist/authoring/integration.js +0 -30
  367. package/dist/authoring/template.d.ts +0 -66
  368. package/dist/authoring/template.d.ts.map +0 -1
  369. package/dist/authoring/template.js +0 -55
  370. package/dist/config.d.ts +0 -80
  371. package/dist/config.d.ts.map +0 -1
  372. package/dist/config.js +0 -40
  373. package/dist/i18n/InternationalizationContext.d.ts +0 -12
  374. package/dist/i18n/InternationalizationContext.d.ts.map +0 -1
  375. package/dist/i18n/InternationalizationContext.js +0 -29
  376. package/dist/i18n/InternationalizationProvider.d.ts +0 -62
  377. package/dist/i18n/InternationalizationProvider.d.ts.map +0 -1
  378. package/dist/i18n/InternationalizationProvider.js +0 -44
  379. package/dist/i18n/index.d.ts +0 -24
  380. package/dist/i18n/index.d.ts.map +0 -1
  381. package/dist/i18n/index.js +0 -21
  382. package/dist/i18n/resolve.d.ts +0 -22
  383. package/dist/i18n/resolve.d.ts.map +0 -1
  384. package/dist/i18n/resolve.js +0 -141
  385. package/dist/i18n/translator.d.ts +0 -25
  386. package/dist/i18n/translator.d.ts.map +0 -1
  387. package/dist/i18n/translator.js +0 -1
  388. package/dist/i18n/types.d.ts +0 -47
  389. package/dist/i18n/types.d.ts.map +0 -1
  390. package/dist/i18n/types.js +0 -1
  391. package/dist/i18n/useTranslator.d.ts +0 -15
  392. package/dist/i18n/useTranslator.d.ts.map +0 -1
  393. package/dist/i18n/useTranslator.js +0 -39
  394. package/locales/en.json +0 -746
  395. package/locales/pseudo.json +0 -560
  396. package/src/Chat/useChatStreamScroll.test.tsx +0 -168
  397. package/src/PowerSearch/formatFilterValue.test.ts +0 -282
  398. package/src/PowerSearch/resolveOperatorLabel.ts +0 -34
  399. package/src/authoring/doc.ts +0 -166
  400. package/src/authoring/index.test.ts +0 -52
  401. package/src/authoring/index.ts +0 -50
  402. package/src/authoring/integration.ts +0 -42
  403. package/src/authoring/template.ts +0 -74
  404. package/src/config.test.ts +0 -16
  405. package/src/config.ts +0 -92
  406. package/src/docPropLiterals.test.ts +0 -938
  407. package/src/i18n/InternationalizationContext.ts +0 -39
  408. package/src/i18n/InternationalizationProvider.doc.mjs +0 -72
  409. package/src/i18n/InternationalizationProvider.tsx +0 -83
  410. package/src/i18n/__tests__/e2e-pagination.test.tsx +0 -172
  411. package/src/i18n/__tests__/e2e-powersearch.test.tsx +0 -130
  412. package/src/i18n/__tests__/resolve.test.ts +0 -284
  413. package/src/i18n/index.ts +0 -32
  414. package/src/i18n/resolve.ts +0 -165
  415. package/src/i18n/translator.ts +0 -31
  416. package/src/i18n/types.ts +0 -53
  417. package/src/i18n/useTranslator.doc.mjs +0 -46
  418. package/src/i18n/useTranslator.ts +0 -50
@@ -1,35 +0,0 @@
1
- /**
2
- * @file integration.ts
3
- * @input An integration package's manifest object.
4
- * @output A type-preserving `createIntegration` helper plus the
5
- * `AstryxIntegration` manifest surface.
6
- * @position Integration-author authoring surface. See `./index.ts` for why
7
- * these authoring factories live in `@astryxdesign/core`.
8
- *
9
- * `createIntegration` is an intentionally tiny runtime identity function: it
10
- * returns its argument unchanged. Validation is NOT performed here — it happens
11
- * at the CLI load boundary.
12
- */
13
- /**
14
- * Integration manifest exported from a conventional root manifest file
15
- * (astryx.integration.{ts,mjs,js}) sibling to the integration package's
16
- * package.json. Identity (name/version) comes from the package's
17
- * package.json, not from the manifest.
18
- */
19
- export interface AstryxIntegration {
20
- /** Relative path to the components/docs root (resolved to absolute). */
21
- components?: string;
22
- /** Relative path to the templates root (resolved to absolute). */
23
- templates?: string;
24
- /** Relative path to the codemods root (resolved to absolute). */
25
- codemods?: string;
26
- /** Where to file issues/feedback for this integration. */
27
- issuesUrl?: string;
28
- }
29
- /**
30
- * Type-preserving helper for an Astryx integration manifest. Returns its
31
- * argument unchanged; the value is the exported TypeScript surface. Validation
32
- * happens at the CLI load boundary.
33
- */
34
- export declare function createIntegration<T extends AstryxIntegration>(integration: T): T;
35
- //# sourceMappingURL=integration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/authoring/integration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,iBAAiB,EAC3D,WAAW,EAAE,CAAC,GACb,CAAC,CAEH"}
@@ -1,30 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- /**
4
- * @file integration.ts
5
- * @input An integration package's manifest object.
6
- * @output A type-preserving `createIntegration` helper plus the
7
- * `AstryxIntegration` manifest surface.
8
- * @position Integration-author authoring surface. See `./index.ts` for why
9
- * these authoring factories live in `@astryxdesign/core`.
10
- *
11
- * `createIntegration` is an intentionally tiny runtime identity function: it
12
- * returns its argument unchanged. Validation is NOT performed here — it happens
13
- * at the CLI load boundary.
14
- */
15
-
16
- /**
17
- * Integration manifest exported from a conventional root manifest file
18
- * (astryx.integration.{ts,mjs,js}) sibling to the integration package's
19
- * package.json. Identity (name/version) comes from the package's
20
- * package.json, not from the manifest.
21
- */
22
-
23
- /**
24
- * Type-preserving helper for an Astryx integration manifest. Returns its
25
- * argument unchanged; the value is the exported TypeScript surface. Validation
26
- * happens at the CLI load boundary.
27
- */
28
- export function createIntegration(integration) {
29
- return integration;
30
- }
@@ -1,66 +0,0 @@
1
- /**
2
- * @file template.ts
3
- * @input A page/block template doc object (without the `type` tag).
4
- * @output Type-preserving `createPageTemplate`/`createBlockTemplate` helpers
5
- * plus the authored-template TypeScript surface.
6
- * @position Integration-author authoring surface. See `./index.ts` for why
7
- * these authoring factories live in `@astryxdesign/core`.
8
- *
9
- * A template doc lives in a `<id>.doc.{ts,mjs,js}` file with a required
10
- * same-stem sibling source file (`<id>.tsx`). The doc's `type` (page or block)
11
- * — injected by the create* helpers — decides how the template is scaffolded.
12
- *
13
- * These are tiny runtime identity helpers that inject the `type` discriminant.
14
- * They do NOT validate — validation happens at the CLI load boundary, where
15
- * integration template discovery runs the module's default export through the
16
- * template envelope schema.
17
- */
18
- /** Optional preview metadata for a template (used by docs surfaces). */
19
- export interface AstryxTemplatePreview {
20
- /** Path or URL to a preview image. */
21
- image?: string;
22
- /** CSS aspect-ratio hint for the preview, e.g. "16 / 9". */
23
- aspectRatio?: string;
24
- }
25
- /** Fields common to page and block template docs (without the `type` tag). */
26
- export interface AstryxTemplateInput {
27
- /** Human-readable template name. Required. */
28
- name: string;
29
- /** One-line description of what the template provides. Required. */
30
- description: string;
31
- /** Optional grouping/category label. */
32
- category?: string;
33
- /** Component display names the template composes. */
34
- componentsUsed?: string[];
35
- /** Optional preview metadata. */
36
- preview?: AstryxTemplatePreview;
37
- }
38
- /** Input accepted by {@link createPageTemplate} (no `type` field). */
39
- export type AstryxPageTemplateInput = AstryxTemplateInput;
40
- /** Input accepted by {@link createBlockTemplate} (no `type` field). */
41
- export type AstryxBlockTemplateInput = AstryxTemplateInput;
42
- /** A validated page template doc. */
43
- export type AstryxPageTemplate = AstryxTemplateInput & {
44
- type: 'page';
45
- };
46
- /** A validated block template doc. */
47
- export type AstryxBlockTemplate = AstryxTemplateInput & {
48
- type: 'block';
49
- };
50
- /** A validated template doc (page or block). */
51
- export type AstryxTemplate = AstryxPageTemplate | AstryxBlockTemplate;
52
- /**
53
- * Author an Astryx page template doc. Stamp-only: returns the def with
54
- * `type: 'page'` injected. Validation happens at the CLI load boundary.
55
- */
56
- export declare function createPageTemplate<T extends AstryxPageTemplateInput>(def: T): T & {
57
- type: 'page';
58
- };
59
- /**
60
- * Author an Astryx block template doc. Stamp-only: returns the def with
61
- * `type: 'block'` injected. Validation happens at the CLI load boundary.
62
- */
63
- export declare function createBlockTemplate<T extends AstryxBlockTemplateInput>(def: T): T & {
64
- type: 'block';
65
- };
66
- //# sourceMappingURL=template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/authoring/template.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AAEH,wEAAwE;AACxE,MAAM,WAAW,qBAAqB;IACpC,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,8EAA8E;AAC9E,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,iCAAiC;IACjC,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC;AAED,sEAAsE;AACtE,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAC1D,uEAAuE;AACvE,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;AAE3D,qCAAqC;AACrC,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAAC;AACtE,sCAAsC;AACtC,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IAAC,IAAI,EAAE,OAAO,CAAA;CAAC,CAAC;AAExE,gDAAgD;AAChD,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AAEtE;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,uBAAuB,EAClE,GAAG,EAAE,CAAC,GACL,CAAC,GAAG;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAEpB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,wBAAwB,EACpE,GAAG,EAAE,CAAC,GACL,CAAC,GAAG;IAAC,IAAI,EAAE,OAAO,CAAA;CAAC,CAErB"}
@@ -1,55 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- /**
4
- * @file template.ts
5
- * @input A page/block template doc object (without the `type` tag).
6
- * @output Type-preserving `createPageTemplate`/`createBlockTemplate` helpers
7
- * plus the authored-template TypeScript surface.
8
- * @position Integration-author authoring surface. See `./index.ts` for why
9
- * these authoring factories live in `@astryxdesign/core`.
10
- *
11
- * A template doc lives in a `<id>.doc.{ts,mjs,js}` file with a required
12
- * same-stem sibling source file (`<id>.tsx`). The doc's `type` (page or block)
13
- * — injected by the create* helpers — decides how the template is scaffolded.
14
- *
15
- * These are tiny runtime identity helpers that inject the `type` discriminant.
16
- * They do NOT validate — validation happens at the CLI load boundary, where
17
- * integration template discovery runs the module's default export through the
18
- * template envelope schema.
19
- */
20
-
21
- /** Optional preview metadata for a template (used by docs surfaces). */
22
-
23
- /** Fields common to page and block template docs (without the `type` tag). */
24
-
25
- /** Input accepted by {@link createPageTemplate} (no `type` field). */
26
-
27
- /** Input accepted by {@link createBlockTemplate} (no `type` field). */
28
-
29
- /** A validated page template doc. */
30
-
31
- /** A validated block template doc. */
32
-
33
- /** A validated template doc (page or block). */
34
-
35
- /**
36
- * Author an Astryx page template doc. Stamp-only: returns the def with
37
- * `type: 'page'` injected. Validation happens at the CLI load boundary.
38
- */
39
- export function createPageTemplate(def) {
40
- return {
41
- ...def,
42
- type: 'page'
43
- };
44
- }
45
-
46
- /**
47
- * Author an Astryx block template doc. Stamp-only: returns the def with
48
- * `type: 'block'` injected. Validation happens at the CLI load boundary.
49
- */
50
- export function createBlockTemplate(def) {
51
- return {
52
- ...def,
53
- type: 'block'
54
- };
55
- }
package/dist/config.d.ts DELETED
@@ -1,80 +0,0 @@
1
- /**
2
- * @file config.ts
3
- * @input An app's Astryx config object.
4
- * @output A type-preserving `createConfig` helper plus the `AstryxConfig`
5
- * surface authors write in `astryx.config.{ts,mjs,js}`.
6
- * @position Consumer-facing authoring surface. Lives in `@astryxdesign/core`
7
- * (not the CLI) so an app's config file gets editor/type feedback without
8
- * taking a dependency on the CLI. The CLI re-exports this from
9
- * `@astryxdesign/cli/config` for back-compat.
10
- *
11
- * `createConfig` is an intentionally tiny runtime identity function: it returns
12
- * its argument unchanged. Its value is the exported TypeScript surface.
13
- * Validation is NOT performed here — it happens at the CLI load boundary.
14
- */
15
- /**
16
- * A command to run as part of a post-codemod hook. Returned by a hook's
17
- * `buildCommand` and executed after codemods write files.
18
- */
19
- export interface PostCodemodCommand {
20
- command: string;
21
- args?: string[];
22
- options?: {
23
- cwd?: string;
24
- env?: NodeJS.ProcessEnv;
25
- timeout?: number;
26
- };
27
- }
28
- /**
29
- * A post-codemod hook. `buildCommand` receives the package directory and the
30
- * list of files changed by codemods, and returns the command to run (or a
31
- * nullish value to skip).
32
- */
33
- export type PostCodemodHook = {
34
- name?: string;
35
- buildCommand: (ctx: {
36
- packageDir: string;
37
- files: string[];
38
- }) => PostCodemodCommand | null | undefined | Promise<PostCodemodCommand | null | undefined>;
39
- };
40
- /** A component XLE layout expressions can reference by name via `{hint}`. */
41
- export interface XleComponent {
42
- /** Import specifier the component is imported from, e.g. '@/components/KpiCard'. */
43
- from: string;
44
- /** Optional human description shown in tooling. */
45
- description?: string;
46
- /** Import as the module's default export instead of a named export. Defaults to false. */
47
- default?: boolean;
48
- }
49
- /** User config exported from astryx.config.{ts,mjs,js}. */
50
- export interface AstryxConfig {
51
- /** Integration package names to load. */
52
- integrations?: string[];
53
- /** Where to file issues/feedback for this project. */
54
- issuesUrl?: string;
55
- /** Lifecycle hooks. */
56
- hooks?: {
57
- postCodemod?: PostCodemodHook[];
58
- };
59
- /**
60
- * EXPERIMENTAL — shape may change and is not part of the stable config
61
- * contract. Provisional home for features still being proven out.
62
- */
63
- experimental?: {
64
- /** Experimental XLE (layout expression) configuration. */
65
- xle?: {
66
- /**
67
- * Register app-local components so XLE layout expressions can
68
- * reference them by name via {hint}. Keyed by component name.
69
- */
70
- components?: Record<string, XleComponent>;
71
- };
72
- };
73
- }
74
- /**
75
- * Type-preserving helper for the Astryx config file. Returns its argument
76
- * unchanged; the value is the exported TypeScript surface so config files get
77
- * editor/type feedback. Validation happens at the CLI load boundary.
78
- */
79
- export declare function createConfig<T extends AstryxConfig>(config: T): T;
80
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE;QACR,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;QACxB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,GAAG,EAAE;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,KACG,kBAAkB,GAClB,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACpD,CAAC;AAEF,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,oFAAoF;IACpF,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,2DAA2D;AAC3D,MAAM,WAAW,YAAY;IAC3B,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,KAAK,CAAC,EAAE;QACN,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;KACjC,CAAC;IACF;;;OAGG;IACH,YAAY,CAAC,EAAE;QACb,0DAA0D;QAC1D,GAAG,CAAC,EAAE;YACJ;;;eAGG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;SAC3C,CAAC;KACH,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAEjE"}
package/dist/config.js DELETED
@@ -1,40 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- /**
4
- * @file config.ts
5
- * @input An app's Astryx config object.
6
- * @output A type-preserving `createConfig` helper plus the `AstryxConfig`
7
- * surface authors write in `astryx.config.{ts,mjs,js}`.
8
- * @position Consumer-facing authoring surface. Lives in `@astryxdesign/core`
9
- * (not the CLI) so an app's config file gets editor/type feedback without
10
- * taking a dependency on the CLI. The CLI re-exports this from
11
- * `@astryxdesign/cli/config` for back-compat.
12
- *
13
- * `createConfig` is an intentionally tiny runtime identity function: it returns
14
- * its argument unchanged. Its value is the exported TypeScript surface.
15
- * Validation is NOT performed here — it happens at the CLI load boundary.
16
- */
17
-
18
- /**
19
- * A command to run as part of a post-codemod hook. Returned by a hook's
20
- * `buildCommand` and executed after codemods write files.
21
- */
22
-
23
- /**
24
- * A post-codemod hook. `buildCommand` receives the package directory and the
25
- * list of files changed by codemods, and returns the command to run (or a
26
- * nullish value to skip).
27
- */
28
-
29
- /** A component XLE layout expressions can reference by name via `{hint}`. */
30
-
31
- /** User config exported from astryx.config.{ts,mjs,js}. */
32
-
33
- /**
34
- * Type-preserving helper for the Astryx config file. Returns its argument
35
- * unchanged; the value is the exported TypeScript surface so config files get
36
- * editor/type feedback. Validation happens at the CLI load boundary.
37
- */
38
- export function createConfig(config) {
39
- return config;
40
- }
@@ -1,12 +0,0 @@
1
- import type { Locale, MessagesByLocale, Overrides } from './types';
2
- export interface InternationalizationContextValue {
3
- locale: Locale;
4
- messages: MessagesByLocale;
5
- overrides?: Overrides;
6
- }
7
- /**
8
- * Default value falls through to the shipped en catalog in resolve().
9
- * A consumer that doesn't render a provider still gets English defaults.
10
- */
11
- export declare const InternationalizationContext: import("react").Context<InternationalizationContextValue>;
12
- //# sourceMappingURL=InternationalizationContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InternationalizationContext.d.ts","sourceRoot":"","sources":["../../src/i18n/InternationalizationContext.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAC,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAEjE,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,2DAIpC,CAAC"}
@@ -1,29 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- 'use client';
4
-
5
- /**
6
- * @file InternationalizationContext.ts
7
- * @input React createContext, i18n types
8
- * @output Exports InternationalizationContext and InternationalizationContextValue
9
- * @position Context definition for client-side locale + messages
10
- *
11
- * Separated from InternationalizationProvider.tsx so components can consume
12
- * the context without pulling in the full provider implementation.
13
- * Follows the LinkContext.ts / ThemeContext.ts pattern.
14
- *
15
- * SYNC: When modified, update these files to stay in sync:
16
- * - /packages/core/src/i18n/InternationalizationProvider.tsx
17
- * - /packages/core/src/i18n/t.client.ts
18
- * - /packages/core/src/i18n/index.ts
19
- */
20
- import { createContext } from 'react';
21
- /**
22
- * Default value falls through to the shipped en catalog in resolve().
23
- * A consumer that doesn't render a provider still gets English defaults.
24
- */
25
- export const InternationalizationContext = /*#__PURE__*/createContext({
26
- locale: 'en',
27
- messages: {}
28
- });
29
- InternationalizationContext.displayName = 'InternationalizationContext';
@@ -1,62 +0,0 @@
1
- /**
2
- * @file InternationalizationProvider.tsx
3
- * @input React, InternationalizationContext, i18n types
4
- * @output Exports InternationalizationProvider component and props type
5
- * @position Provider component for astryx i18n locale + messages
6
- *
7
- * Wraps a subtree with a locale and (optional) additional message catalogs +
8
- * overrides. Astryx components inside the subtree resolve their strings via
9
- * this context. If a consumer never renders a provider, astryx components
10
- * still work — they use the shipped en catalog directly.
11
- *
12
- * SYNC: When modified, update these files to stay in sync:
13
- * - /packages/core/src/i18n/InternationalizationContext.ts
14
- * - /packages/core/src/i18n/index.ts
15
- * - /packages/core/src/i18n/InternationalizationProvider.doc.mjs
16
- */
17
- import { type ReactNode } from 'react';
18
- import type { Locale, MessagesByLocale, Overrides } from './types';
19
- export interface InternationalizationProviderProps {
20
- /**
21
- * BCP 47 language tag. Examples: `'en'`, `'pt'`, `'pt-BR'`, `'zh-Hans'`.
22
- *
23
- * Regional tags are respected — resolving a message walks the tag from
24
- * most-specific to least-specific (`pt-BR` → `pt`), then falls back to
25
- * the shipped `en` catalog.
26
- */
27
- locale: Locale;
28
- /**
29
- * Additional shipped catalogs to make available for the selected locale.
30
- * `en` is bundled with astryx and never needs to be listed here.
31
- *
32
- * @example
33
- * ```
34
- * import {fr} from '@astryxdesign/core/locales/fr.json';
35
- * <InternationalizationProvider locale="fr" messages={{fr}}>
36
- * ```
37
- */
38
- messages?: MessagesByLocale;
39
- /**
40
- * Sparse per-locale overrides applied on top of shipped defaults.
41
- * Only the keys you want to override need to be listed.
42
- *
43
- * @example
44
- * ```
45
- * <InternationalizationProvider
46
- * locale="fr"
47
- * overrides={{fr: {'@astryx.pagination.next': 'Suivant'}}}
48
- * >
49
- * ```
50
- */
51
- overrides?: Overrides;
52
- children: ReactNode;
53
- }
54
- /**
55
- * Provides locale + additional messages + overrides to all astryx
56
- * components in the subtree.
57
- */
58
- export declare function InternationalizationProvider({ locale, messages, overrides, children, }: InternationalizationProviderProps): import("react").JSX.Element;
59
- export declare namespace InternationalizationProvider {
60
- var displayName: string;
61
- }
62
- //# sourceMappingURL=InternationalizationProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InternationalizationProvider.d.ts","sourceRoot":"","sources":["../../src/i18n/InternationalizationProvider.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAU,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAC,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAEjE,MAAM,WAAW,iCAAiC;IAChD;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,QAAQ,EACR,SAAS,EACT,QAAQ,GACT,EAAE,iCAAiC,+BAUnC;yBAfe,4BAA4B"}
@@ -1,44 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- 'use client';
4
-
5
- /**
6
- * @file InternationalizationProvider.tsx
7
- * @input React, InternationalizationContext, i18n types
8
- * @output Exports InternationalizationProvider component and props type
9
- * @position Provider component for astryx i18n locale + messages
10
- *
11
- * Wraps a subtree with a locale and (optional) additional message catalogs +
12
- * overrides. Astryx components inside the subtree resolve their strings via
13
- * this context. If a consumer never renders a provider, astryx components
14
- * still work — they use the shipped en catalog directly.
15
- *
16
- * SYNC: When modified, update these files to stay in sync:
17
- * - /packages/core/src/i18n/InternationalizationContext.ts
18
- * - /packages/core/src/i18n/index.ts
19
- * - /packages/core/src/i18n/InternationalizationProvider.doc.mjs
20
- */
21
- import { useMemo } from 'react';
22
- import { InternationalizationContext } from "./InternationalizationContext.js";
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- /**
25
- * Provides locale + additional messages + overrides to all astryx
26
- * components in the subtree.
27
- */
28
- export function InternationalizationProvider({
29
- locale,
30
- messages,
31
- overrides,
32
- children
33
- }) {
34
- const value = useMemo(() => ({
35
- locale,
36
- messages: messages ?? {},
37
- overrides
38
- }), [locale, messages, overrides]);
39
- return /*#__PURE__*/_jsx(InternationalizationContext, {
40
- value: value,
41
- children: children
42
- });
43
- }
44
- InternationalizationProvider.displayName = 'InternationalizationProvider';
@@ -1,24 +0,0 @@
1
- /**
2
- * @file index.ts
3
- * @input Imports from InternationalizationProvider, InternationalizationContext,
4
- * useTranslator, translator, types
5
- * @output Public surface for the i18n subpackage
6
- * @position Component entry point; re-exported by /packages/core/src/index.ts
7
- *
8
- * The public API is deliberately small:
9
- * - InternationalizationProvider — provider component
10
- * - useTranslator — hook returning a translator function
11
- * - Translator — interface for consumer-injected runtimes
12
- *
13
- * SYNC: When modified, update these files to stay in sync:
14
- * - /packages/core/src/index.ts
15
- */
16
- export { InternationalizationProvider } from './InternationalizationProvider';
17
- export type { InternationalizationProviderProps } from './InternationalizationProvider';
18
- export { InternationalizationContext } from './InternationalizationContext';
19
- export type { InternationalizationContextValue } from './InternationalizationContext';
20
- export { useTranslator } from './useTranslator';
21
- export type { TranslatorFn } from './useTranslator';
22
- export type { Translator } from './translator';
23
- export type { Locale, Catalog, MessageEntry, MessagesByLocale, Overrides, } from './types';
24
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,YAAY,EAAC,iCAAiC,EAAC,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAC,2BAA2B,EAAC,MAAM,+BAA+B,CAAC;AAC1E,YAAY,EAAC,gCAAgC,EAAC,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAC7C,YAAY,EACV,MAAM,EACN,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC"}
@@ -1,21 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- /**
4
- * @file index.ts
5
- * @input Imports from InternationalizationProvider, InternationalizationContext,
6
- * useTranslator, translator, types
7
- * @output Public surface for the i18n subpackage
8
- * @position Component entry point; re-exported by /packages/core/src/index.ts
9
- *
10
- * The public API is deliberately small:
11
- * - InternationalizationProvider — provider component
12
- * - useTranslator — hook returning a translator function
13
- * - Translator — interface for consumer-injected runtimes
14
- *
15
- * SYNC: When modified, update these files to stay in sync:
16
- * - /packages/core/src/index.ts
17
- */
18
-
19
- export { InternationalizationProvider } from "./InternationalizationProvider.js";
20
- export { InternationalizationContext } from "./InternationalizationContext.js";
21
- export { useTranslator } from "./useTranslator.js";
@@ -1,22 +0,0 @@
1
- import type { Locale, MessagesByLocale, Overrides } from './types';
2
- /**
3
- * Walk a BCP 47 tag from most-specific to least-specific.
4
- * Input is canonicalized via `Intl.Locale.baseName` so `pt-br` and `PT-BR`
5
- * both produce `['pt-BR', 'pt']`.
6
- *
7
- * Examples:
8
- * 'pt-BR' → ['pt-BR', 'pt']
9
- * 'zh-Hans-CN' → ['zh-Hans-CN', 'zh-Hans', 'zh']
10
- * 'en' → ['en']
11
- *
12
- * `en` is intentionally NOT appended here — the caller falls back to the
13
- * shipped en catalog separately as the final source-of-truth.
14
- */
15
- export declare function resolveLocaleChain(locale: Locale): Locale[];
16
- export declare function resolve(key: string, values: Record<string, unknown> | undefined, locale: Locale, messages: MessagesByLocale, overrides: Overrides | undefined): string;
17
- /**
18
- * Reset internal caches. Test-only.
19
- * @internal
20
- */
21
- export declare function __resetForTests(): void;
22
- //# sourceMappingURL=resolve.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/i18n/resolve.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAU,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAuB1E;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAc3D;AAuDD,wBAAgB,OAAO,CACrB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC3C,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,gBAAgB,EAC1B,SAAS,EAAE,SAAS,GAAG,SAAS,GAC/B,MAAM,CAsBR;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAGtC"}