infinity-forge 3.8.5 → 3.8.7
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.
|
@@ -62,13 +62,21 @@ exports.createClient = void 0;
|
|
|
62
62
|
var sites_1 = require("../sites/index.js");
|
|
63
63
|
var ui_1 = require("../ui/index.js");
|
|
64
64
|
function createClient() {
|
|
65
|
+
function replaceUrlParams(url, params) {
|
|
66
|
+
var _a;
|
|
67
|
+
if (!params)
|
|
68
|
+
return url === null || url === void 0 ? void 0 : url.slice(1);
|
|
69
|
+
return (_a = url.replace(/\{(\w+)\}/g, function (_, key) { return params[key] || "{".concat(key, "}"); })) === null || _a === void 0 ? void 0 : _a.slice(1);
|
|
70
|
+
}
|
|
65
71
|
function client(_a) {
|
|
66
72
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
67
|
-
var res;
|
|
73
|
+
var finalUrl, res;
|
|
68
74
|
var url = _b.url, method = _b.method, body = _b.body;
|
|
69
75
|
return __generator(this, function (_c) {
|
|
70
76
|
switch (_c.label) {
|
|
71
|
-
case 0:
|
|
77
|
+
case 0:
|
|
78
|
+
finalUrl = replaceUrlParams(url, body === null || body === void 0 ? void 0 : body.params);
|
|
79
|
+
return [4 /*yield*/, (0, sites_1.api)({ url: finalUrl, method: method, body: body === null || body === void 0 ? void 0 : body.requestBody })];
|
|
72
80
|
case 1:
|
|
73
81
|
res = _c.sent();
|
|
74
82
|
return [2 /*return*/, res];
|
|
@@ -83,7 +91,7 @@ function createClient() {
|
|
|
83
91
|
var res;
|
|
84
92
|
return __generator(this, function (_a) {
|
|
85
93
|
switch (_a.label) {
|
|
86
|
-
case 0: return [4 /*yield*/, (
|
|
94
|
+
case 0: return [4 /*yield*/, client({ url: url, method: method, body: body })];
|
|
87
95
|
case 1:
|
|
88
96
|
res = _a.sent();
|
|
89
97
|
return [2 /*return*/, res];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-client-open-api.js","sourceRoot":"","sources":["../../src/infra/create-client-open-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-client-open-api.js","sourceRoot":"","sources":["../../src/infra/create-client-open-api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iCAA6B;AAC7B,2BAA8C;AAE9C,SAAgB,YAAY;IAE1B,SAAS,gBAAgB,CAAqB,GAAQ,EAAE,MAA4B;;QAClF,IAAI,CAAC,MAAM;YAAE,OAAO,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,KAAK,CAAC,CAAC,CAAC,CAAA;QACjC,OAAO,MAAA,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,UAAC,CAAC,EAAE,GAAG,IAAK,OAAA,MAAM,CAAC,GAAG,CAAC,IAAI,WAAI,GAAG,MAAG,EAAzB,CAAyB,CAAC,0CAAE,KAAK,CAAC,CAAC,CAAC,CAAA;IACnF,CAAC;IAED,SAAe,MAAM;4DAA+D,EAQnF;;gBAPC,GAAG,SAAA,EACH,MAAM,YAAA,EACN,IAAI,UAAA;;;;wBAME,QAAQ,GAAG,gBAAgB,CAAC,GAAa,EAAG,IAAY,aAAZ,IAAI,uBAAJ,IAAI,CAAU,MAAM,CAAC,CAAA;wBAE3D,qBAAM,IAAA,WAAG,EAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAa,EAAE,IAAI,EAAG,IAAY,aAAZ,IAAI,uBAAJ,IAAI,CAAU,WAAW,EAAE,CAAC,EAAA;;wBAA3F,GAAG,GAAG,SAAqF;wBAEjG,sBAAO,GAAmE,EAAA;;;;KAC3E;IAED,SAAS,eAAe,CAA+D,EASvC;QAThD,iBAkBC;QAjBC,IAAA,GAAG,SAAA,EACH,MAAM,YAAA,EACN,IAAI,UAAA,EACD,IAAI,cAJ8E,yBAKtF,CADQ;QAMP,OAAO,IAAA,aAAQ,sBACb,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,IACpB,IAAI,KACP,OAAO,EAAE;;;;gCACK,qBAAM,MAAM,CAAC,EAAE,GAAG,KAAA,EAAE,MAAM,QAAA,EAAE,IAAI,MAAA,EAAE,CAAC,EAAA;;4BAAzC,GAAG,GAAG,SAAmC;4BAC/C,sBAAO,GAAmE,EAAA;;;iBAC3E,IACD,CAAA;IACJ,CAAC;IAED,OAAO,EAAE,MAAM,QAAA,EAAE,eAAe,iBAAA,EAAE,CAAA;AACpC,CAAC;AA5CD,oCA4CC"}
|
package/dist/test/index.js
CHANGED
|
@@ -1,67 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
3
|
exports.NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro = void 0;
|
|
40
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
|
-
var
|
|
5
|
+
var infra_1 = require("../infra/index.js");
|
|
42
6
|
function NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro() {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
console.log(data);
|
|
47
|
-
return [2 /*return*/];
|
|
48
|
-
});
|
|
49
|
-
}); },
|
|
50
|
-
// messageProvider={{ enabled: true }}
|
|
51
|
-
button: { text: 'Enviar' }, children: (0, jsx_runtime_1.jsx)(ui_1.InputManager, { name: 'items', label: 'add', inputs: [
|
|
52
|
-
[
|
|
53
|
-
{
|
|
54
|
-
name: 'foto',
|
|
55
|
-
InputComponent: 'InputFile',
|
|
56
|
-
uploadFileVersion: 'v2',
|
|
57
|
-
isAccumalativeFile: true,
|
|
58
|
-
multiple: true,
|
|
59
|
-
enableMobileImage: true,
|
|
60
|
-
sizeImageFile: "20x20",
|
|
61
|
-
sizeImageFileMobile: '10x10',
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
] }) }));
|
|
7
|
+
var useQueryBackend = (0, infra_1.createClient)().useQueryBackend;
|
|
8
|
+
var data = useQueryBackend({ url: "/Users", method: "get" }).data;
|
|
9
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
65
10
|
}
|
|
66
11
|
exports.NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro = NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro;
|
|
67
12
|
//# sourceMappingURL=index.js.map
|
package/dist/test/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;AACA,iCAAsC;AACtC,SAAgB,8CAA8C;IACpD,IAAA,eAAe,GAAK,IAAA,oBAAY,GAAW,gBAA5B,CAA4B;IAE5C,IAAA,IAAI,GAAI,eAAe,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,KAArD,CAAqD;IAEhE,OAAO,kDAAK,CAAA;AACd,CAAC;AAND,wGAMC"}
|
package/package.json
CHANGED
|
@@ -1,75 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "infinity-forge",
|
|
3
|
-
"version": "3.8.
|
|
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 3052",
|
|
14
|
-
"deploy": "npm version patch && npm publish",
|
|
15
|
-
"next": "next build",
|
|
16
|
-
"start": "next start -p 3015",
|
|
17
|
-
"build": "tsc && tsc-alias --resolve-full-paths && npm run build:CSS",
|
|
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
|
-
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"react": ">=16"
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"LICENSE",
|
|
27
|
-
"README.md"
|
|
28
|
-
],
|
|
29
|
-
"keywords": [
|
|
30
|
-
"react",
|
|
31
|
-
"typescript",
|
|
32
|
-
"awesome-project"
|
|
33
|
-
],
|
|
34
|
-
"author": "Codie Digital",
|
|
35
|
-
"license": "MIT",
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@types/node": "^20.12.12",
|
|
38
|
-
"@types/react": "^18.3.3",
|
|
39
|
-
"@types/react-dom": "^18.3.0",
|
|
40
|
-
"@types/styled-components": "^5.1.34",
|
|
41
|
-
"concurrently": "^8.2.2",
|
|
42
|
-
"copyfiles": "^2.4.1",
|
|
43
|
-
"cssnano": "^7.0.1",
|
|
44
|
-
"fs-extra": "^11.2.0",
|
|
45
|
-
"postcss": "^8.4.38",
|
|
46
|
-
"postcss-cli": "^11.0.0",
|
|
47
|
-
"tsc-alias": "^1.8.10",
|
|
48
|
-
"typescript": "^5.4.5"
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"@types/lodash": "^4.17.7",
|
|
52
|
-
"axios": "^1.7.2",
|
|
53
|
-
"chroma-js": "^2.4.2",
|
|
54
|
-
"formik": "^2.4.6",
|
|
55
|
-
"inversify": "^6.0.2",
|
|
56
|
-
"lodash": "^4.17.21",
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"react
|
|
61
|
-
"react-
|
|
62
|
-
"react-
|
|
63
|
-
"react-
|
|
64
|
-
"react-
|
|
65
|
-
"react-
|
|
66
|
-
"react-
|
|
67
|
-
"react-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "infinity-forge",
|
|
3
|
+
"version": "3.8.7",
|
|
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 3052",
|
|
14
|
+
"deploy": "npm version patch && npm publish",
|
|
15
|
+
"next": "next build",
|
|
16
|
+
"start": "next start -p 3015",
|
|
17
|
+
"build": "tsc && tsc-alias --resolve-full-paths && npm run build:CSS",
|
|
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
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": ">=16"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"react",
|
|
31
|
+
"typescript",
|
|
32
|
+
"awesome-project"
|
|
33
|
+
],
|
|
34
|
+
"author": "Codie Digital",
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "^20.12.12",
|
|
38
|
+
"@types/react": "^18.3.3",
|
|
39
|
+
"@types/react-dom": "^18.3.0",
|
|
40
|
+
"@types/styled-components": "^5.1.34",
|
|
41
|
+
"concurrently": "^8.2.2",
|
|
42
|
+
"copyfiles": "^2.4.1",
|
|
43
|
+
"cssnano": "^7.0.1",
|
|
44
|
+
"fs-extra": "^11.2.0",
|
|
45
|
+
"postcss": "^8.4.38",
|
|
46
|
+
"postcss-cli": "^11.0.0",
|
|
47
|
+
"tsc-alias": "^1.8.10",
|
|
48
|
+
"typescript": "^5.4.5"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@types/lodash": "^4.17.7",
|
|
52
|
+
"axios": "^1.7.2",
|
|
53
|
+
"chroma-js": "^2.4.2",
|
|
54
|
+
"formik": "^2.4.6",
|
|
55
|
+
"inversify": "^6.0.2",
|
|
56
|
+
"lodash": "^4.17.21",
|
|
57
|
+
"messageprovider": "^0.1.6",
|
|
58
|
+
"moment": "^2.30.1",
|
|
59
|
+
"next": "^14.2.3",
|
|
60
|
+
"react": "18.3.1",
|
|
61
|
+
"react-dom": "18.3.1",
|
|
62
|
+
"react-ga": "^3.3.1",
|
|
63
|
+
"react-google-recaptcha": "^3.1.0",
|
|
64
|
+
"react-is": "^18.3.1",
|
|
65
|
+
"react-rte": "^0.16.5",
|
|
66
|
+
"react-select": "^5.8.0",
|
|
67
|
+
"react-share": "^5.1.0",
|
|
68
|
+
"react-webcam": "^7.2.0",
|
|
69
|
+
"reflect-metadata": "^0.2.2",
|
|
70
|
+
"sharp": "^0.33.4",
|
|
71
|
+
"styled-components": "^6.1.13",
|
|
72
|
+
"swagger-generator-codie": "^0.0.8",
|
|
73
|
+
"yup": "^1.4.0",
|
|
74
|
+
"zustand": "^4.5.2"
|
|
75
|
+
}
|
|
76
|
+
}
|