@layers-app/shared 0.0.30 → 0.0.33

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.
Files changed (50) hide show
  1. package/dist/{KanbanLayout-fxFPIQAt.js → KanbanLayout-3P7jU91D.js} +1 -1
  2. package/dist/{TimeLine-Cv82PyoW.js → TimeLine-DNEQAsfm.js} +3 -3
  3. package/dist/api/giphy/slice.d.ts +1 -1
  4. package/dist/api/unsplash/slice.d.ts +1 -1
  5. package/dist/components/AlertsBlock/index.d.ts +0 -1
  6. package/dist/components/AppContainer/AppContainer.d.ts +4 -10
  7. package/dist/components/AppContainer/components/AllAppsMenu.d.ts +2 -1
  8. package/dist/components/AppContainer/components/DesktopNavbar.d.ts +1 -1
  9. package/dist/components/AppContainer/components/MobileNavbar.d.ts +1 -1
  10. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  11. package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +1 -1
  12. package/dist/components/AppContainer/types.d.ts +4 -0
  13. package/dist/components/AttachmentsGalleryModal/ImageModal.d.ts +0 -1
  14. package/dist/components/BottomDrawerWithoutHeader/index.d.ts +16 -0
  15. package/dist/components/ColorPicker/ColorPicker.d.ts +3 -3
  16. package/dist/components/CommunitiesDialog/index.d.ts +4 -0
  17. package/dist/components/EmojiPicker/EmojiPanel.d.ts +1 -1
  18. package/dist/components/EmojiPicker/IconsPanel.d.ts +1 -1
  19. package/dist/components/ErrorPage/components/Error404.d.ts +2 -18
  20. package/dist/components/FilePicker/FilePickerUpload.d.ts +1 -1
  21. package/dist/components/InfoMenu/index.d.ts +1 -0
  22. package/dist/components/Logotype.d.ts +2 -1
  23. package/dist/components/NavbarResizer/NavbarResizer.d.ts +0 -1
  24. package/dist/components/NewColorPicker/index.d.ts +1 -1
  25. package/dist/components/NewColorPicker/types.d.ts +0 -1
  26. package/dist/components/NotPublicPanel/NotPublicPanel.d.ts +11 -0
  27. package/dist/components/ProjectIcon/ProjectIcon.d.ts +6 -6
  28. package/dist/components/RichText/index.d.ts +4 -4
  29. package/dist/components/SearchFilters/components/SearchHelp.d.ts +0 -1
  30. package/dist/components/SortableList/SortableList.d.ts +4 -4
  31. package/dist/components/SortableList/components/SortableItem/SortableItem.d.ts +3 -1
  32. package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts +8 -0
  33. package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts +7 -0
  34. package/dist/components/StorageUsageEntityList/index.d.ts +2 -0
  35. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +1 -0
  36. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts +9 -1
  37. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +3 -1
  38. package/dist/helpers/generateLink.d.ts +1 -1
  39. package/dist/hooks/useNumberQueryParam.d.ts +1 -1
  40. package/dist/hooks/useSwipeDetect.d.ts +1 -1
  41. package/dist/{index-D2ft5hZL.js → index-nUzOFDJF.js} +14547 -13828
  42. package/dist/index.d.ts +7 -1
  43. package/dist/{index.esm-BzYOVL-j.js → index.esm-BKxri7AJ.js} +1 -1
  44. package/dist/index.js +119 -113
  45. package/dist/index.umd.cjs +74 -74
  46. package/dist/store/discordDialogStore.d.ts +8 -0
  47. package/dist/store/timezoneStore.d.ts +1 -1
  48. package/dist/store/workspacesOrder.d.ts +1 -1
  49. package/package.json +1 -1
  50. package/dist/store/pageUpdateCount.d.ts +0 -18
@@ -11,7 +11,7 @@ import "@mantine/form";
11
11
  import "@mantine/dropzone";
