@layers-app/shared 0.3.0 → 0.3.2
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/assets/default-workspace-avatar.jpg.js +4 -0
- package/dist/assets/layers-logo-full.svg.js +2 -3
- package/dist/assets/layers-logo-full.svg2.js +3 -2
- package/dist/assets/layers-logo-icon.svg.js +2 -3
- package/dist/assets/layers-logo-icon.svg2.js +3 -2
- package/dist/assets/projects/figureA.svg.js +4 -0
- package/dist/assets/projects/figureB.svg.js +4 -0
- package/dist/assets/qwebchannel.d.ts +15 -0
- package/dist/assets/qwebchannel.d.ts.map +1 -0
- package/dist/assets/taskPriorities/high.svg.js +5 -0
- package/dist/assets/taskPriorities/low.svg.js +5 -0
- package/dist/assets/taskPriorities/none.svg.js +5 -0
- package/dist/assets/taskPriorities/normal.svg.js +5 -0
- package/dist/assets/taskPriorities/urgent.svg.js +5 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts +3 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.js +69 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +27 -0
- package/dist/components/AnimatedFigurePage/types.d.ts +15 -0
- package/dist/components/AnimatedFigurePage/types.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +6 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.js +29 -0
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +37 -36
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -45
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +60 -69
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +57 -51
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -1
- package/dist/components/AppContainer/types.d.ts +3 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +9 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +88 -74
- package/dist/components/ColorPicker/ColorPicker.module.css.js +31 -0
- package/dist/components/ColorPicker/ColorPickerList.d.ts +6 -0
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPickerList.js +134 -0
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts +6 -6
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.js +29 -31
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +13 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.js +132 -0
- package/dist/components/ColorPicker/icons.d.ts +11 -0
- package/dist/components/ColorPicker/icons.d.ts.map +1 -0
- package/dist/components/ColorPicker/icons.js +71 -0
- package/dist/components/ColorPicker/types.d.ts +49 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -0
- package/dist/components/ColorPicker/types.js +10 -0
- package/dist/components/ColorPicker/useRecentColors.d.ts +13 -0
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -0
- package/dist/components/ColorPicker/useRecentColors.js +39 -0
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +115 -111
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +12 -10
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +49 -46
- package/dist/components/EmojiPicker/IconsPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +47 -45
- package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts.map +1 -1
- package/dist/components/EmojiPicker/custom-icons/customIcons.js +66 -31
- package/dist/components/EntityIcon.d.ts +3 -3
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +59 -35
- package/dist/components/EntityTitle/EntityTitle.d.ts +1 -1
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +34 -34
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +111 -123
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +41 -39
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +34 -33
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
- package/dist/components/Logotype.d.ts +2 -1
- package/dist/components/Logotype.d.ts.map +1 -1
- package/dist/components/Logotype.js +58 -49
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +122 -107
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +13 -13
- package/dist/components/TreeIndent/TreeIndent.d.ts +9 -0
- package/dist/components/TreeIndent/TreeIndent.d.ts.map +1 -0
- package/dist/components/TreeIndent/TreeIndent.js +15 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +11 -0
- package/dist/components/TreeIndent/index.d.ts +2 -0
- package/dist/components/TreeIndent/index.d.ts.map +1 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +11 -11
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +97 -101
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/config/brand.d.ts +1 -0
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +42 -34
- package/dist/config/envConfig.d.ts +40 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +29 -10
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +15 -4
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +34 -29
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +3 -3
- package/dist/helpers/hotjar.d.ts.map +1 -1
- package/dist/helpers/hotjar.js +11 -7
- package/dist/helpers/platform.js +4 -4
- package/dist/helpers/showNotifications.d.ts +3 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +79 -44
- package/dist/hooks/useDateFnsLocale.d.ts +2 -0
- package/dist/hooks/useDateFnsLocale.d.ts.map +1 -1
- package/dist/hooks/useDateFnsLocale.js +9 -8
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -19
- package/dist/hooks/useFormatDistance.d.ts.map +1 -1
- package/dist/hooks/useFormatDistance.js +6 -6
- package/dist/hooks/useNumberQueryParam.d.ts +1 -1
- package/dist/hooks/useNumberQueryParam.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +516 -494
- package/dist/lang/locales/ui_en.json.js +7 -7
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +11 -11
- package/dist/utils/formatStorage.d.ts +9 -0
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +14 -10
- package/package.json +1 -1
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,mEAOhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,KAAK,IAAI,WACN,CAAC;AAGvD,eAAO,MAAM,oBAAoB,EAAE,WAGrB,CAAC;AAEf,eAAO,MAAM,cAAc;;;;;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,mEAOhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,KAAK,IAAI,WACN,CAAC;AAGvD,eAAO,MAAM,oBAAoB,EAAE,WAGrB,CAAC;AAEf,eAAO,MAAM,cAAc;;;;;;CAyB1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,sBAAsB,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getEnvConfig as
|
|
1
|
+
import { getEnvConfig as t } from "./config/envConfig.js";
|
|
2
2
|
const n = [
|
|
3
3
|
"blue",
|
|
4
4
|
"indigo",
|
|
@@ -6,7 +6,7 @@ const n = [
|
|
|
6
6
|
"grape",
|
|
7
7
|
"green",
|
|
8
8
|
"orange"
|
|
9
|
-
],
|
|
9
|
+
], O = (r) => n.includes(r), e = t().branding?.colorScheme, i = e && O(e) ? e : "indigo", C = {
|
|
10
10
|
get TASK_TYPE_COLOR() {
|
|
11
11
|
return this.COLORS[1];
|
|
12
12
|
},
|
|
@@ -19,12 +19,23 @@ const n = [
|
|
|
19
19
|
get PROJECT_COLOR() {
|
|
20
20
|
return this.COLORS[1];
|
|
21
21
|
},
|
|
22
|
-
COLORS: [
|
|
22
|
+
COLORS: [
|
|
23
|
+
"violet",
|
|
24
|
+
"indigo",
|
|
25
|
+
"blue",
|
|
26
|
+
"teal",
|
|
27
|
+
"green",
|
|
28
|
+
"yellow",
|
|
29
|
+
"orange",
|
|
30
|
+
"red",
|
|
31
|
+
"grey",
|
|
32
|
+
"dark"
|
|
33
|
+
]
|
|
23
34
|
}, L = "Inter, sans-serif";
|
|
24
35
|
export {
|
|
25
36
|
n as COLOR_SCHEMES,
|
|
26
37
|
i as DEFAULT_COLOR_SCHEME,
|
|
27
38
|
L as DEFAULT_FONT_FAMILY,
|
|
28
39
|
C as DEFAULT_VALUES,
|
|
29
|
-
|
|
40
|
+
O as isValidColorScheme
|
|
30
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFileIcons.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileIcons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getFileIcons.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileIcons.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,YAAY,GACvB,UAAU,MAAM,EAChB,WAAW,OAAO,EAClB,OAAM,MAAW,4CA4ElB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { AlertCircleIcon as d, File01Icon as
|
|
2
|
+
import { AlertCircleIcon as d, File01Icon as C, Ppt01Icon as p, Xls01Icon as e, HtmlFile01Icon as a, Doc01Icon as c, Pdf01Icon as u, MpFour01Icon as m, Mp301Icon as g, Zip01Icon as F, Rar01Icon as B } from "@hugeicons/core-free-icons";
|
|
3
3
|
import { HugeiconsIcon as E } from "@hugeicons/react";
|
|
4
|
-
import { ThemeIcon as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
import { ThemeIcon as h, Loader as w } from "@mantine/core";
|
|
5
|
+
const k = (I, f, t = 16) => {
|
|
6
|
+
const n = (I || "").toLowerCase(), r = f || n === "folder" ? "folder" : n, i = {
|
|
7
7
|
rar: "#4C6EF5",
|
|
8
8
|
// indigo-6
|
|
9
9
|
archieve: "#4C6EF5",
|
|
@@ -23,49 +23,54 @@ const M = (f, C, c = 16) => {
|
|
|
23
23
|
diagram: "#22B8CF",
|
|
24
24
|
xls: "#FF922B",
|
|
25
25
|
// orange-5
|
|
26
|
+
xlsx: "#FF922B",
|
|
26
27
|
sheet: "#FF922B",
|
|
28
|
+
pptx: "#7950F2",
|
|
27
29
|
presentation: "#7950F2",
|
|
28
30
|
error: "#868E96",
|
|
29
31
|
loading: "#868E96",
|
|
30
32
|
other: "#868E96",
|
|
31
33
|
folder: "#868E96"
|
|
32
|
-
},
|
|
33
|
-
rar:
|
|
34
|
-
archieve:
|
|
35
|
-
zip:
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
}, l = {
|
|
35
|
+
rar: B,
|
|
36
|
+
archieve: F,
|
|
37
|
+
zip: F,
|
|
38
|
+
mp3: g,
|
|
39
|
+
mp4: m,
|
|
40
|
+
media: m,
|
|
38
41
|
pdf: u,
|
|
39
|
-
doc:
|
|
40
|
-
docx:
|
|
41
|
-
documents:
|
|
42
|
-
html:
|
|
43
|
-
diagram:
|
|
44
|
-
xls:
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
doc: c,
|
|
43
|
+
docx: c,
|
|
44
|
+
documents: c,
|
|
45
|
+
html: a,
|
|
46
|
+
diagram: a,
|
|
47
|
+
xls: e,
|
|
48
|
+
xlsx: e,
|
|
49
|
+
sheet: e,
|
|
50
|
+
pptx: p,
|
|
51
|
+
presentation: p,
|
|
47
52
|
other: d,
|
|
48
|
-
folder:
|
|
53
|
+
folder: C,
|
|
49
54
|
error: d
|
|
50
|
-
},
|
|
55
|
+
}, s = i[r] || i.other, x = l[r] || l.other;
|
|
51
56
|
return r === "loading" ? /* @__PURE__ */ o(
|
|
52
|
-
|
|
57
|
+
h,
|
|
53
58
|
{
|
|
54
59
|
radius: "sm",
|
|
55
|
-
size:
|
|
56
|
-
style: { backgroundColor:
|
|
57
|
-
children: /* @__PURE__ */ o(
|
|
60
|
+
size: t,
|
|
61
|
+
style: { backgroundColor: s, color: "white" },
|
|
62
|
+
children: /* @__PURE__ */ o(w, { color: "white" })
|
|
58
63
|
}
|
|
59
64
|
) : /* @__PURE__ */ o(
|
|
60
|
-
|
|
65
|
+
h,
|
|
61
66
|
{
|
|
62
67
|
radius: "sm",
|
|
63
|
-
size:
|
|
64
|
-
style: { backgroundColor:
|
|
65
|
-
children: /* @__PURE__ */ o(E, { icon:
|
|
68
|
+
size: t,
|
|
69
|
+
style: { backgroundColor: s, color: "white" },
|
|
70
|
+
children: /* @__PURE__ */ o(E, { icon: x })
|
|
66
71
|
}
|
|
67
72
|
);
|
|
68
73
|
};
|
|
69
74
|
export {
|
|
70
|
-
|
|
75
|
+
k as getFileIcons
|
|
71
76
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getFileType: (mimeType: string, groupByCategory?: boolean) => "other" | "presentation" | "documents" | "folder" | "media" | "xlsx" | "docx" | "pptx" | "diagram" | "archieve";
|
|
1
|
+
export declare const getFileType: (mimeType: string, groupByCategory?: boolean) => "other" | "presentation" | "documents" | "folder" | "media" | "pdf" | "doc" | "xls" | "xlsx" | "docx" | "pptx" | "diagram" | "archieve";
|
|
2
2
|
//# sourceMappingURL=getFileType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFileType.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GACtB,UAAU,MAAM,EAChB,kBAAiB,OAAc,
|
|
1
|
+
{"version":3,"file":"getFileType.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GACtB,UAAU,MAAM,EAChB,kBAAiB,OAAc,4IAsChC,CAAC"}
|
|
@@ -5,13 +5,13 @@ const n = (e, t = !0) => {
|
|
|
5
5
|
return "media";
|
|
6
6
|
switch (e.toLowerCase()) {
|
|
7
7
|
case "application/pdf":
|
|
8
|
-
return "
|
|
8
|
+
return "pdf";
|
|
9
9
|
case "application/msword":
|
|
10
|
-
return "
|
|
10
|
+
return "doc";
|
|
11
11
|
case "application/rtf":
|
|
12
12
|
return "documents";
|
|
13
13
|
case "application/excel":
|
|
14
|
-
return "
|
|
14
|
+
return "xls";
|
|
15
15
|
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
|
|
16
16
|
return t ? "documents" : "xlsx";
|
|
17
17
|
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotjar.d.ts","sourceRoot":"","sources":["../../src/helpers/hotjar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hotjar.d.ts","sourceRoot":"","sources":["../../src/helpers/hotjar.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,EAAE,CAAC,EAAE,GAAG,CAAC;QACT,WAAW,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KAChC;CACF;AAED,eAAO,MAAM,UAAU,YAuCtB,CAAC"}
|
package/dist/helpers/hotjar.js
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { getEnvConfig as d } from "../config/envConfig.js";
|
|
2
|
+
const f = () => {
|
|
3
|
+
const i = d()?.analytics, n = Number(i?.hotjarId);
|
|
4
|
+
if (!n || i?.hotjarEnabled === !1)
|
|
5
|
+
return;
|
|
6
|
+
const c = `https://static.hj.contentsquare.net/c/csq-${n}.js`;
|
|
7
|
+
window.hj && window._hjSettings?.hjid === n || document.querySelector(`script[src="${c}"]`) || (function(t, s, r, o, h) {
|
|
4
8
|
t.hj = t.hj || function(...j) {
|
|
5
9
|
(t.hj.q = t.hj.q || []).push(j);
|
|
6
10
|
}, t._hjSettings = { hjid: h };
|
|
7
|
-
const
|
|
8
|
-
|
|
11
|
+
const a = s.getElementsByTagName("head")[0], e = s.createElement("script");
|
|
12
|
+
e.async = !0, e.src = r + t._hjSettings.hjid + o, a.appendChild(e);
|
|
9
13
|
})(
|
|
10
14
|
window,
|
|
11
15
|
document,
|
|
12
16
|
"https://static.hj.contentsquare.net/c/csq-",
|
|
13
17
|
".js",
|
|
14
|
-
|
|
18
|
+
n
|
|
15
19
|
);
|
|
16
20
|
};
|
|
17
21
|
export {
|
|
18
|
-
|
|
22
|
+
f as initHotjar
|
|
19
23
|
};
|
package/dist/helpers/platform.js
CHANGED
|
@@ -9,15 +9,15 @@ const t = [
|
|
|
9
9
|
"shareAccess",
|
|
10
10
|
"planBadges",
|
|
11
11
|
"alias"
|
|
12
|
-
],
|
|
12
|
+
], r = {
|
|
13
13
|
SAAS: t,
|
|
14
|
-
DESKTOP: [],
|
|
14
|
+
DESKTOP: ["socialAuth"],
|
|
15
15
|
SERVER: t
|
|
16
16
|
}, c = (e) => {
|
|
17
|
-
const s =
|
|
17
|
+
const s = r[e] ?? [];
|
|
18
18
|
return {
|
|
19
19
|
mode: e,
|
|
20
|
-
has: (
|
|
20
|
+
has: (a) => s.includes(a),
|
|
21
21
|
isDesktop: e === "DESKTOP"
|
|
22
22
|
};
|
|
23
23
|
}, l = "SAAS", o = "platformModeOverride", n = (e) => {
|
|
@@ -16,6 +16,9 @@ export declare const showRequestNotifications: <Response, Request extends Promis
|
|
|
16
16
|
errorMsg?: ((err: any) => MessageType) | MessageType;
|
|
17
17
|
}) => Promise<any>;
|
|
18
18
|
export declare const showMessageNotification: (props: ExtendedNotificationData) => void;
|
|
19
|
+
export declare const updateMessageNotification: (props: ExtendedNotificationData & {
|
|
20
|
+
id: string;
|
|
21
|
+
}) => void;
|
|
19
22
|
export declare const showSuccessNotification: (props: ExtendedNotificationData) => void;
|
|
20
23
|
export declare const showWarningNotification: (props: ExtendedNotificationData) => void;
|
|
21
24
|
export declare const showErrorNotification: (props: ExtendedNotificationData) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,wBAAwB,CAAC;AAKhC,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAetD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IACzE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AAmEF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,EACR,OAAO,SAAS,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,EAErD,SAAS,OAAO,EAChB,UAAS;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;IAC5D,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;CACjD,iBA+BP,CAAC;AAwCF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,wBAAwB,SAKpE,CAAC"}
|
|
1
|
+
{"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,wBAAwB,CAAC;AAKhC,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAetD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IACzE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AAmEF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,EACR,OAAO,SAAS,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,EAErD,SAAS,OAAO,EAChB,UAAS;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;IAC5D,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;CACjD,iBA+BP,CAAC;AAwCF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAqCF,eAAO,MAAM,yBAAyB,GACpC,OAAO,wBAAwB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,SAMjD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,wBAAwB,SAKpE,CAAC"}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { InformationCircleIcon as
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { InformationCircleIcon as I, CheckmarkCircle02Icon as b, Alert01Icon as y, Alert02Icon as B } from "@hugeicons/core-free-icons";
|
|
3
3
|
import { HugeiconsIcon as d } from "@hugeicons/react";
|
|
4
|
-
import { CloseButton as
|
|
5
|
-
import { showNotification as
|
|
4
|
+
import { CloseButton as k, Box as u, Button as S } from "@mantine/core";
|
|
5
|
+
import { showNotification as x, notifications as w } from "@mantine/notifications";
|
|
6
6
|
import { isFunction as h, isObject as N } from "lodash-es";
|
|
7
7
|
import c from "./showNotifications.module.css.js";
|
|
8
|
-
let
|
|
9
|
-
const
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
8
|
+
let z = 0;
|
|
9
|
+
const M = /* @__PURE__ */ t(d, { icon: b, size: 14, color: "white" }), O = /* @__PURE__ */ t(d, { icon: B, size: 14, color: "white" }), R = /* @__PURE__ */ t(d, { icon: y, size: 14, color: "white" }), g = /* @__PURE__ */ t(d, { icon: I, size: 14, color: "white" }), v = (o, n) => n?.length ? /* @__PURE__ */ l(u, { children: [
|
|
10
|
+
/* @__PURE__ */ t(u, { children: o }),
|
|
11
|
+
/* @__PURE__ */ t(u, { className: c.actions, children: n.map((i, e) => /* @__PURE__ */ t(
|
|
12
|
+
S,
|
|
13
13
|
{
|
|
14
14
|
size: "compact-sm",
|
|
15
|
-
variant:
|
|
16
|
-
onClick:
|
|
15
|
+
variant: i.variant ?? "default",
|
|
16
|
+
onClick: i.onClick,
|
|
17
17
|
radius: "md",
|
|
18
|
-
children:
|
|
18
|
+
children: i.label
|
|
19
19
|
},
|
|
20
20
|
e
|
|
21
21
|
)) })
|
|
22
22
|
] }) : o;
|
|
23
|
-
function
|
|
23
|
+
function C({
|
|
24
24
|
id: o,
|
|
25
25
|
title: n,
|
|
26
|
-
icon:
|
|
26
|
+
icon: i,
|
|
27
27
|
children: e
|
|
28
28
|
}) {
|
|
29
29
|
return /* @__PURE__ */ l("div", { className: c.root, children: [
|
|
30
30
|
/* @__PURE__ */ l("div", { className: n ? c.contentRow : c.contentRowCentered, children: [
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ t("div", { className: c.icon, children: i }),
|
|
32
32
|
/* @__PURE__ */ l("div", { className: c.body, children: [
|
|
33
|
-
n && /* @__PURE__ */
|
|
34
|
-
e && /* @__PURE__ */
|
|
33
|
+
n && /* @__PURE__ */ t("div", { className: c.title, children: n }),
|
|
34
|
+
e && /* @__PURE__ */ t(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
37
|
className: n ? c.description : c.descriptionWithoutTitle,
|
|
@@ -40,25 +40,25 @@ function R({
|
|
|
40
40
|
)
|
|
41
41
|
] })
|
|
42
42
|
] }),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
43
|
+
/* @__PURE__ */ t("div", { className: c.closeButtonWrapper, children: /* @__PURE__ */ t(
|
|
44
|
+
k,
|
|
45
45
|
{
|
|
46
46
|
className: c.closeButton,
|
|
47
47
|
size: 24,
|
|
48
|
-
onClick: () =>
|
|
48
|
+
onClick: () => w.hide(o)
|
|
49
49
|
}
|
|
50
50
|
) })
|
|
51
51
|
] });
|
|
52
52
|
}
|
|
53
|
-
const
|
|
54
|
-
const { successMsg:
|
|
53
|
+
const D = (o, n = {}) => {
|
|
54
|
+
const { successMsg: i, errorMsg: e } = n;
|
|
55
55
|
return o.then((r) => {
|
|
56
|
-
if (
|
|
57
|
-
const s = h(
|
|
56
|
+
if (i) {
|
|
57
|
+
const s = h(i) ? i(r) : i, a = {
|
|
58
58
|
id: n.notifyId,
|
|
59
59
|
...N(s) ? s : { message: s }
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
j(a);
|
|
62
62
|
}
|
|
63
63
|
return r;
|
|
64
64
|
}).catch((r) => {
|
|
@@ -67,13 +67,13 @@ const $ = (o, n = {}) => {
|
|
|
67
67
|
id: n.notifyId,
|
|
68
68
|
...N(s) ? s : { message: s }
|
|
69
69
|
};
|
|
70
|
-
|
|
70
|
+
q(a);
|
|
71
71
|
}
|
|
72
72
|
return r;
|
|
73
73
|
});
|
|
74
74
|
}, m = (o, n) => {
|
|
75
|
-
const { actions:
|
|
76
|
-
|
|
75
|
+
const { actions: i, title: e, message: r, onClose: s, ...a } = o, p = `ntf-${++z}`, f = a.id ?? p;
|
|
76
|
+
x({
|
|
77
77
|
color: n.color,
|
|
78
78
|
radius: 12,
|
|
79
79
|
...a,
|
|
@@ -91,41 +91,76 @@ const $ = (o, n = {}) => {
|
|
|
91
91
|
onClose: () => {
|
|
92
92
|
s?.(o);
|
|
93
93
|
},
|
|
94
|
-
message: /* @__PURE__ */
|
|
95
|
-
|
|
94
|
+
message: /* @__PURE__ */ t(
|
|
95
|
+
C,
|
|
96
96
|
{
|
|
97
97
|
id: f,
|
|
98
98
|
title: e,
|
|
99
99
|
icon: n.icon,
|
|
100
|
-
children:
|
|
100
|
+
children: v(r, i)
|
|
101
101
|
}
|
|
102
102
|
)
|
|
103
103
|
});
|
|
104
|
-
},
|
|
104
|
+
}, G = (o) => {
|
|
105
105
|
m(o, {
|
|
106
106
|
color: "var(--mantine-color-blue-outline)",
|
|
107
|
-
icon:
|
|
107
|
+
icon: g
|
|
108
108
|
});
|
|
109
|
-
}, W = (o) => {
|
|
109
|
+
}, W = (o, n) => {
|
|
110
|
+
const { actions: i, title: e, message: r, onClose: s, ...a } = o;
|
|
111
|
+
w.update({
|
|
112
|
+
color: n.color,
|
|
113
|
+
radius: 12,
|
|
114
|
+
...a,
|
|
115
|
+
icon: void 0,
|
|
116
|
+
title: void 0,
|
|
117
|
+
withCloseButton: !1,
|
|
118
|
+
withBorder: !1,
|
|
119
|
+
p: 0,
|
|
120
|
+
classNames: { root: c.mantineRoot },
|
|
121
|
+
styles: {
|
|
122
|
+
root: { background: "none", border: "none", boxShadow: "none" },
|
|
123
|
+
body: { margin: 0 }
|
|
124
|
+
},
|
|
125
|
+
onClose: () => {
|
|
126
|
+
s?.(o);
|
|
127
|
+
},
|
|
128
|
+
message: /* @__PURE__ */ t(
|
|
129
|
+
C,
|
|
130
|
+
{
|
|
131
|
+
id: o.id,
|
|
132
|
+
title: e,
|
|
133
|
+
icon: n.icon,
|
|
134
|
+
children: v(r, i)
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
});
|
|
138
|
+
}, J = (o) => {
|
|
139
|
+
W(o, {
|
|
140
|
+
color: "var(--mantine-color-blue-outline)",
|
|
141
|
+
icon: g
|
|
142
|
+
});
|
|
143
|
+
}, j = (o) => {
|
|
110
144
|
m(o, {
|
|
111
145
|
color: "var(--mantine-color-green-outline)",
|
|
112
|
-
icon:
|
|
146
|
+
icon: M
|
|
113
147
|
});
|
|
114
|
-
},
|
|
148
|
+
}, K = (o) => {
|
|
115
149
|
m(o, {
|
|
116
150
|
color: "var(--mantine-color-yellow-outline)",
|
|
117
|
-
icon:
|
|
151
|
+
icon: R
|
|
118
152
|
});
|
|
119
|
-
},
|
|
153
|
+
}, q = (o) => {
|
|
120
154
|
m(o, {
|
|
121
155
|
color: "var(--mantine-color-red-outline)",
|
|
122
|
-
icon:
|
|
156
|
+
icon: O
|
|
123
157
|
});
|
|
124
158
|
};
|
|
125
159
|
export {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
160
|
+
q as showErrorNotification,
|
|
161
|
+
G as showMessageNotification,
|
|
162
|
+
D as showRequestNotifications,
|
|
163
|
+
j as showSuccessNotification,
|
|
164
|
+
K as showWarningNotification,
|
|
165
|
+
J as updateMessageNotification
|
|
131
166
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDateFnsLocale.d.ts","sourceRoot":"","sources":["../../src/hooks/useDateFnsLocale.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDateFnsLocale.d.ts","sourceRoot":"","sources":["../../src/hooks/useDateFnsLocale.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAqB,MAAM,UAAU,CAAC;AAG1D,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAkB,CAAC;AAErE,eAAO,MAAM,gBAAgB,YAM5B,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { useEffect as
|
|
1
|
+
import { useEffect as o } from "react";
|
|
2
2
|
import { useTranslation as t } from "react-i18next";
|
|
3
3
|
import { setDefaultOptions as n } from "date-fns";
|
|
4
|
-
import { ru as
|
|
5
|
-
const l = () => {
|
|
6
|
-
const { i18n:
|
|
7
|
-
|
|
8
|
-
n({ locale:
|
|
9
|
-
}, [
|
|
4
|
+
import { ru as s, es as a, enUS as r } from "date-fns/locale";
|
|
5
|
+
const l = { en: r, es: a, ru: s }, u = () => {
|
|
6
|
+
const { i18n: e } = t();
|
|
7
|
+
o(() => {
|
|
8
|
+
n({ locale: l[e.language] });
|
|
9
|
+
}, [e.language]);
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
l as
|
|
12
|
+
l as dateFnsLocales,
|
|
13
|
+
u as useDateFnsLocale
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDateUtils.d.ts","sourceRoot":"","sources":["../../src/hooks/useDateUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"useDateUtils.d.ts","sourceRoot":"","sources":["../../src/hooks/useDateUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAS3B,MAAM,UAAU,CAAC;AAMlB,eAAO,MAAM,YAAY;;uBAKf,IAAI,GAAG,MAAM,gCAET;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,KAC7B,MAAM;iCAqDD,IAAI,GAAG,MAAM,yBAElB,MAAM;+BAKD,IAAI,GAAG,MAAM,YACT,0BAA0B,KACnC,MAAM;mCAQA,IAAI,GAAG,MAAM,SACb,IAAI,GAAG,MAAM,KACnB,OAAO;wCAQD,IAAI,GAAG,MAAM,SACb,IAAI,GAAG,MAAM,YACV,qBAAqB,KAC9B,MAAM;oCArED,IAAI,GAAG,MAAM,YACT;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,KAC5B,MAAM;CAmFV,CAAC"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { useTranslation as z } from "react-i18next";
|
|
2
|
-
import { differenceInDays as h, differenceInHours as
|
|
3
|
-
import { toZonedTime as s, formatInTimeZone as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
const { timezone: o } =
|
|
2
|
+
import { differenceInDays as h, differenceInHours as v, differenceInMinutes as p, differenceInSeconds as U, formatDistance as w, isSameDay as C, formatDistanceToNow as S, format as l } from "date-fns";
|
|
3
|
+
import { toZonedTime as s, formatInTimeZone as H } from "date-fns-tz";
|
|
4
|
+
import { useLocalTimezone as I } from "../store/timezoneStore.js";
|
|
5
|
+
import { dateFnsLocales as d } from "./useDateFnsLocale.js";
|
|
6
|
+
const b = () => {
|
|
7
|
+
const { timezone: o } = I(), { t: a, i18n: y } = z("ui");
|
|
8
8
|
return {
|
|
9
9
|
timezone: o,
|
|
10
10
|
formatDate: (e, t = "yyyy-MM-dd HH:mm:ss", n) => {
|
|
11
11
|
const r = typeof e == "string" ? new Date(e) : e, i = s(r, o || "UTC");
|
|
12
12
|
if (n?.locale ?? !1) {
|
|
13
|
-
const f =
|
|
14
|
-
return
|
|
13
|
+
const f = d[y.language] || d.en;
|
|
14
|
+
return l(i, t, { locale: f });
|
|
15
15
|
}
|
|
16
|
-
return
|
|
16
|
+
return l(i, t);
|
|
17
17
|
},
|
|
18
|
-
formatDateInTimezone: (e, t = "yyyy-MM-dd HH:mm:ss") =>
|
|
18
|
+
formatDateInTimezone: (e, t = "yyyy-MM-dd HH:mm:ss") => H(e, o || "UTC", t),
|
|
19
19
|
formatRelativeTime: (e, t) => {
|
|
20
20
|
const n = typeof e == "string" ? new Date(e) : e, r = s(n, o || "UTC");
|
|
21
|
-
return
|
|
21
|
+
return S(r, { ...t });
|
|
22
22
|
},
|
|
23
23
|
isSameDayWithTimezone: (e, t) => {
|
|
24
24
|
const n = s(e, o || "UTC"), r = s(t, o || "UTC");
|
|
@@ -29,19 +29,19 @@ const A = () => {
|
|
|
29
29
|
return w(r, i, { ...n });
|
|
30
30
|
},
|
|
31
31
|
formatRelativeShortTime: (e, t) => {
|
|
32
|
-
const n = typeof e == "string" ? new Date(e) : e, r = /* @__PURE__ */ new Date(), i = s(n, o || "UTC"), m = s(r, o || "UTC"),
|
|
33
|
-
return
|
|
34
|
-
count: u
|
|
35
|
-
}) : f >= 1 ? a(c ? "relativeTime.shortHour" : "relativeTime.hour", {
|
|
32
|
+
const n = typeof e == "string" ? new Date(e) : e, r = /* @__PURE__ */ new Date(), i = s(n, o || "UTC"), m = s(r, o || "UTC"), f = h(m, i), T = v(m, i), u = p(m, i), D = U(m, i), c = t?.short ?? !1;
|
|
33
|
+
return f >= 1 ? a(c ? "relativeTime.shortDay" : "relativeTime.day", {
|
|
36
34
|
count: f
|
|
37
|
-
}) : T >= 1 ? a(c ? "relativeTime.
|
|
35
|
+
}) : T >= 1 ? a(c ? "relativeTime.shortHour" : "relativeTime.hour", {
|
|
38
36
|
count: T
|
|
39
|
-
}) :
|
|
40
|
-
count:
|
|
37
|
+
}) : u >= 1 ? a(c ? "relativeTime.shortMinute" : "relativeTime.minute", {
|
|
38
|
+
count: u
|
|
39
|
+
}) : D >= 1 ? a(c ? "relativeTime.shortSecond" : "relativeTime.second", {
|
|
40
|
+
count: D
|
|
41
41
|
}) : a(c ? "relativeTime.shortJustNow" : "relativeTime.justNow");
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
b as useDateUtils
|
|
47
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormatDistance.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormatDistance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFormatDistance.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormatDistance.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,oBAId,MAAM,WAOrB,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useCallback as o } from "react";
|
|
2
2
|
import { useTranslation as n } from "react-i18next";
|
|
3
|
-
import {
|
|
4
|
-
import { useDateUtils as
|
|
5
|
-
const
|
|
6
|
-
const { i18n: e } = n(), { formatDistanceWithTimezone: t } =
|
|
3
|
+
import { dateFnsLocales as r } from "./useDateFnsLocale.js";
|
|
4
|
+
import { useDateUtils as s } from "./useDateUtils.js";
|
|
5
|
+
const c = () => {
|
|
6
|
+
const { i18n: e } = n(), { formatDistanceWithTimezone: t } = s();
|
|
7
7
|
return o(
|
|
8
8
|
(a) => t(new Date(a), /* @__PURE__ */ new Date(), {
|
|
9
9
|
addSuffix: !0,
|
|
10
|
-
locale:
|
|
10
|
+
locale: r[e.language]
|
|
11
11
|
}),
|
|
12
12
|
[e.language]
|
|
13
13
|
);
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
c as useFormatDistance
|
|
17
17
|
};
|
|
@@ -2,7 +2,7 @@ export declare const isNumberValue: (value: unknown) => value is number;
|
|
|
2
2
|
/**
|
|
3
3
|
* Hook to get URL route parameter value
|
|
4
4
|
*/
|
|
5
|
-
export declare const useRouteParam: (paramName: "folderId" | "sprintId" | "taskId" | "flowId" | "pageId" | "storageId") => string | null;
|
|
5
|
+
export declare const useRouteParam: (paramName: "folderId" | "sprintId" | "taskId" | "flowId" | "pageId" | "storageId" | "projectId") => string | null;
|
|
6
6
|
/**
|
|
7
7
|
* Hook to get URL query parameter value (from ?param=value)
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNumberQueryParam.d.ts","sourceRoot":"","sources":["../../src/hooks/useNumberQueryParam.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GACxB,WACI,UAAU,GACV,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,WAAW,kBAIhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,kBAG9C,CAAC"}
|
|
1
|
+
{"version":3,"file":"useNumberQueryParam.d.ts","sourceRoot":"","sources":["../../src/hooks/useNumberQueryParam.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GACxB,WACI,UAAU,GACV,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,WAAW,kBAIhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,kBAG9C,CAAC"}
|