@layers-app/shared 0.0.38 → 0.0.39-comments.2

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 (77) hide show
  1. package/dist/KanbanLayout-DGHT9E0N.js +297 -0
  2. package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +5 -3
  3. package/dist/components/AppContainer/types.d.ts +2 -0
  4. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts +7 -0
  5. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +12 -0
  6. package/dist/components/CommentComposer/index.d.ts +10 -8
  7. package/dist/components/CommentFilterMenu/index.d.ts +9 -0
  8. package/dist/components/CommentsPanel/components/CommentActionMenu.d.ts +5 -1
  9. package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +3 -4
  10. package/dist/components/CommentsPanel/components/{CommentFilterMenu.d.ts → CommentTabFilter.d.ts} +2 -1
  11. package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.d.ts +5 -2
  12. package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +2 -1
  13. package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +3 -4
  14. package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.d.ts +5 -1
  15. package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.d.ts +9 -5
  16. package/dist/components/CommentsPanel/index.d.ts +10 -6
  17. package/dist/components/CommentsPanel/store.d.ts +7 -1
  18. package/dist/components/CommentsPanel/types.d.ts +157 -57
  19. package/dist/components/CommentsPanel/utils.d.ts +11 -5
  20. package/dist/components/Copyright/index.d.ts +2 -1
  21. package/dist/components/EmojiPicker/EmojiPanel.d.ts +1 -1
  22. package/dist/components/EmojiPicker/EmojiPicker.d.ts +9 -1
  23. package/dist/components/EmojiPicker/IconsPanel.d.ts +1 -1
  24. package/dist/components/EmojiPicker/custom-icons/StatusCancel.d.ts +2 -0
  25. package/dist/components/EmojiPicker/custom-icons/StatusDone.d.ts +2 -0
  26. package/dist/components/EmojiPicker/custom-icons/StatusProgress00.d.ts +2 -0
  27. package/dist/components/EmojiPicker/custom-icons/StatusProgress10.d.ts +2 -0
  28. package/dist/components/EmojiPicker/custom-icons/StatusProgress100.d.ts +2 -0
  29. package/dist/components/EmojiPicker/custom-icons/StatusProgress20.d.ts +2 -0
  30. package/dist/components/EmojiPicker/custom-icons/StatusProgress30.d.ts +2 -0
  31. package/dist/components/EmojiPicker/custom-icons/StatusProgress40.d.ts +2 -0
  32. package/dist/components/EmojiPicker/custom-icons/StatusProgress50.d.ts +2 -0
  33. package/dist/components/EmojiPicker/custom-icons/StatusProgress60.d.ts +2 -0
  34. package/dist/components/EmojiPicker/custom-icons/StatusProgress70.d.ts +2 -0
  35. package/dist/components/EmojiPicker/custom-icons/StatusProgress80.d.ts +2 -0
  36. package/dist/components/EmojiPicker/custom-icons/StatusProgress90.d.ts +2 -0
  37. package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts +12 -0
  38. package/dist/components/EntityTitle/EntityTitle.d.ts +18 -0
  39. package/dist/components/FilePicker/FilePicker.d.ts +4 -3
  40. package/dist/components/NoData/NoData.d.ts +147 -22
  41. package/dist/components/ProjectIcon/ProjectIcon.d.ts +10 -1
  42. package/dist/components/UserAvatar/index.d.ts +1 -2
  43. package/dist/components/modals/openRemoveConfirmModal.d.ts +4 -0
  44. package/dist/components/table/hooks/TableProvider.d.ts +5 -3
  45. package/dist/components/table/hooks/useCreateTable.d.ts +5 -3
  46. package/dist/components/table/hooks/useTableStore.d.ts +5 -3
  47. package/dist/components/table/store.d.ts +5 -3
  48. package/dist/constants.d.ts +1 -0
  49. package/dist/emoji-categorized-CRsMUQyD.js +4 -0
  50. package/dist/helpers/filterHierarchyByTypes.d.ts +15 -0
  51. package/dist/helpers/getPartOfTheDay.d.ts +1 -0
  52. package/dist/helpers/getRandomIconColor.d.ts +1 -0
  53. package/dist/hooks/useMenu.d.ts +1 -1
  54. package/dist/icons.min-wo13YUY4.js +4 -0
  55. package/dist/index-BI1_FPl_.js +81688 -0
  56. package/dist/index.d.ts +9 -0
  57. package/dist/index.js +187 -175
  58. package/dist/index.umd.cjs +60 -1206
  59. package/dist/store/onboarding.d.ts +2 -2
  60. package/dist/store/timezoneStore.d.ts +5 -3
  61. package/dist/store/workspacesOrder.d.ts +5 -3
  62. package/package.json +4 -4
  63. package/dist/KanbanLayout-_hW8P-S9.js +0 -287
  64. package/dist/TimeLine-DCVt4pFB.js +0 -198
  65. package/dist/components/CommentsPanel/components/CommentsMultiSelectUsers.d.ts +0 -6
  66. package/dist/components/CommentsPanel/components/RemoveConfirmModal.d.ts +0 -11
  67. package/dist/components/OnBoarding/steps/DifferentLayouts/TimeLine.d.ts +0 -2
  68. package/dist/components/TemplatesModal/components/SelectedTemplate.d.ts +0 -7
  69. package/dist/components/TemplatesModal/components/Template.d.ts +0 -9
  70. package/dist/components/TemplatesModal/components/Templates.d.ts +0 -7
  71. package/dist/components/TemplatesModal/data.d.ts +0 -13
  72. package/dist/components/TemplatesModal/index.d.ts +0 -7
  73. package/dist/components/TemplatesModal/types.d.ts +0 -16
  74. package/dist/emoji-categorized-DAOdcF53.js +0 -4
  75. package/dist/icons.min-Chyr-bjL.js +0 -4
  76. package/dist/index-B17e6b8n.js +0 -67033
  77. package/dist/index.esm-Ci1yhzNS.js +0 -6814
