@flamingo-stack/openframe-frontend-core 0.0.710 → 0.0.712

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 (534) hide show
  1. package/dist/chunk-2NASBO7O.js +1137 -0
  2. package/dist/{chunk-RQRX4YC3.cjs → chunk-2RKFMUNW.cjs} +46 -46
  3. package/dist/chunk-2Y7QZAB2.cjs +158 -0
  4. package/dist/chunk-34I6XI3N.js +136 -0
  5. package/dist/chunk-3K5ZLZE7.js +292 -0
  6. package/dist/chunk-3LU4UFPS.cjs +14 -0
  7. package/dist/{chunk-YBUT4AMG.cjs → chunk-3RKBJT6K.cjs} +8 -6
  8. package/dist/{chunk-LNW45N2C.js → chunk-3SEEGNRE.js} +35 -27
  9. package/dist/{chunk-L6Y6OOKG.cjs → chunk-3UAJLO5U.cjs} +41 -39
  10. package/dist/chunk-4HJRHEXD.cjs +1612 -0
  11. package/dist/{chunk-JPG7OHEG.js → chunk-4QFWGLZO.js} +1 -1
  12. package/dist/chunk-4R2L3DSA.js +14 -0
  13. package/dist/{chunk-36BCTE7D.js → chunk-4UYKNOZG.js} +12 -10
  14. package/dist/{chunk-DA5UDTLG.js → chunk-5SDELRH3.js} +5 -5
  15. package/dist/{chunk-CZSZSDD4.js → chunk-5Y72YQEK.js} +22 -113
  16. package/dist/{chunk-KUC673HM.js → chunk-6T3BTD6Q.js} +204 -982
  17. package/dist/{chunk-F57ECE2I.js → chunk-6YPTUHM7.js} +4 -4
  18. package/dist/{chunk-TDYIREDJ.js → chunk-7HNYYNKE.js} +28 -22
  19. package/dist/{chunk-2G7UYK35.cjs → chunk-7NSU5EQD.cjs} +57 -148
  20. package/dist/chunk-AAYNCJMW.cjs +48 -0
  21. package/dist/{chunk-FXJ3WWUB.js → chunk-ADBE7QF3.js} +5 -252
  22. package/dist/chunk-AECTRMGQ.cjs +334 -0
  23. package/dist/chunk-AGVXKD4K.js +334 -0
  24. package/dist/chunk-AL2GUHAJ.cjs +18 -0
  25. package/dist/{chunk-WMX26HB5.js → chunk-APJZBDQN.js} +12 -12
  26. package/dist/chunk-AUMKE74M.cjs +16 -0
  27. package/dist/chunk-B4NCVYEQ.cjs +292 -0
  28. package/dist/{chunk-2RNB5DTN.cjs → chunk-BXSRTBLU.cjs} +82 -54
  29. package/dist/chunk-CMGFZHCN.js +233 -0
  30. package/dist/chunk-CMZ3QTFQ.js +1207 -0
  31. package/dist/chunk-CPA2CKRZ.cjs +125 -0
  32. package/dist/{chunk-B73373AG.cjs → chunk-CSCJU6YC.cjs} +35 -33
  33. package/dist/chunk-CYUUHFXL.js +41 -0
  34. package/dist/chunk-DC4RTYWK.cjs +1122 -0
  35. package/dist/{chunk-6YKAT7NV.js → chunk-DDWFCWOE.js} +5 -7
  36. package/dist/{chunk-F5FF4DME.js → chunk-EFNKS5W4.js} +322 -428
  37. package/dist/{chunk-2KXTOP6G.cjs → chunk-EOKSKJSS.cjs} +25 -83
  38. package/dist/{chunk-6NTPY5QA.cjs → chunk-ETYLOZOB.cjs} +978 -2413
  39. package/dist/chunk-F5BPGWGT.cjs +931 -0
  40. package/dist/{chunk-4L6XCMOU.js → chunk-FCAVAEHF.js} +8277 -9990
  41. package/dist/chunk-FFT56TYB.cjs +401 -0
  42. package/dist/chunk-FYEJTF5Y.js +125 -0
  43. package/dist/chunk-G3GRYDMS.js +16 -0
  44. package/dist/{chunk-MR3A4MZV.js → chunk-G3OMVCID.js} +13 -7
  45. package/dist/chunk-G6OHIX5C.cjs +100 -0
  46. package/dist/{chunk-UDFRUKLC.cjs → chunk-GEDY7HQI.cjs} +2 -2
  47. package/dist/chunk-GQ7JJUIT.cjs +1207 -0
  48. package/dist/chunk-H3PKYE4N.js +18 -0
  49. package/dist/{chunk-CNWOMQQJ.js → chunk-H5R7U2D2.js} +206 -5
  50. package/dist/{chunk-SEXWHIMS.cjs → chunk-HETQETPV.cjs} +9648 -9680
  51. package/dist/{chunk-Y2GSOUCS.cjs → chunk-HWVUR735.cjs} +2 -2
  52. package/dist/chunk-II4QMH26.cjs +35 -0
  53. package/dist/chunk-ILNN6QRW.js +1612 -0
  54. package/dist/chunk-IYVFSLWJ.js +931 -0
  55. package/dist/{chunk-3AHTOSXJ.cjs → chunk-JGCFRTND.cjs} +23 -17
  56. package/dist/chunk-JHQ334WS.js +655 -0
  57. package/dist/{chunk-WCVZCGK5.cjs → chunk-JO5TLJPM.cjs} +129 -907
  58. package/dist/{chunk-JRU2CXLB.cjs → chunk-JVCAK4W3.cjs} +210 -9
  59. package/dist/chunk-KBJJQFYU.js +1122 -0
  60. package/dist/chunk-KEKCQENI.js +48 -0
  61. package/dist/chunk-KHXZFLIN.cjs +41 -0
  62. package/dist/chunk-KT3U3ZRP.cjs +1137 -0
  63. package/dist/chunk-L2VUINHN.js +35 -0
  64. package/dist/{chunk-P42V6N34.cjs → chunk-L6ZQGWCX.cjs} +4521 -6234
  65. package/dist/{chunk-PLYEKV3N.cjs → chunk-MA4Q5RBP.cjs} +6 -6
  66. package/dist/{chunk-SS5MBHDP.js → chunk-N67XG5GY.js} +10 -8
  67. package/dist/chunk-NPAQSMRY.js +2087 -0
  68. package/dist/{chunk-I3ST4PLM.js → chunk-NQWJAOHO.js} +6 -4
  69. package/dist/{chunk-QAOFMK2A.cjs → chunk-OBZJICEA.cjs} +8 -8
  70. package/dist/{chunk-6IW7TWPV.js → chunk-OPYODNV2.js} +3 -3
  71. package/dist/chunk-P3JMAMHP.js +401 -0
  72. package/dist/chunk-PPXR22YC.cjs +2087 -0
  73. package/dist/chunk-PSVSEN4J.cjs +655 -0
  74. package/dist/{chunk-4UM2ETLM.js → chunk-RBYVFPER.js} +74 -46
  75. package/dist/{chunk-PO33GZVY.js → chunk-ROBQ5TR7.js} +10549 -10581
  76. package/dist/{chunk-ZCLBYT2V.cjs → chunk-T3CLXR43.cjs} +114 -220
  77. package/dist/{chunk-FI6GMDO7.js → chunk-TTVOLEUS.js} +3605 -5040
  78. package/dist/{chunk-LM7TXMLU.cjs → chunk-ULWVKHSI.cjs} +8 -255
  79. package/dist/{chunk-6I4ZAFO2.cjs → chunk-UT3ODMBU.cjs} +15 -15
  80. package/dist/chunk-WANCBTUE.js +71 -0
  81. package/dist/{chunk-BIZNSF3U.cjs → chunk-WBNAEYTQ.cjs} +2 -51
  82. package/dist/chunk-WFPCCBOM.cjs +71 -0
  83. package/dist/chunk-WI6FHKD7.js +158 -0
  84. package/dist/chunk-WMNCVLES.js +100 -0
  85. package/dist/{chunk-UT4YHQZW.js → chunk-WSDT7LYL.js} +0 -49
  86. package/dist/chunk-WVOTC7HW.cjs +136 -0
  87. package/dist/{chunk-AOWDNSTM.cjs → chunk-WWJG4GVG.cjs} +93 -87
  88. package/dist/chunk-XXBLN4BP.cjs +233 -0
  89. package/dist/{chunk-4IBPRIQH.js → chunk-YBQQNDC7.js} +1 -1
  90. package/dist/{chunk-LFFB6EMB.js → chunk-YBS5QGON.js} +70 -128
  91. package/dist/{chunk-NSGXARGJ.cjs → chunk-Z5SWJW5Q.cjs} +125 -117
  92. package/dist/{chunk-OJLR5MEO.cjs → chunk-ZX7SCPLO.cjs} +6 -8
  93. package/dist/cloud-tenants-KZUZGD4A.cjs +117 -0
  94. package/dist/cloud-tenants-OGLVVQ7X.js +117 -0
  95. package/dist/components/case-studies/index.cjs +45 -29
  96. package/dist/components/case-studies/index.js +32 -16
  97. package/dist/components/chat/ask-prompts.d.ts +64 -0
  98. package/dist/components/chat/ask-prompts.d.ts.map +1 -0
  99. package/dist/components/chat/entity-cards/case-study-card.d.ts +6 -3
  100. package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
  101. package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts +4 -1
  102. package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts.map +1 -1
  103. package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
  104. package/dist/components/chat/index.cjs +27 -8
  105. package/dist/components/chat/index.d.ts +1 -0
  106. package/dist/components/chat/index.d.ts.map +1 -1
  107. package/dist/components/chat/index.js +57 -38
  108. package/dist/components/chat/quick-action-chip.d.ts +7 -3
  109. package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
  110. package/dist/components/chat/types/component.types.d.ts +4 -0
  111. package/dist/components/chat/types/component.types.d.ts.map +1 -1
  112. package/dist/components/chat/types/unified-chat-state.types.d.ts +12 -0
  113. package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
  114. package/dist/components/contact/index.cjs +29 -13
  115. package/dist/components/contact/index.js +28 -12
  116. package/dist/components/docs/index.cjs +33 -16
  117. package/dist/components/docs/index.js +33 -16
  118. package/dist/components/docs/use-scroll-spy.d.ts +23 -1
  119. package/dist/components/docs/use-scroll-spy.d.ts.map +1 -1
  120. package/dist/components/embeds/index.cjs +29 -13
  121. package/dist/components/embeds/index.js +28 -12
  122. package/dist/components/faq/faq-section.d.ts +8 -1
  123. package/dist/components/faq/faq-section.d.ts.map +1 -1
  124. package/dist/components/faq/index.cjs +30 -14
  125. package/dist/components/faq/index.js +29 -13
  126. package/dist/components/features/array-entry-manager.d.ts +5 -1
  127. package/dist/components/features/array-entry-manager.d.ts.map +1 -1
  128. package/dist/components/features/board/board.d.ts +2 -0
  129. package/dist/components/features/board/board.d.ts.map +1 -1
  130. package/dist/components/features/board/ticket-card.d.ts.map +1 -1
  131. package/dist/components/features/board/touch-board.d.ts +1 -1
  132. package/dist/components/features/board/touch-board.d.ts.map +1 -1
  133. package/dist/components/features/board/types.d.ts +3 -0
  134. package/dist/components/features/board/types.d.ts.map +1 -1
  135. package/dist/components/features/board/use-board-collapse.d.ts +6 -1
  136. package/dist/components/features/board/use-board-collapse.d.ts.map +1 -1
  137. package/dist/components/features/capability-explorer.d.ts +94 -0
  138. package/dist/components/features/capability-explorer.d.ts.map +1 -0
  139. package/dist/components/features/cloud-tenants/index.d.ts +14 -0
  140. package/dist/components/features/cloud-tenants/index.d.ts.map +1 -0
  141. package/dist/components/features/cloud-tenants/tenant-access-cell.d.ts +9 -0
  142. package/dist/components/features/cloud-tenants/tenant-access-cell.d.ts.map +1 -0
  143. package/dist/components/features/cloud-tenants/tenant-cell.d.ts +8 -0
  144. package/dist/components/features/cloud-tenants/tenant-cell.d.ts.map +1 -0
  145. package/dist/components/features/cloud-tenants/tenant-customer-cell.d.ts +9 -0
  146. package/dist/components/features/cloud-tenants/tenant-customer-cell.d.ts.map +1 -0
  147. package/dist/components/features/cloud-tenants/tenant-presentation.d.ts +42 -0
  148. package/dist/components/features/cloud-tenants/tenant-presentation.d.ts.map +1 -0
  149. package/dist/components/features/cloud-tenants/tenant-row.d.ts +22 -0
  150. package/dist/components/features/cloud-tenants/tenant-row.d.ts.map +1 -0
  151. package/dist/components/features/cloud-tenants/tenants-table-columns.d.ts +42 -0
  152. package/dist/components/features/cloud-tenants/tenants-table-columns.d.ts.map +1 -0
  153. package/dist/components/features/cloud-tenants/tenants-table-view.d.ts +26 -0
  154. package/dist/components/features/cloud-tenants/tenants-table-view.d.ts.map +1 -0
  155. package/dist/components/features/devices/device-last-online.d.ts +3 -0
  156. package/dist/components/features/devices/device-last-online.d.ts.map +1 -0
  157. package/dist/components/features/devices/device-name.d.ts +42 -0
  158. package/dist/components/features/devices/device-name.d.ts.map +1 -0
  159. package/dist/components/features/devices/device-selector/device-selection-mode-radio.d.ts +26 -0
  160. package/dist/components/features/devices/device-selector/device-selection-mode-radio.d.ts.map +1 -0
  161. package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts +25 -0
  162. package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts.map +1 -0
  163. package/dist/components/features/devices/device-selector/device-selector.d.ts +38 -0
  164. package/dist/components/features/devices/device-selector/device-selector.d.ts.map +1 -0
  165. package/dist/components/features/devices/device-selector/device-selector.types.d.ts +133 -0
  166. package/dist/components/features/devices/device-selector/device-selector.types.d.ts.map +1 -0
  167. package/dist/components/features/devices/device-selector/narrowing.d.ts +13 -0
  168. package/dist/components/features/devices/device-selector/narrowing.d.ts.map +1 -0
  169. package/dist/components/features/devices/device-selector/use-device-selector.d.ts +17 -0
  170. package/dist/components/features/devices/device-selector/use-device-selector.d.ts.map +1 -0
  171. package/dist/components/features/devices/device-status.d.ts +23 -0
  172. package/dist/components/features/devices/device-status.d.ts.map +1 -0
  173. package/dist/components/features/devices/device-statuses.d.ts +40 -0
  174. package/dist/components/features/devices/device-statuses.d.ts.map +1 -0
  175. package/dist/components/features/devices/device-tags-filter-button.d.ts +22 -0
  176. package/dist/components/features/devices/device-tags-filter-button.d.ts.map +1 -0
  177. package/dist/components/features/devices/device-type-icon.d.ts +11 -0
  178. package/dist/components/features/devices/device-type-icon.d.ts.map +1 -0
  179. package/dist/components/features/devices/device-type-tile.d.ts +9 -0
  180. package/dist/components/features/devices/device-type-tile.d.ts.map +1 -0
  181. package/dist/components/features/devices/devices-filter-toolbar.d.ts +46 -0
  182. package/dist/components/features/devices/devices-filter-toolbar.d.ts.map +1 -0
  183. package/dist/components/features/devices/devices-grid-filters.d.ts +25 -0
  184. package/dist/components/features/devices/devices-grid-filters.d.ts.map +1 -0
  185. package/dist/components/features/devices/devices-grid.d.ts +12 -0
  186. package/dist/components/features/devices/devices-grid.d.ts.map +1 -0
  187. package/dist/components/features/devices/devices-list.d.ts +131 -0
  188. package/dist/components/features/devices/devices-list.d.ts.map +1 -0
  189. package/dist/components/features/devices/devices-panel-header.d.ts +46 -0
  190. package/dist/components/features/devices/devices-panel-header.d.ts.map +1 -0
  191. package/dist/components/features/devices/devices-panel-view.d.ts +79 -0
  192. package/dist/components/features/devices/devices-panel-view.d.ts.map +1 -0
  193. package/dist/components/features/devices/devices-table-columns.d.ts +76 -0
  194. package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -0
  195. package/dist/components/features/devices/devices-view-config.d.ts +25 -0
  196. package/dist/components/features/devices/devices-view-config.d.ts.map +1 -0
  197. package/dist/components/features/devices/index.d.ts +24 -0
  198. package/dist/components/features/devices/index.d.ts.map +1 -0
  199. package/dist/components/features/devices/types.d.ts +68 -0
  200. package/dist/components/features/devices/types.d.ts.map +1 -0
  201. package/dist/components/features/devices/use-tag-filter-modal.d.ts +50 -0
  202. package/dist/components/features/devices/use-tag-filter-modal.d.ts.map +1 -0
  203. package/dist/components/features/index.cjs +227 -12
  204. package/dist/components/features/index.d.ts +7 -0
  205. package/dist/components/features/index.d.ts.map +1 -1
  206. package/dist/components/features/index.js +266 -51
  207. package/dist/components/features/knowledge-base/index.d.ts +7 -0
  208. package/dist/components/features/knowledge-base/index.d.ts.map +1 -0
  209. package/dist/components/features/knowledge-base/knowledge-base-article-view.d.ts +44 -0
  210. package/dist/components/features/knowledge-base/knowledge-base-article-view.d.ts.map +1 -0
  211. package/dist/components/features/knowledge-base/knowledge-base-item-icon.d.ts +13 -0
  212. package/dist/components/features/knowledge-base/knowledge-base-item-icon.d.ts.map +1 -0
  213. package/dist/components/features/knowledge-base/knowledge-base-status.d.ts +8 -0
  214. package/dist/components/features/knowledge-base/knowledge-base-status.d.ts.map +1 -0
  215. package/dist/components/features/knowledge-base/knowledge-base-table.d.ts +52 -0
  216. package/dist/components/features/knowledge-base/knowledge-base-table.d.ts.map +1 -0
  217. package/dist/components/features/logs/index.d.ts +12 -0
  218. package/dist/components/features/logs/index.d.ts.map +1 -0
  219. package/dist/components/features/logs/log-drawer.d.ts +29 -0
  220. package/dist/components/features/logs/log-drawer.d.ts.map +1 -0
  221. package/dist/components/features/logs/log-source-labels.d.ts +11 -0
  222. package/dist/components/features/logs/log-source-labels.d.ts.map +1 -0
  223. package/dist/components/features/logs/logs-page-view.d.ts +32 -0
  224. package/dist/components/features/logs/logs-page-view.d.ts.map +1 -0
  225. package/dist/components/features/logs/logs-table-columns.d.ts +15 -0
  226. package/dist/components/features/logs/logs-table-columns.d.ts.map +1 -0
  227. package/dist/components/features/logs/logs-table-view.d.ts +64 -0
  228. package/dist/components/features/logs/logs-table-view.d.ts.map +1 -0
  229. package/dist/components/features/logs/types.d.ts +52 -0
  230. package/dist/components/features/logs/types.d.ts.map +1 -0
  231. package/dist/components/features/policies/compute-policy-summary.d.ts +37 -0
  232. package/dist/components/features/policies/compute-policy-summary.d.ts.map +1 -0
  233. package/dist/components/features/policies/index.d.ts +8 -0
  234. package/dist/components/features/policies/index.d.ts.map +1 -0
  235. package/dist/components/features/policies/policies-table.d.ts +34 -0
  236. package/dist/components/features/policies/policies-table.d.ts.map +1 -0
  237. package/dist/components/features/policies/policy-summary-cards.d.ts +17 -0
  238. package/dist/components/features/policies/policy-summary-cards.d.ts.map +1 -0
  239. package/dist/components/features/policies/policy-table-row.d.ts +37 -0
  240. package/dist/components/features/policies/policy-table-row.d.ts.map +1 -0
  241. package/dist/components/features/remote-session/index.d.ts +8 -0
  242. package/dist/components/features/remote-session/index.d.ts.map +1 -1
  243. package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts +21 -0
  244. package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts.map +1 -0
  245. package/dist/components/features/remote-session/remote-desktop-chat-panel.d.ts +31 -0
  246. package/dist/components/features/remote-session/remote-desktop-chat-panel.d.ts.map +1 -0
  247. package/dist/components/features/remote-session/remote-desktop-fullscreen-toolbar.d.ts +21 -0
  248. package/dist/components/features/remote-session/remote-desktop-fullscreen-toolbar.d.ts.map +1 -0
  249. package/dist/components/features/remote-session/remote-desktop-view.d.ts +50 -0
  250. package/dist/components/features/remote-session/remote-desktop-view.d.ts.map +1 -0
  251. package/dist/components/features/software/index.d.ts +8 -0
  252. package/dist/components/features/software/index.d.ts.map +1 -0
  253. package/dist/components/features/software/package-managers.d.ts +30 -0
  254. package/dist/components/features/software/package-managers.d.ts.map +1 -0
  255. package/dist/components/features/software/package-search-field-placeholder.d.ts +7 -0
  256. package/dist/components/features/software/package-search-field-placeholder.d.ts.map +1 -0
  257. package/dist/components/features/software/schedule-fields.d.ts +34 -0
  258. package/dist/components/features/software/schedule-fields.d.ts.map +1 -0
  259. package/dist/components/features/software/software-action-copy.d.ts +25 -0
  260. package/dist/components/features/software/software-action-copy.d.ts.map +1 -0
  261. package/dist/components/features/software/software-action-form.d.ts +71 -0
  262. package/dist/components/features/software/software-action-form.d.ts.map +1 -0
  263. package/dist/components/features/software/software-row-fields.d.ts +23 -0
  264. package/dist/components/features/software/software-row-fields.d.ts.map +1 -0
  265. package/dist/components/features/software/software-row.d.ts +18 -0
  266. package/dist/components/features/software/software-row.d.ts.map +1 -0
  267. package/dist/components/features/sortable-list/index.d.ts +1 -0
  268. package/dist/components/features/sortable-list/index.d.ts.map +1 -1
  269. package/dist/components/features/sortable-list/sortable-drag-handle.d.ts +21 -0
  270. package/dist/components/features/sortable-list/sortable-drag-handle.d.ts.map +1 -0
  271. package/dist/components/help-center-pages/index.cjs +133 -114
  272. package/dist/components/help-center-pages/index.js +58 -39
  273. package/dist/components/index.cjs +320 -82
  274. package/dist/components/index.js +451 -213
  275. package/dist/components/layout/page-heading.d.ts +12 -3
  276. package/dist/components/layout/page-heading.d.ts.map +1 -1
  277. package/dist/components/meeting-scheduler/index.cjs +120 -98
  278. package/dist/components/meeting-scheduler/index.js +50 -28
  279. package/dist/components/navigation/index.cjs +36 -17
  280. package/dist/components/navigation/index.d.ts +3 -0
  281. package/dist/components/navigation/index.d.ts.map +1 -1
  282. package/dist/components/navigation/index.js +36 -17
  283. package/dist/components/navigation/mingo-ai-button.d.ts +23 -10
  284. package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
  285. package/dist/components/navigation/sticky-section-nav.d.ts +14 -1
  286. package/dist/components/navigation/sticky-section-nav.d.ts.map +1 -1
  287. package/dist/components/onboarding-guides/index.cjs +32 -16
  288. package/dist/components/onboarding-guides/index.js +31 -15
  289. package/dist/components/product-demo/cast.d.ts +58 -0
  290. package/dist/components/product-demo/cast.d.ts.map +1 -0
  291. package/dist/components/product-demo/fixtures/cloud-tenants.d.ts +10 -0
  292. package/dist/components/product-demo/fixtures/cloud-tenants.d.ts.map +1 -0
  293. package/dist/components/product-demo/fixtures/devices.d.ts +14 -0
  294. package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -0
  295. package/dist/components/product-demo/fixtures/knowledge.d.ts +14 -0
  296. package/dist/components/product-demo/fixtures/knowledge.d.ts.map +1 -0
  297. package/dist/components/product-demo/fixtures/logs.d.ts +15 -0
  298. package/dist/components/product-demo/fixtures/logs.d.ts.map +1 -0
  299. package/dist/components/product-demo/fixtures/policies.d.ts +13 -0
  300. package/dist/components/product-demo/fixtures/policies.d.ts.map +1 -0
  301. package/dist/components/product-demo/fixtures/remote-session.d.ts +20 -0
  302. package/dist/components/product-demo/fixtures/remote-session.d.ts.map +1 -0
  303. package/dist/components/product-demo/fixtures/shared.d.ts +156 -0
  304. package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -0
  305. package/dist/components/product-demo/fixtures/software-update.d.ts +19 -0
  306. package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -0
  307. package/dist/components/product-demo/fixtures/tickets-board.d.ts +8 -0
  308. package/dist/components/product-demo/fixtures/tickets-board.d.ts.map +1 -0
  309. package/dist/components/product-demo/index.cjs +112 -0
  310. package/dist/components/product-demo/index.d.ts +6 -0
  311. package/dist/components/product-demo/index.d.ts.map +1 -0
  312. package/dist/components/product-demo/index.js +112 -0
  313. package/dist/components/product-demo/product-screen.d.ts +22 -0
  314. package/dist/components/product-demo/product-screen.d.ts.map +1 -0
  315. package/dist/components/product-demo/registry.d.ts +13 -0
  316. package/dist/components/product-demo/registry.d.ts.map +1 -0
  317. package/dist/components/product-demo/screen-keys.cjs +25 -0
  318. package/dist/components/product-demo/screen-keys.d.ts +27 -0
  319. package/dist/components/product-demo/screen-keys.d.ts.map +1 -0
  320. package/dist/components/product-demo/screen-keys.js +20 -0
  321. package/dist/components/product-demo/screens/cloud-tenants.d.ts +8 -0
  322. package/dist/components/product-demo/screens/cloud-tenants.d.ts.map +1 -0
  323. package/dist/components/product-demo/screens/devices.d.ts +10 -0
  324. package/dist/components/product-demo/screens/devices.d.ts.map +1 -0
  325. package/dist/components/product-demo/screens/knowledge.d.ts +9 -0
  326. package/dist/components/product-demo/screens/knowledge.d.ts.map +1 -0
  327. package/dist/components/product-demo/screens/logs.d.ts +4 -0
  328. package/dist/components/product-demo/screens/logs.d.ts.map +1 -0
  329. package/dist/components/product-demo/screens/policies.d.ts +8 -0
  330. package/dist/components/product-demo/screens/policies.d.ts.map +1 -0
  331. package/dist/components/product-demo/screens/remote-desktop-picture.d.ts +11 -0
  332. package/dist/components/product-demo/screens/remote-desktop-picture.d.ts.map +1 -0
  333. package/dist/components/product-demo/screens/remote-session.d.ts +8 -0
  334. package/dist/components/product-demo/screens/remote-session.d.ts.map +1 -0
  335. package/dist/components/product-demo/screens/software-update.d.ts +12 -0
  336. package/dist/components/product-demo/screens/software-update.d.ts.map +1 -0
  337. package/dist/components/product-demo/screens/tickets-board.d.ts +4 -0
  338. package/dist/components/product-demo/screens/tickets-board.d.ts.map +1 -0
  339. package/dist/components/product-demo/types.d.ts +9 -0
  340. package/dist/components/product-demo/types.d.ts.map +1 -0
  341. package/dist/components/related-content/index.cjs +14 -8
  342. package/dist/components/related-content/index.js +13 -7
  343. package/dist/components/tickets/index.cjs +36 -20
  344. package/dist/components/tickets/index.js +35 -19
  345. package/dist/components/ui/file-manager/index.cjs +38 -34
  346. package/dist/components/ui/file-manager/index.js +8 -4
  347. package/dist/components/ui/index.cjs +57 -17
  348. package/dist/components/ui/index.d.ts +1 -0
  349. package/dist/components/ui/index.d.ts.map +1 -1
  350. package/dist/components/ui/index.js +141 -101
  351. package/dist/components/ui/product-screen-frame.d.ts +45 -0
  352. package/dist/components/ui/product-screen-frame.d.ts.map +1 -0
  353. package/dist/components/ui/radio-group.d.ts +5 -0
  354. package/dist/components/ui/radio-group.d.ts.map +1 -1
  355. package/dist/components/ui/snap-carousel.d.ts +11 -1
  356. package/dist/components/ui/snap-carousel.d.ts.map +1 -1
  357. package/dist/components/ui/tag.d.ts +1 -1
  358. package/dist/components/ui/tag.d.ts.map +1 -1
  359. package/dist/devices-LBMG42K6.js +81 -0
  360. package/dist/devices-YGYJIXQY.cjs +81 -0
  361. package/dist/hooks/index.cjs +17 -8
  362. package/dist/hooks/index.js +32 -23
  363. package/dist/hooks/ui/index.d.ts +1 -0
  364. package/dist/hooks/ui/index.d.ts.map +1 -1
  365. package/dist/hooks/ui/use-header-height.d.ts +12 -0
  366. package/dist/hooks/ui/use-header-height.d.ts.map +1 -1
  367. package/dist/hooks/ui/use-sticky-toolbar.d.ts +29 -0
  368. package/dist/hooks/ui/use-sticky-toolbar.d.ts.map +1 -0
  369. package/dist/hooks/use-location-hash.d.ts +2 -2
  370. package/dist/hooks/use-location-hash.d.ts.map +1 -1
  371. package/dist/hooks/use-scroll-to-hash.d.ts +7 -0
  372. package/dist/hooks/use-scroll-to-hash.d.ts.map +1 -1
  373. package/dist/index.cjs +276 -25
  374. package/dist/index.js +729 -478
  375. package/dist/knowledge-H5BIWJVI.js +108 -0
  376. package/dist/knowledge-KTCVJIWN.cjs +108 -0
  377. package/dist/logs-DB5Z7M5Q.js +216 -0
  378. package/dist/logs-RVCC2UQW.cjs +216 -0
  379. package/dist/policies-EWUULFBR.js +121 -0
  380. package/dist/policies-HV4IQCBV.cjs +121 -0
  381. package/dist/remote-session-GSGZOFDX.js +196 -0
  382. package/dist/remote-session-R6VAFESR.cjs +196 -0
  383. package/dist/software-update-6PXKRKBT.js +179 -0
  384. package/dist/software-update-D4OVSWSG.cjs +179 -0
  385. package/dist/tickets-board-BHLPAVNJ.cjs +137 -0
  386. package/dist/tickets-board-PYDNELSK.js +137 -0
  387. package/dist/types/case-study.d.ts +15 -1
  388. package/dist/types/case-study.d.ts.map +1 -1
  389. package/dist/utils/date-utils.d.ts +5 -0
  390. package/dist/utils/date-utils.d.ts.map +1 -1
  391. package/dist/utils/index.cjs +45 -2
  392. package/dist/utils/index.d.ts +2 -1
  393. package/dist/utils/index.d.ts.map +1 -1
  394. package/dist/utils/index.js +41 -3
  395. package/dist/utils/open-in-new-tab.d.ts +7 -0
  396. package/dist/utils/open-in-new-tab.d.ts.map +1 -0
  397. package/dist/utils/same-page-hash-nav.d.ts +31 -0
  398. package/dist/utils/same-page-hash-nav.d.ts.map +1 -1
  399. package/dist/utils/scroll-into-view.d.ts +14 -1
  400. package/dist/utils/scroll-into-view.d.ts.map +1 -1
  401. package/package.json +13 -1
  402. package/src/components/chat/ask-prompts.tsx +226 -0
  403. package/src/components/chat/embeddable-chat.tsx +38 -2
  404. package/src/components/chat/entity-cards/case-study-card.tsx +122 -46
  405. package/src/components/chat/hooks/use-chat-dialog-manager.ts +22 -4
  406. package/src/components/chat/hooks/use-unified-chat.ts +1 -0
  407. package/src/components/chat/index.ts +1 -0
  408. package/src/components/chat/quick-action-chip.tsx +33 -9
  409. package/src/components/chat/types/component.types.ts +4 -0
  410. package/src/components/chat/types/unified-chat-state.types.ts +13 -0
  411. package/src/components/docs/use-scroll-spy.ts +93 -18
  412. package/src/components/faq/faq-section.tsx +82 -43
  413. package/src/components/features/array-entry-manager.tsx +10 -1
  414. package/src/components/features/board/board.tsx +4 -1
  415. package/src/components/features/board/ticket-card.tsx +11 -1
  416. package/src/components/features/board/touch-board.tsx +2 -1
  417. package/src/components/features/board/types.ts +3 -0
  418. package/src/components/features/board/use-board-collapse.ts +7 -2
  419. package/src/components/features/capability-explorer.tsx +412 -0
  420. package/src/components/features/cloud-tenants/index.ts +28 -0
  421. package/src/components/features/cloud-tenants/tenant-access-cell.tsx +24 -0
  422. package/src/components/features/cloud-tenants/tenant-cell.tsx +26 -0
  423. package/src/components/features/cloud-tenants/tenant-customer-cell.tsx +27 -0
  424. package/src/components/features/cloud-tenants/tenant-presentation.ts +111 -0
  425. package/src/components/features/cloud-tenants/tenant-row.ts +21 -0
  426. package/src/components/features/cloud-tenants/tenants-table-columns.ts +30 -0
  427. package/src/components/features/cloud-tenants/tenants-table-view.tsx +142 -0
  428. package/src/components/features/devices/device-last-online.ts +6 -0
  429. package/src/components/features/devices/device-name.ts +51 -0
  430. package/src/components/features/devices/device-selector/device-selection-mode-radio.tsx +107 -0
  431. package/src/components/features/devices/device-selector/device-selector-skeleton.tsx +32 -0
  432. package/src/components/features/devices/device-selector/device-selector.tsx +799 -0
  433. package/src/components/features/devices/device-selector/device-selector.types.ts +138 -0
  434. package/src/components/features/devices/device-selector/narrowing.ts +33 -0
  435. package/src/components/features/devices/device-selector/use-device-selector.ts +51 -0
  436. package/src/components/features/devices/device-status.ts +102 -0
  437. package/src/components/features/devices/device-statuses.ts +88 -0
  438. package/src/components/features/devices/device-tags-filter-button.tsx +49 -0
  439. package/src/components/features/devices/device-type-icon.tsx +29 -0
  440. package/src/components/features/devices/device-type-tile.tsx +17 -0
  441. package/src/components/features/devices/devices-filter-toolbar.tsx +114 -0
  442. package/src/components/features/devices/devices-grid-filters.tsx +99 -0
  443. package/src/components/features/devices/devices-grid.tsx +86 -0
  444. package/src/components/features/devices/devices-list.tsx +357 -0
  445. package/src/components/features/devices/devices-panel-header.tsx +97 -0
  446. package/src/components/features/devices/devices-panel-view.tsx +261 -0
  447. package/src/components/features/devices/devices-table-columns.tsx +356 -0
  448. package/src/components/features/devices/devices-view-config.tsx +38 -0
  449. package/src/components/features/devices/index.ts +89 -0
  450. package/src/components/features/devices/types.ts +74 -0
  451. package/src/components/features/devices/use-tag-filter-modal.ts +109 -0
  452. package/src/components/features/index.ts +9 -0
  453. package/src/components/features/knowledge-base/index.ts +19 -0
  454. package/src/components/features/knowledge-base/knowledge-base-article-view.tsx +134 -0
  455. package/src/components/features/knowledge-base/knowledge-base-item-icon.ts +14 -0
  456. package/src/components/features/knowledge-base/knowledge-base-status.ts +12 -0
  457. package/src/components/features/knowledge-base/knowledge-base-table.tsx +180 -0
  458. package/src/components/features/logs/index.ts +20 -0
  459. package/src/components/features/logs/log-drawer.tsx +138 -0
  460. package/src/components/features/logs/log-source-labels.ts +25 -0
  461. package/src/components/features/logs/logs-page-view.tsx +100 -0
  462. package/src/components/features/logs/logs-table-columns.ts +16 -0
  463. package/src/components/features/logs/logs-table-view.tsx +509 -0
  464. package/src/components/features/logs/types.ts +71 -0
  465. package/src/components/features/policies/compute-policy-summary.ts +115 -0
  466. package/src/components/features/policies/index.ts +14 -0
  467. package/src/components/features/policies/policies-table.tsx +235 -0
  468. package/src/components/features/policies/policy-summary-cards.tsx +69 -0
  469. package/src/components/features/policies/policy-table-row.ts +37 -0
  470. package/src/components/features/remote-session/index.ts +8 -0
  471. package/src/components/features/remote-session/remote-desktop-chat-message-row.tsx +56 -0
  472. package/src/components/features/remote-session/remote-desktop-chat-panel.tsx +102 -0
  473. package/src/components/features/remote-session/remote-desktop-fullscreen-toolbar.tsx +119 -0
  474. package/src/components/features/remote-session/remote-desktop-view.tsx +209 -0
  475. package/src/components/features/software/index.ts +39 -0
  476. package/src/components/features/software/package-managers.ts +54 -0
  477. package/src/components/features/software/package-search-field-placeholder.tsx +23 -0
  478. package/src/components/features/software/schedule-fields.tsx +105 -0
  479. package/src/components/features/software/software-action-copy.ts +70 -0
  480. package/src/components/features/software/software-action-form.tsx +199 -0
  481. package/src/components/features/software/software-row-fields.tsx +105 -0
  482. package/src/components/features/software/software-row.ts +22 -0
  483. package/src/components/features/sortable-list/index.ts +1 -0
  484. package/src/components/features/sortable-list/sortable-drag-handle.tsx +41 -0
  485. package/src/components/layout/page-heading.tsx +23 -6
  486. package/src/components/navigation/index.ts +5 -0
  487. package/src/components/navigation/mingo-ai-button.tsx +37 -13
  488. package/src/components/navigation/sticky-section-nav.tsx +99 -1
  489. package/src/components/product-demo/cast.tsx +78 -0
  490. package/src/components/product-demo/fixtures/cloud-tenants.ts +63 -0
  491. package/src/components/product-demo/fixtures/devices.ts +87 -0
  492. package/src/components/product-demo/fixtures/knowledge.ts +48 -0
  493. package/src/components/product-demo/fixtures/logs.ts +103 -0
  494. package/src/components/product-demo/fixtures/policies.ts +77 -0
  495. package/src/components/product-demo/fixtures/remote-session.ts +65 -0
  496. package/src/components/product-demo/fixtures/shared.ts +53 -0
  497. package/src/components/product-demo/fixtures/software-update.ts +63 -0
  498. package/src/components/product-demo/fixtures/tickets-board.ts +100 -0
  499. package/src/components/product-demo/index.ts +7 -0
  500. package/src/components/product-demo/product-screen.tsx +94 -0
  501. package/src/components/product-demo/registry.ts +20 -0
  502. package/src/components/product-demo/screen-keys.ts +31 -0
  503. package/src/components/product-demo/screens/cloud-tenants.tsx +23 -0
  504. package/src/components/product-demo/screens/devices.tsx +41 -0
  505. package/src/components/product-demo/screens/knowledge.tsx +27 -0
  506. package/src/components/product-demo/screens/logs.tsx +113 -0
  507. package/src/components/product-demo/screens/policies.tsx +29 -0
  508. package/src/components/product-demo/screens/remote-desktop-picture.tsx +118 -0
  509. package/src/components/product-demo/screens/remote-session.tsx +46 -0
  510. package/src/components/product-demo/screens/software-update.tsx +97 -0
  511. package/src/components/product-demo/screens/tickets-board.tsx +28 -0
  512. package/src/components/product-demo/types.ts +10 -0
  513. package/src/components/ui/index.ts +1 -0
  514. package/src/components/ui/product-screen-frame.tsx +136 -0
  515. package/src/components/ui/radio-group.tsx +16 -4
  516. package/src/components/ui/snap-carousel.tsx +26 -1
  517. package/src/components/ui/tag.tsx +5 -0
  518. package/src/hooks/ui/index.ts +1 -0
  519. package/src/hooks/ui/use-header-height.ts +51 -2
  520. package/src/hooks/ui/use-sticky-toolbar.ts +60 -0
  521. package/src/hooks/use-location-hash.ts +9 -5
  522. package/src/hooks/use-scroll-to-hash.ts +9 -1
  523. package/src/types/case-study.ts +21 -1
  524. package/src/utils/date-utils.ts +8 -1
  525. package/src/utils/index.ts +5 -0
  526. package/src/utils/open-in-new-tab.ts +12 -0
  527. package/src/utils/same-page-hash-nav.ts +57 -0
  528. package/src/utils/scroll-into-view.ts +21 -5
  529. package/dist/chunk-BM5MVGH3.cjs +0 -499
  530. package/dist/chunk-CUME3VTQ.js +0 -144
  531. package/dist/chunk-CZ7Y7UG4.js +0 -732
  532. package/dist/chunk-FLKJYMVB.js +0 -499
  533. package/dist/chunk-OF6GEI5A.cjs +0 -144
  534. package/dist/chunk-UVTD52MD.cjs +0 -732
