@burdenoff/microfe-notification 2026.525.2 → 2026.527.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.
- package/package.json +1 -1
- package/dist/AdminNotificationRoot.d.ts +0 -35
- package/dist/AdminNotificationRoot.d.ts.map +0 -1
- package/dist/AdminNotificationRoutes.d.ts +0 -2
- package/dist/AdminNotificationRoutes.d.ts.map +0 -1
- package/dist/NotificationRoot.d.ts +0 -31
- package/dist/NotificationRoot.d.ts.map +0 -1
- package/dist/NotificationRoutes.d.ts +0 -17
- package/dist/NotificationRoutes.d.ts.map +0 -1
- package/dist/UserNotificationRoot.d.ts +0 -34
- package/dist/UserNotificationRoot.d.ts.map +0 -1
- package/dist/UserNotificationRoutes.d.ts +0 -15
- package/dist/UserNotificationRoutes.d.ts.map +0 -1
- package/dist/__tests__/setup.d.ts +0 -2
- package/dist/__tests__/setup.d.ts.map +0 -1
- package/dist/components/FeatureDisabledPage.d.ts +0 -7
- package/dist/components/FeatureDisabledPage.d.ts.map +0 -1
- package/dist/components/NotificationBell.d.ts +0 -14
- package/dist/components/NotificationBell.d.ts.map +0 -1
- package/dist/components/NotificationCard.d.ts +0 -20
- package/dist/components/NotificationCard.d.ts.map +0 -1
- package/dist/components/NotificationPanel.d.ts +0 -11
- package/dist/components/NotificationPanel.d.ts.map +0 -1
- package/dist/components/RecipientSelector.d.ts +0 -34
- package/dist/components/RecipientSelector.d.ts.map +0 -1
- package/dist/components/TemplatePreview.d.ts +0 -22
- package/dist/components/TemplatePreview.d.ts.map +0 -1
- package/dist/components/VariableInserter.d.ts +0 -12
- package/dist/components/VariableInserter.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.d.ts.map +0 -1
- package/dist/constants/permissions.d.ts +0 -24
- package/dist/constants/permissions.d.ts.map +0 -1
- package/dist/dev/main.d.ts +0 -2
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts +0 -1956
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts +0 -23527
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -2
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts +0 -57851
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/graphql/global-client.d.ts +0 -19
- package/dist/graphql/global-client.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -8
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useNotificationAdmin.d.ts +0 -51
- package/dist/hooks/useNotificationAdmin.d.ts.map +0 -1
- package/dist/hooks/useNotificationAnalytics.d.ts +0 -67
- package/dist/hooks/useNotificationAnalytics.d.ts.map +0 -1
- package/dist/hooks/useNotificationPreferences.d.ts +0 -12
- package/dist/hooks/useNotificationPreferences.d.ts.map +0 -1
- package/dist/hooks/useNotificationTemplates.d.ts +0 -136
- package/dist/hooks/useNotificationTemplates.d.ts.map +0 -1
- package/dist/hooks/useNotificationTopics.d.ts +0 -36
- package/dist/hooks/useNotificationTopics.d.ts.map +0 -1
- package/dist/hooks/useNotifications.d.ts +0 -41
- package/dist/hooks/useNotifications.d.ts.map +0 -1
- package/dist/hooks/useSendNotification.d.ts +0 -159
- package/dist/hooks/useSendNotification.d.ts.map +0 -1
- package/dist/hooks/useUserSearch.d.ts +0 -27
- package/dist/hooks/useUserSearch.d.ts.map +0 -1
- package/dist/index.d.ts +0 -37
- package/dist/index.d.ts.map +0 -1
- package/dist/pages/CreateNotificationPage.d.ts +0 -6
- package/dist/pages/CreateNotificationPage.d.ts.map +0 -1
- package/dist/pages/NotificationCenterPage.d.ts +0 -7
- package/dist/pages/NotificationCenterPage.d.ts.map +0 -1
- package/dist/pages/NotificationHistoryAdminPage.d.ts +0 -3
- package/dist/pages/NotificationHistoryAdminPage.d.ts.map +0 -1
- package/dist/pages/NotificationHistoryPage.d.ts +0 -3
- package/dist/pages/NotificationHistoryPage.d.ts.map +0 -1
- package/dist/pages/NotificationLandingPage.d.ts +0 -11
- package/dist/pages/NotificationLandingPage.d.ts.map +0 -1
- package/dist/pages/NotificationPreferencesPage.d.ts +0 -2
- package/dist/pages/NotificationPreferencesPage.d.ts.map +0 -1
- package/dist/pages/NotificationTemplatesPage.d.ts +0 -8
- package/dist/pages/NotificationTemplatesPage.d.ts.map +0 -1
- package/dist/pages/NotificationTopicsPage.d.ts +0 -2
- package/dist/pages/NotificationTopicsPage.d.ts.map +0 -1
- package/dist/pages/TemplateEditorPage.d.ts +0 -13
- package/dist/pages/TemplateEditorPage.d.ts.map +0 -1
- package/dist/providers/NotificationProvider.d.ts +0 -19
- package/dist/providers/NotificationProvider.d.ts.map +0 -1
- package/dist/shared/hooks/useTr.d.ts +0 -14
- package/dist/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/store/notificationStore.d.ts +0 -32
- package/dist/store/notificationStore.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -251
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -68
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -3
- package/dist/utils/nativeBridge.d.ts.map +0 -1
- package/dist/utils/notificationHistoryExport.d.ts +0 -13
- package/dist/utils/notificationHistoryExport.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { NotificationRootProps } from './types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Admin Root component for the Notification microfrontend.
|
|
5
|
-
*
|
|
6
|
-
* This is the full admin entry point intended for `admin-app`. It exposes all
|
|
7
|
-
* notification surfaces (Notification Center, History, Templates, Create &
|
|
8
|
-
* Send) and sets up the required provider stack. In-page actions remain gated
|
|
9
|
-
* by RBAC via `usePermissions` checks.
|
|
10
|
-
*
|
|
11
|
-
* For product shells that only need user-facing surfaces, use
|
|
12
|
-
* `UserNotificationRoot` instead.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* import { AdminNotificationRoot, type NotificationRootProps } from '@burdenoff/micro-fe/notification';
|
|
17
|
-
*
|
|
18
|
-
* function App() {
|
|
19
|
-
* const props: NotificationRootProps = {
|
|
20
|
-
* basePath: '/notifications',
|
|
21
|
-
* navigate: (path) => router.push(path),
|
|
22
|
-
* currentUser: { id: '1', email: 'user@example.com' },
|
|
23
|
-
* workspaceId: 'ws-123',
|
|
24
|
-
* apiGatewayUrl: 'https://api.example.com',
|
|
25
|
-
* authToken: 'token',
|
|
26
|
-
* registerNavItems: (items) => { return () => {}; },
|
|
27
|
-
* onNotificationClick: (notification) => console.log('Clicked:', notification),
|
|
28
|
-
* };
|
|
29
|
-
*
|
|
30
|
-
* return <AdminNotificationRoot {...props} />;
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export declare function AdminNotificationRoot(props: NotificationRootProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
//# sourceMappingURL=AdminNotificationRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminNotificationRoot.d.ts","sourceRoot":"","sources":["../src/AdminNotificationRoot.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAuB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,qBAAqB,2CAwHjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminNotificationRoutes.d.ts","sourceRoot":"","sources":["../src/AdminNotificationRoutes.tsx"],"names":[],"mappings":"AAsFA,wBAAgB,uBAAuB,4CAwGtC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { NotificationRootProps } from './types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Root component for the Notification microfrontend.
|
|
5
|
-
*
|
|
6
|
-
* This is the main entry point that host applications import and render.
|
|
7
|
-
* It sets up the necessary providers and renders the internal routing.
|
|
8
|
-
* Automatically registers navigation items with the shell if registration functions are provided.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* import { NotificationRoot, type NotificationRootProps } from '@burdenoff/micro-fe/notification';
|
|
13
|
-
*
|
|
14
|
-
* function App() {
|
|
15
|
-
* const props: NotificationRootProps = {
|
|
16
|
-
* basePath: '/notifications',
|
|
17
|
-
* navigate: (path) => router.push(path),
|
|
18
|
-
* currentUser: { id: '1', email: 'user@example.com' },
|
|
19
|
-
* workspaceId: 'ws-123',
|
|
20
|
-
* apiGatewayUrl: 'https://api.example.com',
|
|
21
|
-
* authToken: 'token',
|
|
22
|
-
* registerNavItems: (items) => { return () => {}; },
|
|
23
|
-
* onNotificationClick: (notification) => console.log('Clicked:', notification),
|
|
24
|
-
* };
|
|
25
|
-
*
|
|
26
|
-
* return <NotificationRoot {...props} />;
|
|
27
|
-
* }
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare function NotificationRoot(props: NotificationRootProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
//# sourceMappingURL=NotificationRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationRoot.d.ts","sourceRoot":"","sources":["../src/NotificationRoot.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAuB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG1E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CAkG5D"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal router for the Notification microfrontend.
|
|
3
|
-
* This component handles routing within the microfrontend using React Router v7.
|
|
4
|
-
*
|
|
5
|
-
* Routes:
|
|
6
|
-
* - / → Redirect to notification center
|
|
7
|
-
* - /center → Notification center (in-app notifications)
|
|
8
|
-
* - /history → Notification history and archive
|
|
9
|
-
* - /templates → Notification templates list (admin)
|
|
10
|
-
* - /templates/new → Create new template (admin)
|
|
11
|
-
* - /templates/:templateId → Edit template (admin)
|
|
12
|
-
* - /create → Create and send notification (admin)
|
|
13
|
-
* - /topics → Manage topics (admin)
|
|
14
|
-
* - /preferences → User topic preferences
|
|
15
|
-
*/
|
|
16
|
-
export declare function NotificationRoutes(): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
//# sourceMappingURL=NotificationRoutes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationRoutes.d.ts","sourceRoot":"","sources":["../src/NotificationRoutes.tsx"],"names":[],"mappings":"AA0CA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,4CA0BjC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { NotificationRootProps } from './types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* User Root component for the Notification microfrontend.
|
|
5
|
-
*
|
|
6
|
-
* This is the entry point host product shells should import. It exposes only
|
|
7
|
-
* the user-facing notification surfaces (Notification Center, History) and
|
|
8
|
-
* sets up the required provider stack.
|
|
9
|
-
*
|
|
10
|
-
* For the full admin experience (templates, create/send notification) use
|
|
11
|
-
* `AdminNotificationRoot` instead.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* import { UserNotificationRoot, type NotificationRootProps } from '@burdenoff/micro-fe/notification';
|
|
16
|
-
*
|
|
17
|
-
* function App() {
|
|
18
|
-
* const props: NotificationRootProps = {
|
|
19
|
-
* basePath: '/notifications',
|
|
20
|
-
* navigate: (path) => router.push(path),
|
|
21
|
-
* currentUser: { id: '1', email: 'user@example.com' },
|
|
22
|
-
* workspaceId: 'ws-123',
|
|
23
|
-
* apiGatewayUrl: 'https://api.example.com',
|
|
24
|
-
* authToken: 'token',
|
|
25
|
-
* registerNavItems: (items) => { return () => {}; },
|
|
26
|
-
* onNotificationClick: (notification) => console.log('Clicked:', notification),
|
|
27
|
-
* };
|
|
28
|
-
*
|
|
29
|
-
* return <UserNotificationRoot {...props} />;
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare function UserNotificationRoot(props: NotificationRootProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
//# sourceMappingURL=UserNotificationRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserNotificationRoot.d.ts","sourceRoot":"","sources":["../src/UserNotificationRoot.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAuB,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,qBAAqB,2CA4FhE"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal router for the User-facing Notification microfrontend.
|
|
3
|
-
* This component handles routing within the microfrontend using React Router v7.
|
|
4
|
-
*
|
|
5
|
-
* Only exposes user-facing routes intended for product shells. RBAC permissions
|
|
6
|
-
* still gate in-page actions via usePermissions checks.
|
|
7
|
-
*
|
|
8
|
-
* Routes:
|
|
9
|
-
* - / → Redirect to notification center
|
|
10
|
-
* - /center → Notification center (in-app notifications)
|
|
11
|
-
* - /history → Notification history and archive
|
|
12
|
-
* - /preferences → Topic subscriptions and preferences
|
|
13
|
-
*/
|
|
14
|
-
export declare function UserNotificationRoutes(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
//# sourceMappingURL=UserNotificationRoutes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserNotificationRoutes.d.ts","sourceRoot":"","sources":["../src/UserNotificationRoutes.tsx"],"names":[],"mappings":"AA6BA;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,4CAsCrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/__tests__/setup.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface FeatureDisabledPageProps {
|
|
2
|
-
title: string;
|
|
3
|
-
description: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function FeatureDisabledPage({ title, description }: FeatureDisabledPageProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=FeatureDisabledPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureDisabledPage.d.ts","sourceRoot":"","sources":["../../src/components/FeatureDisabledPage.tsx"],"names":[],"mappings":"AAEA,UAAU,wBAAwB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,wBAAwB,2CAYnF"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notification bell icon with unread count badge
|
|
3
|
-
*
|
|
4
|
-
* This component should be placed in the global header/navbar
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <NotificationBell onClick={() => navigate('/notifications/center')} />
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export declare function NotificationBell({ onClick }: {
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=NotificationBell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationBell.d.ts","sourceRoot":"","sources":["../../src/components/NotificationBell.tsx"],"names":[],"mappings":"AAeA;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,2CAuFrE"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Notification } from '../types';
|
|
2
|
-
|
|
3
|
-
interface NotificationCardProps {
|
|
4
|
-
notification: Notification;
|
|
5
|
-
onMarkAsRead?: (id: string) => void;
|
|
6
|
-
onArchive?: (id: string) => void;
|
|
7
|
-
onAction?: (notificationId: string, actionId?: string) => void;
|
|
8
|
-
onClick?: (notification: Notification) => void;
|
|
9
|
-
showArchivedState?: boolean;
|
|
10
|
-
compact?: boolean;
|
|
11
|
-
analyticsSource?: 'center' | 'panel' | 'history' | 'admin_history';
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Notification card component
|
|
15
|
-
*
|
|
16
|
-
* Displays notification information with action buttons
|
|
17
|
-
*/
|
|
18
|
-
export declare function NotificationCard({ notification, onMarkAsRead, onArchive, onAction, onClick, showArchivedState, compact, analyticsSource, }: NotificationCardProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=NotificationCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationCard.d.ts","sourceRoot":"","sources":["../../src/components/NotificationCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAY7C,UAAU,qBAAqB;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;IAC/C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,eAAe,CAAC;CACpE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,OAAO,EACP,iBAAyB,EACzB,OAAe,EACf,eAA0B,GAC3B,EAAE,qBAAqB,2CAmKvB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface NotificationPanelProps {
|
|
2
|
-
onViewAll?: () => void;
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* Notification dropdown panel
|
|
6
|
-
*
|
|
7
|
-
* Quick view of recent notifications that appears when clicking the bell icon
|
|
8
|
-
*/
|
|
9
|
-
export declare function NotificationPanel({ onViewAll }: NotificationPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=NotificationPanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../src/components/NotificationPanel.tsx"],"names":[],"mappings":"AAMA,UAAU,sBAAsB;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE,sBAAsB,kDA4GtE"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { RecipientInput, NotificationChannelType } from '../hooks/useSendNotification';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Recipient with display info
|
|
5
|
-
*/
|
|
6
|
-
export interface Recipient extends RecipientInput {
|
|
7
|
-
id: string;
|
|
8
|
-
displayName: string;
|
|
9
|
-
type: 'email' | 'phone' | 'user' | 'manual';
|
|
10
|
-
}
|
|
11
|
-
interface RecipientSelectorProps {
|
|
12
|
-
recipients: Recipient[];
|
|
13
|
-
onChange: (recipients: Recipient[]) => void;
|
|
14
|
-
channel: NotificationChannelType;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
maxRecipients?: number;
|
|
18
|
-
error?: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* RecipientSelector component
|
|
22
|
-
*
|
|
23
|
-
* Allows selecting multiple recipients for notifications.
|
|
24
|
-
* Supports email, phone, and manual input based on channel type.
|
|
25
|
-
*/
|
|
26
|
-
export declare function RecipientSelector({ recipients, onChange, channel, placeholder, disabled, maxRecipients, error, }: RecipientSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
/**
|
|
28
|
-
* Compact recipient display for read-only views
|
|
29
|
-
*/
|
|
30
|
-
export declare function RecipientList({ recipients }: {
|
|
31
|
-
recipients: Recipient[];
|
|
32
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=RecipientSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecipientSelector.d.ts","sourceRoot":"","sources":["../../src/components/RecipientSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAG5F;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC7C;AAED,UAAU,sBAAsB;IAC9B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,uBAAuB,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAyCD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,UAAU,EACV,QAAQ,EACR,OAAO,EACP,WAAW,EACX,QAAgB,EAChB,aAAmB,EACnB,KAAK,GACN,EAAE,sBAAsB,2CAmTxB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,SAAS,EAAE,CAAA;CAAE,2CA6BxE"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type PreviewChannel = 'email' | 'sms' | 'push' | 'in_app';
|
|
2
|
-
export interface TemplatePreviewProps {
|
|
3
|
-
channel: PreviewChannel;
|
|
4
|
-
subject: string;
|
|
5
|
-
body: string;
|
|
6
|
-
html: string;
|
|
7
|
-
appName: string;
|
|
8
|
-
onChannelChange: (channel: PreviewChannel) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Template Preview Component
|
|
12
|
-
*
|
|
13
|
-
* Shows how a notification template will look across different channels.
|
|
14
|
-
* Templates are channel-agnostic — this component lets you preview
|
|
15
|
-
* the same content as it would render on Email, SMS, Push, or In-App.
|
|
16
|
-
*
|
|
17
|
-
* Uses semantic theme tokens (text-primary, bg-surface, etc.) for theme
|
|
18
|
-
* compatibility, with hardcoded colors only inside device mockups where
|
|
19
|
-
* the real device UI is always dark (iPhone SMS, Push lock screen).
|
|
20
|
-
*/
|
|
21
|
-
export declare function TemplatePreview({ channel, subject, body, html, appName, onChannelChange, }: TemplatePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
//# sourceMappingURL=TemplatePreview.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TemplatePreview.d.ts","sourceRoot":"","sources":["../../src/components/TemplatePreview.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CACpD;AAkED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,eAAe,GAChB,EAAE,oBAAoB,2CAkVtB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface VariableInserterProps {
|
|
2
|
-
variables: Record<string, unknown>;
|
|
3
|
-
onInsert: (variable: string) => void;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Variable Inserter Component
|
|
8
|
-
* Dropdown to insert template variables
|
|
9
|
-
*/
|
|
10
|
-
export declare function VariableInserter({ variables, onInsert, className }: VariableInserterProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=VariableInserter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VariableInserter.d.ts","sourceRoot":"","sources":["../../src/components/VariableInserter.tsx"],"names":[],"mappings":"AAIA,UAAU,qBAAqB;IAC7B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqBD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAc,EAAE,EAAE,qBAAqB,2CA8F9F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notification Permission Constants
|
|
3
|
-
*
|
|
4
|
-
* All permission strings for Notification resources.
|
|
5
|
-
* Use with fe-libs usePermissions hook: hasPermission(NOTIFICATION_PERMISSIONS.NOTIFICATION_LIST)
|
|
6
|
-
*
|
|
7
|
-
* Resource types:
|
|
8
|
-
* - notification: list, read, create, update, delete, send
|
|
9
|
-
* - notification-template: list, create, update, delete
|
|
10
|
-
*/
|
|
11
|
-
export declare const NOTIFICATION_PERMISSIONS: {
|
|
12
|
-
readonly NOTIFICATION_LIST: "notification:list";
|
|
13
|
-
readonly NOTIFICATION_READ: "notification:read";
|
|
14
|
-
readonly NOTIFICATION_CREATE: "notification:create";
|
|
15
|
-
readonly NOTIFICATION_UPDATE: "notification:update";
|
|
16
|
-
readonly NOTIFICATION_DELETE: "notification:delete";
|
|
17
|
-
readonly NOTIFICATION_SEND: "notification:send";
|
|
18
|
-
readonly TEMPLATE_LIST: "notification-template:list";
|
|
19
|
-
readonly TEMPLATE_CREATE: "notification-template:create";
|
|
20
|
-
readonly TEMPLATE_UPDATE: "notification-template:update";
|
|
21
|
-
readonly TEMPLATE_DELETE: "notification-template:delete";
|
|
22
|
-
};
|
|
23
|
-
export type NotificationPermission = (typeof NOTIFICATION_PERMISSIONS)[keyof typeof NOTIFICATION_PERMISSIONS];
|
|
24
|
-
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/constants/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;CAc3B,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/dev/main.d.ts
DELETED
package/dist/dev/main.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/dev/main.tsx"],"names":[],"mappings":"AAKA,OAAO,cAAc,CAAC"}
|