infinity-forge 0.30.7 → 0.30.8

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 (19) hide show
  1. package/dist/system/presentation/components/layout/component.d.ts +7 -3
  2. package/dist/system/presentation/components/layout/component.js +2 -2
  3. package/dist/system/presentation/components/layout/component.js.map +1 -1
  4. package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -1
  5. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +2 -2
  6. package/dist/system/presentation/components/layout/header/components/menu-right/index.js.map +1 -1
  7. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.d.ts +4 -1
  8. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +8 -3
  9. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js.map +1 -1
  10. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.d.ts +4 -0
  11. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.js +3 -0
  12. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.js.map +1 -0
  13. package/dist/system/presentation/components/layout/header/index.d.ts +2 -1
  14. package/dist/system/presentation/components/layout/header/index.js +5 -3
  15. package/dist/system/presentation/components/layout/header/index.js.map +1 -1
  16. package/dist/system/presentation/components/layout/header/version-01/index.d.ts +2 -1
  17. package/dist/system/presentation/components/layout/header/version-01/index.js +2 -2
  18. package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
  19. package/package.json +1 -1
@@ -1,6 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { INotification } from './header/components/menu-right/notifications/interfaces.js';
2
3
  import { WorkSpace } from './menu/components/index.js';
3
- export declare function Layout({ children, workspaces }: {
4
- children: React.ReactNode;
4
+ interface ILayout {
5
5
  workspaces?: WorkSpace;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ children: React.ReactNode;
7
+ notifications?: INotification;
8
+ }
9
+ export declare function Layout({ children, workspaces, notifications }: ILayout): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -28,8 +28,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
28
28
  var header_1 = require("./header/index.js");
29
29
  var S = __importStar(require("./styles.js"));
30
30
  function Layout(_a) {
31
- var children = _a.children, workspaces = _a.workspaces;
32
- return ((0, jsx_runtime_1.jsxs)(S.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.Header, { workspaces: workspaces }), (0, jsx_runtime_1.jsx)("div", { className: 'content_layout', children: (0, jsx_runtime_1.jsx)("main", { children: children }) })] }));
31
+ var children = _a.children, workspaces = _a.workspaces, notifications = _a.notifications;
32
+ return ((0, jsx_runtime_1.jsxs)(S.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.Header, { workspaces: workspaces, notifications: notifications }), (0, jsx_runtime_1.jsx)("div", { className: 'content_layout', children: (0, jsx_runtime_1.jsx)("main", { children: children }) })] }));
33
33
  }
34
34
  exports.Layout = Layout;
35
35
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiC;AAGjC,0CAA6B;AAE7B,SAAgB,MAAM,CAAC,EAA+E;QAA7E,QAAQ,cAAA,EAAE,UAAU,gBAAA;IAC3C,OAAO,CACL,wBAAC,CAAC,CAAC,MAAM,eACP,uBAAC,eAAM,IAAC,UAAU,EAAE,UAAU,GAAI,EAElC,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,2CAAO,QAAQ,GAAQ,GACnB,IACG,CACZ,CAAA;AACH,CAAC;AAVD,wBAUC"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiC;AAIjC,0CAA6B;AAQ7B,SAAgB,MAAM,CAAC,EAAgD;QAA9C,QAAQ,cAAA,EAAE,UAAU,gBAAA,EAAE,aAAa,mBAAA;IAC1D,OAAO,CACL,wBAAC,CAAC,CAAC,MAAM,eACP,uBAAC,eAAM,IAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,GAAI,EAEhE,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,2CAAO,QAAQ,GAAQ,GACnB,IACG,CACZ,CAAA;AACH,CAAC;AAVD,wBAUC"}
@@ -1 +1 @@
1
- export declare function MenuRight(): import("react/jsx-runtime").JSX.Element;
1
+ export declare function MenuRight(props: any): import("react/jsx-runtime").JSX.Element;
@@ -31,8 +31,8 @@ var settings_1 = require("./settings/index.js");
31
31
  var messages_1 = require("./messages/index.js");
32
32
  var notifications_1 = require("./notifications/index.js");
33
33
  var S = __importStar(require("./styles.js"));
