infinity-forge 12.2.7 → 12.2.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.
- package/dist/system/context/container.d.ts +2 -3
- package/dist/system/context/container.js +2 -12
- package/dist/system/context/container.js.map +1 -1
- package/dist/system/context/third-party-integration-context/context.d.ts +1 -1
- package/dist/test/index.js +1 -6
- package/dist/test/index.js.map +1 -1
- package/dist/ui/atena/domain/dynamic-section/dynamic-section.d.ts +1 -7
- package/dist/ui/atena/i18n/context.d.ts +14 -0
- package/dist/ui/atena/i18n/context.js +27 -0
- package/dist/ui/atena/i18n/context.js.map +1 -0
- package/dist/ui/atena/i18n/index.d.ts +3 -0
- package/dist/ui/{components/form/input-date-picker-new → atena/i18n}/index.js +3 -2
- package/dist/ui/atena/i18n/index.js.map +1 -0
- package/dist/ui/atena/i18n/infinity-forge-configs.d.ts +3 -0
- package/dist/ui/{utils/infinity-forge/infinity-forge-next-config.js → atena/i18n/infinity-forge-configs.js} +19 -42
- package/dist/ui/atena/i18n/infinity-forge-configs.js.map +1 -0
- package/dist/ui/{contexts/i18n/translate.d.ts → atena/i18n/translation.d.ts} +2 -2
- package/dist/ui/atena/i18n/translation.js +36 -0
- package/dist/ui/atena/i18n/translation.js.map +1 -0
- package/dist/ui/atena/index.d.ts +1 -0
- package/dist/ui/atena/index.js +1 -0
- package/dist/ui/atena/index.js.map +1 -1
- package/dist/ui/atena/presentation/dynamic-elements/atena-page.d.ts +0 -6
- package/dist/ui/atena/presentation/dynamic-elements/atena-page.js +10 -41
- package/dist/ui/atena/presentation/dynamic-elements/atena-page.js.map +1 -1
- package/dist/ui/atena/presentation/dynamic-sections/context.js +6 -5
- package/dist/ui/atena/presentation/dynamic-sections/context.js.map +1 -1
- package/dist/ui/{contexts/i18n → atena/presentation/dynamic-sections}/edit-mode/index.js +1 -1
- package/dist/ui/atena/presentation/dynamic-sections/edit-mode/index.js.map +1 -0
- package/dist/ui/atena/presentation/dynamic-sections/get-initial-props-dynamic-section.d.ts +1 -0
- package/dist/ui/atena/presentation/dynamic-sections/get-initial-props-dynamic-section.js +7 -3
- package/dist/ui/atena/presentation/dynamic-sections/get-initial-props-dynamic-section.js.map +1 -1
- package/dist/ui/atena/presentation/dynamic-sections/types.d.ts +2 -7
- package/dist/ui/atena/presentation/dynamic-sections/use-dynamic-section/edit-section.d.ts +3 -4
- package/dist/ui/atena/presentation/dynamic-sections/use-dynamic-section/edit-section.js +15 -35
- package/dist/ui/atena/presentation/dynamic-sections/use-dynamic-section/edit-section.js.map +1 -1
- package/dist/ui/atena/presentation/dynamic-sections/use-dynamic-section/index.js +79 -39
- package/dist/ui/atena/presentation/dynamic-sections/use-dynamic-section/index.js.map +1 -1
- package/dist/ui/atena/presentation/dynamic-sections/use-dynamic-section/interfaces.d.ts +2 -1
- package/dist/ui/atena/presentation/site-configurations/atena-ssr-site.d.ts +0 -6
- package/dist/ui/atena/presentation/site-configurations/use-infinity-forge-props.js +4 -4
- package/dist/ui/atena/presentation/site-configurations/use-infinity-forge-props.js.map +1 -1
- package/dist/ui/atena/presentation/site-configurations/use-site-configurations.d.ts +3 -7
- package/dist/ui/atena/presentation/site-configurations/use-site-configurations.js.map +1 -1
- package/dist/ui/components/form/handler/component.js +3 -1
- package/dist/ui/components/form/handler/component.js.map +1 -1
- package/dist/ui/components/form/handler/form-handler/index.d.ts +3 -0
- package/dist/ui/components/form/handler/form-handler/index.js +2 -7
- package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
- package/dist/ui/components/form/handler/form-handler/use-form-handler.d.ts +3 -0
- package/dist/ui/components/form/handler/form-handler/use-schemas.js +12 -23
- package/dist/ui/components/form/handler/form-handler/use-schemas.js.map +1 -1
- package/dist/ui/components/form/handler/form-handler/use-submit/index.d.ts +1 -1
- package/dist/ui/components/form/handler/form-handler/use-submit/index.js +48 -12
- package/dist/ui/components/form/handler/form-handler/use-submit/index.js.map +1 -1
- package/dist/ui/components/form/handler/i18n/index.js +13 -23
- package/dist/ui/components/form/handler/i18n/index.js.map +1 -1
- package/dist/ui/components/form/handler/interfaces.d.ts +2 -8
- package/dist/ui/components/form/input-control/i18n-observer/index.d.ts +2 -0
- package/dist/ui/components/form/input-control/i18n-observer/index.js +37 -0
- package/dist/ui/components/form/input-control/i18n-observer/index.js.map +1 -0
- package/dist/ui/components/form/input-control/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/index.js +7 -2
- package/dist/ui/components/form/input-control/index.js.map +1 -1
- package/dist/ui/components/form/input-control/label/index.d.ts +1 -2
- package/dist/ui/components/form/input-control/label/index.js +13 -5
- package/dist/ui/components/form/input-control/label/index.js.map +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.d.ts +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +2 -2
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js.map +1 -1
- package/dist/ui/components/form/interfaces.d.ts +4 -2
- package/dist/ui/components/form/text-editor/quill.js +24 -24
- package/dist/ui/components/form/text-editor/quill.js.map +1 -1
- package/dist/ui/contexts/index.d.ts +0 -1
- package/dist/ui/contexts/index.js +0 -1
- package/dist/ui/contexts/index.js.map +1 -1
- package/dist/ui/utils/file/upload-file.js.map +1 -1
- package/dist/ui/utils/infinity-forge/index.d.ts +0 -1
- package/dist/ui/utils/infinity-forge/index.js +0 -1
- package/dist/ui/utils/infinity-forge/index.js.map +1 -1
- package/dist/ui/utils/libs/moment/verify-date-and-return-value-formatted.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/calendar-header/index.d.ts +0 -2
- package/dist/ui/components/form/input-date-picker-new/calendar/calendar-header/index.js +0 -74
- package/dist/ui/components/form/input-date-picker-new/calendar/calendar-header/index.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/calendar-header/styles.d.ts +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/calendar-header/styles.js +0 -23
- package/dist/ui/components/form/input-date-picker-new/calendar/calendar-header/styles.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/days/index.d.ts +0 -2
- package/dist/ui/components/form/input-date-picker-new/calendar/days/index.js +0 -98
- package/dist/ui/components/form/input-date-picker-new/calendar/days/index.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/days/styles.d.ts +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/days/styles.js +0 -17
- package/dist/ui/components/form/input-date-picker-new/calendar/days/styles.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/index.d.ts +0 -8
- package/dist/ui/components/form/input-date-picker-new/calendar/index.js +0 -71
- package/dist/ui/components/form/input-date-picker-new/calendar/index.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/interface.d.ts +0 -16
- package/dist/ui/components/form/input-date-picker-new/calendar/interface.js +0 -3
- package/dist/ui/components/form/input-date-picker-new/calendar/interface.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/months/index.d.ts +0 -2
- package/dist/ui/components/form/input-date-picker-new/calendar/months/index.js +0 -83
- package/dist/ui/components/form/input-date-picker-new/calendar/months/index.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/months/styles.d.ts +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/months/styles.js +0 -17
- package/dist/ui/components/form/input-date-picker-new/calendar/months/styles.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/calendar/styles.d.ts +0 -4
- package/dist/ui/components/form/input-date-picker-new/calendar/styles.js +0 -17
- package/dist/ui/components/form/input-date-picker-new/calendar/styles.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/component.d.ts +0 -4
- package/dist/ui/components/form/input-date-picker-new/component.js +0 -105
- package/dist/ui/components/form/input-date-picker-new/component.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/index.d.ts +0 -2
- package/dist/ui/components/form/input-date-picker-new/index.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/interfaces.d.ts +0 -22
- package/dist/ui/components/form/input-date-picker-new/interfaces.js +0 -3
- package/dist/ui/components/form/input-date-picker-new/interfaces.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/mock/index.d.ts +0 -1
- package/dist/ui/components/form/input-date-picker-new/mock/index.js +0 -18
- package/dist/ui/components/form/input-date-picker-new/mock/index.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/mock/translations.d.ts +0 -20
- package/dist/ui/components/form/input-date-picker-new/mock/translations.js +0 -50
- package/dist/ui/components/form/input-date-picker-new/mock/translations.js.map +0 -1
- package/dist/ui/components/form/input-date-picker-new/styles.d.ts +0 -1
- package/dist/ui/components/form/input-date-picker-new/styles.js +0 -14
- package/dist/ui/components/form/input-date-picker-new/styles.js.map +0 -1
- package/dist/ui/contexts/i18n/context.d.ts +0 -4
- package/dist/ui/contexts/i18n/context.js +0 -108
- package/dist/ui/contexts/i18n/context.js.map +0 -1
- package/dist/ui/contexts/i18n/edit-mode/index.js.map +0 -1
- package/dist/ui/contexts/i18n/get-initial-props.d.ts +0 -6
- package/dist/ui/contexts/i18n/get-initial-props.js +0 -98
- package/dist/ui/contexts/i18n/get-initial-props.js.map +0 -1
- package/dist/ui/contexts/i18n/index.d.ts +0 -6
- package/dist/ui/contexts/i18n/index.js +0 -23
- package/dist/ui/contexts/i18n/index.js.map +0 -1
- package/dist/ui/contexts/i18n/interfaces.d.ts +0 -32
- package/dist/ui/contexts/i18n/interfaces.js +0 -3
- package/dist/ui/contexts/i18n/interfaces.js.map +0 -1
- package/dist/ui/contexts/i18n/translate.js +0 -161
- package/dist/ui/contexts/i18n/translate.js.map +0 -1
- package/dist/ui/contexts/i18n/use-i18n-data/index.d.ts +0 -13
- package/dist/ui/contexts/i18n/use-i18n-data/index.js +0 -26
- package/dist/ui/contexts/i18n/use-i18n-data/index.js.map +0 -1
- package/dist/ui/utils/infinity-forge/infinity-forge-next-config.d.ts +0 -1
- package/dist/ui/utils/infinity-forge/infinity-forge-next-config.js.map +0 -1
- /package/dist/ui/{contexts/i18n → atena/presentation/dynamic-sections}/edit-mode/index.d.ts +0 -0
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
-
var ownKeys = function(o) {
|
|
35
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
-
var ar = [];
|
|
37
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
-
return ar;
|
|
39
|
-
};
|
|
40
|
-
return ownKeys(o);
|
|
41
|
-
};
|
|
42
|
-
return function (mod) {
|
|
43
|
-
if (mod && mod.__esModule) return mod;
|
|
44
|
-
var result = {};
|
|
45
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
-
__setModuleDefault(result, mod);
|
|
47
|
-
return result;
|
|
48
|
-
};
|
|
49
|
-
})();
|
|
50
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
51
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
52
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
53
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
54
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
55
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
56
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
60
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
61
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
62
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
63
|
-
function step(op) {
|
|
64
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
65
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
66
|
-
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;
|
|
67
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
68
|
-
switch (op[0]) {
|
|
69
|
-
case 0: case 1: t = op; break;
|
|
70
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
71
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
72
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
73
|
-
default:
|
|
74
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
75
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
76
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
77
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
78
|
-
if (t[2]) _.ops.pop();
|
|
79
|
-
_.trys.pop(); continue;
|
|
80
|
-
}
|
|
81
|
-
op = body.call(thisArg, _);
|
|
82
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
83
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
|
-
};
|
|
89
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
-
exports.TranslateStyles = void 0;
|
|
91
|
-
exports.Translate = Translate;
|
|
92
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
93
|
-
var react_1 = require("react");
|
|
94
|
-
var yup = __importStar(require("yup"));
|
|
95
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
96
|
-
var router_1 = require("next/router");
|
|
97
|
-
var ui_1 = require("../../../ui/index.js");
|
|
98
|
-
var context_1 = require("./context.js");
|
|
99
|
-
function Translate(_a) {
|
|
100
|
-
var _b, _c, _d;
|
|
101
|
-
var referenceID = _a.referenceID, defaultTranslate = _a.defaultTranslate, isGlobal = _a.isGlobal;
|
|
102
|
-
var _e = (0, react_1.useState)(false), open = _e[0], setOpen = _e[1];
|
|
103
|
-
var _f = (0, context_1.useI18n)(), words = _f.words, isFetchingWords = _f.isFetchingWords, mutate = _f.mutate;
|
|
104
|
-
var router = (0, router_1.useRouter)();
|
|
105
|
-
var refWord = (0, ui_1.generateRef)(referenceID, router, isGlobal);
|
|
106
|
-
var word = words[refWord];
|
|
107
|
-
var translation = (_c = (_b = word === null || word === void 0 ? void 0 : word.i18n) === null || _b === void 0 ? void 0 : _b[router.locale]) === null || _c === void 0 ? void 0 : _c.value;
|
|
108
|
-
var translate = translation || defaultTranslate;
|
|
109
|
-
var createToast = (0, ui_1.useToast)().createToast;
|
|
110
|
-
if (((_d = router.query) === null || _d === void 0 ? void 0 : _d.editMode) !== 'true') {
|
|
111
|
-
return (0, jsx_runtime_1.jsx)("span", { children: translate });
|
|
112
|
-
}
|
|
113
|
-
function handleSuccess(data) {
|
|
114
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
115
|
-
return __generator(this, function (_a) {
|
|
116
|
-
switch (_a.label) {
|
|
117
|
-
case 0:
|
|
118
|
-
if (!!(word === null || word === void 0 ? void 0 : word.id)) return [3 /*break*/, 2];
|
|
119
|
-
return [4 /*yield*/, (0, ui_1.api)({
|
|
120
|
-
method: 'post',
|
|
121
|
-
url: 'word',
|
|
122
|
-
body: __assign(__assign({}, data), { ref: refWord }),
|
|
123
|
-
})];
|
|
124
|
-
case 1:
|
|
125
|
-
_a.sent();
|
|
126
|
-
return [3 /*break*/, 4];
|
|
127
|
-
case 2: return [4 /*yield*/, (0, ui_1.api)({ method: 'put', url: 'word/' + (word === null || word === void 0 ? void 0 : word.id), body: data })];
|
|
128
|
-
case 3:
|
|
129
|
-
_a.sent();
|
|
130
|
-
_a.label = 4;
|
|
131
|
-
case 4: return [4 /*yield*/, mutate()];
|
|
132
|
-
case 5:
|
|
133
|
-
_a.sent();
|
|
134
|
-
createToast({ status: 'success', message: 'Tradução alterada com sucesso.' });
|
|
135
|
-
return [2 /*return*/];
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ui_1.Modal, { open: open, onClose: function () { return setOpen(false); }, children: isFetchingWords ? ((0, jsx_runtime_1.jsx)(ui_1.LoaderCircle, { size: 30, color: '#000' })) : ((0, jsx_runtime_1.jsx)(ui_1.FormHandler, { isStickyButtons: true, initialData: word, i18n: {
|
|
141
|
-
schema: {
|
|
142
|
-
value: yup.string().required('Campo requerido'),
|
|
143
|
-
},
|
|
144
|
-
RenderFields: function (_a) {
|
|
145
|
-
var symbol = _a.symbol;
|
|
146
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(ui_1.Input, { name: symbol + '.value' }) }));
|
|
147
|
-
},
|
|
148
|
-
}, onSucess: handleSuccess, button: { text: 'Salvar' }, cleanFieldsOnSubmit: true })) }), (0, jsx_runtime_1.jsx)("span", { style: { position: 'relative', pointerEvents: 'auto' }, onClick: function (event) {
|
|
149
|
-
event.preventDefault();
|
|
150
|
-
event.stopPropagation();
|
|
151
|
-
}, children: (0, jsx_runtime_1.jsxs)(exports.TranslateStyles, { onClick: function (e) {
|
|
152
|
-
e.preventDefault();
|
|
153
|
-
e.stopPropagation();
|
|
154
|
-
setTimeout(function () {
|
|
155
|
-
setOpen(true);
|
|
156
|
-
}, 0);
|
|
157
|
-
}, role: 'button', tabIndex: 0, style: {}, children: [(0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconGear' }), translate] }) })] }));
|
|
158
|
-
}
|
|
159
|
-
exports.TranslateStyles = (0, styled_components_1.default)('span')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: 1px solid #000;\n position: relative;\n padding: 2px;\n border-radius: 2px;\n\n svg {\n height: auto !important;\n width: 8px !important;\n position: absolute;\n bottom: -4px;\n right: 0;\n fill: #000 !important;\n background: #fff;\n }\n"], ["\n border: 1px solid #000;\n position: relative;\n padding: 2px;\n border-radius: 2px;\n\n svg {\n height: auto !important;\n width: 8px !important;\n position: absolute;\n bottom: -4px;\n right: 0;\n fill: #000 !important;\n background: #fff;\n }\n"])));
|
|
160
|
-
var templateObject_1;
|
|
161
|
-
//# sourceMappingURL=translate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translate.js","sourceRoot":"","sources":["../../../../src/ui/contexts/i18n/translate.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,8BA6FC;;AAzGD,+BAAgC;AAEhC,uCAA0B;AAC1B,wEAAsC;AACtC,sCAAuC;AAEvC,2BAAgG;AAEhG,qCAAmC;AAInC,SAAgB,SAAS,CAAC,EAA2D;;QAAzD,WAAW,iBAAA,EAAE,gBAAgB,sBAAA,EAAE,QAAQ,cAAA;IAC3D,IAAA,KAAkB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAhC,IAAI,QAAA,EAAE,OAAO,QAAmB,CAAA;IAEjC,IAAA,KAAqC,IAAA,iBAAO,GAAE,EAA5C,KAAK,WAAA,EAAE,eAAe,qBAAA,EAAE,MAAM,YAAc,CAAA;IAEpD,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,OAAO,GAAG,IAAA,gBAAW,EAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;IAE1D,IAAM,IAAI,GAAG,KAAK,CAAC,OAAO,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): {
|
|
2
|
-
formatText: <T extends {
|
|
3
|
-
i18n: Record<string, any>;
|
|
4
|
-
}>({ i18n, i18nKey }: {
|
|
5
|
-
i18n: any;
|
|
6
|
-
i18nKey: any;
|
|
7
|
-
}) => T | "Translate Not Found";
|
|
8
|
-
};
|
|
9
|
-
export declare function useI18nData<T>({ i18n }: {
|
|
10
|
-
i18n?: {
|
|
11
|
-
[key: string]: T;
|
|
12
|
-
};
|
|
13
|
-
}): T;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useI18nText = useI18nText;
|
|
4
|
-
exports.useI18nData = useI18nData;
|
|
5
|
-
var router_1 = require("next/router");
|
|
6
|
-
var react_1 = require("react");
|
|
7
|
-
function useI18nText() {
|
|
8
|
-
var _a = (0, router_1.useRouter)().locale, locale = _a === void 0 ? 'pt-BR' : _a;
|
|
9
|
-
var formatText = (0, react_1.useCallback)(function (_a) {
|
|
10
|
-
var i18n = _a.i18n, i18nKey = _a.i18nKey;
|
|
11
|
-
if (!i18n || !i18n[locale] || !i18n[locale][i18nKey]) {
|
|
12
|
-
return 'Translate Not Found';
|
|
13
|
-
}
|
|
14
|
-
return i18n[locale][i18nKey];
|
|
15
|
-
}, [locale]);
|
|
16
|
-
return { formatText: formatText };
|
|
17
|
-
}
|
|
18
|
-
function useI18nData(_a) {
|
|
19
|
-
var i18n = _a.i18n;
|
|
20
|
-
var _b = (0, router_1.useRouter)().locale, locale = _b === void 0 ? 'pt-BR' : _b;
|
|
21
|
-
if (!i18n || !i18n[locale]) {
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
return i18n[locale];
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/i18n/use-i18n-data/index.tsx"],"names":[],"mappings":";;AAGA,kCAYC;AAGD,kCAQC;AA1BD,sCAAuC;AACvC,+BAAmC;AAEnC,SAAgB,WAAW;IACjB,IAAA,KAAqB,IAAA,kBAAS,GAAE,OAAhB,EAAhB,MAAM,mBAAG,OAAO,KAAA,CAAgB;IAExC,IAAM,UAAU,GAAG,IAAA,mBAAW,EAAC,UAA0C,EAAiB;YAAf,IAAI,UAAA,EAAE,OAAO,aAAA;QACtF,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;YACrD,OAAO,qBAAqB,CAAA;QAC9B,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAM,CAAA;IACnC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IAEZ,OAAO,EAAE,UAAU,YAAA,EAAE,CAAA;AACvB,CAAC;AAGD,SAAgB,WAAW,CAAI,EAAyC;QAAvC,IAAI,UAAA;IAC3B,IAAA,KAAqB,IAAA,kBAAS,GAAE,OAAhB,EAAhB,MAAM,mBAAG,OAAO,KAAA,CAAgB;IAExC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3B,OAAO,EAAO,CAAA;IAChB,CAAC;IAED,OAAO,IAAI,CAAC,MAAM,CAAM,CAAA;AAC1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function infinityForgeNextConfig(configs: any): Promise<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"infinity-forge-next-config.js","sourceRoot":"","sources":["../../../../src/ui/utils/infinity-forge/infinity-forge-next-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAkCG;AAlCH,SAAsB,uBAAuB,CAAC,OAAO;;;;;;;;;oBAEhC,qBAAM,KAAK,CA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