infinity-forge 0.30.9 → 0.31.1
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/README.md +20 -42
- package/dist/sites/components/brands-carousel/styles.d.ts +1 -0
- package/dist/sites/components/counter/versions/version-01/box/styles.d.ts +1 -0
- package/dist/sites/components/counter/versions/version-01/styles.d.ts +1 -0
- package/dist/sites/components/header-link/versions/version-01/styles.d.ts +1 -0
- package/dist/sites/components/mvv/versions/version-01/styles.d.ts +1 -0
- package/dist/sites/context/configs/interfaces.d.ts +1 -0
- package/dist/sites/context/configs/scripts/acept-cookies/styles.d.ts +1 -0
- package/dist/sites/context/configs/scripts/acept-ratedr/styles.d.ts +1 -0
- package/dist/sites/context/configs/scripts/whatsapp-fixed/styles.d.ts +1 -0
- package/dist/system/container/index.d.ts +4 -3
- package/dist/system/container/index.js +1 -0
- package/dist/system/container/index.js.map +1 -1
- package/dist/system/container/main.d.ts +1 -1
- package/dist/system/container/main.js +3 -2
- package/dist/system/container/main.js.map +1 -1
- package/dist/system/container/notifications/container.d.ts +3 -0
- package/dist/system/container/notifications/container.js +12 -0
- package/dist/system/container/notifications/container.js.map +1 -0
- package/dist/system/container/notifications/index.d.ts +2 -0
- package/dist/system/container/notifications/index.js +19 -0
- package/dist/system/container/notifications/index.js.map +1 -0
- package/dist/system/container/notifications/types.d.ts +3 -0
- package/dist/system/container/notifications/types.js +7 -0
- package/dist/system/container/notifications/types.js.map +1 -0
- package/dist/system/container/types.d.ts +1 -0
- package/dist/system/container/types.js +2 -1
- package/dist/system/container/types.js.map +1 -1
- package/dist/system/data/use-cases/index.d.ts +2 -1
- package/dist/system/data/use-cases/index.js +1 -0
- package/dist/system/data/use-cases/index.js.map +1 -1
- package/dist/system/data/use-cases/notifications/index.d.ts +1 -0
- package/dist/system/data/use-cases/notifications/index.js +18 -0
- package/dist/system/data/use-cases/notifications/index.js.map +1 -0
- package/dist/system/data/use-cases/notifications/remote-notifications.d.ts +11 -0
- package/dist/system/data/use-cases/notifications/remote-notifications.js +160 -0
- package/dist/system/data/use-cases/notifications/remote-notifications.js.map +1 -0
- package/dist/system/domain/index.d.ts +1 -1
- package/dist/system/domain/use-cases/index.d.ts +2 -1
- package/dist/system/domain/use-cases/index.js +1 -0
- package/dist/system/domain/use-cases/index.js.map +1 -1
- package/dist/system/domain/use-cases/notifications/create.d.ts +11 -0
- package/dist/system/{presentation/components/layout/header/components/menu-right/notifications/interfaces.js → domain/use-cases/notifications/create.js} +1 -1
- package/dist/system/domain/use-cases/notifications/create.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/index.d.ts +4 -0
- package/dist/system/domain/use-cases/notifications/index.js +21 -0
- package/dist/system/domain/use-cases/notifications/index.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/load-all.d.ts +18 -0
- package/dist/system/domain/use-cases/notifications/load-all.js +3 -0
- package/dist/system/domain/use-cases/notifications/load-all.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/load-no-read.d.ts +8 -0
- package/dist/system/domain/use-cases/notifications/load-no-read.js +3 -0
- package/dist/system/domain/use-cases/notifications/load-no-read.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/read.d.ts +9 -0
- package/dist/system/domain/use-cases/notifications/read.js +3 -0
- package/dist/system/domain/use-cases/notifications/read.js.map +1 -0
- package/dist/system/presentation/components/data/chat/card-message/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/chat/loader/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/chat/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/highlight-text/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/input-search/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/logo/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/overlay/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/page-wrapper/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/sign-up/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/component.d.ts +1 -3
- package/dist/system/presentation/components/layout/component.js +2 -2
- package/dist/system/presentation/components/layout/component.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +2 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.d.ts +2 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.js +35 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.js.map +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.d.ts +5 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.js +14 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.js.map +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.d.ts +1 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +77 -8
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.d.ts +7 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.js +4 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/index.d.ts +1 -2
- package/dist/system/presentation/components/layout/header/index.js +3 -3
- package/dist/system/presentation/components/layout/header/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.d.ts +1 -2
- package/dist/system/presentation/components/layout/header/version-01/index.js +2 -2
- package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/components/menu/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/version-01/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/styles.d.ts +1 -0
- package/dist/system/presentation/components/pages/menus/table/icon/style.d.ts +1 -0
- package/dist/system/presentation/context/auth/context.js +1 -1
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/dist/system/presentation/context/auth/login/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/index.d.ts +1 -0
- package/dist/system/presentation/hooks/index.js +1 -0
- package/dist/system/presentation/hooks/index.js.map +1 -1
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
- package/dist/system/presentation/hooks/notifications/index.d.ts +2 -0
- package/dist/system/presentation/hooks/notifications/index.js +19 -0
- package/dist/system/presentation/hooks/notifications/index.js.map +1 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +4 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +67 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js.map +1 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +2 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +62 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.d.ts +1 -0
- package/dist/ui/components/accordion/styles.d.ts +1 -0
- package/dist/ui/components/breadcrumb/styles.d.ts +1 -0
- package/dist/ui/components/button/styles.d.ts +1 -0
- package/dist/ui/components/form/checkbox/styles.d.ts +1 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/styles.d.ts +1 -0
- package/dist/ui/components/form/handler/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/error/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/label/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/loader-input/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/styles.d.ts +1 -0
- package/dist/ui/components/form/input-date/styles.d.ts +1 -0
- package/dist/ui/components/form/input-file/file-card/styles.d.ts +1 -0
- package/dist/ui/components/form/input-file/styles.d.ts +1 -0
- package/dist/ui/components/form/input-password/styles.d.ts +1 -0
- package/dist/ui/components/form/radio/styles.d.ts +1 -0
- package/dist/ui/components/form/select/styles.d.ts +1 -0
- package/dist/ui/components/loading-screen/styles.d.ts +1 -0
- package/dist/ui/components/menu-mobile/components/nav-links/styles.d.ts +1 -0
- package/dist/ui/components/menu-mobile/styles.d.ts +1 -0
- package/dist/ui/components/menu-mobile/top/styles.d.ts +1 -0
- package/dist/ui/components/next-image/styles.d.ts +1 -0
- package/dist/ui/components/sidebar/styles.d.ts +1 -0
- package/dist/ui/contexts/toast/styles.d.ts +1 -0
- package/dist/ui/contexts/toast/toast-item/styles.d.ts +1 -0
- package/dist/ui/utils/file/load-file.js +1 -1
- package/dist/ui/utils/file/upload-file.js +5 -5
- package/dist/ui/utils/file/upload-file.js.map +1 -1
- package/package.json +5 -6
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.d.ts +0 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function useLoadMenu(): import("swr
|
|
1
|
+
export declare function useLoadMenu(): import("swr").SWRResponse<import("../../../../system/index.js").LoadAllMenu.Model, any, {
|
|
2
2
|
revalidateIfStale: false;
|
|
3
3
|
revalidateOnFocus: false;
|
|
4
4
|
revalidateOnReconnect: false;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./use-load-all/index.js"), exports);
|
|
18
|
+
__exportStar(require("./use-load-no-read/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/presentation/hooks/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,qDAAkC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.useLoadAllNotifications = void 0;
|
|
43
|
+
var swr_1 = __importDefault(require("swr"));
|
|
44
|
+
var container_1 = require("../../../../../system/container/index.js");
|
|
45
|
+
function useLoadAllNotifications() {
|
|
46
|
+
var timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
47
|
+
function fetcher() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49
|
+
var response;
|
|
50
|
+
return __generator(this, function (_a) {
|
|
51
|
+
switch (_a.label) {
|
|
52
|
+
case 0: return [4 /*yield*/, container_1.container.get(container_1.Types.RemoteNotifications).loadAll({ timezone: timezone })];
|
|
53
|
+
case 1:
|
|
54
|
+
response = _a.sent();
|
|
55
|
+
return [2 /*return*/, response];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
var swrResponse = (0, swr_1.default)('LoadAllNotifications' + timezone, fetcher);
|
|
61
|
+
return {
|
|
62
|
+
notifications: swrResponse.data,
|
|
63
|
+
isLoading: swrResponse.isLoading,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.useLoadAllNotifications = useLoadAllNotifications;
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-all/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAwB;AAExB,gDAAqD;AAGrD,SAAgB,uBAAuB;IACrC,IAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAA;IACjE,SAAe,OAAO;;;;;4BACH,qBAAM,qBAAS,CAAC,GAAG,CAAsB,iBAAK,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,UAAA,EAAE,CAAC,EAAA;;wBAApG,QAAQ,GAAG,SAAyF;wBAE1G,sBAAO,QAAQ,EAAA;;;;KAChB;IAED,IAAM,WAAW,GAAG,IAAA,aAAM,EAAC,sBAAsB,GAAG,QAAQ,EAAE,OAAO,CAAC,CAAA;IAEtE,OAAO;QACL,aAAa,EAAE,WAAW,CAAC,IAAI;QAC/B,SAAS,EAAE,WAAW,CAAC,SAAS;KACjC,CAAA;AACH,CAAC;AAdD,0DAcC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.useLoadNoReadNotifications = void 0;
|
|
43
|
+
var swr_1 = __importDefault(require("swr"));
|
|
44
|
+
var container_1 = require("../../../../../system/container/index.js");
|
|
45
|
+
function useLoadNoReadNotifications() {
|
|
46
|
+
function fetcher() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
48
|
+
var response;
|
|
49
|
+
return __generator(this, function (_a) {
|
|
50
|
+
switch (_a.label) {
|
|
51
|
+
case 0: return [4 /*yield*/, container_1.container.get(container_1.Types.RemoteNotifications).loadNoRead()];
|
|
52
|
+
case 1:
|
|
53
|
+
response = _a.sent();
|
|
54
|
+
return [2 /*return*/, response];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return (0, swr_1.default)('LoadNoReadNotifications', fetcher);
|
|
60
|
+
}
|
|
61
|
+
exports.useLoadNoReadNotifications = useLoadNoReadNotifications;
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/hooks/notifications/use-load-no-read/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAwB;AAExB,gDAAqD;AAGrD,SAAgB,0BAA0B;IACxC,SAAe,OAAO;;;;;4BACH,qBAAM,qBAAS,CAAC,GAAG,CAA0B,iBAAK,CAAC,mBAAmB,CAAC,CAAC,UAAU,EAAE,EAAA;;wBAA/F,QAAQ,GAAG,SAAoF;wBAErG,sBAAO,QAAQ,EAAA;;;;KAChB;IAED,OAAO,IAAA,aAAM,EAAC,yBAAyB,EAAE,OAAO,CAAC,CAAA;AACnD,CAAC;AARD,gEAQC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Create: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Export: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Filters: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const PaginationStyle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const SkeletonCustom: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Table: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.TableBottom = exports.TopActions = exports.Table = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Table = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow-x: hidden;\n width: 100%;\n background-color: #fff;\n border-radius: 6px 6px 0 0;\n border: 0.3px solid rgba(0, 0, 0, 0.09);\n border-bottom: 0;\n\n > div {\n width: 100%;\n overflow-x: auto;\n }\n\n .title {\n padding: 20px;\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n\n > div {\n width: 100%;\n }\n\n thead {\n background-color: #f1f1f1;\n height: 48px;\n\n tr {\n height: 48px;\n }\n\n th {\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 2;\n text-align: center;\n }\n }\n\n tbody {\n display: table-row-group;\n\n tr {\n height:
|
|
12
|
+
exports.Table = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow-x: hidden;\n width: 100%;\n background-color: #fff;\n border-radius: 6px 6px 0 0;\n border: 0.3px solid rgba(0, 0, 0, 0.09);\n border-bottom: 0;\n\n > div {\n width: 100%;\n overflow-x: auto;\n }\n\n .title {\n padding: 20px;\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n\n > div {\n width: 100%;\n }\n\n thead {\n background-color: #f1f1f1;\n height: 48px;\n\n tr {\n height: 48px;\n }\n\n th {\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 2;\n text-align: center;\n }\n }\n\n tbody {\n display: table-row-group;\n\n tr {\n height: 45px;\n transition: background 0.1s ease-in-out;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.02);\n }\n }\n\n td {\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n text-align: left;\n font-weight: 400;\n }\n }\n }\n\n .error_table {\n min-height: 400px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n flex-direction: column;\n width: 100%;\n\n h3 {\n margin-top: 15px;\n color: #828282;\n font-size: 18px;\n }\n }\n"], ["\n overflow-x: hidden;\n width: 100%;\n background-color: #fff;\n border-radius: 6px 6px 0 0;\n border: 0.3px solid rgba(0, 0, 0, 0.09);\n border-bottom: 0;\n\n > div {\n width: 100%;\n overflow-x: auto;\n }\n\n .title {\n padding: 20px;\n }\n\n table {\n width: 100%;\n border-collapse: collapse;\n\n > div {\n width: 100%;\n }\n\n thead {\n background-color: #f1f1f1;\n height: 48px;\n\n tr {\n height: 48px;\n }\n\n th {\n vertical-align: inherit;\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 2;\n text-align: center;\n }\n }\n\n tbody {\n display: table-row-group;\n\n tr {\n height: 45px;\n transition: background 0.1s ease-in-out;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.02);\n }\n }\n\n td {\n border-bottom: 1px solid rgba(224, 224, 224, 1);\n padding: 0 15px;\n color: rgba(0, 0, 0, 0.87);\n text-align: left;\n font-weight: 400;\n }\n }\n }\n\n .error_table {\n min-height: 400px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n flex-direction: column;\n width: 100%;\n\n h3 {\n margin-top: 15px;\n color: #828282;\n font-size: 18px;\n }\n }\n"])));
|
|
13
13
|
exports.TopActions = (0, styled_components_1.default)('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n margin-bottom: 15px;\n justify-content: space-between;\n\n > div {\n width: fit-content;\n }\n\n .right {\n display: flex;\n gap: 15px;\n }\n"], ["\n display: flex;\n margin-bottom: 15px;\n justify-content: space-between;\n\n > div {\n width: fit-content;\n }\n\n .right {\n display: flex;\n gap: 15px;\n }\n"])));
|
|
14
14
|
exports.TableBottom = (0, styled_components_1.default)('div')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 60px;\n width: auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 20px;\n border-radius: 0 0 5px 5px;\n border: 1px solid #e1e1e1;\n border-top: 0;\n\n > span {\n color: #828282;\n }\n\n p {\n margin: 0;\n color: #808080;\n }\n\n .pagination {\n margin: 0 0 0 auto;\n }\n"], ["\n height: 60px;\n width: auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 20px;\n border-radius: 0 0 5px 5px;\n border: 1px solid #e1e1e1;\n border-top: 0;\n\n > span {\n color: #828282;\n }\n\n p {\n margin: 0;\n color: #808080;\n }\n\n .pagination {\n margin: 0 0 0 auto;\n }\n"])));
|
|
15
15
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,sjDAAA,m/CAmFjC,KAAA;AAEY,QAAA,UAAU,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,sPAAA,mLAatC,KAAA;AAEY,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,oaAAA,iWAuBvC,KAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const THeadItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Accordion: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Breadcrumb: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputCheckbox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -81,8 +81,8 @@ function DynamicFormHandler(props) {
|
|
|
81
81
|
var _this = this;
|
|
82
82
|
var queryKEY = props.getDetails && props.getDetails.key && props.getDetails.key(props.tableItem);
|
|
83
83
|
function fetcher() {
|
|
84
|
-
var _a;
|
|
85
84
|
return __awaiter(this, void 0, void 0, function () {
|
|
85
|
+
var _a;
|
|
86
86
|
return __generator(this, function (_b) {
|
|
87
87
|
return [2 /*return*/, (_a = props === null || props === void 0 ? void 0 : props.getDetails) === null || _a === void 0 ? void 0 : _a.fetcher(props.tableItem)];
|
|
88
88
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const DynamiFormHandler: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const FormHandler: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const ErrorMessage: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Label: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const LoaderInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputDate: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const FileCard: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputFile: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputPassword: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const InputRadio: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const SelectWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const LoadingScreen: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const NavLinks: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const MenuMobile: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Top: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Image: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Toast: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const ToastItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
4
5
|
}, never>>;
|
|
@@ -43,9 +43,9 @@ exports.loadFile = void 0;
|
|
|
43
43
|
var system_1 = require("../../../system/index.js");
|
|
44
44
|
var axios_1 = __importDefault(require("axios"));
|
|
45
45
|
function loadFile(data) {
|
|
46
|
-
var _a;
|
|
47
46
|
return __awaiter(this, void 0, void 0, function () {
|
|
48
47
|
var token, response, type, blob, url, link;
|
|
48
|
+
var _a;
|
|
49
49
|
return __generator(this, function (_b) {
|
|
50
50
|
switch (_b.label) {
|
|
51
51
|
case 0: return [4 /*yield*/, ((_a = system_1.container.get(system_1.InfraTypes.storage).get('token')) === null || _a === void 0 ? void 0 : _a.value)];
|
|
@@ -39,11 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.uploadFile = void 0;
|
|
40
40
|
var system_1 = require("../../../system/index.js");
|
|
41
41
|
function uploadFile(_a) {
|
|
42
|
-
|
|
43
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
42
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
44
43
|
var filesToArray, formData, response;
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
var files = _b.files;
|
|
45
|
+
return __generator(this, function (_c) {
|
|
46
|
+
switch (_c.label) {
|
|
47
47
|
case 0:
|
|
48
48
|
if (!files || files.length === 0) {
|
|
49
49
|
return [2 /*return*/, []];
|
|
@@ -55,7 +55,7 @@ function uploadFile(_a) {
|
|
|
55
55
|
});
|
|
56
56
|
return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteFile).upload(formData)];
|
|
57
57
|
case 1:
|
|
58
|
-
response =
|
|
58
|
+
response = _c.sent();
|
|
59
59
|
return [2 /*return*/, response.items];
|
|
60
60
|
}
|
|
61
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../src/ui/utils/file/upload-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAuD;AAEvD,SAAsB,UAAU,
|
|
1
|
+
{"version":3,"file":"upload-file.js","sourceRoot":"","sources":["../../../../src/ui/utils/file/upload-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAuD;AAEvD,SAAsB,UAAU;wDAAC,EAA8B;;YAA5B,KAAK,WAAA;;;;oBACtC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;wBACjC,sBAAO,EAAE,EAAA;oBACX,CAAC;oBAEK,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;oBAElC,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAA;oBAE7B,YAAY,CAAC,OAAO,CAAC,UAAC,IAAI;wBACxB,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;oBAChC,CAAC,CAAC,CAAA;oBAEe,qBAAM,kBAAS,CAAC,GAAG,CAAa,cAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAA;;oBAA7E,QAAQ,GAAG,SAAkE;oBAEnF,sBAAO,QAAQ,CAAC,KAAK,EAAA;;;;CACtB;AAhBD,gCAgBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infinity-forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.1",
|
|
4
4
|
"description": "codie Library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -36,17 +36,15 @@
|
|
|
36
36
|
"@types/node": "^18.11.7",
|
|
37
37
|
"@types/react": "^18.0.12",
|
|
38
38
|
"@types/react-dom": "^18.2.18",
|
|
39
|
-
"@types/styled-components": "^5.1.26",
|
|
40
39
|
"prettier": "^2.6.2",
|
|
41
40
|
"react": "^18.1.0",
|
|
42
41
|
"react-dom": "^18.2.0",
|
|
43
42
|
"tslib": "^2.4.1",
|
|
44
|
-
"typescript": "^5.
|
|
43
|
+
"typescript": "^5.4.5"
|
|
45
44
|
},
|
|
46
45
|
"dependencies": {
|
|
47
|
-
"@emotion/react": "^11.11.3",
|
|
48
|
-
"@emotion/styled": "^11.11.0",
|
|
49
46
|
"@react-input/mask": "^1.0.21",
|
|
47
|
+
"@types/styled-components": "^5.1.34",
|
|
50
48
|
"aos": "^2.3.4",
|
|
51
49
|
"axios": "^1.4.0",
|
|
52
50
|
"chroma-js": "^2.4.2",
|
|
@@ -54,6 +52,7 @@
|
|
|
54
52
|
"formik": "^2.4.5",
|
|
55
53
|
"inversify": "^6.0.2",
|
|
56
54
|
"js-cookie": "^3.0.5",
|
|
55
|
+
"moment": "^2.30.1",
|
|
57
56
|
"next": "^13.1.6",
|
|
58
57
|
"react-countup": "^6.5.0",
|
|
59
58
|
"react-currency-input-field": "^3.8.0",
|
|
@@ -68,7 +67,7 @@
|
|
|
68
67
|
"semantic-ui-react": "^2.1.5",
|
|
69
68
|
"sharp": "^0.33.2",
|
|
70
69
|
"slick-carousel": "^1.8.1",
|
|
71
|
-
"styled-components": "^6.
|
|
70
|
+
"styled-components": "^6.1.8",
|
|
72
71
|
"swr": "^2.2.5",
|
|
73
72
|
"tsc-alias": "^1.8.8",
|
|
74
73
|
"yup": "^1.3.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.ts"],"names":[],"mappings":""}
|