infinity-forge 0.31.1 → 0.31.2

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/README.md CHANGED
@@ -1,21 +1,21 @@
1
- {
2
- "include": ["src/**/*"],
3
- "compilerOptions": {
4
- "lib": ["es2021", "dom"],
5
- "types": ["reflect-metadata", "node"],
6
- "experimentalDecorators": true,
7
- "emitDecoratorMetadata": true,
8
- "jsx": "react-jsx",
9
- "baseUrl": "./src",
10
- "outDir": "./dist",
11
- "declaration": true,
12
- "sourceMap": true,
13
- "paths": {
14
- "@/_": ["./_"]
15
- },
16
- "esModuleInterop": true,
17
- "moduleResolution": "node",
18
- "skipLibCheck": true
19
- },
20
- "afterDeclarations": true
21
- }
1
+ <!-- {
2
+ "include": ["src/**/*"],
3
+ "compilerOptions": {
4
+ "lib": ["es2021", "dom"],
5
+ "types": ["reflect-metadata", "node"],
6
+ "experimentalDecorators": true,
7
+ "emitDecoratorMetadata": true,
8
+ "jsx": "react-jsx",
9
+ "baseUrl": "./src",
10
+ "outDir": "./dist",
11
+ "declaration": true,
12
+ "sourceMap": true,
13
+ "paths": {
14
+ "@/*": ["./*"]
15
+ },
16
+ "esModuleInterop": true,
17
+ "moduleResolution": "node",
18
+ "skipLibCheck": true
19
+ },
20
+ "afterDeclarations": true
21
+ } -->
@@ -4,6 +4,7 @@ export type LoadAllNotifications = {
4
4
  export interface INotification {
5
5
  id: number;
6
6
  title: string;
7
+ status: string;
7
8
  message: string;
8
9
  createdAt: string;
9
10
  createdAtText: string;
@@ -1,2 +1,2 @@
1
1
  import { INotification } from '../../../../../../../../../system/domain/index.js';
2
- export declare function NotificationCard({ title, createdAtText, message }: INotification): import("react/jsx-runtime").JSX.Element;
2
+ export declare function NotificationCard({ title, createdAtText, message, status }: INotification): import("react/jsx-runtime").JSX.Element;
@@ -28,7 +28,10 @@ var jsx_runtime_1 = require("react/jsx-runtime");
28
28
  var ui_1 = require("../../../../../../../../../ui/index.js");
29
29
  var S = __importStar(require("./styles.js"));
30
30
  function NotificationCard(_a) {
31
- var title = _a.title, createdAtText = _a.createdAtText, message = _a.message;
31
+ // function renderStatus() {
32
+ // // if (status === "")
33
+ // // }
34
+ var title = _a.title, createdAtText = _a.createdAtText, message = _a.message, status = _a.status;
32
35
  return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'NotificationCard', children: (0, jsx_runtime_1.jsxs)(S.NotificationCard, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'top', children: [title && (0, jsx_runtime_1.jsx)("h4", { className: 'font-16-bold', children: title }), createdAtText && (0, jsx_runtime_1.jsx)("span", { className: 'font-12-regular', children: createdAtText })] }), message && (0, jsx_runtime_1.jsx)("div", { className: 'description font-16-regular', dangerouslySetInnerHTML: { __html: message } })] }) }));
33
36
  }
34
37
  exports.NotificationCard = NotificationCard;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/notifications/card/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAI5B,0CAA6B;AAE7B,SAAgB,gBAAgB,CAAC,EAAgD;QAA9C,KAAK,WAAA,EAAE,aAAa,mBAAA,EAAE,OAAO,aAAA;IAC9D,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,kBAAkB,YAC5B,wBAAC,CAAC,CAAC,gBAAgB,eACjB,iCAAK,SAAS,EAAC,KAAK,aACjB,KAAK,IAAI,+BAAI,SAAS,EAAC,cAAc,YAAE,KAAK,GAAM,EAClD,aAAa,IAAI,iCAAM,SAAS,EAAC,iBAAiB,YAAE,aAAa,GAAQ,IACtE,EAEL,OAAO,IAAI,gCAAK,SAAS,EAAC,6BAA6B,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI,IACtF,GACf,CACT,CAAA;AACH,CAAC;AAbD,4CAaC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/notifications/card/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAI5B,0CAA6B;AAE7B,SAAgB,gBAAgB,CAAC,EAAwD;IACvF,8BAA8B;IAC9B,wBAAwB;IACxB,SAAS;QAHwB,KAAK,WAAA,EAAE,aAAa,mBAAA,EAAE,OAAO,aAAA,EAAE,MAAM,YAAA;IAKtE,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,kBAAkB,YAC5B,wBAAC,CAAC,CAAC,gBAAgB,eACjB,iCAAK,SAAS,EAAC,KAAK,aACjB,KAAK,IAAI,+BAAI,SAAS,EAAC,cAAc,YAAE,KAAK,GAAM,EAClD,aAAa,IAAI,iCAAM,SAAS,EAAC,iBAAiB,YAAE,aAAa,GAAQ,IACtE,EAEL,OAAO,IAAI,gCAAK,SAAS,EAAC,6BAA6B,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI,IACtF,GACf,CACT,CAAA;AACH,CAAC;AAjBD,4CAiBC"}
