@notificationapi/react 1.4.1 → 1.5.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 (44) hide show
  1. package/dist/assets/Badge.js +1 -1
  2. package/dist/assets/Box.js +13 -13
  3. package/dist/assets/Button.js +781 -0
  4. package/dist/assets/ButtonBase.js +409 -622
  5. package/dist/assets/DefaultPropsProvider.js +220 -215
  6. package/dist/assets/Divider.js +105 -154
  7. package/dist/assets/Grow.js +201 -0
  8. package/dist/assets/IconButton.js +1 -1
  9. package/dist/assets/List.js +142 -0
  10. package/dist/assets/Modal.js +1094 -0
  11. package/dist/assets/Notification.js +71 -71
  12. package/dist/assets/Paper.js +1 -1
  13. package/dist/assets/Popover.js +8 -6
  14. package/dist/assets/Portal.js +2 -2
  15. package/dist/assets/Stack.js +216 -0
  16. package/dist/assets/Typography.js +193 -117
  17. package/dist/assets/WebPushOptInMessage.js +40 -814
  18. package/dist/assets/createSvgIcon.js +5 -5
  19. package/dist/assets/dividerClasses.js +56 -0
  20. package/dist/assets/index.js +151 -0
  21. package/dist/assets/useTheme2.js +253 -11
  22. package/dist/assets/utils.js +4 -4
  23. package/dist/components/Notifications/Inbox.js +2927 -9
  24. package/dist/components/Notifications/InboxHeader.js +2146 -7
  25. package/dist/components/Notifications/NotificationFeed.js +13 -13
  26. package/dist/components/Notifications/NotificationLauncher.js +2 -2
  27. package/dist/components/Notifications/NotificationPopup.js +7 -7
  28. package/dist/components/Preferences/NotificationPreferencesPopup.js +608 -7
  29. package/dist/components/Preferences/PreferenceInput.js +1451 -6
  30. package/dist/components/Preferences/Preferences.js +368 -515
  31. package/dist/components/Preferences/index.js +1 -1
  32. package/dist/components/Provider/index.js +226 -202
  33. package/dist/components/Slack/SlackConnect.d.ts +12 -0
  34. package/dist/components/Slack/SlackConnect.js +4826 -0
  35. package/dist/components/Slack/index.d.ts +1 -0
  36. package/dist/components/Slack/index.js +4 -0
  37. package/dist/components/WebPush/WebPushOptInMessage.js +3 -2
  38. package/dist/main.d.ts +1 -0
  39. package/dist/main.js +5 -3
  40. package/package.json +4 -4
  41. package/dist/assets/Inbox.js +0 -3061
  42. package/dist/assets/InboxHeader.js +0 -2338
  43. package/dist/assets/NotificationPreferencesPopup.js +0 -1694
  44. package/dist/assets/PreferenceInput.js +0 -1657
@@ -0,0 +1 @@
1
+ export { SlackConnect } from './SlackConnect';
@@ -0,0 +1,4 @@
1
+ import { SlackConnect as e } from "./SlackConnect.js";
2
+ export {
3
+ e as SlackConnect
4
+ };
@@ -1,7 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../Provider/context.js";
4
- import { W as i } from "../../assets/WebPushOptInMessage.js";
4
+ import { W as a } from "../../assets/WebPushOptInMessage.js";
5
+ import "../../assets/Button.js";
5
6
  export {
6
- i as default
7
+ a as default
7
8
  };
package/dist/main.d.ts CHANGED
@@ -2,4 +2,5 @@
2
2
  export { NotificationFeed, NotificationPopup, NotificationLauncher, NotificationCounter } from './components/Notifications';
3
3
  export { NotificationPreferencesInline, NotificationPreferencesPopup } from './components/Preferences';
4
4
  export { NotificationAPIProvider } from './components/Provider';
5
+ export { SlackConnect } from './components/Slack';
5
6
  export { createDebugLogger, type DebugLogger } from './utils/debug';
package/dist/main.js CHANGED
@@ -1,18 +1,20 @@
1
1
  import { NotificationFeed as r } from "./components/Notifications/NotificationFeed.js";
2
2
  import { NotificationPopup as i } from "./components/Notifications/NotificationPopup.js";
3
3
  import { NotificationLauncher as n } from "./components/Notifications/NotificationLauncher.js";
4
- import { NotificationCounter as c } from "./components/Notifications/NotificationCounter.js";
5
- import { N as m } from "./assets/NotificationPreferencesPopup.js";
4
+ import { NotificationCounter as p } from "./components/Notifications/NotificationCounter.js";
5
+ import { NotificationPreferencesPopup as m } from "./components/Preferences/NotificationPreferencesPopup.js";
6
6
  import { NotificationPreferencesInline as N } from "./components/Preferences/NotificationPreferencesInline.js";
7
7
  import { NotificationAPIProvider as u } from "./components/Provider/index.js";
8
+ import { SlackConnect as d } from "./components/Slack/SlackConnect.js";
8
9
  import { createDebugLogger as s } from "./utils/debug.js";
9
10
  export {
10
11
  u as NotificationAPIProvider,
11
- c as NotificationCounter,
12
+ p as NotificationCounter,
12
13
  r as NotificationFeed,
13
14
  n as NotificationLauncher,
14
15
  i as NotificationPopup,
15
16
  N as NotificationPreferencesInline,
16
17
  m as NotificationPreferencesPopup,
18
+ d as SlackConnect,
17
19
  s as createDebugLogger
18
20
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@notificationapi/react",
3
3
  "private": false,
4
- "version": "1.4.1",
4
+ "version": "1.5.1",
5
5
  "type": "module",
6
6
  "overrides": {
7
7
  "esbuild": "^0.25.0",
@@ -36,6 +36,7 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@faker-js/faker": "^9.2.0",
39
+ "@playwright/test": "^1.56.1",
39
40
  "@types/node": "^20.12.7",
40
41
  "@types/react": "^19.0.0",
41
42
  "@types/react-dom": "^19.0.0",
@@ -48,10 +49,9 @@
48
49
  "eslint-plugin-react-refresh": "^0.4.6",
49
50
  "faker-js": "^1.0.0",
50
51
  "glob": "^10.4.1",
51
- "@playwright/test": "^1.48.0",
52
52
  "prettier": "^3.3.3",
53
53
  "typescript": "^5.2.2",
54
- "vite": "^5.4.19",
54
+ "vite": "^5.4.21",
55
55
  "vite-plugin-dts": "^3.9.1",
56
56
  "vite-plugin-lib-inject-css": "^2.1.1"
57
57
  },
@@ -67,7 +67,7 @@
67
67
  "@fontsource/roboto": "^5.1.1",
68
68
  "@mui/icons-material": "^6.3.1",
69
69
  "@mui/material": "^6.3.1",
70
- "@notificationapi/core": "^0.0.17",
70
+ "@notificationapi/core": "^1.0.2",
71
71
  "javascript-time-ago": "^2.5.10",
72
72
  "liquidjs": "^10.14.0",
73
73
  "rc-virtual-list": "^3.11.5",