@layers-app/shared 0.0.11 → 0.0.13
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/api/giphy/index.d.ts +2 -0
- package/dist/api/giphy/slice.d.ts +11 -0
- package/dist/api/giphy/types.d.ts +127 -0
- package/dist/api/unsplash/index.d.ts +2 -0
- package/dist/api/unsplash/slice.d.ts +11 -0
- package/dist/api/unsplash/types.d.ts +143 -0
- package/dist/components/AlertsBlock/index.d.ts +9 -0
- package/dist/components/AppContainer/AppContainer.d.ts +12 -0
- package/dist/components/AppContainer/components/AllAppsMenu.d.ts +4 -0
- package/dist/components/AppContainer/components/DesktopNavbar.d.ts +3 -0
- package/dist/components/AppContainer/components/MenuUserDropdown.d.ts +29 -0
- package/dist/components/AppContainer/components/MobileNavbar.d.ts +3 -0
- package/dist/components/AppContainer/components/NavbarContent.d.ts +3 -0
- package/dist/components/AppContainer/components/NavbarFooter.d.ts +3 -0
- package/dist/components/AppContainer/components/NavbarHeader.d.ts +3 -0
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +2 -0
- package/dist/components/AppContainer/hooks/useAppContainerActionsStore.d.ts +2 -0
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts +2 -0
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +12 -0
- package/dist/components/AppContainer/hooks/useHideHeader.d.ts +1 -0
- package/dist/components/AppContainer/types.d.ts +47 -0
- package/dist/components/AppTour/AppTour.d.ts +7 -0
- package/dist/components/AppTour/FinishModal.d.ts +1 -0
- package/dist/components/AppTour/HelloModal.d.ts +1 -0
- package/dist/components/AppTour/hooks/useAppTour.d.ts +2 -0
- package/dist/components/AppTour/index.d.ts +4 -0
- package/dist/components/AppTour/types.d.ts +17 -0
- package/dist/components/CustomKBD/index.d.ts +19 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +13 -0
- package/dist/components/EmojiPicker/index.d.ts +2 -0
- package/dist/components/EmojiPicker/types.d.ts +8 -0
- package/dist/components/ErrorPage/components/Error404.d.ts +3 -0
- package/dist/components/ErrorPage/components/Error406.d.ts +3 -0
- package/dist/components/ErrorPage/components/Error500.d.ts +3 -0
- package/dist/components/ErrorPage/components/index.d.ts +3 -0
- package/dist/components/ErrorPage/index.d.ts +13 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +25 -0
- package/dist/components/ImagePicker/ImagePickerGallery.d.ts +5 -0
- package/dist/components/ImagePicker/ImagePickerGiphy.d.ts +6 -0
- package/dist/components/ImagePicker/ImagePickerLink.d.ts +5 -0
- package/dist/components/ImagePicker/ImagePickerSkeletonLoader.d.ts +1 -0
- package/dist/components/ImagePicker/ImagePickerUnsplash.d.ts +6 -0
- package/dist/components/ImagePicker/ImagePickerUpload.d.ts +8 -0
- package/dist/components/ImagePicker/api/giphyApi.d.ts +10 -0
- package/dist/components/ImagePicker/api/unsplashApi.d.ts +10 -0
- package/dist/components/ImagePicker/index.d.ts +1 -0
- package/dist/components/ImagePicker/types.d.ts +29 -0
- package/dist/components/LanguagePicker/index.d.ts +11 -0
- package/dist/components/NavbarResizer/NavbarResizer.d.ts +6 -0
- package/dist/components/NoData/NoData.d.ts +106 -0
- package/dist/components/NoData/index.d.ts +1 -0
- package/dist/components/NotFoundPage/index.d.ts +3 -0
- package/dist/components/Notification/NotificationCard.d.ts +7 -0
- package/dist/components/Notification/index.d.ts +6 -0
- package/dist/components/OnBoarding/OnBoardingPage.d.ts +1 -0
- package/dist/components/OnBoarding/ProjectBoard.d.ts +4 -0
- package/dist/components/OnBoarding/StepsNavBar.d.ts +4 -0
- package/dist/components/OnBoarding/index.d.ts +1 -0
- package/dist/components/OnBoarding/steps/AddMembers/AddMembers.d.ts +2 -0
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.d.ts +2 -0
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts +2 -0
- package/dist/components/OnBoarding/steps/CreateFirstProject.d.ts +2 -0
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.d.ts +2 -0
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts +2 -0
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts +2 -0
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.d.ts +2 -0
- package/dist/components/OnBoarding/steps/StartedStep.d.ts +2 -0
- package/dist/components/OnBoarding/steps/Wrapper.d.ts +11 -0
- package/dist/components/SubmitModal/index.d.ts +4 -0
- package/dist/components/UserAvatar/index.d.ts +11 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +8 -0
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +15 -0
- package/dist/helpers/feature.d.ts +2 -0
- package/dist/helpers/showNotifications.d.ts +10 -0
- package/dist/helpers/themeUtils.d.ts +1 -0
- package/dist/helpers/token.d.ts +3 -0
- package/dist/helpers/validation.d.ts +3 -0
- package/dist/hooks/useDateFnsLocale.d.ts +1 -0
- package/dist/hooks/useFormatDistance.d.ts +1 -0
- package/dist/hooks/useMenu.d.ts +7 -0
- package/dist/hooks/useOAuthErrorParams.d.ts +5 -0
- package/dist/hooks/useSwipeDetect.d.ts +6 -0
- package/dist/index.d.ts +31 -149
- package/dist/index.js +12186 -50303
- package/dist/index.umd.cjs +103 -104
- package/dist/store/onboarding.d.ts +17 -0
- package/dist/store/searchModal.d.ts +7 -0
- package/package.json +26 -44
- package/dist/package.json +0 -12
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiGiphy } from './types';
|
|
2
|
+
type Data = {
|
|
3
|
+
items: ApiGiphy.Datum[];
|
|
4
|
+
page: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
};
|
|
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">;
|
|
10
|
+
}, "giphyApi", never, typeof import('@reduxjs/toolkit/query').coreModuleName | typeof import('@reduxjs/toolkit/query/react').reactHooksModuleName>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export declare namespace ApiGiphy {
|
|
2
|
+
type Request = {
|
|
3
|
+
offset?: number;
|
|
4
|
+
limit?: number;
|
|
5
|
+
q?: string;
|
|
6
|
+
};
|
|
7
|
+
interface Response {
|
|
8
|
+
data: Datum[];
|
|
9
|
+
meta: Meta;
|
|
10
|
+
pagination: Pagination;
|
|
11
|
+
}
|
|
12
|
+
interface Datum {
|
|
13
|
+
type: Type;
|
|
14
|
+
id: string;
|
|
15
|
+
url: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
bitly_gif_url: string;
|
|
18
|
+
bitly_url: string;
|
|
19
|
+
embed_url: string;
|
|
20
|
+
username: string;
|
|
21
|
+
source: string;
|
|
22
|
+
title: string;
|
|
23
|
+
rating: Rating;
|
|
24
|
+
content_url: string;
|
|
25
|
+
source_tld: string;
|
|
26
|
+
source_post_url: string;
|
|
27
|
+
is_sticker: number;
|
|
28
|
+
import_datetime: Date;
|
|
29
|
+
trending_datetime: string;
|
|
30
|
+
images: Images;
|
|
31
|
+
user?: User;
|
|
32
|
+
analytics_response_payload: string;
|
|
33
|
+
analytics: Analytics;
|
|
34
|
+
alt_text: string;
|
|
35
|
+
}
|
|
36
|
+
interface Analytics {
|
|
37
|
+
onload: Onclick;
|
|
38
|
+
onclick: Onclick;
|
|
39
|
+
onsent: Onclick;
|
|
40
|
+
}
|
|
41
|
+
interface Onclick {
|
|
42
|
+
url: string;
|
|
43
|
+
}
|
|
44
|
+
interface Images {
|
|
45
|
+
original: FixedHeight;
|
|
46
|
+
downsized: The480_WStill;
|
|
47
|
+
downsized_large: The480_WStill;
|
|
48
|
+
downsized_medium: The480_WStill;
|
|
49
|
+
downsized_small: The4_K;
|
|
50
|
+
downsized_still: The480_WStill;
|
|
51
|
+
fixed_height: FixedHeight;
|
|
52
|
+
fixed_height_downsampled: FixedHeight;
|
|
53
|
+
fixed_height_small: FixedHeight;
|
|
54
|
+
fixed_height_small_still: The480_WStill;
|
|
55
|
+
fixed_height_still: The480_WStill;
|
|
56
|
+
fixed_width: FixedHeight;
|
|
57
|
+
fixed_width_downsampled: FixedHeight;
|
|
58
|
+
fixed_width_small: FixedHeight;
|
|
59
|
+
fixed_width_small_still: The480_WStill;
|
|
60
|
+
fixed_width_still: The480_WStill;
|
|
61
|
+
looping: Looping;
|
|
62
|
+
original_still: The480_WStill;
|
|
63
|
+
original_mp4: The4_K;
|
|
64
|
+
preview: The4_K;
|
|
65
|
+
preview_gif: The480_WStill;
|
|
66
|
+
preview_webp: The480_WStill;
|
|
67
|
+
hd?: The4_K;
|
|
68
|
+
'480w_still': The480_WStill;
|
|
69
|
+
'4k'?: The4_K;
|
|
70
|
+
}
|
|
71
|
+
interface The480_WStill {
|
|
72
|
+
height: string;
|
|
73
|
+
width: string;
|
|
74
|
+
size: string;
|
|
75
|
+
url: string;
|
|
76
|
+
}
|
|
77
|
+
interface The4_K {
|
|
78
|
+
height: string;
|
|
79
|
+
width: string;
|
|
80
|
+
mp4_size: string;
|
|
81
|
+
mp4: string;
|
|
82
|
+
}
|
|
83
|
+
interface FixedHeight {
|
|
84
|
+
height: string;
|
|
85
|
+
width: string;
|
|
86
|
+
size: string;
|
|
87
|
+
url: string;
|
|
88
|
+
mp4_size?: string;
|
|
89
|
+
mp4?: string;
|
|
90
|
+
webp_size: string;
|
|
91
|
+
webp: string;
|
|
92
|
+
frames?: string;
|
|
93
|
+
hash?: string;
|
|
94
|
+
}
|
|
95
|
+
interface Looping {
|
|
96
|
+
mp4_size: string;
|
|
97
|
+
mp4: string;
|
|
98
|
+
}
|
|
99
|
+
enum Rating {
|
|
100
|
+
G = "g"
|
|
101
|
+
}
|
|
102
|
+
enum Type {
|
|
103
|
+
GIF = "gif"
|
|
104
|
+
}
|
|
105
|
+
interface User {
|
|
106
|
+
avatar_url: string;
|
|
107
|
+
banner_image: string;
|
|
108
|
+
banner_url: string;
|
|
109
|
+
profile_url: string;
|
|
110
|
+
username: string;
|
|
111
|
+
display_name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
instagram_url: string;
|
|
114
|
+
website_url: string;
|
|
115
|
+
is_verified: boolean;
|
|
116
|
+
}
|
|
117
|
+
interface Meta {
|
|
118
|
+
status: number;
|
|
119
|
+
msg: string;
|
|
120
|
+
response_id: string;
|
|
121
|
+
}
|
|
122
|
+
interface Pagination {
|
|
123
|
+
total_count: number;
|
|
124
|
+
count: number;
|
|
125
|
+
offset: number;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ApiUnsplash } from './types';
|
|
2
|
+
type Data = {
|
|
3
|
+
items: ApiUnsplash.Datum[];
|
|
4
|
+
page: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
};
|
|
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">;
|
|
10
|
+
}, "unsplashApi", never, typeof import('@reduxjs/toolkit/query').coreModuleName | typeof import('@reduxjs/toolkit/query/react').reactHooksModuleName>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export declare namespace ApiUnsplash {
|
|
2
|
+
type Request = {
|
|
3
|
+
page?: number;
|
|
4
|
+
query?: string;
|
|
5
|
+
per_page?: number;
|
|
6
|
+
order_by?: 'latest' | 'oldest' | 'popular';
|
|
7
|
+
orientation?: 'landscape' | 'portrait' | 'squarish';
|
|
8
|
+
};
|
|
9
|
+
type Response = Datum[] | {
|
|
10
|
+
results: Datum[];
|
|
11
|
+
total: number;
|
|
12
|
+
total_pages: number;
|
|
13
|
+
};
|
|
14
|
+
interface Datum {
|
|
15
|
+
id: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
alternative_slugs: AlternativeSlugs;
|
|
18
|
+
created_at: Date;
|
|
19
|
+
updated_at: Date;
|
|
20
|
+
promoted_at: Date | null;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
color: string;
|
|
24
|
+
blur_hash: string;
|
|
25
|
+
description: null | string;
|
|
26
|
+
alt_description: string;
|
|
27
|
+
breadcrumbs: Breadcrumb[];
|
|
28
|
+
urls: Urls;
|
|
29
|
+
links: ResponseLinks;
|
|
30
|
+
likes: number;
|
|
31
|
+
liked_by_user: boolean;
|
|
32
|
+
current_user_collections: any[];
|
|
33
|
+
sponsorship: Sponsorship | null;
|
|
34
|
+
topic_submissions: TopicSubmissions;
|
|
35
|
+
asset_type: AssetType;
|
|
36
|
+
user: User;
|
|
37
|
+
}
|
|
38
|
+
interface AlternativeSlugs {
|
|
39
|
+
en: string;
|
|
40
|
+
es: string;
|
|
41
|
+
ja: string;
|
|
42
|
+
fr: string;
|
|
43
|
+
it: string;
|
|
44
|
+
ko: string;
|
|
45
|
+
de: string;
|
|
46
|
+
pt: string;
|
|
47
|
+
}
|
|
48
|
+
enum AssetType {
|
|
49
|
+
Photo = "photo"
|
|
50
|
+
}
|
|
51
|
+
interface Breadcrumb {
|
|
52
|
+
slug: string;
|
|
53
|
+
title: string;
|
|
54
|
+
index: number;
|
|
55
|
+
type: string;
|
|
56
|
+
}
|
|
57
|
+
interface ResponseLinks {
|
|
58
|
+
self: string;
|
|
59
|
+
html: string;
|
|
60
|
+
download: string;
|
|
61
|
+
download_location: string;
|
|
62
|
+
}
|
|
63
|
+
interface Sponsorship {
|
|
64
|
+
impression_urls: string[];
|
|
65
|
+
tagline: string;
|
|
66
|
+
tagline_url: string;
|
|
67
|
+
sponsor: User;
|
|
68
|
+
}
|
|
69
|
+
interface User {
|
|
70
|
+
id: string;
|
|
71
|
+
updated_at: Date;
|
|
72
|
+
username: string;
|
|
73
|
+
name: string;
|
|
74
|
+
first_name: string;
|
|
75
|
+
last_name: string;
|
|
76
|
+
twitter_username: null | string;
|
|
77
|
+
portfolio_url: null | string;
|
|
78
|
+
bio: null | string;
|
|
79
|
+
location: null | string;
|
|
80
|
+
links: UserLinks;
|
|
81
|
+
profile_image: ProfileImage;
|
|
82
|
+
instagram_username: null | string;
|
|
83
|
+
total_collections: number;
|
|
84
|
+
total_likes: number;
|
|
85
|
+
total_photos: number;
|
|
86
|
+
total_promoted_photos: number;
|
|
87
|
+
total_illustrations: number;
|
|
88
|
+
total_promoted_illustrations: number;
|
|
89
|
+
accepted_tos: boolean;
|
|
90
|
+
for_hire: boolean;
|
|
91
|
+
social: Social;
|
|
92
|
+
}
|
|
93
|
+
interface UserLinks {
|
|
94
|
+
self: string;
|
|
95
|
+
html: string;
|
|
96
|
+
photos: string;
|
|
97
|
+
likes: string;
|
|
98
|
+
portfolio: string;
|
|
99
|
+
following: string;
|
|
100
|
+
followers: string;
|
|
101
|
+
}
|
|
102
|
+
interface ProfileImage {
|
|
103
|
+
small: string;
|
|
104
|
+
medium: string;
|
|
105
|
+
large: string;
|
|
106
|
+
}
|
|
107
|
+
interface Social {
|
|
108
|
+
instagram_username: null | string;
|
|
109
|
+
portfolio_url: null | string;
|
|
110
|
+
twitter_username: null | string;
|
|
111
|
+
paypal_email: null;
|
|
112
|
+
}
|
|
113
|
+
interface TopicSubmissions {
|
|
114
|
+
wallpapers?: Blue;
|
|
115
|
+
nature?: Blue;
|
|
116
|
+
'textures-patterns'?: Blue;
|
|
117
|
+
monochromatic?: Blue;
|
|
118
|
+
blue?: Blue;
|
|
119
|
+
travel?: Travel;
|
|
120
|
+
'current-events'?: Blue;
|
|
121
|
+
'food-drink'?: Blue;
|
|
122
|
+
health?: Blue;
|
|
123
|
+
}
|
|
124
|
+
interface Blue {
|
|
125
|
+
status: Status;
|
|
126
|
+
approved_on?: Date;
|
|
127
|
+
}
|
|
128
|
+
enum Status {
|
|
129
|
+
Approved = "approved",
|
|
130
|
+
Rejected = "rejected"
|
|
131
|
+
}
|
|
132
|
+
interface Travel {
|
|
133
|
+
status: Status;
|
|
134
|
+
}
|
|
135
|
+
interface Urls {
|
|
136
|
+
raw: string;
|
|
137
|
+
full: string;
|
|
138
|
+
regular: string;
|
|
139
|
+
small: string;
|
|
140
|
+
thumb: string;
|
|
141
|
+
small_s3: string;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type AlertType = {
|
|
3
|
+
trigger: any;
|
|
4
|
+
message: string | React.ReactNode;
|
|
5
|
+
type?: 'error' | 'success' | 'info';
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
autoClose?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const AlertsBlock: (props: AlertType) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppContainerProps } from './types';
|
|
2
|
+
export declare const AppContainer: (({ header, content, navbar, navbarTitle, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
|
+
NavbarContent: ({ children }: {
|
|
4
|
+
children?: import('react').ReactNode;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
NavbarFooter: ({ children }: {
|
|
7
|
+
children?: import('react').ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
NavbarHeader: ({ children }: {
|
|
10
|
+
children?: import('react').ReactNode;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { FloatingPosition } from '@mantine/core';
|
|
3
|
+
export type MenuUser = {
|
|
4
|
+
id: string;
|
|
5
|
+
avatar: string | null;
|
|
6
|
+
email: string | null;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export type UserNotifications = {
|
|
10
|
+
createdAt: string;
|
|
11
|
+
read: boolean;
|
|
12
|
+
link: string;
|
|
13
|
+
description: string;
|
|
14
|
+
id: number;
|
|
15
|
+
type: number;
|
|
16
|
+
projectName: string;
|
|
17
|
+
pageIcon: string;
|
|
18
|
+
pageName: string;
|
|
19
|
+
projectIcon: number;
|
|
20
|
+
taskName?: string;
|
|
21
|
+
pageId?: number;
|
|
22
|
+
taskId?: number;
|
|
23
|
+
};
|
|
24
|
+
export type MenuUserDropdownProps = PropsWithChildren<{
|
|
25
|
+
position?: FloatingPosition;
|
|
26
|
+
menuItems?: ReactNode;
|
|
27
|
+
user: MenuUser;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const MenuUserDropdown: ({ position, children, user, menuItems, }: MenuUserDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppContainerStore } from '../types';
|
|
2
|
+
export declare const useAppContainerStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<AppContainerStore>, "persist"> & {
|
|
3
|
+
persist: {
|
|
4
|
+
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<AppContainerStore, AppContainerStore>>) => void;
|
|
5
|
+
clearStorage: () => void;
|
|
6
|
+
rehydrate: () => void | Promise<void>;
|
|
7
|
+
hasHydrated: () => boolean;
|
|
8
|
+
onHydrate: (fn: (state: AppContainerStore) => void) => () => void;
|
|
9
|
+
onFinishHydration: (fn: (state: AppContainerStore) => void) => () => void;
|
|
10
|
+
getOptions: () => Partial<import('zustand/middleware').PersistOptions<AppContainerStore, AppContainerStore>>;
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useHideHeader: () => void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WorkspaceMenuProps } from '../WorkspaceMenu/WorkspaceMenu';
|
|
3
|
+
import { MenuUser, UserNotifications } from './components/MenuUserDropdown';
|
|
4
|
+
export type ToolDef = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
icon: ReactNode;
|
|
8
|
+
path: string;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
};
|
|
11
|
+
export type AppContainerProps = {
|
|
12
|
+
content?: ReactNode;
|
|
13
|
+
navbar?: ReactNode;
|
|
14
|
+
header?: ReactNode;
|
|
15
|
+
navbarTitle?: string;
|
|
16
|
+
};
|
|
17
|
+
export type AppContainerDataStore = {
|
|
18
|
+
tools: ToolDef[];
|
|
19
|
+
workspaceMenu: WorkspaceMenuProps;
|
|
20
|
+
user: MenuUser;
|
|
21
|
+
userMenuItems?: ReactNode;
|
|
22
|
+
notifications: UserNotifications[];
|
|
23
|
+
};
|
|
24
|
+
type ReadNotificationsRequest = {
|
|
25
|
+
messageIds: number[];
|
|
26
|
+
markAll: boolean;
|
|
27
|
+
action: 1;
|
|
28
|
+
};
|
|
29
|
+
export type AppContainerActionsStore = {
|
|
30
|
+
readNotificationsFunc: (data: ReadNotificationsRequest) => void;
|
|
31
|
+
};
|
|
32
|
+
export type AppContainerStore = {
|
|
33
|
+
navbarWidth: number;
|
|
34
|
+
onNavbarWidthChange: (width: number) => void;
|
|
35
|
+
opened: boolean;
|
|
36
|
+
toggle: () => void;
|
|
37
|
+
close: () => void;
|
|
38
|
+
open: () => void;
|
|
39
|
+
theme: string;
|
|
40
|
+
hiddenTools: string[];
|
|
41
|
+
toggleToolVisibility: (id: string) => void;
|
|
42
|
+
withoutNavbar: boolean;
|
|
43
|
+
withoutHeader: boolean;
|
|
44
|
+
isTourPassed: boolean;
|
|
45
|
+
toggleTourPassed: (flag: boolean) => void;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FinishModal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HelloModal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Step } from 'react-joyride';
|
|
2
|
+
interface TourState {
|
|
3
|
+
run?: boolean;
|
|
4
|
+
stepIndex?: number;
|
|
5
|
+
steps?: Step[];
|
|
6
|
+
}
|
|
7
|
+
export interface IAppTour {
|
|
8
|
+
isOpenedHelloModal: boolean;
|
|
9
|
+
toggleHelloModal: (value: boolean) => void;
|
|
10
|
+
isTourRunning: boolean;
|
|
11
|
+
setIsTourRunning: (value: boolean) => void;
|
|
12
|
+
tourState: TourState;
|
|
13
|
+
setTourState: (value: TourState) => void;
|
|
14
|
+
isOpenFinishModal: boolean;
|
|
15
|
+
setOpenFinishModal: (value: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
interface CustomKBDProps {
|
|
4
|
+
value: string | ReactNode;
|
|
5
|
+
miw?: number;
|
|
6
|
+
w?: number;
|
|
7
|
+
mr?: number;
|
|
8
|
+
fz?: number;
|
|
9
|
+
h?: number;
|
|
10
|
+
color?: string;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
fontFamily?: string;
|
|
13
|
+
fw?: number;
|
|
14
|
+
c?: string;
|
|
15
|
+
br?: number;
|
|
16
|
+
bbw?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare const CustomKBD: ({ value, miw, w, mr, fz, fontFamily, fw, bbw, br, onClick, ...props }: CustomKBDProps & BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default CustomKBD;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { FloatingPosition, PopoverProps } from '@mantine/core';
|
|
3
|
+
import { EmojiPickerLocales } from './types';
|
|
4
|
+
export type EmojiPickerProps = {
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (v: string) => void;
|
|
7
|
+
onRemove?: () => void;
|
|
8
|
+
hasIcon?: boolean;
|
|
9
|
+
position?: FloatingPosition;
|
|
10
|
+
popoverProps?: PopoverProps;
|
|
11
|
+
locales?: EmojiPickerLocales;
|
|
12
|
+
};
|
|
13
|
+
export declare const EmojiPicker: ({ value, children, onChange, onRemove, hasIcon, position, popoverProps, locales, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
|
|
2
|
+
type Props = {
|
|
3
|
+
error: FetchBaseQueryError | SerializedError | undefined;
|
|
4
|
+
closeAction?: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ErrorPage: ({ error, closeAction }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
interface SerializedError {
|
|
8
|
+
name?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
stack?: string;
|
|
11
|
+
code?: string;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { FloatingPosition, PopoverProps } from '@mantine/core';
|
|
3
|
+
import { DropzoneProps, FileWithPath } from '@mantine/dropzone';
|
|
4
|
+
import { ImagePickerGalleryCollection, ImagePickerLocales } from './types';
|
|
5
|
+
declare const baseTabsList: readonly ["gallery", "upload", "link", "unsplash", "giphy"];
|
|
6
|
+
type TabType = (typeof baseTabsList)[number];
|
|
7
|
+
export type ImagePickerProps = PropsWithChildren<{
|
|
8
|
+
onChange?: (v: string) => void;
|
|
9
|
+
onRemove?: () => void;
|
|
10
|
+
onUpload?: (files: FileWithPath[], setOpened: (state: boolean) => void) => void;
|
|
11
|
+
uploading?: boolean;
|
|
12
|
+
showTabs?: readonly TabType[];
|
|
13
|
+
position?: FloatingPosition;
|
|
14
|
+
width?: number;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
hasImage?: boolean;
|
|
17
|
+
giphyToken?: string;
|
|
18
|
+
unsplashClientId?: string;
|
|
19
|
+
galleryCollection?: ImagePickerGalleryCollection[];
|
|
20
|
+
popoverProps?: PopoverProps;
|
|
21
|
+
dropZoneProps?: Omit<DropzoneProps, 'onDrop'>;
|
|
22
|
+
locales?: ImagePickerLocales;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const ImagePicker: ({ onChange, onRemove, onUpload, uploading, showTabs, children, width, position, readOnly, hasImage, giphyToken, unsplashClientId, galleryCollection, popoverProps, dropZoneProps, locales, }: PropsWithChildren<ImagePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ImagePickerSkeletonLoader: () => import("react/jsx-runtime").JSX.Element;
|