12
12
  import "@mantine/notifications";
13
13
  import "lodash-es";
14
- import { u as F, S as z } from "./index-D2ft5hZL.js";
14
+ import { u as F, S as z } from "./index-nUzOFDJF.js";
15
15
  import "react-dom";
16
16
  import "draggable-ui";
17
17
  import "@mantine/modals";
@@ -11,7 +11,7 @@ import "@mantine/form";
11
11
  import "@mantine/dropzone";
12
12
  import "@mantine/notifications";
13
13
  import "lodash-es";
14
- import { u as L } from "./index-D2ft5hZL.js";
14
+ import { u as L } from "./index-nUzOFDJF.js";
15
15
  import "react-dom";
16
16
  import "draggable-ui";
17
17
  import "@mantine/modals";
@@ -19,7 +19,7 @@ import "i18next";
19
19
  import "framer-motion";
20
20
  import "@mantine/dates";
21
21
  const R = S(
22
- () => import("./index.esm-BzYOVL-j.js").then((r) => ({ default: r.default }))
22
+ () => import("./index.esm-BKxri7AJ.js").then((r) => ({ default: r.default }))
23
23
  );
24
24
  function d(r, l) {
25
25
  const o = new Date(r);
@@ -169,7 +169,7 @@ const u = () => /* @__PURE__ */ a(
169
169
  }
170
170
  ], [h, w] = C(null);