@@ -91,7 +91,7 @@ function Notifications() {
91
91
  return __generator(this, function (_a) {
92
92
  switch (_a.label) {
93
93
  case 0:
94
- noReadNotifications = notifications.filter(function (notification) { return !notification.isRead; }).map(function (noRead) { return noRead.id; });
94
+ noReadNotifications = notifications === null || notifications === void 0 ? void 0 : notifications.filter(function (notification) { return !notification.isRead; }).map(function (noRead) { return noRead.id; });
95
95
  return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteNotifications).readAll({ ids: noReadNotifications })];
96
96
  case 1:
97
97
  _a.sent();
@@ -102,9 +102,9 @@ function Notifications() {
102
102
  });
103
103
  });
104
104
  }
105
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Notifications', children: (0, jsx_runtime_1.jsx)(S.Notifications, { children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { trigger: (0, jsx_runtime_1.jsxs)(styles_1.ActionBox, { type: 'button', children: [(data === null || data === void 0 ? void 0 : data.number) > 0 && (0, jsx_runtime_1.jsx)("div", { className: 'circle' }), (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconFullFieldBell' })] }), position: 'bottom right', on: 'click', style: { padding: '0', borderRadius: 5 }, onOpen: handleOnOpen, content: (0, jsx_runtime_1.jsx)(S.Content, { children: notifications &&
106
- notifications.length > 0 &&
107
- notifications.map(function (notification) { return (0, jsx_runtime_1.jsx)(card_1.NotificationCard, __assign({}, notification)); }) }) }) }) }));
105
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Notifications', children: (0, jsx_runtime_1.jsx)(S.Notifications, { children: (0, jsx_runtime_1.jsx)(semantic_ui_react_1.Popup, { trigger: (0, jsx_runtime_1.jsxs)(styles_1.ActionBox, { type: 'button', children: [(data === null || data === void 0 ? void 0 : data.number) > 0 && (0, jsx_runtime_1.jsx)("div", { className: 'circle' }), (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconFullFieldBell' })] }), position: 'bottom right', on: 'click', style: { padding: '0', borderRadius: 5 }, onOpen: handleOnOpen, content: (0, jsx_runtime_1.jsxs)(S.Content, { children: [!notifications && (0, jsx_runtime_1.jsx)("div", {}), notifications &&
106
+ notifications.length > 0 &&
107
+ notifications.map(function (notification) { return (0, jsx_runtime_1.jsx)(card_1.NotificationCard, __assign({}, notification)); })] }) }) }) }));
108
108
  }
109
109
  exports.Notifications = Notifications;
110
110
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/notifications/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAC5B,uDAAyC;AAEzC,2BAAkC;AAClC,mCAAqH;AAErH,+BA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AO,cACP,aAAa;wBACZ,aAAa,CAAC,MAAM,GAAG,CAAC;wBACxB,aAAa,CAAC,GAAG,CAAC,UAAC,YAAY,IAAK,OAAA,uBAAC,uBAAgB,eAAK,YAAY,EAAI,EAAtC,CAAsC,CAAC,GACnE,GAEd,GACc,GACZ,CACT,CAAA;AACH,CAAC;AA3CD,sCA2CC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/notifications/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAC5B,uDAAyC;AAEzC,2BAAkC;AAClC,mCAAqH;AAErH,+BAAyC;AAEzC,0CAA6B;AAC7B,oCAAqC;AACrC,SAAgB,aAAa;IACnB,IAAA,IAAI,GAAK,IAAA,mCAA0B,GAAE,KAAjC,CAAiC;IACrC,IAAA,aAAa,GAAK,IAAA,gCAAuB,GAAE,cAA9B,CAA8B;IAEnD,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAM;IACR,CAAC;IAED,SAAe,YAAY;;;;;;wBACnB,mBAAmB,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,CAAC,UAAC,YAAY,IAAK,OAAA,CAAC,YAAY,CAAC,MAAM,EAApB,CAAoB,EAAE,GAAG,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,EAAE,EAAT,CAAS,CAAC,CAAA;wBAEpH,qBAAM,kBAAS,CAAC,GAAG,CAAsB,cAAK,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,mBAAmB,EAAE,CAAC,EAAA;;wBAAzG,SAAyG,CAAA;wBACzG,IAAA,YAAM,EAAC,sBAAsB,CAAC,CAAA;wBAC9B,IAAA,YAAM,EAAC,yBAAyB,CAAC,CAAA;wBACjC,sBAAM;;;;KACP;IAED,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,eAAe,YACzB,uBAAC,CAAC,CAAC,aAAa,cACd,uBAAC,yBAAK,IACJ,OAAO,EACL,wBAAC,kBAAS,IAAC,IAAI,EAAC,QAAQ,aACrB,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,IAAG,CAAC,IAAI,gCAAK,SAAS,EAAC,QAAQ,GAAG,EAE/C,uBAAC,SAAI,IAAC,IAAI,EAAC,mBAAmB,GAAG,IACvB,EAEd,QAAQ,EAAC,cAAc,EACvB,EAAE,EAAC,OAAO,EACV,KAAK,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,EACxC,MAAM,EAAE,YAAY,EACpB,OAAO,EACL,wBAAC,CAAC,CAAC,OAAO,eACP,CAAC,aAAa,IAAI,iCAAW,EAE7B,aAAa;4BACZ,aAAa,CAAC,MAAM,GAAG,CAAC;4BACxB,aAAa,CAAC,GAAG,CAAC,UAAC,YAAY,IAAK,OAAA,uBAAC,uBAAgB,eAAK,YAAY,EAAI,EAAtC,CAAsC,CAAC,IACnE,GAEd,GACc,GACZ,CACT,CAAA;AACH,CAAC;AA7CD,sCA6CC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.31.1",
3
+ "version": "0.31.2",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",