@layers-app/shared 0.0.43 → 0.0.45
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/KanbanLayout-C6wJBGZ2.js +287 -0
- package/dist/components/AppContainer/AppContainer.d.ts +2 -3
- package/dist/components/AppContainer/Header.d.ts +8 -0
- package/dist/components/AppContainer/Main.d.ts +2 -0
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +9 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +4 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts +4 -0
- package/dist/components/AppContainer/components/MobileNavbar.d.ts +2 -2
- package/dist/components/AppContainer/components/RightSidebar.d.ts +2 -0
- package/dist/components/AppContainer/components/SidebarToggleButton.d.ts +3 -0
- package/dist/components/AppContainer/components/SlideAnimation.d.ts +6 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +3 -0
- package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +2 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +1 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/WhatsNew.d.ts +7 -0
- package/dist/components/AppContainer/components/menus/MoreMenu.d.ts +1 -0
- package/dist/components/AppContainer/components/{MenuUserDropdown.d.ts → menus/UserMenu/MenuUserDropdown.d.ts} +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +30 -12
- package/dist/components/AppContainer/types.d.ts +15 -11
- package/dist/components/AppShell/AppShell.d.ts +12 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +22 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/components/ErrorSection.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +4 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +7 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +7 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/constants.d.ts +19 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useEmblaCarousel.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useZoomReset.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/types.d.ts +0 -8
- package/dist/components/CommentComposer/index.d.ts +1 -1
- package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +1 -1
- package/dist/components/EntityIcon.d.ts +7 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.d.ts +2 -1
- package/dist/components/FormViewer/helpers/conditions.d.ts +1 -1
- package/dist/components/FormViewer/helpers/helpers.d.ts +1 -1
- package/dist/components/FormViewer/helpers/steps.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +1 -1
- package/dist/components/FormViewer/store/formStore.d.ts +30 -30
- package/dist/components/FormViewer/store/formStoreApi.d.ts +3 -3
- package/dist/components/FormViewer/store/selectors.d.ts +342 -342
- package/dist/components/FormViewer/types/schemes.d.ts +22 -22
- package/dist/components/Loaders/BaseLoader.d.ts +3 -0
- package/dist/components/NavMenu/NavMenu.d.ts +21 -0
- package/dist/components/NavMenu/components/DnDItem.d.ts +8 -0
- package/dist/components/NavMenu/components/DnDProvider.d.ts +8 -0
- package/dist/components/NavMenu/components/DraggableOverlay.d.ts +1 -0
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +2 -0
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +7 -0
- package/dist/components/NavMenu/components/NavMenuLabel.d.ts +3 -0
- package/dist/components/NavMenu/index.d.ts +5 -0
- package/dist/components/NavMenu/store.d.ts +37 -0
- package/dist/components/NavMenu/types.d.ts +29 -0
- package/dist/components/NavbarResizer/NavbarResizer.d.ts +5 -2
- package/dist/components/Notification/Notification.d.ts +1 -0
- package/dist/components/Notification/NotificationCard.d.ts +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +3 -3
- package/dist/components/SubmitModal/index.d.ts +2 -2
- package/dist/components/UserAvatar/index.d.ts +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +6 -10
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts +2 -14
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +9 -8
- package/dist/components/modals/RemoveConfirmModal.d.ts +2 -0
- package/dist/constants.d.ts +0 -1
- package/dist/emoji-categorized-DAOdcF53.js +4 -0
- package/dist/helpers/download.d.ts +2 -2
- package/dist/hooks/useDateUtils.d.ts +1 -0
- package/dist/hooks/useMenu.d.ts +0 -3
- package/dist/icons.min-Chyr-bjL.js +4 -0
- package/dist/index-W83Evo8i.js +78459 -0
- package/dist/index.d.ts +11 -11
- package/dist/index.js +309 -261
- package/dist/index.umd.cjs +429 -60
- package/dist/lang/index.d.ts +4 -0
- package/dist/lang/locales/ui_en.json.d.ts +80 -0
- package/dist/lang/locales/ui_es.json.d.ts +77 -0
- package/dist/lang/locales/ui_ru.json.d.ts +81 -0
- package/dist/types/files.d.ts +18 -0
- package/package.json +17 -9
- package/dist/KanbanLayout-_7CnQOIn.js +0 -297
- package/dist/components/AppContainer/components/AllAppsMenu.d.ts +0 -5
- package/dist/components/AppContainer/components/DesktopNavbar.d.ts +0 -7
- package/dist/components/AppContainer/components/NavbarFooter.d.ts +0 -3
- package/dist/components/AppContainer/components/NavbarHeader.d.ts +0 -3
- package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +0 -15
- package/dist/components/AttachmentsGalleryModal/index.d.ts +0 -2
- package/dist/components/InfoMenu/index.d.ts +0 -1
- package/dist/components/InviteModal/InviteModal.d.ts +0 -2
- package/dist/components/InviteModal/slice.d.ts +0 -13
- package/dist/components/Notification/index.d.ts +0 -6
- package/dist/components/RichText/extensions/bold.d.ts +0 -3
- package/dist/components/RichText/extensions/check-list.d.ts +0 -42
- package/dist/components/RichText/extensions/color-picker.d.ts +0 -28
- package/dist/components/RichText/extensions/font-size.d.ts +0 -23
- package/dist/components/RichText/extensions/italic.d.ts +0 -3
- package/dist/components/RichText/extensions/underline.d.ts +0 -3
- package/dist/components/RichText/index.d.ts +0 -41
- package/dist/components/modals/openRemoveConfirmModal.d.ts +0 -4
- package/dist/emoji-categorized-CRsMUQyD.js +0 -4
- package/dist/icons.min-wo13YUY4.js +0 -4
- package/dist/index-BMtIEojG.js +0 -115208
- package/dist/store/aboutModal.d.ts +0 -7
- package/dist/store/trashModal.d.ts +0 -7
- /package/dist/components/{AttachmentsGalleryModal → ImageModal}/ImageModal.d.ts +0 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as A } from "react-i18next";
|
|
3
|
+
import { Flex as r, Text as c, ActionIcon as a, Divider as p, Box as m, Avatar as u, Skeleton as s } from "@mantine/core";
|
|
4
|
+
import "react";
|
|
5
|
+
import { IconCheck as h, IconBug as S, IconSquareRotated as F, IconPlus as f, IconCalendarEvent as g, IconEqual as w } from "@tabler/icons-react";
|
|
6
|
+
import "react-router-dom";
|
|
7
|
+
import { randomId as y } from "@mantine/hooks";
|
|
8
|
+
import "@tanstack/react-query";
|
|
9
|
+
import "query-string";
|
|
10
|
+
import "@mantine/form";
|
|
11
|
+
import "@mantine/dropzone";
|
|
12
|
+
import "@mantine/notifications";
|
|
13
|
+
import "lodash-es";
|
|
14
|
+
import { u as I, S as z } from "./index-W83Evo8i.js";
|
|
15
|
+
import "react-dom";
|
|
16
|
+
import "draggable-ui";
|
|
17
|
+
import "@mantine/modals";
|
|
18
|
+
import "i18next";
|
|
19
|
+
import "framer-motion";
|
|
20
|
+
import "@mantine/dates";
|
|
21
|
+
const _ = "_column_10zam_1", k = "_card_10zam_6", o = {
|
|
22
|
+
column: _,
|
|
23
|
+
card: k
|
|
24
|
+
}, Z = () => {
|
|
25
|
+
const { tasksList: b, statusesList: d } = I(), D = /* @__PURE__ */ new Date(), B = (i) => {
|
|
26
|
+
const n = new Date(D);
|
|
27
|
+
return n.setDate(n.getDate() + (3 + i)), n.toDateString();
|
|
28
|
+
}, { t: l } = A("onboarding"), v = [
|
|
29
|
+
{
|
|
30
|
+
id: y(),
|
|
31
|
+
color: "blue",
|
|
32
|
+
icon: h,
|
|
33
|
+
name: l("selectCategory.options.task"),
|
|
34
|
+
type: "task",
|
|
35
|
+
order: 1
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: y(),
|
|
39
|
+
color: "orange",
|
|
40
|
+
icon: S,
|
|
41
|
+
name: l("selectCategory.options.bug"),
|
|
42
|
+
type: "bug",
|
|
43
|
+
order: 2
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: y(),
|
|
47
|
+
color: "grape",
|
|
48
|
+
icon: F,
|
|
49
|
+
name: l("selectCategory.options.milestone"),
|
|
50
|
+
type: "milestone",
|
|
51
|
+
order: 3
|
|
52
|
+
}
|
|
53
|
+
], E = (i) => {
|
|
54
|
+
const n = v.find((j) => j.type === i);
|
|
55
|
+
return n ? /* @__PURE__ */ t(a, { size: 16, variant: "filled", color: n.color, children: /* @__PURE__ */ t(n.icon, {}) }) : null;
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ e(r, { gap: 13, align: "start", w: "100%", children: [
|
|
58
|
+
/* @__PURE__ */ e(
|
|
59
|
+
r,
|
|
60
|
+
{
|
|
61
|
+
gap: 11,
|
|
62
|
+
p: 7,
|
|
63
|
+
direction: "column",
|
|
64
|
+
w: 340,
|
|
65
|
+
className: o.column,
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ e(r, { w: "100%", justify: "space-between", children: [
|
|
68
|
+
/* @__PURE__ */ e(r, { gap: 14, align: "center", children: [
|
|
69
|
+
/* @__PURE__ */ t(z, { color: "#228BE6", title: d[0] }),
|
|
70
|
+
/* @__PURE__ */ e(c, { c: "#868E96", fz: 14, children: [
|
|
71
|
+
"(",
|
|
72
|
+
l("defineStatuses.tasks"),
|
|
73
|
+
": ",
|
|
74
|
+
b.length,
|
|
75
|
+
")"
|
|
76
|
+
] })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ t(a, { variant: "subtle", size: 18, children: /* @__PURE__ */ t(f, {}) })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ t(p, { w: "100%" }),
|
|
81
|
+
b.map((i, n) => /* @__PURE__ */ e(
|
|
82
|
+
r,
|
|
83
|
+
{
|
|
84
|
+
gap: 0,
|
|
85
|
+
direction: "column",
|
|
86
|
+
align: "start",
|
|
87
|
+
justify: "space-between",
|
|
88
|
+
w: "100%",
|
|
89
|
+
h: 105,
|
|
90
|
+
className: o.card,
|
|
91
|
+
px: 14,
|
|
92
|
+
py: 9,
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ e(m, { children: [
|
|
95
|
+
/* @__PURE__ */ t(c, { fz: 18, fw: 400, children: i.title }),
|
|
96
|
+
/* @__PURE__ */ e(r, { align: "center", children: [
|
|
97
|
+
/* @__PURE__ */ t(g, { color: "#495057", size: 13 }),
|
|
98
|
+
/* @__PURE__ */ t(c, { fz: 16, c: "#495057", children: B(n) })
|
|
99
|
+
] })
|
|
100
|
+
] }),
|
|
101
|
+
/* @__PURE__ */ e(r, { justify: "space-between", w: "100%", children: [
|
|
102
|
+
/* @__PURE__ */ e(r, { children: [
|
|
103
|
+
E(i.type),
|
|
104
|
+
/* @__PURE__ */ e(c, { fz: 13, children: [
|
|
105
|
+
"DEMO-",
|
|
106
|
+
n + 1
|
|
107
|
+
] })
|
|
108
|
+
] }),
|
|
109
|
+
/* @__PURE__ */ e(r, { children: [
|
|
110
|
+
/* @__PURE__ */ t(w, { color: "#F59F00", size: 16 }),
|
|
111
|
+
/* @__PURE__ */ t(
|
|
112
|
+
u,
|
|
113
|
+
{
|
|
114
|
+
variant: "filled",
|
|
115
|
+
color: "#228BE6",
|
|
116
|
+
radius: "xl",
|
|
117
|
+
size: 24
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
] })
|
|
121
|
+
] })
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
i.id
|
|
125
|
+
))
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ e(
|
|
130
|
+
r,
|
|
131
|
+
{
|
|
132
|
+
gap: 11,
|
|
133
|
+
p: 7,
|
|
134
|
+
direction: "column",
|
|
135
|
+
w: 340,
|
|
136
|
+
className: o.column,
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ e(r, { w: "100%", justify: "space-between", children: [
|
|
139
|
+
/* @__PURE__ */ e(r, { gap: 14, align: "center", children: [
|
|
140
|
+
/* @__PURE__ */ t(z, { color: "#12B886", title: d[1] }),
|
|
141
|
+
/* @__PURE__ */ e(c, { c: "#868E96", fz: 14, children: [
|
|
142
|
+
"(",
|
|
143
|
+
l("defineStatuses.tasks"),
|
|
144
|
+
": 2)"
|
|
145
|
+
] })
|
|
146
|
+
] }),
|
|
147
|
+
/* @__PURE__ */ t(a, { variant: "subtle", size: 18, children: /* @__PURE__ */ t(f, {}) })
|
|
148
|
+
] }),
|
|
149
|
+
/* @__PURE__ */ t(p, { w: "100%" }),
|
|
150
|
+
Array(2).fill(0).map((i, n) => /* @__PURE__ */ e(
|
|
151
|
+
r,
|
|
152
|
+
{
|
|
153
|
+
gap: 0,
|
|
154
|
+
direction: "column",
|
|
155
|
+
align: "start",
|
|
156
|
+
justify: "space-between",
|
|
157
|
+
w: "100%",
|
|
158
|
+
h: 105,
|
|
159
|
+
className: o.card,
|
|
160
|
+
px: 14,
|
|
161
|
+
py: 9,
|
|
162
|
+
children: [
|
|
163
|
+
/* @__PURE__ */ e(m, { children: [
|
|
164
|
+
/* @__PURE__ */ t(
|
|
165
|
+
s,
|
|
166
|
+
{
|
|
167
|
+
animate: !1,
|
|
168
|
+
mb: 15,
|
|
169
|
+
w: n === 0 ? 128 : 172,
|
|
170
|
+
h: 18
|
|
171
|
+
}
|
|
172
|
+
),
|
|
173
|
+
/* @__PURE__ */ e(r, { align: "center", children: [
|
|
174
|
+
/* @__PURE__ */ t(g, { color: "#495057", size: 13 }),
|
|
175
|
+
/* @__PURE__ */ t(s, { animate: !1, w: n === 0 ? 52 : 63, h: 12 })
|
|
176
|
+
] })
|
|
177
|
+
] }),
|
|
178
|
+
/* @__PURE__ */ e(r, { justify: "space-between", w: "100%", children: [
|
|
179
|
+
/* @__PURE__ */ e(r, { children: [
|
|
180
|
+
/* @__PURE__ */ t(a, { size: 16, variant: "filled", color: "#ADB5BD", children: /* @__PURE__ */ t(h, {}) }),
|
|
181
|
+
/* @__PURE__ */ e(c, { c: "#ADB5BD", fz: 13, children: [
|
|
182
|
+
"DEMO-",
|
|
183
|
+
n + 4
|
|
184
|
+
] })
|
|
185
|
+
] }),
|
|
186
|
+
/* @__PURE__ */ e(r, { children: [
|
|
187
|
+
/* @__PURE__ */ t(w, { color: "#F59F00", size: 16 }),
|
|
188
|
+
/* @__PURE__ */ t(
|
|
189
|
+
u,
|
|
190
|
+
{
|
|
191
|
+
variant: "filled",
|
|
192
|
+
color: "#228BE6",
|
|
193
|
+
radius: "xl",
|
|
194
|
+
size: 24
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
] })
|
|
198
|
+
] })
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
n
|
|
202
|
+
))
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
/* @__PURE__ */ e(
|
|
207
|
+
r,
|
|
208
|
+
{
|
|
209
|
+
gap: 11,
|
|
210
|
+
p: 7,
|
|
211
|
+
direction: "column",
|
|
212
|
+
w: 340,
|
|
213
|
+
className: o.column,
|
|
214
|
+
children: [
|
|
215
|
+
/* @__PURE__ */ e(r, { w: "100%", justify: "space-between", children: [
|
|
216
|
+
/* @__PURE__ */ e(r, { gap: 14, align: "center", children: [
|
|
217
|
+
/* @__PURE__ */ t(z, { color: "#FA5252", title: d[2] }),
|
|
218
|
+
/* @__PURE__ */ e(c, { c: "#868E96", fz: 14, children: [
|
|
219
|
+
"(",
|
|
220
|
+
l("defineStatuses.tasks"),
|
|
221
|
+
": 2)"
|
|
222
|
+
] })
|
|
223
|
+
] }),
|
|
224
|
+
/* @__PURE__ */ t(a, { variant: "subtle", size: 18, children: /* @__PURE__ */ t(f, {}) })
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ t(p, { w: "100%" }),
|
|
227
|
+
Array(2).fill(0).map((i, n) => /* @__PURE__ */ e(
|
|
228
|
+
r,
|
|
229
|
+
{
|
|
230
|
+
gap: 0,
|
|
231
|
+
direction: "column",
|
|
232
|
+
align: "start",
|
|
233
|
+
justify: "space-between",
|
|
234
|
+
w: "100%",
|
|
235
|
+
h: 105,
|
|
236
|
+
className: o.card,
|
|
237
|
+
px: 14,
|
|
238
|
+
py: 9,
|
|
239
|
+
children: [
|
|
240
|
+
/* @__PURE__ */ e(m, { children: [
|
|
241
|
+
/* @__PURE__ */ t(
|
|
242
|
+
s,
|
|
243
|
+
{
|
|
244
|
+
animate: !1,
|
|
245
|
+
mb: 15,
|
|
246
|
+
w: n === 0 ? 266 : 150,
|
|
247
|
+
h: 18
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
/* @__PURE__ */ e(r, { align: "center", children: [
|
|
251
|
+
/* @__PURE__ */ t(g, { color: "#495057", size: 13 }),
|
|
252
|
+
/* @__PURE__ */ t(s, { animate: !1, w: n === 0 ? 72 : 46, h: 12 })
|
|
253
|
+
] })
|
|
254
|
+
] }),
|
|
255
|
+
/* @__PURE__ */ e(r, { justify: "space-between", w: "100%", children: [
|
|
256
|
+
/* @__PURE__ */ e(r, { children: [
|
|
257
|
+
/* @__PURE__ */ t(a, { size: 16, variant: "filled", color: "#ADB5BD", children: /* @__PURE__ */ t(h, {}) }),
|
|
258
|
+
/* @__PURE__ */ e(c, { c: "#ADB5BD", fz: 13, children: [
|
|
259
|
+
"DEMO-",
|
|
260
|
+
n + 6
|
|
261
|
+
] })
|
|
262
|
+
] }),
|
|
263
|
+
/* @__PURE__ */ e(r, { children: [
|
|
264
|
+
/* @__PURE__ */ t(w, { color: "#F59F00", size: 16 }),
|
|
265
|
+
/* @__PURE__ */ t(
|
|
266
|
+
u,
|
|
267
|
+
{
|
|
268
|
+
variant: "filled",
|
|
269
|
+
color: "#228BE6",
|
|
270
|
+
radius: "xl",
|
|
271
|
+
size: 24
|
|
272
|
+
}
|
|
273
|
+
)
|
|
274
|
+
] })
|
|
275
|
+
] })
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
n
|
|
279
|
+
))
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
)
|
|
283
|
+
] });
|
|
284
|
+
};
|
|
285
|
+
export {
|
|
286
|
+
Z as default
|
|
287
|
+
};
|
|
@@ -5,8 +5,7 @@ declare global {
|
|
|
5
5
|
preSignMode?: boolean;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
export declare const AppContainer: (({ header, content,
|
|
8
|
+
export declare const AppContainer: (({ header, content, toolbar, navbarTitle, footer, onTitleChange, trashMenu, rightbar, onInviteClick, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
9
9
|
NavbarContent: ({ children }: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
|
|
11
|
-
NavbarHeader: ({ children }: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
NewButton: ({ children, ...props }: import('@mantine/core').PolymorphicComponentProps<"button", import('@mantine/core').ButtonProps>) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
type AppSidebarButtonProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: React.ReactNode;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
};
|
|
8
|
+
export declare const AppSidebarButton: import('react').ForwardRefExoticComponent<AppSidebarButtonProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppsSection: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TopSection: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const MobileNavbar: (
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export declare const MobileNavbar: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HelpMenu: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MoreMenu: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AppContainerActionsStore, AppContainerDataStore } from '../types';
|
|
2
|
-
export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, }: AppContainerDataStore & AppContainerActionsStore) => void;
|
|
2
|
+
export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, whatsNewItems, }: AppContainerDataStore & AppContainerActionsStore) => void;
|
|
@@ -1,14 +1,32 @@
|
|
|
1
|
+
import { StoreApi, UseBoundStore } from 'zustand';
|
|
1
2
|
import { AppContainerStore } from '../types';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
export declare const appContainerStore: {
|
|
4
|
+
useStore: UseBoundStore<Omit<StoreApi<AppContainerStore>, "setState" | "persist"> & {
|
|
5
|
+
setState(partial: AppContainerStore | Partial<AppContainerStore> | ((state: AppContainerStore) => AppContainerStore | Partial<AppContainerStore>), replace?: false | undefined): unknown;
|
|
6
|
+
setState(state: AppContainerStore | ((state: AppContainerStore) => AppContainerStore), replace: true): unknown;
|
|
7
|
+
persist: {
|
|
8
|
+
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<AppContainerStore, AppContainerStore, unknown>>) => void;
|
|
9
|
+
clearStorage: () => void;
|
|
10
|
+
rehydrate: () => Promise<void> | void;
|
|
11
|
+
hasHydrated: () => boolean;
|
|
12
|
+
onHydrate: (fn: (state: AppContainerStore) => void) => () => void;
|
|
13
|
+
onFinishHydration: (fn: (state: AppContainerStore) => void) => () => void;
|
|
14
|
+
getOptions: () => Partial<import('zustand/middleware').PersistOptions<AppContainerStore, AppContainerStore, unknown>>;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
api: {
|
|
18
|
+
toggleToolbar: () => void;
|
|
19
|
+
closeToolbar: () => void;
|
|
20
|
+
openToolbar: () => void;
|
|
21
|
+
toggleRightbar: () => void;
|
|
22
|
+
closeRightbar: () => void;
|
|
23
|
+
openRightbar: () => void;
|
|
24
|
+
toggleTourPassed: (flag: boolean) => void;
|
|
25
|
+
setToolbarWidth: (width: number) => void;
|
|
26
|
+
setRightbarWidth: (width: number) => void;
|
|
27
|
+
toggleToolVisibility: (id: string) => void;
|
|
28
|
+
setWithoutToolbar: (flag: boolean) => void;
|
|
29
|
+
setWithoutHeader: (flag: boolean) => void;
|
|
30
|
+
setTheme: (theme: string) => void;
|
|
13
31
|
};
|
|
14
|
-
}
|
|
32
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { WorkspaceMenuProps } from '../WorkspaceMenu/WorkspaceMenu';
|
|
3
|
-
import {
|
|
3
|
+
import { WhatsNewProps } from './components/menus/HelpMenu/WhatsNew';
|
|
4
|
+
import { MenuUser, UserNotifications } from './components/menus/UserMenu/MenuUserDropdown';
|
|
4
5
|
export type ToolDef = {
|
|
5
6
|
id: string;
|
|
6
7
|
name: string;
|
|
@@ -12,12 +13,15 @@ export type ToolDef = {
|
|
|
12
13
|
};
|
|
13
14
|
export type AppContainerProps = {
|
|
14
15
|
content?: ReactNode;
|
|
15
|
-
|
|
16
|
+
toolbar?: ReactNode;
|
|
17
|
+
rightbar?: ReactNode;
|
|
16
18
|
header?: ReactNode;
|
|
17
19
|
navbarTitle?: string;
|
|
18
20
|
displayType?: 'ROUNDED' | 'BOXED';
|
|
19
21
|
footer?: ReactNode;
|
|
20
22
|
onTitleChange?: (title?: string) => void;
|
|
23
|
+
trashMenu?: ReactNode;
|
|
24
|
+
onInviteClick?: () => void;
|
|
21
25
|
};
|
|
22
26
|
export type AppContainerDataStore = {
|
|
23
27
|
tools: ToolDef[];
|
|
@@ -31,6 +35,10 @@ export type AppContainerDataStore = {
|
|
|
31
35
|
publicMode: boolean;
|
|
32
36
|
showMessenger: () => void;
|
|
33
37
|
showNewMessage: (message: string) => void;
|
|
38
|
+
version: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
privacyPolicyLink: string;
|
|
41
|
+
whatsNewItems: WhatsNewProps['items'];
|
|
34
42
|
};
|
|
35
43
|
type ReadNotificationsRequest = {
|
|
36
44
|
messageIds: number[];
|
|
@@ -41,18 +49,14 @@ export type AppContainerActionsStore = {
|
|
|
41
49
|
readNotificationsFunc: (data: ReadNotificationsRequest) => void;
|
|
42
50
|
};
|
|
43
51
|
export type AppContainerStore = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
opened: boolean;
|
|
47
|
-
toggle: () => void;
|
|
48
|
-
close: () => void;
|
|
49
|
-
open: () => void;
|
|
52
|
+
toolbarWidth: number;
|
|
53
|
+
showToolbar: boolean;
|
|
50
54
|
theme: string;
|
|
51
55
|
hiddenTools: string[];
|
|
52
|
-
|
|
53
|
-
withoutNavbar: boolean;
|
|
56
|
+
withoutToolbar: boolean;
|
|
54
57
|
withoutHeader: boolean;
|
|
55
58
|
isTourPassed: boolean;
|
|
56
|
-
|
|
59
|
+
showRightbar: boolean;
|
|
60
|
+
rightbarWidth: number;
|
|
57
61
|
};
|
|
58
62
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
export type AppShellProps = BoxProps;
|
|
4
|
+
export declare const AppShell: (({ children, ...props }: PropsWithChildren<AppShellProps>) => import("react/jsx-runtime").JSX.Element) & {
|
|
5
|
+
Section: ({ children, ...props }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
LeftSidebar: ({ children, ...props }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
RightSidebar: ({ children, ...props }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Content: ({ children, ...props }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Header: ({ children, ...props }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Main: ({ children, ...props }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
WorkContent: ({ children, ...props }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EmblaCarouselType } from 'embla-carousel';
|
|
3
|
+
interface AttachmentsGalleryContextValue {
|
|
4
|
+
embla: EmblaCarouselType | null;
|
|
5
|
+
setEmbla: (embla: EmblaCarouselType | null) => void;
|
|
6
|
+
canScrollPrev: boolean;
|
|
7
|
+
setCanScrollPrev: (value: boolean) => void;
|
|
8
|
+
canScrollNext: boolean;
|
|
9
|
+
setCanScrollNext: (value: boolean) => void;
|
|
10
|
+
selectedIndex: number;
|
|
11
|
+
setSelectedIndex: (value: number) => void;
|
|
12
|
+
zoomPercentage: number;
|
|
13
|
+
setZoomPercentage: (value: number) => void;
|
|
14
|
+
transformRefs: React.MutableRefObject<any[]>;
|
|
15
|
+
prevIndexRef: React.MutableRefObject<number>;
|
|
16
|
+
}
|
|
17
|
+
export declare const useAttachmentsGalleryContext: () => AttachmentsGalleryContextValue;
|
|
18
|
+
interface AttachmentsGalleryProviderProps {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare const AttachmentsGalleryProvider: ({ children, }: AttachmentsGalleryProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFileResponse } from '../../types/files.ts';
|
|
2
|
+
interface AttachmentsGalleryModalV2Props {
|
|
3
|
+
opened: boolean;
|
|
4
|
+
onOpenChange?: (opened: boolean) => void;
|
|
5
|
+
attachments?: IFileResponse[];
|
|
6
|
+
initialIndex?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const AttachmentsGalleryModal: import('react').MemoExoticComponent<({ opened, onOpenChange, attachments, initialIndex, }: AttachmentsGalleryModalV2Props) => import("react/jsx-runtime").JSX.Element>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ErrorSection: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TransformWrapper } from 'react-zoom-pan-pinch';
|
|
2
|
+
import { IFileResponse } from '../../../types/files.ts';
|
|
3
|
+
interface IProps {
|
|
4
|
+
onTransformed?: React.ComponentProps<typeof TransformWrapper>['onTransformed'];
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
attachment: IFileResponse;
|
|
7
|
+
}
|
|
8
|
+
export declare const GallerySlide: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<IProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IFileResponse } from '../../../types/files.ts';
|
|
2
|
+
interface ModalHeaderProps {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
attachments?: IFileResponse[];
|
|
5
|
+
}
|
|
6
|
+
export declare const ModalHeader: import('react').MemoExoticComponent<({ onClose, attachments }: ModalHeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useShakePlayer: ({ attachmentId, isActive, autoPlay, }: {
|
|
2
|
+
attachmentId?: string;
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
autoPlay?: boolean;
|
|
5
|
+
}) => {
|
|
6
|
+
containerRef: import('react').RefObject<HTMLDivElement>;
|
|
7
|
+
isError: boolean;
|
|
8
|
+
vodUrl: string | null;
|
|
9
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const MOCK_SLIDES: string[];
|
|
2
|
+
export declare const ZOOM_CONFIG: {
|
|
3
|
+
readonly initialScale: 1;
|
|
4
|
+
readonly minScale: 1;
|
|
5
|
+
readonly maxScale: 5;
|
|
6
|
+
readonly wheelStep: 0.1;
|
|
7
|
+
readonly doubleClickStep: 0.7;
|
|
8
|
+
};
|
|
9
|
+
export declare const MODAL_TRANSITION: {
|
|
10
|
+
readonly duration: 200;
|
|
11
|
+
readonly exitDuration: 200;
|
|
12
|
+
};
|
|
13
|
+
export declare const TRANSFORM_COMPONENT_STYLES: {
|
|
14
|
+
width: string;
|
|
15
|
+
height: string;
|
|
16
|
+
display: string;
|
|
17
|
+
alignItems: string;
|
|
18
|
+
justifyContent: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
import { IFileResponse } from '../../../types/files.ts';
|
|
3
|
+
export declare const useDownloadFile: (targetAttach?: IFileResponse) => {
|
|
4
|
+
isVideo: boolean;
|
|
5
|
+
isMobile: boolean;
|
|
6
|
+
onDownload: (e: SyntheticEvent) => Promise<void>;
|
|
7
|
+
isFetching: boolean;
|
|
8
|
+
};
|