@layers-app/shared 0.0.8 → 0.0.10

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/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { DropzoneProps } from '@mantine/dropzone';
8
8
  import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
9
9
  import { FileWithPath } from '@mantine/dropzone';
10
10
  import { FloatingPosition } from '@mantine/core';
11
+ import { ForwardRefExoticComponent } from 'react';
11
12
  import { FunctionComponent } from 'react';
12
13
  import { JSX as JSX_2 } from 'react/jsx-runtime';
13
14
  import { MemoExoticComponent } from 'react';
@@ -18,6 +19,7 @@ import { PolymorphicComponentProps } from '@mantine/core';
18
19
  import { PopoverProps } from '@mantine/core';
19
20
  import { PropsWithChildren } from 'react';
20
21
  import { ReactNode } from 'react';
22
+ import { RefAttributes } from 'react';
21
23
  import { StackProps } from '@mantine/core';
22
24
  import { StoreApi } from 'zustand';
23
25
  import { SVGProps } from 'react';
@@ -135,7 +137,7 @@ export declare type EmojiPickerProps = {
135
137
 
136
138
  export declare const ErrorPage: ({ error, closeAction }: Props) => JSX_2.Element;
137
139
 
138
- export declare const getAccessToken: () => string | null;
140
+ export declare const getAccessToken: () => string;
139
141
 
140
142
  export declare const getCookie: (name: string) => string | null;
141
143
 
@@ -143,94 +145,94 @@ export declare const getCurrentUserId: () => number;
143
145
 
144
146
  export declare const illustrationMap: {
145
147
  empty: FunctionComponent<SVGProps<SVGSVGElement> & {
146
- title?: string | undefined;
147
- titleId?: string | undefined;
148
- desc?: string | undefined;
149
- descId?: string | undefined;
148
+ title?: string;
149
+ titleId?: string;
150
+ desc?: string;
151
+ descId?: string;
150
152
  }>;
151
153
  noAccess: FunctionComponent<SVGProps<SVGSVGElement> & {
152
- title?: string | undefined;
153
- titleId?: string | undefined;
154
- desc?: string | undefined;
155
- descId?: string | undefined;
154
+ title?: string;
155
+ titleId?: string;
156
+ desc?: string;
157
+ descId?: string;
156
158
  }>;
157
159
  trash: FunctionComponent<SVGProps<SVGSVGElement> & {
158
- title?: string | undefined;
159
- titleId?: string | undefined;
160
- desc?: string | undefined;
161
- descId?: string | undefined;
160
+ title?: string;
161
+ titleId?: string;
162
+ desc?: string;
163
+ descId?: string;
162
164
  }>;
163
165
  noImage: FunctionComponent<SVGProps<SVGSVGElement> & {
164
- title?: string | undefined;
165
- titleId?: string | undefined;
166
- desc?: string | undefined;
167
- descId?: string | undefined;
166
+ title?: string;
167
+ titleId?: string;
168
+ desc?: string;
169
+ descId?: string;
168
170
  }>;
169
171
  noResults: FunctionComponent<SVGProps<SVGSVGElement> & {
170
- title?: string | undefined;
171
- titleId?: string | undefined;
172
- desc?: string | undefined;
173
- descId?: string | undefined;
172
+ title?: string;
173
+ titleId?: string;
174
+ desc?: string;
175
+ descId?: string;
174
176
  }>;
175
177
  noTasks: FunctionComponent<SVGProps<SVGSVGElement> & {
176
- title?: string | undefined;
177
- titleId?: string | undefined;
178
- desc?: string | undefined;
179
- descId?: string | undefined;
178
+ title?: string;
179
+ titleId?: string;
180
+ desc?: string;
181
+ descId?: string;
180
182
  }>;
181
183
  noComments: FunctionComponent<SVGProps<SVGSVGElement> & {
182
- title?: string | undefined;
183
- titleId?: string | undefined;
184
- desc?: string | undefined;
185
- descId?: string | undefined;
184
+ title?: string;
185
+ titleId?: string;
186
+ desc?: string;
187
+ descId?: string;
186
188
  }>;
187
189
  noData: FunctionComponent<SVGProps<SVGSVGElement> & {
188
- title?: string | undefined;
189
- titleId?: string | undefined;
190
- desc?: string | undefined;
191
- descId?: string | undefined;
190
+ title?: string;
191
+ titleId?: string;
192
+ desc?: string;
193
+ descId?: string;
192
194
  }>;
193
195
  addDataR7: FunctionComponent<SVGProps<SVGSVGElement> & {
194
- title?: string | undefined;
195
- titleId?: string | undefined;
196
- desc?: string | undefined;
197
- descId?: string | undefined;
196
+ title?: string;
197
+ titleId?: string;
198
+ desc?: string;
199
+ descId?: string;
198
200
  }>;
199
201
  addDataLayers: FunctionComponent<SVGProps<SVGSVGElement> & {
200
- title?: string | undefined;
201
- titleId?: string | undefined;
202
- desc?: string | undefined;
203
- descId?: string | undefined;
202
+ title?: string;
203
+ titleId?: string;
204
+ desc?: string;
205
+ descId?: string;
204
206
  }>;
205
207
  emptyFolder: FunctionComponent<SVGProps<SVGSVGElement> & {
206
- title?: string | undefined;
207
- titleId?: string | undefined;
208
- desc?: string | undefined;
209
- descId?: string | undefined;
208
+ title?: string;
209
+ titleId?: string;
210
+ desc?: string;
211
+ descId?: string;
210
212
  }>;
211
213
  emptyBoard: FunctionComponent<SVGProps<SVGSVGElement> & {
212
- title?: string | undefined;
213
- titleId?: string | undefined;
214
- desc?: string | undefined;
215
- descId?: string | undefined;
214
+ title?: string;
215
+ titleId?: string;
216
+ desc?: string;
217
+ descId?: string;
216
218
  }>;
217
219
  noTaskResults: FunctionComponent<SVGProps<SVGSVGElement> & {
218
- title?: string | undefined;
219
- titleId?: string | undefined;
220
- desc?: string | undefined;
221
- descId?: string | undefined;
220
+ title?: string;
221
+ titleId?: string;
222
+ desc?: string;
223
+ descId?: string;
222
224
  }>;
223
225
  '404': FunctionComponent<SVGProps<SVGSVGElement> & {
224
- title?: string | undefined;
225
- titleId?: string | undefined;
226
- desc?: string | undefined;
227
- descId?: string | undefined;
226
+ title?: string;
227
+ titleId?: string;
228
+ desc?: string;
229
+ descId?: string;
228
230
  }>;
229
231
  '500': FunctionComponent<SVGProps<SVGSVGElement> & {
230
- title?: string | undefined;
231
- titleId?: string | undefined;
232
- desc?: string | undefined;
233
- descId?: string | undefined;
232
+ title?: string;
233
+ titleId?: string;
234
+ desc?: string;
235
+ descId?: string;
234
236
  }>;
235
237
  };
236
238
 
@@ -422,13 +424,13 @@ export declare const useHideHeader: () => void;
422
424
  export declare const useIsDarkTheme: () => boolean;
423
425
 
424
426
  export declare const useMenu: () => {
425
- isMobile: boolean | undefined;
427
+ isMobile: boolean;
426
428
  opened: boolean;
427
429
  };
428
430
 
429
431
  export declare const useOAuthErrorParams: () => void;
430
432
 
431
- export declare const UserAvatar: default_2.ForwardRefExoticComponent<UserAvatarProps & default_2.RefAttributes<HTMLDivElement>>;
433
+ export declare const UserAvatar: ForwardRefExoticComponent<Omit<UserAvatarProps, "ref"> & RefAttributes<HTMLDivElement>>;
432
434
 
433
435
  declare interface UserAvatarProps extends AvatarProps, Omit<default_2.ComponentPropsWithoutRef<'div'>, keyof AvatarProps> {
434
436
  user?: MenuUser | null;
@@ -462,7 +464,7 @@ export declare const useSwipeDetect: (callback: (side: 'left' | 'right') => void
462
464
  onTouchEnd: TouchEventHandler<HTMLDivElement>;
463
465
  };
464
466
 
465
- export declare const WorkspaceAvatar: default_2.ForwardRefExoticComponent<UserAvatarProps_2 & default_2.RefAttributes<HTMLDivElement>>;
467
+ export declare const WorkspaceAvatar: ForwardRefExoticComponent<Omit<UserAvatarProps_2, "ref"> & RefAttributes<HTMLDivElement>>;
466
468
 
467
469
  export declare const WorkspaceMenu: <W extends MenuWorkspace>({ children, onCreate, onClick, active, items, settingsLink, membersLink, }: WorkspaceMenuProps<W>) => JSX_2.Element;
468
470