@layers-app/shared 0.4.5 → 0.4.6
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/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +72 -79
- package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +6 -5
- package/dist/components/AppContainer/components/Main.js +4 -4
- package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
- 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 +59 -56
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +1 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +40 -28
- package/dist/components/Chat/ChatInput/index.d.ts +29 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +178 -118
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +9 -9
- package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +136 -118
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
- package/dist/components/Chat/MessageActions/index.d.ts +7 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +33 -30
- package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -10
- package/dist/components/Chat/MessageList/index.d.ts +30 -3
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +154 -66
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +7 -7
- package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
- package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageReactions/index.js +60 -28
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +6 -4
- package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
- package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageStatus/index.js +49 -34
- package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
- package/dist/components/ColorPicker/ColorPicker.module.css.js +26 -20
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +81 -68
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/ColorPicker/types.d.ts +6 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +53 -11
- package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
- package/dist/components/ColorPicker/useRecentColors.js +43 -20
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +28 -25
- package/dist/components/EntityIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +80 -32
- package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
- package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
- package/dist/components/ErrorPage/components/Error403.js +25 -21
- package/dist/components/ErrorPage/index.d.ts +5 -1
- package/dist/components/ErrorPage/index.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.js +17 -10
- package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
- package/dist/components/NavMenu/NavMenu.d.ts +7 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +54 -44
- package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
- package/dist/components/NavMenu/types.d.ts +4 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
- package/dist/config/envConfig.d.ts +2 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +41 -37
- package/dist/helpers/showNotifications.d.ts +15 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +114 -72
- package/dist/helpers/showNotifications.module.css.js +16 -4
- package/dist/hooks/useUiPref.d.ts +2 -0
- package/dist/hooks/useUiPref.d.ts.map +1 -0
- package/dist/hooks/useUiPref.js +80 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +550 -540
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/package.json +1 -1
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { StarIcon as
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import { Text as
|
|
2
|
+
import { StarIcon as s, UserIcon as u, File01Icon as y, MessageMultiple01Icon as h, Folder02Icon as I, Folder01Icon as v } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as i } from "@hugeicons/react";
|
|
4
|
+
import { Text as f, Box as g, Avatar as z, useMantineTheme as C, parseThemeColor as E } from "@mantine/core";
|
|
5
|
+
import { IconHash as m } from "@tabler/icons-react";
|
|
5
6
|
import F from "../assets/enitityIcons/flow.svg.js";
|
|
6
7
|
import O from "../assets/enitityIcons/form.svg.js";
|
|
7
|
-
import
|
|
8
|
+
import R from "../assets/enitityIcons/page.svg.js";
|
|
8
9
|
import S from "../assets/enitityIcons/sprint.svg.js";
|
|
9
10
|
import { DEFAULT_VALUES as a } from "../constants.js";
|
|
10
|
-
import {
|
|
11
|
-
|
|
11
|
+
import { UserAvatar as T } from "./UserAvatar/index.js";
|
|
12
|
+
import { IconEntity as c, ProjectIcon as t, renderIcon as w } from "./ProjectIcon/ProjectIcon.js";
|
|
13
|
+
const d = (o) => !!o && a.COLORS.includes(o), b = (o) => o.type === "FOLDER" || o.isFolder || o.type === "PROJECT" && o?.pathById?.findIndex((r) => r === o?.parentId) === 1, J = ({
|
|
12
14
|
item: o
|
|
13
15
|
}) => {
|
|
14
16
|
const r = o?.size || 16;
|
|
15
17
|
if (!o) return null;
|
|
16
|
-
if (
|
|
18
|
+
if (b(o)) {
|
|
17
19
|
if (o.title === "_system.favorites")
|
|
18
20
|
return /* @__PURE__ */ n(
|
|
19
|
-
|
|
21
|
+
i,
|
|
20
22
|
{
|
|
21
|
-
icon:
|
|
23
|
+
icon: s,
|
|
22
24
|
size: r,
|
|
23
25
|
color: "var(--mantine-color-yellow-5)",
|
|
24
26
|
fill: "var(--mantine-color-yellow-5)"
|
|
@@ -26,31 +28,31 @@ const f = (o) => !!o && a.COLORS.includes(o), T = (o) => o.type === "FOLDER" ||
|
|
|
26
28
|
);
|
|
27
29
|
if (o.title === "_system.shared")
|
|
28
30
|
return /* @__PURE__ */ n(
|
|
29
|
-
|
|
31
|
+
i,
|
|
30
32
|
{
|
|
31
33
|
icon: u,
|
|
32
34
|
size: r,
|
|
33
35
|
color: "var(--mantine-color-blue-5)"
|
|
34
36
|
}
|
|
35
37
|
);
|
|
36
|
-
const e =
|
|
37
|
-
return /* @__PURE__ */ n(
|
|
38
|
+
const e = c.parse(o.icon), l = d(e?.color) ? e.color : a.FOLDER_COLOR;
|
|
39
|
+
return /* @__PURE__ */ n(x, { color: l, size: r, opened: o.isOpen });
|
|
38
40
|
}
|
|
39
41
|
if (o.type === "ATTACHMENT")
|
|
40
|
-
return /* @__PURE__ */ n(
|
|
42
|
+
return /* @__PURE__ */ n(i, { icon: y, size: r });
|
|
41
43
|
if (o.type === "PAGE")
|
|
42
44
|
return /* @__PURE__ */ n(
|
|
43
|
-
|
|
45
|
+
t,
|
|
44
46
|
{
|
|
45
47
|
fallbackColor: o.icon ? void 0 : "var(--default-page-icon-color)",
|
|
46
48
|
name: o.title,
|
|
47
49
|
icon: o.icon,
|
|
48
|
-
fallback: /* @__PURE__ */ n(
|
|
50
|
+
fallback: /* @__PURE__ */ n(R, { width: r, height: r })
|
|
49
51
|
}
|
|
50
52
|
);
|
|
51
53
|
if (o.type === "FORM")
|
|
52
54
|
return /* @__PURE__ */ n(
|
|
53
|
-
|
|
55
|
+
t,
|
|
54
56
|
{
|
|
55
57
|
fallbackColor: "var(--default-form-icon-color)",
|
|
56
58
|
icon: o.icon,
|
|
@@ -59,7 +61,7 @@ const f = (o) => !!o && a.COLORS.includes(o), T = (o) => o.type === "FOLDER" ||
|
|
|
59
61
|
);
|
|
60
62
|
if (o.type === "FLOW")
|
|
61
63
|
return /* @__PURE__ */ n(
|
|
62
|
-
|
|
64
|
+
t,
|
|
63
65
|
{
|
|
64
66
|
icon: o.icon,
|
|
65
67
|
fallbackColor: "var(--default-flow-icon-color)",
|
|
@@ -67,12 +69,12 @@ const f = (o) => !!o && a.COLORS.includes(o), T = (o) => o.type === "FOLDER" ||
|
|
|
67
69
|
}
|
|
68
70
|
);
|
|
69
71
|
if (o.type === "SPRINT") {
|
|
70
|
-
const e =
|
|
72
|
+
const e = c.parse(o.icon), l = d(e?.color) ? e.color : a.SPRINT_COLOR;
|
|
71
73
|
return /* @__PURE__ */ n(
|
|
72
|
-
|
|
74
|
+
f,
|
|
73
75
|
{
|
|
74
76
|
fz: r,
|
|
75
|
-
c:
|
|
77
|
+
c: l,
|
|
76
78
|
style: {
|
|
77
79
|
display: "flex",
|
|
78
80
|
alignItems: "center",
|
|
@@ -84,8 +86,54 @@ const f = (o) => !!o && a.COLORS.includes(o), T = (o) => o.type === "FOLDER" ||
|
|
|
84
86
|
}
|
|
85
87
|
);
|
|
86
88
|
}
|
|
89
|
+
if (o.type === "FAVORITES")
|
|
90
|
+
return /* @__PURE__ */ n(
|
|
91
|
+
i,
|
|
92
|
+
{
|
|
93
|
+
icon: s,
|
|
94
|
+
size: r,
|
|
95
|
+
color: "var(--mantine-color-yellow-5)"
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
if (o.type === "DIRECT")
|
|
99
|
+
return /* @__PURE__ */ n(
|
|
100
|
+
i,
|
|
101
|
+
{
|
|
102
|
+
icon: h,
|
|
103
|
+
size: r,
|
|
104
|
+
color: "var(--mantine-color-dimmed)"
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
if (o.type === "CHANNEL")
|
|
108
|
+
return /* @__PURE__ */ n(
|
|
109
|
+
t,
|
|
110
|
+
{
|
|
111
|
+
icon: o.icon,
|
|
112
|
+
fallback: /* @__PURE__ */ n(
|
|
113
|
+
m,
|
|
114
|
+
{
|
|
115
|
+
size: r,
|
|
116
|
+
color: "var(--mantine-color-dimmed)"
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
size: r
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
if (o.type === "USER")
|
|
123
|
+
return /* @__PURE__ */ n(
|
|
124
|
+
T,
|
|
125
|
+
{
|
|
126
|
+
user: {
|
|
127
|
+
id: o.id || "",
|
|
128
|
+
name: o.title || "",
|
|
129
|
+
avatar: o.avatarUrl
|
|
130
|
+
},
|
|
131
|
+
size: r,
|
|
132
|
+
radius: "xl"
|
|
133
|
+
}
|
|
134
|
+
);
|
|
87
135
|
if (o.type === "PROJECT") {
|
|
88
|
-
const e =
|
|
136
|
+
const e = c.parse(o.icon);
|
|
89
137
|
return e?.emoji ? /* @__PURE__ */ n(
|
|
90
138
|
g,
|
|
91
139
|
{
|
|
@@ -99,7 +147,7 @@ const f = (o) => !!o && a.COLORS.includes(o), T = (o) => o.type === "FOLDER" ||
|
|
|
99
147
|
height: r
|
|
100
148
|
},
|
|
101
149
|
children: /* @__PURE__ */ n(
|
|
102
|
-
|
|
150
|
+
t,
|
|
103
151
|
{
|
|
104
152
|
p: 0,
|
|
105
153
|
icon: o.icon,
|
|
@@ -109,7 +157,7 @@ const f = (o) => !!o && a.COLORS.includes(o), T = (o) => o.type === "FOLDER" ||
|
|
|
109
157
|
)
|
|
110
158
|
}
|
|
111
159
|
) : /* @__PURE__ */ n(
|
|
112
|
-
|
|
160
|
+
z,
|
|
113
161
|
{
|
|
114
162
|
variant: "filled",
|
|
115
163
|
radius: 4,
|
|
@@ -117,7 +165,7 @@ const f = (o) => !!o && a.COLORS.includes(o), T = (o) => o.type === "FOLDER" ||
|
|
|
117
165
|
size: o.size ?? 16,
|
|
118
166
|
color: e?.color || "initials",
|
|
119
167
|
children: /* @__PURE__ */ n(
|
|
120
|
-
|
|
168
|
+
f,
|
|
121
169
|
{
|
|
122
170
|
fz: o.fz ?? 12,
|
|
123
171
|
fw: 500,
|
|
@@ -129,31 +177,31 @@ const f = (o) => !!o && a.COLORS.includes(o), T = (o) => o.type === "FOLDER" ||
|
|
|
129
177
|
justifyContent: "center",
|
|
130
178
|
lineHeight: "normal"
|
|
131
179
|
},
|
|
132
|
-
children:
|
|
180
|
+
children: w(e, void 0, !0, o.title)
|
|
133
181
|
}
|
|
134
182
|
)
|
|
135
183
|
}
|
|
136
184
|
);
|
|
137
185
|
}
|
|
138
186
|
return null;
|
|
139
|
-
},
|
|
187
|
+
}, x = ({
|
|
140
188
|
color: o,
|
|
141
189
|
size: r,
|
|
142
190
|
opened: e
|
|
143
191
|
}) => {
|
|
144
|
-
const
|
|
192
|
+
const l = C(), p = E({
|
|
145
193
|
color: o || "gray",
|
|
146
|
-
theme:
|
|
194
|
+
theme: l
|
|
147
195
|
});
|
|
148
196
|
return /* @__PURE__ */ n(
|
|
149
|
-
|
|
197
|
+
i,
|
|
150
198
|
{
|
|
151
|
-
color:
|
|
152
|
-
icon: e ?
|
|
199
|
+
color: p.value || void 0,
|
|
200
|
+
icon: e ? I : v,
|
|
153
201
|
size: r
|
|
154
202
|
}
|
|
155
203
|
);
|
|
156
204
|
};
|
|
157
205
|
export {
|
|
158
|
-
|
|
206
|
+
J as EntityIcon
|
|
159
207
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export declare const Error403: ({ closeAction }: {
|
|
1
|
+
export declare const Error403: ({ closeAction, title, description, }: {
|
|
2
2
|
closeAction?: () => void;
|
|
3
|
+
/** Optional override — lets callers pick an entity-specific phrasing
|
|
4
|
+
* (e.g. «задаче» / «спринту») while keeping all other behavior. */
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
3
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
8
|
//# sourceMappingURL=Error403.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error403.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorPage/components/Error403.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,QAAQ,GAAI,
|
|
1
|
+
{"version":3,"file":"Error403.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorPage/components/Error403.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,QAAQ,GAAI,sCAItB;IACD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;wEACoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,4CA2CA,CAAC"}
|
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as
|
|
2
|
-
import { Helmet as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { useNavigate as
|
|
5
|
-
import { Stack as
|
|
6
|
-
import { IconHome2 as
|
|
7
|
-
import { useMenu as
|
|
8
|
-
import { NoData as
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as i, Fragment as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Helmet as c } from "react-helmet";
|
|
3
|
+
import { useTranslation as a } from "react-i18next";
|
|
4
|
+
import { useNavigate as p } from "react-router-dom";
|
|
5
|
+
import { Stack as f, CloseButton as d } from "@mantine/core";
|
|
6
|
+
import { IconHome2 as u } from "@tabler/icons-react";
|
|
7
|
+
import { useMenu as h } from "../../../hooks/useMenu.js";
|
|
8
|
+
import { NoData as g } from "../../NoData/NoData.js";
|
|
9
|
+
const H = ({
|
|
10
|
+
closeAction: e,
|
|
11
|
+
title: r,
|
|
12
|
+
description: n
|
|
13
|
+
}) => {
|
|
14
|
+
const { t: o } = a(), s = p(), { isMobile: m } = h();
|
|
15
|
+
return /* @__PURE__ */ i(l, { children: [
|
|
16
|
+
/* @__PURE__ */ t(c, { children: /* @__PURE__ */ t("title", { children: "403" }) }),
|
|
17
|
+
/* @__PURE__ */ i(f, { p: 80, gap: "sm", justify: "center", flex: 1, align: "center", children: [
|
|
14
18
|
/* @__PURE__ */ t(
|
|
15
|
-
|
|
19
|
+
g,
|
|
16
20
|
{
|
|
17
|
-
title: o("403.title"),
|
|
18
|
-
description: o("403.description"),
|
|
21
|
+
title: r ?? o("403.title"),
|
|
22
|
+
description: n ?? o("403.description"),
|
|
19
23
|
illustration: "noAccess",
|
|
20
24
|
flex: "0,0,0",
|
|
21
25
|
size: 210,
|
|
22
26
|
h: "60dvh",
|
|
23
|
-
w:
|
|
27
|
+
w: m ? 500 : "70%",
|
|
24
28
|
titleProps: { maw: 600, fz: 32 },
|
|
25
29
|
descriptionProps: { maw: 500, fz: 14 },
|
|
26
30
|
buttons: [
|
|
27
31
|
{
|
|
28
32
|
size: "sm",
|
|
29
33
|
variant: "filled",
|
|
30
|
-
leftSection: /* @__PURE__ */ t(
|
|
31
|
-
onClick: () =>
|
|
34
|
+
leftSection: /* @__PURE__ */ t(u, { size: 18 }),
|
|
35
|
+
onClick: () => s("/"),
|
|
32
36
|
children: o("404.goHome")
|
|
33
37
|
}
|
|
34
38
|
]
|
|
35
39
|
}
|
|
36
40
|
),
|
|
37
41
|
e && /* @__PURE__ */ t(
|
|
38
|
-
|
|
42
|
+
d,
|
|
39
43
|
{
|
|
40
44
|
pos: "absolute",
|
|
41
45
|
top: 16,
|
|
@@ -47,5 +51,5 @@ const w = ({ closeAction: e }) => {
|
|
|
47
51
|
] });
|
|
48
52
|
};
|
|
49
53
|
export {
|
|
50
|
-
|
|
54
|
+
H as Error403
|
|
51
55
|
};
|
|
@@ -2,8 +2,12 @@ import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
error?: FetchBaseQueryError | SerializedError | undefined;
|
|
4
4
|
closeAction?: () => void;
|
|
5
|
+
/** Optional override for the title/description of the 403 placeholder so
|
|
6
|
+
* callers can phrase it for their specific entity (task/sprint/...). */
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
5
9
|
};
|
|
6
|
-
export declare const ErrorPage: ({ error, closeAction }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ErrorPage: ({ error, closeAction, title, description }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
interface SerializedError {
|
|
8
12
|
name?: string;
|
|
9
13
|
message?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAM7D,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,mBAAmB,GAAG,eAAe,GAAG,SAAS,CAAC;IAC1D,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAM7D,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,mBAAmB,GAAG,eAAe,GAAG,SAAS,CAAC;IAC1D,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;6EACyE;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,4CAA4C,KAAK,4CAsB1E,CAAC;AAEF,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { Error403 as
|
|
3
|
-
import { ErrorUndefined as
|
|
2
|
+
import { Error403 as a } from "./components/Error403.js";
|
|
3
|
+
import { ErrorUndefined as o } from "./components/ErrorUndefined.js";
|
|
4
4
|
import { Error500 as e } from "./components/Error500.js";
|
|
5
|
-
import { Error406 as
|
|
6
|
-
import { Error404 as
|
|
7
|
-
const
|
|
5
|
+
import { Error406 as p } from "./components/Error406.js";
|
|
6
|
+
import { Error404 as s } from "./components/Error404.js";
|
|
7
|
+
const h = ({ error: m, closeAction: r, title: f, description: u }) => {
|
|
8
8
|
if (m && "status" in m)
|
|
9
9
|
switch (m.status) {
|
|
10
10
|
case 404:
|
|
11
|
-
return /* @__PURE__ */ t(
|
|
11
|
+
return /* @__PURE__ */ t(s, { size: 280, closeAction: r });
|
|
12
12
|
case 406:
|
|
13
|
-
return /* @__PURE__ */ t(
|
|
13
|
+
return /* @__PURE__ */ t(p, { closeAction: r });
|
|
14
14
|
case 500:
|
|
15
15
|
return /* @__PURE__ */ t(e, { closeAction: r });
|
|
16
16
|
case 403:
|
|
17
|
-
return /* @__PURE__ */ t(
|
|
17
|
+
return /* @__PURE__ */ t(
|
|
18
|
+
a,
|
|
19
|
+
{
|
|
20
|
+
closeAction: r,
|
|
21
|
+
title: f,
|
|
22
|
+
description: u
|
|
23
|
+
}
|
|
24
|
+
);
|
|
18
25
|
default:
|
|
19
|
-
return /* @__PURE__ */ t(
|
|
26
|
+
return /* @__PURE__ */ t(o, { closeAction: r });
|
|
20
27
|
}
|
|
21
28
|
return /* @__PURE__ */ t(e, { closeAction: r });
|
|
22
29
|
};
|
|
23
30
|
export {
|
|
24
|
-
|
|
31
|
+
h as ErrorPage
|
|
25
32
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Download01Icon as
|
|
3
|
-
import { HugeiconsIcon as
|
|
1
|
+
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Download01Icon as g, Tick02Icon as A, Link02Icon as k, Delete03Icon as x } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as C } from "@hugeicons/react";
|
|
4
4
|
import { Tooltip as D, ActionIcon as w } from "@mantine/core";
|
|
5
5
|
import m from "../MusicPlayerBar.module.css.js";
|
|
6
6
|
function l({
|
|
@@ -9,7 +9,7 @@ function l({
|
|
|
9
9
|
tooltipDisabled: i,
|
|
10
10
|
icon: e,
|
|
11
11
|
iconColor: t,
|
|
12
|
-
onClick:
|
|
12
|
+
onClick: a
|
|
13
13
|
}) {
|
|
14
14
|
return /* @__PURE__ */ o(D, { label: n, disabled: i, withArrow: !0, children: /* @__PURE__ */ o("div", { className: m.hoverActionItem, children: /* @__PURE__ */ o(
|
|
15
15
|
w,
|
|
@@ -17,9 +17,9 @@ function l({
|
|
|
17
17
|
variant: "transparent",
|
|
18
18
|
size: 28,
|
|
19
19
|
"aria-label": r,
|
|
20
|
-
onClick:
|
|
20
|
+
onClick: a,
|
|
21
21
|
className: m.actionIconBtn,
|
|
22
|
-
children: /* @__PURE__ */ o(
|
|
22
|
+
children: /* @__PURE__ */ o(C, { icon: e, size: 16, color: t })
|
|
23
23
|
}
|
|
24
24
|
) }) });
|
|
25
25
|
}
|
|
@@ -29,31 +29,31 @@ function H({
|
|
|
29
29
|
showDownload: i,
|
|
30
30
|
showCopyLink: e,
|
|
31
31
|
showDelete: t,
|
|
32
|
-
hasDelete:
|
|
33
|
-
tooltipsDisabled:
|
|
32
|
+
hasDelete: a,
|
|
33
|
+
tooltipsDisabled: c,
|
|
34
34
|
downloadLabel: s,
|
|
35
35
|
copyLinkLabel: v,
|
|
36
|
-
deleteLabel:
|
|
37
|
-
onDownload:
|
|
38
|
-
onCopyLink:
|
|
39
|
-
onDelete:
|
|
40
|
-
extraActions:
|
|
36
|
+
deleteLabel: d,
|
|
37
|
+
onDownload: p,
|
|
38
|
+
onCopyLink: b,
|
|
39
|
+
onDelete: h,
|
|
40
|
+
extraActions: u
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ f(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
45
|
className: m.hoverActions,
|
|
46
|
-
onPointerDown: (
|
|
46
|
+
onPointerDown: (I) => I.stopPropagation(),
|
|
47
47
|
children: [
|
|
48
48
|
i && /* @__PURE__ */ o(
|
|
49
49
|
l,
|
|
50
50
|
{
|
|
51
51
|
label: s,
|
|
52
52
|
ariaLabel: s,
|
|
53
|
-
tooltipDisabled:
|
|
54
|
-
icon:
|
|
53
|
+
tooltipDisabled: c,
|
|
54
|
+
icon: g,
|
|
55
55
|
iconColor: "var(--mantine-color-gray-text)",
|
|
56
|
-
onClick:
|
|
56
|
+
onClick: p
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
59
|
e && /* @__PURE__ */ o(
|
|
@@ -61,24 +61,24 @@ function H({
|
|
|
61
61
|
{
|
|
62
62
|
label: v,
|
|
63
63
|
ariaLabel: v,
|
|
64
|
-
tooltipDisabled:
|
|
65
|
-
icon: r ?
|
|
64
|
+
tooltipDisabled: c,
|
|
65
|
+
icon: r ? A : k,
|
|
66
66
|
iconColor: r ? "var(--mantine-color-green-6)" : "var(--mantine-color-gray-text)",
|
|
67
|
-
onClick:
|
|
67
|
+
onClick: b
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
t &&
|
|
70
|
+
t && a && !n && /* @__PURE__ */ o(
|
|
71
71
|
l,
|
|
72
72
|
{
|
|
73
|
-
label:
|
|
73
|
+
label: d,
|
|
74
74
|
ariaLabel: "remove-music-block",
|
|
75
|
-
tooltipDisabled:
|
|
76
|
-
icon:
|
|
77
|
-
iconColor: "var(--mantine-color-red-
|
|
78
|
-
onClick:
|
|
75
|
+
tooltipDisabled: c,
|
|
76
|
+
icon: x,
|
|
77
|
+
iconColor: "light-dark(var(--mantine-color-red-6), var(--mantine-color-red-4))",
|
|
78
|
+
onClick: h
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
|
-
|
|
81
|
+
u
|
|
82
82
|
]
|
|
83
83
|
}
|
|
84
84
|
);
|
|
@@ -12,10 +12,16 @@ export type NavMenuProps = {
|
|
|
12
12
|
flatOrderChange?: boolean;
|
|
13
13
|
canUserDragDrop?: boolean;
|
|
14
14
|
canDragDropItem?: (item: ExpandNavMenuItemDef) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Opt-in FLIP reorder animation (framer-motion `layout`) for the non-drag list — used by the DM
|
|
17
|
+
* sidebar so a conversation slides to the top when a message arrives. Off by default so other
|
|
18
|
+
* NavMenu trees (pages, projects) are unaffected and pay no animation cost.
|
|
19
|
+
*/
|
|
20
|
+
animateReorder?: boolean;
|
|
15
21
|
} & Partial<NavMenuStore['props']> & {
|
|
16
22
|
store?: ReturnType<typeof createNavMenuStore>;
|
|
17
23
|
};
|
|
18
|
-
export declare const NavMenu: (({ items, loading, onLoadMore, noItemsPlaceholder, onOrderChange, onEdit, onToggle, onClick, store: _store, totalCount, flatOrderChange, canUserDragDrop, canDragDropItem, }: NavMenuProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
24
|
+
export declare const NavMenu: (({ items, loading, onLoadMore, noItemsPlaceholder, onOrderChange, onEdit, onToggle, onClick, store: _store, totalCount, flatOrderChange, canUserDragDrop, canDragDropItem, animateReorder, }: NavMenuProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
19
25
|
Item: import("react").MemoExoticComponent<({ item, ignoreDepth, disableToggleOnClick }: {
|
|
20
26
|
item: ExpandNavMenuItemDef;
|
|
21
27
|
ignoreDepth?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavMenu.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/NavMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EAIV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,QAAQ,EAAyB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"NavMenu.d.ts","sourceRoot":"","sources":["../../../src/components/NavMenu/NavMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EAIV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,QAAQ,EAAyB,MAAM,eAAe,CAAC;AAQhE,OAAO,EAAmB,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAIjB,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC;IAC1D;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG;IACjC,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;CAC/C,CAAC;AAiMJ,eAAO,MAAM,OAAO,iMAhLjB,YAAY;;;;;;;;;;0CAmK8B,iBAAiB,CAAC,QAAQ,CAAC;CAkBtE,CAAC"}
|