34
- function MenuRight() {
35
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MenuRight', children: (0, jsx_runtime_1.jsxs)(S.MenuRight, { children: [(0, jsx_runtime_1.jsx)(notifications_1.Notifications, {}), (0, jsx_runtime_1.jsx)(messages_1.Messages, {}), (0, jsx_runtime_1.jsx)(settings_1.Settings, {}), (0, jsx_runtime_1.jsx)(profile_1.Profile, {})] }) }));
34
+ function MenuRight(props) {
35
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MenuRight', children: (0, jsx_runtime_1.jsxs)(S.MenuRight, { children: [props.notifications && (0, jsx_runtime_1.jsx)(notifications_1.Notifications, { notifications: props === null || props === void 0 ? void 0 : props.notifications }), (0, jsx_runtime_1.jsx)(messages_1.Messages, {}), (0, jsx_runtime_1.jsx)(settings_1.Settings, {}), (0, jsx_runtime_1.jsx)(profile_1.Profile, {})] }) }));
36
36
  }
37
37
  exports.MenuRight = MenuRight;
38
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAC5B,qCAAmC;AACnC,uCAAqC;AACrC,uCAAqC;AACrC,iDAA+C;AAE/C,0CAA6B;AAE7B,SAAgB,SAAS;IACvB,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,WAAW,YACrB,wBAAC,CAAC,CAAC,SAAS,eACV,uBAAC,6BAAa,KAAG,EAEjB,uBAAC,mBAAQ,KAAG,EAEZ,uBAAC,mBAAQ,KAAG,EAEZ,uBAAC,iBAAO,KAAG,IACC,GACR,CACT,CAAA;AACH,CAAC;AAdD,8BAcC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAC5B,qCAAmC;AACnC,uCAAqC;AACrC,uCAAqC;AACrC,iDAA+C;AAE/C,0CAA6B;AAE7B,SAAgB,SAAS,CAAC,KAAK;IAC7B,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,WAAW,YACrB,wBAAC,CAAC,CAAC,SAAS,eACT,KAAK,CAAC,aAAa,IAAI,uBAAC,6BAAa,IAAC,aAAa,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,GAAI,EAE9E,uBAAC,mBAAQ,KAAG,EAEZ,uBAAC,mBAAQ,KAAG,EAEZ,uBAAC,iBAAO,KAAG,IACC,GACR,CACT,CAAA;AACH,CAAC;AAdD,8BAcC"}
@@ -1 +1,4 @@
1
- export declare function Notifications(): import("react/jsx-runtime").JSX.Element;
1
+ import { INotification } from './interfaces.js';
2
+ export declare function Notifications({ notifications }: {
3
+ notifications: INotification;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -28,9 +28,14 @@ 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
  var styles_1 = require("../styles.js");
31
- function Notifications() {
32
- var hasNotification = true;
33
- 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)(styles_1.ActionBox, { type: 'button', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconFullFieldBell' }) }) }) }));
31
+ function Notifications(_a) {
32
+ var _b;
33
+ var notifications = _a.notifications;
34
+ var timezone = (_b = new Date()) === null || _b === void 0 ? void 0 : _b.toISOString();
35
+ console.log(timezone);
36
+ var result = notifications === null || notifications === void 0 ? void 0 : notifications.loadNotifications(timezone).then(function (r) { return r.json(); });
37
+ console.log(result);
38
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Notifications', children: (0, jsx_runtime_1.jsx)(S.Notifications, { children: (0, jsx_runtime_1.jsxs)(styles_1.ActionBox, { type: 'button', children: [(notifications === null || notifications === void 0 ? void 0 : notifications.noRead) > 0 && (0, jsx_runtime_1.jsx)("div", { className: 'circle' }), (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconFullFieldBell' })] }) }) }));
34
39
  }
35
40
  exports.Notifications = Notifications;
