infinity-forge 0.59.2 → 0.59.4

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.
@@ -1,13 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import { IStyledComponent } from 'styled-components';
3
- import { RemoteLoadUserAdmin, RemoteMenu } from '../../../../system/index.js';
3
+ import { LoadAllMenu, RemoteLoadUserAdmin, RemoteMenu } from '../../../../system/index.js';
4
4
  import { IMenuSettings } from '../menu/index.js';
5
5
  export interface InfraInjectionContextType {
6
6
  InjectedRemotes?: {
7
7
  users?: {
8
8
  loadUserAdmin?: RemoteLoadUserAdmin;
9
9
  };
10
- menu?: RemoteMenu;
10
+ menu?: {
11
+ remote?: RemoteMenu;
12
+ menu?: LoadAllMenu.Model;
13
+ };
11
14
  };
12
15
  Configurations?: {
13
16
  chat?: boolean;
@@ -43,15 +43,23 @@ function useLoadMenu() {
43
43
  var InjectedRemotes = (0, system_1.useInfraInjection)().InjectedRemotes;
44
44
  function fetcher() {
45
45
  return __awaiter(this, void 0, void 0, function () {
46
- var RemoteMenu, response;
47
- return __generator(this, function (_a) {
48
- switch (_a.label) {
46
+ var RemoteMenu, response, _a;
47
+ var _b, _c, _d;
48
+ return __generator(this, function (_e) {
49
+ switch (_e.label) {
49
50
  case 0:
50
- RemoteMenu = (InjectedRemotes === null || InjectedRemotes === void 0 ? void 0 : InjectedRemotes.menu) || system_1.container.get(system_1.Types.RemoteMenu);
51
+ RemoteMenu = ((_b = InjectedRemotes === null || InjectedRemotes === void 0 ? void 0 : InjectedRemotes.menu) === null || _b === void 0 ? void 0 : _b.remote)
52
+ ? (_c = InjectedRemotes === null || InjectedRemotes === void 0 ? void 0 : InjectedRemotes.menu) === null || _c === void 0 ? void 0 : _c.remote
53
+ : system_1.container.get(system_1.Types.RemoteMenu);
54
+ _a = RemoteMenu;
55
+ if (!_a) return [3 /*break*/, 2];
51
56
  return [4 /*yield*/, RemoteMenu.loadAll()];
52
57
  case 1:
53
- response = _a.sent();
54
- return [2 /*return*/, response];
58
+ _a = (_e.sent());
59
+ _e.label = 2;
60
+ case 2:
61
+ response = _a;
62
+ return [2 /*return*/, ((_d = InjectedRemotes === null || InjectedRemotes === void 0 ? void 0 : InjectedRemotes.menu) === null || _d === void 0 ? void 0 : _d.menu) || response];
55
63
  }
56
64
  });
57
65
  });
@@ -1 +1 @@
1
- {"version":3,"file":"use-load-menu.js","sourceRoot":"","sources":["../../../../../src/system/presentation/hooks/menu/use-load-menu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA8B;AAC9B,mCAA0E;AAE1E,SAAgB,WAAW;IACjB,IAAA,eAAe,GAAK,IAAA,0BAAiB,GAAE,gBAAxB,CAAwB;IAE/C,SAAe,OAAO;;;;;;wBACd,UAAU,GAAG,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,KAAI,kBAAS,CAAC,GAAG,CAAa,cAAK,CAAC,UAAU,CAAC,CAAA;wBAEvE,qBAAM,UAAU,CAAC,OAAO,EAAE,EAAA;;wBAArC,QAAQ,GAAG,SAA0B;wBAE1C,sBAAO,QAAQ,EAAA;;;;KAChB;IAED,OAAO,IAAA,aAAQ,EAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC;AAZD,kCAYC"}
1
+ {"version":3,"file":"use-load-menu.js","sourceRoot":"","sources":["../../../../../src/system/presentation/hooks/menu/use-load-menu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA+B;AAC/B,mCAA0E;AAE1E,SAAgB,WAAW;IACjB,IAAA,eAAe,GAAK,IAAA,0BAAiB,GAAE,gBAAxB,CAAwB;IAE/C,SAAe,OAAO;;;;;;;wBACd,UAAU,GAAG,CAAA,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,0CAAE,MAAM;4BAC9C,CAAC,CAAC,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,0CAAE,MAAM;4BAC/B,CAAC,CAAC,kBAAS,CAAC,GAAG,CAAa,cAAK,CAAC,UAAU,CAAC,CAAA;wBAE9B,KAAA,UAAU,CAAA;iCAAV,wBAAU;wBAAI,qBAAM,UAAU,CAAC,OAAO,EAAE,EAAA;;8BAA1B,SAA0B;;;wBAAnD,QAAQ,KAA2C;wBAEzD,sBAAO,CAAA,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,0CAAE,IAAI,KAAI,QAAQ,EAAA;;;;KAC/C;IAED,OAAO,IAAA,aAAQ,EAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC;AAdD,kCAcC"}
@@ -4,6 +4,7 @@ export * from './render/Pin.js';
4
4
  export * from './render/Map.js';
5
5
  export * from './render/Lupa.js';
6
6
  export * from './render/Eye.js';
7
+ export * from './render/print.js';
7
8
  export * from './render/clip.js';
8
9
  export * from './render/next.js';
9
10
  export * from './render/prev.js';
@@ -20,6 +20,7 @@ __exportStar(require("./render/Pin.js"), exports);
20
20
  __exportStar(require("./render/Map.js"), exports);
21
21
  __exportStar(require("./render/Lupa.js"), exports);
22
22
  __exportStar(require("./render/Eye.js"), exports);
23
+ __exportStar(require("./render/print.js"), exports);
23
24
  __exportStar(require("./render/clip.js"), exports);
24
25
  __exportStar(require("./render/next.js"), exports);
25
26
  __exportStar(require("./render/prev.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/icons/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,+CAA4B;AAC5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C,oDAAiC;AACjC,oDAAiC;AAEjC,oDAAiC;AACjC,qDAAkC;AAClC,sDAAmC;AACnC,qDAAkC;AAClC,sDAAmC;AACnC,sDAAmC;AACnC,oDAAiC;AACjC,qDAAkC;AAClC,sDAAmC;AACnC,sDAAmC;AACnC,uDAAoC;AACpC,wDAAqC;AACrC,wDAAqC;AACrC,wDAAqC;AACrC,yDAAsC;AACtC,yDAAsC;AACtC,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,2DAAwC;AACxC,4DAAyC;AACzC,6DAA0C;AAC1C,8DAA2C;AAC3C,6DAA0C;AAC1C,8DAA2C;AAC3C,8DAA2C;AAC3C,8DAA2C;AAC3C,+DAA4C;AAC5C,+DAA4C;AAC5C,gEAA6C;AAC7C,gEAA6C"}
@@ -0,0 +1 @@
1
+ export declare function IconPrint(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IconPrint = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ function IconPrint() {
6
+ return ((0, jsx_runtime_1.jsxs)("svg", { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round', children: [(0, jsx_runtime_1.jsx)("path", { stroke: 'none', d: 'M0 0h24v24H0z', fill: 'none' }), (0, jsx_runtime_1.jsx)("path", { d: 'M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2' }), (0, jsx_runtime_1.jsx)("path", { d: 'M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4' }), (0, jsx_runtime_1.jsx)("path", { d: 'M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z' })] }));
7
+ }
8
+ exports.IconPrint = IconPrint;
9
+ //# sourceMappingURL=print.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"print.js","sourceRoot":"","sources":["../../../../src/ui/icons/render/print.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,SAAS;IACvB,OAAO,CACL,iCACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,aAEtB,iCAAM,MAAM,EAAC,MAAM,EAAC,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAG,EACpD,iCAAM,CAAC,EAAC,iFAAiF,GAAG,EAC5F,iCAAM,CAAC,EAAC,8CAA8C,GAAG,EACzD,iCAAM,CAAC,EAAC,+EAA+E,GAAG,IACtF,CACP,CAAA;AACH,CAAC;AAjBD,8BAiBC"}
package/package.json CHANGED
@@ -1,88 +1,88 @@
1
- {
2
- "name": "infinity-forge",
3
- "version": "0.59.2",
4
- "description": "codie Library",
5
- "main": "./dist/index",
6
- "module": "./dist/index",
7
- "types": "./dist/index.d.ts",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/CodieDigital/codiedigital-library"
11
- },
12
- "scripts": {
13
- "dev": "next -p 3050",
14
- "deploy": "npm version patch && npm publish",
15
- "next": "next build",
16
- "start": "next start -p 3015",
17
- "build": "concurrently --kill-others-on-fail \"tsc -w\" \"tsc-alias -w --resolve-full-paths\" \"npm run build:CSS\" \"npm run fonts\"",
18
- "build:CSS": "npm run minify-css && node combine-css.ts && cpx \"src/**/*.css\" dist --watch",
19
- "minify-css": "postcss src/**/*.css --use cssnano -d dist --no-map",
20
- "fonts": "tsc-alias -p tsconfig.json && mkdir dist\\fonts && for /r src %i in (*.otf, *.ttf) do copy \"%i\" dist\\fonts\\"
21
- },
22
- "peerDependencies": {
23
- "react": ">=16"
24
- },
25
- "files": [
26
- "dist",
27
- "LICENSE",
28
- "README.md"
29
- ],
30
- "keywords": [
31
- "react",
32
- "typescript",
33
- "awesome-project"
34
- ],
35
- "author": "Codie Digital",
36
- "license": "MIT",
37
- "devDependencies": {
38
- "@types/node": "^20.12.12",
39
- "@types/react": "^18.3.3",
40
- "@types/react-date-range": "^1.4.9",
41
- "@types/react-datepicker": "^6.2.0",
42
- "@types/react-dom": "^18.3.0",
43
- "@types/styled-components": "^5.1.34",
44
- "concurrently": "^8.2.2",
45
- "copyfiles": "^2.4.1",
46
- "cpx": "^1.5.0",
47
- "cssnano": "^7.0.1",
48
- "postcss-cli": "^11.0.0",
49
- "tsc-alias": "^1.8.10",
50
- "tslib": "^2.6.2"
51
- },
52
- "dependencies": {
53
- "@ckeditor/ckeditor5-react": "^7.0.0",
54
- "@types/react-slick": "^0.23.13",
55
- "axios": "^1.7.2",
56
- "chroma-js": "^2.4.2",
57
- "ckeditor5-custom-build": "^0.0.6",
58
- "date-fns": "^3.6.0",
59
- "exenv": "^1.2.2",
60
- "formik": "^2.4.6",
61
- "framer-motion": "^11.2.6",
62
- "fs": "0.0.1-security",
63
- "fs-extra": "^11.2.0",
64
- "inversify": "^6.0.2",
65
- "moment": "^2.30.1",
66
- "next": "^14.2.3",
67
- "postcss": "^8.4.38",
68
- "prop-types": "^15.8.1",
69
- "react": "18.3.1",
70
- "react-currency-input-field": "^3.8.0",
71
- "react-date-range": "^2.0.1",
72
- "react-datepicker": "^6.9.0",
73
- "react-dom": "18.3.1",
74
- "react-error-boundary": "^4.0.13",
75
- "react-ga": "^3.3.1",
76
- "react-lifecycles-compat": "^3.0.4",
77
- "react-select": "^5.8.0",
78
- "react-share": "^5.1.0",
79
- "react-slick": "^0.30.2",
80
- "react-tooltip": "^5.26.4",
81
- "reflect-metadata": "^0.2.2",
82
- "sharp": "^0.33.4",
83
- "styled-components": "^6.1.11",
84
- "typescript": "^5.4.5",
85
- "yup": "^1.4.0",
86
- "zustand": "^4.5.2"
87
- }
88
- }
1
+ {
2
+ "name": "infinity-forge",
3
+ "version": "0.59.4",
4
+ "description": "codie Library",
5
+ "main": "./dist/index",
6
+ "module": "./dist/index",
7
+ "types": "./dist/index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/CodieDigital/codiedigital-library"
11
+ },
12
+ "scripts": {
13
+ "dev": "next -p 3050",
14
+ "deploy": "npm version patch && npm publish",
15
+ "next": "next build",
16
+ "start": "next start -p 3015",
17
+ "build": "concurrently --kill-others-on-fail \"tsc -w\" \"tsc-alias -w --resolve-full-paths\" \"npm run build:CSS\" \"npm run fonts\"",
18
+ "build:CSS": "npm run minify-css && node combine-css.ts && cpx \"src/**/*.css\" dist --watch",
19
+ "minify-css": "postcss src/**/*.css --use cssnano -d dist --no-map",
20
+ "fonts": "tsc-alias -p tsconfig.json && mkdir dist\\fonts && for /r src %i in (*.otf, *.ttf) do copy \"%i\" dist\\fonts\\"
21
+ },
22
+ "peerDependencies": {
23
+ "react": ">=16"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "LICENSE",
28
+ "README.md"
29
+ ],
30
+ "keywords": [
31
+ "react",
32
+ "typescript",
33
+ "awesome-project"
34
+ ],
35
+ "author": "Codie Digital",
36
+ "license": "MIT",
37
+ "devDependencies": {
38
+ "@types/node": "^20.12.12",
39
+ "@types/react": "^18.3.3",
40
+ "@types/react-date-range": "^1.4.9",
41
+ "@types/react-datepicker": "^6.2.0",
42
+ "@types/react-dom": "^18.3.0",
43
+ "@types/styled-components": "^5.1.34",
44
+ "concurrently": "^8.2.2",
45
+ "copyfiles": "^2.4.1",
46
+ "cpx": "^1.5.0",
47
+ "cssnano": "^7.0.1",
48
+ "postcss-cli": "^11.0.0",
49
+ "tsc-alias": "^1.8.10",
50
+ "tslib": "^2.6.2"
51
+ },
52
+ "dependencies": {
53
+ "@ckeditor/ckeditor5-react": "^7.0.0",
54
+ "@types/react-slick": "^0.23.13",
55
+ "axios": "^1.7.2",
56
+ "chroma-js": "^2.4.2",
57
+ "ckeditor5-custom-build": "^0.0.6",
58
+ "date-fns": "^3.6.0",
59
+ "exenv": "^1.2.2",
60
+ "formik": "^2.4.6",
61
+ "framer-motion": "^11.2.6",
62
+ "fs": "0.0.1-security",
63
+ "fs-extra": "^11.2.0",
64
+ "inversify": "^6.0.2",
65
+ "moment": "^2.30.1",
66
+ "next": "^14.2.3",
67
+ "postcss": "^8.4.38",
68
+ "prop-types": "^15.8.1",
69
+ "react": "18.3.1",
70
+ "react-currency-input-field": "^3.8.0",
71
+ "react-date-range": "^2.0.1",
72
+ "react-datepicker": "^6.9.0",
73
+ "react-dom": "18.3.1",
74
+ "react-error-boundary": "^4.0.13",
75
+ "react-ga": "^3.3.1",
76
+ "react-lifecycles-compat": "^3.0.4",
77
+ "react-select": "^5.8.0",
78
+ "react-share": "^5.1.0",
79
+ "react-slick": "^0.30.2",
80
+ "react-tooltip": "^5.26.4",
81
+ "reflect-metadata": "^0.2.2",
82
+ "sharp": "^0.33.4",
83
+ "styled-components": "^6.1.11",
84
+ "typescript": "^5.4.5",
85
+ "yup": "^1.4.0",
86
+ "zustand": "^4.5.2"
87
+ }
88
+ }