@@ -1,26 +1,150 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { ButtonProps, PolymorphicComponentProps, StackProps, TextProps, TitleProps } from '@mantine/core';
3
3
  export declare const illustrationMap: {
4
- empty: FC<import('react').SVGProps<SVGSVGElement>>;
5
- noAccess: FC<import('react').SVGProps<SVGSVGElement>>;
6
- trash: FC<import('react').SVGProps<SVGSVGElement>>;
7
- noImage: FC<import('react').SVGProps<SVGSVGElement>>;
8
- noResults: FC<import('react').SVGProps<SVGSVGElement>>;
9
- noTasks: FC<import('react').SVGProps<SVGSVGElement>>;
10
- noComments: FC<import('react').SVGProps<SVGSVGElement>>;
11
- noData: FC<import('react').SVGProps<SVGSVGElement>>;
12
- emptyFolder: FC<import('react').SVGProps<SVGSVGElement>>;
13
- noTaskResults: FC<import('react').SVGProps<SVGSVGElement>>;
14
- noSearchResults: FC<import('react').SVGProps<SVGSVGElement>>;
15
- noMembers: FC<import('react').SVGProps<SVGSVGElement>>;
16
- noGroups: FC<import('react').SVGProps<SVGSVGElement>>;
17
- noNotifications: FC<import('react').SVGProps<SVGSVGElement>>;
18
- noWorkspaces: FC<import('react').SVGProps<SVGSVGElement>>;
19
- paymentSuccess: FC<import('react').SVGProps<SVGSVGElement>>;
20
- notSuccessMan: FC<import('react').SVGProps<SVGSVGElement>>;
21
- alertMan: FC<import('react').SVGProps<SVGSVGElement>>;
22
- '404': FC<import('react').SVGProps<SVGSVGElement>>;
23
- '500': FC<import('react').SVGProps<SVGSVGElement>>;
4
+ empty: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
5
+ title?: string;
6
+ titleId?: string;
7
+ desc?: string;
8
+ descId?: string;
9
+ }>;
10
+ noAccess: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
11
+ title?: string;
12
+ titleId?: string;
13
+ desc?: string;
14
+ descId?: string;
15
+ }>;
16
+ trash: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
17
+ title?: string;
18
+ titleId?: string;
19
+ desc?: string;
20
+ descId?: string;
21
+ }>;
22
+ noImage: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
23
+ title?: string;
24
+ titleId?: string;
25
+ desc?: string;
26
+ descId?: string;
27
+ }>;
28
+ noResults: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
29
+ title?: string;
30
+ titleId?: string;
31
+ desc?: string;
32
+ descId?: string;
33
+ }>;
34
+ noComments: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
35
+ title?: string;
36
+ titleId?: string;
37
+ desc?: string;
38
+ descId?: string;
39
+ }>;
40
+ noData: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
41
+ title?: string;
42
+ titleId?: string;
43
+ desc?: string;
44
+ descId?: string;
45
+ }>;
46
+ emptyFolder: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
47
+ title?: string;
48
+ titleId?: string;
49
+ desc?: string;
50
+ descId?: string;
51
+ }>;
52
+ noTaskResults: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
53
+ title?: string;
54
+ titleId?: string;
55
+ desc?: string;
56
+ descId?: string;
57
+ }>;
58
+ noSearchResults: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
59
+ title?: string;
60
+ titleId?: string;
61
+ desc?: string;
62
+ descId?: string;
63
+ }>;
64
+ noMembers: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
65
+ title?: string;
66
+ titleId?: string;
67
+ desc?: string;
68
+ descId?: string;
69
+ }>;
70
+ noGroups: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
71
+ title?: string;
72
+ titleId?: string;
73
+ desc?: string;
74
+ descId?: string;
75
+ }>;
76
+ noNotifications: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
77
+ title?: string;
78
+ titleId?: string;
79
+ desc?: string;
80
+ descId?: string;
81
+ }>;
82
+ noWorkspaces: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
83
+ title?: string;
84
+ titleId?: string;
85
+ desc?: string;
86
+ descId?: string;
87
+ }>;
88
+ paymentSuccess: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
89
+ title?: string;
90
+ titleId?: string;
91
+ desc?: string;
92
+ descId?: string;
93
+ }>;
94
+ notSuccessMan: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
95
+ title?: string;
96
+ titleId?: string;
97
+ desc?: string;
98
+ descId?: string;
99
+ }>;
100
+ noAnswers: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
101
+ title?: string;
102
+ titleId?: string;
103
+ desc?: string;
104
+ descId?: string;
105
+ }>;
106
+ alertMan: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
107
+ title?: string;
108
+ titleId?: string;
109
+ desc?: string;
110
+ descId?: string;
111
+ }>;
112
+ noFlows: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
113
+ title?: string;
114
+ titleId?: string;
115
+ desc?: string;
116
+ descId?: string;
117
+ }>;
118
+ noTasks: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
119
+ title?: string;
120
+ titleId?: string;
121
+ desc?: string;
122
+ descId?: string;
123
+ }>;
124
+ noCloud: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
125
+ title?: string;
126
+ titleId?: string;
127
+ desc?: string;
128
+ descId?: string;
129
+ }>;
130
+ noForms: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
131
+ title?: string;
132
+ titleId?: string;
133
+ desc?: string;
134
+ descId?: string;
135
+ }>;
136
+ '404': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
137
+ title?: string;
138
+ titleId?: string;
139
+ desc?: string;
140
+ descId?: string;
141
+ }>;
142
+ '500': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
143
+ title?: string;
144
+ titleId?: string;
145
+ desc?: string;
146
+ descId?: string;
147
+ }>;
24
148
  };
