@oxy.so/bloom 22.0.1 → 22.1.1

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 (478) hide show
  1. package/docs/adoption-matrix.mdx +13 -13
  2. package/docs/agent-task-index.mdx +1 -1
  3. package/docs/app-conventions.mdx +11 -0
  4. package/docs/app-shell.mdx +25 -2
  5. package/docs/compose-layouts.mdx +6 -0
  6. package/docs/composition.mdx +3 -1
  7. package/docs/dialog.mdx +57 -0
  8. package/docs/layout.mdx +10 -0
  9. package/docs/list.mdx +6 -0
  10. package/docs/project-board.mdx +28 -1
  11. package/docs/public-parts.mdx +8 -2
  12. package/docs/screen.mdx +15 -0
  13. package/docs/semantic-composition.mdx +207 -0
  14. package/docs/swipe-row.mdx +30 -0
  15. package/docs/task-catalog.json +16 -3
  16. package/docs/task-catalog.mdx +6 -6
  17. package/docs/ui-architecture.mdx +6 -4
  18. package/lib/commonjs/app-shell/AppShell.js +18 -9
  19. package/lib/commonjs/app-shell/AppShell.js.map +1 -1
  20. package/lib/commonjs/app-shell/AppShellEngine.js +18 -5
  21. package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
  22. package/lib/commonjs/app-shell/AppShellPanelLayout.js +59 -30
  23. package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
  24. package/lib/commonjs/app-shell/AppShellPanels.js +53 -31
  25. package/lib/commonjs/app-shell/AppShellPanels.js.map +1 -1
  26. package/lib/commonjs/app-shell/composition.js +232 -0
  27. package/lib/commonjs/app-shell/composition.js.map +1 -0
  28. package/lib/commonjs/app-shell/context.js +7 -1
  29. package/lib/commonjs/app-shell/context.js.map +1 -1
  30. package/lib/commonjs/app-shell/hooks/index.js +13 -0
  31. package/lib/commonjs/app-shell/hooks/index.js.map +1 -1
  32. package/lib/commonjs/app-shell/index.js +38 -0
  33. package/lib/commonjs/app-shell/index.js.map +1 -1
  34. package/lib/commonjs/app-shell/index.web.js +38 -0
  35. package/lib/commonjs/app-shell/index.web.js.map +1 -1
  36. package/lib/commonjs/app-shell/panel-layout-css.js +7 -3
  37. package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
  38. package/lib/commonjs/app-shell/panel-session.js +210 -0
  39. package/lib/commonjs/app-shell/panel-session.js.map +1 -0
  40. package/lib/commonjs/app-shell/shell-layout-css.js +6 -4
  41. package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
  42. package/lib/commonjs/canvas/CanvasPanelBase.js +1 -0
  43. package/lib/commonjs/canvas/CanvasPanelBase.js.map +1 -1
  44. package/lib/commonjs/chat-screen/ChatInfoPanelBase.js +1 -0
  45. package/lib/commonjs/chat-screen/ChatInfoPanelBase.js.map +1 -1
  46. package/lib/commonjs/dialog/DetailDialog.js +19 -0
  47. package/lib/commonjs/dialog/DetailDialog.js.map +1 -0
  48. package/lib/commonjs/dialog/DetailDialog.web.js +19 -0
  49. package/lib/commonjs/dialog/DetailDialog.web.js.map +1 -0
  50. package/lib/commonjs/dialog/DetailDialogBase.js +204 -0
  51. package/lib/commonjs/dialog/DetailDialogBase.js.map +1 -0
  52. package/lib/commonjs/dialog/DetailDialogMotion.js +87 -0
  53. package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -0
  54. package/lib/commonjs/dialog/DetailDialogMotion.web.js +345 -0
  55. package/lib/commonjs/dialog/DetailDialogMotion.web.js.map +1 -0
  56. package/lib/commonjs/dialog/DetailDialogSection.js +49 -0
  57. package/lib/commonjs/dialog/DetailDialogSection.js.map +1 -0
  58. package/lib/commonjs/dialog/Dialog.js +101 -90
  59. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  60. package/lib/commonjs/dialog/context.js +4 -1
  61. package/lib/commonjs/dialog/context.js.map +1 -1
  62. package/lib/commonjs/dialog/index.js +20 -0
  63. package/lib/commonjs/dialog/index.js.map +1 -1
  64. package/lib/commonjs/dialog/index.web.js +20 -0
  65. package/lib/commonjs/dialog/index.web.js.map +1 -1
  66. package/lib/commonjs/index.js +28 -0
  67. package/lib/commonjs/index.js.map +1 -1
  68. package/lib/commonjs/index.web.js +28 -0
  69. package/lib/commonjs/index.web.js.map +1 -1
  70. package/lib/commonjs/layout/app-shell-region.js.map +1 -1
  71. package/lib/commonjs/layout/index.js +7 -0
  72. package/lib/commonjs/layout/index.js.map +1 -1
  73. package/lib/commonjs/layout/index.web.js +7 -0
  74. package/lib/commonjs/layout/index.web.js.map +1 -1
  75. package/lib/commonjs/layout/safe-area-ownership.js +31 -0
  76. package/lib/commonjs/layout/safe-area-ownership.js.map +1 -0
  77. package/lib/commonjs/layout/screen-scope.js +26 -20
  78. package/lib/commonjs/layout/screen-scope.js.map +1 -1
  79. package/lib/commonjs/list/ListMail.js +5 -1
  80. package/lib/commonjs/list/ListMail.js.map +1 -1
  81. package/lib/commonjs/list/ListPerson.js +6 -9
  82. package/lib/commonjs/list/ListPerson.js.map +1 -1
  83. package/lib/commonjs/page-header/PageHeader.js +3 -1
  84. package/lib/commonjs/page-header/PageHeader.js.map +1 -1
  85. package/lib/commonjs/project-board/ProjectBoard.js +2 -0
  86. package/lib/commonjs/project-board/ProjectBoard.js.map +1 -1
  87. package/lib/commonjs/project-board/ProjectBoard.web.js +2 -0
  88. package/lib/commonjs/project-board/ProjectBoard.web.js.map +1 -1
  89. package/lib/commonjs/project-board/ProjectBoardBase.js +29 -41
  90. package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
  91. package/lib/commonjs/project-board/ProjectBoardCardContent.js +56 -0
  92. package/lib/commonjs/project-board/ProjectBoardCardContent.js.map +1 -0
  93. package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js +7 -340
  94. package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js.map +1 -1
  95. package/lib/commonjs/project-board/TicketDetailDialog.js +317 -412
  96. package/lib/commonjs/project-board/TicketDetailDialog.js.map +1 -1
  97. package/lib/commonjs/project-board/TicketGenieSurface.js +13 -82
  98. package/lib/commonjs/project-board/TicketGenieSurface.js.map +1 -1
  99. package/lib/commonjs/project-board/TicketTokenChart.js +1 -1
  100. package/lib/commonjs/project-board/TicketTokenChart.js.map +1 -1
  101. package/lib/commonjs/project-board/context.js +9 -2
  102. package/lib/commonjs/project-board/context.js.map +1 -1
  103. package/lib/commonjs/project-board/index.js +7 -0
  104. package/lib/commonjs/project-board/index.js.map +1 -1
  105. package/lib/commonjs/project-board/index.web.js +7 -0
  106. package/lib/commonjs/project-board/index.web.js.map +1 -1
  107. package/lib/commonjs/screen/ScreenBase.js +44 -32
  108. package/lib/commonjs/screen/ScreenBase.js.map +1 -1
  109. package/lib/commonjs/screen/ScreenContent.js +61 -0
  110. package/lib/commonjs/screen/ScreenContent.js.map +1 -0
  111. package/lib/commonjs/screen/ScreenScrollViewBase.js +66 -1
  112. package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
  113. package/lib/commonjs/screen/content.js +25 -0
  114. package/lib/commonjs/screen/content.js.map +1 -0
  115. package/lib/commonjs/screen/index.js +7 -0
  116. package/lib/commonjs/screen/index.js.map +1 -1
  117. package/lib/commonjs/screen/index.web.js +7 -0
  118. package/lib/commonjs/screen/index.web.js.map +1 -1
  119. package/lib/commonjs/screen/keyboard-components.js.map +1 -1
  120. package/lib/commonjs/swipe-row/SwipeRow.js +6 -1
  121. package/lib/commonjs/swipe-row/SwipeRow.js.map +1 -1
  122. package/lib/commonjs/swipe-row/SwipeRowBubble.js +7 -8
  123. package/lib/commonjs/swipe-row/SwipeRowBubble.js.map +1 -1
  124. package/lib/module/app-shell/AppShell.js +15 -5
  125. package/lib/module/app-shell/AppShell.js.map +1 -1
  126. package/lib/module/app-shell/AppShellEngine.js +18 -5
  127. package/lib/module/app-shell/AppShellEngine.js.map +1 -1
  128. package/lib/module/app-shell/AppShellPanelLayout.js +60 -30
  129. package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
  130. package/lib/module/app-shell/AppShellPanels.js +52 -28
  131. package/lib/module/app-shell/AppShellPanels.js.map +1 -1
  132. package/lib/module/app-shell/composition.js +226 -0
  133. package/lib/module/app-shell/composition.js.map +1 -0
  134. package/lib/module/app-shell/context.js +4 -0
  135. package/lib/module/app-shell/context.js.map +1 -1
  136. package/lib/module/app-shell/hooks/index.js +1 -0
  137. package/lib/module/app-shell/hooks/index.js.map +1 -1
  138. package/lib/module/app-shell/index.js +3 -0
  139. package/lib/module/app-shell/index.js.map +1 -1
  140. package/lib/module/app-shell/index.web.js +3 -0
  141. package/lib/module/app-shell/index.web.js.map +1 -1
  142. package/lib/module/app-shell/panel-layout-css.js +7 -3
  143. package/lib/module/app-shell/panel-layout-css.js.map +1 -1
  144. package/lib/module/app-shell/panel-session.js +204 -0
  145. package/lib/module/app-shell/panel-session.js.map +1 -0
  146. package/lib/module/app-shell/shell-layout-css.js +6 -4
  147. package/lib/module/app-shell/shell-layout-css.js.map +1 -1
  148. package/lib/module/canvas/CanvasPanelBase.js +1 -0
  149. package/lib/module/canvas/CanvasPanelBase.js.map +1 -1
  150. package/lib/module/chat-screen/ChatInfoPanelBase.js +1 -0
  151. package/lib/module/chat-screen/ChatInfoPanelBase.js.map +1 -1
  152. package/lib/module/dialog/DetailDialog.js +15 -0
  153. package/lib/module/dialog/DetailDialog.js.map +1 -0
  154. package/lib/module/dialog/DetailDialog.web.js +15 -0
  155. package/lib/module/dialog/DetailDialog.web.js.map +1 -0
  156. package/lib/module/dialog/DetailDialogBase.js +200 -0
  157. package/lib/module/dialog/DetailDialogBase.js.map +1 -0
  158. package/lib/module/dialog/DetailDialogMotion.js +81 -0
  159. package/lib/module/dialog/DetailDialogMotion.js.map +1 -0
  160. package/lib/module/dialog/DetailDialogMotion.web.js +342 -0
  161. package/lib/module/dialog/DetailDialogMotion.web.js.map +1 -0
  162. package/lib/module/dialog/DetailDialogSection.js +44 -0
  163. package/lib/module/dialog/DetailDialogSection.js.map +1 -0
  164. package/lib/module/dialog/Dialog.js +102 -91
  165. package/lib/module/dialog/Dialog.js.map +1 -1
  166. package/lib/module/dialog/context.js +3 -0
  167. package/lib/module/dialog/context.js.map +1 -1
  168. package/lib/module/dialog/index.js +2 -0
  169. package/lib/module/dialog/index.js.map +1 -1
  170. package/lib/module/dialog/index.web.js +2 -0
  171. package/lib/module/dialog/index.web.js.map +1 -1
  172. package/lib/module/index.js +2 -2
  173. package/lib/module/index.js.map +1 -1
  174. package/lib/module/index.web.js +2 -2
  175. package/lib/module/index.web.js.map +1 -1
  176. package/lib/module/layout/app-shell-region.js.map +1 -1
  177. package/lib/module/layout/index.js +1 -0
  178. package/lib/module/layout/index.js.map +1 -1
  179. package/lib/module/layout/index.web.js +1 -0
  180. package/lib/module/layout/index.web.js.map +1 -1
  181. package/lib/module/layout/safe-area-ownership.js +26 -0
  182. package/lib/module/layout/safe-area-ownership.js.map +1 -0
  183. package/lib/module/layout/screen-scope.js +26 -20
  184. package/lib/module/layout/screen-scope.js.map +1 -1
  185. package/lib/module/list/ListMail.js +5 -1
  186. package/lib/module/list/ListMail.js.map +1 -1
  187. package/lib/module/list/ListPerson.js +7 -10
  188. package/lib/module/list/ListPerson.js.map +1 -1
  189. package/lib/module/page-header/PageHeader.js +3 -1
  190. package/lib/module/page-header/PageHeader.js.map +1 -1
  191. package/lib/module/project-board/ProjectBoard.js +2 -0
  192. package/lib/module/project-board/ProjectBoard.js.map +1 -1
  193. package/lib/module/project-board/ProjectBoard.web.js +2 -0
  194. package/lib/module/project-board/ProjectBoard.web.js.map +1 -1
  195. package/lib/module/project-board/ProjectBoardBase.js +30 -42
  196. package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
  197. package/lib/module/project-board/ProjectBoardCardContent.js +52 -0
  198. package/lib/module/project-board/ProjectBoardCardContent.js.map +1 -0
  199. package/lib/module/project-board/TicketCornerGenieSurface.web.js +1 -339
  200. package/lib/module/project-board/TicketCornerGenieSurface.web.js.map +1 -1
  201. package/lib/module/project-board/TicketDetailDialog.js +317 -412
  202. package/lib/module/project-board/TicketDetailDialog.js.map +1 -1
  203. package/lib/module/project-board/TicketGenieSurface.js +1 -78
  204. package/lib/module/project-board/TicketGenieSurface.js.map +1 -1
  205. package/lib/module/project-board/TicketTokenChart.js +1 -1
  206. package/lib/module/project-board/TicketTokenChart.js.map +1 -1
  207. package/lib/module/project-board/context.js +1 -1
  208. package/lib/module/project-board/context.js.map +1 -1
  209. package/lib/module/project-board/index.js +1 -0
  210. package/lib/module/project-board/index.js.map +1 -1
  211. package/lib/module/project-board/index.web.js +1 -0
  212. package/lib/module/project-board/index.web.js.map +1 -1
  213. package/lib/module/screen/ScreenBase.js +22 -10
  214. package/lib/module/screen/ScreenBase.js.map +1 -1
  215. package/lib/module/screen/ScreenContent.js +57 -0
  216. package/lib/module/screen/ScreenContent.js.map +1 -0
  217. package/lib/module/screen/ScreenScrollViewBase.js +67 -2
  218. package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
  219. package/lib/module/screen/content.js +21 -0
  220. package/lib/module/screen/content.js.map +1 -0
  221. package/lib/module/screen/index.js +1 -0
  222. package/lib/module/screen/index.js.map +1 -1
  223. package/lib/module/screen/index.web.js +1 -0
  224. package/lib/module/screen/index.web.js.map +1 -1
  225. package/lib/module/screen/keyboard-components.js.map +1 -1
  226. package/lib/module/swipe-row/SwipeRow.js +6 -1
  227. package/lib/module/swipe-row/SwipeRow.js.map +1 -1
  228. package/lib/module/swipe-row/SwipeRowBubble.js +8 -9
  229. package/lib/module/swipe-row/SwipeRowBubble.js.map +1 -1
  230. package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
  232. package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/app-shell/AppShellPanels.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/app-shell/composition.d.ts +52 -0
  235. package/lib/typescript/commonjs/app-shell/composition.d.ts.map +1 -0
  236. package/lib/typescript/commonjs/app-shell/context.d.ts +4 -0
  237. package/lib/typescript/commonjs/app-shell/context.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/app-shell/hooks/index.d.ts +2 -0
  239. package/lib/typescript/commonjs/app-shell/hooks/index.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/app-shell/index.d.ts +5 -0
  241. package/lib/typescript/commonjs/app-shell/index.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/app-shell/index.web.d.ts +5 -0
  243. package/lib/typescript/commonjs/app-shell/index.web.d.ts.map +1 -1
  244. package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +2 -1
  246. package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/app-shell/panel-session.d.ts +51 -0
  248. package/lib/typescript/commonjs/app-shell/panel-session.d.ts.map +1 -0
  249. package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts +2 -1
  250. package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/app-shell/types.d.ts +15 -3
  252. package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/dialog/DetailDialog.d.ts +5 -0
  254. package/lib/typescript/commonjs/dialog/DetailDialog.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts +5 -0
  256. package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts +20 -0
  258. package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts +9 -0
  260. package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -0
  261. package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts +7 -0
  262. package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts.map +1 -0
  263. package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts +6 -0
  264. package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/dialog/context.d.ts +2 -0
  267. package/lib/typescript/commonjs/dialog/context.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/dialog/index.d.ts +3 -1
  269. package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/dialog/index.web.d.ts +3 -1
  271. package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/dialog/types.d.ts +37 -0
  273. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/index.d.ts +3 -3
  275. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/index.web.d.ts +3 -3
  277. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/layout/app-shell-region.d.ts +2 -0
  279. package/lib/typescript/commonjs/layout/app-shell-region.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/layout/index.d.ts +1 -0
  281. package/lib/typescript/commonjs/layout/index.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/layout/index.web.d.ts +1 -0
  283. package/lib/typescript/commonjs/layout/index.web.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts +8 -0
  285. package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/layout/screen-scope.d.ts +3 -1
  287. package/lib/typescript/commonjs/layout/screen-scope.d.ts.map +1 -1
  288. package/lib/typescript/commonjs/list/ListMail.d.ts.map +1 -1
  289. package/lib/typescript/commonjs/list/ListPerson.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts.map +1 -1
  293. package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts +4 -0
  295. package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
  297. package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts +1 -8
  300. package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/project-board/context.d.ts +2 -1
  302. package/lib/typescript/commonjs/project-board/context.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/project-board/index.d.ts +2 -1
  304. package/lib/typescript/commonjs/project-board/index.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/project-board/index.web.d.ts +2 -1
  306. package/lib/typescript/commonjs/project-board/index.web.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/project-board/types.d.ts +12 -0
  308. package/lib/typescript/commonjs/project-board/types.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/screen/ScreenContent.d.ts +14 -0
  311. package/lib/typescript/commonjs/screen/ScreenContent.d.ts.map +1 -0
  312. package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/screen/content.d.ts +6 -0
  314. package/lib/typescript/commonjs/screen/content.d.ts.map +1 -0
  315. package/lib/typescript/commonjs/screen/index.d.ts +3 -0
  316. package/lib/typescript/commonjs/screen/index.d.ts.map +1 -1
  317. package/lib/typescript/commonjs/screen/index.web.d.ts +3 -0
  318. package/lib/typescript/commonjs/screen/index.web.d.ts.map +1 -1
  319. package/lib/typescript/commonjs/screen/keyboard-components.d.ts +5 -0
  320. package/lib/typescript/commonjs/screen/keyboard-components.d.ts.map +1 -1
  321. package/lib/typescript/commonjs/screen/types.d.ts +7 -0
  322. package/lib/typescript/commonjs/screen/types.d.ts.map +1 -1
  323. package/lib/typescript/commonjs/swipe-row/SwipeRowBubble.d.ts.map +1 -1
  324. package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
  325. package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
  326. package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
  327. package/lib/typescript/module/app-shell/AppShellPanels.d.ts.map +1 -1
  328. package/lib/typescript/module/app-shell/composition.d.ts +52 -0
  329. package/lib/typescript/module/app-shell/composition.d.ts.map +1 -0
  330. package/lib/typescript/module/app-shell/context.d.ts +4 -0
  331. package/lib/typescript/module/app-shell/context.d.ts.map +1 -1
  332. package/lib/typescript/module/app-shell/hooks/index.d.ts +2 -0
  333. package/lib/typescript/module/app-shell/hooks/index.d.ts.map +1 -1
  334. package/lib/typescript/module/app-shell/index.d.ts +5 -0
  335. package/lib/typescript/module/app-shell/index.d.ts.map +1 -1
  336. package/lib/typescript/module/app-shell/index.web.d.ts +5 -0
  337. package/lib/typescript/module/app-shell/index.web.d.ts.map +1 -1
  338. package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
  339. package/lib/typescript/module/app-shell/panel-layout-types.d.ts +2 -1
  340. package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
  341. package/lib/typescript/module/app-shell/panel-session.d.ts +51 -0
  342. package/lib/typescript/module/app-shell/panel-session.d.ts.map +1 -0
  343. package/lib/typescript/module/app-shell/shell-layout-css.d.ts +2 -1
  344. package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
  345. package/lib/typescript/module/app-shell/types.d.ts +15 -3
  346. package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
  347. package/lib/typescript/module/dialog/DetailDialog.d.ts +5 -0
  348. package/lib/typescript/module/dialog/DetailDialog.d.ts.map +1 -0
  349. package/lib/typescript/module/dialog/DetailDialog.web.d.ts +5 -0
  350. package/lib/typescript/module/dialog/DetailDialog.web.d.ts.map +1 -0
  351. package/lib/typescript/module/dialog/DetailDialogBase.d.ts +20 -0
  352. package/lib/typescript/module/dialog/DetailDialogBase.d.ts.map +1 -0
  353. package/lib/typescript/module/dialog/DetailDialogMotion.d.ts +9 -0
  354. package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -0
  355. package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts +7 -0
  356. package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts.map +1 -0
  357. package/lib/typescript/module/dialog/DetailDialogSection.d.ts +6 -0
  358. package/lib/typescript/module/dialog/DetailDialogSection.d.ts.map +1 -0
  359. package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
  360. package/lib/typescript/module/dialog/context.d.ts +2 -0
  361. package/lib/typescript/module/dialog/context.d.ts.map +1 -1
  362. package/lib/typescript/module/dialog/index.d.ts +3 -1
  363. package/lib/typescript/module/dialog/index.d.ts.map +1 -1
  364. package/lib/typescript/module/dialog/index.web.d.ts +3 -1
  365. package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
  366. package/lib/typescript/module/dialog/types.d.ts +37 -0
  367. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  368. package/lib/typescript/module/index.d.ts +3 -3
  369. package/lib/typescript/module/index.d.ts.map +1 -1
  370. package/lib/typescript/module/index.web.d.ts +3 -3
  371. package/lib/typescript/module/index.web.d.ts.map +1 -1
  372. package/lib/typescript/module/layout/app-shell-region.d.ts +2 -0
  373. package/lib/typescript/module/layout/app-shell-region.d.ts.map +1 -1
  374. package/lib/typescript/module/layout/index.d.ts +1 -0
  375. package/lib/typescript/module/layout/index.d.ts.map +1 -1
  376. package/lib/typescript/module/layout/index.web.d.ts +1 -0
  377. package/lib/typescript/module/layout/index.web.d.ts.map +1 -1
  378. package/lib/typescript/module/layout/safe-area-ownership.d.ts +8 -0
  379. package/lib/typescript/module/layout/safe-area-ownership.d.ts.map +1 -0
  380. package/lib/typescript/module/layout/screen-scope.d.ts +3 -1
  381. package/lib/typescript/module/layout/screen-scope.d.ts.map +1 -1
  382. package/lib/typescript/module/list/ListMail.d.ts.map +1 -1
  383. package/lib/typescript/module/list/ListPerson.d.ts.map +1 -1
  384. package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
  385. package/lib/typescript/module/project-board/ProjectBoard.d.ts.map +1 -1
  386. package/lib/typescript/module/project-board/ProjectBoard.web.d.ts.map +1 -1
  387. package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
  388. package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts +4 -0
  389. package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts.map +1 -0
  390. package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
  391. package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
  392. package/lib/typescript/module/project-board/TicketDetailDialog.d.ts.map +1 -1
  393. package/lib/typescript/module/project-board/TicketGenieSurface.d.ts +1 -8
  394. package/lib/typescript/module/project-board/TicketGenieSurface.d.ts.map +1 -1
  395. package/lib/typescript/module/project-board/context.d.ts +2 -1
  396. package/lib/typescript/module/project-board/context.d.ts.map +1 -1
  397. package/lib/typescript/module/project-board/index.d.ts +2 -1
  398. package/lib/typescript/module/project-board/index.d.ts.map +1 -1
  399. package/lib/typescript/module/project-board/index.web.d.ts +2 -1
  400. package/lib/typescript/module/project-board/index.web.d.ts.map +1 -1
  401. package/lib/typescript/module/project-board/types.d.ts +12 -0
  402. package/lib/typescript/module/project-board/types.d.ts.map +1 -1
  403. package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
  404. package/lib/typescript/module/screen/ScreenContent.d.ts +14 -0
  405. package/lib/typescript/module/screen/ScreenContent.d.ts.map +1 -0
  406. package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
  407. package/lib/typescript/module/screen/content.d.ts +6 -0
  408. package/lib/typescript/module/screen/content.d.ts.map +1 -0
  409. package/lib/typescript/module/screen/index.d.ts +3 -0
  410. package/lib/typescript/module/screen/index.d.ts.map +1 -1
  411. package/lib/typescript/module/screen/index.web.d.ts +3 -0
  412. package/lib/typescript/module/screen/index.web.d.ts.map +1 -1
  413. package/lib/typescript/module/screen/keyboard-components.d.ts +5 -0
  414. package/lib/typescript/module/screen/keyboard-components.d.ts.map +1 -1
  415. package/lib/typescript/module/screen/types.d.ts +7 -0
  416. package/lib/typescript/module/screen/types.d.ts.map +1 -1
  417. package/lib/typescript/module/swipe-row/SwipeRowBubble.d.ts.map +1 -1
  418. package/package.json +1 -1
  419. package/src/__tests__/support/public-part-classifications.json +19 -1
  420. package/src/app-shell/AppShell.tsx +15 -6
  421. package/src/app-shell/AppShellEngine.tsx +36 -10
  422. package/src/app-shell/AppShellPanelLayout.tsx +106 -55
  423. package/src/app-shell/AppShellPanels.tsx +75 -44
  424. package/src/app-shell/composition.ts +257 -0
  425. package/src/app-shell/context.ts +5 -0
  426. package/src/app-shell/hooks/index.ts +3 -0
  427. package/src/app-shell/index.ts +16 -0
  428. package/src/app-shell/index.web.ts +16 -0
  429. package/src/app-shell/panel-layout-css.ts +7 -3
  430. package/src/app-shell/panel-layout-types.ts +2 -1
  431. package/src/app-shell/panel-session.tsx +246 -0
  432. package/src/app-shell/shell-layout-css.ts +6 -1
  433. package/src/app-shell/types.ts +15 -3
  434. package/src/canvas/CanvasPanelBase.tsx +1 -1
  435. package/src/chat-screen/ChatInfoPanelBase.tsx +1 -1
  436. package/src/dialog/DetailDialog.tsx +13 -0
  437. package/src/dialog/DetailDialog.web.tsx +13 -0
  438. package/src/dialog/DetailDialogBase.tsx +207 -0
  439. package/src/dialog/DetailDialogMotion.tsx +75 -0
  440. package/src/dialog/DetailDialogMotion.web.tsx +360 -0
  441. package/src/dialog/DetailDialogSection.tsx +42 -0
  442. package/src/dialog/Dialog.tsx +98 -85
  443. package/src/dialog/context.ts +3 -0
  444. package/src/dialog/index.ts +5 -0
  445. package/src/dialog/index.web.ts +5 -0
  446. package/src/dialog/types.ts +40 -0
  447. package/src/index.ts +7 -0
  448. package/src/index.web.ts +7 -0
  449. package/src/layout/app-shell-region.ts +2 -0
  450. package/src/layout/index.ts +2 -0
  451. package/src/layout/index.web.ts +2 -0
  452. package/src/layout/safe-area-ownership.ts +22 -0
  453. package/src/layout/screen-scope.tsx +31 -22
  454. package/src/list/ListMail.tsx +5 -1
  455. package/src/list/ListPerson.tsx +12 -7
  456. package/src/page-header/PageHeader.tsx +3 -1
  457. package/src/project-board/ProjectBoard.tsx +2 -0
  458. package/src/project-board/ProjectBoard.web.tsx +2 -0
  459. package/src/project-board/ProjectBoardBase.tsx +13 -13
  460. package/src/project-board/ProjectBoardCardContent.tsx +54 -0
  461. package/src/project-board/TicketCornerGenieSurface.web.tsx +1 -362
  462. package/src/project-board/TicketDetailDialog.tsx +311 -426
  463. package/src/project-board/TicketGenieSurface.tsx +4 -75
  464. package/src/project-board/TicketTokenChart.tsx +1 -1
  465. package/src/project-board/context.ts +2 -1
  466. package/src/project-board/index.ts +2 -0
  467. package/src/project-board/index.web.ts +2 -0
  468. package/src/project-board/types.ts +13 -0
  469. package/src/screen/ScreenBase.tsx +30 -7
  470. package/src/screen/ScreenContent.tsx +61 -0
  471. package/src/screen/ScreenScrollViewBase.tsx +80 -1
  472. package/src/screen/content.ts +26 -0
  473. package/src/screen/index.ts +4 -0
  474. package/src/screen/index.web.ts +4 -0
  475. package/src/screen/keyboard-components.ts +2 -0
  476. package/src/screen/types.ts +7 -0
  477. package/src/swipe-row/SwipeRow.tsx +5 -4
  478. package/src/swipe-row/SwipeRowBubble.tsx +12 -8