@@ -0,0 +1,401 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
2
+
3
+
4
+
5
+ var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
6
+
7
+
8
+
9
+
10
+ var _chunk2Y7QZAB2cjs = require('./chunk-2Y7QZAB2.cjs');
11
+
12
+
13
+ var _chunkDFQYAYBHcjs = require('./chunk-DFQYAYBH.cjs');
14
+
15
+
16
+ var _chunkLLRGR4I5cjs = require('./chunk-LLRGR4I5.cjs');
17
+
18
+
19
+
20
+
21
+ var _chunkCPA2CKRZcjs = require('./chunk-CPA2CKRZ.cjs');
22
+
23
+
24
+ var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
25
+
26
+ // src/components/ui/actions-menu.tsx
27
+ var _reactdropdownmenu = require('@radix-ui/react-dropdown-menu'); var DropdownMenuPrimitive = _interopRequireWildcard(_reactdropdownmenu);
28
+ var _reactusecontrollablestate = require('@radix-ui/react-use-controllable-state');
29
+ var _lucidereact = require('lucide-react');
30
+ var _react = require('react'); var _react2 = _interopRequireDefault(_react);
31
+
32
+ // src/components/ui/actions-menu-header-context.ts
33
+
34
+ var ActionsMenuHeaderContext = _react.createContext.call(void 0, false);
35
+ function useIsInActionsMenuHeader() {
36
+ return _react.useContext.call(void 0, ActionsMenuHeaderContext);
37
+ }
38
+
39
+ // src/components/ui/overlay-open-registry.tsx
40
+
41
+ var _jsxruntime = require('react/jsx-runtime');
42
+ var OverlayOpenRegistryContext = _react.createContext.call(void 0, null);
43
+ function useOverlayOpenRegistry() {
44
+ return _react.useContext.call(void 0, OverlayOpenRegistryContext);
45
+ }
46
+ function useReportOverlayOpen(open) {
47
+ const registry = useOverlayOpenRegistry();
48
+ _react.useEffect.call(void 0, () => {
49
+ if (!open || !registry) return void 0;
50
+ return registry.acquire();
51
+ }, [open, registry]);
52
+ }
53
+ function OverlayOpenRegistryProvider({ onOpenChange, children }) {
54
+ const countRef = _react.useRef.call(void 0, 0);
55
+ const onOpenChangeRef = _react.useRef.call(void 0, onOpenChange);
56
+ _react.useEffect.call(void 0, () => {
57
+ onOpenChangeRef.current = onOpenChange;
58
+ });
59
+ const registry = _react.useMemo.call(void 0,
60
+ () => ({
61
+ acquire: () => {
62
+ countRef.current += 1;
63
+ if (countRef.current === 1) _optionalChain([onOpenChangeRef, 'access', _ => _.current, 'optionalCall', _2 => _2(true)]);
64
+ let released = false;
65
+ return () => {
66
+ if (released) return;
67
+ released = true;
68
+ countRef.current -= 1;
69
+ if (countRef.current === 0) _optionalChain([onOpenChangeRef, 'access', _3 => _3.current, 'optionalCall', _4 => _4(false)]);
70
+ };
71
+ }
72
+ }),
73
+ []
74
+ );
75
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverlayOpenRegistryContext.Provider, { value: registry, children });
76
+ }
77
+
78
+ // src/components/ui/actions-menu.tsx
79
+
80
+ var SCROLL_DISMISS_THRESHOLD_PX = 12;
81
+ var ROW_CLASSES = "flex flex-1 min-w-0 items-center gap-[var(--spacing-system-xsf)] p-[var(--spacing-system-s)] cursor-pointer transition-colors bg-ods-bg outline-none";
82
+ var WRAPPER_CLASSES = "relative flex items-stretch border-b border-ods-border last:border-b-0";
83
+ var SECONDARY_ACTION_CLASSES = "flex p-[var(--spacing-system-s)] shrink-0 items-center justify-center self-stretch border-l border-ods-border transition-colors hover:bg-ods-bg-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus [&_svg]:w-4 [&_svg]:h-4 md:[&_svg]:w-6 md:[&_svg]:h-6";
84
+ var SecondaryAction = ({ action }) => {
85
+ const handleClick = _react.useCallback.call(void 0,
86
+ (e) => {
87
+ e.stopPropagation();
88
+ if (action.disabled) {
89
+ e.preventDefault();
90
+ return;
91
+ }
92
+ _optionalChain([action, 'access', _5 => _5.onClick, 'optionalCall', _6 => _6()]);
93
+ },
94
+ [action]
95
+ );
96
+ const classes = _chunk3ATAYP36cjs.cn.call(void 0,
97
+ SECONDARY_ACTION_CLASSES,
98
+ action.openInNewTab && "max-md:hidden",
99
+ action.disabled && "pointer-events-none cursor-not-allowed opacity-60"
100
+ );
101
+ if (action.href) {
102
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
103
+ _chunkLLRGR4I5cjs.next_link_default,
104
+ {
105
+ href: action.href,
106
+ prefetch: false,
107
+ target: action.openInNewTab ? "_blank" : void 0,
108
+ rel: action.openInNewTab ? "noopener noreferrer" : void 0,
109
+ "aria-label": action["aria-label"],
110
+ "aria-disabled": action.disabled || void 0,
111
+ tabIndex: action.disabled ? -1 : void 0,
112
+ className: classes,
113
+ onClick: handleClick,
114
+ children: action.icon
115
+ }
116
+ );
117
+ }
118
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
119
+ "button",
120
+ {
121
+ type: "button",
122
+ "aria-label": action["aria-label"],
123
+ disabled: action.disabled,
124
+ className: classes,
125
+ onClick: handleClick,
126
+ children: action.icon
127
+ }
128
+ );
129
+ };
130
+ var MenuItem = ({ item, onItemClick }) => {
131
+ const portalContainer = _chunkCPA2CKRZcjs.usePortalContainer.call(void 0, );
132
+ const collisionBoundary = _chunkCPA2CKRZcjs.useCollisionBoundary.call(void 0, );
133
+ const activate = _react.useCallback.call(void 0, () => {
134
+ if (item.disabled) return;
135
+ if (item.type === "checkbox") {
136
+ _optionalChain([item, 'access', _7 => _7.onClick, 'optionalCall', _8 => _8()]);
137
+ _optionalChain([onItemClick, 'optionalCall', _9 => _9(item)]);
138
+ return;
139
+ }
140
+ if (item.type === "submenu") return;
141
+ _optionalChain([item, 'access', _10 => _10.onClick, 'optionalCall', _11 => _11()]);
142
+ _optionalChain([onItemClick, 'optionalCall', _12 => _12(item)]);
143
+ }, [item, onItemClick]);
144
+ const handleClick = _react.useCallback.call(void 0,
145
+ (e) => {
146
+ e.stopPropagation();
147
+ e.preventDefault();
148
+ activate();
149
+ },
150
+ [activate]
151
+ );
152
+ const handleKeyDown = _react.useCallback.call(void 0,
153
+ (e) => {
154
+ if (e.key !== "Enter" && e.key !== " ") return;
155
+ e.preventDefault();
156
+ e.stopPropagation();
157
+ activate();
158
+ },
159
+ [activate]
160
+ );
161
+ const handleLinkClick = _react.useCallback.call(void 0,
162
+ (e) => {
163
+ if (item.disabled) {
164
+ e.preventDefault();
165
+ e.stopPropagation();
166
+ return;
167
+ }
168
+ _optionalChain([item, 'access', _13 => _13.onClick, 'optionalCall', _14 => _14()]);
169
+ _optionalChain([onItemClick, 'optionalCall', _15 => _15(item)]);
170
+ },
171
+ [item, onItemClick]
172
+ );
173
+ if (item.type === "separator") {
174
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-1 w-full bg-ods-divider" });
175
+ }
176
+ const itemClasses = _chunk3ATAYP36cjs.cn.call(void 0,
177
+ ROW_CLASSES,
178
+ item.disabled ? "pointer-events-none cursor-not-allowed text-ods-text-secondary opacity-60" : "text-ods-text-primary hover:bg-ods-bg-hover"
179
+ );
180
+ const subTriggerClasses = _chunk3ATAYP36cjs.cn.call(void 0, itemClasses, "focus:bg-ods-bg-hover data-[state=open]:bg-ods-bg-active");
181
+ const renderAsLink = !!item.href && item.type !== "submenu" && item.type !== "checkbox";
182
+ const rowContent = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
183
+ item.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
184
+ "div",
185
+ {
186
+ className: _chunk3ATAYP36cjs.cn.call(void 0,
187
+ "flex h-4 w-4 flex-shrink-0 items-center justify-center md:h-6 md:w-6",
188
+ item.danger && "text-ods-error",
189
+ item.disabled && "opacity-50"
190
+ ),
191
+ children: item.icon
192
+ }
193
+ ),
194
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
195
+ "span",
196
+ {
197
+ className: _chunk3ATAYP36cjs.cn.call(void 0,
198
+ "flex-1 font-medium leading-6 text-h4",
199
+ item.disabled ? "text-ods-text-secondary" : item.danger ? "text-ods-error" : "text-ods-text-primary"
200
+ ),
201
+ children: item.label
202
+ }
203
+ ),
204
+ item.type === "checkbox" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
205
+ "div",
206
+ {
207
+ className: _chunk3ATAYP36cjs.cn.call(void 0,
208
+ "flex h-4 w-4 items-center justify-center rounded-md transition-colors md:h-6 md:w-6",
209
+ item.checked ? "bg-ods-accent" : "border-2 border-ods-border bg-transparent"
210
+ ),
211
+ children: item.checked && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Check, { className: "h-3 w-3 text-ods-text-on-accent md:h-4 md:w-4", strokeWidth: 3 })
212
+ }
213
+ ),
214
+ item.type === "submenu" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.Chevron02RightIcon, { className: "h-4 w-4 text-ods-text-secondary md:h-6 md:w-6" })
215
+ ] });
216
+ if (renderAsLink && item.href) {
217
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: WRAPPER_CLASSES, children: [
218
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
219
+ _chunkLLRGR4I5cjs.next_link_default,
220
+ {
221
+ href: item.href,
222
+ prefetch: false,
223
+ target: item.openInNewTab ? "_blank" : void 0,
224
+ rel: item.openInNewTab ? "noopener noreferrer" : void 0,
225
+ className: itemClasses,
226
+ onClick: handleLinkClick,
227
+ "aria-disabled": item.disabled,
228
+ tabIndex: item.disabled ? -1 : void 0,
229
+ children: rowContent
230
+ }
231
+ ),
232
+ item.iconAction && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SecondaryAction, { action: item.iconAction })
233
+ ] });
234
+ }
235
+ if (item.type === "submenu" && item.submenu) {
236
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: WRAPPER_CLASSES, children: [
237
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DropdownMenuPrimitive.Sub, { children: [
238
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.SubTrigger, { disabled: item.disabled, className: subTriggerClasses, children: rowContent }),
239
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DropdownMenuPrimitive.Portal, { container: _nullishCoalesce(portalContainer, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
240
+ DropdownMenuPrimitive.SubContent,
241
+ {
242
+ sideOffset: 4,
243
+ collisionBoundary: _nullishCoalesce(collisionBoundary, () => ( void 0)),
244
+ collisionPadding: collisionBoundary ? _chunkCPA2CKRZcjs.COLLISION_PADDING_PX : void 0,
245
+ hideWhenDetached: true,
246
+ className: "z-[1500] max-h-[var(--radix-popper-available-height)] min-w-[256px] overflow-y-auto rounded-md border border-ods-border bg-ods-bg p-0 shadow-xl",
247
+ children: item.submenu.map((subItem, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MenuItem, { item: subItem, onItemClick }, subItem.id || index))
248
+ }
249
+ ) })
250
+ ] }),
251
+ item.iconAction && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SecondaryAction, { action: item.iconAction })
252
+ ] });
253
+ }
254
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: WRAPPER_CLASSES, children: [
255
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
256
+ "div",
257
+ {
258
+ role: "menuitem",
259
+ tabIndex: item.disabled ? -1 : 0,
260
+ "aria-disabled": item.disabled,
261
+ className: itemClasses,
262
+ onClick: handleClick,
263
+ onKeyDown: handleKeyDown,
264
+ children: rowContent
265
+ }
266
+ ),
267
+ item.iconAction && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SecondaryAction, { action: item.iconAction })
268
+ ] });
269
+ };
270
+ var GroupSeparator = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[3px] w-full bg-ods-bg-surface" });
271
+ var ActionsMenu = ({ groups, className = "", onItemClick, header }) => {
272
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
273
+ "div",
274
+ {
275
+ className: `relative max-h-[var(--radix-popper-available-height)] min-w-[256px] overflow-y-auto rounded-md border border-ods-border bg-ods-bg shadow-lg ${className}`,
276
+ children: [
277
+ header && // The context strips the frame off controls that carry one (the view
278
+ // TabSelector): inside the menu, the row border and the menu's own
279
+ // rounding ARE the frame — see `actions-menu-header-context.ts`.
280
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ActionsMenuHeaderContext.Provider, { value: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border", children: header }) }),
281
+ groups.map((group, groupIndex) => {
282
+ const groupKey = group.id || group.items.map((i) => i.id).join("|");
283
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
284
+ group.items.map((item, itemIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MenuItem, { item, onItemClick }, item.id || `${groupKey}-${itemIndex}`)),
285
+ group.separator && groupIndex < groups.length - 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GroupSeparator, {})
286
+ ] }, groupKey);
287
+ })
288
+ ]
289
+ }
290
+ );
291
+ };
292
+ var ActionsMenuDropdown = ({
293
+ groups,
294
+ onItemClick,
295
+ className,
296
+ header,
297
+ trigger,
298
+ customTrigger,
299
+ triggerAriaLabel = "More actions",
300
+ triggerClassName,
301
+ contentClassName,
302
+ align = "end",
303
+ side = "bottom",
304
+ sideOffset = 6,
305
+ open: openProp,
306
+ onOpenChange,
307
+ onCloseAutoFocus
308
+ }) => {
309
+ const [open = false, setOpen] = _reactusecontrollablestate.useControllableState.call(void 0, {
310
+ prop: openProp,
311
+ defaultProp: false,
312
+ onChange: onOpenChange
313
+ });
314
+ useReportOverlayOpen(open);
315
+ const triggerRef = _react2.default.useRef(null);
316
+ _react2.default.useEffect(() => {
317
+ if (!open) return void 0;
318
+ if (typeof document === "undefined") return void 0;
319
+ const triggerEl = triggerRef.current;
320
+ if (!triggerEl) return void 0;
321
+ const anchorTop = triggerEl.getBoundingClientRect().top;
322
+ const onScroll = (event) => {
323
+ const target = event.target;
324
+ const scrolledTheTrigger = target === document || target instanceof Node && target.contains(triggerEl);
325
+ if (!scrolledTheTrigger) return;
326
+ const moved = Math.abs(triggerEl.getBoundingClientRect().top - anchorTop);
327
+ if (moved > SCROLL_DISMISS_THRESHOLD_PX) setOpen(false);
328
+ };
329
+ document.addEventListener("scroll", onScroll, { capture: true, passive: true });
330
+ return () => document.removeEventListener("scroll", onScroll, { capture: true });
331
+ }, [open, setOpen]);
332
+ const handleItemClick = _react.useCallback.call(void 0,
333
+ (item) => {
334
+ _optionalChain([onItemClick, 'optionalCall', _16 => _16(item)]);
335
+ if (item.type !== "checkbox" && item.type !== "submenu" && item.closeOnSelect !== false) {
336
+ setOpen(false);
337
+ }
338
+ },
339
+ [onItemClick, setOpen]
340
+ );
341
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2Y7QZAB2cjs.DropdownMenu, { open, onOpenChange: setOpen, modal: false, children: [
342
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2Y7QZAB2cjs.DropdownMenuTrigger, { asChild: true, ref: triggerRef, children: _nullishCoalesce(customTrigger, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
343
+ _chunkDFQYAYBHcjs.Button,
344
+ {
345
+ variant: "outline",
346
+ size: "icon",
347
+ "aria-label": triggerAriaLabel,
348
+ className: triggerClassName || "flex items-center justify-center border-ods-border bg-ods-card hover:bg-ods-bg-hover focus-visible:ring-0",
349
+ leftIcon: _nullishCoalesce(trigger, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.Ellipsis01Icon, { size: 24, className: "text-ods-text-primary" })))
350
+ }
351
+ ))) }),
352
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
353
+ _chunk2Y7QZAB2cjs.DropdownMenuContent,
354
+ {
355
+ align,
356
+ side,
357
+ sideOffset,
358
+ onCloseAutoFocus,
359
+ className: _chunk3ATAYP36cjs.cn.call(void 0, "overflow-visible border-0 bg-transparent p-0 shadow-none", contentClassName),
360
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ActionsMenu, { groups, onItemClick: handleItemClick, className, header })
361
+ }
362
+ )
363
+ ] });
364
+ };
365
+
366
+ // src/components/ui/tooltip.tsx
367
+ var _reacttooltip = require('@radix-ui/react-tooltip'); var TooltipPrimitive = _interopRequireWildcard(_reacttooltip);
368
+
369
+
370
+ var TooltipProvider = TooltipPrimitive.Provider;
371
+ var Tooltip = TooltipPrimitive.Root;
372
+ var TooltipTrigger = TooltipPrimitive.Trigger;
373
+ var TooltipContent = _react.forwardRef.call(void 0, ({ className, sideOffset = 4, ...props }, ref) => {
374
+ const container = _chunkCPA2CKRZcjs.usePortalContainer.call(void 0, );
375
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipPrimitive.Portal, { container: _nullishCoalesce(container, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
376
+ TooltipPrimitive.Content,
377
+ {
378
+ ref,
379
+ sideOffset,
380
+ className: _chunk3ATAYP36cjs.cn.call(void 0,
381
+ // `max-h` uses Radix's available-height var so tall content scrolls inside
382
+ // the tooltip instead of overflowing off-screen (only engages on overflow).
383
+ "z-[1400] max-h-[var(--radix-popper-available-height)] overflow-y-auto rounded-md border border-ods-border bg-ods-card px-3 py-2 text-ods-text-primary shadow-lg animate-in fade-in-0 zoom-in-95 text-h6 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
384
+ className
385
+ ),
386
+ ...props
387
+ }
388
+ ) });
389
+ });
390
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+ exports.useIsInActionsMenuHeader = useIsInActionsMenuHeader; exports.OverlayOpenRegistryProvider = OverlayOpenRegistryProvider; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent;
@@ -0,0 +1,125 @@
1
+ "use client";
2
+ import {
3
+ cn
4
+ } from "./chunk-7RXWKTAP.js";
5
+
6
+ // src/components/ui/skeleton.tsx
7
+ import { forwardRef } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var Skeleton = forwardRef(({ className, ...props }, ref) => {
10
+ return /* @__PURE__ */ jsx("div", { ref, className: cn("animate-pulse rounded-md bg-ods-border", className), ...props });
11
+ });
12
+ Skeleton.displayName = "Skeleton";
13
+ var SkeletonText = forwardRef(({ lines = 1, className, ...props }, ref) => {
14
+ return /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-2", className), ...props, children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ jsx(
15
+ Skeleton,
16
+ {
17
+ className: cn(
18
+ "h-4",
19
+ i === lines - 1 && lines > 1 && "w-3/4"
20
+ // Last line shorter for multi-line
21
+ )
22
+ },
23
+ i
24
+ )) });
25
+ });
26
+ SkeletonText.displayName = "SkeletonText";
27
+ var SkeletonCard = forwardRef(
28
+ ({ showImage = false, className, ...props }, ref) => {
29
+ return /* @__PURE__ */ jsxs("div", { ref, className: cn("overflow-hidden rounded-lg border border-ods-border", className), ...props, children: [
30
+ showImage && /* @__PURE__ */ jsx(Skeleton, { className: "h-48 w-full" }),
31
+ /* @__PURE__ */ jsxs("div", { className: "p-6", children: [
32
+ /* @__PURE__ */ jsx(Skeleton, { className: "mb-4 h-6 w-3/4" }),
33
+ /* @__PURE__ */ jsx(SkeletonText, { lines: 3 })
34
+ ] })
35
+ ] });
36
+ }
37
+ );
38
+ SkeletonCard.displayName = "SkeletonCard";
39
+ var SkeletonGrid = forwardRef(
40
+ ({ columns = 3, items = 6, showImages = false, className, ...props }, ref) => {
41
+ return /* @__PURE__ */ jsx(
42
+ "div",
43
+ {
44
+ ref,
45
+ className: cn(
46
+ `grid grid-cols-1 gap-6`,
47
+ columns === 2 && "content-md:grid-cols-2",
48
+ columns === 3 && "content-md:grid-cols-3",
49
+ columns === 4 && "content-md:grid-cols-4",
50
+ className
51
+ ),
52
+ ...props,
53
+ children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ jsx(SkeletonCard, { showImage: showImages }, i))
54
+ }
55
+ );
56
+ }
57
+ );
58
+ SkeletonGrid.displayName = "SkeletonGrid";
59
+ var SkeletonButton = forwardRef(
60
+ ({ size = "default", className, ...props }, ref) => {
61
+ const sizeClasses = {
62
+ sm: "h-8 w-20",
63
+ default: "h-10 w-32",
64
+ lg: "h-12 w-40"
65
+ };
66
+ return /* @__PURE__ */ jsx(Skeleton, { ref, className: cn("rounded-lg", sizeClasses[size], className), ...props });
67
+ }
68
+ );
69
+ SkeletonButton.displayName = "SkeletonButton";
70
+ var SkeletonHeading = forwardRef(({ level = 1, className, ...props }, ref) => {
71
+ const heightClasses = {
72
+ 1: "h-12",
73
+ 2: "h-10",
74
+ 3: "h-8",
75
+ 4: "h-7",
76
+ 5: "h-6",
77
+ 6: "h-5"
78
+ };
79
+ return /* @__PURE__ */ jsx(Skeleton, { ref, className: cn(heightClasses[level], "w-3/4", className), ...props });
80
+ });
81
+ SkeletonHeading.displayName = "SkeletonHeading";
82
+ var SkeletonList = forwardRef(({ items = 5, className, ...props }, ref) => {
83
+ return /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
84
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-10 flex-shrink-0 rounded-full" }),
85
+ /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
86
+ /* @__PURE__ */ jsx(Skeleton, { className: "mb-1 h-4 w-1/3" }),
87
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-1/2" })
88
+ ] })
89
+ ] }, i)) });
90
+ });
91
+ SkeletonList.displayName = "SkeletonList";
92
+ var SkeletonNavigation = forwardRef(
93
+ ({ items = 6, className, ...props }, ref) => {
94
+ return /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center gap-6", className), ...props, children: Array.from({ length: items }).map((_, i) => /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20" }, i)) });
95
+ }
96
+ );
97
+ SkeletonNavigation.displayName = "SkeletonNavigation";
98
+
99
+ // src/components/ui/portal-container.tsx
100
+ import { createContext, useContext } from "react";
101
+ var PortalContainerContext = createContext(null);
102
+ function usePortalContainer() {
103
+ return useContext(PortalContainerContext);
104
+ }
105
+ var CollisionBoundaryContext = createContext(null);
106
+ function useCollisionBoundary() {
107
+ return useContext(CollisionBoundaryContext);
108
+ }
109
+ var COLLISION_PADDING_PX = 8;
110
+
111
+ export {
112
+ PortalContainerContext,
113
+ usePortalContainer,
114
+ CollisionBoundaryContext,
115
+ useCollisionBoundary,
116
+ COLLISION_PADDING_PX,
117
+ Skeleton,
118
+ SkeletonText,
119
+ SkeletonCard,
120
+ SkeletonGrid,
121
+ SkeletonButton,
122
+ SkeletonHeading,
123
+ SkeletonList,
124
+ SkeletonNavigation
125
+ };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import {
3
+ embedAuthedFetch,
4
+ hasEmbedAuthAdapter
5
+ } from "./chunk-ADBE7QF3.js";
6
+
7
+ // src/utils/embed-content-fetch.ts
8
+ var contentFetch = (input, init) => {
9
+ if (!hasEmbedAuthAdapter()) return fetch(input, init);
10
+ const url = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
11
+ return embedAuthedFetch(url, init);
12
+ };
13
+
14
+ export {
15
+ contentFetch
16
+ };
@@ -1,26 +1,32 @@
1
1
  "use client";
