@novu/js 3.16.0 → 3.17.0
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/dist/cjs/{chunk-6I5A5OGE.js → chunk-SP44ETLM.js} +231 -25
- package/dist/{esm/inbox-service-CEMMLHsX.d.mts → cjs/inbox-service-CGCuuYnv.d.ts} +52 -3
- package/dist/cjs/index.d.ts +16 -3
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/internal/index.d.ts +1 -1
- package/dist/{esm/novu-BlonRpYH.d.mts → cjs/novu-CmNBco-0.d.ts} +10 -1
- package/dist/cjs/themes/index.d.ts +3 -3
- package/dist/{esm/types-B29Y1SQy.d.mts → cjs/types-BF6zvyj6.d.ts} +27 -6
- package/dist/cjs/ui/index.d.ts +56 -8
- package/dist/cjs/ui/index.js +959 -208
- package/dist/esm/{chunk-FBE56J52.mjs → chunk-BKA3HRZM.mjs} +231 -25
- package/dist/{cjs/inbox-service-CEMMLHsX.d.ts → esm/inbox-service-CGCuuYnv.d.mts} +52 -3
- package/dist/esm/index.d.mts +16 -3
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/index.d.mts +1 -1
- package/dist/{cjs/novu-ChPiHuXt.d.ts → esm/novu-CFYEiYN8.d.mts} +10 -1
- package/dist/esm/themes/index.d.mts +3 -3
- package/dist/{cjs/types-CPxEgcM4.d.ts → esm/types-CJKmgwu6.d.mts} +27 -6
- package/dist/esm/ui/index.d.mts +56 -8
- package/dist/esm/ui/index.mjs +952 -201
- package/dist/novu.min.js +16 -16
- package/dist/novu.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Preference, K as Schedule, N as Notification, Y as TopicSubscription, U as SubscriptionPreference, y as NovuOptions, a as NotificationFilter, a2 as WorkflowCriticalityEnum, Z as UnreadCount } from './inbox-service-
|
|
2
|
-
import { N as Novu } from './novu-
|
|
1
|
+
import { P as Preference, K as Schedule, N as Notification, Y as TopicSubscription, U as SubscriptionPreference, y as NovuOptions, a as NotificationFilter, a2 as WorkflowCriticalityEnum, Z as UnreadCount } from './inbox-service-CGCuuYnv.mjs';
|
|
2
|
+
import { N as Novu } from './novu-CFYEiYN8.mjs';
|
|
3
3
|
|
|
4
4
|
declare const commonAppearanceKeys: readonly ["root", "button", "input", "icon", "badge", "popoverContent", "popoverTrigger", "popoverClose", "collapsible", "tooltipContent", "tooltipTrigger"];
|
|
5
5
|
declare const inboxAppearanceKeys: readonly ["bellIcon", "lockIcon", "bellContainer", "severityHigh__bellContainer", "severityMedium__bellContainer", "severityLow__bellContainer", "bellSeverityGlow", "severityGlowHigh__bellSeverityGlow", "severityGlowMedium__bellSeverityGlow", "severityGlowLow__bellSeverityGlow", "bellDot", "preferences__button", "preferencesContainer", "inboxHeader", "loading", "dropdownContent", "dropdownTrigger", "dropdownItem", "dropdownItemLabel", "dropdownItemLabelContainer", "dropdownItemLeft__icon", "dropdownItemRight__icon", "dropdownItem__icon", "datePicker", "datePickerGrid", "datePickerGridRow", "datePickerGridCell", "datePickerGridCellTrigger", "datePickerTrigger", "datePickerGridHeader", "datePickerControl", "datePickerControlPrevTrigger", "datePickerControlNextTrigger", "datePickerControlPrevTrigger__icon", "datePickerControlNextTrigger__icon", "datePickerCalendar", "datePickerHeaderMonth", "datePickerCalendarDay__button", "timePicker", "timePicker__hourSelect", "timePicker__minuteSelect", "timePicker__periodSelect", "timePicker__separator", "timePickerHour__input", "timePickerMinute__input", "snoozeDatePicker", "snoozeDatePicker__actions", "snoozeDatePickerCancel__button", "snoozeDatePickerApply__button", "snoozeDatePicker__timePickerContainer", "snoozeDatePicker__timePickerLabel", "back__button", "skeletonText", "skeletonAvatar", "skeletonSwitch", "skeletonSwitchThumb", "tabsRoot", "tabsList", "tabsContent", "tabsTrigger", "dots", "inboxContent", "inbox__popoverTrigger", "inbox__popoverContent", "notificationListContainer", "notificationList", "notificationListEmptyNoticeContainer", "notificationListEmptyNoticeOverlay", "notificationListEmptyNoticeIcon", "notificationListEmptyNotice", "notificationList__skeleton", "notificationList__skeletonContent", "notificationList__skeletonItem", "notificationList__skeletonAvatar", "notificationList__skeletonText", "notificationListNewNotificationsNotice__button", "notification", "severityHigh__notification", "severityMedium__notification", "severityLow__notification", "notificationBar", "severityHigh__notificationBar", "severityMedium__notificationBar", "severityLow__notificationBar", "notificationContent", "notificationTextContainer", "notificationDot", "notificationSubject", "notificationSubject__strong", "notificationSubject__em", "notificationBody", "notificationBody__strong", "notificationBody__em", "notificationBodyContainer", "notificationImage", "notificationImageLoadingFallback", "notificationDate", "notificationDateActionsContainer", "notificationDefaultActions", "notificationCustomActions", "notificationPrimaryAction__button", "notificationSecondaryAction__button", "notificationRead__button", "notificationUnread__button", "notificationArchive__button", "notificationUnarchive__button", "notificationSnooze__button", "notificationUnsnooze__button", "notificationRead__icon", "notificationUnread__icon", "notificationArchive__icon", "notificationUnarchive__icon", "notificationSnooze__icon", "notificationUnsnooze__icon", "notificationsTabs__tabsRoot", "notificationsTabs__tabsList", "notificationsTabs__tabsContent", "notificationsTabs__tabsTrigger", "notificationsTabsTriggerLabel", "notificationsTabsTriggerCount", "inboxStatus__title", "inboxStatus__dropdownTrigger", "inboxStatus__dropdownContent", "inboxStatus__dropdownItem", "inboxStatus__dropdownItemLabel", "inboxStatus__dropdownItemLabelContainer", "inboxStatus__dropdownItemLeft__icon", "inboxStatus__dropdownItemRight__icon", "inboxStatus__dropdownItem__icon", "inboxStatus__dropdownItemCheck__icon", "moreActionsContainer", "moreActions__dropdownTrigger", "moreActions__dropdownContent", "moreActions__dropdownItem", "moreActions__dropdownItemLabel", "moreActions__dropdownItemLeft__icon", "moreActions__dots", "moreTabs__button", "moreTabs__icon", "moreTabs__dropdownTrigger", "moreTabs__dropdownContent", "moreTabs__dropdownItem", "moreTabs__dropdownItemLabel", "moreTabs__dropdownItemRight__icon", "workflowContainer", "workflowLabel", "workflowLabelHeader", "workflowLabelHeaderContainer", "workflowLabelIcon", "workflowLabelContainer", "workflowContainerDisabledNotice", "workflowLabelDisabled__icon", "workflowContainerRight__icon", "workflowArrow__icon", "workflowDescription", "preferencesGroupContainer", "preferencesGroupHeader", "preferencesGroupLabelContainer", "preferencesGroupLabelIcon", "preferencesGroupLabel", "preferencesGroupActionsContainer", "preferencesGroupActionsContainerRight__icon", "preferencesGroupBody", "preferencesGroupChannels", "preferencesGroupInfo", "preferencesGroupInfoIcon", "preferencesGroupWorkflows", "channelContainer", "channelIconContainer", "channel__icon", "channelsContainerCollapsible", "channelsContainer", "channelLabel", "channelLabelContainer", "channelName", "channelSwitchContainer", "channelSwitch", "channelSwitchThumb", "preferencesHeader", "preferencesHeader__back__button", "preferencesHeader__back__button__icon", "preferencesHeader__title", "preferencesHeader__icon", "preferencesListEmptyNoticeContainer", "preferencesListEmptyNotice", "preferencesList__skeleton", "preferencesList__skeletonContent", "preferencesList__skeletonItem", "preferencesList__skeletonIcon", "preferencesList__skeletonSwitch", "preferencesList__skeletonSwitchThumb", "preferencesList__skeletonText", "scheduleContainer", "scheduleHeader", "scheduleLabelContainer", "scheduleLabelScheduleIcon", "scheduleLabelInfoIcon", "scheduleLabel", "scheduleActionsContainer", "scheduleActionsContainerRight", "scheduleBody", "scheduleDescription", "scheduleTable", "scheduleTableHeader", "scheduleHeaderColumn", "scheduleTableBody", "scheduleBodyRow", "scheduleBodyColumn", "scheduleInfoContainer", "scheduleInfoIcon", "scheduleInfo", "dayScheduleCopyTitle", "dayScheduleCopyIcon", "dayScheduleCopySelectAll", "dayScheduleCopyDay", "dayScheduleCopyFooterContainer", "dayScheduleCopy__dropdownTrigger", "dayScheduleCopy__dropdownContent", "timeSelect__dropdownTrigger", "timeSelect__time", "timeSelect__dropdownContent", "timeSelect__dropdownItem", "timeSelect__dropdownItemLabel", "timeSelect__dropdownItemLabelContainer", "timeSelect__dropdownItemCheck__icon", "notificationSnooze__dropdownContent", "notificationSnooze__dropdownItem", "notificationSnooze__dropdownItem__icon", "notificationSnoozeCustomTime_popoverContent", "notificationDeliveredAt__badge", "notificationDeliveredAt__icon", "notificationSnoozedUntil__icon", "strong", "em"];
|
|
@@ -7,6 +7,7 @@ declare const subscriptionAppearanceKeys: readonly ["subscriptionContainer", "su
|
|
|
7
7
|
declare const connectChatAppearanceKeys: readonly ["connectChatContainer", "connectChatButton", "connectChatButtonContainer", "connectChatButtonLabel", "connectChatMisconfiguredTooltip"];
|
|
8
8
|
declare const channelConnectButtonAppearanceKeys: readonly ["channelConnectButtonContainer", "channelConnectButton", "channelConnectButtonInner", "channelConnectButtonIcon", "channelConnectButtonLabel", "channelConnectButtonMisconfiguredTooltip"];
|
|
9
9
|
declare const linkSlackUserAppearanceKeys: readonly ["linkSlackUserContainer", "linkSlackUserButton", "linkSlackUserButtonContainer", "linkSlackUserButtonIcon", "linkSlackUserButtonLabel"];
|
|
10
|
+
declare const linkMsTeamsUserAppearanceKeys: readonly ["linkMsTeamsUserContainer", "linkMsTeamsUserButton", "linkMsTeamsUserButtonContainer", "linkMsTeamsUserButtonIcon", "linkMsTeamsUserButtonLabel"];
|
|
10
11
|
|
|
11
12
|
declare const defaultInboxLocalization: {
|
|
12
13
|
readonly 'inbox.filters.dropdownOptions.unread': "Unread only";
|
|
@@ -758,6 +759,7 @@ type SubscriptionAppearanceCallbackFunction<K extends SubscriptionAppearanceCall
|
|
|
758
759
|
type SubscriptionAppearanceKey = (typeof subscriptionAppearanceKeys)[number];
|
|
759
760
|
type ConnectChatAppearanceKey = (typeof connectChatAppearanceKeys)[number];
|
|
760
761
|
type SlackLinkUserAppearanceKey = (typeof linkSlackUserAppearanceKeys)[number];
|
|
762
|
+
type MsTeamsLinkUserAppearanceKey = (typeof linkMsTeamsUserAppearanceKeys)[number];
|
|
761
763
|
type ChannelConnectButtonAppearanceKey = (typeof channelConnectButtonAppearanceKeys)[number];
|
|
762
764
|
type SlackLinkUserAppearanceCallback = {
|
|
763
765
|
linkSlackUserContainer: (context: {
|
|
@@ -778,6 +780,25 @@ type SlackLinkUserAppearanceCallback = {
|
|
|
778
780
|
};
|
|
779
781
|
type SlackLinkUserAppearanceCallbackKeys = keyof SlackLinkUserAppearanceCallback;
|
|
780
782
|
type SlackLinkUserAppearanceCallbackFunction<K extends SlackLinkUserAppearanceCallbackKeys> = SlackLinkUserAppearanceCallback[K];
|
|
783
|
+
type MsTeamsLinkUserAppearanceCallback = {
|
|
784
|
+
linkMsTeamsUserContainer: (context: {
|
|
785
|
+
linked: boolean;
|
|
786
|
+
}) => string;
|
|
787
|
+
linkMsTeamsUserButton: (context: {
|
|
788
|
+
linked: boolean;
|
|
789
|
+
}) => string;
|
|
790
|
+
linkMsTeamsUserButtonContainer: (context: {
|
|
791
|
+
linked: boolean;
|
|
792
|
+
}) => string;
|
|
793
|
+
linkMsTeamsUserButtonIcon: (context: {
|
|
794
|
+
linked: boolean;
|
|
795
|
+
}) => string;
|
|
796
|
+
linkMsTeamsUserButtonLabel: (context: {
|
|
797
|
+
linked: boolean;
|
|
798
|
+
}) => string;
|
|
799
|
+
};
|
|
800
|
+
type MsTeamsLinkUserAppearanceCallbackKeys = keyof MsTeamsLinkUserAppearanceCallback;
|
|
801
|
+
type MsTeamsLinkUserAppearanceCallbackFunction<K extends MsTeamsLinkUserAppearanceCallbackKeys> = MsTeamsLinkUserAppearanceCallback[K];
|
|
781
802
|
type ChannelConnectButtonAppearanceCallback = {
|
|
782
803
|
channelConnectButtonContainer: (context: {
|
|
783
804
|
connected: boolean;
|
|
@@ -817,9 +838,9 @@ type SubscriptionTheme = {
|
|
|
817
838
|
type SubscriptionAppearance = SubscriptionTheme & {
|
|
818
839
|
baseTheme?: SubscriptionTheme | SubscriptionTheme[];
|
|
819
840
|
};
|
|
820
|
-
type AllAppearanceCallbackKeys = InboxAppearanceCallbackKeys | SubscriptionAppearanceCallbackKeys | SlackLinkUserAppearanceCallbackKeys | ChannelConnectButtonAppearanceCallbackKeys;
|
|
821
|
-
type AllAppearanceCallbackFunction<K extends AllAppearanceCallbackKeys> = K extends InboxAppearanceCallbackKeys ? InboxAppearanceCallbackFunction<K> : K extends SubscriptionAppearanceCallbackKeys ? SubscriptionAppearanceCallbackFunction<K> : K extends SlackLinkUserAppearanceCallbackKeys ? SlackLinkUserAppearanceCallbackFunction<K> : K extends ChannelConnectButtonAppearanceCallbackKeys ? ChannelConnectButtonAppearanceCallbackFunction<K> : never;
|
|
822
|
-
type AllAppearanceKey = CommonAppearanceKey | InboxAppearanceKey | SubscriptionAppearanceKey | ConnectChatAppearanceKey | SlackLinkUserAppearanceKey | ChannelConnectButtonAppearanceKey;
|
|
841
|
+
type AllAppearanceCallbackKeys = InboxAppearanceCallbackKeys | SubscriptionAppearanceCallbackKeys | SlackLinkUserAppearanceCallbackKeys | MsTeamsLinkUserAppearanceCallbackKeys | ChannelConnectButtonAppearanceCallbackKeys;
|
|
842
|
+
type AllAppearanceCallbackFunction<K extends AllAppearanceCallbackKeys> = K extends InboxAppearanceCallbackKeys ? InboxAppearanceCallbackFunction<K> : K extends SubscriptionAppearanceCallbackKeys ? SubscriptionAppearanceCallbackFunction<K> : K extends SlackLinkUserAppearanceCallbackKeys ? SlackLinkUserAppearanceCallbackFunction<K> : K extends MsTeamsLinkUserAppearanceCallbackKeys ? MsTeamsLinkUserAppearanceCallbackFunction<K> : K extends ChannelConnectButtonAppearanceCallbackKeys ? ChannelConnectButtonAppearanceCallbackFunction<K> : never;
|
|
843
|
+
type AllAppearanceKey = CommonAppearanceKey | InboxAppearanceKey | SubscriptionAppearanceKey | ConnectChatAppearanceKey | SlackLinkUserAppearanceKey | MsTeamsLinkUserAppearanceKey | ChannelConnectButtonAppearanceKey;
|
|
823
844
|
type AllElements = Partial<{
|
|
824
845
|
[K in CommonAppearanceKey]: ElementStyles;
|
|
825
846
|
} & {
|
|
@@ -881,4 +902,4 @@ type PreferenceGroups = Array<{
|
|
|
881
902
|
filter: PreferenceGroupFilter;
|
|
882
903
|
}>;
|
|
883
904
|
|
|
884
|
-
export { type
|
|
905
|
+
export { type SubscriptionAppearanceCallbackKeys as $, type AvatarRenderer as A, type BellRenderer as B, type CustomActionsRenderer as C, type DefaultActionsRenderer as D, type ElementStyles as E, type InboxElements as F, type InboxIconKey as G, type InboxIconOverrides as H, type IconRenderer as I, type InboxLocalization as J, type InboxLocalizationKey as K, type InboxTheme as L, type MsTeamsLinkUserAppearanceCallback as M, type NotificationClickHandler as N, type MsTeamsLinkUserAppearanceCallbackFunction as O, type PreferencesFilter as P, type MsTeamsLinkUserAppearanceCallbackKeys as Q, type RouterPush as R, type SubjectRenderer as S, type Tab as T, NotificationStatus as U, type SlackLinkUserAppearanceCallback as V, type SlackLinkUserAppearanceCallbackFunction as W, type SlackLinkUserAppearanceCallbackKeys as X, type SubscriptionAppearance as Y, type SubscriptionAppearanceCallback as Z, type SubscriptionAppearanceCallbackFunction as _, type NotificationActionClickHandler as a, type SubscriptionAppearanceKey as a0, type SubscriptionElements as a1, type SubscriptionIconKey as a2, type SubscriptionIconOverrides as a3, type SubscriptionLocalization as a4, type SubscriptionLocalizationKey as a5, type SubscriptionTheme as a6, type Variables as a7, type NotificationRenderer as b, type BodyRenderer as c, type BaseNovuProviderProps as d, type NovuProviderProps as e, type AllAppearance as f, type AllLocalization as g, type PreferenceGroups as h, type PreferencesSort as i, type AllAppearanceCallbackFunction as j, type AllAppearanceCallbackKeys as k, type AllAppearanceKey as l, type AllElements as m, type AllIconKey as n, type AllIconOverrides as o, type AllLocalizationKey as p, type AllTheme as q, type ChannelConnectButtonAppearanceCallback as r, type ChannelConnectButtonAppearanceCallbackFunction as s, type ChannelConnectButtonAppearanceCallbackKeys as t, type ChannelConnectButtonIconKey as u, type InboxAppearance as v, type InboxAppearanceCallback as w, type InboxAppearanceCallbackFunction as x, type InboxAppearanceCallbackKeys as y, type InboxAppearanceKey as z };
|
package/dist/esm/ui/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { f as Context, a6 as ConnectionMode, a5 as WorkflowIdentifierOrId, Y as TopicSubscription, y as NovuOptions } from '../inbox-service-
|
|
2
|
-
export { N as Notification } from '../inbox-service-
|
|
3
|
-
import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, A as AvatarRenderer, S as SubjectRenderer, c as BodyRenderer, D as DefaultActionsRenderer, C as CustomActionsRenderer, d as BaseNovuProviderProps, e as NovuProviderProps, f as AllAppearance, g as AllLocalization, T as Tab, P as PreferencesFilter, h as PreferenceGroups, i as PreferencesSort, R as RouterPush } from '../types-
|
|
4
|
-
export { j as AllAppearanceCallbackFunction, k as AllAppearanceCallbackKeys, l as AllAppearanceKey, m as AllElements, n as AllIconKey, o as AllIconOverrides, p as AllLocalizationKey, q as AllTheme, r as ChannelConnectButtonAppearanceCallback, s as ChannelConnectButtonAppearanceCallbackFunction, t as ChannelConnectButtonAppearanceCallbackKeys, u as ChannelConnectButtonIconKey, E as ElementStyles, I as IconRenderer, v as InboxAppearance, w as InboxAppearanceCallback, x as InboxAppearanceCallbackFunction, y as InboxAppearanceCallbackKeys, z as InboxAppearanceKey, F as InboxElements, G as InboxIconKey, H as InboxIconOverrides, J as InboxLocalization, K as InboxLocalizationKey, L as InboxTheme, M as
|
|
1
|
+
import { f as Context, a6 as ConnectionMode, a5 as WorkflowIdentifierOrId, Y as TopicSubscription, y as NovuOptions } from '../inbox-service-CGCuuYnv.mjs';
|
|
2
|
+
export { N as Notification } from '../inbox-service-CGCuuYnv.mjs';
|
|
3
|
+
import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, A as AvatarRenderer, S as SubjectRenderer, c as BodyRenderer, D as DefaultActionsRenderer, C as CustomActionsRenderer, d as BaseNovuProviderProps, e as NovuProviderProps, f as AllAppearance, g as AllLocalization, T as Tab, P as PreferencesFilter, h as PreferenceGroups, i as PreferencesSort, R as RouterPush } from '../types-CJKmgwu6.mjs';
|
|
4
|
+
export { j as AllAppearanceCallbackFunction, k as AllAppearanceCallbackKeys, l as AllAppearanceKey, m as AllElements, n as AllIconKey, o as AllIconOverrides, p as AllLocalizationKey, q as AllTheme, r as ChannelConnectButtonAppearanceCallback, s as ChannelConnectButtonAppearanceCallbackFunction, t as ChannelConnectButtonAppearanceCallbackKeys, u as ChannelConnectButtonIconKey, E as ElementStyles, I as IconRenderer, v as InboxAppearance, w as InboxAppearanceCallback, x as InboxAppearanceCallbackFunction, y as InboxAppearanceCallbackKeys, z as InboxAppearanceKey, F as InboxElements, G as InboxIconKey, H as InboxIconOverrides, J as InboxLocalization, K as InboxLocalizationKey, L as InboxTheme, M as MsTeamsLinkUserAppearanceCallback, O as MsTeamsLinkUserAppearanceCallbackFunction, Q as MsTeamsLinkUserAppearanceCallbackKeys, U as NotificationStatus, V as SlackLinkUserAppearanceCallback, W as SlackLinkUserAppearanceCallbackFunction, X as SlackLinkUserAppearanceCallbackKeys, Y as SubscriptionAppearance, Z as SubscriptionAppearanceCallback, _ as SubscriptionAppearanceCallbackFunction, $ as SubscriptionAppearanceCallbackKeys, a0 as SubscriptionAppearanceKey, a1 as SubscriptionElements, a2 as SubscriptionIconKey, a3 as SubscriptionIconOverrides, a4 as SubscriptionLocalization, a5 as SubscriptionLocalizationKey, a6 as SubscriptionTheme, a7 as Variables } from '../types-CJKmgwu6.mjs';
|
|
5
5
|
import { Placement, OffsetOptions } from '@floating-ui/dom';
|
|
6
6
|
import * as solid_js from 'solid-js';
|
|
7
7
|
import { ComponentProps } from 'solid-js';
|
|
8
8
|
import { MountableElement } from 'solid-js/web';
|
|
9
|
-
import { N as Novu } from '../novu-
|
|
9
|
+
import { N as Novu } from '../novu-CFYEiYN8.mjs';
|
|
10
10
|
import 'json-logic-js';
|
|
11
11
|
|
|
12
12
|
type ConnectChatProps = {
|
|
@@ -67,13 +67,59 @@ type InboxContentProps = {
|
|
|
67
67
|
hideNav?: boolean;
|
|
68
68
|
} & (NotificationRendererProps | SubjectBodyRendererProps | NoRendererProps);
|
|
69
69
|
|
|
70
|
+
type MsTeamsConnectButtonProps = {
|
|
71
|
+
integrationIdentifier: string;
|
|
72
|
+
connectionIdentifier?: string;
|
|
73
|
+
subscriberId?: string;
|
|
74
|
+
context?: Context;
|
|
75
|
+
scope?: string[];
|
|
76
|
+
connectionMode?: ConnectionMode;
|
|
77
|
+
/**
|
|
78
|
+
* When true (default), after the admin consent step completes the OAuth flow automatically
|
|
79
|
+
* chains into a delegated user-identity step, linking the subscriber who clicked "Connect"
|
|
80
|
+
* as a personal MS Teams endpoint in the same popup window.
|
|
81
|
+
* Set to false to perform only the tenant-level admin consent without linking the user.
|
|
82
|
+
*/
|
|
83
|
+
autoLinkUser?: boolean;
|
|
84
|
+
onConnectSuccess?: (connectionIdentifier: string) => void;
|
|
85
|
+
onConnectError?: (error: unknown) => void;
|
|
86
|
+
onDisconnectSuccess?: () => void;
|
|
87
|
+
onDisconnectError?: (error: unknown) => void;
|
|
88
|
+
connectLabel?: string;
|
|
89
|
+
connectedLabel?: string;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
type MsTeamsLinkUserProps = {
|
|
93
|
+
integrationIdentifier: string;
|
|
94
|
+
connectionIdentifier?: string;
|
|
95
|
+
subscriberId?: string;
|
|
96
|
+
context?: Context;
|
|
97
|
+
onLinkSuccess?: (endpoint: {
|
|
98
|
+
identifier: string;
|
|
99
|
+
}) => void;
|
|
100
|
+
onLinkError?: (error: unknown) => void;
|
|
101
|
+
onUnlinkSuccess?: () => void;
|
|
102
|
+
onUnlinkError?: (error: unknown) => void;
|
|
103
|
+
linkLabel?: string;
|
|
104
|
+
unlinkLabel?: string;
|
|
105
|
+
};
|
|
106
|
+
|
|
70
107
|
type SlackConnectButtonProps = {
|
|
71
|
-
integrationIdentifier
|
|
108
|
+
integrationIdentifier: string;
|
|
72
109
|
connectionIdentifier?: string;
|
|
73
110
|
subscriberId?: string;
|
|
74
111
|
context?: Context;
|
|
75
112
|
scope?: string[];
|
|
76
113
|
connectionMode?: ConnectionMode;
|
|
114
|
+
/**
|
|
115
|
+
* When true (default), after the workspace connection is created the OAuth
|
|
116
|
+
* flow also links the subscriber who clicked "Connect" as a personal Slack
|
|
117
|
+
* endpoint using the authed_user.id already returned by oauth.v2.access.
|
|
118
|
+
* Set to false to skip the user-linking step and only create the workspace
|
|
119
|
+
* connection. Raw API callers must pass true explicitly; this component
|
|
120
|
+
* defaults to true.
|
|
121
|
+
*/
|
|
122
|
+
autoLinkUser?: boolean;
|
|
77
123
|
onConnectSuccess?: (connectionIdentifier: string) => void;
|
|
78
124
|
onConnectError?: (error: unknown) => void;
|
|
79
125
|
onDisconnectSuccess?: () => void;
|
|
@@ -83,7 +129,7 @@ type SlackConnectButtonProps = {
|
|
|
83
129
|
};
|
|
84
130
|
|
|
85
131
|
type SlackLinkUserProps = {
|
|
86
|
-
integrationIdentifier
|
|
132
|
+
integrationIdentifier: string;
|
|
87
133
|
connectionIdentifier?: string;
|
|
88
134
|
subscriberId?: string;
|
|
89
135
|
context?: Context;
|
|
@@ -172,6 +218,8 @@ declare const novuComponents: {
|
|
|
172
218
|
ConnectChat: (props: ConnectChatProps) => solid_js.JSX.Element;
|
|
173
219
|
SlackLinkUser: (props: SlackLinkUserProps) => solid_js.JSX.Element;
|
|
174
220
|
SlackConnectButton: (props: SlackConnectButtonProps) => solid_js.JSX.Element;
|
|
221
|
+
MsTeamsLinkUser: (props: MsTeamsLinkUserProps) => solid_js.JSX.Element;
|
|
222
|
+
MsTeamsConnectButton: (props: MsTeamsConnectButtonProps) => solid_js.JSX.Element;
|
|
175
223
|
};
|
|
176
224
|
type NovuComponentName = keyof typeof novuComponents;
|
|
177
225
|
|
|
@@ -200,4 +248,4 @@ declare class NovuUI {
|
|
|
200
248
|
unmount(): void;
|
|
201
249
|
}
|
|
202
250
|
|
|
203
|
-
export { AllAppearance, AllLocalization, type BaseNovuUIOptions, BellRenderer, BodyRenderer, type ConnectChatProps, InboxPage, type InboxProps, NotificationActionClickHandler, NotificationClickHandler, NotificationRenderer, NovuProviderProps, NovuUI, type NovuUIOptions, PreferenceGroups, PreferencesFilter, PreferencesSort, RouterPush, type SlackConnectButtonProps, type SlackLinkUserProps, SubjectRenderer, type SubscriptionButtonWrapperProps, type SubscriptionPreferencesWrapperProps, type SubscriptionProps, Tab };
|
|
251
|
+
export { AllAppearance, AllLocalization, type BaseNovuUIOptions, BellRenderer, BodyRenderer, type ConnectChatProps, InboxPage, type InboxProps, type MsTeamsConnectButtonProps, type MsTeamsLinkUserProps, NotificationActionClickHandler, NotificationClickHandler, NotificationRenderer, NovuProviderProps, NovuUI, type NovuUIOptions, PreferenceGroups, PreferencesFilter, PreferencesSort, RouterPush, type SlackConnectButtonProps, type SlackLinkUserProps, SubjectRenderer, type SubscriptionButtonWrapperProps, type SubscriptionPreferencesWrapperProps, type SubscriptionProps, Tab };
|