infinity-forge 4.6.3 → 4.6.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,14 +1,70 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
2
41
  Object.defineProperty(exports, "__esModule", { value: true });
3
42
  exports.NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro = void 0;
4
43
  var jsx_runtime_1 = require("react/jsx-runtime");
44
+ var sites_1 = require("../sites/index.js");
5
45
  var ui_1 = require("../ui/index.js");
46
+ var link_1 = __importDefault(require("next/link"));
6
47
  function NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro() {
7
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(ui_1.FormHandler, { cleanFieldsOnSubmit: false, initialData: { address: { batata: '1', Logradouro: 'Rua 1' } }, children: (0, jsx_runtime_1.jsx)(ui_1.InputCep, { transformData: function (data) {
8
- return {
9
- RUA: data.logradouro,
10
- };
11
- }, nameZipCode: 'batata', fields: [{ RUA: { label: 'Logradouro', name: 'Logradouro' } }] }) }) }));
48
+ var _this = this;
49
+ var _a = (0, ui_1.useQuery)({
50
+ queryKey: 'Tiago',
51
+ queryFn: function () { return __awaiter(_this, void 0, void 0, function () {
52
+ var res;
53
+ return __generator(this, function (_a) {
54
+ switch (_a.label) {
55
+ case 0: return [4 /*yield*/, (0, sites_1.api)({ url: "", method: "get" }, "https://pokeapi.co/api/v2/pokemon/ditto")];
56
+ case 1:
57
+ res = _a.sent();
58
+ return [2 /*return*/, res];
59
+ }
60
+ });
61
+ }); },
62
+ }), data = _a.data, isFetching = _a.isFetching;
63
+ var clearCache = (0, ui_1.useQueryClient)(function (state) { return state.clearCache; });
64
+ if (isFetching) {
65
+ return (0, jsx_runtime_1.jsx)("div", { children: "Carregando" });
66
+ }
67
+ return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: clearCache, children: "CLEAR" }), " ", (0, jsx_runtime_1.jsx)(link_1.default, { href: "/sobre", children: "SOBRE" }), data && JSON.stringify(data), " "] });
12
68
  }
13
69
  exports.NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro = NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro;
14
70
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;AAAA,2BAAyD;AAEzD,SAAgB,8CAA8C;IAC5D,OAAO,CACL,2DACE,uBAAC,gBAAW,IAAC,mBAAmB,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,YACrG,uBAAC,aAAQ,IACP,aAAa,EAAE,UAAC,IAAI;oBAClB,OAAO;wBACL,GAAG,EAAE,IAAI,CAAC,UAAU;qBACrB,CAAA;gBACH,CAAC,EACD,WAAW,EAAC,QAAQ,EACpB,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,CAAC,GAC9D,GACU,GAUb,CACJ,CAAA;AACH,CAAC;AAzBD,wGAyBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6B;AAC7B,2BAAmF;AACnF,mDAA4B;AAE5B,SAAgB,8CAA8C;IAA9D,iBAiBC;IAhBO,IAAA,KAAuB,IAAA,aAAQ,EAAC;QACpC,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE;;;;4BACI,qBAAM,IAAA,WAAG,EAAC,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAG,EAAE,yCAAyC,CAAC,EAAA;;wBAAvF,GAAG,GAAG,SAAiF;wBAE5F,sBAAO,GAAG,EAAA;;;aACX;KACF,CAAC,EAPM,IAAI,UAAA,EAAE,UAAU,gBAOtB,CAAA;IAEF,IAAM,UAAU,GAAG,IAAA,mBAAc,EAAC,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,UAAU,EAAhB,CAAgB,CAAC,CAAA;IAE5D,IAAG,UAAU,EAAE,CAAC;QACd,OAAO,yDAAqB,CAAA;IAC9B,CAAC;IAED,OAAO,6DAAE,mCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,UAAU,sBAAgB,OAAC,uBAAC,cAAI,IAAC,IAAI,EAAE,QAAQ,sBAAc,EAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAK,CAAA;AACzI,CAAC;AAjBD,wGAiBC"}
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "infinity-forge",
3
- "version": "4.6.3",
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
- "@wojtekmaj/react-daterange-picker": "^6.0.0",
53
- "axios": "^1.7.2",
54
- "chroma-js": "^2.4.2",
55
- "cpx": "^1.5.0",
56
- "formik": "^2.4.6",
57
- "inversify": "^6.0.2",
58
- "lodash": "^4.17.21",
59
- "messageprovider": "^0.1.6",
60
- "moment": "^2.30.1",
61
- "next": "^14.2.3",
62
- "react": "18.3.1",
63
- "react-date-picker": "^11.0.0",
64
- "react-dom": "18.3.1",
65
- "react-ga": "^3.3.1",
66
- "react-google-recaptcha": "^3.1.0",
67
- "react-is": "^18.3.1",
68
- "react-rte": "^0.16.5",
69
- "react-select": "^5.8.0",
70
- "react-share": "^5.1.0",
71
- "react-webcam": "^7.2.0",
72
- "reflect-metadata": "^0.2.2",
73
- "sharp": "^0.33.4",
74
- "styled-components": "^6.1.13",
75
- "swagger-generator-codie": "^0.0.8",
76
- "tinycolor2": "^1.6.0",
77
- "use-swagger": "^0.2.2",
78
- "yup": "^1.4.0",
79
- "zustand": "^4.5.2"
80
- }
81
- }
1
+ {
2
+ "name": "infinity-forge",
3
+ "version": "4.6.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 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
+ "@wojtekmaj/react-daterange-picker": "^6.0.0",
53
+ "axios": "^1.7.2",
54
+ "chroma-js": "^2.4.2",
55
+ "cpx": "^1.5.0",
56
+ "formik": "^2.4.6",
57
+ "inversify": "^6.0.2",
58
+ "lodash": "^4.17.21",
59
+ "messageprovider": "^0.1.6",
60
+ "moment": "^2.30.1",
61
+ "next": "^14.2.3",
62
+ "react": "18.3.1",
63
+ "react-date-picker": "^11.0.0",
64
+ "react-dom": "18.3.1",
65
+ "react-ga": "^3.3.1",
66
+ "react-google-recaptcha": "^3.1.0",
67
+ "react-is": "^18.3.1",
68
+ "react-rte": "^0.16.5",
69
+ "react-select": "^5.8.0",
70
+ "react-share": "^5.1.0",
71
+ "react-webcam": "^7.2.0",
72
+ "reflect-metadata": "^0.2.2",
73
+ "sharp": "^0.33.4",
74
+ "styled-components": "^6.1.13",
75
+ "swagger-generator-codie": "^0.0.8",
76
+ "tinycolor2": "^1.6.0",
77
+ "use-swagger": "^0.2.3",
78
+ "yup": "^1.4.0",
79
+ "zustand": "^4.5.2"
80
+ }
81
+ }