25
149
  export type IllustrationType = keyof typeof illustrationMap | string;
26
150
  export type NoDataProps = {
@@ -31,7 +155,8 @@ export type NoDataProps = {
31
155
  buttons?: PolymorphicComponentProps<'button', ButtonProps>[];
32
156
  illustration?: IllustrationType;
33
157
  size?: number;
34
- width?: number;
35
- height?: number;
158
+ width?: number | string;
159
+ height?: number | string;
160
+ showDots?: boolean;
36
161
  } & StackProps;
37
162
  export declare const NoData: FC<NoDataProps>;
@@ -1,5 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
- import { AvatarProps } from '@mantine/core';
2
+ import { AvatarProps, AvatarVariant } from '@mantine/core';
3
+ export type ProjectIconProps = {
4
+ icon?: string | null;
5
+ name?: string | null;
6
+ fallback?: ReactNode;
7
+ fallbackColorById?: string;
8
+ initials?: boolean;
9
+ } & Omit<AvatarProps, 'color' | 'name'>;
3
10
  type IconData = {
4
11
  icon: string;
5
12
  color: string;
@@ -19,5 +26,7 @@ export declare const ProjectIcon: import('react').ForwardRefExoticComponent<{
19
26
  } & Omit<AvatarProps, "name" | "color"> & {
20
27
  size?: number | string;
21
28
  textSize?: number;
29
+ variant?: AvatarVariant;
22
30
  } & import('react').RefAttributes<HTMLDivElement>>;
31
+ export declare const renderIcons: (data: IconData | null, fallback?: ProjectIconProps["fallback"], initials?: ProjectIconProps["initials"], name?: ProjectIconProps["name"]) => string | number | true | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null;
23
32
  export {};
@@ -4,8 +4,7 @@ import { MenuUser } from '../AppContainer/components/MenuUserDropdown';
4
4
  export type ProfilePictureType = {
5
5
  url: string;
6
6
  };
7
- interface UserAvatarProps extends AvatarProps, Omit<React.ComponentPropsWithoutRef<'div'>, keyof AvatarProps> {
7
+ export interface UserAvatarProps extends AvatarProps, Omit<React.ComponentPropsWithoutRef<'div'>, keyof AvatarProps> {
8
8
  user?: MenuUser | null;
9
9
  }
10
10
  export declare const UserAvatar: React.ForwardRefExoticComponent<UserAvatarProps & React.RefAttributes<HTMLDivElement>>;
11
- export {};
@@ -0,0 +1,4 @@
1
+ import { OpenConfirmModal } from '@mantine/modals/lib/context';
2
+ export declare const openRemoveConfirmModal: (props: OpenConfirmModal & {
3
+ isLoading?: boolean;
4
+ }) => void;
@@ -2,14 +2,16 @@ import { PropsWithChildren } from 'react';
2
2
  import { CreateTableReturn } from '../store';
3
3
  import { TableProps, TableRowModel } from '../types';
4
4
  export declare const TableContext: import('react').Context<{
5
- useStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<import('../store').Store>, "persist"> & {
5
+ useStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<import('../store').Store>, "setState" | "persist"> & {
6
+ setState(partial: import('../store').Store | Partial<import('../store').Store> | ((state: import('../store').Store) => import('../store').Store | Partial<import('../store').Store>), replace?: false | undefined): unknown;
7
+ setState(state: import('../store').Store | ((state: import('../store').Store) => import('../store').Store), replace: true): unknown;
6
8
  persist: {
7
9
  setOptions: (options: Partial<import('zustand/middleware').PersistOptions<import('../store').Store, {
8
10
  sort: import('../types').TableSortModel | null;
9
11
  search: string;
10
12
  pageSize: number;
11
13
  columnsOrder: string[];
12
- }>>) => void;
14
+ }, unknown>>) => void;
13
15
  clearStorage: () => void;
14
16
  rehydrate: () => Promise<void> | void;
15
17
  hasHydrated: () => boolean;
@@ -20,7 +22,7 @@ export declare const TableContext: import('react').Context<{
20
22
  search: string;
21
23
  pageSize: number;
22
24
  columnsOrder: string[];
23
- }>>;
25
+ }, unknown>>;
24
26
  };
25
27
  }>;
26
28
  api: {
@@ -1,13 +1,15 @@
1
1
  import { CreateTableStoreProps } from '../store';
2
2
  export declare const useCreateTable: (props?: CreateTableStoreProps) => {
3
- useStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<import('../store').Store>, "persist"> & {
3
+ useStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<import('../store').Store>, "setState" | "persist"> & {
4
+ setState(partial: import('../store').Store | Partial<import('../store').Store> | ((state: import('../store').Store) => import('../store').Store | Partial<import('../store').Store>), replace?: false | undefined): unknown;
5
+ setState(state: import('../store').Store | ((state: import('../store').Store) => import('../store').Store), replace: true): unknown;
4
6
  persist: {
5
7
  setOptions: (options: Partial<import('zustand/middleware').PersistOptions<import('../store').Store, {
6
8
  sort: import('../types').TableSortModel | null;
7
9
  search: string;
8
10
  pageSize: number;
9
11
  columnsOrder: string[];
10
- }>>) => void;
12
+ }, unknown>>) => void;
11
13
  clearStorage: () => void;
12
14
  rehydrate: () => Promise<void> | void;
13
15
  hasHydrated: () => boolean;
@@ -18,7 +20,7 @@ export declare const useCreateTable: (props?: CreateTableStoreProps) => {
18
20
  search: string;
19
21
  pageSize: number;
20
22
  columnsOrder: string[];
21
- }>>;
23
+ }, unknown>>;
22
24
  };
23
25
  }>;
24
26
  api: {
@@ -1,12 +1,14 @@
1
1
  export declare const useTableStore: () => {
2
- useStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<import('../store').Store>, "persist"> & {
2
+ useStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<import('../store').Store>, "setState" | "persist"> & {
3
+ setState(partial: import('../store').Store | Partial<import('../store').Store> | ((state: import('../store').Store) => import('../store').Store | Partial<import('../store').Store>), replace?: false | undefined): unknown;
4
+ setState(state: import('../store').Store | ((state: import('../store').Store) => import('../store').Store), replace: true): unknown;
3
5
  persist: {
4
6
  setOptions: (options: Partial<import('zustand/middleware').PersistOptions<import('../store').Store, {
5
7
  sort: import('../types').TableSortModel | null;
6
8
  search: string;
7
9
  pageSize: number;
8
10
  columnsOrder: string[];
9
- }>>) => void;
11
+ }, unknown>>) => void;
10
12
  clearStorage: () => void;
11
13
  rehydrate: () => Promise<void> | void;
12
14
  hasHydrated: () => boolean;
@@ -17,7 +19,7 @@ export declare const useTableStore: () => {
17
19
  search: string;
18
20
  pageSize: number;
19
21
  columnsOrder: string[];
20
- }>>;
22
+ }, unknown>>;
21
23
  };
22
24
  }>;
23
25
  api: {
@@ -30,14 +30,16 @@ export type CreateTableStoreProps = {
30
30
  defaultColumnsOrder?: string[];
31
31
  };
32
32
  export declare const createTableStore: (props?: CreateTableStoreProps) => {
33
- useStore: UseBoundStore<Omit<StoreApi<Store>, "persist"> & {
33
+ useStore: UseBoundStore<Omit<StoreApi<Store>, "setState" | "persist"> & {
34
+ setState(partial: Store | Partial<Store> | ((state: Store) => Store | Partial<Store>), replace?: false | undefined): unknown;
35
+ setState(state: Store | ((state: Store) => Store), replace: true): unknown;
34
36
  persist: {
35
37
  setOptions: (options: Partial<import('zustand/middleware').PersistOptions<Store, {
36
38
  sort: TableSortModel | null;
37
39
  search: string;
38
40
  pageSize: number;
39
41
  columnsOrder: string[];
40
- }>>) => void;
42
+ }, unknown>>) => void;
41
43
  clearStorage: () => void;
42
44
  rehydrate: () => Promise<void> | void;
43
45
  hasHydrated: () => boolean;
@@ -48,7 +50,7 @@ export declare const createTableStore: (props?: CreateTableStoreProps) => {
48
50
  search: string;
49
51
  pageSize: number;
50
52
  columnsOrder: string[];
51
- }>>;
53
+ }, unknown>>;
52
54
  };
53
55
  }>;
54
56
  api: {
@@ -6,3 +6,4 @@ export declare const DEFAULT_VALUES: {
6
6
  COLORS: string[];
7
7
  };
8
8
  export declare const NAVBAR_ICON_COLOR = "light-dark(\n var(--mantine-color-gray-7),\n var(--mantine-color-gray-4)\n )";
9
+ export declare const DEFAULT_FONT_FAMILY = "Inter, sans-serif";