@burdenoff/fe-libs 2026.525.2 → 2026.526.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 (617) hide show
  1. package/package.json +1 -1
  2. package/dist/button/Button.d.ts +0 -12
  3. package/dist/button/Button.d.ts.map +0 -1
  4. package/dist/button/index.d.ts +0 -3
  5. package/dist/button/index.d.ts.map +0 -1
  6. package/dist/button.d.ts +0 -2
  7. package/dist/chrome/AccountSwitcher.d.ts +0 -51
  8. package/dist/chrome/AccountSwitcher.d.ts.map +0 -1
  9. package/dist/chrome/AppShellLayout.d.ts +0 -67
  10. package/dist/chrome/AppShellLayout.d.ts.map +0 -1
  11. package/dist/chrome/AutoBreadcrumbs.d.ts +0 -22
  12. package/dist/chrome/AutoBreadcrumbs.d.ts.map +0 -1
  13. package/dist/chrome/Breadcrumb.d.ts +0 -47
  14. package/dist/chrome/Breadcrumb.d.ts.map +0 -1
  15. package/dist/chrome/Breadcrumbs.d.ts +0 -69
  16. package/dist/chrome/Breadcrumbs.d.ts.map +0 -1
  17. package/dist/chrome/CommandPalette.d.ts +0 -64
  18. package/dist/chrome/CommandPalette.d.ts.map +0 -1
  19. package/dist/chrome/ContextSwitcher.d.ts +0 -48
  20. package/dist/chrome/ContextSwitcher.d.ts.map +0 -1
  21. package/dist/chrome/DynamicFooter.d.ts +0 -21
  22. package/dist/chrome/DynamicFooter.d.ts.map +0 -1
  23. package/dist/chrome/Footer.d.ts +0 -128
  24. package/dist/chrome/Footer.d.ts.map +0 -1
  25. package/dist/chrome/FooterBar.d.ts +0 -79
  26. package/dist/chrome/FooterBar.d.ts.map +0 -1
  27. package/dist/chrome/GeographySwitcher.d.ts +0 -22
  28. package/dist/chrome/GeographySwitcher.d.ts.map +0 -1
  29. package/dist/chrome/GlobalSearch.d.ts +0 -49
  30. package/dist/chrome/GlobalSearch.d.ts.map +0 -1
  31. package/dist/chrome/HeaderBar.d.ts +0 -108
  32. package/dist/chrome/HeaderBar.d.ts.map +0 -1
  33. package/dist/chrome/LanguagePickerSheet.d.ts +0 -22
  34. package/dist/chrome/LanguagePickerSheet.d.ts.map +0 -1
  35. package/dist/chrome/LanguageSwitcher.d.ts +0 -23
  36. package/dist/chrome/LanguageSwitcher.d.ts.map +0 -1
  37. package/dist/chrome/NavLink.d.ts +0 -64
  38. package/dist/chrome/NavLink.d.ts.map +0 -1
  39. package/dist/chrome/NotificationCenter.d.ts +0 -16
  40. package/dist/chrome/NotificationCenter.d.ts.map +0 -1
  41. package/dist/chrome/PanelContainer.d.ts +0 -8
  42. package/dist/chrome/PanelContainer.d.ts.map +0 -1
  43. package/dist/chrome/PanelTabs.d.ts +0 -19
  44. package/dist/chrome/PanelTabs.d.ts.map +0 -1
  45. package/dist/chrome/PluginContextMenuTarget.d.ts +0 -8
  46. package/dist/chrome/PluginContextMenuTarget.d.ts.map +0 -1
  47. package/dist/chrome/PluginFooterStrip.d.ts +0 -3
  48. package/dist/chrome/PluginFooterStrip.d.ts.map +0 -1
  49. package/dist/chrome/PluginRoutes.d.ts +0 -9
  50. package/dist/chrome/PluginRoutes.d.ts.map +0 -1
  51. package/dist/chrome/PluginSettingsPage.d.ts +0 -3
  52. package/dist/chrome/PluginSettingsPage.d.ts.map +0 -1
  53. package/dist/chrome/PluginToolbar.d.ts +0 -9
  54. package/dist/chrome/PluginToolbar.d.ts.map +0 -1
  55. package/dist/chrome/PluginWidgetGrid.d.ts +0 -7
  56. package/dist/chrome/PluginWidgetGrid.d.ts.map +0 -1
  57. package/dist/chrome/ProductPickerSheet.d.ts +0 -24
  58. package/dist/chrome/ProductPickerSheet.d.ts.map +0 -1
  59. package/dist/chrome/ProductSideNav.d.ts +0 -22
  60. package/dist/chrome/ProductSideNav.d.ts.map +0 -1
  61. package/dist/chrome/ProductSwitcher.d.ts +0 -31
  62. package/dist/chrome/ProductSwitcher.d.ts.map +0 -1
  63. package/dist/chrome/ProfileSwitcher.d.ts +0 -49
  64. package/dist/chrome/ProfileSwitcher.d.ts.map +0 -1
  65. package/dist/chrome/ShortcutHelpDialog.d.ts +0 -33
  66. package/dist/chrome/ShortcutHelpDialog.d.ts.map +0 -1
  67. package/dist/chrome/SideNavigation.d.ts +0 -85
  68. package/dist/chrome/SideNavigation.d.ts.map +0 -1
  69. package/dist/chrome/Sidebar.d.ts +0 -108
  70. package/dist/chrome/Sidebar.d.ts.map +0 -1
  71. package/dist/chrome/StatusBar.d.ts +0 -3
  72. package/dist/chrome/StatusBar.d.ts.map +0 -1
  73. package/dist/chrome/Tabs.d.ts +0 -74
  74. package/dist/chrome/Tabs.d.ts.map +0 -1
  75. package/dist/chrome/index.d.ts +0 -108
  76. package/dist/chrome/index.d.ts.map +0 -1
  77. package/dist/chrome.d.ts +0 -2
  78. package/dist/config/eslint.config.d.ts +0 -12
  79. package/dist/config/eslint.config.d.ts.map +0 -1
  80. package/dist/config/index.d.ts +0 -19
  81. package/dist/config/index.d.ts.map +0 -1
  82. package/dist/config/prettier.config.d.ts +0 -7
  83. package/dist/config/prettier.config.d.ts.map +0 -1
  84. package/dist/form/Checkbox.d.ts +0 -60
  85. package/dist/form/Checkbox.d.ts.map +0 -1
  86. package/dist/form/Form.d.ts +0 -114
  87. package/dist/form/Form.d.ts.map +0 -1
  88. package/dist/form/FormDescription.d.ts +0 -33
  89. package/dist/form/FormDescription.d.ts.map +0 -1
  90. package/dist/form/FormField.d.ts +0 -96
  91. package/dist/form/FormField.d.ts.map +0 -1
  92. package/dist/form/FormLabel.d.ts +0 -41
  93. package/dist/form/FormLabel.d.ts.map +0 -1
  94. package/dist/form/FormMessage.d.ts +0 -35
  95. package/dist/form/FormMessage.d.ts.map +0 -1
  96. package/dist/form/Input.d.ts +0 -43
  97. package/dist/form/Input.d.ts.map +0 -1
  98. package/dist/form/Radio.d.ts +0 -99
  99. package/dist/form/Radio.d.ts.map +0 -1
  100. package/dist/form/Select.d.ts +0 -101
  101. package/dist/form/Select.d.ts.map +0 -1
  102. package/dist/form/Textarea.d.ts +0 -50
  103. package/dist/form/Textarea.d.ts.map +0 -1
  104. package/dist/form/index.d.ts +0 -24
  105. package/dist/form/index.d.ts.map +0 -1
  106. package/dist/form.d.ts +0 -2
  107. package/dist/index.d.ts +0 -2
  108. package/dist/index.d.ts.map +0 -1
  109. package/dist/lib/utils.d.ts +0 -3
  110. package/dist/lib/utils.d.ts.map +0 -1
  111. package/dist/shared/components/AccessDenied.d.ts +0 -117
  112. package/dist/shared/components/AccessDenied.d.ts.map +0 -1
  113. package/dist/shared/components/AppErrorBoundary.d.ts +0 -19
  114. package/dist/shared/components/AppErrorBoundary.d.ts.map +0 -1
  115. package/dist/shared/components/ConditionalShell.d.ts +0 -17
  116. package/dist/shared/components/ConditionalShell.d.ts.map +0 -1
  117. package/dist/shared/components/ContextConversationWidget.d.ts +0 -6
  118. package/dist/shared/components/ContextConversationWidget.d.ts.map +0 -1
  119. package/dist/shared/components/ErrorBoundary.d.ts +0 -19
  120. package/dist/shared/components/ErrorBoundary.d.ts.map +0 -1
  121. package/dist/shared/components/ErrorFallback.d.ts +0 -3
  122. package/dist/shared/components/ErrorFallback.d.ts.map +0 -1
  123. package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts +0 -7
  124. package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts.map +0 -1
  125. package/dist/shared/components/LegalPage.d.ts +0 -19
  126. package/dist/shared/components/LegalPage.d.ts.map +0 -1
  127. package/dist/shared/components/LoadingFallback.d.ts +0 -31
  128. package/dist/shared/components/LoadingFallback.d.ts.map +0 -1
  129. package/dist/shared/components/MicrofrontendErrorBoundary.d.ts +0 -20
  130. package/dist/shared/components/MicrofrontendErrorBoundary.d.ts.map +0 -1
  131. package/dist/shared/components/PWAInstallBanner.d.ts +0 -14
  132. package/dist/shared/components/PWAInstallBanner.d.ts.map +0 -1
  133. package/dist/shared/components/PermissionGate.d.ts +0 -202
  134. package/dist/shared/components/PermissionGate.d.ts.map +0 -1
  135. package/dist/shared/components/ProductAccessGuard.d.ts +0 -8
  136. package/dist/shared/components/ProductAccessGuard.d.ts.map +0 -1
  137. package/dist/shared/components/QuotaMeter.d.ts +0 -30
  138. package/dist/shared/components/QuotaMeter.d.ts.map +0 -1
  139. package/dist/shared/components/RequireAuth.d.ts +0 -76
  140. package/dist/shared/components/RequireAuth.d.ts.map +0 -1
  141. package/dist/shared/components/SSORedirectGuard.d.ts +0 -49
  142. package/dist/shared/components/SSORedirectGuard.d.ts.map +0 -1
  143. package/dist/shared/components/SearchPage.d.ts +0 -24
  144. package/dist/shared/components/SearchPage.d.ts.map +0 -1
  145. package/dist/shared/components/index.d.ts +0 -25
  146. package/dist/shared/components/index.d.ts.map +0 -1
  147. package/dist/shared/config/authBridgeUrls.d.ts +0 -27
  148. package/dist/shared/config/authBridgeUrls.d.ts.map +0 -1
  149. package/dist/shared/config/eslint.config.d.ts +0 -12
  150. package/dist/shared/config/eslint.config.d.ts.map +0 -1
  151. package/dist/shared/config/gatewayUrls.d.ts +0 -44
  152. package/dist/shared/config/gatewayUrls.d.ts.map +0 -1
  153. package/dist/shared/config/index.d.ts +0 -71
  154. package/dist/shared/config/index.d.ts.map +0 -1
  155. package/dist/shared/config/prettier.config.d.ts +0 -7
  156. package/dist/shared/config/prettier.config.d.ts.map +0 -1
  157. package/dist/shared/config/products.d.ts +0 -56
  158. package/dist/shared/config/products.d.ts.map +0 -1
  159. package/dist/shared/config/shellRoutes.d.ts +0 -52
  160. package/dist/shared/config/shellRoutes.d.ts.map +0 -1
  161. package/dist/shared/events/index.d.ts +0 -591
  162. package/dist/shared/events/index.d.ts.map +0 -1
  163. package/dist/shared/events/metadata.d.ts +0 -7
  164. package/dist/shared/events/metadata.d.ts.map +0 -1
  165. package/dist/shared/events/sinks/BackendAuditSink.d.ts +0 -18
  166. package/dist/shared/events/sinks/BackendAuditSink.d.ts.map +0 -1
  167. package/dist/shared/events/sinks/BroadcastChannelSink.d.ts +0 -10
  168. package/dist/shared/events/sinks/BroadcastChannelSink.d.ts.map +0 -1
  169. package/dist/shared/events/sinks/DevtoolsSink.d.ts +0 -10
  170. package/dist/shared/events/sinks/DevtoolsSink.d.ts.map +0 -1
  171. package/dist/shared/events/sinks/OtelBrowserSink.d.ts +0 -14
  172. package/dist/shared/events/sinks/OtelBrowserSink.d.ts.map +0 -1
  173. package/dist/shared/events/sinks/RybbitSink.d.ts +0 -19
  174. package/dist/shared/events/sinks/RybbitSink.d.ts.map +0 -1
  175. package/dist/shared/events/sinks/index.d.ts +0 -6
  176. package/dist/shared/events/sinks/index.d.ts.map +0 -1
  177. package/dist/shared/feature-flags/FeatureFlagProvider.d.ts +0 -47
  178. package/dist/shared/feature-flags/FeatureFlagProvider.d.ts.map +0 -1
  179. package/dist/shared/feature-flags/FeatureGate.d.ts +0 -27
  180. package/dist/shared/feature-flags/FeatureGate.d.ts.map +0 -1
  181. package/dist/shared/feature-flags/index.d.ts +0 -38
  182. package/dist/shared/feature-flags/index.d.ts.map +0 -1
  183. package/dist/shared/feature-flags/types.d.ts +0 -121
  184. package/dist/shared/feature-flags/types.d.ts.map +0 -1
  185. package/dist/shared/feature-flags/useFeatureFlag.d.ts +0 -41
  186. package/dist/shared/feature-flags/useFeatureFlag.d.ts.map +0 -1
  187. package/dist/shared/geography/GeographyProvider.d.ts +0 -40
  188. package/dist/shared/geography/GeographyProvider.d.ts.map +0 -1
  189. package/dist/shared/geography/countries.d.ts +0 -53
  190. package/dist/shared/geography/countries.d.ts.map +0 -1
  191. package/dist/shared/geography/index.d.ts +0 -5
  192. package/dist/shared/geography/index.d.ts.map +0 -1
  193. package/dist/shared/graphql/GatewayContext.d.ts +0 -55
  194. package/dist/shared/graphql/GatewayContext.d.ts.map +0 -1
  195. package/dist/shared/graphql/client.d.ts +0 -122
  196. package/dist/shared/graphql/client.d.ts.map +0 -1
  197. package/dist/shared/graphql/fetch.d.ts +0 -133
  198. package/dist/shared/graphql/fetch.d.ts.map +0 -1
  199. package/dist/shared/graphql/index.d.ts +0 -9
  200. package/dist/shared/graphql/index.d.ts.map +0 -1
  201. package/dist/shared/graphql/links/sse-link.d.ts +0 -48
  202. package/dist/shared/graphql/links/sse-link.d.ts.map +0 -1
  203. package/dist/shared/graphql/security.d.ts +0 -13
  204. package/dist/shared/graphql/security.d.ts.map +0 -1
  205. package/dist/shared/graphql/workspaceToken.d.ts +0 -13
  206. package/dist/shared/graphql/workspaceToken.d.ts.map +0 -1
  207. package/dist/shared/help/HelpButton.d.ts +0 -25
  208. package/dist/shared/help/HelpButton.d.ts.map +0 -1
  209. package/dist/shared/help/HelpPanel.d.ts +0 -10
  210. package/dist/shared/help/HelpPanel.d.ts.map +0 -1
  211. package/dist/shared/help/HelpProvider.d.ts +0 -40
  212. package/dist/shared/help/HelpProvider.d.ts.map +0 -1
  213. package/dist/shared/help/index.d.ts +0 -53
  214. package/dist/shared/help/index.d.ts.map +0 -1
  215. package/dist/shared/help/types.d.ts +0 -159
  216. package/dist/shared/help/types.d.ts.map +0 -1
  217. package/dist/shared/hooks/index.d.ts +0 -31
  218. package/dist/shared/hooks/index.d.ts.map +0 -1
  219. package/dist/shared/hooks/shell/index.d.ts +0 -22
  220. package/dist/shared/hooks/shell/index.d.ts.map +0 -1
  221. package/dist/shared/hooks/shell/useBreadcrumbs.d.ts +0 -50
  222. package/dist/shared/hooks/shell/useBreadcrumbs.d.ts.map +0 -1
  223. package/dist/shared/hooks/shell/useFooterRegistry.d.ts +0 -23
  224. package/dist/shared/hooks/shell/useFooterRegistry.d.ts.map +0 -1
  225. package/dist/shared/hooks/shell/useGlobalSearch.d.ts +0 -103
  226. package/dist/shared/hooks/shell/useGlobalSearch.d.ts.map +0 -1
  227. package/dist/shared/hooks/shell/useLanguages.d.ts +0 -43
  228. package/dist/shared/hooks/shell/useLanguages.d.ts.map +0 -1
  229. package/dist/shared/hooks/shell/useNavRegistry.d.ts +0 -25
  230. package/dist/shared/hooks/shell/useNavRegistry.d.ts.map +0 -1
  231. package/dist/shared/hooks/shell/useProductAccess.d.ts +0 -37
  232. package/dist/shared/hooks/shell/useProductAccess.d.ts.map +0 -1
  233. package/dist/shared/hooks/shell/useProducts.d.ts +0 -30
  234. package/dist/shared/hooks/shell/useProducts.d.ts.map +0 -1
  235. package/dist/shared/hooks/useAsync.d.ts +0 -151
  236. package/dist/shared/hooks/useAsync.d.ts.map +0 -1
  237. package/dist/shared/hooks/useBreakpoint.d.ts +0 -83
  238. package/dist/shared/hooks/useBreakpoint.d.ts.map +0 -1
  239. package/dist/shared/hooks/useCopyToClipboard.d.ts +0 -72
  240. package/dist/shared/hooks/useCopyToClipboard.d.ts.map +0 -1
  241. package/dist/shared/hooks/useDebounce.d.ts +0 -26
  242. package/dist/shared/hooks/useDebounce.d.ts.map +0 -1
  243. package/dist/shared/hooks/useHasAnimated.d.ts +0 -10
  244. package/dist/shared/hooks/useHasAnimated.d.ts.map +0 -1
  245. package/dist/shared/hooks/useKeyPress.d.ts +0 -116
  246. package/dist/shared/hooks/useKeyPress.d.ts.map +0 -1
  247. package/dist/shared/hooks/useLocalStorage.d.ts +0 -41
  248. package/dist/shared/hooks/useLocalStorage.d.ts.map +0 -1
  249. package/dist/shared/hooks/useMediaQuery.d.ts +0 -35
  250. package/dist/shared/hooks/useMediaQuery.d.ts.map +0 -1
  251. package/dist/shared/hooks/useOnClickOutside.d.ts +0 -76
  252. package/dist/shared/hooks/useOnClickOutside.d.ts.map +0 -1
  253. package/dist/shared/hooks/usePWA.d.ts +0 -57
  254. package/dist/shared/hooks/usePWA.d.ts.map +0 -1
  255. package/dist/shared/hooks/usePrevious.d.ts +0 -157
  256. package/dist/shared/hooks/usePrevious.d.ts.map +0 -1
  257. package/dist/shared/hooks/useQuotaErrorToast.d.ts +0 -50
  258. package/dist/shared/hooks/useQuotaErrorToast.d.ts.map +0 -1
  259. package/dist/shared/hooks/useRecordProductVisit.d.ts +0 -11
  260. package/dist/shared/hooks/useRecordProductVisit.d.ts.map +0 -1
  261. package/dist/shared/hooks/useReferralAttribution.d.ts +0 -2
  262. package/dist/shared/hooks/useReferralAttribution.d.ts.map +0 -1
  263. package/dist/shared/hooks/useSessionStorage.d.ts +0 -44
  264. package/dist/shared/hooks/useSessionStorage.d.ts.map +0 -1
  265. package/dist/shared/hooks/useThrottle.d.ts +0 -37
  266. package/dist/shared/hooks/useThrottle.d.ts.map +0 -1
  267. package/dist/shared/hooks/useToggle.d.ts +0 -152
  268. package/dist/shared/hooks/useToggle.d.ts.map +0 -1
  269. package/dist/shared/index.d.ts +0 -13
  270. package/dist/shared/index.d.ts.map +0 -1
  271. package/dist/shared/keyboard/globalShortcuts.d.ts +0 -58
  272. package/dist/shared/keyboard/globalShortcuts.d.ts.map +0 -1
  273. package/dist/shared/keyboard/index.d.ts +0 -40
  274. package/dist/shared/keyboard/index.d.ts.map +0 -1
  275. package/dist/shared/keyboard/types.d.ts +0 -85
  276. package/dist/shared/keyboard/types.d.ts.map +0 -1
  277. package/dist/shared/keyboard/useHotkeys.d.ts +0 -21
  278. package/dist/shared/keyboard/useHotkeys.d.ts.map +0 -1
  279. package/dist/shared/keyboard/useKeyboardShortcuts.d.ts +0 -94
  280. package/dist/shared/keyboard/useKeyboardShortcuts.d.ts.map +0 -1
  281. package/dist/shared/keyboard/useShortcutHelp.d.ts +0 -27
  282. package/dist/shared/keyboard/useShortcutHelp.d.ts.map +0 -1
  283. package/dist/shared/keyboard/utils.d.ts +0 -72
  284. package/dist/shared/keyboard/utils.d.ts.map +0 -1
  285. package/dist/shared/logger/ConsoleTransport.d.ts +0 -22
  286. package/dist/shared/logger/ConsoleTransport.d.ts.map +0 -1
  287. package/dist/shared/logger/LogManager.d.ts +0 -75
  288. package/dist/shared/logger/LogManager.d.ts.map +0 -1
  289. package/dist/shared/logger/Logger.d.ts +0 -86
  290. package/dist/shared/logger/Logger.d.ts.map +0 -1
  291. package/dist/shared/logger/index.d.ts +0 -42
  292. package/dist/shared/logger/index.d.ts.map +0 -1
  293. package/dist/shared/logger/types.d.ts +0 -70
  294. package/dist/shared/logger/types.d.ts.map +0 -1
  295. package/dist/shared/logger/useLogger.d.ts +0 -29
  296. package/dist/shared/logger/useLogger.d.ts.map +0 -1
  297. package/dist/shared/motion/AnimatedCounter.d.ts +0 -16
  298. package/dist/shared/motion/AnimatedCounter.d.ts.map +0 -1
  299. package/dist/shared/motion/MotionCard.d.ts +0 -18
  300. package/dist/shared/motion/MotionCard.d.ts.map +0 -1
  301. package/dist/shared/motion/MotionCollapse.d.ts +0 -14
  302. package/dist/shared/motion/MotionCollapse.d.ts.map +0 -1
  303. package/dist/shared/motion/MotionFade.d.ts +0 -16
  304. package/dist/shared/motion/MotionFade.d.ts.map +0 -1
  305. package/dist/shared/motion/MotionItem.d.ts +0 -25
  306. package/dist/shared/motion/MotionItem.d.ts.map +0 -1
  307. package/dist/shared/motion/MotionList.d.ts +0 -28
  308. package/dist/shared/motion/MotionList.d.ts.map +0 -1
  309. package/dist/shared/motion/MotionPage.d.ts +0 -18
  310. package/dist/shared/motion/MotionPage.d.ts.map +0 -1
  311. package/dist/shared/motion/index.d.ts +0 -9
  312. package/dist/shared/motion/index.d.ts.map +0 -1
  313. package/dist/shared/motion/variants.d.ts +0 -70
  314. package/dist/shared/motion/variants.d.ts.map +0 -1
  315. package/dist/shared/native/bridge.d.ts +0 -3
  316. package/dist/shared/native/bridge.d.ts.map +0 -1
  317. package/dist/shared/native/consumers.d.ts +0 -9
  318. package/dist/shared/native/consumers.d.ts.map +0 -1
  319. package/dist/shared/native/hooks/index.d.ts +0 -12
  320. package/dist/shared/native/hooks/index.d.ts.map +0 -1
  321. package/dist/shared/native/hooks/useAppState.d.ts +0 -3
  322. package/dist/shared/native/hooks/useAppState.d.ts.map +0 -1
  323. package/dist/shared/native/hooks/useDeviceInfo.d.ts +0 -3
  324. package/dist/shared/native/hooks/useDeviceInfo.d.ts.map +0 -1
  325. package/dist/shared/native/hooks/useHaptics.d.ts +0 -8
  326. package/dist/shared/native/hooks/useHaptics.d.ts.map +0 -1
  327. package/dist/shared/native/hooks/useNativeKeyboard.d.ts +0 -6
  328. package/dist/shared/native/hooks/useNativeKeyboard.d.ts.map +0 -1
  329. package/dist/shared/native/hooks/useNativePlatform.d.ts +0 -10
  330. package/dist/shared/native/hooks/useNativePlatform.d.ts.map +0 -1
  331. package/dist/shared/native/hooks/useSafeArea.d.ts +0 -3
  332. package/dist/shared/native/hooks/useSafeArea.d.ts.map +0 -1
  333. package/dist/shared/native/hooks/useStatusBar.d.ts +0 -6
  334. package/dist/shared/native/hooks/useStatusBar.d.ts.map +0 -1
  335. package/dist/shared/native/index.d.ts +0 -6
  336. package/dist/shared/native/index.d.ts.map +0 -1
  337. package/dist/shared/native/platform.d.ts +0 -7
  338. package/dist/shared/native/platform.d.ts.map +0 -1
  339. package/dist/shared/native/types.d.ts +0 -62
  340. package/dist/shared/native/types.d.ts.map +0 -1
  341. package/dist/shared/pages/AiPage.d.ts +0 -14
  342. package/dist/shared/pages/AiPage.d.ts.map +0 -1
  343. package/dist/shared/pages/LegalPage.d.ts +0 -19
  344. package/dist/shared/pages/LegalPage.d.ts.map +0 -1
  345. package/dist/shared/pages/SearchPage.d.ts +0 -28
  346. package/dist/shared/pages/SearchPage.d.ts.map +0 -1
  347. package/dist/shared/pages/index.d.ts +0 -7
  348. package/dist/shared/pages/index.d.ts.map +0 -1
  349. package/dist/shared/plugins/PluginRuntimeProvider.d.ts +0 -28
  350. package/dist/shared/plugins/PluginRuntimeProvider.d.ts.map +0 -1
  351. package/dist/shared/plugins/context.d.ts +0 -65
  352. package/dist/shared/plugins/context.d.ts.map +0 -1
  353. package/dist/shared/plugins/disposable.d.ts +0 -17
  354. package/dist/shared/plugins/disposable.d.ts.map +0 -1
  355. package/dist/shared/plugins/event-bus.d.ts +0 -112
  356. package/dist/shared/plugins/event-bus.d.ts.map +0 -1
  357. package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts +0 -75
  358. package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts.map +0 -1
  359. package/dist/shared/plugins/iframe-mount/PluginMount.d.ts +0 -59
  360. package/dist/shared/plugins/iframe-mount/PluginMount.d.ts.map +0 -1
  361. package/dist/shared/plugins/iframe-mount/client/index.d.ts +0 -3
  362. package/dist/shared/plugins/iframe-mount/client/index.d.ts.map +0 -1
  363. package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts +0 -71
  364. package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts.map +0 -1
  365. package/dist/shared/plugins/iframe-mount/client/rpc.d.ts +0 -25
  366. package/dist/shared/plugins/iframe-mount/client/rpc.d.ts.map +0 -1
  367. package/dist/shared/plugins/iframe-mount/index.d.ts +0 -6
  368. package/dist/shared/plugins/iframe-mount/index.d.ts.map +0 -1
  369. package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts +0 -83
  370. package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts.map +0 -1
  371. package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts +0 -136
  372. package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts.map +0 -1
  373. package/dist/shared/plugins/iframe-mount/protocol/index.d.ts +0 -3
  374. package/dist/shared/plugins/iframe-mount/protocol/index.d.ts.map +0 -1
  375. package/dist/shared/plugins/iframe-mount/sandbox.d.ts +0 -3
  376. package/dist/shared/plugins/iframe-mount/sandbox.d.ts.map +0 -1
  377. package/dist/shared/plugins/iframe-mount/types.d.ts +0 -64
  378. package/dist/shared/plugins/iframe-mount/types.d.ts.map +0 -1
  379. package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts +0 -31
  380. package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts.map +0 -1
  381. package/dist/shared/plugins/index.d.ts +0 -41
  382. package/dist/shared/plugins/index.d.ts.map +0 -1
  383. package/dist/shared/plugins/panels/usePanelManagerStore.d.ts +0 -68
  384. package/dist/shared/plugins/panels/usePanelManagerStore.d.ts.map +0 -1
  385. package/dist/shared/plugins/registries/createContributionRegistry.d.ts +0 -16
  386. package/dist/shared/plugins/registries/createContributionRegistry.d.ts.map +0 -1
  387. package/dist/shared/plugins/registries/index.d.ts +0 -15
  388. package/dist/shared/plugins/registries/index.d.ts.map +0 -1
  389. package/dist/shared/plugins/registries/useCommandRegistry.d.ts +0 -3
  390. package/dist/shared/plugins/registries/useCommandRegistry.d.ts.map +0 -1
  391. package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts +0 -3
  392. package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts.map +0 -1
  393. package/dist/shared/plugins/registries/usePanelRegistry.d.ts +0 -3
  394. package/dist/shared/plugins/registries/usePanelRegistry.d.ts.map +0 -1
  395. package/dist/shared/plugins/registries/useRouteRegistry.d.ts +0 -3
  396. package/dist/shared/plugins/registries/useRouteRegistry.d.ts.map +0 -1
  397. package/dist/shared/plugins/registries/useSettingsRegistry.d.ts +0 -3
  398. package/dist/shared/plugins/registries/useSettingsRegistry.d.ts.map +0 -1
  399. package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts +0 -3
  400. package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts.map +0 -1
  401. package/dist/shared/plugins/registries/useToolbarRegistry.d.ts +0 -3
  402. package/dist/shared/plugins/registries/useToolbarRegistry.d.ts.map +0 -1
  403. package/dist/shared/plugins/registries/useWidgetRegistry.d.ts +0 -3
  404. package/dist/shared/plugins/registries/useWidgetRegistry.d.ts.map +0 -1
  405. package/dist/shared/plugins/runtime.d.ts +0 -68
  406. package/dist/shared/plugins/runtime.d.ts.map +0 -1
  407. package/dist/shared/plugins/types.d.ts +0 -228
  408. package/dist/shared/plugins/types.d.ts.map +0 -1
  409. package/dist/shared/providers/AppShellProvider.d.ts +0 -96
  410. package/dist/shared/providers/AppShellProvider.d.ts.map +0 -1
  411. package/dist/shared/providers/MicrofrontendProvider.d.ts +0 -41
  412. package/dist/shared/providers/MicrofrontendProvider.d.ts.map +0 -1
  413. package/dist/shared/providers/index.d.ts +0 -12
  414. package/dist/shared/providers/index.d.ts.map +0 -1
  415. package/dist/shared/providers/shell/ActiveContextProvider.d.ts +0 -88
  416. package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +0 -1
  417. package/dist/shared/providers/shell/ActiveContextStorage.d.ts +0 -45
  418. package/dist/shared/providers/shell/ActiveContextStorage.d.ts.map +0 -1
  419. package/dist/shared/providers/shell/AppShellContext.d.ts +0 -19
  420. package/dist/shared/providers/shell/AppShellContext.d.ts.map +0 -1
  421. package/dist/shared/providers/shell/AuthBridgeClient.d.ts +0 -121
  422. package/dist/shared/providers/shell/AuthBridgeClient.d.ts.map +0 -1
  423. package/dist/shared/providers/shell/AuthProvider.d.ts +0 -58
  424. package/dist/shared/providers/shell/AuthProvider.d.ts.map +0 -1
  425. package/dist/shared/providers/shell/AuthTokenProvider.d.ts +0 -22
  426. package/dist/shared/providers/shell/AuthTokenProvider.d.ts.map +0 -1
  427. package/dist/shared/providers/shell/ContextManagerProvider.d.ts +0 -56
  428. package/dist/shared/providers/shell/ContextManagerProvider.d.ts.map +0 -1
  429. package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts +0 -20
  430. package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts.map +0 -1
  431. package/dist/shared/providers/shell/GatewayRouter.d.ts +0 -31
  432. package/dist/shared/providers/shell/GatewayRouter.d.ts.map +0 -1
  433. package/dist/shared/providers/shell/GlobalUiProvider.d.ts +0 -46
  434. package/dist/shared/providers/shell/GlobalUiProvider.d.ts.map +0 -1
  435. package/dist/shared/providers/shell/I18nProvider.d.ts +0 -65
  436. package/dist/shared/providers/shell/I18nProvider.d.ts.map +0 -1
  437. package/dist/shared/providers/shell/MultiGatewayProvider.d.ts +0 -25
  438. package/dist/shared/providers/shell/MultiGatewayProvider.d.ts.map +0 -1
  439. package/dist/shared/providers/shell/ObservabilityProvider.d.ts +0 -15
  440. package/dist/shared/providers/shell/ObservabilityProvider.d.ts.map +0 -1
  441. package/dist/shared/providers/shell/PageConversationContextProvider.d.ts +0 -22
  442. package/dist/shared/providers/shell/PageConversationContextProvider.d.ts.map +0 -1
  443. package/dist/shared/providers/shell/PermissionProvider.d.ts +0 -227
  444. package/dist/shared/providers/shell/PermissionProvider.d.ts.map +0 -1
  445. package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts +0 -8
  446. package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts.map +0 -1
  447. package/dist/shared/providers/shell/ProfileI18nBridge.d.ts +0 -15
  448. package/dist/shared/providers/shell/ProfileI18nBridge.d.ts.map +0 -1
  449. package/dist/shared/providers/shell/ProfileStorageManager.d.ts +0 -107
  450. package/dist/shared/providers/shell/ProfileStorageManager.d.ts.map +0 -1
  451. package/dist/shared/providers/shell/ShellUiProvider.d.ts +0 -47
  452. package/dist/shared/providers/shell/ShellUiProvider.d.ts.map +0 -1
  453. package/dist/shared/providers/shell/ThemeProvider.d.ts +0 -29
  454. package/dist/shared/providers/shell/ThemeProvider.d.ts.map +0 -1
  455. package/dist/shared/providers/shell/index.d.ts +0 -45
  456. package/dist/shared/providers/shell/index.d.ts.map +0 -1
  457. package/dist/shared/shims/assert.d.ts +0 -19
  458. package/dist/shared/shims/assert.d.ts.map +0 -1
  459. package/dist/shared/shims/index.d.ts +0 -25
  460. package/dist/shared/shims/index.d.ts.map +0 -1
  461. package/dist/shared/shims/process.d.ts +0 -20
  462. package/dist/shared/shims/process.d.ts.map +0 -1
  463. package/dist/shared/shims/use-sync-external-store-shim.d.ts +0 -7
  464. package/dist/shared/shims/use-sync-external-store-shim.d.ts.map +0 -1
  465. package/dist/shared/shims/use-sync-external-store-with-selector.d.ts +0 -17
  466. package/dist/shared/shims/use-sync-external-store-with-selector.d.ts.map +0 -1
  467. package/dist/shared/shims/util.d.ts +0 -135
  468. package/dist/shared/shims/util.d.ts.map +0 -1
  469. package/dist/shared/tours/TourInitializer.d.ts +0 -6
  470. package/dist/shared/tours/TourInitializer.d.ts.map +0 -1
  471. package/dist/shared/tours/TourPlayer.d.ts +0 -49
  472. package/dist/shared/tours/TourPlayer.d.ts.map +0 -1
  473. package/dist/shared/tours/TourPlayerProvider.d.ts +0 -26
  474. package/dist/shared/tours/TourPlayerProvider.d.ts.map +0 -1
  475. package/dist/shared/tours/TourSpotlight.d.ts +0 -8
  476. package/dist/shared/tours/TourSpotlight.d.ts.map +0 -1
  477. package/dist/shared/tours/TourTooltip.d.ts +0 -7
  478. package/dist/shared/tours/TourTooltip.d.ts.map +0 -1
  479. package/dist/shared/tours/TourTrigger.d.ts +0 -15
  480. package/dist/shared/tours/TourTrigger.d.ts.map +0 -1
  481. package/dist/shared/tours/ToursContext.d.ts +0 -42
  482. package/dist/shared/tours/ToursContext.d.ts.map +0 -1
  483. package/dist/shared/tours/index.d.ts +0 -53
  484. package/dist/shared/tours/index.d.ts.map +0 -1
  485. package/dist/shared/tours/progress.d.ts +0 -7
  486. package/dist/shared/tours/progress.d.ts.map +0 -1
  487. package/dist/shared/tours/routeCatalog.d.ts +0 -42
  488. package/dist/shared/tours/routeCatalog.d.ts.map +0 -1
  489. package/dist/shared/tours/types.d.ts +0 -215
  490. package/dist/shared/tours/types.d.ts.map +0 -1
  491. package/dist/shared/tours/useTourPlayer.d.ts +0 -38
  492. package/dist/shared/tours/useTourPlayer.d.ts.map +0 -1
  493. package/dist/shared/types/index.d.ts +0 -185
  494. package/dist/shared/types/index.d.ts.map +0 -1
  495. package/dist/shared/utils/apollo.d.ts +0 -26
  496. package/dist/shared/utils/apollo.d.ts.map +0 -1
  497. package/dist/shared/utils/appHelpers.d.ts +0 -34
  498. package/dist/shared/utils/appHelpers.d.ts.map +0 -1
  499. package/dist/shared/utils/authCookie.d.ts +0 -35
  500. package/dist/shared/utils/authCookie.d.ts.map +0 -1
  501. package/dist/shared/utils/authErrorHandling.d.ts +0 -65
  502. package/dist/shared/utils/authErrorHandling.d.ts.map +0 -1
  503. package/dist/shared/utils/cn.d.ts +0 -6
  504. package/dist/shared/utils/cn.d.ts.map +0 -1
  505. package/dist/shared/utils/format.d.ts +0 -98
  506. package/dist/shared/utils/format.d.ts.map +0 -1
  507. package/dist/shared/utils/gatewayFetchRewrite.d.ts +0 -53
  508. package/dist/shared/utils/gatewayFetchRewrite.d.ts.map +0 -1
  509. package/dist/shared/utils/index.d.ts +0 -26
  510. package/dist/shared/utils/index.d.ts.map +0 -1
  511. package/dist/shared/utils/lazyWithRetry.d.ts +0 -43
  512. package/dist/shared/utils/lazyWithRetry.d.ts.map +0 -1
  513. package/dist/shared/utils/loggerInit.d.ts +0 -15
  514. package/dist/shared/utils/loggerInit.d.ts.map +0 -1
  515. package/dist/shared/utils/mockData.d.ts +0 -40
  516. package/dist/shared/utils/mockData.d.ts.map +0 -1
  517. package/dist/shared/utils/profileScopedStorage.d.ts +0 -42
  518. package/dist/shared/utils/profileScopedStorage.d.ts.map +0 -1
  519. package/dist/shared/utils/quotaErrors.d.ts +0 -37
  520. package/dist/shared/utils/quotaErrors.d.ts.map +0 -1
  521. package/dist/shared/utils/tokens.d.ts +0 -166
  522. package/dist/shared/utils/tokens.d.ts.map +0 -1
  523. package/dist/shared-components.d.ts +0 -2
  524. package/dist/shared-config.d.ts +0 -2
  525. package/dist/shared-events.d.ts +0 -2
  526. package/dist/shared-feature-flags.d.ts +0 -2
  527. package/dist/shared-geography.d.ts +0 -2
  528. package/dist/shared-graphql.d.ts +0 -2
  529. package/dist/shared-hooks-shell.d.ts +0 -2
  530. package/dist/shared-hooks.d.ts +0 -2
  531. package/dist/shared-keyboard.d.ts +0 -2
  532. package/dist/shared-logger.d.ts +0 -2
  533. package/dist/shared-motion.d.ts +0 -2
  534. package/dist/shared-native.d.ts +0 -2
  535. package/dist/shared-pages.d.ts +0 -2
  536. package/dist/shared-plugins.d.ts +0 -2
  537. package/dist/shared-providers-shell.d.ts +0 -2
  538. package/dist/shared-providers.d.ts +0 -2
  539. package/dist/shared-shims.d.ts +0 -2
  540. package/dist/shared-tours.d.ts +0 -2
  541. package/dist/shared-types.d.ts +0 -1
  542. package/dist/shared-utils.d.ts +0 -2
  543. package/dist/shared.d.ts +0 -2
  544. package/dist/storage/SaveToFilesButton.d.ts +0 -55
  545. package/dist/storage/SaveToFilesButton.d.ts.map +0 -1
  546. package/dist/storage/SaveToFilesDialog.d.ts +0 -13
  547. package/dist/storage/SaveToFilesDialog.d.ts.map +0 -1
  548. package/dist/storage/StorageFolderPicker.d.ts +0 -23
  549. package/dist/storage/StorageFolderPicker.d.ts.map +0 -1
  550. package/dist/storage/index.d.ts +0 -10
  551. package/dist/storage/index.d.ts.map +0 -1
  552. package/dist/storage/uploadBlob.d.ts +0 -21
  553. package/dist/storage/uploadBlob.d.ts.map +0 -1
  554. package/dist/storage/useSaveToFiles.d.ts +0 -17
  555. package/dist/storage/useSaveToFiles.d.ts.map +0 -1
  556. package/dist/tag/TagBadge.d.ts +0 -17
  557. package/dist/tag/TagBadge.d.ts.map +0 -1
  558. package/dist/tag/TagsWidget.d.ts +0 -103
  559. package/dist/tag/TagsWidget.d.ts.map +0 -1
  560. package/dist/tag/index.d.ts +0 -3
  561. package/dist/tag/index.d.ts.map +0 -1
  562. package/dist/tag.d.ts +0 -2
  563. package/dist/ui/accordion.d.ts +0 -8
  564. package/dist/ui/accordion.d.ts.map +0 -1
  565. package/dist/ui/alert-dialog.d.ts +0 -15
  566. package/dist/ui/alert-dialog.d.ts.map +0 -1
  567. package/dist/ui/badge.d.ts +0 -10
  568. package/dist/ui/badge.d.ts.map +0 -1
  569. package/dist/ui/button.d.ts +0 -12
  570. package/dist/ui/button.d.ts.map +0 -1
  571. package/dist/ui/card.d.ts +0 -9
  572. package/dist/ui/card.d.ts.map +0 -1
  573. package/dist/ui/checkbox.d.ts +0 -5
  574. package/dist/ui/checkbox.d.ts.map +0 -1
  575. package/dist/ui/command.d.ts +0 -19
  576. package/dist/ui/command.d.ts.map +0 -1
  577. package/dist/ui/dialog.d.ts +0 -16
  578. package/dist/ui/dialog.d.ts.map +0 -1
  579. package/dist/ui/dropdown-menu.d.ts +0 -28
  580. package/dist/ui/dropdown-menu.d.ts.map +0 -1
  581. package/dist/ui/index.d.ts +0 -25
  582. package/dist/ui/index.d.ts.map +0 -1
  583. package/dist/ui/input.d.ts +0 -5
  584. package/dist/ui/input.d.ts.map +0 -1
  585. package/dist/ui/label.d.ts +0 -5
  586. package/dist/ui/label.d.ts.map +0 -1
  587. package/dist/ui/popover.d.ts +0 -8
  588. package/dist/ui/popover.d.ts.map +0 -1
  589. package/dist/ui/scroll-area.d.ts +0 -6
  590. package/dist/ui/scroll-area.d.ts.map +0 -1
  591. package/dist/ui/select.d.ts +0 -13
  592. package/dist/ui/select.d.ts.map +0 -1
  593. package/dist/ui/separator.d.ts +0 -5
  594. package/dist/ui/separator.d.ts.map +0 -1
  595. package/dist/ui/sheet.d.ts +0 -14
  596. package/dist/ui/sheet.d.ts.map +0 -1
  597. package/dist/ui/skeleton.d.ts +0 -4
  598. package/dist/ui/skeleton.d.ts.map +0 -1
  599. package/dist/ui/sonner.d.ts +0 -4
  600. package/dist/ui/sonner.d.ts.map +0 -1
  601. package/dist/ui/spinner.d.ts +0 -6
  602. package/dist/ui/spinner.d.ts.map +0 -1
  603. package/dist/ui/switch.d.ts +0 -5
  604. package/dist/ui/switch.d.ts.map +0 -1
  605. package/dist/ui/table.d.ts +0 -11
  606. package/dist/ui/table.d.ts.map +0 -1
  607. package/dist/ui/tabs.d.ts +0 -8
  608. package/dist/ui/tabs.d.ts.map +0 -1
  609. package/dist/ui/textarea.d.ts +0 -5
  610. package/dist/ui/textarea.d.ts.map +0 -1
  611. package/dist/ui/tooltip.d.ts +0 -7
  612. package/dist/ui/tooltip.d.ts.map +0 -1
  613. package/dist/ui.d.ts +0 -2
  614. package/dist/utils/cn.d.ts +0 -15
  615. package/dist/utils/cn.d.ts.map +0 -1
  616. package/dist/utils/index.d.ts +0 -3
  617. package/dist/utils/index.d.ts.map +0 -1
