infinity-forge 4.5.1 → 4.5.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.
- package/dist/test/index.js +2 -2
- package/dist/test/index.js.map +1 -1
- package/dist/ui/components/pix/index.d.ts +6 -1
- package/dist/ui/components/pix/index.js +18 -18
- package/dist/ui/components/pix/index.js.map +1 -1
- package/dist/ui/components/pix/styles.js +4 -1
- package/dist/ui/components/pix/styles.js.map +1 -1
- package/dist/ui/components/pix/timer/index.d.ts +3 -1
- package/dist/ui/components/pix/timer/index.js +5 -4
- package/dist/ui/components/pix/timer/index.js.map +1 -1
- package/package.json +81 -81
package/dist/test/index.js
CHANGED
|
@@ -4,11 +4,11 @@ exports.NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro = void 0;
|
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
var ui_1 = require("../ui/index.js");
|
|
6
6
|
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:
|
|
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
8
|
return {
|
|
9
9
|
RUA: data.logradouro,
|
|
10
10
|
};
|
|
11
|
-
}, nameZipCode: 'batata', fields: [{ RUA: { label:
|
|
11
|
+
}, nameZipCode: 'batata', fields: [{ RUA: { label: 'Logradouro', name: 'Logradouro' } }] }) }) }));
|
|
12
12
|
}
|
|
13
13
|
exports.NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro = NaoRemoverDaHomeUsadaParaTesteTestarAquiDentro;
|
|
14
14
|
//# 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":";;;;AAAA,
|
|
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,10 +1,15 @@
|
|
|
1
1
|
interface PixComponentProps {
|
|
2
|
+
expirationTime?: number;
|
|
2
3
|
pixURL: string;
|
|
4
|
+
error?: {
|
|
5
|
+
isError: boolean;
|
|
6
|
+
onClickBack: () => void;
|
|
7
|
+
};
|
|
3
8
|
isPaid?: boolean;
|
|
4
9
|
pixImage: string;
|
|
5
10
|
isSucess?: boolean;
|
|
6
11
|
pixValor: string;
|
|
7
12
|
fastCheckout?: boolean;
|
|
8
13
|
}
|
|
9
|
-
export declare function Pix({ pixValor, pixImage, pixURL, isSucess, isPaid, fastCheckout }: PixComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function Pix({ error, pixValor, pixImage, pixURL, isSucess, isPaid, fastCheckout, expirationTime, }: PixComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
15
|
export {};
|
|
@@ -30,7 +30,7 @@ var pix_sucess_1 = require("./pix-sucess/index.js");
|
|
|
30
30
|
var ui_1 = require("../../../ui/index.js");
|
|
31
31
|
var S = __importStar(require("./styles.js"));
|
|
32
32
|
function Pix(_a) {
|
|
33
|
-
var pixValor = _a.pixValor, pixImage = _a.pixImage, pixURL = _a.pixURL, isSucess = _a.isSucess, isPaid = _a.isPaid, fastCheckout = _a.fastCheckout;
|
|
33
|
+
var error = _a.error, pixValor = _a.pixValor, pixImage = _a.pixImage, pixURL = _a.pixURL, isSucess = _a.isSucess, isPaid = _a.isPaid, fastCheckout = _a.fastCheckout, expirationTime = _a.expirationTime;
|
|
34
34
|
var createToast = (0, ui_1.useToast)().createToast;
|
|
35
35
|
function toMoney(money, noIcon, options) {
|
|
36
36
|
return Number(money)
|
|
@@ -41,23 +41,23 @@ function Pix(_a) {
|
|
|
41
41
|
})
|
|
42
42
|
.replaceAll(noIcon ? (options === null || options === void 0 ? void 0 : options.icon) || 'R$' : '', '');
|
|
43
43
|
}
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)(S.Pix, { className: 'pix', children: [!isSucess && ((0, jsx_runtime_1.jsx)("h2", { className: 'titulo-2-bold', style: { color: isSucess ? 'green' : '#000' }, children: isSucess ? 'Pagamento confirmado.' : 'Aguardando seu pagamento' })), !isSucess ? ((0, jsx_runtime_1.jsxs)("div", { className: 'container-pix', children: [(0, jsx_runtime_1.jsxs)("div", { className: 'preco-pix', children: ["Valor a pagar: ", (0, jsx_runtime_1.jsx)("span", { className: ' paragraph-1-bold', children: toMoney(Number(pixValor)) || 0 })] }), (0, jsx_runtime_1.jsx)("p", { className: 'paragraph-1-bold escaneie', children: "Escaneie o QR code:" }), (0, jsx_runtime_1.jsx)("img", { src: pixImage, alt: 'QR Code pix' }), (0, jsx_runtime_1.jsx)(timer_1.Timer, {}), (0, jsx_runtime_1.jsxs)("div", { className: 'copy', children: [(0, jsx_runtime_1.jsx)("p", { children: "Se preferir, voce pode pagar copiando e colando o seguinte c\u00F3digo" }), (0, jsx_runtime_1.jsx)("input", { type: 'text', value: pixURL, readOnly: true }), (0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(S.Pix, { className: 'pix', children: [!isSucess && !(error === null || error === void 0 ? void 0 : error.isError) && ((0, jsx_runtime_1.jsx)("h2", { className: 'titulo-2-bold', style: { color: isSucess ? 'green' : '#000' }, children: isSucess ? 'Pagamento confirmado.' : 'Aguardando seu pagamento' })), !isSucess ? ((0, jsx_runtime_1.jsxs)("div", { className: 'container-pix', children: [(error === null || error === void 0 ? void 0 : error.isError) ? ((0, jsx_runtime_1.jsx)("h2", { className: 'paragraph-1-bold escaneie', children: "O pix expirou..." })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'preco-pix', children: ["Valor a pagar: ", (0, jsx_runtime_1.jsx)("span", { className: ' paragraph-1-bold', children: toMoney(Number(pixValor)) || 0 })] }), (0, jsx_runtime_1.jsx)("p", { className: 'paragraph-1-bold escaneie', children: "Escaneie o QR code:" })] })), (0, jsx_runtime_1.jsx)("img", { src: pixImage, alt: 'QR Code pix', style: { backdropFilter: (error === null || error === void 0 ? void 0 : error.isError) ? 'blur(10px)' : '' } }), !(error === null || error === void 0 ? void 0 : error.isError) ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(timer_1.Timer, { expirationTime: expirationTime }), (0, jsx_runtime_1.jsxs)("div", { className: 'copy', children: [(0, jsx_runtime_1.jsx)("p", { children: "Se preferir, voce pode pagar copiando e colando o seguinte c\u00F3digo" }), (0, jsx_runtime_1.jsx)("input", { type: 'text', value: pixURL, readOnly: true }), (0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () {
|
|
45
|
+
var isCopied = (0, ui_1.copyToClipboard)(pixURL, {
|
|
46
|
+
message: 'Copiado com sucesso!',
|
|
47
|
+
format: 'text',
|
|
48
|
+
});
|
|
49
|
+
if (isCopied) {
|
|
50
|
+
createToast({
|
|
51
|
+
message: 'Copiado com sucesso!',
|
|
52
|
+
status: 'success',
|
|
53
|
+
});
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
createToast({
|
|
57
|
+
message: 'Erro ao copiar',
|
|
58
|
+
status: 'error',
|
|
59
|
+
});
|
|
60
|
+
}, children: "Copiar" })] })] })) : ((0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: error === null || error === void 0 ? void 0 : error.onClickBack, children: "Voltar" }))] })) : ((0, jsx_runtime_1.jsx)(pix_sucess_1.PixSucess, { isSucess: isSucess, isPaid: isPaid, fastCheckout: fastCheckout }))] }));
|
|
61
61
|
}
|
|
62
62
|
exports.Pix = Pix;
|
|
63
63
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/pix/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/pix/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA+B;AAC/B,2CAAwC;AACxC,2BAAgD;AAEhD,0CAA6B;AAgB7B,SAAgB,GAAG,CAAC,EASA;QARlB,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,QAAQ,cAAA,EACR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EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAI,CAC9E,IACK,CACT,CAAA;AACH,CAAC;AAhGD,kBAgGC"}
|
|
@@ -9,7 +9,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Pix = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Pix = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n margin: 30px auto 30px;\n display: flex;\n flex-direction: column;\n text-align: center;\n align-items: center;\n\n .container-pix {\n display: flex;\n flex-direction: column;\n max-width: 400px;\n }\n\n .preco-pix {\n margin-bottom: 20px;\n font-size: 16px;\n font-weight: 400;\n\n span {\n font-weight: bold;\n font-size: 18px;\n }\n }\n\n .validade {\n font-size: 14px;\n color: #000;\n opacity: 0.8;\n margin-bottom: 20px;\n }\n\n > img {\n height: 300px;\n width: 290px;\n object-fit: contain;\n border: 1px solid #000;\n margin: 10px auto 10px;\n }\n\n .copy {\n p {\n font-size: 16px;\n margin-bottom: 10px;\n }\n\n input,\n button {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n width: 100%;\n height: 36px;\n padding: 0px 20px;\n text-align: center;\n border: unset;\n }\n\n input {\n border: 1px solid #000;\n margin-bottom: 10px;\n }\n\n button {\n color: white;\n border-radius: 10px;\n background-color: ", ";\n }\n }\n\n @media only screen and (max-width: 900px) {\n margin-bottom: 30px !important;\n\n .preco-pix {\n margin-bottom: 10px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .validade {\n margin-bottom: 10px;\n }\n }\n\n @media only screen and (max-width: 500px) {\n .validade {\n margin-bottom: 3px;\n }\n\n .preco-pix {\n margin-bottom: 5px;\n }\n\n img {\n height: 250px;\n width: 250px;\n margin: 0 auto;\n }\n }\n"], ["\n width: 100%;\n margin: 30px auto 30px;\n display: flex;\n flex-direction: column;\n text-align: center;\n align-items: center;\n\n .container-pix {\n display: flex;\n flex-direction: column;\n max-width: 400px;\n }\n\n .preco-pix {\n margin-bottom: 20px;\n font-size: 16px;\n font-weight: 400;\n\n span {\n font-weight: bold;\n font-size: 18px;\n }\n }\n\n .validade {\n font-size: 14px;\n color: #000;\n opacity: 0.8;\n margin-bottom: 20px;\n }\n\n > img {\n height: 300px;\n width: 290px;\n object-fit: contain;\n border: 1px solid #000;\n margin: 10px auto 10px;\n }\n\n .copy {\n p {\n font-size: 16px;\n margin-bottom: 10px;\n }\n\n input,\n button {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n width: 100%;\n height: 36px;\n padding: 0px 20px;\n text-align: center;\n border: unset;\n }\n\n input {\n border: 1px solid #000;\n margin-bottom: 10px;\n }\n\n button {\n color: white;\n border-radius: 10px;\n background-color: ", ";\n }\n }\n\n @media only screen and (max-width: 900px) {\n margin-bottom: 30px !important;\n\n .preco-pix {\n margin-bottom: 10px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .validade {\n margin-bottom: 10px;\n }\n }\n\n @media only screen and (max-width: 500px) {\n .validade {\n margin-bottom: 3px;\n }\n\n .preco-pix {\n margin-bottom: 5px;\n }\n\n img {\n height: 250px;\n width: 250px;\n margin: 0 auto;\n }\n }\n"])), function (_a) {
|
|
12
|
+
exports.Pix = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n margin: 30px auto 30px;\n display: flex;\n flex-direction: column;\n text-align: center;\n align-items: center;\n\n .container-pix {\n display: flex;\n flex-direction: column;\n max-width: 400px;\n }\n\n .preco-pix {\n margin-bottom: 20px;\n font-size: 16px;\n font-weight: 400;\n\n span {\n font-weight: bold;\n font-size: 18px;\n }\n }\n\n .validade {\n font-size: 14px;\n color: #000;\n opacity: 0.8;\n margin-bottom: 20px;\n }\n\n > img {\n height: 300px;\n width: 290px;\n object-fit: contain;\n border: 1px solid #000;\n margin: 10px auto 10px;\n }\n\n .copy {\n p {\n font-size: 16px;\n margin-bottom: 10px;\n }\n\n input,\n button {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n width: 100%;\n height: 36px;\n padding: 0px 20px;\n text-align: center;\n border: unset;\n }\n\n input {\n border: 1px solid #000;\n margin-bottom: 10px;\n }\n\n button {\n color: white;\n border-radius: 10px;\n background-color: ", ";\n }\n }\n\n button {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n width: 100%;\n height: 36px;\n padding: 0px 20px;\n text-align: center;\n border: unset;\n\n color: white;\n border-radius: 10px;\n background-color: ", ";\n }\n\n @media only screen and (max-width: 900px) {\n margin-bottom: 30px !important;\n\n .preco-pix {\n margin-bottom: 10px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .validade {\n margin-bottom: 10px;\n }\n }\n\n @media only screen and (max-width: 500px) {\n .validade {\n margin-bottom: 3px;\n }\n\n .preco-pix {\n margin-bottom: 5px;\n }\n\n img {\n height: 250px;\n width: 250px;\n margin: 0 auto;\n }\n }\n"], ["\n width: 100%;\n margin: 30px auto 30px;\n display: flex;\n flex-direction: column;\n text-align: center;\n align-items: center;\n\n .container-pix {\n display: flex;\n flex-direction: column;\n max-width: 400px;\n }\n\n .preco-pix {\n margin-bottom: 20px;\n font-size: 16px;\n font-weight: 400;\n\n span {\n font-weight: bold;\n font-size: 18px;\n }\n }\n\n .validade {\n font-size: 14px;\n color: #000;\n opacity: 0.8;\n margin-bottom: 20px;\n }\n\n > img {\n height: 300px;\n width: 290px;\n object-fit: contain;\n border: 1px solid #000;\n margin: 10px auto 10px;\n }\n\n .copy {\n p {\n font-size: 16px;\n margin-bottom: 10px;\n }\n\n input,\n button {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n width: 100%;\n height: 36px;\n padding: 0px 20px;\n text-align: center;\n border: unset;\n }\n\n input {\n border: 1px solid #000;\n margin-bottom: 10px;\n }\n\n button {\n color: white;\n border-radius: 10px;\n background-color: ", ";\n }\n }\n\n button {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n width: 100%;\n height: 36px;\n padding: 0px 20px;\n text-align: center;\n border: unset;\n\n color: white;\n border-radius: 10px;\n background-color: ", ";\n }\n\n @media only screen and (max-width: 900px) {\n margin-bottom: 30px !important;\n\n .preco-pix {\n margin-bottom: 10px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .validade {\n margin-bottom: 10px;\n }\n }\n\n @media only screen and (max-width: 500px) {\n .validade {\n margin-bottom: 3px;\n }\n\n .preco-pix {\n margin-bottom: 5px;\n }\n\n img {\n height: 250px;\n width: 250px;\n margin: 0 auto;\n }\n }\n"])), function (_a) {
|
|
13
|
+
var theme = _a.theme;
|
|
14
|
+
return theme.primaryColor;
|
|
15
|
+
}, function (_a) {
|
|
13
16
|
var theme = _a.theme;
|
|
14
17
|
return theme.primaryColor;
|
|
15
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ui/components/pix/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,GAAG,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ui/components/pix/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,GAAG,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,y/DAAA,uoCAmEN,EAAiC,gTAiBnC,EAAiC,2fAgCxD,KAjDyB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,YAAY;AAAlB,CAAkB,EAiBnC,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,YAAY;AAAlB,CAAkB,EAgCxD"}
|
|
@@ -27,10 +27,11 @@ exports.Timer = void 0;
|
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var react_1 = require("react");
|
|
29
29
|
var S = __importStar(require("./styles.js"));
|
|
30
|
-
function Timer() {
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
30
|
+
function Timer(_a) {
|
|
31
|
+
var _b = _a.expirationTime, expirationTime = _b === void 0 ? 60 : _b;
|
|
32
|
+
var _c = (0, react_1.useState)(expirationTime), minutes = _c[0], setMinutes = _c[1];
|
|
33
|
+
var _d = (0, react_1.useState)(0), seconds = _d[0], setSeconds = _d[1];
|
|
34
|
+
var _e = (0, react_1.useState)(false), tempoExpirado = _e[0], setTempoExpirado = _e[1];
|
|
34
35
|
var updateTimer = function () {
|
|
35
36
|
if (minutes === 0 && seconds === 0) {
|
|
36
37
|
setTempoExpirado(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/pix/timer/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAkD;AAElD,0CAA6B;AAE7B,SAAgB,KAAK;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/pix/timer/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAkD;AAElD,0CAA6B;AAE7B,SAAgB,KAAK,CAAC,EAAoD;QAAlD,sBAAmB,EAAnB,cAAc,mBAAG,EAAE,KAAA;IACnC,IAAA,KAAwB,IAAA,gBAAQ,EAAC,cAAc,CAAC,EAA/C,OAAO,QAAA,EAAE,UAAU,QAA4B,CAAA;IAChD,IAAA,KAAwB,IAAA,gBAAQ,EAAC,CAAC,CAAC,EAAlC,OAAO,QAAA,EAAE,UAAU,QAAe,CAAA;IACnC,IAAA,KAAoC,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAlD,aAAa,QAAA,EAAE,gBAAgB,QAAmB,CAAA;IAEzD,IAAM,WAAW,GAAG;QAClB,IAAI,OAAO,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;YACnC,gBAAgB,CAAC,IAAI,CAAC,CAAA;QACxB,CAAC;aAAM,CAAC;YACN,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;gBAClB,UAAU,CAAC,OAAO,GAAG,CAAC,CAAC,CAAA;gBACvB,UAAU,CAAC,EAAE,CAAC,CAAA;YAChB,CAAC;iBAAM,CAAC;gBACN,UAAU,CAAC,OAAO,GAAG,CAAC,CAAC,CAAA;YACzB,CAAC;QACH,CAAC;IACH,CAAC,CAAA;IAED,IAAA,iBAAS,EAAC;QACR,IAAM,KAAK,GAAG,WAAW,CAAC;YACxB,WAAW,EAAE,CAAA;QACf,CAAC,EAAE,IAAI,CAAC,CAAA;QAER,OAAO;YACL,aAAa,CAAC,KAAK,CAAC,CAAA;QACtB,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAA;IAEtB,OAAO,CACL,wBAAC,CAAC,CAAC,KAAK,eACN,gEAA2B,EAE1B,aAAa,CAAC,CAAC,CAAC,CACf,6DAAyB,CAC1B,CAAC,CAAC,CAAC,CACF,iCAAK,SAAS,EAAC,UAAU,aACtB,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,OAAG,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAChE,CACP,IACO,CACX,CAAA;AACH,CAAC;AAzCD,sBAyCC"}
|
package/package.json
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "infinity-forge",
|
|
3
|
-
"version": "4.5.
|
|
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.5.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.2",
|
|
78
|
+
"yup": "^1.4.0",
|
|
79
|
+
"zustand": "^4.5.2"
|
|
80
|
+
}
|
|
81
|
+
}
|