@burdenoff/microfe-channel 2026.625.3 → 2026.715.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 (83) hide show
  1. package/dist/channel/ChannelRoot.d.ts +32 -0
  2. package/dist/channel/ChannelRoot.d.ts.map +1 -0
  3. package/dist/channel/ChannelRoutes.d.ts +10 -0
  4. package/dist/channel/ChannelRoutes.d.ts.map +1 -0
  5. package/dist/channel/components/AdapterCredentialsForm.d.ts +20 -0
  6. package/dist/channel/components/AdapterCredentialsForm.d.ts.map +1 -0
  7. package/dist/channel/components/FeatureNotEnabled.d.ts +13 -0
  8. package/dist/channel/components/FeatureNotEnabled.d.ts.map +1 -0
  9. package/dist/channel/components/PermissionGuard.d.ts +15 -0
  10. package/dist/channel/components/PermissionGuard.d.ts.map +1 -0
  11. package/dist/channel/config/adapterCredentials.d.ts +44 -0
  12. package/dist/channel/config/adapterCredentials.d.ts.map +1 -0
  13. package/dist/channel/constants/permissions.d.ts +36 -0
  14. package/dist/channel/constants/permissions.d.ts.map +1 -0
  15. package/dist/channel/graphql/global-client.d.ts +11 -0
  16. package/dist/channel/graphql/global-client.d.ts.map +1 -0
  17. package/dist/channel/hooks/useChannelOrgSettings.d.ts +22 -0
  18. package/dist/channel/hooks/useChannelOrgSettings.d.ts.map +1 -0
  19. package/dist/channel/hooks/useChannelSubscription.d.ts +34 -0
  20. package/dist/channel/hooks/useChannelSubscription.d.ts.map +1 -0
  21. package/dist/channel/hooks/useChannels.d.ts +228 -0
  22. package/dist/channel/hooks/useChannels.d.ts.map +1 -0
  23. package/dist/channel/index.d.ts +12 -0
  24. package/dist/channel/index.d.ts.map +1 -0
  25. package/dist/channel/modules/channels/hooks/useExport.d.ts +45 -0
  26. package/dist/channel/modules/channels/hooks/useExport.d.ts.map +1 -0
  27. package/dist/channel/modules/channels/i18n.d.ts +14 -0
  28. package/dist/channel/modules/channels/i18n.d.ts.map +1 -0
  29. package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts +14 -0
  30. package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts.map +1 -0
  31. package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts +7 -0
  32. package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts.map +1 -0
  33. package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts +7 -0
  34. package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts.map +1 -0
  35. package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts +7 -0
  36. package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts.map +1 -0
  37. package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts +7 -0
  38. package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts.map +1 -0
  39. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts +7 -0
  40. package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts.map +1 -0
  41. package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts +7 -0
  42. package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts.map +1 -0
  43. package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts +12 -0
  44. package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts.map +1 -0
  45. package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts +11 -0
  46. package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts.map +1 -0
  47. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts +7 -0
  48. package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts.map +1 -0
  49. package/dist/channel/modules/channels/pages/EditChannelPage.d.ts +8 -0
  50. package/dist/channel/modules/channels/pages/EditChannelPage.d.ts.map +1 -0
  51. package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts +10 -0
  52. package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts.map +1 -0
  53. package/dist/channel/modules/channels/pages/SendMessagePage.d.ts +8 -0
  54. package/dist/channel/modules/channels/pages/SendMessagePage.d.ts.map +1 -0
  55. package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts +7 -0
  56. package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts.map +1 -0
  57. package/dist/channel/pages/ChannelLandingPage.d.ts +9 -0
  58. package/dist/channel/pages/ChannelLandingPage.d.ts.map +1 -0
  59. package/dist/channel/providers/ChannelProvider.d.ts +16 -0
  60. package/dist/channel/providers/ChannelProvider.d.ts.map +1 -0
  61. package/dist/channel/types/index.d.ts +89 -0
  62. package/dist/channel/types/index.d.ts.map +1 -0
  63. package/dist/channel/utils/shellBridge.d.ts +59 -0
  64. package/dist/channel/utils/shellBridge.d.ts.map +1 -0
  65. package/dist/dev/App.d.ts +6 -0
  66. package/dist/dev/App.d.ts.map +1 -0
  67. package/dist/dev/main.d.ts +2 -0
  68. package/dist/dev/main.d.ts.map +1 -0
  69. package/dist/generated/global-operations.d.ts +1549 -0
  70. package/dist/generated/global-operations.d.ts.map +1 -0
  71. package/dist/generated/global-types.d.ts +23527 -0
  72. package/dist/generated/global-types.d.ts.map +1 -0
  73. package/dist/generated/wspace-operations.d.ts +2 -0
  74. package/dist/generated/wspace-operations.d.ts.map +1 -0
  75. package/dist/generated/wspace-types.d.ts +57851 -0
  76. package/dist/generated/wspace-types.d.ts.map +1 -0
  77. package/dist/index.d.ts +5 -0
  78. package/dist/index.d.ts.map +1 -0
  79. package/dist/translations/en.d.ts +262 -0
  80. package/dist/translations/en.d.ts.map +1 -0
  81. package/dist/utils/nativeBridge.d.ts +3 -0
  82. package/dist/utils/nativeBridge.d.ts.map +1 -0
  83. package/package.json +2 -2
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Channel Dashboard Page
3
+ *
4
+ * Main overview page for the Channel microfrontend.
5
+ * Fetches real data from global-channel-svc via the useChannels hook.
6
+ *
7
+ * Sections:
8
+ * 1. Header with Create Channel action
9
+ * 2. KPI summary cards (total, active, healthy, connected)
10
+ * 3. Search + platform/status filters
11
+ * 4. Channel table with inline actions
12
+ */
13
+ export declare function ChannelDashboardPage(): import("react").JSX.Element;
14
+ //# sourceMappingURL=ChannelDashboardPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelDashboardPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/ChannelDashboardPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAkLH,wBAAgB,oBAAoB,gCAgtBnC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Channel Details Page
3
+ *
4
+ * Displays channel details and provides connection/credentials management
5
+ */
6
+ export declare function ChannelDetailsPage(): import("react").JSX.Element;
7
+ //# sourceMappingURL=ChannelDetailsPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelDetailsPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/ChannelDetailsPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAgIH,wBAAgB,kBAAkB,gCAqmCjC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Channel Settings Page
3
+ *
4
+ * Global settings for the channels module.
5
+ */
6
+ export declare function ChannelSettingsPage(): import("react").JSX.Element;
7
+ //# sourceMappingURL=ChannelSettingsPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelSettingsPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/ChannelSettingsPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AA2CH,wBAAgB,mBAAmB,gCA0alC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Channel Users Page
3
+ *
4
+ * Displays user platform connections for a specific channel
5
+ */
6
+ export declare function ChannelUsersPage(): import("react").JSX.Element;
7
+ //# sourceMappingURL=ChannelUsersPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelUsersPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/ChannelUsersPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAiEH,wBAAgB,gBAAgB,gCA8X/B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Channels List Page
3
+ *
4
+ * Displays a list of all channels with CRUD operations
5
+ */
6
+ export declare function ChannelsListPage(): import("react").JSX.Element;
7
+ //# sourceMappingURL=ChannelsListPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelsListPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/ChannelsListPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAgGH,wBAAgB,gBAAgB,gCA+xB/B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Connection Details Page
3
+ *
4
+ * View and manage a specific connection within a channel.
5
+ */
6
+ export declare function ConnectionDetailsPage(): import("react").JSX.Element;
7
+ //# sourceMappingURL=ConnectionDetailsPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectionDetailsPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/ConnectionDetailsPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAwDH,wBAAgB,qBAAqB,gCAwapC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Connections List Page
3
+ *
4
+ * Displays all connections across channels with their status.
5
+ */
6
+ export declare function ConnectionsListPage(): import("react").JSX.Element;
7
+ //# sourceMappingURL=ConnectionsListPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectionsListPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/ConnectionsListPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AA4BH,wBAAgB,mBAAmB,gCA6ZlC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Create Channel Page
3
+ *
4
+ * Form fields match the exact CreateChannelInput from global-channel-svc:
5
+ * name (required), platform (required), organizationId (auto), description,
6
+ * adapterType, status, priority, platformConfig
7
+ *
8
+ * organizationId is injected from shell context — not shown in form.
9
+ * Credentials belong to createConnection mutation — not part of channel creation.
10
+ */
11
+ export declare function CreateChannelPage(): import("react").JSX.Element;
12
+ //# sourceMappingURL=CreateChannelPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateChannelPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/CreateChannelPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAgJH,wBAAgB,iBAAiB,gCA2WhC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Create Connection Page
3
+ *
4
+ * Standalone page mounted at /channels/connections/create.
5
+ * User picks a target channel, then provides auth details.
6
+ *
7
+ * Form fields match CreateConnectionInput exactly (less channelId which is
8
+ * resolved from the selector).
9
+ */
10
+ export declare function CreateConnectionPage(): import("react").JSX.Element;
11
+ //# sourceMappingURL=CreateConnectionPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateConnectionPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/CreateConnectionPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoBH,wBAAgB,oBAAoB,gCA+QnC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Delivery History Page
3
+ *
4
+ * Displays message delivery attempts for a specific channel with retry capability
5
+ */
6
+ export declare function DeliveryHistoryPage(): import("react").JSX.Element;
7
+ //# sourceMappingURL=DeliveryHistoryPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeliveryHistoryPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/DeliveryHistoryPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAwFH,wBAAgB,mBAAmB,gCAialC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Edit Channel Page
3
+ *
4
+ * Allows editing an existing channel's configuration.
5
+ * Uses the same form structure as CreateChannelPage but pre-fills existing values.
6
+ */
7
+ export declare function EditChannelPage(): import("react").JSX.Element;
8
+ //# sourceMappingURL=EditChannelPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditChannelPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/EditChannelPage.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkKH,wBAAgB,eAAe,gCA+W9B"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Edit Connection Page
3
+ *
4
+ * Standalone page mounted at /channels/connections/:connectionId/edit.
5
+ * Fetches the connection directly via getConnection (no channelId required in URL).
6
+ *
7
+ * Form fields match UpdateConnectionInput exactly.
8
+ */
9
+ export declare function EditConnectionPage(): import("react").JSX.Element;
10
+ //# sourceMappingURL=EditConnectionPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditConnectionPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/EditConnectionPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAqBH,wBAAgB,kBAAkB,gCA6PjC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Send Message Page
3
+ *
4
+ * UI for sending notifications/messages through channels.
5
+ * Supports single and bulk delivery with recipient management.
6
+ */
7
+ export declare function SendMessagePage(): import("react").JSX.Element;
8
+ //# sourceMappingURL=SendMessagePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendMessagePage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/SendMessagePage.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AA2EH,wBAAgB,eAAe,gCAyhB9B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Webhook Events Page
3
+ *
4
+ * Displays webhook event history for a specific channel
5
+ */
6
+ export declare function WebhookEventsPage(): import("react").JSX.Element;
7
+ //# sourceMappingURL=WebhookEventsPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookEventsPage.d.ts","sourceRoot":"","sources":["../../../../../src/channel/modules/channels/pages/WebhookEventsPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAkEH,wBAAgB,iBAAiB,gCAoZhC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Tabbed landing page for the Channel microfrontend.
3
+ *
4
+ * The first tab ("dashboard") uses a clean URL with no `tab` query param.
5
+ * Detail routes (e.g. /:channelId, /:channelId/edit) remain registered in
6
+ * ChannelRoutes so existing deep links continue to work.
7
+ */
8
+ export declare function ChannelLandingPage(): import("react").JSX.Element;
9
+ //# sourceMappingURL=ChannelLandingPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelLandingPage.d.ts","sourceRoot":"","sources":["../../../src/channel/pages/ChannelLandingPage.tsx"],"names":[],"mappings":"AA8BA;;;;;;GAMG;AACH,wBAAgB,kBAAkB,gCAiEjC"}
@@ -0,0 +1,16 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { ChannelRootProps } from '../types';
3
+
4
+ /**
5
+ * Hook to access Channel context
6
+ */
7
+ export declare const useChannel: () => ChannelRootProps;
8
+ /**
9
+ * Provider component for Channel microfrontend
10
+ * Sets up routing and context
11
+ *
12
+ * When integrated into a shell (basePath provided), the shell already has a router
13
+ * so we don't create another one. When standalone (no basePath), use MemoryRouter.
14
+ */
15
+ export declare const ChannelProvider: FC<PropsWithChildren<ChannelRootProps>>;
16
+ //# sourceMappingURL=ChannelProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelProvider.d.ts","sourceRoot":"","sources":["../../../src/channel/providers/ChannelProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AASjD;;GAEG;AACH,eAAO,MAAM,UAAU,wBAMtB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAkDnE,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ /**
4
+ * Navigation item for shell integration
5
+ */
6
+ export interface NavItem {
7
+ id: string;
8
+ label: string;
9
+ icon?: ReactNode;
10
+ path: string;
11
+ badge?: number;
12
+ order?: number;
13
+ group?: string;
14
+ visible?: boolean;
15
+ children?: NavItem[];
16
+ }
17
+ /**
18
+ * Footer item for shell integration
19
+ */
20
+ export interface FooterItem {
21
+ id: string;
22
+ label: string;
23
+ icon?: string;
24
+ onClick?: () => void;
25
+ type?: 'status' | 'action' | 'info';
26
+ order?: number;
27
+ badge?: string;
28
+ section?: 'left' | 'center' | 'right';
29
+ visible?: boolean;
30
+ }
31
+ /**
32
+ * Base user type
33
+ */
34
+ export interface User {
35
+ id: string;
36
+ email: string;
37
+ firstName?: string;
38
+ lastName?: string;
39
+ avatar?: string;
40
+ username?: string;
41
+ name?: string;
42
+ role?: string;
43
+ }
44
+ /**
45
+ * Props for the ChannelRoot component
46
+ */
47
+ export interface ChannelRootProps {
48
+ /**
49
+ * Base path for the microfrontend (e.g., '/channels')
50
+ */
51
+ basePath: string;
52
+ /**
53
+ * Navigation function injected by the host shell
54
+ */
55
+ navigate: (path: string) => void;
56
+ /**
57
+ * Current authenticated user
58
+ */
59
+ currentUser?: User;
60
+ /**
61
+ * Workspace ID for Channel context
62
+ */
63
+ workspaceId?: string;
64
+ /**
65
+ * Organization ID for Channel context
66
+ */
67
+ organizationId?: string;
68
+ /**
69
+ * Tenant ID for RBAC permission checks (global gateway scope)
70
+ */
71
+ tenantId?: string;
72
+ /**
73
+ * API Gateway URL
74
+ */
75
+ apiGatewayUrl?: string;
76
+ /**
77
+ * Authentication token
78
+ */
79
+ authToken?: string;
80
+ /**
81
+ * Optional function to register navigation items with the shell
82
+ */
83
+ registerNavItems?: (items: NavItem | NavItem[]) => () => void;
84
+ /**
85
+ * Optional function to register footer items with the shell
86
+ */
87
+ registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
88
+ }
89
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/channel/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEjC;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC;IAE9D;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,EAAE,KAAK,MAAM,IAAI,CAAC;CACxE"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Shell bridge — unified accessor for capabilities exposed by the host app
3
+ * shell on `globalThis.__burdenoffShell`. Each accessor is fully optional:
4
+ * the MFE must work in isolation (Storybook/standalone Vite dev) when the
5
+ * shell global is absent.
6
+ *
7
+ * Capabilities consumed:
8
+ * - `eventBus` — cross-MFE pub/sub bus per spec MFE-047
9
+ * - `reportError` — central SRE error sink (Rybbit + backend forward)
10
+ * - `graphqlWsClient` — graphql-ws Client instance (probe-only; subs falls
11
+ * back to polling when absent)
12
+ */
13
+ export interface ShellEventBus {
14
+ /** Emit a domain event onto the shell bus. */
15
+ emit?: (name: string, payload?: unknown, options?: Record<string, unknown>) => void;
16
+ /** Subscribe; returns an unsubscribe function. */
17
+ on?: (name: string, handler: (event: unknown) => void) => () => void;
18
+ }
19
+ export interface ShellReportErrorMeta {
20
+ module: string;
21
+ context?: Record<string, unknown>;
22
+ componentStack?: string;
23
+ }
24
+ /**
25
+ * Minimal subset of a graphql-ws Client we rely on.
26
+ * https://the-guild.dev/graphql/ws/recipes#use-the-client-without-apollo
27
+ */
28
+ export interface GraphqlWsLike {
29
+ subscribe: (payload: {
30
+ query: string;
31
+ variables?: Record<string, unknown>;
32
+ operationName?: string;
33
+ }, sink: {
34
+ next: (value: {
35
+ data?: unknown;
36
+ errors?: readonly unknown[];
37
+ }) => void;
38
+ error: (err: unknown) => void;
39
+ complete: () => void;
40
+ }) => () => void;
41
+ }
42
+ /**
43
+ * Emit a domain event onto the shell bus. Safe no-op when the shell or bus
44
+ * is absent. `name` follows `<domain>.<entity>.<verb>` (per spec 47).
45
+ */
46
+ export declare function emitShellEvent(name: string, payload?: unknown): void;
47
+ /**
48
+ * Subscribe to a shell-bus event; returns an unsubscribe function. Returns a
49
+ * no-op unsubscribe when the bus is absent.
50
+ */
51
+ export declare function subscribeShellEvent(name: string, handler: (event: unknown) => void): () => void;
52
+ /**
53
+ * Forward an error to the shell's central error sink. Falls back to
54
+ * `console.error` only when the sink is missing — mirrors the pattern in
55
+ * `microfe-tags/src/tags/components/RouteHelpers.tsx`.
56
+ */
57
+ export declare function reportShellError(error: unknown, meta: ShellReportErrorMeta, fallbackLabel?: string): void;
58
+ export declare function getGraphqlWsClient(): GraphqlWsLike | undefined;
59
+ //# sourceMappingURL=shellBridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shellBridge.d.ts","sourceRoot":"","sources":["../../../src/channel/utils/shellBridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,aAAa;IAC5B,8CAA8C;IAC9C,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACpF,kDAAkD;IAClD,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;CACtE;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,CACT,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,EACvF,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC,KAAK,EAAE;YAAE,IAAI,CAAC,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;SAAE,KAAK,IAAI,CAAC;QACvE,KAAK,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;QAC9B,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,KACE,MAAM,IAAI,CAAC;CACjB;AAoBD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAMpE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,MAAM,IAAI,CAQ/F;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,oBAAoB,EAC1B,aAAa,CAAC,EAAE,MAAM,GACrB,IAAI,CAkBN;AAED,wBAAgB,kBAAkB,IAAI,aAAa,GAAG,SAAS,CAE9D"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Development app wrapper
3
+ * Provides mock props and Apollo Client setup for local development
4
+ */
5
+ export declare function App(): import("react").JSX.Element;
6
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/dev/App.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AA8CH,wBAAgB,GAAG,gCAMlB"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/dev/main.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,aAAa,CAAC"}