@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 +66 -64
- package/dist/index.js +220 -25
- package/package.json +2 -2
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
|
|
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
|
|
147
|
-
titleId?: string
|
|
148
|
-
desc?: string
|
|
149
|
-
descId?: string
|
|
148
|
+
title?: string;
|
|
149
|
+
titleId?: string;
|
|
150
|
+
desc?: string;
|
|
151
|
+
descId?: string;
|
|
150
152
|
}>;
|
|
151
153
|
noAccess: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
152
|
-
title?: string
|
|
153
|
-
titleId?: string
|
|
154
|
-
desc?: string
|
|
155
|
-
descId?: string
|
|
154
|
+
title?: string;
|
|
155
|
+
titleId?: string;
|
|
156
|
+
desc?: string;
|
|
157
|
+
descId?: string;
|
|
156
158
|
}>;
|
|
157
159
|
trash: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
158
|
-
title?: string
|
|
159
|
-
titleId?: string
|
|
160
|
-
desc?: string
|
|
161
|
-
descId?: string
|
|
160
|
+
title?: string;
|
|
161
|
+
titleId?: string;
|
|
162
|
+
desc?: string;
|
|
163
|
+
descId?: string;
|
|
162
164
|
}>;
|
|
163
165
|
noImage: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
164
|
-
title?: string
|
|
165
|
-
titleId?: string
|
|
166
|
-
desc?: string
|
|
167
|
-
descId?: string
|
|
166
|
+
title?: string;
|
|
167
|
+
titleId?: string;
|
|
168
|
+
desc?: string;
|
|
169
|
+
descId?: string;
|
|
168
170
|
}>;
|
|
169
171
|
noResults: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
170
|
-
title?: string
|
|
171
|
-
titleId?: string
|
|
172
|
-
desc?: string
|
|
173
|
-
descId?: string
|
|
172
|
+
title?: string;
|
|
173
|
+
titleId?: string;
|
|
174
|
+
desc?: string;
|
|
175
|
+
descId?: string;
|
|
174
176
|
}>;
|
|
175
177
|
noTasks: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
176
|
-
title?: string
|
|
177
|
-
titleId?: string
|
|
178
|
-
desc?: string
|
|
179
|
-
descId?: string
|
|
178
|
+
title?: string;
|
|
179
|
+
titleId?: string;
|
|
180
|
+
desc?: string;
|
|
181
|
+
descId?: string;
|
|
180
182
|
}>;
|
|
181
183
|
noComments: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
182
|
-
title?: string
|
|
183
|
-
titleId?: string
|
|
184
|
-
desc?: string
|
|
185
|
-
descId?: string
|
|
184
|
+
title?: string;
|
|
185
|
+
titleId?: string;
|
|
186
|
+
desc?: string;
|
|
187
|
+
descId?: string;
|
|
186
188
|
}>;
|
|
187
189
|
noData: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
188
|
-
title?: string
|
|
189
|
-
titleId?: string
|
|
190
|
-
desc?: string
|
|
191
|
-
descId?: string
|
|
190
|
+
title?: string;
|
|
191
|
+
titleId?: string;
|
|
192
|
+
desc?: string;
|
|
193
|
+
descId?: string;
|
|
192
194
|
}>;
|
|
193
195
|
addDataR7: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
194
|
-
title?: string
|
|
195
|
-
titleId?: string
|
|
196
|
-
desc?: string
|
|
197
|
-
descId?: string
|
|
196
|
+
title?: string;
|
|
197
|
+
titleId?: string;
|
|
198
|
+
desc?: string;
|
|
199
|
+
descId?: string;
|
|
198
200
|
}>;
|
|
199
201
|
addDataLayers: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
200
|
-
title?: string
|
|
201
|
-
titleId?: string
|
|
202
|
-
desc?: string
|
|
203
|
-
descId?: string
|
|
202
|
+
title?: string;
|
|
203
|
+
titleId?: string;
|
|
204
|
+
desc?: string;
|
|
205
|
+
descId?: string;
|
|
204
206
|
}>;
|
|
205
207
|
emptyFolder: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
206
|
-
title?: string
|
|
207
|
-
titleId?: string
|
|
208
|
-
desc?: string
|
|
209
|
-
descId?: string
|
|
208
|
+
title?: string;
|
|
209
|
+
titleId?: string;
|
|
210
|
+
desc?: string;
|
|
211
|
+
descId?: string;
|
|
210
212
|
}>;
|
|
211
213
|
emptyBoard: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
212
|
-
title?: string
|
|
213
|
-
titleId?: string
|
|
214
|
-
desc?: string
|
|
215
|
-
descId?: string
|
|
214
|
+
title?: string;
|
|
215
|
+
titleId?: string;
|
|
216
|
+
desc?: string;
|
|
217
|
+
descId?: string;
|
|
216
218
|
}>;
|
|
217
219
|
noTaskResults: FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
218
|
-
title?: string
|
|
219
|
-
titleId?: string
|
|
220
|
-
desc?: string
|
|
221
|
-
descId?: string
|
|
220
|
+
title?: string;
|
|
221
|
+
titleId?: string;
|
|
222
|
+
desc?: string;
|
|
223
|
+
descId?: string;
|
|
222
224
|
}>;
|
|
223
225
|
'404': FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
224
|
-
title?: string
|
|
225
|
-
titleId?: string
|
|
226
|
-
desc?: string
|
|
227
|
-
descId?: string
|
|
226
|
+
title?: string;
|
|
227
|
+
titleId?: string;
|
|
228
|
+
desc?: string;
|
|
229
|
+
descId?: string;
|
|
228
230
|
}>;
|
|
229
231
|
'500': FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
230
|
-
title?: string
|
|
231
|
-
titleId?: string
|
|
232
|
-
desc?: string
|
|
233
|
-
descId?: string
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|