@teambit/notifications 0.0.1110 → 0.0.1111

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/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_notifications","data","require","_default","NotificationsAspect","exports","default"],"sources":["index.ts"],"sourcesContent":["import { NotificationsAspect } from './notifications.aspect';\n\nexport type { default as NotificationUI } from './notification.ui.runtime';\n\nexport { NotificationsAspect };\nexport default NotificationsAspect;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA6D,IAAAE,QAAA,GAK9CC,oCAAmB;AAAAC,OAAA,CAAAC,OAAA,GAAAH,QAAA"}
1
+ {"version":3,"names":["NotificationsAspect"],"sources":["index.ts"],"sourcesContent":["import { NotificationsAspect } from './notifications.aspect';\n\nexport type { default as NotificationUI } from './notification.ui.runtime';\n\nexport { NotificationsAspect };\nexport default NotificationsAspect;\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA6D,eAK9CA,oCAAmB;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":["notificationReducer","state","action","type","filter","x","id","content","concat"],"sources":["notification-reducer.tsx"],"sourcesContent":["import { Message } from '@teambit/ui-foundation.ui.notifications.store';\n\nexport type NotificationAction = {\n type: 'add' | 'dismiss' | 'clear';\n content?: Message;\n id?: string;\n};\n\nexport function notificationReducer(state: Message[], action: NotificationAction) {\n switch (action.type) {\n case 'dismiss':\n return state.filter((x) => x.id !== action.id);\n case 'add':\n if (!action.content) return state;\n return state.concat(action.content);\n case 'clear':\n return [];\n default:\n return state;\n }\n}\n"],"mappings":";;;;;;AAQO,SAASA,mBAAmBA,CAACC,KAAgB,EAAEC,MAA0B,EAAE;EAChF,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAK,SAAS;MACZ,OAAOF,KAAK,CAACG,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,EAAE,KAAKJ,MAAM,CAACI,EAAE,CAAC;IAChD,KAAK,KAAK;MACR,IAAI,CAACJ,MAAM,CAACK,OAAO,EAAE,OAAON,KAAK;MACjC,OAAOA,KAAK,CAACO,MAAM,CAACN,MAAM,CAACK,OAAO,CAAC;IACrC,KAAK,OAAO;MACV,OAAO,EAAE;IACX;MACE,OAAON,KAAK;EAChB;AACF"}
1
+ {"version":3,"names":["notificationReducer","state","action","type","filter","x","id","content","concat"],"sources":["notification-reducer.tsx"],"sourcesContent":["import { Message } from '@teambit/ui-foundation.ui.notifications.store';\n\nexport type NotificationAction = {\n type: 'add' | 'dismiss' | 'clear';\n content?: Message;\n id?: string;\n};\n\nexport function notificationReducer(state: Message[], action: NotificationAction) {\n switch (action.type) {\n case 'dismiss':\n return state.filter((x) => x.id !== action.id);\n case 'add':\n if (!action.content) return state;\n return state.concat(action.content);\n case 'clear':\n return [];\n default:\n return state;\n }\n}\n"],"mappings":";;;;;;AAQO,SAASA,mBAAmB,CAACC,KAAgB,EAAEC,MAA0B,EAAE;EAChF,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAK,SAAS;MACZ,OAAOF,KAAK,CAACG,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,EAAE,KAAKJ,MAAM,CAACI,EAAE,CAAC;IAChD,KAAK,KAAK;MACR,IAAI,CAACJ,MAAM,CAACK,OAAO,EAAE,OAAON,KAAK;MACjC,OAAOA,KAAK,CAACO,MAAM,CAACN,MAAM,CAACK,OAAO,CAAC;IACrC,KAAK,OAAO;MACV,OAAO,EAAE;IACX;MACE,OAAON,KAAK;EAAC;AAEnB"}
@@ -88,7 +88,6 @@ class NotificationUI {
88
88
  }
89
89
  constructor(uiRuntimeExtension) {
90
90
  (0, _defineProperty2().default)(this, "dispatch", void 0);
91
- /** adds a full message to the log */
92
91
  (0, _defineProperty2().default)(this, "add", (message, level) => {
93
92
  var _this$dispatch;
94
93
  const id = (0, _uuid().v1)();
@@ -103,15 +102,10 @@ class NotificationUI {
103
102
  });
104
103
  return id;
105
104
  });
106
- /** adds a message with level "info" to the log */
107
105
  (0, _defineProperty2().default)(this, "log", message => this.add(message, _uiFoundationUiNotifications3().MessageLevel.info));
108
- /** adds a message with level "warning" to the log */
109
106
  (0, _defineProperty2().default)(this, "warn", message => this.add(message, _uiFoundationUiNotifications3().MessageLevel.warning));
110
- /** adds a message with level "error" to the log */
111
107
  (0, _defineProperty2().default)(this, "error", message => this.add(message, _uiFoundationUiNotifications3().MessageLevel.error));
112
- /** adds a message with level "success" to the log */
113
108
  (0, _defineProperty2().default)(this, "success", message => this.add(message, _uiFoundationUiNotifications3().MessageLevel.success));
114
- /** removes all notifications */
115
109
  (0, _defineProperty2().default)(this, "clear", () => {
116
110
  var _this$dispatch2;
117
111
  (_this$dispatch2 = this.dispatch) === null || _this$dispatch2 === void 0 ? void 0 : _this$dispatch2.call(this, {
@@ -148,6 +142,8 @@ class NotificationUI {
148
142
  id
149
143
  });
150
144
  }
145
+
146
+ /** adds a message with level "info" to the log */
151
147
  }
152
148
  exports.default = NotificationUI;
153
149
  (0, _defineProperty2().default)(NotificationUI, "dependencies", [_ui().UIAspect]);
@@ -1 +1 @@
1
- {"version":3,"names":["_ui","data","require","_react","_interopRequireWildcard","_uuid","_uiFoundationUiNotifications","_uiFoundationUiNotifications2","_uiFoundationUiNotifications3","_notificationReducer","_notifications","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","NotificationUI","provider","uiRuntimeExtension","constructor","_defineProperty2","message","level","_this$dispatch","id","v1","dispatch","type","content","time","Date","toISOString","add","MessageLevel","info","warning","error","success","_this$dispatch2","props","messages","useReducer","notificationReducer","createElement","NotificationCenter","_extends2","notifications","children","NotificationContext","Provider","value","registerHudItem","render","registerRenderHooks","reactContext","renderContext","dismiss","_this$dispatch3","exports","UIAspect","UIRuntime","NotificationsAspect","addRuntime"],"sources":["notification.ui.runtime.tsx"],"sourcesContent":["import { UIAspect, UIRuntime, UiUI } from '@teambit/ui';\nimport React, { ReactNode, useReducer } from 'react';\nimport { v1 } from 'uuid';\n\nimport { NotificationContext } from '@teambit/ui-foundation.ui.notifications.notification-context';\nimport {\n NotificationCenter,\n NotificationCenterProps,\n} from '@teambit/ui-foundation.ui.notifications.notification-center';\nimport { MessageLevel, NotificationsStore } from '@teambit/ui-foundation.ui.notifications.store';\nimport { NotificationAction, notificationReducer } from './notification-reducer';\nimport { NotificationsAspect } from './notifications.aspect';\n\n/**\n * extension\n */\nexport default class NotificationUI implements NotificationsStore {\n static dependencies = [UIAspect];\n\n static runtime = UIRuntime;\n\n static async provider([uiRuntimeExtension]: [UiUI]) {\n return new NotificationUI(uiRuntimeExtension);\n }\n\n constructor(uiRuntimeExtension: UiUI) {\n uiRuntimeExtension.registerHudItem(<this.render key=\"NotificationUI\" />);\n uiRuntimeExtension.registerRenderHooks({ reactContext: this.renderContext });\n }\n\n private dispatch?: React.Dispatch<NotificationAction>;\n\n /** adds a full message to the log */\n add = (message: string, level: MessageLevel) => {\n const id = v1();\n\n this.dispatch?.({\n type: 'add',\n content: {\n id,\n message,\n level,\n time: new Date().toISOString(),\n },\n });\n\n return id;\n };\n\n /** removes/archives a message from the log */\n dismiss(id: string) {\n this.dispatch?.({\n type: 'dismiss',\n id,\n });\n }\n\n /** adds a message with level \"info\" to the log */\n log = (message: string) => this.add(message, MessageLevel.info);\n /** adds a message with level \"warning\" to the log */\n warn = (message: string) => this.add(message, MessageLevel.warning);\n /** adds a message with level \"error\" to the log */\n error = (message: string) => this.add(message, MessageLevel.error);\n /** adds a message with level \"success\" to the log */\n success = (message: string) => this.add(message, MessageLevel.success);\n\n /** removes all notifications */\n clear = () => {\n this.dispatch?.({\n type: 'clear',\n });\n };\n\n private render = (props: Omit<NotificationCenterProps, 'notifications'>) => {\n // this code assumes a single place of render per instance of NotificationUI\n const [messages, dispatch] = useReducer(notificationReducer, []);\n this.dispatch = dispatch;\n\n return <NotificationCenter {...props} notifications={messages} />;\n };\n\n private renderContext = ({ children }: { children: ReactNode }) => {\n return <NotificationContext.Provider value={this}>{children}</NotificationContext.Provider>;\n };\n}\n\nNotificationsAspect.addRuntime(NotificationUI);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,GAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,uBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,MAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,KAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,6BAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,4BAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,8BAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,6BAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIA,SAAAO,8BAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,6BAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,qBAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,oBAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA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A,GAAAe,cAAA;AAAA,IAAAI,gBAAA,GAAAnB,OAAA,EApEoBe,cAAc,kBACX,CAAC2C,cAAQ,CAAC;AAAA,IAAAvC,gBAAA,GAAAnB,OAAA,EADbe,cAAc,aAGhB4C,eAAS;AAmE5BC,oCAAmB,CAACC,UAAU,CAAC9C,cAAc,CAAC"}
1
+ {"version":3,"names":["NotificationUI","provider","uiRuntimeExtension","constructor","message","level","id","v1","dispatch","type","content","time","Date","toISOString","add","MessageLevel","info","warning","error","success","props","messages","useReducer","notificationReducer","children","registerHudItem","registerRenderHooks","reactContext","renderContext","dismiss","UIAspect","UIRuntime","NotificationsAspect","addRuntime"],"sources":["notification.ui.runtime.tsx"],"sourcesContent":["import { UIAspect, UIRuntime, UiUI } from '@teambit/ui';\nimport React, { ReactNode, useReducer } from 'react';\nimport { v1 } from 'uuid';\n\nimport { NotificationContext } from '@teambit/ui-foundation.ui.notifications.notification-context';\nimport {\n NotificationCenter,\n NotificationCenterProps,\n} from '@teambit/ui-foundation.ui.notifications.notification-center';\nimport { MessageLevel, NotificationsStore } from '@teambit/ui-foundation.ui.notifications.store';\nimport { NotificationAction, notificationReducer } from './notification-reducer';\nimport { NotificationsAspect } from './notifications.aspect';\n\n/**\n * extension\n */\nexport default class NotificationUI implements NotificationsStore {\n static dependencies = [UIAspect];\n\n static runtime = UIRuntime;\n\n static async provider([uiRuntimeExtension]: [UiUI]) {\n return new NotificationUI(uiRuntimeExtension);\n }\n\n constructor(uiRuntimeExtension: UiUI) {\n uiRuntimeExtension.registerHudItem(<this.render key=\"NotificationUI\" />);\n uiRuntimeExtension.registerRenderHooks({ reactContext: this.renderContext });\n }\n\n private dispatch?: React.Dispatch<NotificationAction>;\n\n /** adds a full message to the log */\n add = (message: string, level: MessageLevel) => {\n const id = v1();\n\n this.dispatch?.({\n type: 'add',\n content: {\n id,\n message,\n level,\n time: new Date().toISOString(),\n },\n });\n\n return id;\n };\n\n /** removes/archives a message from the log */\n dismiss(id: string) {\n this.dispatch?.({\n type: 'dismiss',\n id,\n });\n }\n\n /** adds a message with level \"info\" to the log */\n log = (message: string) => this.add(message, MessageLevel.info);\n /** adds a message with level \"warning\" to the log */\n warn = (message: string) => this.add(message, MessageLevel.warning);\n /** adds a message with level \"error\" to the log */\n error = (message: string) => this.add(message, MessageLevel.error);\n /** adds a message with level \"success\" to the log */\n success = (message: string) => this.add(message, MessageLevel.success);\n\n /** removes all notifications */\n clear = () => {\n this.dispatch?.({\n type: 'clear',\n });\n };\n\n private render = (props: Omit<NotificationCenterProps, 'notifications'>) => {\n // this code assumes a single place of render per instance of NotificationUI\n const [messages, dispatch] = useReducer(notificationReducer, []);\n this.dispatch = dispatch;\n\n return <NotificationCenter {...props} notifications={messages} />;\n };\n\n private renderContext = ({ children }: { children: ReactNode }) => {\n return <NotificationContext.Provider value={this}>{children}</NotificationContext.Provider>;\n };\n}\n\nNotificationsAspect.addRuntime(NotificationUI);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA6D;AAAA;AAE7D;AACA;AACA;AACe,MAAMA,cAAc,CAA+B;EAKhE,aAAaC,QAAQ,CAAC,CAACC,kBAAkB,CAAS,EAAE;IAClD,OAAO,IAAIF,cAAc,CAACE,kBAAkB,CAAC;EAC/C;EAEAC,WAAW,CAACD,kBAAwB,EAAE;IAAA;IAAA,6CAQhC,CAACE,OAAe,EAAEC,KAAmB,KAAK;MAAA;MAC9C,MAAMC,EAAE,GAAG,IAAAC,UAA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CAACwB,mBAAmB,CAAC;MAAEC,YAAY,EAAE,IAAI,CAACC;IAAc,CAAC,CAAC;EAC9E;EAqBA;EACAC,OAAO,CAACvB,EAAU,EAAE;IAAA;IAClB,uBAAI,CAACE,QAAQ,oDAAb,yBAAI,EAAY;MACdC,IAAI,EAAE,SAAS;MACfH;IACF,CAAC,CAAC;EACJ;;EAEA;AA2BF;AAAC;AAAA,gCApEoBN,cAAc,kBACX,CAAC8B,cAAQ,CAAC;AAAA,gCADb9B,cAAc,aAGhB+B,eAAS;AAmE5BC,oCAAmB,CAACC,UAAU,CAACjC,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["_harmony","data","require","NotificationsAspect","Aspect","create","id","exports","_default","default"],"sources":["notifications.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const NotificationsAspect = Aspect.create({\n id: 'teambit.ui-foundation/notifications',\n});\n\nexport default NotificationsAspect;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,mBAAmB,GAAGC,iBAAM,CAACC,MAAM,CAAC;EAC/CC,EAAE,EAAE;AACN,CAAC,CAAC;AAACC,OAAA,CAAAJ,mBAAA,GAAAA,mBAAA;AAAA,IAAAK,QAAA,GAEYL,mBAAmB;AAAAI,OAAA,CAAAE,OAAA,GAAAD,QAAA"}
1
+ {"version":3,"names":["NotificationsAspect","Aspect","create","id"],"sources":["notifications.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const NotificationsAspect = Aspect.create({\n id: 'teambit.ui-foundation/notifications',\n});\n\nexport default NotificationsAspect;\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,mBAAmB,GAAGC,iBAAM,CAACC,MAAM,CAAC;EAC/CC,EAAE,EAAE;AACN,CAAC,CAAC;AAAC;AAAA,eAEYH,mBAAmB;AAAA"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/notifications",
3
- "version": "0.0.1110",
3
+ "version": "0.0.1111",
4
4
  "homepage": "https://bit.cloud/teambit/ui-foundation/notifications",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.ui-foundation",
8
8
  "name": "notifications",
9
- "version": "0.0.1110"
9
+ "version": "0.0.1111"
10
10
  },
11
11
  "dependencies": {
12
12
  "uuid": "8.3.2",
@@ -16,7 +16,7 @@
16
16
  "@teambit/ui-foundation.ui.notifications.store": "0.0.495",
17
17
  "@teambit/ui-foundation.ui.notifications.notification-center": "0.0.515",
18
18
  "@teambit/ui-foundation.ui.notifications.notification-context": "0.0.496",
19
- "@teambit/ui": "0.0.1110"
19
+ "@teambit/ui": "0.0.1111"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/react": "^17.0.8",
@@ -28,7 +28,7 @@
28
28
  "@types/testing-library__jest-dom": "5.9.5"
29
29
  },
30
30
  "peerDependencies": {
31
- "@teambit/legacy": "1.0.522",
31
+ "@teambit/legacy": "1.0.523",
32
32
  "react": "^16.8.0 || ^17.0.0",
33
33
  "react-dom": "^16.8.0 || ^17.0.0"
34
34
  },