@notificationapi/react 0.0.24 → 0.0.26

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 (48) hide show
  1. package/dist/assets/AntdIcon.js +200 -0
  2. package/dist/assets/Notification.js +118 -119
  3. package/dist/assets/PurePanel.js +69 -0
  4. package/dist/assets/RightOutlined.js +13 -0
  5. package/dist/assets/button.js +19 -18
  6. package/dist/assets/channelUtils.js +77 -0
  7. package/dist/assets/colors.js +8534 -9304
  8. package/dist/assets/index.js +16 -15
  9. package/dist/assets/index2.js +33 -32
  10. package/dist/assets/index3.js +722 -8531
  11. package/dist/assets/index4.js +8408 -0
  12. package/dist/assets/pickAttrs.js +42 -0
  13. package/dist/components/Notifications/Inbox.d.ts +3 -7
  14. package/dist/components/Notifications/Inbox.js +6250 -8
  15. package/dist/components/Notifications/InboxHeader.d.ts +1 -1
  16. package/dist/components/Notifications/InboxHeader.js +8 -7
  17. package/dist/components/Notifications/Notification.d.ts +2 -5
  18. package/dist/components/Notifications/Notification.js +3 -4
  19. package/dist/components/Notifications/NotificationCounter.d.ts +2 -2
  20. package/dist/components/Notifications/NotificationFeed.d.ts +4 -5
  21. package/dist/components/Notifications/NotificationFeed.js +28 -26
  22. package/dist/components/Notifications/NotificationLauncher.d.ts +1 -6
  23. package/dist/components/Notifications/NotificationLauncher.js +16 -18
  24. package/dist/components/Notifications/NotificationPopup.d.ts +5 -9
  25. package/dist/components/Notifications/NotificationPopup.js +119 -12
  26. package/dist/components/Notifications/UnreadBadge.d.ts +4 -7
  27. package/dist/components/Notifications/UnreadBadge.js +8 -10
  28. package/dist/components/Notifications/index.js +5 -5
  29. package/dist/components/Notifications/interface.d.ts +46 -0
  30. package/dist/components/Notifications/interface.js +19 -0
  31. package/dist/components/Preferences/NotificationPreferencesInline.d.ts +1 -1
  32. package/dist/components/Preferences/NotificationPreferencesInline.js +1 -1
  33. package/dist/components/Preferences/NotificationPreferencesPopup.js +1503 -4
  34. package/dist/components/Preferences/PreferenceInput.d.ts +5 -4
  35. package/dist/components/Preferences/PreferenceInput.js +1435 -4
  36. package/dist/components/Preferences/Preferences.d.ts +1 -4
  37. package/dist/components/Preferences/Preferences.js +579 -8
  38. package/dist/components/Preferences/channelUtils.d.ts +4 -0
  39. package/dist/components/Preferences/channelUtils.js +8 -0
  40. package/dist/components/Preferences/index.js +1 -1
  41. package/dist/components/Provider/index.d.ts +8 -2
  42. package/dist/components/Provider/index.js +162 -135
  43. package/dist/main.d.ts +2 -2
  44. package/dist/main.js +9 -9
  45. package/package.json +5 -2
  46. package/dist/assets/Inbox.js +0 -6363
  47. package/dist/assets/NotificationPreferencesPopup.js +0 -1562
  48. package/dist/assets/Preferences.js +0 -2120
@@ -0,0 +1,42 @@
1
+ import { _ as i } from "./index3.js";
2
+ var s = `accept acceptCharset accessKey action allowFullScreen allowTransparency
3
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
4
+ charSet checked classID className colSpan cols content contentEditable contextMenu
5
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
6
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
7
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
8
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
9
+ mediaGroup method min minLength multiple muted name noValidate nonce open
10
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
11
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
12
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
13
+ summary tabIndex target title type useMap value width wmode wrap`, l = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
14
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
15
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
16
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
17
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
18
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
19
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, d = "".concat(s, " ").concat(l).split(/[\s\n]+/), c = "aria-", u = "data-";
20
+ function r(a, o) {
21
+ return a.indexOf(o) === 0;
22
+ }
23
+ function m(a) {
24
+ var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, e;
25
+ o === !1 ? e = {
26
+ aria: !0,
27
+ data: !0,
28
+ attr: !0
29
+ } : o === !0 ? e = {
30
+ aria: !0
31
+ } : e = i({}, o);
32
+ var t = {};
33
+ return Object.keys(a).forEach(function(n) {
34
+ // Aria
35
+ (e.aria && (n === "role" || r(n, c)) || // Data
36
+ e.data && r(n, u) || // Attr
37
+ e.attr && d.includes(n)) && (t[n] = a[n]);
38
+ }), t;
39
+ }
40
+ export {
41
+ m as p
42
+ };
@@ -1,19 +1,15 @@
1
1
  import { InboxHeaderProps } from './InboxHeader';
2
- import { ImageShape } from './Notification';
3
2
  import { NotificationPopupProps } from './NotificationPopup';
4
3
  import { InAppNotification } from '@notificationapi/core/dist/interfaces';
4
+ import { ImageShape, Pagination } from './interface';
5
5
 
6
- export declare enum Pagination {
7
- INFINITE_SCROLL = "infinite_scroll",
8
- PAGINATED = "paginated"
9
- }
10
6
  export type InboxProps = {
11
7
  pagination: keyof typeof Pagination;
12
8
  maxHeight: number;
13
- filter: NotificationPopupProps["filter"];
9
+ filter: NotificationPopupProps['filter'];
14
10
  imageShape: keyof typeof ImageShape;
15
11
  pageSize: number;
16
- pagePosition: NotificationPopupProps["pagePosition"];
12
+ pagePosition: NotificationPopupProps['pagePosition'];
17
13
  notificationRenderer: ((notification: InAppNotification[]) => JSX.Element) | undefined;
18
14
  header?: InboxHeaderProps;
19
15
  };