@veltdev/react 5.0.0-beta.11 → 5.0.0-beta.13
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/cjs/index.js +6 -6
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +6 -6
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/esm/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ export interface IVeltNotificationsPanelProps {
|
|
|
22
22
|
selfNotifications?: boolean;
|
|
23
23
|
pageSize?: number;
|
|
24
24
|
settingsLayout?: NotificationSettingsLayout;
|
|
25
|
+
enableSettingsAtOrganizationLevel?: boolean;
|
|
25
26
|
}
|
|
26
27
|
declare const VeltNotificationsPanel: React.FC<IVeltNotificationsPanelProps>;
|
|
27
28
|
export default VeltNotificationsPanel;
|
|
@@ -26,6 +26,7 @@ export interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<Rea
|
|
|
26
26
|
considerAllNotifications?: boolean;
|
|
27
27
|
pageSize?: number;
|
|
28
28
|
settingsLayout?: NotificationSettingsLayout;
|
|
29
|
+
enableSettingsAtOrganizationLevel?: boolean;
|
|
29
30
|
}
|
|
30
31
|
declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
|
|
31
32
|
export default VeltNotificationsTool;
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const VELT_SDK_VERSION = "5.0.0-beta.
|
|
2
|
+
export declare const VELT_SDK_VERSION = "5.0.0-beta.13";
|
|
3
3
|
export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
|
|
4
4
|
export declare const VELT_TAB_ID = "veltTabId";
|
|
5
5
|
export declare const INTEGRITY_MAP: Record<string, string>;
|
package/esm/index.js
CHANGED
|
@@ -204,13 +204,13 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain, integ
|
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var VELT_SDK_VERSION = '5.0.0-beta.
|
|
207
|
+
var VELT_SDK_VERSION = '5.0.0-beta.13';
|
|
208
208
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
209
209
|
var VELT_TAB_ID = 'veltTabId';
|
|
210
210
|
// integrity map for the Velt SDK
|
|
211
211
|
// Note: generate integrity hashes with: https://www.srihash.org/
|
|
212
212
|
var INTEGRITY_MAP = {
|
|
213
|
-
'5.0.0-beta.
|
|
213
|
+
'5.0.0-beta.13': 'sha384-A51XBPYhr306yUY1daeTa78zWWxT73KQXjkd+jiOV5AYo8nFovWWpJjv7cX5VJdu',
|
|
214
214
|
};
|
|
215
215
|
|
|
216
216
|
var validProps = ['veltIf', 'veltClass', 'className', 'variant'];
|
|
@@ -1138,7 +1138,7 @@ var VeltCommentThread = function (props) {
|
|
|
1138
1138
|
};
|
|
1139
1139
|
|
|
1140
1140
|
var VeltNotificationsTool = function (props) {
|
|
1141
|
-
var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, panelShadowDom = props.panelShadowDom, variant = props.variant, maxDays = props.maxDays, tabConfig = props.tabConfig, panelOpenMode = props.panelOpenMode, panelVariant = props.panelVariant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab, settings = props.settings, selfNotifications = props.selfNotifications, considerAllNotifications = props.considerAllNotifications, pageSize = props.pageSize, settingsLayout = props.settingsLayout;
|
|
1141
|
+
var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, panelShadowDom = props.panelShadowDom, variant = props.variant, maxDays = props.maxDays, tabConfig = props.tabConfig, panelOpenMode = props.panelOpenMode, panelVariant = props.panelVariant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab, settings = props.settings, selfNotifications = props.selfNotifications, considerAllNotifications = props.considerAllNotifications, pageSize = props.pageSize, settingsLayout = props.settingsLayout, enableSettingsAtOrganizationLevel = props.enableSettingsAtOrganizationLevel;
|
|
1142
1142
|
var ref = useRef();
|
|
1143
1143
|
var onNotificationClickRef = useRef(onNotificationClick);
|
|
1144
1144
|
// Update the ref to always point to the latest callback function
|
|
@@ -1164,11 +1164,11 @@ var VeltNotificationsTool = function (props) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
1166
|
}, []);
|
|
1167
|
-
return (React.createElement("velt-notifications-tool", { ref: ref, "panel-open-mode": panelOpenMode, panelVariant: panelVariant, "tab-config": JSON.stringify(tabConfig), variant: variant, "max-days": (maxDays && maxDays > 0) ? maxDays + '' : undefined, "panel-shadow-dom": [true, false].includes(panelShadowDom) ? (panelShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, settings: [true, false].includes(settings) ? (settings ? 'true' : 'false') : undefined, "self-notifications": [true, false].includes(selfNotifications) ? (selfNotifications ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined, "consider-all-notifications": [true, false].includes(considerAllNotifications) ? (considerAllNotifications ? 'true' : 'false') : undefined, "page-size": (pageSize && pageSize > 0) ? pageSize + '' : undefined, "settings-layout": settingsLayout }, children));
|
|
1167
|
+
return (React.createElement("velt-notifications-tool", { ref: ref, "panel-open-mode": panelOpenMode, panelVariant: panelVariant, "tab-config": JSON.stringify(tabConfig), variant: variant, "max-days": (maxDays && maxDays > 0) ? maxDays + '' : undefined, "panel-shadow-dom": [true, false].includes(panelShadowDom) ? (panelShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, settings: [true, false].includes(settings) ? (settings ? 'true' : 'false') : undefined, "self-notifications": [true, false].includes(selfNotifications) ? (selfNotifications ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined, "consider-all-notifications": [true, false].includes(considerAllNotifications) ? (considerAllNotifications ? 'true' : 'false') : undefined, "page-size": (pageSize && pageSize > 0) ? pageSize + '' : undefined, "settings-layout": settingsLayout, "enable-settings-at-organization-level": [true, false].includes(enableSettingsAtOrganizationLevel) ? (enableSettingsAtOrganizationLevel ? 'true' : 'false') : undefined }, children));
|
|
1168
1168
|
};
|
|
1169
1169
|
|
|
1170
1170
|
var VeltNotificationsPanel = function (props) {
|
|
1171
|
-
var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, tabConfig = props.tabConfig, variant = props.variant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab, panelOpenMode = props.panelOpenMode, settings = props.settings, selfNotifications = props.selfNotifications, pageSize = props.pageSize, settingsLayout = props.settingsLayout;
|
|
1171
|
+
var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, tabConfig = props.tabConfig, variant = props.variant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab, panelOpenMode = props.panelOpenMode, settings = props.settings, selfNotifications = props.selfNotifications, pageSize = props.pageSize, settingsLayout = props.settingsLayout, enableSettingsAtOrganizationLevel = props.enableSettingsAtOrganizationLevel;
|
|
1172
1172
|
var ref = useRef();
|
|
1173
1173
|
var onNotificationClickRef = useRef(onNotificationClick);
|
|
1174
1174
|
// Update the ref to always point to the latest callback function
|
|
@@ -1194,7 +1194,7 @@ var VeltNotificationsPanel = function (props) {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
};
|
|
1196
1196
|
}, []);
|
|
1197
|
-
return (React.createElement("velt-notifications-panel", { ref: ref, variant: variant, "tab-config": JSON.stringify(tabConfig), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, settings: [true, false].includes(settings) ? (settings ? 'true' : 'false') : undefined, "self-notifications": [true, false].includes(selfNotifications) ? (selfNotifications ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined, "panel-open-mode": panelOpenMode, "page-size": (pageSize && pageSize > 0) ? pageSize + '' : undefined, "settings-layout": settingsLayout }));
|
|
1197
|
+
return (React.createElement("velt-notifications-panel", { ref: ref, variant: variant, "tab-config": JSON.stringify(tabConfig), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, settings: [true, false].includes(settings) ? (settings ? 'true' : 'false') : undefined, "self-notifications": [true, false].includes(selfNotifications) ? (selfNotifications ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined, "panel-open-mode": panelOpenMode, "page-size": (pageSize && pageSize > 0) ? pageSize + '' : undefined, "settings-layout": settingsLayout, "enable-settings-at-organization-level": [true, false].includes(enableSettingsAtOrganizationLevel) ? (enableSettingsAtOrganizationLevel ? 'true' : 'false') : undefined }));
|
|
1198
1198
|
};
|
|
1199
1199
|
|
|
1200
1200
|
var VeltNotificationsHistoryPanel = function (props) {
|