36
41
  //# 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,2BAAkC;AAElC,0CAA6B;AAC7B,oCAAqC;AAErC,SAAgB,aAAa;IAC3B,IAAM,eAAe,GAAG,IAAI,CAAA;IAE5B,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,eAAe,YACzB,uBAAC,CAAC,CAAC,aAAa,cACd,uBAAC,kBAAS,IAAC,IAAI,EAAC,QAAQ,YAGtB,uBAAC,SAAI,IAAC,IAAI,EAAC,mBAAmB,GAAG,GACvB,GACI,GACZ,CACT,CAAA;AACH,CAAC;AAdD,sCAcC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/notifications/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAkC;AAIlC,0CAA6B;AAC7B,oCAAqC;AACrC,SAAgB,aAAa,CAAC,EAAmD;;QAAjD,aAAa,mBAAA;IAC3C,IAAM,QAAQ,GAAG,MAAA,IAAI,IAAI,EAAE,0CAAE,WAAW,EAAE,CAAA;IAC1C,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IAErB,IAAM,MAAM,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,iBAAiB,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,IAAI,EAAE,EAAR,CAAQ,CAAC,CAAA;IAE/E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;IAEnB,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,eAAe,YACzB,uBAAC,CAAC,CAAC,aAAa,cACd,wBAAC,kBAAS,IAAC,IAAI,EAAC,QAAQ,aACrB,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,IAAG,CAAC,IAAI,gCAAK,SAAS,EAAC,QAAQ,GAAG,EAExD,uBAAC,SAAI,IAAC,IAAI,EAAC,mBAAmB,GAAG,IACvB,GACI,GACZ,CACT,CAAA;AACH,CAAC;AAnBD,sCAmBC"}
@@ -0,0 +1,4 @@
1
+ export interface INotification {
2
+ noRead: number;
3
+ loadNotifications: (timezone: string) => Promise<any>;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
- export declare function Header({ workspaces }: {
1
+ export declare function Header({ workspaces, notifications }: {
2
2
  workspaces: any;
3
+ notifications: any;
3
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -4,12 +4,14 @@ exports.Header = void 0;
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
5
  var version_01_1 = require("./version-01/index.js");
6
6
  function Header(_a) {
7
- var workspaces = _a.workspaces;
7
+ var workspaces = _a.workspaces, notifications = _a.notifications;
8
8
  var type = 'version01';
9
9
  switch (type) {
10
10
  case 'version01':
11
- return (0, jsx_runtime_1.jsx)(version_01_1.HeaderVersion01, { workspaces: workspaces });
12
- default: (0, jsx_runtime_1.jsx)(version_01_1.HeaderVersion01, { workspaces: workspaces });
11
+ return (0, jsx_runtime_1.jsx)(version_01_1.HeaderVersion01, { workspaces: workspaces, notifications: notifications });
12
+ default:
13
+ ;
14
+ (0, jsx_runtime_1.jsx)(version_01_1.HeaderVersion01, { workspaces: workspaces, notifications: notifications });
13
15
  }
14
16
  }
15
17
  exports.Header = Header;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/layout/header/index.tsx"],"names":[],"mappings":";;;;AAAA,2CAA8C;AAE9C,SAAgB,MAAM,CAAC,EAAc;QAAZ,UAAU,gBAAA;IACjC,IAAM,IAAI,GAAG,WAAW,CAAA;IAExB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,WAAW;YACd,OAAO,uBAAC,4BAAe,IAAC,UAAU,EAAE,UAAU,GAAI,CAAA;QAEpD,OAAO,CAAC,CAAC,uBAAC,4BAAe,IAAC,UAAU,EAAE,UAAU,GAAI,CAAA;IACtD,CAAC;AACH,CAAC;AATD,wBASC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/layout/header/index.tsx"],"names":[],"mappings":";;;;AAAA,2CAA8C;AAE9C,SAAgB,MAAM,CAAC,EAA6B;QAA3B,UAAU,gBAAA,EAAE,aAAa,mBAAA;IAChD,IAAM,IAAI,GAAG,WAAW,CAAA;IAExB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,WAAW;YACd,OAAO,uBAAC,4BAAe,IAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,GAAI,CAAA;QAElF;YACE,CAAC;YAAA,uBAAC,4BAAe,IAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,GAAI,CAAA;IAC9E,CAAC;AACH,CAAC;AAVD,wBAUC"}
@@ -1,3 +1,4 @@
1
- export declare function HeaderVersion01({ workspaces }: {
1
+ export declare function HeaderVersion01({ workspaces, notifications }: {
2
2
  workspaces: any;
3
+ notifications: any;
3
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -34,8 +34,8 @@ var menu_1 = require("../../menu/index.js");
34
34
  var components_1 = require("../components/index.js");
35
35
  var S = __importStar(require("./styles.js"));
36
36
  function HeaderVersion01(_a) {
37
- var workspaces = _a.workspaces;
38
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { id: 'header', children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'left', children: [(0, jsx_runtime_1.jsx)("div", { className: 'logo-wrapper', children: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'logo', href: '/', children: (0, jsx_runtime_1.jsx)("img", { src: '/images/logo.png', alt: 'header-logo' }) }) }), (0, jsx_runtime_1.jsx)(menu_1.SideBarMenu, { workspaces: workspaces })] }), (0, jsx_runtime_1.jsxs)("div", { className: 'right', children: [(0, jsx_runtime_1.jsx)(components_1.SearchModal, {}), (0, jsx_runtime_1.jsx)(components_1.MenuRight, {})] })] }) }) }));
37
+ var workspaces = _a.workspaces, notifications = _a.notifications;
38
+ return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'HeaderCarbon', children: (0, jsx_runtime_1.jsx)(S.HeaderVersion01, { id: 'header', children: (0, jsx_runtime_1.jsxs)(ui_1.Container, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'left', children: [(0, jsx_runtime_1.jsx)("div", { className: 'logo-wrapper', children: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'logo', href: '/', children: (0, jsx_runtime_1.jsx)("img", { src: '/images/logo.png', alt: 'header-logo' }) }) }), (0, jsx_runtime_1.jsx)(menu_1.SideBarMenu, { workspaces: workspaces })] }), (0, jsx_runtime_1.jsxs)("div", { className: 'right', children: [(0, jsx_runtime_1.jsx)(components_1.SearchModal, {}), (0, jsx_runtime_1.jsx)(components_1.MenuRight, { notifications: notifications })] })] }) }) }));
39
39
  }