@@ -1,28 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { PluginRuntime } from './runtime';
3
- import { UIPlugin } from './types';
4
- import { ShellServices } from './context';
5
- /**
6
- * Access the PluginRuntime instance from any component under PluginRuntimeProvider.
7
- */
8
- export declare function usePluginRuntime(): PluginRuntime;
9
- export interface PluginRuntimeProviderProps {
10
- /** Plugins to load. Order matters for dependency resolution. */
11
- plugins: UIPlugin[];
12
- /** Shell services (navigation, toast, auth, etc.). */
13
- shell: ShellServices;
14
- /** Optional shell state bridge used for route/theme/context activation events. */
15
- observedState?: PluginRuntimeObservedState;
16
- children: ReactNode;
17
- }
18
- export interface PluginRuntimeObservedState {
19
- currentPath?: string;
20
- colorMode?: 'light' | 'dark';
21
- locale?: string;
22
- sidebarCollapsed?: boolean;
23
- workspaceId?: string;
24
- tenantId?: string;
25
- projectId?: string;
26
- }
27
- export declare function PluginRuntimeProvider({ plugins, shell, observedState, children, }: PluginRuntimeProviderProps): import("react/jsx-runtime").JSX.Element;
28
- //# sourceMappingURL=PluginRuntimeProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PluginRuntimeProvider.d.ts","sourceRoot":"","sources":["../../../src/shared/plugins/PluginRuntimeProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAA4B,MAAM,WAAW,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,WAAW,CAAC;AA6B7D;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAMhD;AAMD,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,sDAAsD;IACtD,KAAK,EAAE,aAAa,CAAC;IACrB,kFAAkF;IAClF,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAC3C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,KAAK,EACL,aAAa,EACb,QAAQ,GACT,EAAE,0BAA0B,2CA8J5B"}
@@ -1,65 +0,0 @@
1
- import { EventBus, CoreEventMap } from './event-bus';
2
- import { PluginContext, CommandContribution, RouteContribution, PanelContribution, StatusBarContribution, SettingsContribution, WidgetContribution, ToolbarContribution, ContextMenuContribution } from './types';
3
- import { ContributionRegistryStore } from './registries/createContributionRegistry';
4
- import { NavItem } from '../hooks/shell/useNavRegistry';
5
- import { FooterItem, FooterSection } from '../hooks/shell/useFooterRegistry';
6
- /**
7
- * Identity surface exposed to plugins by `getAuth()`.
8
- *
9
- * SECURITY: Plugins are untrusted code surfaces. Shells MUST NOT pass raw
10
- * access tokens, refresh tokens, or any other bearer credential through this
11
- * channel. Only stable, non-sensitive identity fields belong here. Plugins
12
- * that need to call backend APIs should go through the shell's gateway
13
- * clients (which inject auth at the network boundary), not by reading a
14
- * token out of `shell.getAuth()`.
15
- *
16
- * The optional `token` field is retained ONLY as a deprecated, redacted
17
- * placeholder for backward compatibility — implementations should leave it
18
- * `undefined`. It will be removed in a future major.
19
- */
20
- export interface PluginAuthSnapshot {
21
- /** Opaque user identity object (id, email, displayName) — no credentials. */
22
- user?: unknown;
23
- /**
24
- * @deprecated Always `undefined`. Plugins must not receive bearer tokens.
25
- * Use the shell's gateway clients for authenticated requests.
26
- */
27
- token?: undefined;
28
- }
29
- /**
30
- * Active product context exposed to plugins.
31
- *
32
- * `projectId` is included so plugins that operate on project-scoped state
33
- * (panels, status-bar items, widgets) can read the current project without
34
- * having to subscribe to shell-internal stores.
35
- */
36
- export interface PluginActiveContext {
37
- workspaceId?: string;
38
- tenantId?: string;
39
- projectId?: string;
40
- }
41
- export interface ShellServices {
42
- navigate: (path: string) => void;
43
- showToast: (message: string, type?: 'info' | 'success' | 'warning' | 'error') => void;
44
- getActiveContext: () => PluginActiveContext;
45
- getAuth: () => PluginAuthSnapshot;
46
- getTheme: () => {
47
- colorMode: 'light' | 'dark';
48
- };
49
- }
50
- export interface RegistryRefs {
51
- navRegister: (item: NavItem) => void;
52
- navUnregister: (id: string) => void;
53
- footerRegister: (section: FooterSection, item: FooterItem) => void;
54
- footerUnregister: (id: string) => void;
55
- commands: ContributionRegistryStore<CommandContribution>;
56
- routes: ContributionRegistryStore<RouteContribution>;
57
- panels: ContributionRegistryStore<PanelContribution>;
58
- statusBar: ContributionRegistryStore<StatusBarContribution>;
59
- settings: ContributionRegistryStore<SettingsContribution>;
60
- widgets: ContributionRegistryStore<WidgetContribution>;
61
- toolbar: ContributionRegistryStore<ToolbarContribution>;
62
- contextMenus: ContributionRegistryStore<ContextMenuContribution>;
63
- }
64
- export declare function createPluginContext(pluginId: string, eventBus: EventBus<CoreEventMap>, registries: RegistryRefs, shell: ShellServices): PluginContext;
65
- //# sourceMappingURL=context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/shared/plugins/context.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,KAAK,EACV,aAAa,EAGb,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EAExB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,K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C,qBAAqB,CAAC,CAAC;IAC5D,QAAQ,EAAE,yBAAyB,CAAC,oBAAoB,CAAC,CAAC;IAC1D,OAAO,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,CAAC;IACvD,OAAO,EAAE,yBAAyB,CAAC,mBAAmB,CAAC,CAAC;IACxD,YAAY,EAAE,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;CAClE;AAmCD,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,EAChC,UAAU,EAAE,YAAY,EACxB,KAAK,EAAE,aAAa,GACnB,aAAa,CAmFf"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Disposable pattern for automatic cleanup of plugin registrations and subscriptions.
3
- *
4
- * @module @burdenoff/fe-libs/shared/plugins/disposable
5
- */
6
- /** A resource that can be disposed to free/unregister itself. */
7
- export interface Disposable {
8
- dispose(): void;
9
- }
10
- /** Collects multiple disposables and disposes them all at once. */
11
- export declare class DisposableCollection implements Disposable {
12
- private disposables;
13
- add(disposable: Disposable): void;
14
- dispose(): void;
15
- get size(): number;
16
- }
17
- //# sourceMappingURL=disposable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"disposable.d.ts","sourceRoot":"","sources":["../../../src/shared/plugins/disposable.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,iEAAiE;AACjE,MAAM,WAAW,UAAU;IACzB,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,mEAAmE;AACnE,qBAAa,oBAAqB,YAAW,UAAU;IACrD,OAAO,CAAC,WAAW,CAAoB;IAEvC,GAAG,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAIjC,OAAO,IAAI,IAAI;IAOf,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
@@ -1,112 +0,0 @@
1
- import { Disposable } from './disposable';
2
- export type CoreEventMap = {
3
- 'plugin:activated': {
4
- pluginId: string;
5
- };
6
- 'plugin:deactivated': {
7
- pluginId: string;
8
- };
9
- 'navigation:before': {
10
- from: string;
11
- to: string;
12
- };
13
- 'navigation:after': {
14
- path: string;
15
- };
16
- 'shell:theme-changed': {
17
- colorMode: 'light' | 'dark';
18
- };
19
- 'shell:locale-changed': {
20
- locale: string;
21
- };
22
- 'shell:sidebar-toggled': {
23
- collapsed: boolean;
24
- };
25
- 'context:workspace-changed': {
26
- workspaceId: string;
27
- };
28
- 'context:tenant-changed': {
29
- tenantId: string;
30
- };
31
- 'context:project-changed': {
32
- projectId: string;
33
- };
34
- 'data:created': {
35
- entityType: string;
36
- entityId: string;
37
- pluginId: string;
38
- };
39
- 'data:updated': {
40
- entityType: string;
41
- entityId: string;
42
- pluginId: string;
43
- };
44
- 'data:deleted': {
45
- entityType: string;
46
- entityId: string;
47
- pluginId: string;
48
- };
49
- };
50
- export interface VibeControlsEventMap extends CoreEventMap {
51
- 'vc:agent-connected': {
52
- agentId: string;
53
- };
54
- 'vc:agent-disconnected': {
55
- agentId: string;
56
- };
57
- 'vc:session-started': {
58
- sessionId: string;
59
- agentId: string;
60
- };
61
- 'vc:session-ended': {
62
- sessionId: string;
63
- agentId: string;
64
- };
65
- 'vc:vibe-activated': {
66
- vibeId: string;
67
- };
68
- 'vc:vibe-deactivated': {
69
- vibeId: string;
70
- };
71
- }
72
- export type EventMiddleware = (event: string, payload: unknown) => unknown | void;
73
- export declare class EventBus<TEventMap extends Record<string, unknown> = CoreEventMap> {
74
- private listeners;
75
- private middlewares;
76
- /**
77
- * Subscribe to an event. Returns a Disposable for cleanup.
78
- */
79
- on<K extends keyof TEventMap & string>(event: K, handler: (payload: TEventMap[K]) => void): Disposable;
80
- on(event: string, handler: (payload: unknown) => void): Disposable;
81
- /**
82
- * Subscribe to an event once. Auto-disposes after first invocation.
83
- */
84
- once<K extends keyof TEventMap & string>(event: K, handler: (payload: TEventMap[K]) => void): Disposable;
85
- once(event: string, handler: (payload: unknown) => void): Disposable;
86
- /**
87
- * Emit an event to all listeners. Runs through middleware chain first.
88
- */
89
- emit<K extends keyof TEventMap & string>(event: K, payload: TEventMap[K]): void;
90
- emit(event: string, payload: unknown): void;
91
- /**
92
- * Add middleware that intercepts all events before delivery.
93
- */
94
- addMiddleware(mw: EventMiddleware): Disposable;
95
- /**
96
- * Remove all listeners and middleware.
97
- */
98
- clear(): void;
99
- }
100
- /**
101
- * React hook that subscribes to an event bus event with automatic cleanup.
102
- *
103
- * @example
104
- * ```tsx
105
- * const eventBus = usePluginRuntime().eventBus;
106
- * usePluginEvent(eventBus, 'context:workspace-changed', ({ workspaceId }) => {
107
- * console.log('Workspace changed:', workspaceId);
108
- * });
109
- * ```
110
- */
111
- export declare function usePluginEvent<TEventMap extends Record<string, unknown>, K extends keyof TEventMap & string>(eventBus: EventBus<TEventMap>, event: K, handler: (payload: TEventMap[K]) => void): void;
112
- //# sourceMappingURL=event-bus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-bus.d.ts","sourceRoot":"","sources":["../../../src/shared/plugins/event-bus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM/C,MAAM,MAAM,YAAY,GAAG;IAEzB,kBAAkB,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,oBAAoB,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAG3C,mBAAmB,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAGrC,qBAAqB,EAAE;QAAE,SAAS,EAAE,OAAO,GAAG,MAAM,CAAA;KAAE,CAAC;IACvD,sBAAsB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,uBAAuB,EAAE;QAAE,SAAS,EAAE,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AE,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI,CAMzF"}
@@ -1,75 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { PluginCapabilities, PluginErrorPayload, PluginEventEmitPayload, PluginResizeRequestPayload, PluginSetBadgePayload, PluginSetTitlePayload } from './protocol/index.js';
3
- export interface PluginIframeRpcContext {
4
- capabilities: PluginCapabilities;
5
- /** Reflects the iframe iframe back through for downstream handlers. */
6
- iframe: HTMLIFrameElement;
7
- }
8
- export type PluginIframeRpcHandler = (method: string, args: unknown, ctx: PluginIframeRpcContext) => Promise<unknown>;
9
- export interface PluginIframeProps {
10
- /** Absolute or relative URL the iframe loads. */
11
- src: string;
12
- /** Origin the iframe is allowed to postMessage to / from. */
13
- origin: string;
14
- /** Mount point id passed to the plugin in `host:init`. */
15
- mountPoint: string;
16
- /** Context payload passed to the plugin in `host:init` (e.g. `{ vibeId }`). */
17
- context: Record<string, unknown>;
18
- /** Agent id whose tunnel serves the iframe. */
19
- agentId: string;
20
- /** Profile name (CLI segment on the agent). */
21
- profile: string;
22
- /** Tunnel base URL the plugin should call for REST. */
23
- tunnelUrl: string;
24
- /** Iframe token scoped to the plugin's `capabilities.restPaths`. */
25
- iframeToken: string;
26
- /** Capabilities the plugin declared in its manifest. Used to derive sandbox. */
27
- capabilities: PluginCapabilities;
28
- /** Theme broadcast to the plugin. Updates re-flow into the iframe via host:theme-change. */
29
- theme: {
30
- colorMode: 'light' | 'dark';
31
- tokens: Record<string, string>;
32
- };
33
- /** Locale broadcast to the plugin. */
34
- locale: string;
35
- /** Feature-flag snapshot broadcast to the plugin. */
36
- featureFlags: Record<string, boolean>;
37
- /** Host version surfaced via `host:init`. */
38
- hostVersion: string;
39
- /** RPC handler the host wires up. Method allow-list is enforced separately. */
40
- onRpcRequest: PluginIframeRpcHandler;
41
- /** Called when the plugin emits an event UP to the host EventBus. */
42
- onPluginEvent?: (payload: PluginEventEmitPayload) => void;
43
- /** Called when the plugin asks to update its tab/widget badge. */
44
- onBadgeRequest?: (value: PluginSetBadgePayload['value']) => void;
45
- /** Called when the plugin asks to update its tab/widget title. */
46
- onTitleRequest?: (value: PluginSetTitlePayload['value']) => void;
47
- /** Called when the plugin asks the host to resize the iframe. Host decides. */
48
- onResizeRequest?: (opts: PluginResizeRequestPayload) => void;
49
- /** Called when the plugin self-reports a runtime error. */
50
- onPluginError?: (payload: PluginErrorPayload) => void;
51
- /** Rendered while the iframe is loading / before `plugin:ready`. */
52
- loadingFallback?: ReactNode;
53
- /** Rendered when the handshake times out. Receives the error message. */
54
- errorFallback?: (error: {
55
- message: string;
56
- }) => ReactNode;
57
- /** Override the 10s ready timeout. */
58
- readyTimeoutMs?: number;
59
- /** Forwarded `<iframe>` attributes for layout / styling. */
60
- title?: string;
61
- className?: string;
62
- style?: React.CSSProperties;
63
- }
64
- /**
65
- * Host-side iframe primitive. Mounts an iframe at `src`, runs the v1
66
- * postMessage handshake, derives the sandbox attribute from the
67
- * plugin's manifest capabilities, and translates the plugin's RPC
68
- * requests into host service calls.
69
- *
70
- * Cross-product: depends only on the inlined `./protocol` + `./client` envelope
71
- * but not on any product-specific gateway / tunnel concept. Host pages
72
- * supply the URL + token + RPC handler.
73
- */
74
- export declare function PluginIframe(props: PluginIframeProps): import("react/jsx-runtime").JSX.Element;
75
- //# sourceMappingURL=PluginIframe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PluginIframe.d.ts","sourceRoot":"","sources":["../../../../src/shared/plugins/iframe-mount/PluginIframe.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7E,OAAO,KAAK,EAEV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EAEtB,0BAA0B,EAE1B,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAY7B,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,kBAAkB,CAAC;IACjC,uEAAuE;IACvE,MAAM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AE,qBAAqB,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACjE,+EAA+E;IAC/E,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAC7D,2DAA2D;IAC3D,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACtD,oEAAoE;IACpE,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,yEAAyE;IACzE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IAC1D,sCAAsC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CA6QpD"}
@@ -1,59 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { PluginIframe, PluginIframeProps, PluginIframeRpcHandler } from './PluginIframe';
3
- import { DiscoveredContribution, InProcessPluginEntry, RuntimePreference } from './types';
4
- export interface PluginMountChildProps {
5
- /** Discovered contribution being mounted. */
6
- contribution: DiscoveredContribution;
7
- /** The chosen runtime (`'iframe'` or `'in-process'`). */
8
- runtime: 'iframe' | 'in-process';
9
- /** Rendered iframe element (only present for `runtime === 'iframe'`). */
10
- iframeProps?: Omit<PluginIframeProps, 'loadingFallback' | 'errorFallback' | 'title' | 'className' | 'style'>;
11
- /** Rendered React component (only present for `runtime === 'in-process'`). */
12
- inProcessNode?: ReactNode;
13
- }
14
- export interface PluginMountProps {
15
- /** Discovered iframe contributions from the agent. */
16
- contributions: DiscoveredContribution[];
17
- /** In-process plugin components registered by the host shell. */
18
- inProcess?: InProcessPluginEntry[];
19
- /** Per-page context passed to the plugin via `host:init`. */
20
- context: Record<string, unknown>;
21
- /** Agent id whose tunnel serves the iframe contributions. */
22
- agentId: string;
23
- /** Theme broadcast to plugin iframes (and to in-process plugins via the bridge). */
24
- theme: {
25
- colorMode: 'light' | 'dark';
26
- tokens: Record<string, string>;
27
- };
28
- /** Locale broadcast to plugins. */
29
- locale: string;
30
- /** Feature flags surfaced to plugins. */
31
- featureFlags: Record<string, boolean>;
32
- /** Host shell version surfaced via `host:init`. */
33
- hostVersion: string;
34
- /** RPC handler that resolves `plugin:rpc-request` calls. */
35
- onRpcRequest: PluginIframeRpcHandler;
36
- /**
37
- * Preference between runtimes when a contribution declares both. The
38
- * default is `iframe` (sandboxed; works for user-installable plugins).
39
- * Pages that want first-party in-process plugins to win can pass
40
- * `'in-process'`.
41
- */
42
- prefer?: RuntimePreference;
43
- /**
44
- * Renders each contribution. The host page is responsible for the
45
- * actual tab/widget chrome; this primitive just feeds it the right
46
- * props.
47
- */
48
- children: (props: PluginMountChildProps) => ReactNode;
49
- }
50
- /**
51
- * Iterator over discovered contributions. Picks a runtime per
52
- * contribution (iframe or in-process), mints/refreshes the iframe
53
- * token, and delegates rendering to the consumer via the `children`
54
- * render-prop.
55
- */
56
- export declare function PluginMount(props: PluginMountProps): import("react/jsx-runtime").JSX.Element;
57
- /** Re-export so consumers can render the iframe directly from their child render-prop. */
58
- export { PluginIframe };
59
- //# sourceMappingURL=PluginMount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PluginMount.d.ts","sourceRoot":"","sources":["../../../../src/shared/plugins/iframe-mount/PluginMount.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACnG,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EAEpB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB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-bus.js';
2
- export * from './rpc.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/plugins/iframe-mount/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC"}
@@ -1,71 +0,0 @@
1
- import { Envelope, HostEnvelope, HostOp, PluginEnvelope, PluginOp } from '../protocol/envelope.js';
2
- export type EnvelopeHandler<E extends Envelope = Envelope> = (env: E) => void;
3
- /** Subset of the DOM `Window` we depend on. Tests pass a stub. */
4
- export interface MessageWindow {
5
- addEventListener(type: 'message', listener: (event: MessageEvent) => void, options?: {
6
- signal?: AbortSignal;
7
- }): void;
8
- removeEventListener(type: 'message', listener: (event: MessageEvent) => void): void;
9
- }
10
- export interface MessageTarget {
11
- postMessage(message: unknown, targetOrigin: string): void;
12
- }
13
- export interface BusOptions {
14
- /** Identity check on every receive. Tightens the trust boundary. */
15
- allowedOrigins: string[];
16
- /** Optional handle to a specific `MessageEventSource` we expect. */
17
- expectedSource?: MessageEventSource | null;
18
- /** Stub-friendly window. Defaults to the platform `window` at runtime. */
19
- window?: MessageWindow;
20
- }
21
- declare abstract class BaseMessageBus<TSend extends Envelope, TRecv extends Envelope> {
22
- protected readonly options: BusOptions;
23
- protected handlers: Set<EnvelopeHandler<TRecv>>;
24
- protected disposed: boolean;
25
- private readonly listener;
26
- private readonly hostWindow;
27
- constructor(options: BusOptions);
28
- on(handler: EnvelopeHandler<TRecv>): () => void;
29
- dispose(): void;
30
- protected abstract get target(): MessageTarget;
31
- protected abstract get targetOrigin(): string;
32
- protected abstract isExpectedDirection(env: Envelope): env is TRecv;
33
- send(envelope: TSend): void;
34
- private handleMessage;
35
- }
36
- export interface IframeBusOptions extends BusOptions {
37
- /** The parent we postMessage UP to. Defaults to `window.parent`. */
38
- parent?: MessageTarget;
39
- }
40
- /**
41
- * The bus a plugin instance uses to talk to its host shell. Send a
42
- * `PluginEnvelope` UP, receive `HostEnvelope`s DOWN.
43
- */
44
- export declare class IframeMessageBus extends BaseMessageBus<PluginEnvelope, HostEnvelope> {
45
- private readonly parentTarget;
46
- private readonly origin;
47
- constructor(opts: IframeBusOptions);
48
- protected get target(): MessageTarget;
49
- protected get targetOrigin(): string;
50
- protected isExpectedDirection(env: Envelope): env is HostEnvelope;
51
- }
52
- export interface ParentBusOptions extends BusOptions {
53
- /** The iframe element we postMessage DOWN to. */
54
- iframe: HTMLIFrameElement;
55
- }
56
- /**
57
- * The bus a host page uses to talk to one iframe-mounted plugin instance.
58
- * Send a `HostEnvelope` DOWN, receive `PluginEnvelope`s UP.
59
- */
60
- export declare class ParentMessageBus extends BaseMessageBus<HostEnvelope, PluginEnvelope> {
61
- private readonly iframe;
62
- private readonly origin;
63
- constructor(opts: ParentBusOptions);
64
- protected get target(): MessageTarget;
65
- protected get targetOrigin(): string;
66
- protected isExpectedDirection(env: Envelope): env is PluginEnvelope;
67
- }
68
- export declare function buildHostEnvelope<P = unknown>(kind: HostOp, payload: P, requestId?: string): HostEnvelope<P>;
69
- export declare function buildPluginEnvelope<P = unknown>(kind: PluginOp, payload: P, requestId?: string): PluginEnvelope<P>;
70
- export {};
71
- //# sourceMappingURL=message-bus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-bus.d.ts","sourceRoot":"","sources":["../../../../../src/shared/plugins/iframe-mount/client/message-bus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAKL,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,QAAQ,EACd,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;AAE9E,kEAAkE;AAClE,MAAM,WAAW,aAAa;IAC5B,gBAAgB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AE,MAAM,GACjB,cAAc,CAAC,CAAC,CAAC,CAEnB"}
@@ -1,25 +0,0 @@
1
- import { HostRpcProgressPayload, HostRpcResponsePayload } from '../protocol/envelope.js';
2
- export type RpcMethod = string;
3
- export interface RpcCallOpts<TProgress = unknown> {
4
- /** Receive intermediate progress events for a streaming call. */
5
- onProgress?: (progress: TProgress) => void;
6
- /** Optional abort. The dispatcher fires `controller.abort` reasons through. */
7
- signal?: AbortSignal;
8
- /** Overrides the default 30s timeout. Set to `null` to disable. */
9
- timeoutMs?: number | null;
10
- }
11
- export interface RpcSender {
12
- /** Push the outbound RPC over the underlying transport. */
13
- send(requestId: string, method: RpcMethod, args: unknown, streaming: boolean): void;
14
- }
15
- export declare class RpcDispatcher {
16
- private readonly sender;
17
- private readonly pending;
18
- constructor(sender: RpcSender);
19
- call<TResult = unknown, TProgress = unknown>(method: RpcMethod, args: unknown, opts?: RpcCallOpts<TProgress>): Promise<TResult>;
20
- handleResponse(requestId: string, payload: HostRpcResponsePayload): void;
21
- handleProgress(requestId: string, payload: HostRpcProgressPayload): void;
22
- rejectAll(reason: unknown): void;
23
- private settle;
24
- }
25
- //# sourceMappingURL=rpc.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../../../src/shared/plugins/iframe-mount/client/rpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAE9F,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,WAAW,WAAW,CAAC,SAAS,GAAG,OAAO;IAC9C,iEAAiE;IACjE,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,IAAI,CAAC;IAC3C,+EAA+E;IAC/E,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAWD,MAAM,WAAW,SAAS;IACxB,2DAA2D;IAC3D,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;CACrF;AAUD,qBAAa,aAAa;IAGZ,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiC;gBAE5B,MAAM,EAAE,SAAS;IAE9C,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,SAAS,GAAG,OAAO,EACzC,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,OAAO,EACb,IAAI,GAAE,WAAW,CAAC,SAAS,CAAM,GAChC,OAAO,CAAC,OAAO,CAAC;IAqCnB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,GAAG,IAAI;IAaxE,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,GAAG,IAAI;IAKxE,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAMhC,OAAO,CAAC,MAAM;CAWf"}
@@ -1,6 +0,0 @@
1
- export * from './types';
2
- export { deriveSandbox } from './sandbox';
3
- export { usePluginContributions, type UsePluginContributionsOptions, } from './useFetchContributions';
4
- export { PluginIframe, type PluginIframeProps, type PluginIframeRpcContext, type PluginIframeRpcHandler, } from './PluginIframe';
5
- export { PluginMount, type PluginMountProps, type PluginMountChildProps } from './PluginMount';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/plugins/iframe-mount/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,GACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
@@ -1,83 +0,0 @@
1
- /**
2
- * Plugin contribution shape — the manifest entry a plugin author writes to
3
- * declare that they want to be mounted at a given extension point.
4
- *
5
- * Mount points are open-ended strings the host page declares
6
- * (`vibe.detailTab`, `agent.detailTab`, `target.detailTab`,
7
- * `dashboard.widget`, …). Adding a new mount point does NOT require an
8
- * SDK release: the host page consumes the matching contributions and
9
- * interprets `meta` however it needs.
10
- */
11
- export type PluginRuntime = 'iframe' | 'in-process';
12
- export interface PluginCapabilities {
13
- /**
14
- * REST path prefixes the plugin is allowed to hit via the iframe token.
15
- * Globs (`*`) are honoured by `request-security` on the agent.
16
- *
17
- * Example: `["/api/profiles/*\/my-plugin/*"]`
18
- */
19
- restPaths: string[];
20
- /** WebSocket topics this plugin subscribes to via the host relay. */
21
- wsTopics: string[];
22
- /**
23
- * Host RPC methods the plugin may call (e.g. `navigate`, `toast`,
24
- * `storage.get`). The host enforces this allow-list before invocation;
25
- * mismatches return a structured error rather than executing.
26
- */
27
- rpcMethods: string[];
28
- }
29
- export interface ContributionGate {
30
- /** Vibe-level feature catalog id (`isFeatureEnabled(feature)`). */
31
- feature?: string;
32
- /** Platform-level GrowthBook flag (`isPlatformTabEnabled(flag)`). */
33
- platformFlag?: string;
34
- /** Hide the contribution when no agent is attached to the surface. */
35
- requiresAgent?: boolean;
36
- }
37
- export interface PluginContribution {
38
- /** Open-ended mount point id. The host page knows how to read it. */
39
- mountPoint: string;
40
- /** Unique within (pluginKey, mountPoint). */
41
- id: string;
42
- title: string;
43
- /** Lucide icon name. Host resolves to a component; SDK stays icon-set agnostic. */
44
- icon?: string;
45
- /** Lower = earlier in the strip / grid. */
46
- order?: number;
47
- /**
48
- * Which runtimes this contribution supports. The host picks the first
49
- * entry that matches its preference and is available; warns and skips
50
- * the contribution when nothing matches.
51
- */
52
- runtimes: PluginRuntime[];
53
- capabilities: PluginCapabilities;
54
- gate?: ContributionGate;
55
- /** Mount-point-specific extras (e.g. `defaultSize` for dashboard widgets). */
56
- meta?: Record<string, unknown>;
57
- }
58
- export interface PluginManifest {
59
- /** Globally unique. Convention: npm-package-style (`vibe-plugin-ui-git`). */
60
- id: string;
61
- /** Human-readable. */
62
- name?: string;
63
- /** CalVer version of the plugin package itself. */
64
- version?: string;
65
- description?: string;
66
- contributions: PluginContribution[];
67
- }
68
- /**
69
- * `defineUiPlugin` is a typed identity helper — it lets the plugin author
70
- * declare the manifest + render function once and have the resulting
71
- * object accepted by both adapters without `as const` ceremony.
72
- *
73
- * The `render` thunk runs *inside* the chosen adapter, after the host
74
- * handshake has populated `VibeHostContext`. The hooks in `./react` are
75
- * what consumers actually use; this signature is intentionally untyped
76
- * for React to keep the protocol module DOM-free.
77
- */
78
- export interface UiPluginDefinition<TRender = unknown> {
79
- manifest: PluginManifest;
80
- render: () => TRender;
81
- }
82
- export declare function defineUiPlugin<TRender>(plugin: UiPluginDefinition<TRender>): UiPluginDefinition<TRender>;
83
- //# sourceMappingURL=contribution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contribution.d.ts","sourceRoot":"","sources":["../../../../../src/shared/plugins/iframe-mount/protocol/contribution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEpD,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,qEAAqE;IACrE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,mEAAmE;IACnE,OAAO,CAAC,EAAE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