2
2
  import {
3
3
  EmptyState
4
- } from "./chunk-F57ECE2I.js";
4
+ } from "./chunk-6YPTUHM7.js";
5
5
  import {
6
- OPENFRAME_DEV_SECTIONS,
7
- PageLayout,
8
6
  PageShell,
9
7
  SearchInput,
10
- StatusFilterComponent,
8
+ StatusFilterComponent
9
+ } from "./chunk-FCAVAEHF.js";
10
+ import {
11
+ PageLayout
12
+ } from "./chunk-NPAQSMRY.js";
13
+ import {
14
+ OPENFRAME_DEV_SECTIONS,
11
15
  TASK_TYPE_LABELS,
12
16
  TASK_TYPE_TEXT_COLORS
13
- } from "./chunk-4L6XCMOU.js";
17
+ } from "./chunk-ROBQ5TR7.js";
14
18
  import {
15
19
  usePathname,
16
20
  useRouter,
17
21
  useSearchParams
18
22
  } from "./chunk-GY4IZG22.js";
19
23
  import {
20
- AvatarStack,
21
24
  StatusBadge,
22
25
  getStatusColorScheme
23
- } from "./chunk-FI6GMDO7.js";
26
+ } from "./chunk-TTVOLEUS.js";
27
+ import {
28
+ AvatarStack
29
+ } from "./chunk-JHQ334WS.js";
24
30
  import {
25
31
  next_link_default
26
32
  } from "./chunk-DAAVMYUT.js";
