@layers-app/shared 0.2.7 → 0.2.8-test
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/svg/socials/instagram.svg.js +3 -3
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +21 -20
- package/dist/components/AppContainer/AppContainer.js +3 -3
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +39 -31
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +42 -34
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +53 -44
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +150 -50
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- 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 +23 -23
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +1 -1
- package/dist/components/AppContainer/types.d.ts +1 -1
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +14 -14
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +28 -29
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.d.ts +11 -0
- package/dist/components/FeatureProgress/FeatureProgress.d.ts.map +1 -0
- package/dist/components/FeatureProgress/FeatureProgress.js +148 -0
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +81 -0
- package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts +2 -0
- package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts.map +1 -0
- package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.js +88 -0
- package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts +9 -0
- package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts.map +1 -0
- package/dist/components/FeatureProgress/FeatureProgressCompleteModal.js +35 -0
- package/dist/components/FeatureProgress/constants.d.ts +4 -0
- package/dist/components/FeatureProgress/constants.d.ts.map +1 -0
- package/dist/components/FeatureProgress/constants.js +4 -0
- package/dist/components/FeatureProgress/index.d.ts +3 -0
- package/dist/components/FeatureProgress/index.d.ts.map +1 -0
- package/dist/components/FilePicker/FilePicker.d.ts +4 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +247 -229
- package/dist/components/FilePicker/FilePicker.module.css.js +12 -10
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +59 -33
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +38 -38
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +18 -15
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +39 -39
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +51 -35
- package/dist/components/FilePicker/api/giphyApi.js +10 -10
- package/dist/components/FilePicker/coverCollections.d.ts +4 -0
- package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
- package/dist/components/FilePicker/coverCollections.js +164 -0
- package/dist/components/FilePicker/index.d.ts +1 -0
- package/dist/components/FilePicker/index.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +42 -42
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/ImageCropper/index.d.ts +1 -1
- package/dist/components/ImageCropper/index.d.ts.map +1 -1
- package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -1
- package/dist/components/ImageCropper/useCropInteraction.js +13 -2
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +7 -7
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +3 -1
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +3 -1
- package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +27 -26
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +2 -2
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -1
- package/dist/components/MediaLibrary/MediaLibraryRow.js +16 -4
- package/dist/components/NavMenu/NavMenu.d.ts +2 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.module.css.js +16 -16
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +2 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +119 -100
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
- package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
- package/dist/components/OnBoarding/styles.module.css.js +7 -7
- package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts +17 -0
- package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts.map +1 -0
- package/dist/components/OnboardingTour/OnboardingTourFooter.js +40 -0
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +13 -0
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -0
- package/dist/components/OnboardingTour/OnboardingTourWrapper.js +164 -0
- package/dist/components/OnboardingTour/index.d.ts +4 -0
- package/dist/components/OnboardingTour/index.d.ts.map +1 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +14 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -0
- package/dist/components/OnboardingTour/useOnboardingTour.js +50 -0
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TimezonePicker/index.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +21 -21
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +74 -74
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +1 -1
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/platform.d.ts +14 -0
- package/dist/helpers/platform.d.ts.map +1 -0
- package/dist/helpers/platform.js +33 -0
- package/dist/helpers/showFeatureFeedback.d.ts +1 -1
- package/dist/helpers/showFeatureFeedback.d.ts.map +1 -1
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useFeatureFeedback.d.ts.map +1 -1
- package/dist/hooks/useFeatureFeedback.js +1 -4
- package/dist/hooks/usePlatform.d.ts +3 -0
- package/dist/hooks/usePlatform.d.ts.map +1 -0
- package/dist/hooks/usePlatform.js +10 -0
- 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 +364 -337
- package/dist/lang/locales/ui_en.json.js +15 -15
- package/dist/lang/locales/ui_es.json.js +13 -13
- package/dist/lang/locales/ui_ru.json.js +12 -12
- package/dist/lib/contentImport/lexicalSerializer.js +59 -47
- package/dist/lib/contentImport/utils.d.ts.map +1 -1
- package/dist/lib/layersVisitData.d.ts.map +1 -1
- package/dist/store/featureProgress.d.ts +39 -0
- package/dist/store/featureProgress.d.ts.map +1 -0
- package/dist/store/featureProgress.js +68 -0
- package/dist/store/plansModal.d.ts.map +1 -1
- package/dist/store/plansModal.js +8 -6
- package/docs/README.md +499 -499
- package/package.json +75 -74
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { jsx as p, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as x, useCallback as A, useMemo as R, useEffect as W } from "react";
|
|
3
|
+
import { useTranslation as M } from "react-i18next";
|
|
4
|
+
import { OnboardingTour as U } from "@gfazioli/mantine-onboarding-tour";
|
|
5
|
+
import { Text as D } from "@mantine/core";
|
|
6
|
+
import { DefaultSingleFooter as V, DefaultMultiFooter as G } from "./OnboardingTourFooter.js";
|
|
7
|
+
import { useOnboardingTour as H } from "./useOnboardingTour.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
const w = "onboarding-tour-popover-dropdown", T = "data-onboarding-tour-active-dropdown", J = (n) => typeof n == "string" ? /* @__PURE__ */ p(D, { fw: 500, size: "md", c: "white", mb: 4, children: n }) : n, K = (n) => typeof n == "string" ? /* @__PURE__ */ p(D, { size: "sm", c: "gray.3", children: n }) : n, nt = ({
|
|
10
|
+
featureKey: n,
|
|
11
|
+
tour: d,
|
|
12
|
+
children: P,
|
|
13
|
+
onComplete: m,
|
|
14
|
+
dependsOn: k,
|
|
15
|
+
withPopoverMoveAnimation: O = !1,
|
|
16
|
+
classNames: N = {},
|
|
17
|
+
focusRevealProps: g,
|
|
18
|
+
onOnboardingTourEnd: C,
|
|
19
|
+
onOnboardingTourClose: S,
|
|
20
|
+
onOnboardingTourChange: $,
|
|
21
|
+
onOnboardingTourStart: E,
|
|
22
|
+
...F
|
|
23
|
+
}) => {
|
|
24
|
+
const { t: l } = M("pages"), { started: y, complete: f } = H(n, { dependsOn: k }), c = x(null), b = x(null), B = A(() => {
|
|
25
|
+
f(), m?.(), C?.();
|
|
26
|
+
}, [f, m, C]), _ = A(() => {
|
|
27
|
+
f(), m?.(), S?.();
|
|
28
|
+
}, [f, m, S]), j = R(() => {
|
|
29
|
+
const o = d.length, e = o === 1;
|
|
30
|
+
return d.map((r, s) => {
|
|
31
|
+
const a = {
|
|
32
|
+
...r,
|
|
33
|
+
title: J(r.title),
|
|
34
|
+
content: K(r.content)
|
|
35
|
+
};
|
|
36
|
+
return r.footer === void 0 && (e ? a.footer = (u) => /* @__PURE__ */ p(
|
|
37
|
+
V,
|
|
38
|
+
{
|
|
39
|
+
controller: u,
|
|
40
|
+
label: l("onboarding.continue")
|
|
41
|
+
}
|
|
42
|
+
) : a.footer = (u) => /* @__PURE__ */ p(
|
|
43
|
+
G,
|
|
44
|
+
{
|
|
45
|
+
controller: u,
|
|
46
|
+
stepIndex: s,
|
|
47
|
+
totalSteps: o,
|
|
48
|
+
labels: {
|
|
49
|
+
stepOf: l("onboarding.stepOf", {
|
|
50
|
+
current: s + 1,
|
|
51
|
+
total: o
|
|
52
|
+
}),
|
|
53
|
+
back: l("onboarding.back"),
|
|
54
|
+
next: l("onboarding.next"),
|
|
55
|
+
done: l("onboarding.done")
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
)), a;
|
|
59
|
+
});
|
|
60
|
+
}, [d, l]), z = R(() => {
|
|
61
|
+
const o = typeof g == "object" ? g : void 0, e = o?.popoverProps ?? {}, r = e.classNames ?? {}, s = e.styles ?? {}, a = [w, r.dropdown].filter(Boolean).join(" ");
|
|
62
|
+
return {
|
|
63
|
+
...o,
|
|
64
|
+
disableTargetInteraction: o?.disableTargetInteraction ?? !0,
|
|
65
|
+
overlayProps: {
|
|
66
|
+
blur: 0,
|
|
67
|
+
...o?.overlayProps
|
|
68
|
+
},
|
|
69
|
+
popoverProps: {
|
|
70
|
+
position: "bottom",
|
|
71
|
+
offset: 10,
|
|
72
|
+
transitionProps: {
|
|
73
|
+
duration: 0,
|
|
74
|
+
...e.transitionProps ?? {}
|
|
75
|
+
},
|
|
76
|
+
...e,
|
|
77
|
+
classNames: {
|
|
78
|
+
...r,
|
|
79
|
+
dropdown: a
|
|
80
|
+
},
|
|
81
|
+
styles: {
|
|
82
|
+
...s,
|
|
83
|
+
dropdown: {
|
|
84
|
+
backgroundColor: "var(--mantine-color-dark-7)",
|
|
85
|
+
padding: 16,
|
|
86
|
+
color: "white",
|
|
87
|
+
border: "none",
|
|
88
|
+
width: 300,
|
|
89
|
+
...s.dropdown
|
|
90
|
+
},
|
|
91
|
+
arrow: {
|
|
92
|
+
backgroundColor: "var(--mantine-color-dark-7)",
|
|
93
|
+
border: "none",
|
|
94
|
+
...s.arrow
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}, [g]);
|
|
100
|
+
return W(() => {
|
|
101
|
+
if (!y || !O) return;
|
|
102
|
+
let o = 0;
|
|
103
|
+
const e = document.createElement("style");
|
|
104
|
+
e.setAttribute("data-onboarding-tour-popover-animation", "true"), e.textContent = `.${w}:not([${T}]) { opacity: 0 !important; pointer-events: none !important; }`, document.head.appendChild(e);
|
|
105
|
+
const r = (t) => {
|
|
106
|
+
t.removeAttribute(T), t.style.removeProperty("position"), t.style.removeProperty("top"), t.style.removeProperty("left"), t.style.removeProperty("width"), t.style.removeProperty("transform"), t.style.removeProperty("opacity"), t.style.removeProperty("pointer-events"), t.style.removeProperty("will-change"), t.style.removeProperty("transition");
|
|
107
|
+
}, s = (t) => {
|
|
108
|
+
const i = t.getBoundingClientRect();
|
|
109
|
+
if (i.width === 0 || i.height === 0) return;
|
|
110
|
+
const v = i.top, h = i.left, I = b.current?.top ?? v, L = b.current?.left ?? h;
|
|
111
|
+
c.current && c.current !== t && r(c.current), c.current = t, t.setAttribute(T, "true"), Object.assign(t.style, {
|
|
112
|
+
position: "fixed",
|
|
113
|
+
top: `${I}px`,
|
|
114
|
+
left: `${L}px`,
|
|
115
|
+
width: `${i.width}px`,
|
|
116
|
+
transform: "none",
|
|
117
|
+
opacity: "1",
|
|
118
|
+
pointerEvents: "auto",
|
|
119
|
+
willChange: "top, left",
|
|
120
|
+
transition: "top 260ms cubic-bezier(0.2, 0, 0, 1), left 260ms cubic-bezier(0.2, 0, 0, 1)"
|
|
121
|
+
}), requestAnimationFrame(() => {
|
|
122
|
+
t.isConnected && (t.style.top = `${v}px`, t.style.left = `${h}px`);
|
|
123
|
+
}), b.current = { top: v, left: h };
|
|
124
|
+
}, a = () => {
|
|
125
|
+
const t = Array.from(
|
|
126
|
+
document.querySelectorAll(`.${w}`)
|
|
127
|
+
), i = t[t.length - 1];
|
|
128
|
+
i && s(i);
|
|
129
|
+
}, u = new MutationObserver(() => {
|
|
130
|
+
cancelAnimationFrame(o), o = requestAnimationFrame(a);
|
|
131
|
+
});
|
|
132
|
+
return a(), u.observe(document.body, { childList: !0, subtree: !0 }), () => {
|
|
133
|
+
u.disconnect(), cancelAnimationFrame(o), e.remove(), c.current && (r(c.current), c.current = null), b.current = null;
|
|
134
|
+
};
|
|
135
|
+
}, [y, O]), d.length === 0 ? /* @__PURE__ */ p(q, { children: P }) : /* @__PURE__ */ p(
|
|
136
|
+
U,
|
|
137
|
+
{
|
|
138
|
+
tour: j,
|
|
139
|
+
started: y,
|
|
140
|
+
onOnboardingTourStart: () => {
|
|
141
|
+
E?.();
|
|
142
|
+
},
|
|
143
|
+
onOnboardingTourChange: (o) => {
|
|
144
|
+
$?.(o);
|
|
145
|
+
},
|
|
146
|
+
onOnboardingTourEnd: B,
|
|
147
|
+
onOnboardingTourClose: _,
|
|
148
|
+
withPrevButton: !1,
|
|
149
|
+
withNextButton: !1,
|
|
150
|
+
withSkipButton: !1,
|
|
151
|
+
withStepper: !1,
|
|
152
|
+
maw: 300,
|
|
153
|
+
classNames: {
|
|
154
|
+
...N
|
|
155
|
+
},
|
|
156
|
+
focusRevealProps: z,
|
|
157
|
+
...F,
|
|
158
|
+
children: P
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
export {
|
|
163
|
+
nt as OnboardingTourWrapper
|
|
164
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { OnboardingTourWrapper } from './OnboardingTourWrapper';
|
|
2
|
+
export type { OnboardingTourWrapperProps } from './OnboardingTourWrapper';
|
|
3
|
+
export { useOnboardingTour, isOnboardingCompleted, resetOnboarding, } from './useOnboardingTour';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,GAChB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const isOnboardingCompleted: (featureKey: string) => boolean;
|
|
2
|
+
export declare const resetOnboarding: (featureKey: string) => void;
|
|
3
|
+
interface UseOnboardingTourOptions {
|
|
4
|
+
dependsOn?: string;
|
|
5
|
+
}
|
|
6
|
+
interface UseOnboardingTourReturn {
|
|
7
|
+
started: boolean;
|
|
8
|
+
completed: boolean;
|
|
9
|
+
start: () => void;
|
|
10
|
+
complete: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const useOnboardingTour: (featureKey: string, options?: UseOnboardingTourOptions) => UseOnboardingTourReturn;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=useOnboardingTour.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOnboardingTour.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/useOnboardingTour.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,qBAAqB,GAAI,YAAY,MAAM,KAAG,OAE1D,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,KAAG,IAOpD,CAAC;AAEF,UAAU,wBAAwB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,uBAAuB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,GAC5B,YAAY,MAAM,EAClB,UAAU,wBAAwB,KACjC,uBAwDF,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useState as p, useEffect as w, useCallback as O } from "react";
|
|
2
|
+
const g = "onboarding-completed", a = "onboarding-completed", l = "onboarding-reset", E = () => {
|
|
3
|
+
try {
|
|
4
|
+
return JSON.parse(localStorage.getItem(g) || "{}");
|
|
5
|
+
} catch {
|
|
6
|
+
return {};
|
|
7
|
+
}
|
|
8
|
+
}, u = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
localStorage.setItem(g, JSON.stringify(t));
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
}, d = (t) => !!E()[t], b = (t) => {
|
|
14
|
+
const o = E();
|
|
15
|
+
delete o[t], u(o), window.dispatchEvent(
|
|
16
|
+
new CustomEvent(l, { detail: t })
|
|
17
|
+
);
|
|
18
|
+
}, h = (t, o) => {
|
|
19
|
+
const { dependsOn: n } = o ?? {}, [r, m] = p(
|
|
20
|
+
() => d(t)
|
|
21
|
+
), [c, s] = p(
|
|
22
|
+
() => !d(t) && (n ? d(n) : !0)
|
|
23
|
+
);
|
|
24
|
+
w(() => {
|
|
25
|
+
if (r || !n || c) return;
|
|
26
|
+
const e = (i) => {
|
|
27
|
+
i.detail === n && !d(t) && s(!0);
|
|
28
|
+
};
|
|
29
|
+
return window.addEventListener(a, e), () => window.removeEventListener(a, e);
|
|
30
|
+
}, [n, r, c, t]), w(() => {
|
|
31
|
+
const e = (i) => {
|
|
32
|
+
i.detail === t && (m(!1), s(!0));
|
|
33
|
+
};
|
|
34
|
+
return window.addEventListener(l, e), () => window.removeEventListener(l, e);
|
|
35
|
+
}, [t]);
|
|
36
|
+
const v = O(() => {
|
|
37
|
+
const e = E();
|
|
38
|
+
e[t] = !0, u(e), m(!0), s(!1), window.dispatchEvent(
|
|
39
|
+
new CustomEvent(a, { detail: t })
|
|
40
|
+
);
|
|
41
|
+
}, [t]), C = O(() => {
|
|
42
|
+
s(!0);
|
|
43
|
+
}, []);
|
|
44
|
+
return { started: c, completed: r, start: C, complete: v };
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
d as isOnboardingCompleted,
|
|
48
|
+
b as resetOnboarding,
|
|
49
|
+
h as useOnboardingTour
|
|
50
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TimezonePicker/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,aAAa,EAQd,MAAM,eAAe,CAAC;AAIvB,UAAU,mBAAoB,SAAQ,aAAa;IACjD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TimezonePicker/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,aAAa,EAQd,MAAM,eAAe,CAAC;AAIvB,UAAU,mBAAoB,SAAQ,aAAa;IACjD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,eAAO,MAAM,cAAc,GAAI,wCAK5B,mBAAmB,4CA6FrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceItem.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,UAAU,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IAClE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC;CACd;AAED,eAAO,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"WorkspaceItem.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,UAAU,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IAClE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC;CACd;AAED,eAAO,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CAwCvE,CAAC"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { Menu as
|
|
4
|
-
import {
|
|
5
|
-
import { WorkspaceAvatar as
|
|
6
|
-
const
|
|
7
|
-
const { t: r } =
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
1
|
+
import { jsx as e, jsxs as t, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as c } from "react-i18next";
|
|
3
|
+
import { Menu as p, Flex as o, Box as m, Text as i } from "@mantine/core";
|
|
4
|
+
import { usePlatform as h } from "../../hooks/usePlatform.js";
|
|
5
|
+
import { WorkspaceAvatar as d } from "../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
6
|
+
const M = ({ workspace: n, onClick: a }) => {
|
|
7
|
+
const { t: r } = c("workspaceMenu"), l = h();
|
|
8
|
+
return /* @__PURE__ */ e(
|
|
9
|
+
p.Item,
|
|
10
10
|
{
|
|
11
11
|
p: 4,
|
|
12
|
-
onClick: () => a?.(
|
|
12
|
+
onClick: () => a?.(n),
|
|
13
13
|
component: "a",
|
|
14
14
|
styles: { itemLabel: { minWidth: 0 } },
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
!
|
|
20
|
-
|
|
21
|
-
r("member", { count:
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
|
|
15
|
+
children: /* @__PURE__ */ t(o, { gap: 12, children: [
|
|
16
|
+
/* @__PURE__ */ e(d, { workspace: n, size: 36 }),
|
|
17
|
+
/* @__PURE__ */ t(m, { flex: 1, miw: 0, children: [
|
|
18
|
+
/* @__PURE__ */ e(i, { truncate: !0, size: "sm", fw: 500, c: "var(--mantine-color-bright)", children: n.workspaceName }),
|
|
19
|
+
!n?.invitation && /* @__PURE__ */ e(i, { c: "gray", fw: 500, size: "xs", component: "span", children: /* @__PURE__ */ t(o, { gap: 8, component: "span", children: [
|
|
20
|
+
n.totalMembers ? /* @__PURE__ */ t(s, { children: [
|
|
21
|
+
r("member", { count: n.totalMembers }),
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
|
+
m,
|
|
24
24
|
{
|
|
25
25
|
w: 2,
|
|
26
26
|
h: 2,
|
|
@@ -30,7 +30,7 @@ const g = ({ workspace: e, onClick: a }) => {
|
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
] }) : null,
|
|
33
|
-
|
|
33
|
+
l.has("planBadges") && r(`plans.${n.plan}`)
|
|
34
34
|
] }) })
|
|
35
35
|
] })
|
|
36
36
|
] })
|
|
@@ -38,5 +38,5 @@ const g = ({ workspace: e, onClick: a }) => {
|
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
M as WorkspaceItem
|
|
42
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceMenu.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAC;AA6BpD,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,KAAK,CAAC;QACxB,IAAI,EACA,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,OAAO,GACP,OAAO,GACP,UAAU,GACV,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uBAAuB,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI;IACxE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,MAAM,EAAE,CAAC,CAAC;IACV,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,aAAa,EAAE,iHAWpD,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,4CAwE1C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,aAAa,EAAE,gEAMtD,IAAI,CACL,kBAAkB,CAAC,CAAC,CAAC,EACrB,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,GAAG,SAAS,CACxE,
|
|
1
|
+
{"version":3,"file":"WorkspaceMenu.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAC;AA6BpD,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,KAAK,CAAC;QACxB,IAAI,EACA,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,OAAO,GACP,OAAO,GACP,UAAU,GACV,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uBAAuB,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI;IACxE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,MAAM,EAAE,CAAC,CAAC;IACV,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,aAAa,EAAE,iHAWpD,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,4CAwE1C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,aAAa,EAAE,gEAMtD,IAAI,CACL,kBAAkB,CAAC,CAAC,CAAC,EACrB,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,GAAG,SAAS,CACxE,4CA8DA,CAAC"}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { Link as
|
|
5
|
-
import { Setting07Icon as
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { useState as A } from "react";
|
|
3
|
+
import { useTranslation as u } from "react-i18next";
|
|
4
|
+
import { Link as z } from "react-router-dom";
|
|
5
|
+
import { Setting07Icon as L, UserMultiple02Icon as N, Add01Icon as K } from "@hugeicons/core-free-icons";
|
|
6
6
|
import { HugeiconsIcon as k } from "@hugeicons/react";
|
|
7
|
-
import { Stack as a, Flex as l, Text as
|
|
8
|
-
import { useAppContainerDataStore as w } from "../AppContainer/hooks/useAppContainerDataStore.js";
|
|
7
|
+
import { Stack as a, Flex as l, Text as d, Box as f, Button as b, Menu as m, Tooltip as P, Progress as T, ScrollArea as U } from "@mantine/core";
|
|
9
8
|
import { useMenu as B } from "../../hooks/useMenu.js";
|
|
10
|
-
import {
|
|
9
|
+
import { usePlatform as D } from "../../hooks/usePlatform.js";
|
|
10
|
+
import { formatStoragePercent as F, formatStorage as S } from "../../utils/formatStorage.js";
|
|
11
11
|
import { Logotype as O } from "../Logotype.js";
|
|
12
12
|
import { WorkspaceAvatar as x } from "../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
13
13
|
import { WorkspaceItem as E } from "./WorkspaceItem.js";
|
|
14
|
-
const
|
|
14
|
+
const oe = ({
|
|
15
15
|
children: r,
|
|
16
16
|
onCreate: i,
|
|
17
|
-
onClick:
|
|
18
|
-
active:
|
|
17
|
+
onClick: t,
|
|
18
|
+
active: o,
|
|
19
19
|
items: c,
|
|
20
20
|
workspaceLink: s,
|
|
21
|
-
settingsLink:
|
|
22
|
-
membersLink:
|
|
21
|
+
settingsLink: p,
|
|
22
|
+
membersLink: y,
|
|
23
23
|
isAnonym: I,
|
|
24
24
|
publicMode: W
|
|
25
25
|
}) => {
|
|
26
|
-
const { t:
|
|
27
|
-
return I || W ? /* @__PURE__ */ e(l, { w: "100%", justify:
|
|
26
|
+
const { t: C } = u("workspaceMenu"), { isMobile: w } = B(), [j, h] = A(!1);
|
|
27
|
+
return I || W ? /* @__PURE__ */ e(l, { w: "100%", justify: w ? "start" : "center", children: /* @__PURE__ */ e("a", { href: "/", children: /* @__PURE__ */ e(
|
|
28
28
|
O,
|
|
29
29
|
{
|
|
30
|
-
minified: !
|
|
31
|
-
w:
|
|
30
|
+
minified: !w,
|
|
31
|
+
w: w ? 65 : 24,
|
|
32
32
|
isLink: !1
|
|
33
33
|
}
|
|
34
|
-
) }) }) : /* @__PURE__ */ e(M, { children: /* @__PURE__ */
|
|
35
|
-
|
|
34
|
+
) }) }) : /* @__PURE__ */ e(M, { children: /* @__PURE__ */ n(
|
|
35
|
+
m,
|
|
36
36
|
{
|
|
37
37
|
opened: j,
|
|
38
|
-
onChange:
|
|
38
|
+
onChange: h,
|
|
39
39
|
position: "right-start",
|
|
40
40
|
keepMounted: !1,
|
|
41
41
|
clickOutsideEvents: ["mousedown", "click"],
|
|
42
42
|
offset: 17,
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */ e(
|
|
45
|
-
/* @__PURE__ */ e(x, { size: 30, workspace:
|
|
46
|
-
/* @__PURE__ */ e(l, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(
|
|
44
|
+
/* @__PURE__ */ e(m.Target, { children: r ?? /* @__PURE__ */ n(l, { onClick: () => h((g) => !g), children: [
|
|
45
|
+
/* @__PURE__ */ e(x, { size: 30, workspace: o }),
|
|
46
|
+
/* @__PURE__ */ e(l, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(P, { label: o.workspaceName, children: /* @__PURE__ */ e(d, { size: "md", truncate: !0, children: o?.workspaceName || C("noName") }) }) })
|
|
47
47
|
] }) }),
|
|
48
|
-
/* @__PURE__ */ e(
|
|
48
|
+
/* @__PURE__ */ e(m.Dropdown, { w: 338, children: /* @__PURE__ */ n(a, { gap: 6, children: [
|
|
49
49
|
/* @__PURE__ */ e(
|
|
50
50
|
H,
|
|
51
51
|
{
|
|
52
|
-
active:
|
|
52
|
+
active: o,
|
|
53
53
|
workspaceLink: s,
|
|
54
|
-
settingsLink:
|
|
55
|
-
membersLink:
|
|
56
|
-
onClose: () =>
|
|
54
|
+
settingsLink: p,
|
|
55
|
+
membersLink: y,
|
|
56
|
+
onClose: () => h(!1)
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
|
-
/* @__PURE__ */ e(f, { px: 4, children: /* @__PURE__ */ e(
|
|
59
|
+
/* @__PURE__ */ e(f, { px: 4, children: /* @__PURE__ */ e(m.Divider, {}) }),
|
|
60
60
|
/* @__PURE__ */ e(
|
|
61
61
|
$,
|
|
62
62
|
{
|
|
63
63
|
onCreate: i,
|
|
64
|
-
onClick:
|
|
64
|
+
onClick: t,
|
|
65
65
|
items: c.filter(
|
|
66
|
-
(g) => g.workspaceId !==
|
|
66
|
+
(g) => g.workspaceId !== o?.workspaceId
|
|
67
67
|
),
|
|
68
|
-
onClose: () =>
|
|
68
|
+
onClose: () => h(!1)
|
|
69
69
|
}
|
|
70
70
|
)
|
|
71
71
|
] }) })
|
|
@@ -75,18 +75,18 @@ const ne = ({
|
|
|
75
75
|
}, H = ({
|
|
76
76
|
active: r,
|
|
77
77
|
workspaceLink: i,
|
|
78
|
-
settingsLink:
|
|
79
|
-
membersLink:
|
|
78
|
+
settingsLink: t,
|
|
79
|
+
membersLink: o,
|
|
80
80
|
onClose: c
|
|
81
81
|
}) => {
|
|
82
|
-
const { t: s } =
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
82
|
+
const { t: s } = u("workspaceMenu"), p = D();
|
|
83
|
+
return /* @__PURE__ */ n(a, { p: 4, pb: 5, gap: 12, children: [
|
|
84
|
+
/* @__PURE__ */ n(l, { gap: 10, children: [
|
|
85
85
|
/* @__PURE__ */ e(x, { size: 48, workspace: r }),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */ e(
|
|
88
|
-
/* @__PURE__ */ e(
|
|
89
|
-
r.totalMembers ? /* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ n(a, { gap: 0, miw: 0, children: [
|
|
87
|
+
/* @__PURE__ */ e(d, { truncate: !0, size: "md", fw: 500, c: "var(--mantine-color-bright)", children: r.workspaceName || s("noName") }),
|
|
88
|
+
/* @__PURE__ */ e(d, { c: "gray", size: "sm", fw: 500, component: "span", children: /* @__PURE__ */ n(l, { gap: 6, component: "span", children: [
|
|
89
|
+
r.totalMembers ? /* @__PURE__ */ n(M, { children: [
|
|
90
90
|
s("member", { count: r.totalMembers }),
|
|
91
91
|
/* @__PURE__ */ e(
|
|
92
92
|
f,
|
|
@@ -99,34 +99,34 @@ const ne = ({
|
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
] }) : null,
|
|
102
|
-
|
|
102
|
+
p.has("planBadges") && s(`plans.${r.plan}`)
|
|
103
103
|
] }) })
|
|
104
104
|
] })
|
|
105
105
|
] }),
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */
|
|
106
|
+
p.has("plans") && /* @__PURE__ */ e(R, { active: r }),
|
|
107
|
+
/* @__PURE__ */ n(l, { children: [
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
|
-
|
|
109
|
+
b,
|
|
110
110
|
{
|
|
111
111
|
flex: 1,
|
|
112
|
-
component:
|
|
112
|
+
component: z,
|
|
113
113
|
variant: "default",
|
|
114
114
|
size: "sm",
|
|
115
|
-
leftSection: /* @__PURE__ */ e(k, { size: 16, icon:
|
|
116
|
-
to: i ??
|
|
115
|
+
leftSection: /* @__PURE__ */ e(k, { size: 16, icon: L }),
|
|
116
|
+
to: i ?? t ?? "",
|
|
117
117
|
onClick: c,
|
|
118
118
|
children: s("settings")
|
|
119
119
|
}
|
|
120
120
|
),
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
o && p.has("inviteUsers") && /* @__PURE__ */ e(
|
|
122
|
+
b,
|
|
123
123
|
{
|
|
124
124
|
flex: 1,
|
|
125
|
-
component:
|
|
125
|
+
component: z,
|
|
126
126
|
variant: "default",
|
|
127
127
|
size: "sm",
|
|
128
|
-
leftSection: /* @__PURE__ */ e(k, { size: 16, icon:
|
|
129
|
-
to:
|
|
128
|
+
leftSection: /* @__PURE__ */ e(k, { size: 16, icon: N }),
|
|
129
|
+
to: o,
|
|
130
130
|
onClick: c,
|
|
131
131
|
children: s("members")
|
|
132
132
|
}
|
|
@@ -136,35 +136,35 @@ const ne = ({
|
|
|
136
136
|
}, R = ({
|
|
137
137
|
active: r
|
|
138
138
|
}) => {
|
|
139
|
-
const { t: i } =
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
139
|
+
const { t: i } = u("workspaceMenu"), t = (r?.storageUsedKb || 0) / (r?.storageLimitKb || 1), o = F(t * 100);
|
|
140
|
+
return /* @__PURE__ */ n(a, { gap: 4, w: "100%", children: [
|
|
141
|
+
/* @__PURE__ */ n(l, { justify: "space-between", children: [
|
|
142
|
+
/* @__PURE__ */ n(d, { size: "sm", fw: 500, children: [
|
|
143
143
|
i("usedStorage"),
|
|
144
144
|
": ",
|
|
145
|
-
|
|
145
|
+
o,
|
|
146
146
|
"%"
|
|
147
147
|
] }),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
|
|
148
|
+
/* @__PURE__ */ n(d, { size: "sm", fw: 500, c: "gray", children: [
|
|
149
|
+
S(r?.storageUsedKb),
|
|
150
150
|
" ",
|
|
151
151
|
i("of"),
|
|
152
152
|
" ",
|
|
153
|
-
|
|
153
|
+
S(r?.storageLimitKb)
|
|
154
154
|
] })
|
|
155
155
|
] }),
|
|
156
|
-
/* @__PURE__ */ e(
|
|
156
|
+
/* @__PURE__ */ e(T, { h: 4, value: t * 100 })
|
|
157
157
|
] });
|
|
158
158
|
}, $ = ({
|
|
159
159
|
onCreate: r,
|
|
160
160
|
onClick: i,
|
|
161
|
-
items:
|
|
162
|
-
onClose:
|
|
161
|
+
items: t,
|
|
162
|
+
onClose: o
|
|
163
163
|
}) => {
|
|
164
|
-
const { t: c } =
|
|
165
|
-
return /* @__PURE__ */
|
|
166
|
-
|
|
167
|
-
/* @__PURE__ */ e(
|
|
164
|
+
const { t: c } = u("workspaceMenu");
|
|
165
|
+
return /* @__PURE__ */ n(a, { gap: 12, children: [
|
|
166
|
+
t?.length > 0 && /* @__PURE__ */ n(a, { gap: 0, children: [
|
|
167
|
+
/* @__PURE__ */ e(m.Label, { fw: 600, px: 4, py: 5, fz: "sm", children: c("switchWorkspace") }),
|
|
168
168
|
/* @__PURE__ */ e(f, { w: "100%", px: 4, children: /* @__PURE__ */ e(
|
|
169
169
|
U.Autosize,
|
|
170
170
|
{
|
|
@@ -175,13 +175,13 @@ const ne = ({
|
|
|
175
175
|
type: "always",
|
|
176
176
|
styles: {
|
|
177
177
|
viewport: {
|
|
178
|
-
paddingRight:
|
|
178
|
+
paddingRight: t.length > 4 ? 12 : 0
|
|
179
179
|
},
|
|
180
180
|
content: {
|
|
181
181
|
minWidth: 0
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
|
-
children: /* @__PURE__ */ e(a, { gap: 6, miw: 0, children:
|
|
184
|
+
children: /* @__PURE__ */ e(a, { gap: 6, miw: 0, children: t.map((s) => /* @__PURE__ */ e(
|
|
185
185
|
E,
|
|
186
186
|
{
|
|
187
187
|
workspace: s,
|
|
@@ -193,15 +193,15 @@ const ne = ({
|
|
|
193
193
|
) })
|
|
194
194
|
] }),
|
|
195
195
|
/* @__PURE__ */ e(f, { p: 4, pt: 0, children: /* @__PURE__ */ e(
|
|
196
|
-
|
|
196
|
+
b,
|
|
197
197
|
{
|
|
198
198
|
fullWidth: !0,
|
|
199
199
|
variant: "default",
|
|
200
200
|
size: "sm",
|
|
201
201
|
onClick: () => {
|
|
202
|
-
r?.(),
|
|
202
|
+
r?.(), o?.();
|
|
203
203
|
},
|
|
204
|
-
leftSection: /* @__PURE__ */ e(k, { icon:
|
|
204
|
+
leftSection: /* @__PURE__ */ e(k, { icon: K, size: 16 }),
|
|
205
205
|
children: c("newWorkspace")
|
|
206
206
|
}
|
|
207
207
|
) })
|
|
@@ -209,5 +209,5 @@ const ne = ({
|
|
|
209
209
|
};
|
|
210
210
|
export {
|
|
211
211
|
H as ActiveWorkspace,
|
|
212
|
-
|
|
212
|
+
oe as WorkspaceMenu
|
|
213
213
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FrontTable.d.ts","sourceRoot":"","sources":["../../../src/components/table/FrontTable.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FrontTable.d.ts","sourceRoot":"","sources":["../../../src/components/table/FrontTable.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;gBAAV,CAAA;iBACA,CAAC;gBACA,CAAC;;CAOb,CAAC;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColumnsResizing.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useColumnsResizing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAW9C,eAAO,MAAM,kBAAkB,GAAI,UAAU,gBAAgB,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useColumnsResizing.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useColumnsResizing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAW9C,eAAO,MAAM,kBAAkB,GAAI,UAAU,gBAAgB,CAAC,OAAO,CAAC;oBAczD,GAAG;;CAqEf,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { AlertCircleIcon as d, File01Icon as s, Xls01Icon as a, HtmlFile01Icon as m, Doc01Icon as e, Pdf01Icon as u,
|
|
2
|
+
import { AlertCircleIcon as d, File01Icon as s, Xls01Icon as a, HtmlFile01Icon as m, Doc01Icon as e, Pdf01Icon as u, MpFour01Icon as p, Zip01Icon as h, Rar01Icon as g } from "@hugeicons/core-free-icons";
|
|
3
3
|
import { HugeiconsIcon as E } from "@hugeicons/react";
|
|
4
4
|
import { ThemeIcon as F, Loader as B } from "@mantine/core";
|
|
5
5
|
const M = (f, C, c = 16) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getFileType: (mimeType: string,
|
|
1
|
+
export declare const getFileType: (mimeType: string, groupByCategory?: boolean) => "other" | "presentation" | "documents" | "folder" | "media" | "xlsx" | "docx" | "pptx" | "diagram" | "archieve";
|
|
2
2
|
//# sourceMappingURL=getFileType.d.ts.map
|