@@ -0,0 +1,360 @@
1
+ import { useEffect, useRef, useState, type ReactNode } from 'react';
2
+ import { useDialogContext } from './context';
3
+ import { adoptStyleSheet } from '../styles/adopt-style-sheet';
4
+ import { DetailDialogEnteredContext } from './context';
5
+ import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
6
+ const styles = {
7
+ band: 'bloom-detail-dialog-band',
8
+ bands: 'bloom-detail-dialog-bands',
9
+ genie: 'bloom-detail-dialog-genie',
10
+ panel: 'bloom-detail-dialog-panel',
11
+ shadow: 'bloom-detail-dialog-shadow',
12
+ surface: 'bloom-detail-dialog-surface',
13
+ };
14
+ const CSS =
15
+ '/* React Aria keeps the panel mounted for the shared Genie timeline.\n * Its pixels bend into the bottom-right dock; the shell never slides. */\n.bloom-detail-dialog-panel[data-entering], .bloom-detail-dialog-panel[data-exiting] { animation: bloom-detail-dialog-detail-presence 560ms linear both; }\n.bloom-detail-dialog-panel[data-exiting] { pointer-events: none; }\n@keyframes bloom-detail-dialog-detail-presence {\n from { opacity: 0.9999; }\n to { opacity: 1; }\n}\n.bloom-detail-dialog-genie, .bloom-detail-dialog-surface { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.bloom-detail-dialog-genie { isolation: isolate; }\n/* Start the chart\'s own drawing animation only after the visual bands hand\n * back to the live panel, so it never flashes a completed copy first. */\n.bloom-detail-dialog-genie:not([data-entered="true"]) .bloom-detail-deferred svg {\n visibility: hidden;\n}\n.bloom-detail-dialog-shadow {\n position: absolute;\n inset: 0;\n border-radius: 24px;\n pointer-events: none;\n transform-origin: right bottom;\n box-shadow: -10px 0 34px rgb(0 0 0 / 0.05), -10px 0 250px rgb(0 0 0 / 0.25);\n}\n.bloom-detail-dialog-bands { position: absolute; inset: 0; pointer-events: none; opacity: 0; }\n.bloom-detail-dialog-band {\n position: absolute;\n top: 0;\n left: 0;\n overflow: hidden;\n contain: strict;\n transform-origin: 0 0;\n will-change: transform;\n backface-visibility: hidden;\n}\n@media (prefers-reduced-motion: reduce) {\n .bloom-detail-dialog-panel[data-entering], .bloom-detail-dialog-panel[data-exiting] { animation: none; }\n}\n';
16
+
17
+ const DURATION = 480;
18
+ const FRAMES = 32;
19
+ const smooth = (value: number) => {
20
+ const t = Math.min(1, Math.max(0, value));
21
+ return t * t * (3 - 2 * t);
22
+ };
23
+ const phase = (start: number, end: number, value: number) =>
24
+ smooth((value - start) / (end - start));
25
+
26
+ /** Map a rectangular band to a trapezoid. Adjacent bands share their exact
27
+ * edges, producing a curved funnel using compositor-only transforms. */
28
+ function bandTransform(
29
+ width: number,
30
+ height: number,
31
+ top: number,
32
+ bottom: number,
33
+ dockX: number,
34
+ dockY: number,
35
+ progress: number,
36
+ ) {
37
+ const neck = phase(0, 0.72, progress);
38
+ const swallow = phase(0.32, 1, progress);
39
+ const extension = dockY * phase(0, 0.42, progress);
40
+ const scaleX = 1 - 0.88 * swallow;
41
+ const scaleY = Math.max(0.001, ((height + extension) * (1 - swallow)) / height);
42
+ const right = width + dockX * phase(0, 0.72, progress);
43
+ const section = (y: number) => {
44
+ const bend = neck * (y / height) ** 3;
45
+ return {
46
+ left: right - width * scaleX + width * scaleX * 0.92 * bend,
47
+ right: right - width * scaleX * 0.03 * bend,
48
+ y: height * (1 - scaleY) + extension + y * scaleY,
49
+ };
50
+ };
51
+ const a = section(top);
52
+ const b = section(bottom);
53
+ const bandHeight = bottom - top;
54
+ const topWidth = a.right - a.left;
55
+ const ratio = topWidth / (b.right - b.left);
56
+ return `matrix3d(${topWidth / width},0,0,0,${(b.left * ratio - a.left) / bandHeight},${(b.y * ratio - a.y) / bandHeight},0,${(ratio - 1) / bandHeight},0,0,1,0,${a.left},${a.y},0,1)`;
57
+ }
58
+
59
+ /** Match complete IDs, so a reference ending in -10 never matches -1. */
60
+ function rebaseIds(copy: HTMLElement, prefix: string) {
61
+ const elements = [copy, ...Array.from(copy.querySelectorAll<HTMLElement>('*'))];
62
+ const ids = new Map<string, string>();
63
+ elements.forEach((element) => {
64
+ if (element.id) {
65
+ const id = `${prefix}-${ids.size}`;
66
+ ids.set(element.id, id);
67
+ element.id = id;
68
+ }
69
+ });
70
+ elements.forEach((element) => {
71
+ for (const attribute of Array.from(element.attributes)) {
72
+ if (attribute.name === 'id') continue;
73
+ let value = attribute.value.replace(
74
+ /url\((["']?)#([^"')]+)\1\)/g,
75
+ (reference, _quote, id: string) => (ids.has(id) ? `url(#${ids.get(id)})` : reference),
76
+ );
77
+ if (value.startsWith('#') && ids.has(value.slice(1))) value = `#${ids.get(value.slice(1))}`;
78
+ if (value !== attribute.value) element.setAttribute(attribute.name, value);
79
+ }
80
+ });
81
+ }
82
+
83
+ /** Paint the chart once, before slicing. Chromium can cull SVG strokes and
84
+ * gradient fills differently in each perspective-transformed clipping band.
85
+ * A shared bitmap keeps every band on the same paint, at device resolution. */
86
+ async function snapshotDeferredGraphics(source: HTMLDivElement, copy: HTMLDivElement) {
87
+ const charts = source.querySelectorAll<SVGSVGElement>('.bloom-detail-deferred svg');
88
+ const copies = copy.querySelectorAll<SVGSVGElement>('.bloom-detail-deferred svg');
89
+ await Promise.allSettled(
90
+ Array.from(charts, async (chart, index) => {
91
+ const { width, height } = chart.getBoundingClientRect();
92
+ if (!width || !height) return;
93
+ const svg = chart.cloneNode(true) as SVGSVGElement;
94
+ const originals = [chart, ...Array.from(chart.querySelectorAll<SVGElement>('*'))];
95
+ const elements = [svg, ...Array.from(svg.querySelectorAll<SVGElement>('*'))];
96
+ const paint = [
97
+ 'fill',
98
+ 'fill-opacity',
99
+ 'stroke',
100
+ 'stroke-opacity',
101
+ 'stroke-width',
102
+ 'stroke-dasharray',
103
+ 'stroke-dashoffset',
104
+ 'stroke-linecap',
105
+ 'stroke-linejoin',
106
+ 'opacity',
107
+ 'stop-color',
108
+ 'stop-opacity',
109
+ 'clip-path',
110
+ 'visibility',
111
+ ];
112
+ elements.forEach((element, elementIndex) => {
113
+ const computed = getComputedStyle(originals[elementIndex]!);
114
+ for (const property of paint) {
115
+ // Resolve theme variables and make document-local paint references
116
+ // local to the standalone SVG image too.
117
+ const value = computed
118
+ .getPropertyValue(property)
119
+ .replace(/url\(["']?[^#)]*#([^"')]+)["']?\)/g, 'url(#$1)');
120
+ element.style.setProperty(property, value);
121
+ }
122
+ });
123
+ svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
124
+ svg.setAttribute('width', String(width));
125
+ svg.setAttribute('height', String(height));
126
+ svg.style.width = `${width}px`;
127
+ svg.style.height = `${height}px`;
128
+ const image = new Image();
129
+ image.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(svg))}`;
130
+ await image.decode();
131
+ const canvas = document.createElement('canvas');
132
+ const ratio = window.devicePixelRatio || 1;
133
+ canvas.width = Math.ceil(width * ratio);
134
+ canvas.height = Math.ceil(height * ratio);
135
+ const context = canvas.getContext('2d');
136
+ if (!context) return;
137
+ context.drawImage(image, 0, 0, canvas.width, canvas.height);
138
+ const bitmap = new Image();
139
+ bitmap.alt = '';
140
+ bitmap.style.cssText = `display:block;width:${width}px;height:${height}px;max-width:none`;
141
+ bitmap.src = canvas.toDataURL();
142
+ await bitmap.decode();
143
+ copies[index]?.replaceWith(bitmap);
144
+ }),
145
+ );
146
+ }
147
+
148
+ /** Private visual copy: never duplicate live React controls or accessible IDs. */
149
+ function copySurface(source: HTMLDivElement, prefix: string) {
150
+ const copy = source.cloneNode(true) as HTMLDivElement;
151
+ rebaseIds(copy, prefix);
152
+ const originals = [source, ...Array.from(source.querySelectorAll<HTMLElement>('*'))];
153
+ const elements = [copy, ...Array.from(copy.querySelectorAll<HTMLElement>('*'))];
154
+ elements.forEach((element, index) => {
155
+ // Freeze deferred reveals and progressive backdrop filters while the
156
+ // browser paints each clipped band once. No filters animate on these bands.
157
+ element.style.animation = 'none';
158
+ element.style.transition = 'none';
159
+ element.style.backdropFilter = 'none';
160
+ element.style.setProperty('--bloom-surface-filter', 'none');
161
+ element.style.setProperty('--bloom-surface-highlight-filter', 'none');
162
+ if (originals[index]!.closest('.bloom-detail-deferred')) {
163
+ element.style.clipPath = getComputedStyle(originals[index]!).clipPath;
164
+ }
165
+ // Cloning preserves the DOM but not an internal scroll position.
166
+ if (originals[index]!.scrollTop)
167
+ element.dataset.genieScroll = String(originals[index]!.scrollTop);
168
+ });
169
+ copy.style.visibility = 'visible';
170
+ copy.style.transform = 'none';
171
+ copy.style.filter = 'none';
172
+ return copy;
173
+ }
174
+
175
+ /** Tall panels use cached bands instead of re-running a full-height SVG
176
+ * displacement + blur pass each frame. Only transform and opacity animate. */
177
+ export function DetailDialogMotion({ children }: { children: ReactNode }) {
178
+ const { isClosing: exiting = false } = useDialogContext();
179
+ adoptStyleSheet('bloom-detail-dialog', CSS);
180
+ const rootRef = useRef<HTMLDivElement>(null);
181
+ const surfaceRef = useRef<HTMLDivElement>(null);
182
+ const bandsRef = useRef<HTMLDivElement>(null);
183
+ const shadowRef = useRef<HTMLDivElement>(null);
184
+ const progressRef = useRef(1);
185
+ const reducedMotion = usePrefersReducedMotion();
186
+ const [entered, setEntered] = useState(reducedMotion);
187
+
188
+ useEffect(() => {
189
+ const root = rootRef.current;
190
+ const surface = surfaceRef.current;
191
+ const bands = bandsRef.current;
192
+ const shadow = shadowRef.current;
193
+ if (!root || !surface || !bands || !shadow) return;
194
+ if (reducedMotion) {
195
+ root.dataset.entered = 'true';
196
+ setEntered(true);
197
+ surface.style.visibility = 'visible';
198
+ shadow.style.opacity = '1';
199
+ bands.replaceChildren();
200
+ progressRef.current = 0;
201
+ return;
202
+ }
203
+
204
+ let cancelled = false;
205
+ let frame = 0;
206
+ let clock: Animation | undefined;
207
+ const animations: Animation[] = [];
208
+ const from = progressRef.current;
209
+ const to = exiting ? 1 : 0;
210
+ const start = async () => {
211
+ if (cancelled) return;
212
+ const width = surface.offsetWidth;
213
+ const height = surface.offsetHeight;
214
+ const bounds = root.getBoundingClientRect();
215
+ const dockX = Math.max(0, window.innerWidth - bounds.right) + 24;
216
+ const dockY = Math.max(0, window.innerHeight - bounds.bottom) + 24;
217
+ const count = Math.min(36, Math.max(16, Math.ceil(height / 32)));
218
+ const fragment = document.createDocumentFragment();
219
+ const slices: { element: HTMLDivElement; top: number; bottom: number }[] = [];
220
+ const template = copySurface(surface, `genie-${crypto.randomUUID()}`);
221
+ if (root.dataset.entered === 'true') {
222
+ await snapshotDeferredGraphics(surface, template);
223
+ } else {
224
+ // The entrance reveals the live chart after the handoff. Capturing an
225
+ // invisible plot adds SVG serialization, PNG encoding, and two decodes
226
+ // to the cold opening path without contributing any visible pixels.
227
+ template.querySelectorAll('.bloom-detail-deferred svg').forEach((chart) => chart.remove());
228
+ }
229
+ if (cancelled) return;
230
+ for (let index = 0; index < count; index++) {
231
+ const top = (height * index) / count;
232
+ // Subpixel overlap prevents hairline seams at fractional browser zoom.
233
+ const bottom = Math.min(height, (height * (index + 1)) / count + 0.5);
234
+ const element = document.createElement('div');
235
+ element.className = styles.band;
236
+ element.style.width = `${width}px`;
237
+ element.style.height = `${bottom - top}px`;
238
+ element.style.transform = bandTransform(width, height, top, bottom, dockX, dockY, 0);
239
+ const copy = template.cloneNode(true) as HTMLDivElement;
240
+ // Definitions in each slice need unique IDs (e.g. chart gradients).
241
+ rebaseIds(copy, `genie-band-${index}-${crypto.randomUUID()}`);
242
+ Object.assign(copy.style, {
243
+ position: 'absolute',
244
+ width: `${width}px`,
245
+ height: `${height}px`,
246
+ top: `${-top}px`,
247
+ left: '0',
248
+ });
249
+ element.append(copy);
250
+ fragment.append(element);
251
+ slices.push({ element, top, bottom });
252
+ }
253
+ bands.replaceChildren(fragment);
254
+ bands.querySelectorAll<HTMLElement>('[data-genie-scroll]').forEach((element) => {
255
+ element.scrollTop = Number(element.dataset.genieScroll);
256
+ });
257
+ if (!exiting) {
258
+ // Paint at the final resolution before shrinking to the dock. Starting
259
+ // cold at a near-zero scale makes Chromium rasterize growing layers
260
+ // during the entrance; closing already has full-size painted content.
261
+ // A nonzero, imperceptible opacity prevents paint culling. Two frames
262
+ // give the compositor one complete paint before starting the timeline.
263
+ bands.style.opacity = '0.001';
264
+ await new Promise<void>((resolve) => {
265
+ frame = requestAnimationFrame(() => {
266
+ frame = requestAnimationFrame(() => resolve());
267
+ });
268
+ });
269
+ if (cancelled) return;
270
+ }
271
+ surface.style.visibility = 'hidden';
272
+ bands.style.opacity = '1';
273
+ const progress = Array.from(
274
+ { length: FRAMES + 1 },
275
+ (_, index) => from + (to - from) * smooth(index / FRAMES),
276
+ );
277
+ for (const { element, top, bottom } of slices) {
278
+ animations.push(
279
+ element.animate(
280
+ progress.map((value) => ({
281
+ transform: bandTransform(width, height, top, bottom, dockX, dockY, value),
282
+ })),
283
+ { duration: DURATION, fill: 'both', easing: 'linear' },
284
+ ),
285
+ );
286
+ }
287
+ clock = bands.animate(
288
+ progress.map((value) => ({ opacity: 1 - phase(0.94, 1, value) })),
289
+ { duration: DURATION, fill: 'both', easing: 'linear' },
290
+ );
291
+ animations.push(clock);
292
+ animations.push(
293
+ shadow.animate(
294
+ progress.map((value) => ({
295
+ transform: `translate(${dockX * phase(0, 0.72, value)}px, ${dockY * phase(0, 0.42, value)}px) scale(${1 - phase(0, 0.72, value) * 0.65}, ${1 - phase(0.32, 1, value) * 0.9})`,
296
+ opacity: 1 - phase(0.08, 0.72, value),
297
+ })),
298
+ { duration: DURATION, fill: 'both', easing: 'linear' },
299
+ ),
300
+ );
301
+ void clock.finished
302
+ .then(() => {
303
+ if (cancelled) return;
304
+ progressRef.current = to;
305
+ if (!exiting) {
306
+ root.dataset.entered = 'true';
307
+ setEntered(true);
308
+ surface.style.visibility = 'visible';
309
+ shadow.style.opacity = '1';
310
+ shadow.style.transform = 'none';
311
+ bands.style.opacity = '0';
312
+ bands.replaceChildren();
313
+ animations.forEach((animation) => animation.cancel());
314
+ }
315
+ })
316
+ .catch(() => {
317
+ /* Interrupted transitions reverse from their current shape. */
318
+ });
319
+ };
320
+ // Let the panel obtain its first layout before preparing the visual bands.
321
+ if (exiting) start();
322
+ else
323
+ frame = requestAnimationFrame(() => {
324
+ frame = requestAnimationFrame(start);
325
+ });
326
+ return () => {
327
+ cancelled = true;
328
+ cancelAnimationFrame(frame);
329
+ if (clock && (clock.playState === 'running' || clock.playState === 'paused')) {
330
+ progressRef.current =
331
+ from + (to - from) * smooth(Number(clock.currentTime ?? 0) / DURATION);
332
+ }
333
+ animations.forEach((animation) => animation.cancel());
334
+ bands.replaceChildren();
335
+ };
336
+ }, [exiting, reducedMotion]);
337
+
338
+ return (
339
+ <DetailDialogEnteredContext.Provider value={entered}>
340
+ <div ref={rootRef} className={styles.genie}>
341
+ <div
342
+ ref={shadowRef}
343
+ aria-hidden
344
+ className={styles.shadow}
345
+ style={{ opacity: reducedMotion ? 1 : 0 }}
346
+ />
347
+ {/* Hidden, never faded: an opacity here would be the backdrop root of
348
+ the material inside, which the live panel hands back at full blur. */}
349
+ <div
350
+ ref={surfaceRef}
351
+ className={styles.surface}
352
+ style={{ visibility: reducedMotion ? 'visible' : 'hidden' }}
353
+ >
354
+ {children}
355
+ </div>
356
+ <div ref={bandsRef} aria-hidden inert className={styles.bands} />
357
+ </div>
358
+ </DetailDialogEnteredContext.Provider>
359
+ );
360
+ }
@@ -0,0 +1,42 @@
1
+ import { StyledView } from '../styles/styled-primitives';
2
+ import { Text } from '../typography';
3
+ import type { DetailDialogSectionProps, DetailDialogSectionGroupProps } from './types';
4
+
5
+ /** The template's shared label/values row; product controls keep their own data semantics. */
6
+ export function DetailDialogSection({
7
+ label,
8
+ children,
9
+ accessibilityLabel,
10
+ testID,
11
+ }: DetailDialogSectionProps) {
12
+ return (
13
+ <StyledView
14
+ accessibilityLabel={accessibilityLabel}
15
+ testID={testID}
16
+ className="flex flex-row items-start gap-5 max-sm:flex-col max-sm:gap-2"
17
+ >
18
+ <StyledView className="w-[70px] shrink-0 pt-0.5">
19
+ {typeof label === 'string' || typeof label === 'number' ? (
20
+ <Text className="text-body-medium text-text-secondary">{label}</Text>
21
+ ) : (
22
+ label
23
+ )}
24
+ </StyledView>
25
+ <StyledView
26
+ className="flex flex-row min-w-0 flex-wrap items-center gap-x-5 gap-y-3"
27
+ style={{ flex: 1 }}
28
+ >
29
+ {children}
30
+ </StyledView>
31
+ </StyledView>
32
+ );
33
+ }
34
+
35
+ /** Shared spacing for a record's property sections, including full-page editors. */
36
+ export function DetailDialogSectionGroup({ children, testID }: DetailDialogSectionGroupProps) {
37
+ return (
38
+ <StyledView testID={testID} className="flex flex-col gap-5">
39
+ {children}
40
+ </StyledView>
41
+ );
42
+ }
@@ -1,3 +1,6 @@
1
+ import { SafeAreaInsetsContext } from 'react-native-safe-area-context';
2
+ import { WindowSafeAreaInsetsContext, NO_CONSUMED_SAFE_AREA } from '../layout/safe-area-ownership';
3
+ import { Portal } from '../portal';
1
4
  import { HeaderActions } from '../page-header/HeaderActions';
2
5
  import {
3
6
  useDesktopPresentationSession,
@@ -22,6 +25,7 @@ import { resolveSurfaceMaterial } from '../surface/resolve-surface-material';
22
25
  import type React from 'react';
23
26
  import {
24
27
  useCallback,
28
+ useContext,
25
29
  useEffect,
26
30
  useId,
27
31
  useImperativeHandle,
@@ -656,6 +660,9 @@ function SideSheet({
656
660
  }) {
657
661
  const motion = useSurfaceTransition(transition);
658
662
  const dialogMessages = useMessages(DIALOG_MESSAGES).messages;
663
+ const savedWindowInsets = useContext(WindowSafeAreaInsetsContext);
664
+ const triggerInsets = useContext(SafeAreaInsetsContext);
665
+ const windowInsets = savedWindowInsets ?? triggerInsets ?? NO_CONSUMED_SAFE_AREA;
659
666
  const theme = useTheme();
660
667
  // React Native drops `aria-describedby`: the description is the panel's hint.
661
668
  const descriptionHint = useDescribedByHint({
@@ -796,93 +803,99 @@ function SideSheet({
796
803
  // `onRequestClose`: the drawer is not an RN `Modal`, so Android back would
797
804
  // otherwise pass straight to the screen behind it. A drawer that refuses
798
805
  // backdrop dismissal still swallows the press, and stays open.
799
- <OverlayRoot
800
- style={[sideStyles.root, containerStyle]}
801
- className={containerClassName}
802
- onRequestClose={handleBackdropPress}
803
- modal
804
- >
805
- <Backdrop
806
- {...backdrop}
807
- testID={testID ? `${testID}-backdrop` : DIALOG_SHEET_BACKDROP_TESTID}
808
- accessibilityLabel={
809
- label ? dialogMessages.dismissNamed(label) : dialogMessages.dismissDialog
810
- }
811
- onPress={handleBackdropPress}
812
- disabled={!dismissOnBackdrop}
813
- progress={progress}
814
- dimOpacity={presentation === 'custom' ? 0 : backdrop?.dimOpacity}
815
- blurIntensity={presentation === 'custom' ? 0 : backdrop?.blurIntensity}
816
- style={sideStyles.backdrop}
817
- />
818
-
819
- <AnimatedStyledView
820
- accessibilityViewIsModal
821
- role={label || title ? 'dialog' : undefined}
822
- // A dialog keeps its children: flattened, its node would be an empty leaf beside them.
823
- collapsable={false}
824
- accessibilityLabel={label ?? title}
825
- aria-labelledby={title ? titleId : undefined}
826
- aria-describedby={description ? descriptionId : undefined}
827
- accessibilityHint={descriptionHint}
828
- testID={testID}
829
- onLayout={measurePanel}
830
- className={panelClassName}
831
- style={[
832
- presentation === 'custom' ? { position: 'absolute' } : sideStyles.panel,
833
- // `shadowColor` is a valid RN style prop on native (Dialog.tsx is the
834
- // native variant); the web `shadow*` deprecation is handled in Dialog.web.tsx.
835
- { backgroundColor: 'transparent', pointerEvents: 'auto', ...material.vars },
836
- panelGeometry,
837
- panelAnimatedStyle,
838
- panelStyle,
839
- style,
840
- { backgroundColor: surfaceMaterial === 'flat' ? paintFill : 'transparent' },
841
- ]}
842
- >
843
- {presentation !== 'custom' && surfaceMaterial !== 'flat' && (
844
- <SurfacePaint
845
- floating
846
- fill={paintFill}
847
- shape={{ curve: SURFACE_SHAPES.dialog.curve }}
848
- radius={panelRadius}
806
+ <Portal>
807
+ <SafeAreaInsetsContext.Provider value={windowInsets}>
808
+ <OverlayRoot
809
+ style={[sideStyles.root, containerStyle]}
810
+ className={containerClassName}
811
+ onRequestClose={handleBackdropPress}
812
+ modal
813
+ >
814
+ <Backdrop
815
+ {...backdrop}
816
+ testID={testID ? `${testID}-backdrop` : DIALOG_SHEET_BACKDROP_TESTID}
817
+ accessibilityLabel={
818
+ label ? dialogMessages.dismissNamed(label) : dialogMessages.dismissDialog
819
+ }
820
+ onPress={handleBackdropPress}
821
+ disabled={!dismissOnBackdrop}
822
+ progress={progress}
823
+ dimOpacity={presentation === 'custom' ? 0 : backdrop?.dimOpacity}
824
+ blurIntensity={presentation === 'custom' ? 0 : backdrop?.blurIntensity}
825
+ style={sideStyles.backdrop}
849
826
  />
850
- )}
851
- <SurfaceLevelProvider level={material.level} fill={surfaceFill}>
852
- {header ? (
853
- // Nav-header mode on a side drawer: a static titled bar (the drawer body
854
- // has no Dialog scroll offset to drive a collapse) over content inset
855
- // below the bar.
856
- <View style={{ flex: 1, minHeight: 0, borderRadius: panelRadius, overflow: 'hidden' }}>
857
- <DialogNavHeader
858
- Actions={HeaderActions}
859
- controller={headerController}
860
- header={header}
861
- onDismiss={onHeaderDismiss}
862
- collapse={false}
827
+
828
+ <AnimatedStyledView
829
+ accessibilityViewIsModal
830
+ role={label || title ? 'dialog' : undefined}
831
+ // A dialog keeps its children: flattened, its node would be an empty leaf beside them.
832
+ collapsable={false}
833
+ accessibilityLabel={label ?? title}
834
+ aria-labelledby={title ? titleId : undefined}
835
+ aria-describedby={description ? descriptionId : undefined}
836
+ accessibilityHint={descriptionHint}
837
+ testID={testID}
838
+ onLayout={measurePanel}
839
+ className={panelClassName}
840
+ style={[
841
+ presentation === 'custom' ? { position: 'absolute' } : sideStyles.panel,
842
+ // `shadowColor` is a valid RN style prop on native (Dialog.tsx is the
843
+ // native variant); the web `shadow*` deprecation is handled in Dialog.web.tsx.
844
+ { backgroundColor: 'transparent', pointerEvents: 'auto', ...material.vars },
845
+ panelGeometry,
846
+ panelAnimatedStyle,
847
+ panelStyle,
848
+ style,
849
+ { backgroundColor: surfaceMaterial === 'flat' ? paintFill : 'transparent' },
850
+ ]}
851
+ >
852
+ {presentation !== 'custom' && surfaceMaterial !== 'flat' && (
853
+ <SurfacePaint
854
+ floating
855
+ fill={paintFill}
856
+ shape={{ curve: SURFACE_SHAPES.dialog.curve }}
857
+ radius={panelRadius}
863
858
  />
864
- <DialogNavBarSpacer controller={headerController} header={header} />
865
- <DialogHeaderProvider controller={headerController}>
866
- {surfaceChildren}
867
- </DialogHeaderProvider>
868
- </View>
869
- ) : (
870
- <View
871
- style={{
872
- padding: contentPadding,
873
- flex: presentation === 'custom' || fullscreen || !scrollable ? 1 : undefined,
874
- minHeight: 0,
875
- borderRadius: panelRadius,
876
- overflow: presentation === 'custom' ? 'visible' : 'hidden',
877
- }}
878
- >
879
- {surfaceChildren}
880
- </View>
881
- )}
882
- {footer != null && <View style={{ flexShrink: 0 }}>{footer}</View>}
883
- </SurfaceLevelProvider>
884
- </AnimatedStyledView>
885
- </OverlayRoot>
859
+ )}
860
+ <SurfaceLevelProvider level={material.level} fill={surfaceFill}>
861
+ {header ? (
862
+ // Nav-header mode on a side drawer: a static titled bar (the drawer body
863
+ // has no Dialog scroll offset to drive a collapse) over content inset
864
+ // below the bar.
865
+ <View
866
+ style={{ flex: 1, minHeight: 0, borderRadius: panelRadius, overflow: 'hidden' }}
867
+ >
868
+ <DialogNavHeader
869
+ Actions={HeaderActions}
870
+ controller={headerController}
871
+ header={header}
872
+ onDismiss={onHeaderDismiss}
873
+ collapse={false}
874
+ />
875
+ <DialogNavBarSpacer controller={headerController} header={header} />
876
+ <DialogHeaderProvider controller={headerController}>
877
+ {surfaceChildren}
878
+ </DialogHeaderProvider>
879
+ </View>
880
+ ) : (
881
+ <View
882
+ style={{
883
+ padding: contentPadding,
884
+ flex: presentation === 'custom' || fullscreen || !scrollable ? 1 : undefined,
885
+ minHeight: 0,
886
+ borderRadius: panelRadius,
887
+ overflow: presentation === 'custom' ? 'visible' : 'hidden',
888
+ }}
889
+ >
890
+ {surfaceChildren}
891
+ </View>
892
+ )}
893
+ {footer != null && <View style={{ flexShrink: 0 }}>{footer}</View>}
894
+ </SurfaceLevelProvider>
895
+ </AnimatedStyledView>
896
+ </OverlayRoot>
897
+ </SafeAreaInsetsContext.Provider>
898
+ </Portal>
886
899
  );
887
900
  }
888
901
 
@@ -39,3 +39,6 @@ export function useDialogControl(): DialogControlProps {
39
39
  [id],
40
40
  );
41
41
  }
42
+
43
+ /** Deferred content begins its own reveal after the detail surface enters. */
44
+ export const DetailDialogEnteredContext = createContext(true);
@@ -1,9 +1,14 @@
1
+ export { DetailDialogSection, DetailDialogSectionGroup } from './DetailDialogSection';
2
+ export { DetailDialog } from './DetailDialog';
1
3
  export { Dialog } from './Dialog';
2
4
  export { useDialogContext, useDialogControl } from './context';
3
5
  export { useDialogHeader } from './DialogHeader';
4
6
  export { useDialogFrame } from './DialogMorph';
5
7
  export type { DialogFrame } from './DialogMorph';
6
8
  export type {
9
+ DetailDialogProps,
10
+ DetailDialogSectionProps,
11
+ DetailDialogSectionGroupProps,
7
12
  DialogAction,
8
13
  DialogActionColor,
9
14
  DialogContextProps,
@@ -3,12 +3,17 @@
3
3
  // Re-run `bun run generate:exports` (or any `bun run build`) after
4
4
  // changing that barrel or the set of web-forked subpaths.
5
5
 
6
+ export { DetailDialogSection, DetailDialogSectionGroup } from './DetailDialogSection';
7
+ export { DetailDialog } from './DetailDialog.web';
6
8
  export { Dialog } from './Dialog.web';
7
9
  export { useDialogContext, useDialogControl } from './context';
8
10
  export { useDialogHeader } from './DialogHeader';
9
11
  export { useDialogFrame } from './DialogMorph';
10
12
  export type { DialogFrame } from './DialogMorph';
11
13
  export type {
14
+ DetailDialogProps,
15
+ DetailDialogSectionProps,
16
+ DetailDialogSectionGroupProps,
12
17
  DialogAction,
13
18
  DialogActionColor,
14
19
  DialogContextProps,