@layers-app/shared 0.2.8 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/giphy/slice.d.ts +1 -1
- package/dist/api/giphy/slice.d.ts.map +1 -1
- package/dist/api/unsplash/slice.d.ts +1 -1
- package/dist/api/unsplash/slice.d.ts.map +1 -1
- 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 +5 -0
- package/dist/assets/layers-logo-icon.svg.js +2 -3
- package/dist/assets/layers-logo-icon.svg2.js +5 -0
- 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/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +8 -7
- 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 +120 -120
- 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/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/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +115 -111
- package/dist/components/CommunitiesDialog/index.d.ts.map +1 -1
- package/dist/components/CommunitiesDialog/index.js +47 -46
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +8 -7
- 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 +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +144 -152
- package/dist/components/FilePicker/FilePicker.module.css.js +10 -10
- package/dist/components/FilePicker/FilePickerGallery.js +13 -13
- package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +46 -48
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +16 -16
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +49 -51
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +44 -42
- package/dist/components/FilePicker/api/giphyApi.d.ts +2 -2
- package/dist/components/FilePicker/api/giphyApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/giphyApi.js +11 -14
- package/dist/components/FilePicker/api/unsplashApi.d.ts +2 -2
- package/dist/components/FilePicker/api/unsplashApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/unsplashApi.js +14 -19
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +70 -72
- 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/helpers/conditions.d.ts +84 -84
- package/dist/components/FormViewer/helpers/helpers.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/steps.js +22 -21
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +71 -71
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +84 -84
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
- package/dist/components/FormViewer/store/formStore.d.ts +357 -357
- package/dist/components/FormViewer/store/formStoreApi.d.ts +178 -178
- package/dist/components/FormViewer/store/selectors.d.ts +23861 -23861
- package/dist/components/FormViewer/types/schemes.d.ts +1139 -1139
- package/dist/components/Logotype.d.ts +6 -4
- package/dist/components/Logotype.d.ts.map +1 -1
- package/dist/components/Logotype.js +62 -30
- 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/OnBoarding/OnBoardingPage.js +35 -35
- 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 +6 -6
- 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 +49 -0
- package/dist/config/brand.d.ts.map +1 -0
- package/dist/config/brand.js +77 -0
- package/dist/config/envConfig.d.ts +110 -0
- package/dist/config/envConfig.d.ts.map +1 -0
- package/dist/config/envConfig.js +48 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +19 -7
- 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/useDisableWindowScroll.js +3 -3
- 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 +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +505 -487
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +5 -5
- package/dist/lang/locales/ui_ru.json.js +5 -5
- 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 +3 -6
- package/dist/assets/svg/default_icon.svg.js +0 -4
- package/dist/assets/svg/layers-logo-full.svg.js +0 -4
|
@@ -1,150 +1,158 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import { useState as A, useRef as $, useMemo as B, useCallback as h, useEffect as R } from "react";
|
|
3
3
|
import { useTranslation as _ } from "react-i18next";
|
|
4
|
-
import { DiscountTag02Icon as
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { Stack as
|
|
7
|
-
import { IconChevronRight as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
4
|
+
import { DiscountTag02Icon as O, CustomerSupportIcon as U, Book02Icon as H, Structure02Icon as N, BookOpen01Icon as W, LicenseIcon as G } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as s } from "@hugeicons/react";
|
|
6
|
+
import { Stack as K, Button as u, Menu as i, Popover as g, UnstyledButton as Y, Group as q, Text as S } from "@mantine/core";
|
|
7
|
+
import { IconChevronRight as J } from "@tabler/icons-react";
|
|
8
|
+
import Q from "../../../../../assets/svg/discord-icon.svg.js";
|
|
9
|
+
import V from "../../../../../assets/svg/telegram-icon.svg.js";
|
|
10
|
+
import X from "../../../../../assets/svg/whatsapp-icon.svg.js";
|
|
11
|
+
import { brand as o } from "../../../../../config/brand.js";
|
|
12
|
+
import { getEnvConfig as Z } from "../../../../../config/envConfig.js";
|
|
13
|
+
import { isFeature as ee } from "../../../../../helpers/feature.js";
|
|
14
|
+
import { usePlatform as te } from "../../../../../hooks/usePlatform.js";
|
|
15
|
+
import { resetFeatureFlow as oe } from "../../../../../store/featureProgress.js";
|
|
16
|
+
import { useAppContainerDataStore as re } from "../../../hooks/useAppContainerDataStore.js";
|
|
17
|
+
import { WhatsNew as ie } from "./WhatsNew.js";
|
|
18
|
+
import { resetOnboarding as ne } from "../../../../OnboardingTour/useOnboardingTour.js";
|
|
19
|
+
import { FeatureProgressKey as ae } from "../../../../FeatureProgress/constants.js";
|
|
20
|
+
const ze = () => {
|
|
21
|
+
const { t } = _("helpMenu"), y = te(), [M, f] = A(!1), c = $(null), T = B(() => {
|
|
22
|
+
const r = Z().analytics;
|
|
23
|
+
return r?.intercomEnabled !== !1 && !!r?.intercomAppId;
|
|
24
|
+
}, []), {
|
|
25
|
+
showMessenger: w,
|
|
26
|
+
showNewMessage: z,
|
|
27
|
+
workspaceMenu: C,
|
|
28
|
+
getFirstPageLink: D,
|
|
29
|
+
version: E,
|
|
30
|
+
updatedAt: P,
|
|
31
|
+
privacyPolicyLink: x,
|
|
32
|
+
userAgreementLink: F,
|
|
33
|
+
whatsNewItems: b
|
|
34
|
+
} = re(), j = () => {
|
|
35
|
+
m();
|
|
30
36
|
const r = new URL(window.location.href);
|
|
31
37
|
r.searchParams.get("view") === "graph" && (r.searchParams.delete("view"), window.history.replaceState(
|
|
32
38
|
window.history.state,
|
|
33
39
|
"",
|
|
34
40
|
`${r.pathname}${r.search}${r.hash}`
|
|
35
|
-
)),
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
41
|
+
)), ne("graph"), oe(ae.GraphStart);
|
|
42
|
+
const p = window.location.pathname.split("/").filter(Boolean), L = p[0], v = p[1] === "pages" ? p[2] : void 0, l = L || C.active.workspaceId;
|
|
43
|
+
if (l) {
|
|
38
44
|
if (v) {
|
|
39
|
-
window.location.assign(`/${
|
|
45
|
+
window.location.assign(`/${l}/pages/${v}`);
|
|
40
46
|
return;
|
|
41
47
|
}
|
|
42
|
-
const k =
|
|
48
|
+
const k = D?.(l);
|
|
43
49
|
if (k) {
|
|
44
50
|
window.location.assign(k);
|
|
45
51
|
return;
|
|
46
52
|
}
|
|
47
|
-
window.location.assign(`/${
|
|
53
|
+
window.location.assign(`/${l}/pages`);
|
|
48
54
|
return;
|
|
49
55
|
}
|
|
50
56
|
window.location.assign("/");
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
}, []),
|
|
54
|
-
|
|
55
|
-
}, [
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
}, n = h(() => {
|
|
58
|
+
c.current && (window.clearTimeout(c.current), c.current = null);
|
|
59
|
+
}, []), d = h(() => {
|
|
60
|
+
n(), f(!0);
|
|
61
|
+
}, [n]), m = h(() => {
|
|
62
|
+
n(), c.current = window.setTimeout(() => {
|
|
63
|
+
f(!1);
|
|
58
64
|
}, 120);
|
|
59
|
-
}, [
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
}, [
|
|
63
|
-
/* @__PURE__ */ e(
|
|
64
|
-
|
|
65
|
+
}, [n]);
|
|
66
|
+
return R(() => () => {
|
|
67
|
+
n();
|
|
68
|
+
}, [n]), /* @__PURE__ */ a(K, { gap: 6, p: 4, children: [
|
|
69
|
+
o.social.whatsappEnabled && /* @__PURE__ */ e(
|
|
70
|
+
u,
|
|
65
71
|
{
|
|
66
72
|
component: "a",
|
|
67
|
-
href:
|
|
73
|
+
href: o.social.whatsapp,
|
|
68
74
|
target: "_blank",
|
|
69
75
|
bg: "#00C000",
|
|
70
|
-
leftSection: /* @__PURE__ */ e(
|
|
76
|
+
leftSection: /* @__PURE__ */ e(X, { width: 16, height: 16 }),
|
|
71
77
|
c: "white",
|
|
72
78
|
size: "sm",
|
|
73
79
|
justify: "flex-start",
|
|
74
80
|
children: t("joinWhatsApp")
|
|
75
81
|
}
|
|
76
82
|
),
|
|
77
|
-
/* @__PURE__ */ e(
|
|
78
|
-
|
|
83
|
+
o.social.telegramEnabled && /* @__PURE__ */ e(
|
|
84
|
+
u,
|
|
79
85
|
{
|
|
80
86
|
component: "a",
|
|
81
|
-
href:
|
|
87
|
+
href: o.social.telegram,
|
|
82
88
|
target: "_blank",
|
|
83
89
|
bg: "blue.5",
|
|
84
|
-
leftSection: /* @__PURE__ */ e(
|
|
90
|
+
leftSection: /* @__PURE__ */ e(V, { width: 16, height: 16 }),
|
|
85
91
|
c: "white",
|
|
86
92
|
size: "sm",
|
|
87
93
|
justify: "flex-start",
|
|
88
94
|
children: t("joinTelegram")
|
|
89
95
|
}
|
|
90
96
|
),
|
|
91
|
-
/* @__PURE__ */ e(
|
|
92
|
-
|
|
97
|
+
o.social.discordEnabled && /* @__PURE__ */ e(
|
|
98
|
+
u,
|
|
93
99
|
{
|
|
94
100
|
component: "a",
|
|
95
|
-
href:
|
|
101
|
+
href: o.social.discord,
|
|
96
102
|
target: "_blank",
|
|
97
103
|
bg: "indigo.6",
|
|
98
|
-
leftSection: /* @__PURE__ */ e(
|
|
104
|
+
leftSection: /* @__PURE__ */ e(Q, { width: 16, height: 16 }),
|
|
99
105
|
c: "white",
|
|
100
106
|
size: "sm",
|
|
101
107
|
justify: "flex-start",
|
|
102
108
|
children: t("joinDiscord")
|
|
103
109
|
}
|
|
104
110
|
),
|
|
105
|
-
/* @__PURE__ */ e(
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
111
|
+
(o.social.whatsappEnabled || o.social.telegramEnabled || o.social.discordEnabled) && /* @__PURE__ */ e(i.Divider, {}),
|
|
112
|
+
!y.isDesktop && T && /* @__PURE__ */ a(I, { children: [
|
|
113
|
+
/* @__PURE__ */ e(
|
|
114
|
+
i.Item,
|
|
115
|
+
{
|
|
116
|
+
onClick: () => {
|
|
117
|
+
w(), z(t("contactSalesMessage"));
|
|
118
|
+
},
|
|
119
|
+
leftSection: /* @__PURE__ */ e(s, { icon: O, size: 16 }),
|
|
120
|
+
children: t("contactSales")
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ e(
|
|
124
|
+
i.Item,
|
|
125
|
+
{
|
|
126
|
+
onClick: w,
|
|
127
|
+
leftSection: /* @__PURE__ */ e(s, { icon: U, size: 16 }),
|
|
128
|
+
children: t("getSupport")
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
/* @__PURE__ */ e(i.Divider, {})
|
|
132
|
+
] }),
|
|
133
|
+
ee() && /* @__PURE__ */ a(
|
|
134
|
+
g,
|
|
127
135
|
{
|
|
128
|
-
opened:
|
|
136
|
+
opened: M,
|
|
129
137
|
width: 200,
|
|
130
138
|
position: "right-start",
|
|
131
139
|
offset: 10,
|
|
132
140
|
withinPortal: !0,
|
|
133
141
|
shadow: "md",
|
|
134
142
|
children: [
|
|
135
|
-
/* @__PURE__ */ e(
|
|
136
|
-
|
|
143
|
+
/* @__PURE__ */ e(g.Target, { children: /* @__PURE__ */ e("div", { onMouseEnter: d, onMouseLeave: m, children: /* @__PURE__ */ e(
|
|
144
|
+
i.Item,
|
|
137
145
|
{
|
|
138
|
-
leftSection: /* @__PURE__ */ e(
|
|
139
|
-
rightSection: /* @__PURE__ */ e(
|
|
146
|
+
leftSection: /* @__PURE__ */ e(s, { icon: H, size: 16 }),
|
|
147
|
+
rightSection: /* @__PURE__ */ e(J, { size: 14 }),
|
|
140
148
|
onClick: (r) => {
|
|
141
|
-
r.preventDefault(),
|
|
149
|
+
r.preventDefault(), d();
|
|
142
150
|
},
|
|
143
151
|
children: t("tutorials")
|
|
144
152
|
}
|
|
145
153
|
) }) }),
|
|
146
154
|
/* @__PURE__ */ e(
|
|
147
|
-
|
|
155
|
+
g.Dropdown,
|
|
148
156
|
{
|
|
149
157
|
py: 4,
|
|
150
158
|
ml: 6,
|
|
@@ -152,27 +160,27 @@ const ve = () => {
|
|
|
152
160
|
backgroundColor: "light-dark(var(--app-shell-bg),var(--mantine-color-dark-6))",
|
|
153
161
|
border: "none"
|
|
154
162
|
},
|
|
155
|
-
onMouseEnter:
|
|
156
|
-
onMouseLeave:
|
|
163
|
+
onMouseEnter: d,
|
|
164
|
+
onMouseLeave: m,
|
|
157
165
|
children: /* @__PURE__ */ e(
|
|
158
|
-
|
|
166
|
+
Y,
|
|
159
167
|
{
|
|
160
|
-
onClick:
|
|
168
|
+
onClick: j,
|
|
161
169
|
style: {
|
|
162
170
|
width: "100%",
|
|
163
171
|
borderRadius: 12,
|
|
164
172
|
padding: "6px 12px"
|
|
165
173
|
},
|
|
166
|
-
children: /* @__PURE__ */
|
|
174
|
+
children: /* @__PURE__ */ a(q, { gap: 10, children: [
|
|
167
175
|
/* @__PURE__ */ e(
|
|
168
|
-
|
|
176
|
+
s,
|
|
169
177
|
{
|
|
170
|
-
icon:
|
|
178
|
+
icon: N,
|
|
171
179
|
size: 16,
|
|
172
180
|
color: "var(--mantine-color-dimmed)"
|
|
173
181
|
}
|
|
174
182
|
),
|
|
175
|
-
/* @__PURE__ */ e(
|
|
183
|
+
/* @__PURE__ */ e(S, { size: "sm", c: "bright", children: t("mindMap") })
|
|
176
184
|
] })
|
|
177
185
|
}
|
|
178
186
|
)
|
|
@@ -182,56 +190,48 @@ const ve = () => {
|
|
|
182
190
|
}
|
|
183
191
|
),
|
|
184
192
|
/* @__PURE__ */ e(
|
|
185
|
-
|
|
186
|
-
{
|
|
187
|
-
leftSection: /* @__PURE__ */ e(n, { icon: O, size: 16 }),
|
|
188
|
-
component: "a",
|
|
189
|
-
href: "https://layers.md/",
|
|
190
|
-
target: "_blank",
|
|
191
|
-
children: t("aboutLayers")
|
|
192
|
-
}
|
|
193
|
-
),
|
|
194
|
-
/* @__PURE__ */ e(
|
|
195
|
-
o.Item,
|
|
193
|
+
i.Item,
|
|
196
194
|
{
|
|
197
195
|
variant: "outline",
|
|
198
196
|
component: "a",
|
|
199
197
|
target: "_blank",
|
|
200
|
-
href:
|
|
201
|
-
leftSection: /* @__PURE__ */ e(
|
|
198
|
+
href: F,
|
|
199
|
+
leftSection: /* @__PURE__ */ e(s, { icon: W, size: 16 }),
|
|
202
200
|
children: t("userAgreement")
|
|
203
201
|
}
|
|
204
202
|
),
|
|
205
203
|
/* @__PURE__ */ e(
|
|
206
|
-
|
|
204
|
+
i.Item,
|
|
207
205
|
{
|
|
208
206
|
variant: "outline",
|
|
209
207
|
component: "a",
|
|
210
208
|
target: "_blank",
|
|
211
|
-
href:
|
|
212
|
-
leftSection: /* @__PURE__ */ e(
|
|
209
|
+
href: x,
|
|
210
|
+
leftSection: /* @__PURE__ */ e(s, { icon: G, size: 16 }),
|
|
213
211
|
children: t("termsAndPrivacy")
|
|
214
212
|
}
|
|
215
213
|
),
|
|
216
|
-
/* @__PURE__ */ e(
|
|
217
|
-
!!
|
|
218
|
-
/* @__PURE__ */ e(
|
|
219
|
-
/* @__PURE__ */ e(
|
|
214
|
+
/* @__PURE__ */ e(i.Divider, {}),
|
|
215
|
+
!!b?.length && /* @__PURE__ */ a(I, { children: [
|
|
216
|
+
/* @__PURE__ */ e(ie, { items: b }),
|
|
217
|
+
/* @__PURE__ */ e(i.Divider, {})
|
|
220
218
|
] }),
|
|
221
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ a(S, { size: "xs", c: "dimmed", children: [
|
|
222
220
|
t("updated"),
|
|
223
221
|
" ",
|
|
224
|
-
|
|
222
|
+
P,
|
|
225
223
|
/* @__PURE__ */ e("br", {}),
|
|
226
|
-
|
|
227
|
-
|
|
224
|
+
o.name,
|
|
225
|
+
" v",
|
|
226
|
+
E,
|
|
228
227
|
/* @__PURE__ */ e("br", {}),
|
|
229
228
|
"© ",
|
|
230
229
|
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
231
|
-
"
|
|
230
|
+
" ",
|
|
231
|
+
o.copyrightHolder
|
|
232
232
|
] })
|
|
233
233
|
] });
|
|
234
234
|
};
|
|
235
235
|
export {
|
|
236
|
-
|
|
236
|
+
ze as HelpMenu
|
|
237
237
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AppContainerActionsStore, AppContainerDataStore } from '../types';
|
|
2
|
-
export declare const useAppContainer: ({ user, workspaceMenu, getFirstPageLink, tools, userMenuItems, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, userAgreementLink, whatsNewItems, navbarDisplayFormat, }: AppContainerDataStore & AppContainerActionsStore) => void;
|
|
2
|
+
export declare const useAppContainer: ({ user, workspaceMenu, getFirstPageLink, tools, userMenuItems, onSyncClick, syncState, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, userAgreementLink, whatsNewItems, navbarDisplayFormat, }: AppContainerDataStore & AppContainerActionsStore) => void;
|
|
3
3
|
//# sourceMappingURL=useAppContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAI3E,eAAO,MAAM,eAAe,GAAI,
|
|
1
|
+
{"version":3,"file":"useAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAI3E,eAAO,MAAM,eAAe,GAAI,mRAoB7B,qBAAqB,GAAG,wBAAwB,SA8ClD,CAAC"}
|
|
@@ -1,66 +1,72 @@
|
|
|
1
|
-
import { useLayoutEffect as
|
|
2
|
-
import { useAppContainerActionsStore as
|
|
3
|
-
import { useAppContainerDataStore as
|
|
4
|
-
const
|
|
5
|
-
user:
|
|
6
|
-
workspaceMenu:
|
|
7
|
-
getFirstPageLink:
|
|
8
|
-
tools:
|
|
9
|
-
userMenuItems:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { useLayoutEffect as K } from "react";
|
|
2
|
+
import { useAppContainerActionsStore as O } from "./useAppContainerActionsStore.js";
|
|
3
|
+
import { useAppContainerDataStore as Q } from "./useAppContainerDataStore.js";
|
|
4
|
+
const V = ({
|
|
5
|
+
user: p,
|
|
6
|
+
workspaceMenu: t,
|
|
7
|
+
getFirstPageLink: f,
|
|
8
|
+
tools: C,
|
|
9
|
+
userMenuItems: S,
|
|
10
|
+
onSyncClick: m,
|
|
11
|
+
syncState: x,
|
|
12
|
+
notifications: A,
|
|
13
|
+
isAnonym: E,
|
|
14
|
+
readNotificationsFunc: j,
|
|
15
|
+
publicMode: o,
|
|
16
|
+
showMessenger: q,
|
|
17
|
+
showNewMessage: r,
|
|
18
|
+
version: z,
|
|
19
|
+
updatedAt: B,
|
|
20
|
+
privacyPolicyLink: D,
|
|
21
|
+
userAgreementLink: G,
|
|
22
|
+
whatsNewItems: H,
|
|
23
|
+
navbarDisplayFormat: J
|
|
22
24
|
}) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
user:
|
|
26
|
-
workspaceMenu:
|
|
27
|
-
getFirstPageLink:
|
|
28
|
-
tools:
|
|
29
|
-
userMenuItems:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
25
|
+
K(() => {
|
|
26
|
+
Q.setState({
|
|
27
|
+
user: p,
|
|
28
|
+
workspaceMenu: t,
|
|
29
|
+
getFirstPageLink: f,
|
|
30
|
+
tools: C,
|
|
31
|
+
userMenuItems: S,
|
|
32
|
+
onSyncClick: m,
|
|
33
|
+
syncState: x,
|
|
34
|
+
notifications: A,
|
|
35
|
+
isAnonym: E,
|
|
36
|
+
publicMode: o,
|
|
37
|
+
showMessenger: q,
|
|
38
|
+
showNewMessage: r,
|
|
39
|
+
version: z,
|
|
40
|
+
updatedAt: B,
|
|
41
|
+
privacyPolicyLink: D,
|
|
42
|
+
userAgreementLink: G,
|
|
43
|
+
whatsNewItems: H,
|
|
44
|
+
navbarDisplayFormat: J
|
|
45
|
+
}), O.setState({
|
|
46
|
+
readNotificationsFunc: j
|
|
43
47
|
});
|
|
44
48
|
}, [
|
|
45
|
-
o,
|
|
46
|
-
m,
|
|
47
|
-
A,
|
|
48
|
-
x,
|
|
49
49
|
E,
|
|
50
|
+
A,
|
|
51
|
+
o,
|
|
50
52
|
j,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
q,
|
|
54
|
+
r,
|
|
53
55
|
C,
|
|
54
56
|
p,
|
|
55
57
|
S,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
m,
|
|
59
|
+
x,
|
|
60
|
+
t,
|
|
61
|
+
f,
|
|
58
62
|
z,
|
|
59
63
|
B,
|
|
60
64
|
D,
|
|
61
|
-
G
|
|
65
|
+
G,
|
|
66
|
+
H,
|
|
67
|
+
J
|
|
62
68
|
]);
|
|
63
69
|
};
|
|
64
70
|
export {
|
|
65
|
-
|
|
71
|
+
V as useAppContainer
|
|
66
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppContainerDataStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerDataStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"useAppContainerDataStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerDataStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,wBAAwB,oFAkClC,CAAC"}
|
|
@@ -27,6 +27,7 @@ export type AppContainerProps = {
|
|
|
27
27
|
trashMenu?: ReactNode;
|
|
28
28
|
onInviteClick?: () => void;
|
|
29
29
|
withBg?: boolean;
|
|
30
|
+
hideHeader?: boolean;
|
|
30
31
|
};
|
|
31
32
|
export type AppContainerDataStore = {
|
|
32
33
|
tools: ToolDef[];
|
|
@@ -47,6 +48,8 @@ export type AppContainerDataStore = {
|
|
|
47
48
|
userAgreementLink: string;
|
|
48
49
|
whatsNewItems: WhatsNewProps['items'];
|
|
49
50
|
navbarDisplayFormat: 'iconsAndLabels' | 'iconsOnly';
|
|
51
|
+
onSyncClick?: () => void;
|
|
52
|
+
syncState?: 'SYNCED' | 'SYNCING' | 'OFFLINE' | 'ERROR' | string;
|
|
50
53
|
};
|
|
51
54
|
type ReadNotificationsRequest = {
|
|
52
55
|
messageIds: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAClC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
2
|
+
import { PopoverProps } from '@mantine/core';
|
|
3
|
+
type ColorPickerPopoverProps = {
|
|
3
4
|
value?: string;
|
|
4
5
|
onChange?: (v: string) => void;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export declare const ColorPickerPopover: ({ value, onChange, defaultOpened, size, radius, children, }: PropsWithChildren<ColorPickerPopoverProps>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
opened?: boolean;
|
|
7
|
+
setOpened?: (opened: boolean) => void;
|
|
8
|
+
} & Pick<PopoverProps, 'withinPortal' | 'floatingStrategy'>;
|
|
9
|
+
export declare const ColorPickerPopover: ({ value, onChange, opened, setOpened, children, withinPortal, floatingStrategy, }: PropsWithChildren<ColorPickerPopoverProps>) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=ColorPickerPopover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPickerPopover.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPickerPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ColorPickerPopover.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPickerPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAQ,YAAY,EAAE,MAAM,eAAe,CAAC;AAInD,KAAK,uBAAuB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,GAAG,IAAI,CAAC,YAAY,EAAE,cAAc,GAAG,kBAAkB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB,GAAI,mFAQhC,iBAAiB,CAAC,uBAAuB,CAAC,4CA0B5C,CAAC"}
|
|
@@ -1,42 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ColorPicker as
|
|
5
|
-
const
|
|
6
|
-
value:
|
|
7
|
-
onChange:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as a } from "react-i18next";
|
|
3
|
+
import { Menu as r } from "@mantine/core";
|
|
4
|
+
import { ColorPicker as d } from "./ColorPicker.js";
|
|
5
|
+
const x = ({
|
|
6
|
+
value: i,
|
|
7
|
+
onChange: t,
|
|
8
|
+
opened: c,
|
|
9
|
+
setOpened: e,
|
|
10
|
+
children: n,
|
|
11
|
+
withinPortal: m,
|
|
12
|
+
floatingStrategy: p
|
|
12
13
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
14
|
+
const { t: s } = a("ui");
|
|
15
|
+
return /* @__PURE__ */ l(
|
|
16
|
+
r,
|
|
16
17
|
{
|
|
17
|
-
opened:
|
|
18
|
+
opened: c,
|
|
18
19
|
onChange: e,
|
|
19
20
|
position: "bottom-start",
|
|
20
|
-
|
|
21
|
+
withinPortal: m,
|
|
22
|
+
floatingStrategy: p,
|
|
21
23
|
children: [
|
|
22
|
-
/* @__PURE__ */ o(
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
...i ? { value: r, onChange: i } : { defaultValue: r ?? void 0 }
|
|
34
|
-
}
|
|
35
|
-
) }) })
|
|
24
|
+
/* @__PURE__ */ o(r.Target, { children: n }),
|
|
25
|
+
/* @__PURE__ */ l(r.Dropdown, { children: [
|
|
26
|
+
/* @__PURE__ */ o(r.Label, { px: 4, py: 0, mih: 17, mb: 6, children: s("colorPicker.color") }),
|
|
27
|
+
/* @__PURE__ */ o("div", { onClick: () => e?.(!1), children: /* @__PURE__ */ o(
|
|
28
|
+
d,
|
|
29
|
+
{
|
|
30
|
+
...t ? { value: i, onChange: t } : { defaultValue: i ?? void 0 }
|
|
31
|
+
}
|
|
32
|
+
) })
|
|
33
|
+
] })
|
|
36
34
|
]
|
|
37
35
|
}
|
|
38
36
|
);
|
|
39
37
|
};
|
|
40
38
|
export {
|
|
41
|
-
|
|
39
|
+
x as ColorPickerPopover
|
|
42
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAE,oBAAoB,EAAwB,MAAM,SAAS,CAAC;AA0CrE,eAAO,MAAM,eAAe,GAAI,4EAQ7B,oBAAoB,4CAuctB,CAAC"}
|