171
171
  return x(() => {
172
- import("./index.esm-BzYOVL-j.js").then((n) => w(n.enUS));
172
+ import("./index.esm-BKxri7AJ.js").then((n) => w(n.enUS));
173
173
  }, []), h ? /* @__PURE__ */ e(t, { h: 700, w: "100%", direction: "column", children: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
174
174
  R,
175
175
  {
@@ -6,6 +6,6 @@ type Data = {
6
6
  hasMore: boolean;
7
7
  };
8
8
  export declare const giphyApi: (token?: string) => import('@reduxjs/toolkit/query').Api<import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, {
9
- getPhotos: import('@reduxjs/toolkit/query').QueryDefinition<ApiGiphy.Request, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, Data, "giphyApi">;
9
+ getPhotos: import('@reduxjs/toolkit/query').QueryDefinition<ApiGiphy.Request, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, Data, "giphyApi", unknown>;
10
10
  }, "giphyApi", never, typeof import('@reduxjs/toolkit/query').coreModuleName | typeof import('@reduxjs/toolkit/query/react').reactHooksModuleName>;
11
11
  export {};
@@ -6,6 +6,6 @@ type Data = {
6
6
  hasMore: boolean;
7
7
  };
8
8
  export declare const unsplashApi: (clientId?: string) => import('@reduxjs/toolkit/query').Api<import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, {
9
- getPhotos: import('@reduxjs/toolkit/query').QueryDefinition<ApiUnsplash.Request, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, Data, "unsplashApi">;
9
+ getPhotos: import('@reduxjs/toolkit/query').QueryDefinition<ApiUnsplash.Request, import('@reduxjs/toolkit/query').BaseQueryFn<string | import('@reduxjs/toolkit/query').FetchArgs, unknown, import('@reduxjs/toolkit/query').FetchBaseQueryError, {}, import('@reduxjs/toolkit/query').FetchBaseQueryMeta>, never, Data, "unsplashApi", unknown>;
10
10
  }, "unsplashApi", never, typeof import('@reduxjs/toolkit/query').coreModuleName | typeof import('@reduxjs/toolkit/query/react').reactHooksModuleName>;
11
11
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type AlertType = {
3
2
  trigger: any;
4
3
  message: string | React.ReactNode;
@@ -5,14 +5,8 @@ declare global {
5
5
  preSignMode?: boolean;
6
6
  }
7
7
  }
8
- export declare const AppContainer: (({ header, content, navbar, navbarTitle, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
9
- NavbarContent: ({ children }: {
10
- children?: import('react').ReactNode;
11
- }) => import("react/jsx-runtime").JSX.Element;
12
- NavbarFooter: ({ children }: {
13
- children?: import('react').ReactNode;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
- NavbarHeader: ({ children }: {
16
- children?: import('react').ReactNode;
17
- }) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const AppContainer: (({ header, content, navbar, navbarTitle, displayType, footer, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
9
+ NavbarContent: ({ children }: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
10
+ NavbarFooter: ({ children }: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
11
+ NavbarHeader: ({ children }: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
18
12
  };
@@ -1,4 +1,5 @@
1
1
  import { ToolDef } from '../types';
2
- export declare const AllAppsMenu: ({ tools }: {
2
+ export declare const AllAppsMenu: ({ tools, radius, }: {
3
3
  tools?: ToolDef[];
4
+ radius?: number | string;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ declare global {
4
4
  openTemplatesModal?: () => void;
5
5
  }
6
6
  }
7
- export declare const DesktopNavbar: (props: Pick<AppContainerProps, 'navbar' | 'navbarTitle'>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const DesktopNavbar: (props: Pick<AppContainerProps, "navbar" | "navbarTitle" | "displayType">) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { AppContainerProps } from '../types';
2
- export declare const MobileNavbar: (props: Pick<AppContainerProps, 'navbar'>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MobileNavbar: (props: Pick<AppContainerProps, "navbar">) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { AppContainerActionsStore, AppContainerDataStore } from '../types';
2
- export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, readNotificationsFunc, publicMode, }: AppContainerDataStore & AppContainerActionsStore) => void;
2
+ export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, }: AppContainerDataStore & AppContainerActionsStore) => void;
@@ -3,7 +3,7 @@ export declare const useAppContainerStore: import('zustand').UseBoundStore<Omit<
3
3
  persist: {
4
4
  setOptions: (options: Partial<import('zustand/middleware').PersistOptions<AppContainerStore, AppContainerStore>>) => void;
5
5
  clearStorage: () => void;
6
- rehydrate: () => void | Promise<void>;
6
+ rehydrate: () => Promise<void> | void;
7
7
  hasHydrated: () => boolean;
8
8
  onHydrate: (fn: (state: AppContainerStore) => void) => () => void;
9
9
  onFinishHydration: (fn: (state: AppContainerStore) => void) => () => void;
@@ -13,6 +13,8 @@ export type AppContainerProps = {
13
13
  navbar?: ReactNode;
14
14
  header?: ReactNode;
15
15
  navbarTitle?: string;
16
+ displayType?: 'ROUNDED' | 'BOXED';
17
+ footer?: ReactNode;
16
18
  };
17
19
  export type AppContainerDataStore = {
18
20
  tools: ToolDef[];
@@ -22,6 +24,8 @@ export type AppContainerDataStore = {
22
24
  notifications: UserNotifications[];
23
25
  isAnonym: boolean;
24
26
  publicMode: boolean;
27
+ showMessenger: () => void;
28
+ showNewMessage: (message: string) => void;
25
29
  };
26
30
  type ReadNotificationsRequest = {
27
31
  messageIds: number[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ImageModalState {
3
2
  opened: boolean;
4
3
  src: string;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { DrawerProps } from '@mantine/core';
3
+ type BaseProps = Omit<DrawerProps, 'title' | 'onClose'> & {
4
+ children: React.ReactNode;
5
+ };
6
+ type WithCustomHeader = BaseProps & {
7
+ drawerHeader: React.ReactNode;
8
+ };
9
+ type WithDefaultHeader = BaseProps & {
10
+ drawerHeader?: undefined;
11
+ onClose: () => void;
12
+ onSave?: () => void;
13
+ };
14
+ type BottomDrawerWithoutHeaderProps = WithCustomHeader | WithDefaultHeader;
15
+ export declare const BottomDrawerWithoutHeader: React.FC<BottomDrawerWithoutHeaderProps>;
16
+ export {};
@@ -4,9 +4,9 @@ interface ColorCircleProps extends Omit<ColorSwatchProps, 'color'>, Omit<React.C
4
4
  isActive?: boolean;
5
5
  }
6
6
  export declare const ColorPicker: import('react').ForwardRefExoticComponent<{
7
- value?: string | null | undefined;
8
- onChange?: ((v: string) => void) | undefined;
9
- allowCustomColor?: boolean | undefined;
7
+ value?: string | null;
8
+ onChange?: (v: string) => void;
9
+ allowCustomColor?: boolean;
10
10
  } & Omit<FlexProps, "onChange"> & import('react').RefAttributes<HTMLDivElement>> & {
11
11
  ColorCircle: import('react').ForwardRefExoticComponent<ColorCircleProps & import('react').RefAttributes<HTMLDivElement>>;
12
12
  };
@@ -0,0 +1,4 @@
1
+ export declare const CommunitiesDialog: ({ handleAccess, handleRemindLater, }: {
2
+ handleAccess: () => void;
3
+ handleRemindLater: () => void;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { EmojiPickerProps } from '../..';
2
- export declare const EmojiPanel: ({ locales, onChange, onClose, setRandomIcon, }: Pick<EmojiPickerProps, 'locales' | 'value' | 'onChange'> & {
2
+ export declare const EmojiPanel: ({ locales, onChange, onClose, setRandomIcon, }: Pick<EmojiPickerProps, "locales" | "value" | "onChange"> & {
3
3
  onClose: () => void;
4
4
  setRandomIcon: (icon: string) => void;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { EmojiPickerProps } from './EmojiPicker';
2
- export declare const IconsPanel: import('react').MemoExoticComponent<({ showColors, locales, onChange, value, onClose, }: Pick<EmojiPickerProps, 'locales' | 'showColors' | 'value' | 'onChange'> & {
2
+ export declare const IconsPanel: import('react').MemoExoticComponent<({ showColors, locales, onChange, value, onClose, }: Pick<EmojiPickerProps, "locales" | "showColors" | "value" | "onChange"> & {
3
3
  onClose: () => void;
4
4
  }) => import("react/jsx-runtime").JSX.Element>;
@@ -1,19 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const Error404: ({ title, description, buttons, closeAction, ...props }: {
3
- title?: import('react').ReactNode;
4
- titleProps?: import('@mantine/core').TitleProps | undefined;
5
- description?: import('react').ReactNode;
6
- descriptionProps?: import('@mantine/core').TextProps | undefined;
7
- buttons?: (import('@mantine/core').ButtonProps & {
8
- component?: "button" | undefined;
9
- } & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "component" | keyof import('@mantine/core').ButtonProps> & {
10
- ref?: ((instance: HTMLButtonElement | null) => void) | import('react').RefObject<HTMLButtonElement> | null | undefined;
11
- renderRoot?: ((props: any) => any) | undefined;
12
- })[] | undefined;
13
- illustration?: string | undefined;
14
- size?: number | undefined;
15
- width?: number | undefined;
16
- height?: number | undefined;
17
- } & import('@mantine/core').StackProps & {
18
- closeAction?: (() => void) | undefined;
1
+ export declare const Error404: ({ title, description, buttons, closeAction, ...props }: import('../../..').NoDataProps & {
2
+ closeAction?: () => void;
19
3
  }) => import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,6 @@ import { FilePickerLocales } from './types';
3
3
  export declare const FilePickerUpload: ({ locales, uploading, dropZoneProps, onUpload, }: {
4
4
  locales: FilePickerLocales;
5
5
  uploading: boolean;
6
- dropZoneProps?: Omit<DropzoneProps, 'onDrop'>;
6
+ dropZoneProps?: Omit<DropzoneProps, "onDrop">;
7
7
  onUpload: (files: FileWithPath[]) => void;
8
8
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const InfoMenu: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import { FlexProps } from '@mantine/core';
2
2
  import { default as LayersLogoIcon } from '../assets/layers-logo-icon.svg?react';
3
- export declare const Logotype: ({ minified, isLink, ...props }: FlexProps & {
3
+ export declare const Logotype: ({ minified, isLink, to, ...props }: FlexProps & {
4
4
  minified?: boolean;
5
5
  isLink?: boolean;
6
+ to?: string;
6
7
  }) => import("react/jsx-runtime").JSX.Element;
7
8
  export { LayersLogoIcon };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const NavbarResizer: import('react').MemoExoticComponent<({ width, onChange, showResizer, }: {
3
2
  width?: number;
4
3
  onChange?: (v: number) => void;
@@ -14,5 +14,5 @@ interface IProps<T extends IColorDictionary, M extends readonly (keyof T)[]> {
14
14
  hint?: 'tooltip' | 'title';
15
15
  alpha?: number;
16
16
  }
17
- export declare const NewColorPicker: <T extends IColorDictionary, M extends readonly ("color" | "background" | keyof T)[]>(props: IProps<T, M>) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const NewColorPicker: <T extends IColorDictionary, M extends readonly (keyof WithDefaults<T>)[]>(props: IProps<T, M>) => import("react/jsx-runtime").JSX.Element;
18
18
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IColor {
3
2
  label: string;
4
3
  value: string;
@@ -0,0 +1,11 @@
1
+ type Props = {
2
+ entityData: any;
3
+ handlePublish: () => void;
4
+ isPublishing?: boolean;
5
+ PreviewComponent?: React.FC<{
6
+ data: any;
7
+ }>;
8
+ zoom?: boolean;
9
+ };
10
+ export declare const NotPublicPanel: ({ entityData, handlePublish, isPublishing, PreviewComponent, zoom, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -11,13 +11,13 @@ export declare namespace IconEntity {
11
11
  }
12
12
  /** Используется для отображения бокса с иконкой или первой буквы имени */
13
13
  export declare const ProjectIcon: import('react').ForwardRefExoticComponent<{
14
- icon?: string | null | undefined;
15
- name?: string | null | undefined;
14
+ icon?: string | null;
15
+ name?: string | null;
16
16
  fallback?: ReactNode;
17
- fallbackColorById?: string | undefined;
18
- initials?: boolean | undefined;
17
+ fallbackColorById?: string;
18
+ initials?: boolean;
19
19
  } & Omit<AvatarProps, "name" | "color"> & {
20
- size?: string | number | undefined;
21
- textSize?: number | undefined;
20
+ size?: number | string;
21
+ textSize?: number;
22
22
  } & import('react').RefAttributes<HTMLDivElement>>;
23
23
  export {};
@@ -7,7 +7,7 @@ interface IProps {
7
7
  onChange?: (v: string) => void;
8
8
  }
9
9
  export declare const RichText: import('react').ForwardRefExoticComponent<IProps & {
10
- children?: import('react').ReactNode;
10
+ children?: import('react').ReactNode | undefined;
11
11
  } & import('react').RefAttributes<HTMLDivElement>> & {
12
12
  Content: (props: RichTextEditorContentProps) => import("react/jsx-runtime").JSX.Element;
13
13
  Bold: () => import("react/jsx-runtime").JSX.Element;
@@ -24,11 +24,11 @@ export declare const RichText: import('react').ForwardRefExoticComponent<IProps
24
24
  CheckList: () => import("react/jsx-runtime").JSX.Element;
25
25
  FontSize: () => import("react/jsx-runtime").JSX.Element;
26
26
  ColorPicker: ({ staticBg, onChange, }: {
27
- staticBg?: boolean | undefined;
28
- onChange?: ((v: {
27
+ staticBg?: boolean;
28
+ onChange?: (v: {
29
29
  value: string;
30
30
  mode: string;
31
- }) => void) | undefined;
31
+ }) => void;
32
32
  }) => import("react/jsx-runtime").JSX.Element;
33
33
  };
34
34
  export interface IRichTextRef extends HTMLDivElement {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const openSearchHelpModal: () => void;
3
2
  export declare const closeSearchHelpModal: () => void;
4
3
  export declare const SearchHelpModal: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { UniqueIdentifier } from '@dnd-kit/core';
2
+ import { DragEndEvent, DragStartEvent, UniqueIdentifier } from '@dnd-kit/core';
3
3
  import { SortableItem } from './components';
4
4
  interface BaseItem {
5
5
  id: UniqueIdentifier;
@@ -7,9 +7,9 @@ interface BaseItem {
7
7
  interface Props<T extends BaseItem> {
8
8
  items: T[];
9
9
  onChange(items: T[]): void;
10
- renderItem(item: T, index: number): ReactNode;
11
- onDragStart?(): void;
12
- onDragEnd?(): void;
10
+ renderItem(item: T, index?: number): ReactNode;
11
+ onDragStart?: (event: DragStartEvent) => void;
12
+ onDragEnd?: (event: DragEndEvent) => void;
13
13
  gap?: number;
14
14
  }
15
15
  export declare function SortableList<T extends BaseItem>({ items, onChange, renderItem, onDragStart, onDragEnd, gap, }: Props<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,13 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { UniqueIdentifier } from '@dnd-kit/core';
3
+ import { ActionIconProps } from '@mantine/core';
3
4
  import { IconProps } from '@tabler/icons-react';
4
5
  interface Props {
5
6
  id: UniqueIdentifier;
6
7
  }
7
8
  export declare function SortableItem({ children, id }: PropsWithChildren<Props>): import("react/jsx-runtime").JSX.Element;
8
- export declare function DragHandle({ iconProps }: {
9
+ export declare function DragHandle({ iconProps, actionIconProps, }: {
9
10
  iconProps?: IconProps;
11
+ actionIconProps?: ActionIconProps;
10
12
  }): import("react/jsx-runtime").JSX.Element;
11
13
  export {};
@@ -0,0 +1,8 @@
1
+ import { StorageItem } from '../StorageUsageProgress';
2
+ interface StorageEntityItemProps extends StorageItem {
3
+ percentage: number;
4
+ }
5
+ export declare const StorageEntityItem: ({ category, }: {
6
+ category: StorageEntityItemProps;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { StorageItem } from '../StorageUsageProgress';
2
+ interface StorageEntityListProps {
3
+ storageByCategory: StorageItem[];
4
+ totalStorageKb: number;
5
+ }
6
+ export declare const StorageEntityList: ({ storageByCategory, totalStorageKb, }: StorageEntityListProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './StorageUsageEntityList';
2
+ export * from './StorageEntityItem';
@@ -5,6 +5,7 @@ interface UserAvatarProps extends AvatarProps, Omit<React.ComponentPropsWithoutR
5
5
  workspace?: MenuWorkspace | null;
6
6
  isActiveIndicator?: boolean;
7
7
  indicatorProps?: IndicatorProps;
8
+ useMultiple?: boolean;
8
9
  }
9
10
  export declare const WorkspaceAvatar: React.ForwardRefExoticComponent<UserAvatarProps & React.RefAttributes<HTMLDivElement>>;
10
11
  export {};
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import { DragHandle } from '../SortableList/components';
2
3
  import { MenuWorkspace, RightSectionProps } from './WorkspaceMenu';
3
4
  interface WorkspaceItemProps<W extends MenuWorkspace = MenuWorkspace> {
4
5
  RightSection?: FC<RightSectionProps>;
@@ -6,6 +7,13 @@ interface WorkspaceItemProps<W extends MenuWorkspace = MenuWorkspace> {
6
7
  workspace: W;
7
8
  active?: W | null;
8
9
  setOpenedWorkspacesList?: (o: boolean) => void;
10
+ DragHandle: typeof DragHandle;
11
+ plan?: JSX.Element;
12
+ handleDecline?: (workspace: MenuWorkspace) => void;
13
+ dragEvent?: {
14
+ isDragging: boolean;
15
+ dragId: string;
16
+ };
9
17
  }
10
- export declare const WorkspaceItem: ({ workspace, onClick, active, RightSection, setOpenedWorkspacesList, }: WorkspaceItemProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const WorkspaceItem: ({ workspace, onClick, active, RightSection, setOpenedWorkspacesList, DragHandle, plan, dragEvent, }: WorkspaceItemProps) => import("react/jsx-runtime").JSX.Element;
11
19
  export {};
@@ -11,6 +11,8 @@ export interface MenuWorkspace {
11
11
  type: 'videos' | 'documents' | 'images' | 'other' | 'audio' | 'archives' | 'code';
12
12
  usedKb: number;
13
13
  }>;
14
+ plan?: string;
15
+ handleDeclineInvite?: (workspace: MenuWorkspace) => void;
14
16
  }
15
17
  export type RightSectionProps = {
16
18
  isActive: boolean;
@@ -32,4 +34,4 @@ export type WorkspaceMenuProps<W extends MenuWorkspace = MenuWorkspace> = PropsW
32
34
  publicMode?: boolean;
33
35
  RightSection?: FC<RightSectionProps>;
34
36
  }>;
35
- export declare const WorkspaceMenu: <W extends MenuWorkspace>({ children, onCreate, onClick, active, items, settingsLink, membersLink, workspaceLink, canInvite, canEditWorkspace, RightSection, isAnonym, publicMode, }: WorkspaceMenuProps<W>) => import("react/jsx-runtime").JSX.Element;
37
+ export declare const WorkspaceMenu: <W extends MenuWorkspace>({ children, onCreate, onClick, active, items, workspaceLink, settingsLink, RightSection, canEditWorkspace, isAnonym, publicMode, }: WorkspaceMenuProps<W>) => import("react/jsx-runtime").JSX.Element;
@@ -4,5 +4,5 @@ declare global {
4
4
  }
5
5
  }
6
6
  type PathParam<Path extends string> = Path extends `${infer L}/${infer R}` ? PathParam<L> | PathParam<R> : Path extends `:${infer Param}` ? Param : never;
7
- export declare const generateLink: <Path extends string>(originPath: Path, params?: { [key in PathParam<Path>]: string | number | null; } | undefined) => string;
7
+ export declare const generateLink: <Path extends string>(originPath: Path, params?: { [key in PathParam<Path>]: string | number | null; }) => string;
8
8
  export {};
@@ -2,7 +2,7 @@ export declare const isNumberValue: (value: unknown) => value is number;
2
2
  /**
3
3
  * Hook to get URL route parameter value
4
4
  */
5
- export declare const useRouteParam: (paramName: 'folderId' | 'sprintId' | 'taskId' | 'flowId' | 'pageId' | 'storageId') => string | null;
5
+ export declare const useRouteParam: (paramName: "folderId" | "sprintId" | "taskId" | "flowId" | "pageId" | "storageId") => string | null;
6
6
  /**
7
7
  * Hook to get URL query parameter value (from ?param=value)
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import { TouchEventHandler } from 'react';
2
- export declare const useSwipeDetect: (callback: (side: 'left' | 'right') => void) => {
2
+ export declare const useSwipeDetect: (callback: (side: "left" | "right") => void) => {
3
3
  onTouchStart: TouchEventHandler<HTMLDivElement>;
4
4
  onTouchMove: TouchEventHandler<HTMLDivElement>;
5
5
  onTouchEnd: TouchEventHandler<HTMLDivElement>;