@layers-app/shared 0.0.43 → 0.0.45
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/KanbanLayout-C6wJBGZ2.js +287 -0
- package/dist/components/AppContainer/AppContainer.d.ts +2 -3
- package/dist/components/AppContainer/Header.d.ts +8 -0
- package/dist/components/AppContainer/Main.d.ts +2 -0
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +9 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +4 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts +4 -0
- package/dist/components/AppContainer/components/MobileNavbar.d.ts +2 -2
- package/dist/components/AppContainer/components/RightSidebar.d.ts +2 -0
- package/dist/components/AppContainer/components/SidebarToggleButton.d.ts +3 -0
- package/dist/components/AppContainer/components/SlideAnimation.d.ts +6 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +3 -0
- package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +2 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +1 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/WhatsNew.d.ts +7 -0
- package/dist/components/AppContainer/components/menus/MoreMenu.d.ts +1 -0
- package/dist/components/AppContainer/components/{MenuUserDropdown.d.ts → menus/UserMenu/MenuUserDropdown.d.ts} +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +30 -12
- package/dist/components/AppContainer/types.d.ts +15 -11
- package/dist/components/AppShell/AppShell.d.ts +12 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +22 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/components/ErrorSection.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +4 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +7 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +7 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +9 -0
- package/dist/components/AttachmentsGalleryModal/constants.d.ts +19 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useEmblaCarousel.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useZoomReset.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/types.d.ts +0 -8
- package/dist/components/CommentComposer/index.d.ts +1 -1
- package/dist/components/CommentsPanel/components/CommentsListItemMenu.d.ts +1 -1
- package/dist/components/EntityIcon.d.ts +7 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.d.ts +2 -1
- package/dist/components/FormViewer/helpers/conditions.d.ts +1 -1
- package/dist/components/FormViewer/helpers/helpers.d.ts +1 -1
- package/dist/components/FormViewer/helpers/steps.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +1 -1
- package/dist/components/FormViewer/store/formStore.d.ts +30 -30
- package/dist/components/FormViewer/store/formStoreApi.d.ts +3 -3
- package/dist/components/FormViewer/store/selectors.d.ts +342 -342
- package/dist/components/FormViewer/types/schemes.d.ts +22 -22
- package/dist/components/Loaders/BaseLoader.d.ts +3 -0
- package/dist/components/NavMenu/NavMenu.d.ts +21 -0
- package/dist/components/NavMenu/components/DnDItem.d.ts +8 -0
- package/dist/components/NavMenu/components/DnDProvider.d.ts +8 -0
- package/dist/components/NavMenu/components/DraggableOverlay.d.ts +1 -0
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +2 -0
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +7 -0
- package/dist/components/NavMenu/components/NavMenuLabel.d.ts +3 -0
- package/dist/components/NavMenu/index.d.ts +5 -0
- package/dist/components/NavMenu/store.d.ts +37 -0
- package/dist/components/NavMenu/types.d.ts +29 -0
- package/dist/components/NavbarResizer/NavbarResizer.d.ts +5 -2
- package/dist/components/Notification/Notification.d.ts +1 -0
- package/dist/components/Notification/NotificationCard.d.ts +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +3 -3
- package/dist/components/SubmitModal/index.d.ts +2 -2
- package/dist/components/UserAvatar/index.d.ts +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +6 -10
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts +2 -14
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +9 -8
- package/dist/components/modals/RemoveConfirmModal.d.ts +2 -0
- package/dist/constants.d.ts +0 -1
- package/dist/emoji-categorized-DAOdcF53.js +4 -0
- package/dist/helpers/download.d.ts +2 -2
- package/dist/hooks/useDateUtils.d.ts +1 -0
- package/dist/hooks/useMenu.d.ts +0 -3
- package/dist/icons.min-Chyr-bjL.js +4 -0
- package/dist/index-W83Evo8i.js +78459 -0
- package/dist/index.d.ts +11 -11
- package/dist/index.js +309 -261
- package/dist/index.umd.cjs +429 -60
- package/dist/lang/index.d.ts +4 -0
- package/dist/lang/locales/ui_en.json.d.ts +80 -0
- package/dist/lang/locales/ui_es.json.d.ts +77 -0
- package/dist/lang/locales/ui_ru.json.d.ts +81 -0
- package/dist/types/files.d.ts +18 -0
- package/package.json +17 -9
- package/dist/KanbanLayout-_7CnQOIn.js +0 -297
- package/dist/components/AppContainer/components/AllAppsMenu.d.ts +0 -5
- package/dist/components/AppContainer/components/DesktopNavbar.d.ts +0 -7
- package/dist/components/AppContainer/components/NavbarFooter.d.ts +0 -3
- package/dist/components/AppContainer/components/NavbarHeader.d.ts +0 -3
- package/dist/components/AttachmentsGalleryModal/ShakaPlayer.d.ts +0 -15
- package/dist/components/AttachmentsGalleryModal/index.d.ts +0 -2
- package/dist/components/InfoMenu/index.d.ts +0 -1
- package/dist/components/InviteModal/InviteModal.d.ts +0 -2
- package/dist/components/InviteModal/slice.d.ts +0 -13
- package/dist/components/Notification/index.d.ts +0 -6
- package/dist/components/RichText/extensions/bold.d.ts +0 -3
- package/dist/components/RichText/extensions/check-list.d.ts +0 -42
- package/dist/components/RichText/extensions/color-picker.d.ts +0 -28
- package/dist/components/RichText/extensions/font-size.d.ts +0 -23
- package/dist/components/RichText/extensions/italic.d.ts +0 -3
- package/dist/components/RichText/extensions/underline.d.ts +0 -3
- package/dist/components/RichText/index.d.ts +0 -41
- package/dist/components/modals/openRemoveConfirmModal.d.ts +0 -4
- package/dist/emoji-categorized-CRsMUQyD.js +0 -4
- package/dist/icons.min-wo13YUY4.js +0 -4
- package/dist/index-BMtIEojG.js +0 -115208
- package/dist/store/aboutModal.d.ts +0 -7
- package/dist/store/trashModal.d.ts +0 -7
- /package/dist/components/{AttachmentsGalleryModal → ImageModal}/ImageModal.d.ts +0 -0
|
@@ -1626,6 +1626,7 @@ export declare namespace Schemes {
|
|
|
1626
1626
|
fontFamily?: string | undefined;
|
|
1627
1627
|
} | undefined;
|
|
1628
1628
|
align?: "center" | "end" | "start" | undefined;
|
|
1629
|
+
primaryColor?: string | undefined;
|
|
1629
1630
|
background?: {
|
|
1630
1631
|
image?: string | undefined;
|
|
1631
1632
|
color?: string | undefined;
|
|
@@ -1651,7 +1652,6 @@ export declare namespace Schemes {
|
|
|
1651
1652
|
fontFamily?: string | undefined;
|
|
1652
1653
|
} | undefined;
|
|
1653
1654
|
listStyle?: string | undefined;
|
|
1654
|
-
primaryColor?: string | undefined;
|
|
1655
1655
|
customCSS?: string | undefined;
|
|
1656
1656
|
}, {
|
|
1657
1657
|
input?: {
|
|
@@ -1672,6 +1672,7 @@ export declare namespace Schemes {
|
|
|
1672
1672
|
fontFamily?: string | undefined;
|
|
1673
1673
|
} | undefined;
|
|
1674
1674
|
align?: "center" | "end" | "start" | undefined;
|
|
1675
|
+
primaryColor?: string | undefined;
|
|
1675
1676
|
background?: {
|
|
1676
1677
|
image?: string | undefined;
|
|
1677
1678
|
color?: string | undefined;
|
|
@@ -1697,7 +1698,6 @@ export declare namespace Schemes {
|
|
|
1697
1698
|
fontFamily?: string | undefined;
|
|
1698
1699
|
} | undefined;
|
|
1699
1700
|
listStyle?: string | undefined;
|
|
1700
|
-
primaryColor?: string | undefined;
|
|
1701
1701
|
customCSS?: string | undefined;
|
|
1702
1702
|
}>;
|
|
1703
1703
|
const stepSchema: z.ZodObject<{
|
|
@@ -2524,6 +2524,7 @@ export declare namespace Schemes {
|
|
|
2524
2524
|
fontFamily?: string | undefined;
|
|
2525
2525
|
} | undefined;
|
|
2526
2526
|
align?: "center" | "end" | "start" | undefined;
|
|
2527
|
+
primaryColor?: string | undefined;
|
|
2527
2528
|
background?: {
|
|
2528
2529
|
image?: string | undefined;
|
|
2529
2530
|
color?: string | undefined;
|
|
@@ -2549,7 +2550,6 @@ export declare namespace Schemes {
|
|
|
2549
2550
|
fontFamily?: string | undefined;
|
|
2550
2551
|
} | undefined;
|
|
2551
2552
|
listStyle?: string | undefined;
|
|
2552
|
-
primaryColor?: string | undefined;
|
|
2553
2553
|
customCSS?: string | undefined;
|
|
2554
2554
|
}, {
|
|
2555
2555
|
input?: {
|
|
@@ -2570,6 +2570,7 @@ export declare namespace Schemes {
|
|
|
2570
2570
|
fontFamily?: string | undefined;
|
|
2571
2571
|
} | undefined;
|
|
2572
2572
|
align?: "center" | "end" | "start" | undefined;
|
|
2573
|
+
primaryColor?: string | undefined;
|
|
2573
2574
|
background?: {
|
|
2574
2575
|
image?: string | undefined;
|
|
2575
2576
|
color?: string | undefined;
|
|
@@ -2595,7 +2596,6 @@ export declare namespace Schemes {
|
|
|
2595
2596
|
fontFamily?: string | undefined;
|
|
2596
2597
|
} | undefined;
|
|
2597
2598
|
listStyle?: string | undefined;
|
|
2598
|
-
primaryColor?: string | undefined;
|
|
2599
2599
|
customCSS?: string | undefined;
|
|
2600
2600
|
}>>;
|
|
2601
2601
|
position: z.ZodOptional<z.ZodObject<{
|
|
@@ -2850,6 +2850,7 @@ export declare namespace Schemes {
|
|
|
2850
2850
|
fontFamily?: string | undefined;
|
|
2851
2851
|
} | undefined;
|
|
2852
2852
|
align?: "center" | "end" | "start" | undefined;
|
|
2853
|
+
primaryColor?: string | undefined;
|
|
2853
2854
|
background?: {
|
|
2854
2855
|
image?: string | undefined;
|
|
2855
2856
|
color?: string | undefined;
|
|
@@ -2875,7 +2876,6 @@ export declare namespace Schemes {
|
|
|
2875
2876
|
fontFamily?: string | undefined;
|
|
2876
2877
|
} | undefined;
|
|
2877
2878
|
listStyle?: string | undefined;
|
|
2878
|
-
primaryColor?: string | undefined;
|
|
2879
2879
|
customCSS?: string | undefined;
|
|
2880
2880
|
} | undefined;
|
|
2881
2881
|
isStart?: boolean | undefined;
|
|
@@ -3130,6 +3130,7 @@ export declare namespace Schemes {
|
|
|
3130
3130
|
fontFamily?: string | undefined;
|
|
3131
3131
|
} | undefined;
|
|
3132
3132
|
align?: "center" | "end" | "start" | undefined;
|
|
3133
|
+
primaryColor?: string | undefined;
|
|
3133
3134
|
background?: {
|
|
3134
3135
|
image?: string | undefined;
|
|
3135
3136
|
color?: string | undefined;
|
|
@@ -3155,7 +3156,6 @@ export declare namespace Schemes {
|
|
|
3155
3156
|
fontFamily?: string | undefined;
|
|
3156
3157
|
} | undefined;
|
|
3157
3158
|
listStyle?: string | undefined;
|
|
3158
|
-
primaryColor?: string | undefined;
|
|
3159
3159
|
customCSS?: string | undefined;
|
|
3160
3160
|
} | undefined;
|
|
3161
3161
|
isStart?: boolean | undefined;
|
|
@@ -3994,6 +3994,7 @@ export declare namespace Schemes {
|
|
|
3994
3994
|
fontFamily?: string | undefined;
|
|
3995
3995
|
} | undefined;
|
|
3996
3996
|
align?: "center" | "end" | "start" | undefined;
|
|
3997
|
+
primaryColor?: string | undefined;
|
|
3997
3998
|
background?: {
|
|
3998
3999
|
image?: string | undefined;
|
|
3999
4000
|
color?: string | undefined;
|
|
@@ -4019,7 +4020,6 @@ export declare namespace Schemes {
|
|
|
4019
4020
|
fontFamily?: string | undefined;
|
|
4020
4021
|
} | undefined;
|
|
4021
4022
|
listStyle?: string | undefined;
|
|
4022
|
-
primaryColor?: string | undefined;
|
|
4023
4023
|
customCSS?: string | undefined;
|
|
4024
4024
|
}, {
|
|
4025
4025
|
input?: {
|
|
@@ -4040,6 +4040,7 @@ export declare namespace Schemes {
|
|
|
4040
4040
|
fontFamily?: string | undefined;
|
|
4041
4041
|
} | undefined;
|
|
4042
4042
|
align?: "center" | "end" | "start" | undefined;
|
|
4043
|
+
primaryColor?: string | undefined;
|
|
4043
4044
|
background?: {
|
|
4044
4045
|
image?: string | undefined;
|
|
4045
4046
|
color?: string | undefined;
|
|
@@ -4065,7 +4066,6 @@ export declare namespace Schemes {
|
|
|
4065
4066
|
fontFamily?: string | undefined;
|
|
4066
4067
|
} | undefined;
|
|
4067
4068
|
listStyle?: string | undefined;
|
|
4068
|
-
primaryColor?: string | undefined;
|
|
4069
4069
|
customCSS?: string | undefined;
|
|
4070
4070
|
}>>;
|
|
4071
4071
|
position: z.ZodOptional<z.ZodObject<{
|
|
@@ -4320,6 +4320,7 @@ export declare namespace Schemes {
|
|
|
4320
4320
|
fontFamily?: string | undefined;
|
|
4321
4321
|
} | undefined;
|
|
4322
4322
|
align?: "center" | "end" | "start" | undefined;
|
|
4323
|
+
primaryColor?: string | undefined;
|
|
4323
4324
|
background?: {
|
|
4324
4325
|
image?: string | undefined;
|
|
4325
4326
|
color?: string | undefined;
|
|
@@ -4345,7 +4346,6 @@ export declare namespace Schemes {
|
|
|
4345
4346
|
fontFamily?: string | undefined;
|
|
4346
4347
|
} | undefined;
|
|
4347
4348
|
listStyle?: string | undefined;
|
|
4348
|
-
primaryColor?: string | undefined;
|
|
4349
4349
|
customCSS?: string | undefined;
|
|
4350
4350
|
} | undefined;
|
|
4351
4351
|
isStart?: boolean | undefined;
|
|
@@ -4600,6 +4600,7 @@ export declare namespace Schemes {
|
|
|
4600
4600
|
fontFamily?: string | undefined;
|
|
4601
4601
|
} | undefined;
|
|
4602
4602
|
align?: "center" | "end" | "start" | undefined;
|
|
4603
|
+
primaryColor?: string | undefined;
|
|
4603
4604
|
background?: {
|
|
4604
4605
|
image?: string | undefined;
|
|
4605
4606
|
color?: string | undefined;
|
|
@@ -4625,7 +4626,6 @@ export declare namespace Schemes {
|
|
|
4625
4626
|
fontFamily?: string | undefined;
|
|
4626
4627
|
} | undefined;
|
|
4627
4628
|
listStyle?: string | undefined;
|
|
4628
|
-
primaryColor?: string | undefined;
|
|
4629
4629
|
customCSS?: string | undefined;
|
|
4630
4630
|
} | undefined;
|
|
4631
4631
|
isStart?: boolean | undefined;
|
|
@@ -5463,6 +5463,7 @@ export declare namespace Schemes {
|
|
|
5463
5463
|
fontFamily?: string | undefined;
|
|
5464
5464
|
} | undefined;
|
|
5465
5465
|
align?: "center" | "end" | "start" | undefined;
|
|
5466
|
+
primaryColor?: string | undefined;
|
|
5466
5467
|
background?: {
|
|
5467
5468
|
image?: string | undefined;
|
|
5468
5469
|
color?: string | undefined;
|
|
@@ -5488,7 +5489,6 @@ export declare namespace Schemes {
|
|
|
5488
5489
|
fontFamily?: string | undefined;
|
|
5489
5490
|
} | undefined;
|
|
5490
5491
|
listStyle?: string | undefined;
|
|
5491
|
-
primaryColor?: string | undefined;
|
|
5492
5492
|
customCSS?: string | undefined;
|
|
5493
5493
|
}, {
|
|
5494
5494
|
input?: {
|
|
@@ -5509,6 +5509,7 @@ export declare namespace Schemes {
|
|
|
5509
5509
|
fontFamily?: string | undefined;
|
|
5510
5510
|
} | undefined;
|
|
5511
5511
|
align?: "center" | "end" | "start" | undefined;
|
|
5512
|
+
primaryColor?: string | undefined;
|
|
5512
5513
|
background?: {
|
|
5513
5514
|
image?: string | undefined;
|
|
5514
5515
|
color?: string | undefined;
|
|
@@ -5534,7 +5535,6 @@ export declare namespace Schemes {
|
|
|
5534
5535
|
fontFamily?: string | undefined;
|
|
5535
5536
|
} | undefined;
|
|
5536
5537
|
listStyle?: string | undefined;
|
|
5537
|
-
primaryColor?: string | undefined;
|
|
5538
5538
|
customCSS?: string | undefined;
|
|
5539
5539
|
}>>;
|
|
5540
5540
|
position: z.ZodOptional<z.ZodObject<{
|
|
@@ -5789,6 +5789,7 @@ export declare namespace Schemes {
|
|
|
5789
5789
|
fontFamily?: string | undefined;
|
|
5790
5790
|
} | undefined;
|
|
5791
5791
|
align?: "center" | "end" | "start" | undefined;
|
|
5792
|
+
primaryColor?: string | undefined;
|
|
5792
5793
|
background?: {
|
|
5793
5794
|
image?: string | undefined;
|
|
5794
5795
|
color?: string | undefined;
|
|
@@ -5814,7 +5815,6 @@ export declare namespace Schemes {
|
|
|
5814
5815
|
fontFamily?: string | undefined;
|
|
5815
5816
|
} | undefined;
|
|
5816
5817
|
listStyle?: string | undefined;
|
|
5817
|
-
primaryColor?: string | undefined;
|
|
5818
5818
|
customCSS?: string | undefined;
|
|
5819
5819
|
} | undefined;
|
|
5820
5820
|
isStart?: boolean | undefined;
|
|
@@ -6069,6 +6069,7 @@ export declare namespace Schemes {
|
|
|
6069
6069
|
fontFamily?: string | undefined;
|
|
6070
6070
|
} | undefined;
|
|
6071
6071
|
align?: "center" | "end" | "start" | undefined;
|
|
6072
|
+
primaryColor?: string | undefined;
|
|
6072
6073
|
background?: {
|
|
6073
6074
|
image?: string | undefined;
|
|
6074
6075
|
color?: string | undefined;
|
|
@@ -6094,7 +6095,6 @@ export declare namespace Schemes {
|
|
|
6094
6095
|
fontFamily?: string | undefined;
|
|
6095
6096
|
} | undefined;
|
|
6096
6097
|
listStyle?: string | undefined;
|
|
6097
|
-
primaryColor?: string | undefined;
|
|
6098
6098
|
customCSS?: string | undefined;
|
|
6099
6099
|
} | undefined;
|
|
6100
6100
|
isStart?: boolean | undefined;
|
|
@@ -6239,6 +6239,7 @@ export declare namespace Schemes {
|
|
|
6239
6239
|
fontFamily?: string | undefined;
|
|
6240
6240
|
} | undefined;
|
|
6241
6241
|
align?: "center" | "end" | "start" | undefined;
|
|
6242
|
+
primaryColor?: string | undefined;
|
|
6242
6243
|
background?: {
|
|
6243
6244
|
image?: string | undefined;
|
|
6244
6245
|
color?: string | undefined;
|
|
@@ -6264,7 +6265,6 @@ export declare namespace Schemes {
|
|
|
6264
6265
|
fontFamily?: string | undefined;
|
|
6265
6266
|
} | undefined;
|
|
6266
6267
|
listStyle?: string | undefined;
|
|
6267
|
-
primaryColor?: string | undefined;
|
|
6268
6268
|
customCSS?: string | undefined;
|
|
6269
6269
|
}, {
|
|
6270
6270
|
input?: {
|
|
@@ -6285,6 +6285,7 @@ export declare namespace Schemes {
|
|
|
6285
6285
|
fontFamily?: string | undefined;
|
|
6286
6286
|
} | undefined;
|
|
6287
6287
|
align?: "center" | "end" | "start" | undefined;
|
|
6288
|
+
primaryColor?: string | undefined;
|
|
6288
6289
|
background?: {
|
|
6289
6290
|
image?: string | undefined;
|
|
6290
6291
|
color?: string | undefined;
|
|
@@ -6310,7 +6311,6 @@ export declare namespace Schemes {
|
|
|
6310
6311
|
fontFamily?: string | undefined;
|
|
6311
6312
|
} | undefined;
|
|
6312
6313
|
listStyle?: string | undefined;
|
|
6313
|
-
primaryColor?: string | undefined;
|
|
6314
6314
|
customCSS?: string | undefined;
|
|
6315
6315
|
}>>;
|
|
6316
6316
|
settings: z.ZodOptional<z.ZodObject<{
|
|
@@ -6367,6 +6367,7 @@ export declare namespace Schemes {
|
|
|
6367
6367
|
fontFamily?: string | undefined;
|
|
6368
6368
|
} | undefined;
|
|
6369
6369
|
align?: "center" | "end" | "start" | undefined;
|
|
6370
|
+
primaryColor?: string | undefined;
|
|
6370
6371
|
background?: {
|
|
6371
6372
|
image?: string | undefined;
|
|
6372
6373
|
color?: string | undefined;
|
|
@@ -6392,7 +6393,6 @@ export declare namespace Schemes {
|
|
|
6392
6393
|
fontFamily?: string | undefined;
|
|
6393
6394
|
} | undefined;
|
|
6394
6395
|
listStyle?: string | undefined;
|
|
6395
|
-
primaryColor?: string | undefined;
|
|
6396
6396
|
customCSS?: string | undefined;
|
|
6397
6397
|
} | undefined;
|
|
6398
6398
|
settings?: {
|
|
@@ -6649,6 +6649,7 @@ export declare namespace Schemes {
|
|
|
6649
6649
|
fontFamily?: string | undefined;
|
|
6650
6650
|
} | undefined;
|
|
6651
6651
|
align?: "center" | "end" | "start" | undefined;
|
|
6652
|
+
primaryColor?: string | undefined;
|
|
6652
6653
|
background?: {
|
|
6653
6654
|
image?: string | undefined;
|
|
6654
6655
|
color?: string | undefined;
|
|
@@ -6674,7 +6675,6 @@ export declare namespace Schemes {
|
|
|
6674
6675
|
fontFamily?: string | undefined;
|
|
6675
6676
|
} | undefined;
|
|
6676
6677
|
listStyle?: string | undefined;
|
|
6677
|
-
primaryColor?: string | undefined;
|
|
6678
6678
|
customCSS?: string | undefined;
|
|
6679
6679
|
} | undefined;
|
|
6680
6680
|
isStart?: boolean | undefined;
|
|
@@ -6930,6 +6930,7 @@ export declare namespace Schemes {
|
|
|
6930
6930
|
fontFamily?: string | undefined;
|
|
6931
6931
|
} | undefined;
|
|
6932
6932
|
align?: "center" | "end" | "start" | undefined;
|
|
6933
|
+
primaryColor?: string | undefined;
|
|
6933
6934
|
background?: {
|
|
6934
6935
|
image?: string | undefined;
|
|
6935
6936
|
color?: string | undefined;
|
|
@@ -6955,7 +6956,6 @@ export declare namespace Schemes {
|
|
|
6955
6956
|
fontFamily?: string | undefined;
|
|
6956
6957
|
} | undefined;
|
|
6957
6958
|
listStyle?: string | undefined;
|
|
6958
|
-
primaryColor?: string | undefined;
|
|
6959
6959
|
customCSS?: string | undefined;
|
|
6960
6960
|
} | undefined;
|
|
6961
6961
|
isStart?: boolean | undefined;
|
|
@@ -6989,6 +6989,7 @@ export declare namespace Schemes {
|
|
|
6989
6989
|
fontFamily?: string | undefined;
|
|
6990
6990
|
} | undefined;
|
|
6991
6991
|
align?: "center" | "end" | "start" | undefined;
|
|
6992
|
+
primaryColor?: string | undefined;
|
|
6992
6993
|
background?: {
|
|
6993
6994
|
image?: string | undefined;
|
|
6994
6995
|
color?: string | undefined;
|
|
@@ -7014,7 +7015,6 @@ export declare namespace Schemes {
|
|
|
7014
7015
|
fontFamily?: string | undefined;
|
|
7015
7016
|
} | undefined;
|
|
7016
7017
|
listStyle?: string | undefined;
|
|
7017
|
-
primaryColor?: string | undefined;
|
|
7018
7018
|
customCSS?: string | undefined;
|
|
7019
7019
|
} | undefined;
|
|
7020
7020
|
settings?: {
|
|
@@ -7271,6 +7271,7 @@ export declare namespace Schemes {
|
|
|
7271
7271
|
fontFamily?: string | undefined;
|
|
7272
7272
|
} | undefined;
|
|
7273
7273
|
align?: "center" | "end" | "start" | undefined;
|
|
7274
|
+
primaryColor?: string | undefined;
|
|
7274
7275
|
background?: {
|
|
7275
7276
|
image?: string | undefined;
|
|
7276
7277
|
color?: string | undefined;
|
|
@@ -7296,7 +7297,6 @@ export declare namespace Schemes {
|
|
|
7296
7297
|
fontFamily?: string | undefined;
|
|
7297
7298
|
} | undefined;
|
|
7298
7299
|
listStyle?: string | undefined;
|
|
7299
|
-
primaryColor?: string | undefined;
|
|
7300
7300
|
customCSS?: string | undefined;
|
|
7301
7301
|
} | undefined;
|
|
7302
7302
|
isStart?: boolean | undefined;
|
|
@@ -7552,6 +7552,7 @@ export declare namespace Schemes {
|
|
|
7552
7552
|
fontFamily?: string | undefined;
|
|
7553
7553
|
} | undefined;
|
|
7554
7554
|
align?: "center" | "end" | "start" | undefined;
|
|
7555
|
+
primaryColor?: string | undefined;
|
|
7555
7556
|
background?: {
|
|
7556
7557
|
image?: string | undefined;
|
|
7557
7558
|
color?: string | undefined;
|
|
@@ -7577,7 +7578,6 @@ export declare namespace Schemes {
|
|
|
7577
7578
|
fontFamily?: string | undefined;
|
|
7578
7579
|
} | undefined;
|
|
7579
7580
|
listStyle?: string | undefined;
|
|
7580
|
-
primaryColor?: string | undefined;
|
|
7581
7581
|
customCSS?: string | undefined;
|
|
7582
7582
|
} | undefined;
|
|
7583
7583
|
isStart?: boolean | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
3
|
+
import { NavMenuStore, createNavMenuStore } from './store';
|
|
4
|
+
import { ExpandNavMenuItemDef, NavMenuItemDef, NavMenuOrderChange } from './types';
|
|
5
|
+
export type NavMenuProps = {
|
|
6
|
+
items: NavMenuItemDef[];
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
onOrderChange?: NavMenuOrderChange;
|
|
9
|
+
noItemsPlaceholder?: ReactNode;
|
|
10
|
+
} & Partial<NavMenuStore['props']> & {
|
|
11
|
+
store?: ReturnType<typeof createNavMenuStore>;
|
|
12
|
+
};
|
|
13
|
+
export declare const NavMenu: (({ items, loading, noItemsPlaceholder, onOrderChange, onEdit, store: _store, }: NavMenuProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
14
|
+
Item: import('react').MemoExoticComponent<({ item, ignoreDepth }: {
|
|
15
|
+
item: ExpandNavMenuItemDef;
|
|
16
|
+
ignoreDepth?: boolean;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
18
|
+
ActionIcon: import('react').ForwardRefExoticComponent<import('@mantine/core').ActionIconProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
Label: ({ children, ...props }: PropsWithChildren<import('@mantine/core').TextProps>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
Placeholder: ({ children, ...props }: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { NavMenuItemDef } from '../types';
|
|
3
|
+
export declare const DnDItem: ({ item, children, index, opened, }: PropsWithChildren<{
|
|
4
|
+
item: NavMenuItemDef;
|
|
5
|
+
index: number;
|
|
6
|
+
items: NavMenuItemDef[];
|
|
7
|
+
opened?: string[];
|
|
8
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { NavMenuOrderChange } from '../types';
|
|
3
|
+
type DnDProviderProps = {
|
|
4
|
+
onOrderChange: NavMenuOrderChange;
|
|
5
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
};
|
|
7
|
+
export declare const DnDProvider: ({ containerRef, children, onOrderChange, }: PropsWithChildren<DnDProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DraggableOverlay: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ActionIconProps } from '@mantine/core';
|
|
2
|
+
export declare const NavMenuActionIcon: import('react').ForwardRefExoticComponent<ActionIconProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExpandNavMenuItemDef } from '../types.ts';
|
|
2
|
+
type NavMenuItemProps = {
|
|
3
|
+
item: ExpandNavMenuItemDef;
|
|
4
|
+
ignoreDepth?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const NavMenuItem: import('react').MemoExoticComponent<({ item, ignoreDepth }: NavMenuItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { StoreApi, UseBoundStore } from 'zustand';
|
|
3
|
+
export type NavMenuEditData = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
export type NavMenuStore = {
|
|
9
|
+
editId: string | null;
|
|
10
|
+
opened: string[];
|
|
11
|
+
props: {
|
|
12
|
+
onEdit?: (props: NavMenuEditData) => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const createNavMenuStore: () => {
|
|
16
|
+
useStore: UseBoundStore<StoreApi<NavMenuStore>>;
|
|
17
|
+
api: {
|
|
18
|
+
startEditing: (id: string) => void;
|
|
19
|
+
stopEditing: () => void;
|
|
20
|
+
handleEdit: (props: NavMenuEditData) => void;
|
|
21
|
+
toggleOpened: (id: string) => void;
|
|
22
|
+
setOpened: (ids: string[]) => void;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const NavMenuProvider: ({ children, store, }: PropsWithChildren<{
|
|
26
|
+
store: ReturnType<typeof createNavMenuStore>;
|
|
27
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const useNavMenuStore: () => {
|
|
29
|
+
useStore: UseBoundStore<StoreApi<NavMenuStore>>;
|
|
30
|
+
api: {
|
|
31
|
+
startEditing: (id: string) => void;
|
|
32
|
+
stopEditing: () => void;
|
|
33
|
+
handleEdit: (props: NavMenuEditData) => void;
|
|
34
|
+
toggleOpened: (id: string) => void;
|
|
35
|
+
setOpened: (ids: string[]) => void;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type NavMenuItemData = {
|
|
3
|
+
type?: string | null;
|
|
4
|
+
icon?: string | null;
|
|
5
|
+
title?: string | null;
|
|
6
|
+
};
|
|
7
|
+
export type NavMenuItemDef<DATA = NavMenuItemData> = {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
rightSection?: ReactNode;
|
|
12
|
+
isTemporary?: boolean;
|
|
13
|
+
active?: boolean;
|
|
14
|
+
hasChildren?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
children: NavMenuItemDef<DATA>[];
|
|
17
|
+
pathById: string[];
|
|
18
|
+
order?: number;
|
|
19
|
+
data?: DATA;
|
|
20
|
+
};
|
|
21
|
+
export type ExpandNavMenuItemDef<DATA = NavMenuItemData> = NavMenuItemDef<DATA> & {
|
|
22
|
+
depth: number;
|
|
23
|
+
};
|
|
24
|
+
export type NavMenuOrderChange<DATA = NavMenuItemData> = (v: {
|
|
25
|
+
item: ExpandNavMenuItemDef<DATA>;
|
|
26
|
+
over: ExpandNavMenuItemDef<DATA>;
|
|
27
|
+
position: NavMenuOrderChangePosition;
|
|
28
|
+
}) => void;
|
|
29
|
+
export type NavMenuOrderChangePosition = 'top' | 'bottom' | 'inside';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/** Ресайзер для сайдбаров */
|
|
2
|
+
export declare const NavbarResizer: import('react').MemoExoticComponent<({ width, onChange, minWidth, position, }: {
|
|
2
3
|
width?: number;
|
|
3
4
|
onChange?: (v: number) => void;
|
|
4
|
-
|
|
5
|
+
minWidth?: number;
|
|
6
|
+
/** Позиция сайдбара в котором используется */
|
|
7
|
+
position: "left" | "right";
|
|
5
8
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Notification: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AvatarProps
|
|
2
|
+
import { AvatarProps } from '@mantine/core';
|
|
3
3
|
export type ProjectIconProps = {
|
|
4
4
|
icon?: string | null;
|
|
5
5
|
name?: string | null;
|
|
6
6
|
fallback?: ReactNode;
|
|
7
|
+
fallbackColor?: string;
|
|
7
8
|
fallbackColorById?: string;
|
|
8
9
|
initials?: boolean;
|
|
9
10
|
} & Omit<AvatarProps, 'color' | 'name'>;
|
|
@@ -21,12 +22,11 @@ export declare const ProjectIcon: import('react').ForwardRefExoticComponent<{
|
|
|
21
22
|
icon?: string | null;
|
|
22
23
|
name?: string | null;
|
|
23
24
|
fallback?: ReactNode;
|
|
25
|
+
fallbackColor?: string;
|
|
24
26
|
fallbackColorById?: string;
|
|
25
27
|
initials?: boolean;
|
|
26
28
|
} & Omit<AvatarProps, "name" | "color"> & {
|
|
27
29
|
size?: number | string;
|
|
28
30
|
textSize?: number;
|
|
29
|
-
variant?: AvatarVariant;
|
|
30
31
|
} & 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;
|
|
32
32
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const openSubmitModal: (props:
|
|
1
|
+
import { modals } from '@mantine/modals';
|
|
2
|
+
export declare const openSubmitModal: (props: Parameters<typeof modals.openConfirmModal>[0] & {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
}) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { AvatarProps } from '@mantine/core';
|
|
3
|
-
import { MenuUser } from '../AppContainer/components/MenuUserDropdown';
|
|
3
|
+
import { MenuUser } from '../AppContainer/components/menus/UserMenu/MenuUserDropdown';
|
|
4
4
|
export interface UserAvatarProps extends AvatarProps, Omit<React.ComponentPropsWithoutRef<'div'>, keyof AvatarProps> {
|
|
5
5
|
user?: MenuUser | null;
|
|
6
6
|
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AvatarProps, IndicatorProps } from '@mantine/core';
|
|
1
|
+
import { AvatarProps } from '@mantine/core';
|
|
3
2
|
import { MenuWorkspace } from '../WorkspaceMenu/WorkspaceMenu';
|
|
4
|
-
|
|
3
|
+
export type WorkspaceAvatarProps = AvatarProps & {
|
|
5
4
|
workspace?: MenuWorkspace | null;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export declare const WorkspaceAvatar: React.ForwardRefExoticComponent<UserAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export {};
|
|
5
|
+
};
|
|
6
|
+
export declare const WorkspaceAvatar: import('react').ForwardRefExoticComponent<AvatarProps & {
|
|
7
|
+
workspace?: MenuWorkspace | null;
|
|
8
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DragHandle } from '../SortableList/components';
|
|
3
|
-
import { MenuWorkspace, RightSectionProps } from './WorkspaceMenu';
|
|
1
|
+
import { MenuWorkspace } from './WorkspaceMenu';
|
|
4
2
|
interface WorkspaceItemProps<W extends MenuWorkspace = MenuWorkspace> {
|
|
5
|
-
RightSection?: FC<RightSectionProps>;
|
|
6
3
|
onClick?: (w: W) => void;
|
|
7
4
|
workspace: W;
|
|
8
|
-
active?: W | null;
|
|
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
|
-
};
|
|
17
5
|
}
|
|
18
|
-
export declare const WorkspaceItem: ({ workspace, onClick
|
|
6
|
+
export declare const WorkspaceItem: ({ workspace, onClick }: WorkspaceItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
export interface MenuWorkspace {
|
|
3
3
|
workspaceId: string;
|
|
4
4
|
workspaceName: string;
|
|
@@ -11,8 +11,8 @@ export interface MenuWorkspace {
|
|
|
11
11
|
type: 'videos' | 'documents' | 'images' | 'other' | 'audio' | 'archives' | 'code';
|
|
12
12
|
usedKb: number;
|
|
13
13
|
}>;
|
|
14
|
-
plan
|
|
15
|
-
|
|
14
|
+
plan: string;
|
|
15
|
+
totalMembers?: number;
|
|
16
16
|
}
|
|
17
17
|
export type RightSectionProps = {
|
|
18
18
|
isActive: boolean;
|
|
@@ -20,11 +20,12 @@ export type RightSectionProps = {
|
|
|
20
20
|
isHovered?: boolean;
|
|
21
21
|
setOpenedWorkspacesList?: (o: boolean) => void;
|
|
22
22
|
};
|
|
23
|
-
export type WorkspaceMenuProps<W extends MenuWorkspace = MenuWorkspace> =
|
|
23
|
+
export type WorkspaceMenuProps<W extends MenuWorkspace = MenuWorkspace> = {
|
|
24
|
+
onClose?: () => void;
|
|
24
25
|
onCreate?: () => void;
|
|
25
26
|
onClick?: (w: MenuWorkspace) => void;
|
|
26
27
|
items: W[];
|
|
27
|
-
active
|
|
28
|
+
active: W;
|
|
28
29
|
settingsLink?: string;
|
|
29
30
|
membersLink?: string;
|
|
30
31
|
workspaceLink?: string;
|
|
@@ -32,6 +33,6 @@ export type WorkspaceMenuProps<W extends MenuWorkspace = MenuWorkspace> = PropsW
|
|
|
32
33
|
canEditWorkspace?: boolean;
|
|
33
34
|
isAnonym?: boolean;
|
|
34
35
|
publicMode?: boolean;
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
export declare const
|
|
36
|
+
};
|
|
37
|
+
export declare const WorkspaceMenu: <W extends MenuWorkspace>({ children, onCreate, onClick, active, items, workspaceLink, settingsLink, membersLink, canEditWorkspace, isAnonym, publicMode, }: PropsWithChildren<WorkspaceMenuProps<W>>) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare const ActiveWorkspace: <W extends MenuWorkspace>({ active, workspaceLink, settingsLink, membersLink, canEditWorkspace, onClose, }: Pick<WorkspaceMenuProps<W>, "active" | "workspaceLink" | "settingsLink" | "membersLink" | "canEditWorkspace" | "onClose">) => import("react/jsx-runtime").JSX.Element;
|
package/dist/constants.d.ts
CHANGED
|
@@ -5,5 +5,4 @@ export declare const DEFAULT_VALUES: {
|
|
|
5
5
|
readonly PROJECT_COLOR: string;
|
|
6
6
|
COLORS: string[];
|
|
7
7
|
};
|
|
8
|
-
export declare const NAVBAR_ICON_COLOR = "light-dark(\n var(--mantine-color-gray-7),\n var(--mantine-color-gray-4)\n )";
|
|
9
8
|
export declare const DEFAULT_FONT_FAMILY = "Inter, sans-serif";
|