40
40
  exports.HeaderVersion01 = HeaderVersion01;
41
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAE5B,2BAAuC;AAEvC,mCAAwC;AACxC,4CAAsD;AAEtD,0CAA6B;AAE7B,SAAgB,eAAe,CAAC,EAAc;QAAZ,UAAU,gBAAA;IAC1C,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,eAAe,IAAC,EAAE,EAAC,QAAQ,YAC5B,wBAAC,cAAS,eACR,iCAAK,SAAS,EAAC,MAAM,aACnB,gCAAK,SAAS,EAAC,cAAc,YAC3B,uBAAC,cAAI,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,GAAG,YAC7B,gCAAK,GAAG,EAAC,kBAAkB,EAAC,GAAG,EAAC,aAAa,GAAG,GAC3C,GACH,EAEN,uBAAC,kBAAW,IAAC,UAAU,EAAE,UAAU,GAAI,IACnC,EAEN,iCAAK,SAAS,EAAC,OAAO,aACpB,uBAAC,wBAAW,KAAG,EAEf,uBAAC,sBAAS,KAAG,IACT,IACI,GACM,GACd,CACT,CAAA;AACH,CAAC;AAxBD,0CAwBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAE5B,2BAAuC;AAEvC,mCAAwC;AACxC,4CAAsD;AAEtD,0CAA6B;AAE7B,SAAgB,eAAe,CAAC,EAA6B;QAA3B,UAAU,gBAAA,EAAE,aAAa,mBAAA;IACzD,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,eAAe,IAAC,EAAE,EAAC,QAAQ,YAC5B,wBAAC,cAAS,eACR,iCAAK,SAAS,EAAC,MAAM,aACnB,gCAAK,SAAS,EAAC,cAAc,YAC3B,uBAAC,cAAI,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,GAAG,YAC7B,gCAAK,GAAG,EAAC,kBAAkB,EAAC,GAAG,EAAC,aAAa,GAAG,GAC3C,GACH,EAEN,uBAAC,kBAAW,IAAC,UAAU,EAAE,UAAU,GAAI,IACnC,EAEN,iCAAK,SAAS,EAAC,OAAO,aACpB,uBAAC,wBAAW,KAAG,EAEf,uBAAC,sBAAS,IAAC,aAAa,EAAE,aAAa,GAAI,IACvC,IACI,GACM,GACd,CACT,CAAA;AACH,CAAC;AAxBD,0CAwBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "0.30.7",
3
+ "version": "0.30.8",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",