@layers-app/shared 0.2.5 → 0.2.7
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/flags/es.svg.js +4 -0
- package/dist/assets/svg/flags/ru.svg.js +4 -0
- package/dist/assets/svg/flags/us.svg.js +4 -0
- package/dist/assets/svg/globeIcon.svg.js +5 -0
- package/dist/assets/svg/socials/github.svg.js +5 -0
- package/dist/assets/svg/socials/instagram.svg.js +5 -0
- package/dist/assets/svg/socials/x.svg.js +5 -0
- package/dist/assets/svg/socials/youtube.svg.js +5 -0
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +4 -4
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -22
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +25 -25
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +40 -40
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.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 +49 -43
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -2
- package/dist/components/AppContainer/types.d.ts +2 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts +33 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +161 -110
- package/dist/components/FilePicker/FilePicker.module.css.js +9 -7
- package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts +22 -0
- package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts.map +1 -0
- package/dist/components/FilePicker/FilePickerGoogleDrive.js +86 -0
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +69 -52
- package/dist/components/FormViewer/components/OneSlideLayput.js +39 -37
- package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useCreateFormContext.js +10 -10
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +15 -15
- package/dist/components/FormViewer/hooks/useInterpolateText.js +3 -3
- package/dist/components/FormViewer/store/formStore.js +3 -3
- package/dist/components/FormViewer/store/formStoreApi.js +13 -13
- package/dist/components/FormViewer/store/selectors.js +1 -1
- package/dist/components/GroupAvatar/index.d.ts +1 -0
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +9 -8
- package/dist/components/ImageCropper/ImageCropper.d.ts +19 -0
- package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -0
- package/dist/components/ImageCropper/ImageCropper.js +358 -0
- package/dist/components/ImageCropper/ImageCropper.module.css.js +51 -0
- package/dist/components/ImageCropper/cropUtils.d.ts +22 -0
- package/dist/components/ImageCropper/cropUtils.d.ts.map +1 -0
- package/dist/components/ImageCropper/cropUtils.js +42 -0
- package/dist/components/ImageCropper/index.d.ts +4 -0
- package/dist/components/ImageCropper/index.d.ts.map +1 -0
- package/dist/components/ImageCropper/useCropInteraction.d.ts +28 -0
- package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -0
- package/dist/components/ImageCropper/useCropInteraction.js +76 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +21 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +73 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +19 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +60 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +21 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.js +35 -0
- package/dist/components/IntegrationFlowAnimation/icons/index.d.ts +4 -0
- package/dist/components/IntegrationFlowAnimation/icons/index.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/index.d.ts +5 -0
- package/dist/components/IntegrationFlowAnimation/index.d.ts.map +1 -0
- package/dist/components/LanguagePicker/LanguagePicker.d.ts +2 -1
- package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +44 -31
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +6 -4
- package/dist/components/MediaLibrary/MediaLibrary.d.ts +3 -0
- package/dist/components/MediaLibrary/MediaLibrary.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibrary.js +93 -0
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +17 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts +8 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.js +22 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts +12 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.js +52 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts +9 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.js +29 -0
- package/dist/components/MediaLibrary/index.d.ts +4 -0
- package/dist/components/MediaLibrary/index.d.ts.map +1 -0
- package/dist/components/MediaLibrary/types.d.ts +31 -0
- package/dist/components/MediaLibrary/types.d.ts.map +1 -0
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +53 -50
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NoData/NoData.d.ts +6 -1
- package/dist/components/NoData/NoData.d.ts.map +1 -1
- package/dist/components/NoData/NoData.js +85 -82
- package/dist/components/SettingsSection/index.d.ts +12 -0
- package/dist/components/SettingsSection/index.d.ts.map +1 -0
- package/dist/components/SettingsSection/index.js +36 -0
- package/dist/components/SettingsSection/styles.module.css.js +7 -0
- package/dist/components/SocialLinkRow/index.d.ts +11 -0
- package/dist/components/SocialLinkRow/index.d.ts.map +1 -0
- package/dist/components/SocialLinkRow/index.js +131 -0
- package/dist/components/SortableList/components/SortableItem/SortableItem.js +3 -3
- package/dist/components/StorageUsageProgress/index.js +26 -24
- package/dist/components/TimezonePicker/index.d.ts +9 -0
- package/dist/components/TimezonePicker/index.d.ts.map +1 -0
- package/dist/components/TimezonePicker/index.js +91 -0
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +11 -10
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +18 -17
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +70 -69
- package/dist/components/modals/RemoveConfirmModal.js +1 -1
- package/dist/components/table/components/TableHeaders.js +3 -3
- package/dist/components/table/components/TablePanel.js +1 -1
- package/dist/components/table/helpers/columns.js +3 -3
- package/dist/components/table/hooks/TableProvider.js +3 -3
- package/dist/components/table/selectors.js +6 -6
- package/dist/helpers/getFileType.d.ts +1 -2
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +5 -6
- package/dist/helpers/showFeatureFeedback.d.ts +16 -0
- package/dist/helpers/showFeatureFeedback.d.ts.map +1 -0
- package/dist/helpers/showFeatureFeedback.js +109 -0
- package/dist/helpers/showFeatureFeedback.module.css.js +9 -0
- package/dist/helpers/showNotifications.d.ts +14 -3
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +120 -61
- package/dist/helpers/showNotifications.module.css.js +29 -0
- package/dist/helpers/timezones.d.ts +12 -0
- package/dist/helpers/timezones.d.ts.map +1 -0
- package/dist/helpers/timezones.js +59 -0
- package/dist/hooks/useFeatureFeedback.d.ts +23 -0
- package/dist/hooks/useFeatureFeedback.d.ts.map +1 -0
- package/dist/hooks/useFeatureFeedback.js +48 -0
- package/dist/hooks/useNumberQueryParam.js +3 -3
- package/dist/hooks/useVideoUploadGuard.d.ts +2 -0
- package/dist/hooks/useVideoUploadGuard.d.ts.map +1 -0
- package/dist/hooks/useVideoUploadGuard.js +24 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +461 -406
- package/dist/lang/locales/ui_en.json.js +24 -22
- package/dist/lang/locales/ui_es.json.js +20 -18
- package/dist/lang/locales/ui_ru.json.js +20 -18
- package/dist/lib/contentImport/index.d.ts +4 -0
- package/dist/lib/contentImport/index.d.ts.map +1 -0
- package/dist/lib/contentImport/lexicalSerializer.d.ts +19 -0
- package/dist/lib/contentImport/lexicalSerializer.d.ts.map +1 -0
- package/dist/lib/contentImport/lexicalSerializer.js +215 -0
- package/dist/lib/contentImport/types.d.ts +161 -0
- package/dist/lib/contentImport/types.d.ts.map +1 -0
- package/dist/lib/contentImport/utils.d.ts +35 -0
- package/dist/lib/contentImport/utils.d.ts.map +1 -0
- package/dist/lib/contentImport/utils.js +145 -0
- package/dist/lib/layersVisitData.d.ts +13 -0
- package/dist/lib/layersVisitData.d.ts.map +1 -0
- package/dist/lib/layersVisitData.js +37 -0
- package/dist/node_modules/countries-and-timezones/esm/index.js +4031 -0
- package/dist/store/plansModal.d.ts.map +1 -1
- package/dist/store/plansModal.js +8 -7
- package/dist/utils/formatStorage.d.ts +7 -1
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +10 -5
- package/dist/utils/getCroppedBlob.d.ts +3 -0
- package/dist/utils/getCroppedBlob.d.ts.map +1 -0
- package/dist/utils/getCroppedBlob.js +21 -0
- package/package.json +1 -1
- package/dist/assets/images/flags/es.svg.js +0 -4
- package/dist/assets/images/flags/ru.svg.js +0 -4
- package/dist/assets/images/flags/us.svg.js +0 -4
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts +0 -2
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +0 -1
- package/dist/components/PaymentSuccess/PaymentSuccess.js +0 -41
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_8583_5305)" }, /* @__PURE__ */ e.createElement("path", { d: "M9.70067 7.05357L15.7687 0H14.3308L9.0619 6.12452L4.85368 0H0L6.36365 9.26135L0 16.6581H1.43801L7.00205 10.1904L11.4462 16.6581H16.2999L9.70031 7.05357H9.70067ZM7.73112 9.34295L7.08635 8.42073L1.95614 1.08251H4.16483L8.30497 7.00469L8.94974 7.92691L14.3314 15.6248H12.1227L7.73112 9.3433V9.34295Z", fill: "black" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_8583_5305" }, /* @__PURE__ */ e.createElement("rect", { width: 16.2999, height: 16.6667, fill: "white" }))));
|
|
3
|
+
export {
|
|
4
|
+
l as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 17 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_8583_6844)" }, /* @__PURE__ */ e.createElement("path", { d: "M6.66652 8.33336L10.9853 5.82732L6.66652 3.33346V8.33336ZM1.8248 11.3139C1.10702 11.1192 0.547424 10.5474 0.340624 9.84186C0 8.54016 0 5.82732 0 5.82732C0 5.82732 0 3.11447 0.340624 1.82496C0.547424 1.10723 1.10702 0.547582 1.8248 0.352955C3.11431 0.000158001 8.32102 0.000158001 8.32102 0.000158001C8.32102 0.000158001 13.5399 0.000158001 14.8295 0.352955C15.5594 0.547582 16.1068 1.10723 16.3015 1.82496C16.6542 3.11447 16.6542 5.82732 16.6542 5.82732C16.6542 5.82732 16.6542 8.54016 16.3015 9.84186C16.1068 10.5474 15.5594 11.1192 14.8295 11.3139C13.5399 11.6667 8.32102 11.6667 8.32102 11.6667C8.32102 11.6667 3.11431 11.6667 1.8248 11.3139Z", fill: "#ED1838" }), /* @__PURE__ */ e.createElement("path", { d: "M6.6665 8.33334L10.9852 5.8273L6.6665 3.33344V8.33334Z", fill: "white" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_8583_6844" }, /* @__PURE__ */ e.createElement("rect", { width: 16.6541, height: 11.6667, fill: "white" }))));
|
|
3
|
+
export {
|
|
4
|
+
l as default
|
|
5
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSidebarButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/AppSidebarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAMtD,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"AppSidebarButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/AppSidebarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAMtD,KAAK,qBAAqB,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,kHAqC3B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
|
-
import { Stack as p, ActionIcon as
|
|
3
|
+
import { Stack as p, ActionIcon as s, Text as l } from "@mantine/core";
|
|
4
4
|
import d from "../AppContainer.module.css.js";
|
|
5
5
|
const h = c(({ title: r, icon: a, active: e, onClick: o }, i) => /* @__PURE__ */ n(
|
|
6
6
|
p,
|
|
@@ -12,7 +12,7 @@ const h = c(({ title: r, icon: a, active: e, onClick: o }, i) => /* @__PURE__ */
|
|
|
12
12
|
onClick: o,
|
|
13
13
|
children: [
|
|
14
14
|
/* @__PURE__ */ t(
|
|
15
|
-
|
|
15
|
+
s,
|
|
16
16
|
{
|
|
17
17
|
size: "lg",
|
|
18
18
|
variant: "subtle",
|
|
@@ -22,8 +22,8 @@ const h = c(({ title: r, icon: a, active: e, onClick: o }, i) => /* @__PURE__ */
|
|
|
22
22
|
children: a
|
|
23
23
|
}
|
|
24
24
|
),
|
|
25
|
-
/* @__PURE__ */ t(
|
|
26
|
-
|
|
25
|
+
r && /* @__PURE__ */ t(
|
|
26
|
+
l,
|
|
27
27
|
{
|
|
28
28
|
fz: 10,
|
|
29
29
|
fw: 500,
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { matchPath as
|
|
4
|
-
import { More01Icon as
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { ScrollArea as
|
|
2
|
+
import { useTranslation as d } from "react-i18next";
|
|
3
|
+
import { matchPath as h } from "react-router-dom";
|
|
4
|
+
import { More01Icon as f } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as u } from "@hugeicons/react";
|
|
6
|
+
import { ScrollArea as b, Stack as w, Menu as e } from "@mantine/core";
|
|
7
7
|
import { useAppContainerDataStore as S } from "../../hooks/useAppContainerDataStore.js";
|
|
8
8
|
import { appContainerStore as g } from "../../hooks/useAppContainerStore.js";
|
|
9
|
-
import { AppSidebarButton as
|
|
10
|
-
import { MoreMenu as
|
|
11
|
-
const
|
|
12
|
-
const { t: p } =
|
|
9
|
+
import { AppSidebarButton as a } from "../AppSidebarButton.js";
|
|
10
|
+
import { MoreMenu as A } from "../menus/MoreMenu.js";
|
|
11
|
+
const L = () => {
|
|
12
|
+
const { t: p } = d("appContainer"), { hiddenTools: l } = g.useStore(), { tools: i, publicMode: s, navbarDisplayFormat: c } = S(), n = c === "iconsAndLabels";
|
|
13
13
|
return /* @__PURE__ */ r(
|
|
14
|
-
|
|
14
|
+
b,
|
|
15
15
|
{
|
|
16
16
|
w: "var(--apps-sidebar-width)",
|
|
17
17
|
style: { borderTop: "1px solid var(--app-shell-border)" },
|
|
18
18
|
py: 8,
|
|
19
|
-
children: /* @__PURE__ */ t(
|
|
20
|
-
i?.filter((o) => !
|
|
21
|
-
const
|
|
19
|
+
children: /* @__PURE__ */ t(w, { gap: 8, align: "center", children: [
|
|
20
|
+
i?.filter((o) => !l.includes(o.id))?.map((o) => {
|
|
21
|
+
const m = !!h(
|
|
22
22
|
{ path: o.path, end: !1 },
|
|
23
23
|
window.location.pathname
|
|
24
24
|
);
|
|
25
25
|
return /* @__PURE__ */ r(
|
|
26
|
-
|
|
26
|
+
a,
|
|
27
27
|
{
|
|
28
|
-
title: o.name,
|
|
28
|
+
title: n ? o.name : null,
|
|
29
29
|
icon: o.icon(),
|
|
30
|
-
active:
|
|
30
|
+
active: m,
|
|
31
31
|
onClick: o.onClick
|
|
32
32
|
},
|
|
33
33
|
o.id
|
|
34
34
|
);
|
|
35
35
|
}),
|
|
36
|
-
!
|
|
36
|
+
!s && i.length > 1 && /* @__PURE__ */ t(e, { position: "right", closeOnItemClick: !1, children: [
|
|
37
37
|
/* @__PURE__ */ r(e.Target, { children: /* @__PURE__ */ r(
|
|
38
|
-
|
|
38
|
+
a,
|
|
39
39
|
{
|
|
40
|
-
title: p("more"),
|
|
41
|
-
icon: /* @__PURE__ */ r(
|
|
40
|
+
title: n ? p("more") : null,
|
|
41
|
+
icon: /* @__PURE__ */ r(u, { icon: f, size: 20 })
|
|
42
42
|
}
|
|
43
43
|
) }),
|
|
44
|
-
/* @__PURE__ */ r(e.Dropdown, { miw: 240, children: /* @__PURE__ */ r(
|
|
44
|
+
/* @__PURE__ */ r(e.Dropdown, { miw: 240, children: /* @__PURE__ */ r(A, {}) })
|
|
45
45
|
] })
|
|
46
46
|
] })
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
L as AppsSection
|
|
52
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,+
|
|
1
|
+
{"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,+CAwDtB,CAAC"}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { Search01Icon as
|
|
4
|
-
import { HugeiconsIcon as
|
|
5
|
-
import { Stack as
|
|
6
|
-
import { isFeature as
|
|
7
|
-
import { openSearchModal as
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as m } from "react-i18next";
|
|
3
|
+
import { Search01Icon as f, Notification02Icon as d } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as p } from "@hugeicons/react";
|
|
5
|
+
import { Stack as h, ActionIcon as u, Tooltip as w, Menu as t } from "@mantine/core";
|
|
6
|
+
import { isFeature as b } from "../../../../helpers/feature.js";
|
|
7
|
+
import { openSearchModal as v } from "../../../../store/searchModal.js";
|
|
8
8
|
import { Notification as k } from "../../../Notification/Notification.js";
|
|
9
|
-
import { WorkspaceAvatar as
|
|
10
|
-
import { WorkspaceMenu as
|
|
11
|
-
import { useAppContainerDataStore as
|
|
12
|
-
import { AppSidebarButton as
|
|
9
|
+
import { WorkspaceAvatar as g } from "../../../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
10
|
+
import { WorkspaceMenu as A } from "../../../WorkspaceMenu/WorkspaceMenu.js";
|
|
11
|
+
import { useAppContainerDataStore as y } from "../../hooks/useAppContainerDataStore.js";
|
|
12
|
+
import { AppSidebarButton as s } from "../AppSidebarButton.js";
|
|
13
13
|
const W = () => {
|
|
14
|
-
const { t: e } =
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
const { t: e } = m("appContainer"), { workspaceMenu: i, isAnonym: r, publicMode: n, navbarDisplayFormat: l } = y(), a = l === "iconsAndLabels";
|
|
15
|
+
return /* @__PURE__ */ c(h, { gap: 8, align: "center", pb: 8, children: [
|
|
16
16
|
/* @__PURE__ */ o(
|
|
17
|
-
|
|
17
|
+
A,
|
|
18
18
|
{
|
|
19
19
|
...i,
|
|
20
20
|
isAnonym: r,
|
|
21
21
|
publicMode: n,
|
|
22
22
|
children: /* @__PURE__ */ o(
|
|
23
|
-
|
|
23
|
+
u,
|
|
24
24
|
{
|
|
25
25
|
size: "lg",
|
|
26
26
|
variant: "transparent",
|
|
27
27
|
style: { overflow: "visible" },
|
|
28
28
|
children: /* @__PURE__ */ o(
|
|
29
|
-
|
|
29
|
+
w,
|
|
30
30
|
{
|
|
31
31
|
label: i.active?.workspaceName,
|
|
32
32
|
disabled: !i.active?.workspaceName,
|
|
33
33
|
openDelay: 400,
|
|
34
34
|
position: "right",
|
|
35
35
|
withArrow: !0,
|
|
36
|
-
children: /* @__PURE__ */ o(
|
|
36
|
+
children: /* @__PURE__ */ o(g, { workspace: i.active, size: 36 })
|
|
37
37
|
}
|
|
38
38
|
)
|
|
39
39
|
}
|
|
@@ -41,21 +41,21 @@ const W = () => {
|
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
43
|
!r && !n && /* @__PURE__ */ o(
|
|
44
|
-
|
|
44
|
+
s,
|
|
45
45
|
{
|
|
46
|
-
title: e("search"),
|
|
47
|
-
icon: /* @__PURE__ */ o(
|
|
46
|
+
title: a ? e("search") : null,
|
|
47
|
+
icon: /* @__PURE__ */ o(p, { icon: f, size: 20 }),
|
|
48
48
|
onClick: () => {
|
|
49
|
-
|
|
49
|
+
v();
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
|
-
|
|
53
|
+
b() && !r && /* @__PURE__ */ c(t, { position: "right-start", children: [
|
|
54
54
|
/* @__PURE__ */ o(t.Target, { children: /* @__PURE__ */ o(
|
|
55
|
-
|
|
55
|
+
s,
|
|
56
56
|
{
|
|
57
|
-
title: e("activity"),
|
|
58
|
-
icon: /* @__PURE__ */ o(
|
|
57
|
+
title: a ? e("activity") : null,
|
|
58
|
+
icon: /* @__PURE__ */ o(p, { icon: d, size: 20 })
|
|
59
59
|
}
|
|
60
60
|
) }),
|
|
61
61
|
/* @__PURE__ */ o(t.Dropdown, { px: 4, py: 0, w: 440, children: /* @__PURE__ */ o(k, {}) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,WAAW,GAAI,+BAGzB;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,
|
|
1
|
+
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,WAAW,GAAI,+BAGzB;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,4CA0FA,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { Link as
|
|
4
|
-
import { Delete03Icon as
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { Stack as p, Menu as e, Tooltip as
|
|
7
|
-
import { IconUserCircle as
|
|
8
|
-
import { useTrashModalStore as
|
|
9
|
-
import { useAppContainerDataStore as
|
|
10
|
-
import { AppSidebarButton as
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as I } from "react-i18next";
|
|
3
|
+
import { Link as S } from "react-router-dom";
|
|
4
|
+
import { Delete03Icon as x, UserAdd02Icon as A, HelpCircleIcon as D } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as l } from "@hugeicons/react";
|
|
6
|
+
import { Stack as p, Menu as e, Tooltip as z, ActionIcon as C } from "@mantine/core";
|
|
7
|
+
import { IconUserCircle as v } from "@tabler/icons-react";
|
|
8
|
+
import { useTrashModalStore as y, openTrashModal as L, closeTrashModal as U } from "../../../../store/trashModal.js";
|
|
9
|
+
import { useAppContainerDataStore as f } from "../../hooks/useAppContainerDataStore.js";
|
|
10
|
+
import { AppSidebarButton as c } from "../AppSidebarButton.js";
|
|
11
11
|
import { HelpMenu as j } from "../menus/HelpMenu/HelpMenu.js";
|
|
12
|
-
import { MenuUserDropdown as
|
|
13
|
-
const
|
|
14
|
-
trashMenu:
|
|
15
|
-
onInviteClick:
|
|
12
|
+
import { MenuUserDropdown as H } from "../menus/UserMenu/MenuUserDropdown.js";
|
|
13
|
+
const R = ({
|
|
14
|
+
trashMenu: u,
|
|
15
|
+
onInviteClick: a
|
|
16
16
|
}) => {
|
|
17
|
-
const { t:
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
const { t: r } = I("appContainer"), { user: d, isAnonym: t, userMenuItems: g, publicMode: b, navbarDisplayFormat: w } = f(), M = y((n) => n.opened), h = !t && !b && d.role !== "mG", T = f((n) => n.isSaas), m = !t && T && a, s = w === "iconsAndLabels";
|
|
18
|
+
return /* @__PURE__ */ i(
|
|
19
19
|
p,
|
|
20
20
|
{
|
|
21
21
|
style: { borderTop: "1px solid var(--app-shell-border)" },
|
|
@@ -24,50 +24,50 @@ const N = ({
|
|
|
24
24
|
gap: 16,
|
|
25
25
|
align: "center",
|
|
26
26
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ i(
|
|
28
28
|
p,
|
|
29
29
|
{
|
|
30
|
-
justify: !
|
|
30
|
+
justify: !h && !m ? "end" : "space-between",
|
|
31
31
|
gap: 8,
|
|
32
32
|
flex: 1,
|
|
33
33
|
children: [
|
|
34
|
-
|
|
34
|
+
h && /* @__PURE__ */ i(
|
|
35
35
|
e,
|
|
36
36
|
{
|
|
37
37
|
position: "right",
|
|
38
38
|
offset: 6,
|
|
39
39
|
width: 360,
|
|
40
|
-
opened:
|
|
41
|
-
onChange: (
|
|
42
|
-
|
|
40
|
+
opened: M,
|
|
41
|
+
onChange: (n) => {
|
|
42
|
+
n ? L() : U();
|
|
43
43
|
},
|
|
44
44
|
children: [
|
|
45
45
|
/* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(
|
|
46
|
-
|
|
46
|
+
c,
|
|
47
47
|
{
|
|
48
|
-
title:
|
|
49
|
-
icon: /* @__PURE__ */ o(
|
|
48
|
+
title: s ? r("trash") : null,
|
|
49
|
+
icon: /* @__PURE__ */ o(l, { icon: x, size: 20 })
|
|
50
50
|
}
|
|
51
51
|
) }),
|
|
52
|
-
/* @__PURE__ */ o(e.Dropdown, { children:
|
|
52
|
+
/* @__PURE__ */ o(e.Dropdown, { children: u })
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
/* @__PURE__ */ i(p, { gap: 8, children: [
|
|
57
|
+
m && /* @__PURE__ */ o(
|
|
58
|
+
c,
|
|
59
59
|
{
|
|
60
|
-
title:
|
|
61
|
-
icon: /* @__PURE__ */ o(
|
|
62
|
-
onClick:
|
|
60
|
+
title: s ? r("invite") : null,
|
|
61
|
+
icon: /* @__PURE__ */ o(l, { icon: A, size: 20 }),
|
|
62
|
+
onClick: a
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ i(e, { position: "right-end", offset: 6, width: 260, children: [
|
|
66
66
|
/* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(
|
|
67
|
-
|
|
67
|
+
c,
|
|
68
68
|
{
|
|
69
|
-
title:
|
|
70
|
-
icon: /* @__PURE__ */ o(
|
|
69
|
+
title: s ? r("help") : null,
|
|
70
|
+
icon: /* @__PURE__ */ o(l, { icon: D, size: 20 })
|
|
71
71
|
}
|
|
72
72
|
) }),
|
|
73
73
|
/* @__PURE__ */ o(e.Dropdown, { children: /* @__PURE__ */ o(j, {}) })
|
|
@@ -76,11 +76,11 @@ const N = ({
|
|
|
76
76
|
]
|
|
77
77
|
}
|
|
78
78
|
),
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
t ? /* @__PURE__ */ o(S, { to: "/login", children: /* @__PURE__ */ o(z, { label: "Log in", position: "right", children: /* @__PURE__ */ o(C, { size: "lg", variant: "light", children: /* @__PURE__ */ o(v, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
|
|
80
|
+
H,
|
|
81
81
|
{
|
|
82
82
|
user: d,
|
|
83
|
-
menuItems:
|
|
83
|
+
menuItems: g,
|
|
84
84
|
position: "right-end"
|
|
85
85
|
}
|
|
86
86
|
)
|
|
@@ -89,5 +89,5 @@ const N = ({
|
|
|
89
89
|
);
|
|
90
90
|
};
|
|
91
91
|
export {
|
|
92
|
-
|
|
92
|
+
R as UserSection
|
|
93
93
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AppContainerActionsStore, AppContainerDataStore } from '../types';
|
|
2
|
-
export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, userAgreementLink, whatsNewItems, }: AppContainerDataStore & AppContainerActionsStore) => void;
|
|
2
|
+
export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, isSaas, 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,iPAkB7B,qBAAqB,GAAG,wBAAwB,SA0ClD,CAAC"}
|
|
@@ -1,60 +1,66 @@
|
|
|
1
|
-
import { useLayoutEffect as
|
|
2
|
-
import { useAppContainerActionsStore as
|
|
3
|
-
import { useAppContainerDataStore as
|
|
4
|
-
const
|
|
1
|
+
import { useLayoutEffect as H } from "react";
|
|
2
|
+
import { useAppContainerActionsStore as J } from "./useAppContainerActionsStore.js";
|
|
3
|
+
import { useAppContainerDataStore as K } from "./useAppContainerDataStore.js";
|
|
4
|
+
const T = ({
|
|
5
5
|
user: t,
|
|
6
6
|
workspaceMenu: p,
|
|
7
|
-
tools:
|
|
8
|
-
userMenuItems:
|
|
9
|
-
notifications:
|
|
10
|
-
isAnonym:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
tools: f,
|
|
8
|
+
userMenuItems: C,
|
|
9
|
+
notifications: S,
|
|
10
|
+
isAnonym: m,
|
|
11
|
+
isSaas: o,
|
|
12
|
+
readNotificationsFunc: r,
|
|
13
|
+
publicMode: x,
|
|
14
|
+
showMessenger: A,
|
|
15
|
+
showNewMessage: E,
|
|
16
|
+
version: j,
|
|
17
|
+
updatedAt: q,
|
|
18
|
+
privacyPolicyLink: z,
|
|
19
|
+
userAgreementLink: B,
|
|
20
|
+
whatsNewItems: D,
|
|
21
|
+
navbarDisplayFormat: G
|
|
20
22
|
}) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
H(() => {
|
|
24
|
+
K.setState({
|
|
23
25
|
user: t,
|
|
24
26
|
workspaceMenu: p,
|
|
25
|
-
tools:
|
|
26
|
-
userMenuItems:
|
|
27
|
-
notifications:
|
|
28
|
-
isAnonym:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
tools: f,
|
|
28
|
+
userMenuItems: C,
|
|
29
|
+
notifications: S,
|
|
30
|
+
isAnonym: m,
|
|
31
|
+
isSaas: o,
|
|
32
|
+
publicMode: x,
|
|
33
|
+
showMessenger: A,
|
|
34
|
+
showNewMessage: E,
|
|
35
|
+
version: j,
|
|
36
|
+
updatedAt: q,
|
|
37
|
+
privacyPolicyLink: z,
|
|
38
|
+
userAgreementLink: B,
|
|
39
|
+
whatsNewItems: D,
|
|
40
|
+
navbarDisplayFormat: G
|
|
41
|
+
}), J.setState({
|
|
42
|
+
readNotificationsFunc: r
|
|
39
43
|
});
|
|
40
44
|
}, [
|
|
41
|
-
C,
|
|
42
|
-
r,
|
|
43
|
-
o,
|
|
44
45
|
m,
|
|
46
|
+
o,
|
|
47
|
+
S,
|
|
45
48
|
x,
|
|
49
|
+
r,
|
|
46
50
|
A,
|
|
47
|
-
|
|
48
|
-
t,
|
|
51
|
+
E,
|
|
49
52
|
f,
|
|
53
|
+
t,
|
|
54
|
+
C,
|
|
50
55
|
p,
|
|
51
|
-
D,
|
|
52
|
-
E,
|
|
53
|
-
a,
|
|
54
56
|
j,
|
|
55
|
-
q
|
|
57
|
+
q,
|
|
58
|
+
z,
|
|
59
|
+
B,
|
|
60
|
+
D,
|
|
61
|
+
G
|
|
56
62
|
]);
|
|
57
63
|
};
|
|
58
64
|
export {
|
|
59
|
-
|
|
65
|
+
T as useAppContainer
|
|
60
66
|
};
|
|
@@ -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,oFAgClC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { create as e } from "zustand";
|
|
2
|
-
const
|
|
2
|
+
const s = e(() => ({
|
|
3
3
|
tools: [],
|
|
4
4
|
user: {
|
|
5
5
|
avatar: "",
|
|
@@ -14,6 +14,7 @@ const a = e(() => ({
|
|
|
14
14
|
privacyPolicyLink: "",
|
|
15
15
|
userAgreementLink: "",
|
|
16
16
|
userMenuItems: null,
|
|
17
|
+
navbarDisplayFormat: "iconsAndLabels",
|
|
17
18
|
workspaceMenu: {
|
|
18
19
|
items: [],
|
|
19
20
|
active: {
|
|
@@ -26,6 +27,7 @@ const a = e(() => ({
|
|
|
26
27
|
whatsNewItems: [],
|
|
27
28
|
notifications: [],
|
|
28
29
|
isAnonym: !1,
|
|
30
|
+
isSaas: !0,
|
|
29
31
|
publicMode: !1,
|
|
30
32
|
showMessenger: () => {
|
|
31
33
|
},
|
|
@@ -33,5 +35,5 @@ const a = e(() => ({
|
|
|
33
35
|
}
|
|
34
36
|
}));
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
s as useAppContainerDataStore
|
|
37
39
|
};
|
|
@@ -37,6 +37,7 @@ export type AppContainerDataStore = {
|
|
|
37
37
|
userMenuItems?: ReactNode;
|
|
38
38
|
notifications: UserNotifications[];
|
|
39
39
|
isAnonym: boolean;
|
|
40
|
+
isSaas: boolean;
|
|
40
41
|
publicMode: boolean;
|
|
41
42
|
showMessenger: () => void;
|
|
42
43
|
showNewMessage: (message: string) => void;
|
|
@@ -45,6 +46,7 @@ export type AppContainerDataStore = {
|
|
|
45
46
|
privacyPolicyLink: string;
|
|
46
47
|
userAgreementLink: string;
|
|
47
48
|
whatsNewItems: WhatsNewProps['items'];
|
|
49
|
+
navbarDisplayFormat: 'iconsAndLabels' | 'iconsOnly';
|
|
48
50
|
};
|
|
49
51
|
type ReadNotificationsRequest = {
|
|
50
52
|
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,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B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACtC,mBAAmB,EAAE,gBAAgB,GAAG,WAAW,CAAC;CACrD,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,qBAAqB,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAC;CACjE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShakaPlayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShakaPlayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.tsx"],"names":[],"mappings":"AASA,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,oFAO9B,SAAS,8GAgCX,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { FlexProps, FloatingPosition, PopoverProps } from '@mantine/core';
|
|
3
3
|
import { DropzoneProps, FileWithPath } from '@mantine/dropzone';
|
|
4
|
+
import type { BreadcrumbItem, MediaFile } from '../MediaLibrary/types';
|
|
4
5
|
import { FileType, ImagePickerGalleryCollection } from './types';
|
|
5
|
-
declare const baseTabsList: readonly ["gallery", "upload", "link", "unsplash", "giphy"];
|
|
6
|
+
declare const baseTabsList: readonly ["gallery", "upload", "link", "unsplash", "giphy", "googleDrive", "media"];
|
|
6
7
|
type TabType = (typeof baseTabsList)[number];
|
|
7
8
|
export type FilePickerProps = PropsWithChildren<{
|
|
8
9
|
onChange?: (v: string) => void;
|
|
@@ -23,7 +24,37 @@ export type FilePickerProps = PropsWithChildren<{
|
|
|
23
24
|
isValidMediaUrl?: (url: string) => boolean;
|
|
24
25
|
targetProps?: FlexProps;
|
|
25
26
|
onOpenedChange?: (opened: boolean) => void;
|
|
27
|
+
googleDrive?: {
|
|
28
|
+
isConnected: boolean;
|
|
29
|
+
connectedEmail?: string;
|
|
30
|
+
files: Array<{
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
mimeType: string;
|
|
34
|
+
thumbnailLink?: string;
|
|
35
|
+
iconLink?: string;
|
|
36
|
+
}>;
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
hasMore: boolean;
|
|
39
|
+
isImporting: boolean;
|
|
40
|
+
onSearch: (query: string) => void;
|
|
41
|
+
onLoadMore: () => void;
|
|
42
|
+
onSelect: (file: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
mimeType: string;
|
|
46
|
+
}, done: (url: string) => void) => void;
|
|
47
|
+
error: string | null;
|
|
48
|
+
};
|
|
49
|
+
mediaLibrary?: {
|
|
50
|
+
items: MediaFile[];
|
|
51
|
+
isLoading?: boolean;
|
|
52
|
+
breadcrumbs?: BreadcrumbItem[];
|
|
53
|
+
onFolderClick?: (folder: MediaFile) => void;
|
|
54
|
+
onBreadcrumbClick?: (crumb: BreadcrumbItem, index: number) => void;
|
|
55
|
+
onSelect?: (file: MediaFile) => void;
|
|
56
|
+
};
|
|
26
57
|
}>;
|
|
27
|
-
export declare const FilePicker: ({ onChange, onRemove, onUpload, uploading, showTabs, children, width, position, readOnly, hasImage, giphyToken, unsplashClientId, type, galleryCollection, isValidMediaUrl, popoverProps, dropZoneProps, targetProps, onOpenedChange, }: PropsWithChildren<FilePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export declare const FilePicker: ({ onChange, onRemove, onUpload, uploading, showTabs, children, width, position, readOnly, hasImage, giphyToken, unsplashClientId, type, galleryCollection, isValidMediaUrl, popoverProps, dropZoneProps, targetProps, onOpenedChange, googleDrive, mediaLibrary, }: PropsWithChildren<FilePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
28
59
|
export {};
|
|
29
60
|
//# sourceMappingURL=FilePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePicker.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/FilePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,OAAO,CAAC;AAK7D,OAAO,EAIL,SAAS,EACT,gBAAgB,EAEhB,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