@@ -0,0 +1,100 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+
4
+ var _chunk3LU4UFPScjs = require('./chunk-3LU4UFPS.cjs');
5
+
6
+
7
+
8
+ var _chunkCPA2CKRZcjs = require('./chunk-CPA2CKRZ.cjs');
9
+
10
+
11
+ var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
12
+
13
+ // src/components/ui/product-screen-frame.tsx
14
+ var _react = require('react');
15
+ var _jsxruntime = require('react/jsx-runtime');
16
+ var PRODUCT_SCREEN_DESIGN_WIDTH = _chunk3LU4UFPScjs.LAYOUT_STEPS["2xl"].content;
17
+ var PRODUCT_SCREEN_READABLE_WIDTH = _chunk3LU4UFPScjs.LAYOUT_STEPS.lg.content;
18
+ var PRODUCT_SCREEN_SCALE_FROM = _chunk3LU4UFPScjs.LAYOUT_STEPS.md.content;
19
+ var SCALE_VAR = "--product-screen-scale";
20
+ function ProductScreenFrame({
21
+ children,
22
+ label,
23
+ height,
24
+ appType = "openframe",
25
+ designWidth = PRODUCT_SCREEN_DESIGN_WIDTH,
26
+ scaleFrom = PRODUCT_SCREEN_SCALE_FROM,
27
+ fade = true,
28
+ className
29
+ }) {
30
+ const frameRef = _react.useRef.call(void 0, null);
31
+ const [frame, setFrame] = _react.useState.call(void 0, null);
32
+ const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
33
+ const [mode, setMode] = _react.useState.call(void 0, "pending");
34
+ _react.useLayoutEffect.call(void 0, () => {
35
+ const element = frameRef.current;
36
+ if (!element) return void 0;
37
+ setFrame(element);
38
+ const measure = () => {
39
+ const width = element.clientWidth;
40
+ const scaled = width >= scaleFrom && width < designWidth;
41
+ element.style.setProperty(SCALE_VAR, String(scaled ? width / designWidth : 1));
42
+ setMode(scaled ? "scaled" : "native");
43
+ };
44
+ measure();
45
+ const observer = new ResizeObserver(measure);
46
+ observer.observe(element);
47
+ return () => observer.disconnect();
48
+ }, [designWidth, scaleFrom]);
49
+ const screenStyle = mode === "scaled" ? {
50
+ width: designWidth,
51
+ // The crop is in frame pixels, so the unscaled box is taller by the same factor.
52
+ height: `calc(100% / var(${SCALE_VAR}))`,
53
+ transform: `scale(var(${SCALE_VAR}))`,
54
+ transformOrigin: "top left"
55
+ } : (
56
+ // Unscaled, the screen still needs to be the containing block of anything the
57
+ // product pins with `position: fixed` (a form's action bar), or it escapes to the window.
58
+ { width: "100%", height: "100%", transform: "translateZ(0)" }
59
+ );
60
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
61
+ "div",
62
+ {
63
+ ref: frameRef,
64
+ role: "img",
65
+ "aria-label": label,
66
+ "data-app-type": appType,
67
+ className: _chunk3ATAYP36cjs.cn.call(void 0, "relative overflow-hidden", className),
68
+ style: { height },
69
+ children: [
70
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCPA2CKRZcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCPA2CKRZcjs.CollisionBoundaryContext.Provider, { value: frame, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
71
+ "div",
72
+ {
73
+ inert: true,
74
+ "aria-hidden": true,
75
+ className: _chunk3ATAYP36cjs.cn.call(void 0, "ods-content-area", mode === "pending" && "invisible"),
76
+ style: screenStyle,
77
+ children: [
78
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children }),
79
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
80
+ ]
81
+ }
82
+ ) }) }),
83
+ fade && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
84
+ "div",
85
+ {
86
+ "aria-hidden": true,
87
+ className: "pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-ods-bg to-transparent"
88
+ }
89
+ )
90
+ ]
91
+ }
92
+ );
93
+ }
94
+
95
+
96
+
97
+
98
+
99
+
100
+ exports.PRODUCT_SCREEN_DESIGN_WIDTH = PRODUCT_SCREEN_DESIGN_WIDTH; exports.PRODUCT_SCREEN_READABLE_WIDTH = PRODUCT_SCREEN_READABLE_WIDTH; exports.PRODUCT_SCREEN_SCALE_FROM = PRODUCT_SCREEN_SCALE_FROM; exports.ProductScreenFrame = ProductScreenFrame;