@abyss-project/commons-front-core 1.0.135 → 1.0.140
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/README.md +30 -2
- package/declaration.d.ts +13 -13
- package/dist/assets/index.d.ts +1 -1
- package/dist/assets/logo/index.d.ts +1 -0
- package/dist/components/Avatars/OrganizationAvatar/OrganizationAvatar.component.d.ts +23 -0
- package/dist/components/Avatars/OrganizationAvatar/index.d.ts +2 -0
- package/dist/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +16 -5
- package/dist/components/Avatars/ProjectAvatar/index.d.ts +1 -0
- package/dist/components/Avatars/UserAvatar/UserAvatar.component.d.ts +10 -0
- package/dist/components/Avatars/UserAvatar/constant.d.ts +6 -2
- package/dist/components/Avatars/UserAvatar/index.d.ts +1 -0
- package/dist/components/Avatars/UserAvatarList/UserAvatarList.component.d.ts +18 -0
- package/dist/components/{UserAvatarList → Avatars/UserAvatarList}/index.d.ts +1 -0
- package/dist/components/Avatars/index.d.ts +2 -0
- package/dist/components/Banking/AccountTransactions/AccountTransactionsRow.component.d.ts +2 -4
- package/dist/components/Banking/Inputs/SelectAccountTransactionCategory/SelectAccountTransactionCategory.component.d.ts +2 -4
- package/dist/components/Cards/InternalProjectCard/InternalProjectCard.component.d.ts +36 -0
- package/dist/components/Cards/InternalProjectCard/index.d.ts +2 -0
- package/dist/components/Cards/ProjectCard/ProjectCard.component.d.ts +27 -0
- package/dist/components/Cards/ProjectCard/index.d.ts +2 -0
- package/dist/components/Cards/index.d.ts +2 -0
- package/dist/components/Charts/AbyssBarChart/AbyssBarChart.component.d.ts +21 -0
- package/dist/components/Charts/AbyssBarChart/index.d.ts +1 -0
- package/dist/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.d.ts +14 -0
- package/dist/components/Charts/AbyssCashFlowChart/index.d.ts +1 -0
- package/dist/components/Charts/AbyssLineChart/AbyssLineChart.component.d.ts +27 -0
- package/dist/components/Charts/AbyssLineChart/index.d.ts +1 -0
- package/dist/components/Charts/AbyssPieChart/AbyssPieChart.component.d.ts +18 -0
- package/dist/components/Charts/AbyssPieChart/index.d.ts +1 -0
- package/dist/components/Charts/index.d.ts +4 -0
- package/dist/components/Charts/useNivoTheme.d.ts +65 -0
- package/dist/components/CookieConsent/AbyssCookieConsentProvider.d.ts +12 -0
- package/dist/components/CookieConsent/CookieConsentBanner.component.d.ts +7 -0
- package/dist/components/CookieConsent/CookieConsentSettings.component.d.ts +2 -0
- package/dist/components/CookieConsent/cookie-storage.util.d.ts +15 -0
- package/dist/components/CookieConsent/cookie-storage.util.spec.d.ts +1 -0
- package/dist/components/CookieConsent/index.d.ts +7 -0
- package/dist/components/CookieConsent/reconcile.util.d.ts +12 -0
- package/dist/components/CookieConsent/reconcile.util.spec.d.ts +1 -0
- package/dist/components/CookieConsent/types.d.ts +11 -0
- package/dist/components/CookieConsent/use-cookie-consent.hook.d.ts +15 -0
- package/dist/components/Data/AbyssTable/AbyssTable.component.d.ts +35 -0
- package/dist/components/Data/AbyssTable/index.d.ts +2 -0
- package/dist/components/Data/index.d.ts +1 -0
- package/dist/components/InfoBox/InfoBox.component.d.ts +5 -3
- package/dist/components/Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.d.ts +12 -13
- package/dist/components/Inputs/AbyssNumberField/AbyssNumberField.component.d.ts +16 -0
- package/dist/components/Inputs/AbyssNumberField/index.d.ts +2 -0
- package/dist/components/Inputs/AbyssScopeSwitcher/AbyssScopeSwitcher.component.d.ts +20 -0
- package/dist/components/Inputs/AbyssScopeSwitcher/index.d.ts +2 -0
- package/dist/components/Inputs/AbyssSelectOrganization/AbyssSelectOrganization.component.d.ts +18 -0
- package/dist/components/Inputs/AbyssSelectOrganization/index.d.ts +2 -0
- package/dist/components/Inputs/AbyssSelectProject/AbyssSelectProject.component.d.ts +12 -9
- package/dist/components/Inputs/AbyssSelectProject/index.d.ts +1 -0
- package/dist/components/Inputs/CloudImport/CloudImport.component.d.ts +21 -9
- package/dist/components/Inputs/CloudImport/CloudImportFile.component.d.ts +2 -4
- package/dist/components/Inputs/CloudImport/CloudImportFolder.component.d.ts +2 -4
- package/dist/components/Inputs/CloudSave/CloudSave.component.d.ts +12 -9
- package/dist/components/Inputs/ColorPalette/ColorPalette.component.d.ts +20 -0
- package/dist/components/Inputs/ColorPalette/index.d.ts +1 -0
- package/dist/components/Inputs/ColorPicker/ColorPicker.component.d.ts +19 -0
- package/dist/components/Inputs/ColorPicker/index.d.ts +1 -0
- package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +24 -9
- package/dist/components/Inputs/DatePeriodPicker/index.d.ts +1 -0
- package/dist/components/Inputs/DropZone/DropZone.component.d.ts +11 -10
- package/dist/components/Inputs/PasswordInput/PasswordInput.component.d.ts +2 -5
- package/dist/components/Inputs/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +8 -0
- package/dist/components/Inputs/ProjectCategoryBadge/index.d.ts +1 -0
- package/dist/components/Inputs/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +39 -0
- package/dist/components/Inputs/ProjectLinkSelector/index.d.ts +2 -0
- package/dist/components/Inputs/ProjectTagChip/ProjectTagChip.component.d.ts +9 -0
- package/dist/components/Inputs/ProjectTagChip/index.d.ts +1 -0
- package/dist/components/Inputs/index.d.ts +13 -6
- package/dist/components/Invitations/AbyssPendingInvitations.component.d.ts +18 -0
- package/dist/components/Invitations/index.d.ts +2 -0
- package/dist/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.d.ts +9 -0
- package/dist/components/Layouts/AbyssBillingPlan/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssDashboardLayout/AbyssDashboardLayout.component.d.ts +13 -0
- package/dist/components/Layouts/AbyssDashboardLayout/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssHeader/AbyssHeader.component.d.ts +14 -0
- package/dist/components/Layouts/AbyssHeader/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssLayoutProvider/AbyssLayoutProvider.component.d.ts +26 -0
- package/dist/components/Layouts/AbyssLayoutProvider/abyss-layout.store.d.ts +27 -0
- package/dist/components/Layouts/AbyssLayoutProvider/index.d.ts +3 -0
- package/dist/components/Layouts/AbyssLoadingScreen/AbyssLoadingScreen.component.d.ts +3 -0
- package/dist/components/Layouts/AbyssLoadingScreen/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssSearchBar/AbyssSearchBar.component.d.ts +8 -0
- package/dist/components/Layouts/AbyssSearchBar/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssSidebar/AbyssSidebar.component.d.ts +35 -0
- package/dist/components/Layouts/AbyssSidebar/AbyssSidebarItem.component.d.ts +9 -0
- package/dist/components/Layouts/AbyssSidebar/index.d.ts +3 -0
- package/dist/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.d.ts +7 -0
- package/dist/components/Layouts/AbyssThemeToggle/index.d.ts +1 -0
- package/dist/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +3 -5
- package/dist/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +3 -5
- package/dist/components/Layouts/LoadingLayout/LoadingLayout.layout.d.ts +2 -4
- package/dist/components/Layouts/MainLayout/MainLayout.layout.d.ts +2 -4
- package/dist/components/Layouts/index.d.ts +8 -0
- package/dist/components/Modals/AbyssModal/AbyssModal.component.d.ts +9 -9
- package/dist/components/Modals/ConfirmModal/ConfirmModal.d.ts +3 -4
- package/dist/components/Modals/ConfirmModal/index.d.ts +1 -1
- package/dist/components/Modals/ImportFromCloudModal/ImportFromCloudModal.component.d.ts +20 -10
- package/dist/components/Modals/QRCodeModal/QRCodeModal.component.d.ts +2 -4
- package/dist/components/Modals/SaveCloudModal/SaveCloudModal.component.d.ts +12 -10
- package/dist/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +13 -0
- package/dist/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +27 -0
- package/dist/components/Modals/UserSettingsModal/index.d.ts +2 -0
- package/dist/components/Modals/index.d.ts +2 -2
- package/dist/components/PdfEditor/PdfEditor.d.ts +3 -0
- package/dist/components/PdfEditor/hooks/use-acro-form-fields.d.ts +2 -0
- package/dist/components/PdfEditor/hooks/use-export.d.ts +7 -0
- package/dist/components/PdfEditor/hooks/use-page-order.d.ts +2 -0
- package/dist/components/PdfEditor/hooks/use-pdf-document.d.ts +11 -0
- package/dist/components/PdfEditor/hooks/use-undo-redo.d.ts +7 -0
- package/dist/components/PdfEditor/hooks/use-uploaded-docs.d.ts +3 -0
- package/dist/components/PdfEditor/index.d.ts +3 -0
- package/dist/components/PdfEditor/operations/apply.d.ts +2 -0
- package/dist/components/PdfEditor/operations/apply.spec.d.ts +1 -0
- package/dist/components/PdfEditor/operations/compute-page-order.d.ts +9 -0
- package/dist/components/PdfEditor/operations/compute-page-order.spec.d.ts +1 -0
- package/dist/components/PdfEditor/operations/pdf-data-url.d.ts +2 -0
- package/dist/components/PdfEditor/operations/reducer.d.ts +3 -0
- package/dist/components/PdfEditor/operations/reducer.spec.d.ts +1 -0
- package/dist/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +10 -0
- package/dist/components/PdfEditor/signature/SignaturePicker.d.ts +13 -0
- package/dist/components/PdfEditor/signature/SignatureSaveButton.d.ts +9 -0
- package/dist/components/PdfEditor/signature/SignatureSavedList.d.ts +10 -0
- package/dist/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +10 -0
- package/dist/components/PdfEditor/tools/DrawTool.d.ts +9 -0
- package/dist/components/PdfEditor/tools/FillFieldsTool.d.ts +8 -0
- package/dist/components/PdfEditor/tools/SignatureTool.d.ts +12 -0
- package/dist/components/PdfEditor/tools/TextTool.d.ts +2 -0
- package/dist/components/PdfEditor/tools/Toolbar.d.ts +18 -0
- package/dist/components/PdfEditor/types.d.ts +217 -0
- package/dist/components/PdfEditor/viewer/InsertPagesButton.d.ts +9 -0
- package/dist/components/PdfEditor/viewer/InsertPagesDialog.d.ts +10 -0
- package/dist/components/PdfEditor/viewer/PageOverlay.d.ts +21 -0
- package/dist/components/PdfEditor/viewer/PageSidebar.d.ts +15 -0
- package/dist/components/PdfEditor/viewer/PageThumbnail.d.ts +17 -0
- package/dist/components/PdfEditor/viewer/PdfCanvas.d.ts +17 -0
- package/dist/components/QuotaReached/QuotaReachedDialog.component.d.ts +5 -0
- package/dist/components/QuotaReached/billing-quota-error.d.ts +4 -0
- package/dist/components/QuotaReached/index.d.ts +6 -0
- package/dist/components/QuotaReached/quota-dialog.store.d.ts +15 -0
- package/dist/components/QuotaReached/quota-service-meta.d.ts +27 -0
- package/dist/components/Support/AbyssServiceSelect.component.d.ts +35 -0
- package/dist/components/Support/SupportActionButtons.component.d.ts +3 -0
- package/dist/components/Support/SupportActivityLog.component.d.ts +3 -0
- package/dist/components/Support/SupportAttachmentsPanel.component.d.ts +3 -0
- package/dist/components/Support/SupportCategoryChip.component.d.ts +9 -0
- package/dist/components/Support/SupportCategoryGroupCards.component.d.ts +3 -0
- package/dist/components/Support/SupportCategorySelect.component.d.ts +19 -0
- package/dist/components/Support/SupportMessageInput.component.d.ts +3 -0
- package/dist/components/Support/SupportMessageThread.component.d.ts +3 -0
- package/dist/components/Support/SupportPriorityChip.component.d.ts +3 -0
- package/dist/components/Support/SupportSidebar.component.d.ts +3 -0
- package/dist/components/Support/SupportStatusBadge.component.d.ts +3 -0
- package/dist/components/Support/SupportTicketCreateForm.component.d.ts +3 -0
- package/dist/components/Support/SupportTicketCreateStepper.component.d.ts +3 -0
- package/dist/components/Support/SupportTicketDetail.component.d.ts +3 -0
- package/dist/components/Support/SupportTicketList.component.d.ts +3 -0
- package/dist/components/Support/SupportTopBar.component.d.ts +3 -0
- package/dist/components/Support/index.d.ts +18 -0
- package/dist/components/Support/types.d.ts +252 -0
- package/dist/components/Utils/AbyssBackground/AbyssBackground.component.d.ts +9 -0
- package/dist/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +2 -5
- package/dist/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.d.ts +10 -0
- package/dist/components/Utils/AbyssErrorPage/AbyssErrorPage.component.d.ts +11 -0
- package/dist/components/Utils/AbyssErrorPage/index.d.ts +3 -0
- package/dist/components/Utils/AbyssHeaderTitle/AbyssHeaderTitle.component.d.ts +3 -5
- package/dist/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +33 -24
- package/dist/components/Utils/AbyssLayoutMenu/AbyssMenuItem.component.d.ts +15 -0
- package/dist/components/Utils/AbyssLayoutMenu/index.d.ts +2 -0
- package/dist/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts +25 -12
- package/dist/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.d.ts +24 -9
- package/dist/components/Utils/AbyssLayoutNotifications/index.d.ts +2 -0
- package/dist/components/Utils/ImportButton/ImportButton.component.d.ts +36 -0
- package/dist/components/Utils/Toast/AbyssToast.component.d.ts +3 -0
- package/dist/components/Utils/Toast/index.d.ts +1 -0
- package/dist/components/Utils/WaterParticles/WaterParticles.component.d.ts +2 -6
- package/dist/components/Utils/index.d.ts +6 -3
- package/dist/components/index.d.ts +10 -8
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/use-cloud.hook.d.ts +3 -3
- package/dist/hooks/use-public-users.hook.d.ts +13 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +1362 -212
- package/dist/hooks/use-theme-transition.hook.d.ts +4 -0
- package/dist/{index-gCpu5f9z.js → index-0Kl4O08s.js} +2 -2
- package/dist/{index-CdYmr155.js → index-BR_Xw8UL.js} +3 -3
- package/dist/{index-BnWtXPyg.js → index-BanaQPDD.js} +2 -2
- package/dist/{index-DeFVFcsM.js → index-BdtnG5GK.js} +2 -2
- package/dist/{index-UtVdSkzn.js → index-Bl6SIpvf.js} +1 -1
- package/dist/{index-CpqYJ_HN.js → index-CBU4Yqx5.js} +2 -2
- package/dist/{index-CoLGWgXI.js → index-CU2W3qym.js} +4 -4
- package/dist/{index-D__Z8Xsw.js → index-CypPvn_s.js} +2 -2
- package/dist/{index-Dk_KmVF1.js → index-D-1klt9M.js} +2 -2
- package/dist/{index-CC4UK1JX.js → index-D-lNUR0y.js} +2 -2
- package/dist/{index-CJOU7Mdg.js → index-D5ysDxCf.js} +2 -2
- package/dist/{index-CcWdcPha.js → index-DK4YUg-N.js} +2 -2
- package/dist/index-DR4nDzIn.js +117421 -0
- package/dist/{index-DPrXPSAH.js → index-DRApEyFE.js} +2 -2
- package/dist/{index-DkWj0imP.js → index-DS8zE3ca.js} +3 -3
- package/dist/{index-CcegjcGh.js → index-DYCXaPIH.js} +4 -4
- package/dist/{index-BJmWMt0A.js → index-DmM6klgp.js} +3 -3
- package/dist/{index-CsDN-X8K.js → index-DmUCpN76.js} +2 -2
- package/dist/{index-7woO6Vmb.js → index-KCcZKXY3.js} +3 -3
- package/dist/{index-DQ_TxTA-.js → index-SiHpvGQe.js} +2 -2
- package/dist/{index-DI8Xbxr-.js → index-UEOwaY3O.js} +4 -4
- package/dist/{index-wecGNuMv.js → index-okqeKiVw.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +236 -116
- package/dist/theme/augmentation.d.ts +78 -0
- package/dist/theme/components/buttons.d.ts +35 -0
- package/dist/theme/components/data-display.d.ts +4 -0
- package/dist/theme/components/index.d.ts +2 -0
- package/dist/theme/components/inputs.d.ts +4 -0
- package/dist/theme/components/navigation.d.ts +4 -0
- package/dist/theme/components/surfaces.d.ts +4 -0
- package/dist/theme/create-theme.d.ts +3 -0
- package/dist/theme/index.d.ts +15 -0
- package/dist/theme/palettes/common.d.ts +61 -0
- package/dist/theme/palettes/dark.d.ts +66 -0
- package/dist/theme/palettes/light.d.ts +66 -0
- package/dist/theme/tokens/animations.d.ts +30 -0
- package/dist/theme/tokens/borders.d.ts +11 -0
- package/dist/theme/tokens/colors.d.ts +102 -0
- package/dist/theme/tokens/shadows.d.ts +45 -0
- package/dist/theme/tokens/transitions.d.ts +21 -0
- package/dist/theme/tokens/typography.d.ts +93 -0
- package/dist/translations/en.d.ts +668 -9
- package/dist/translations/fr.d.ts +668 -9
- package/dist/utils/billing.utils.d.ts +7 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/locale.utils.d.ts +2 -0
- package/dist/utils/share-notification.utils.d.ts +1 -0
- package/dist/utils/space-display-name.utils.d.ts +9 -0
- package/package.json +25 -7
- package/tsconfig.json +35 -37
- package/vite.config.ts +68 -77
- package/vitest.config.ts +14 -0
- package/.eslintrc.cjs +0 -30
- package/dist/components/AllCloudMetrics/AllCloudMetrics.component.d.ts +0 -13
- package/dist/components/AllCloudMetrics/index.d.ts +0 -1
- package/dist/components/FiltersBox/FiltersBox.component.d.ts +0 -8
- package/dist/components/FiltersBox/index.d.ts +0 -1
- package/dist/components/FreepikSearch/FreepikSearch.component.d.ts +0 -9
- package/dist/components/FreepikSearch/index.d.ts +0 -1
- package/dist/components/ImportButton/ImportButton.component.d.ts +0 -29
- package/dist/components/Inputs/Toggle/Toggle.component.d.ts +0 -15
- package/dist/components/Inputs/Toggle/index.d.ts +0 -1
- package/dist/components/Modals/ImportFromCollectionModal/ImportFromCollectionModal.component.d.ts +0 -11
- package/dist/components/Modals/ImportFromCollectionModal/index.d.ts +0 -1
- package/dist/components/Modals/UserSettings/UserSettingsModal.component.d.ts +0 -18
- package/dist/components/Modals/UserSettings/index.d.ts +0 -2
- package/dist/components/UserAvatarList/UserAvatarList.component.d.ts +0 -18
- package/dist/components/Utils/CustomDivider/CustomDivider.component.d.ts +0 -4
- package/dist/components/Utils/CustomDivider/index.d.ts +0 -1
- package/dist/components/Utils/FloatingNavigation/FloatingNavigation.component.d.ts +0 -16
- package/dist/components/Utils/FloatingNavigation/index.d.ts +0 -1
- package/dist/hooks/use-theme.hook.d.ts +0 -1
- package/dist/index-CJY4ItlM.js +0 -122719
- package/dist/stylesheet.d.ts +0 -124
- package/dist/web-DaGNjxku.js +0 -18
- /package/dist/components/{ImportButton → Utils/ImportButton}/index.d.ts +0 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { ISupportTicket, ISupportTicketMessage, ISupportTicketActivity, ISupportTicketAttachment, ISupportTicketTag, SupportTicketStatus, SupportTicketCategory, SupportTicketPriority, SupportTicketAction, AbyssService } from '@abyss-project/main';
|
|
2
|
+
import { ISpace, IFile, IGetRepositoryCloudData } from '@abyss-project/cloud';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export interface SupportCloudImportProps {
|
|
5
|
+
user?: {
|
|
6
|
+
enabledService?: string[];
|
|
7
|
+
} | null;
|
|
8
|
+
abyssCloudUrl: string;
|
|
9
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
10
|
+
clouds?: ISpace[] | null;
|
|
11
|
+
cloudShares?: ISpace[] | null;
|
|
12
|
+
isLoadingClouds?: boolean;
|
|
13
|
+
onRefreshClouds?: () => Promise<void>;
|
|
14
|
+
fetchCloudRepository?: (cloudId: string) => Promise<IGetRepositoryCloudData>;
|
|
15
|
+
onActivateService?: () => Promise<void>;
|
|
16
|
+
onCreateCloud?: (name: string, organizationId?: string) => Promise<void>;
|
|
17
|
+
handleImportFromCloud?: (cloud: ISpace, files: IFile[]) => Promise<void>;
|
|
18
|
+
getSpaceDisplay?: (space: ISpace) => {
|
|
19
|
+
label: string;
|
|
20
|
+
avatar?: React.ReactNode;
|
|
21
|
+
subtitle?: string;
|
|
22
|
+
organizationId?: string | null;
|
|
23
|
+
organizationName?: string | null;
|
|
24
|
+
scope?: 'personal' | 'perso-in-org' | 'org-common' | 'project';
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface SupportTicketListFilters {
|
|
28
|
+
status?: SupportTicketStatus[];
|
|
29
|
+
categories?: SupportTicketCategory[];
|
|
30
|
+
priorities?: SupportTicketPriority[];
|
|
31
|
+
services?: AbyssService[];
|
|
32
|
+
tagIds?: string[];
|
|
33
|
+
search?: string;
|
|
34
|
+
startDate?: Date | null;
|
|
35
|
+
endDate?: Date | null;
|
|
36
|
+
}
|
|
37
|
+
export interface SupportTicketListPagination {
|
|
38
|
+
page: number;
|
|
39
|
+
limit: number;
|
|
40
|
+
total: number;
|
|
41
|
+
}
|
|
42
|
+
export interface SupportTicketListProps {
|
|
43
|
+
tickets: ISupportTicket[];
|
|
44
|
+
pagination: SupportTicketListPagination;
|
|
45
|
+
filters: SupportTicketListFilters;
|
|
46
|
+
onFiltersChange: (filters: SupportTicketListFilters) => void;
|
|
47
|
+
onPageChange: (page: number) => void;
|
|
48
|
+
onTicketClick: (ticketId: string) => void;
|
|
49
|
+
onCreateClick?: () => void;
|
|
50
|
+
isLoading: boolean;
|
|
51
|
+
isAdmin?: boolean;
|
|
52
|
+
renderRowActions?: (ticket: ISupportTicket) => React.ReactNode;
|
|
53
|
+
showRequester?: boolean;
|
|
54
|
+
requesterUsers?: Record<string, {
|
|
55
|
+
alias?: string | null;
|
|
56
|
+
profilePictureThumbnailId?: string | null;
|
|
57
|
+
}>;
|
|
58
|
+
organizations?: Record<string, {
|
|
59
|
+
name?: string | null;
|
|
60
|
+
pictureThumbnailId?: string | null;
|
|
61
|
+
}>;
|
|
62
|
+
renderExtraFilters?: () => React.ReactNode;
|
|
63
|
+
title?: string;
|
|
64
|
+
subtitle?: string;
|
|
65
|
+
hideCreateButton?: boolean;
|
|
66
|
+
getProfilePictureUrl: (userId: string) => string;
|
|
67
|
+
getOrgLogoUrl: (orgId: string) => string;
|
|
68
|
+
availableTags?: ISupportTicketTag[];
|
|
69
|
+
}
|
|
70
|
+
export interface SupportTicketCreateValues {
|
|
71
|
+
title: string;
|
|
72
|
+
description: string;
|
|
73
|
+
category: SupportTicketCategory;
|
|
74
|
+
priority: SupportTicketPriority;
|
|
75
|
+
priorityReason?: string;
|
|
76
|
+
service?: AbyssService | null;
|
|
77
|
+
}
|
|
78
|
+
export interface SupportTicketCreateFormProps {
|
|
79
|
+
onSubmit: (values: SupportTicketCreateValues) => void;
|
|
80
|
+
isSubmitting: boolean;
|
|
81
|
+
onBack?: () => void;
|
|
82
|
+
}
|
|
83
|
+
export interface SupportTicketCreateStepperValues extends SupportTicketCreateValues {
|
|
84
|
+
projectId?: string | null;
|
|
85
|
+
userId?: string | null;
|
|
86
|
+
organizationId?: string | null;
|
|
87
|
+
}
|
|
88
|
+
export interface SupportTicketCreateStepperProps {
|
|
89
|
+
onSubmit: (values: SupportTicketCreateStepperValues) => void | Promise<void>;
|
|
90
|
+
isSubmitting?: boolean;
|
|
91
|
+
isAdmin?: boolean;
|
|
92
|
+
onCancel?: () => void;
|
|
93
|
+
initialValues?: Partial<SupportTicketCreateStepperValues>;
|
|
94
|
+
renderForWhoStep?: (userId: string | null, onUserChange: (userId: string | null) => void, orgId: string | null, onOrgChange: (orgId: string | null) => void) => React.ReactNode;
|
|
95
|
+
renderProjectSelect?: (value: string | null, onChange: (projectId: string | null) => void) => React.ReactNode;
|
|
96
|
+
}
|
|
97
|
+
export interface SupportCategoryGroupCardsProps {
|
|
98
|
+
value: SupportTicketCategory | null;
|
|
99
|
+
onChange: (category: SupportTicketCategory) => void;
|
|
100
|
+
service?: AbyssService | null;
|
|
101
|
+
onServiceChange?: (service: AbyssService | null) => void;
|
|
102
|
+
}
|
|
103
|
+
export interface SupportTopBarProps {
|
|
104
|
+
ticket: ISupportTicket;
|
|
105
|
+
isAdmin?: boolean;
|
|
106
|
+
onNavigateBack?: () => void;
|
|
107
|
+
onExecuteAction?: (action: SupportTicketAction, reason?: string) => void;
|
|
108
|
+
isExecuting?: boolean;
|
|
109
|
+
project?: {
|
|
110
|
+
id: string;
|
|
111
|
+
name: string;
|
|
112
|
+
} | null;
|
|
113
|
+
}
|
|
114
|
+
export interface SupportMessageThreadProps {
|
|
115
|
+
messages: ISupportTicketMessage[];
|
|
116
|
+
currentUserId: string;
|
|
117
|
+
isAdmin?: boolean;
|
|
118
|
+
publicUsers?: Record<string, {
|
|
119
|
+
alias?: string | null;
|
|
120
|
+
profilePictureThumbnailId?: string | null;
|
|
121
|
+
}>;
|
|
122
|
+
getProfilePictureUrl?: (userId: string) => string;
|
|
123
|
+
getFileThumbnailUrl?: (id: string) => string;
|
|
124
|
+
ticket?: ISupportTicket;
|
|
125
|
+
}
|
|
126
|
+
export interface SupportMessageInputProps extends SupportCloudImportProps {
|
|
127
|
+
onSendMessage: (content: string) => void;
|
|
128
|
+
onSendAdminNote?: (content: string) => void;
|
|
129
|
+
isAdmin?: boolean;
|
|
130
|
+
isSending?: boolean;
|
|
131
|
+
isTerminal?: boolean;
|
|
132
|
+
onAttachFile?: (file: File) => void;
|
|
133
|
+
}
|
|
134
|
+
export interface SupportActionButtonsProps {
|
|
135
|
+
ticket: ISupportTicket;
|
|
136
|
+
isAdmin?: boolean;
|
|
137
|
+
onExecuteAction: (action: SupportTicketAction, reason?: string) => void;
|
|
138
|
+
isExecuting?: boolean;
|
|
139
|
+
}
|
|
140
|
+
export interface SupportAttachmentsPanelProps extends SupportCloudImportProps {
|
|
141
|
+
attachments: ISupportTicketAttachment[];
|
|
142
|
+
onUpload?: (file: File) => void;
|
|
143
|
+
onDelete?: (attachmentId: string) => void;
|
|
144
|
+
onDownload?: (attachment: ISupportTicketAttachment) => void;
|
|
145
|
+
isUploading?: boolean;
|
|
146
|
+
maxAttachments?: number;
|
|
147
|
+
}
|
|
148
|
+
export interface SupportActivityLogProps {
|
|
149
|
+
activities: ISupportTicketActivity[];
|
|
150
|
+
publicUsers?: Record<string, {
|
|
151
|
+
alias?: string | null;
|
|
152
|
+
profilePictureThumbnailId?: string | null;
|
|
153
|
+
}>;
|
|
154
|
+
getProfilePictureUrl?: (userId: string) => string;
|
|
155
|
+
}
|
|
156
|
+
export interface SupportSidebarUser {
|
|
157
|
+
id: string;
|
|
158
|
+
alias?: string | null;
|
|
159
|
+
}
|
|
160
|
+
export interface SupportSidebarProps extends SupportCloudImportProps {
|
|
161
|
+
ticket: ISupportTicket;
|
|
162
|
+
isAdmin?: boolean;
|
|
163
|
+
currentUserId?: string;
|
|
164
|
+
onChangePriority?: (priority: SupportTicketPriority) => void;
|
|
165
|
+
onChangeCategory?: (category: SupportTicketCategory) => void;
|
|
166
|
+
onChangeService?: (service: AbyssService | null) => void;
|
|
167
|
+
onAssign?: (userId: string | null) => void;
|
|
168
|
+
onExecuteAction?: (action: SupportTicketAction, reason?: string) => void;
|
|
169
|
+
isExecuting?: boolean;
|
|
170
|
+
adminUsers?: SupportSidebarUser[];
|
|
171
|
+
activities?: ISupportTicketActivity[];
|
|
172
|
+
attachments?: ISupportTicketAttachment[];
|
|
173
|
+
onUploadAttachment?: (file: File) => void;
|
|
174
|
+
onDeleteAttachment?: (attachmentId: string) => void;
|
|
175
|
+
isUploadingAttachment?: boolean;
|
|
176
|
+
publicUsers?: Record<string, {
|
|
177
|
+
alias?: string | null;
|
|
178
|
+
profilePictureThumbnailId?: string | null;
|
|
179
|
+
}>;
|
|
180
|
+
getProfilePictureUrl?: (userId: string) => string;
|
|
181
|
+
tags?: ISupportTicketTag[];
|
|
182
|
+
availableTags?: ISupportTicketTag[];
|
|
183
|
+
onAddTag?: (tagIdOrName: string, isNew?: boolean) => void;
|
|
184
|
+
onRemoveTag?: (tagId: string) => void;
|
|
185
|
+
organization?: {
|
|
186
|
+
id: string;
|
|
187
|
+
name: string;
|
|
188
|
+
hasThumbnail: boolean;
|
|
189
|
+
} | null;
|
|
190
|
+
getOrgLogoUrl?: (orgId: string) => string;
|
|
191
|
+
project?: {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
} | null;
|
|
195
|
+
}
|
|
196
|
+
export interface SupportTicketDetailProps extends SupportCloudImportProps {
|
|
197
|
+
ticket: ISupportTicket;
|
|
198
|
+
messages: ISupportTicketMessage[];
|
|
199
|
+
currentUserId: string;
|
|
200
|
+
isAdmin?: boolean;
|
|
201
|
+
isLoading?: boolean;
|
|
202
|
+
onNavigateBack?: () => void;
|
|
203
|
+
onSendMessage: (content: string) => void;
|
|
204
|
+
onSendAdminNote?: (content: string) => void;
|
|
205
|
+
isSending?: boolean;
|
|
206
|
+
onExecuteAction?: (action: SupportTicketAction, reason?: string) => void;
|
|
207
|
+
isExecuting?: boolean;
|
|
208
|
+
onChangePriority?: (priority: SupportTicketPriority) => void;
|
|
209
|
+
onChangeCategory?: (category: SupportTicketCategory) => void;
|
|
210
|
+
onChangeService?: (service: AbyssService | null) => void;
|
|
211
|
+
onAssign?: (userId: string | null) => void;
|
|
212
|
+
adminUsers?: SupportSidebarUser[];
|
|
213
|
+
activities?: ISupportTicketActivity[];
|
|
214
|
+
attachments?: ISupportTicketAttachment[];
|
|
215
|
+
onUploadAttachment?: (file: File) => void;
|
|
216
|
+
onDeleteAttachment?: (attachmentId: string) => void;
|
|
217
|
+
isUploadingAttachment?: boolean;
|
|
218
|
+
publicUsers?: Record<string, {
|
|
219
|
+
alias?: string | null;
|
|
220
|
+
profilePictureThumbnailId?: string | null;
|
|
221
|
+
}>;
|
|
222
|
+
getProfilePictureUrl?: (userId: string) => string;
|
|
223
|
+
tags?: ISupportTicketTag[];
|
|
224
|
+
availableTags?: ISupportTicketTag[];
|
|
225
|
+
onAddTag?: (tagIdOrName: string, isNew?: boolean) => void;
|
|
226
|
+
onRemoveTag?: (tagId: string) => void;
|
|
227
|
+
organization?: {
|
|
228
|
+
id: string;
|
|
229
|
+
name: string;
|
|
230
|
+
hasThumbnail: boolean;
|
|
231
|
+
} | null;
|
|
232
|
+
getOrgLogoUrl?: (orgId: string) => string;
|
|
233
|
+
project?: {
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
} | null;
|
|
237
|
+
onUploadMessageAttachment?: (file: File) => void;
|
|
238
|
+
}
|
|
239
|
+
export interface SupportStatusBadgeProps {
|
|
240
|
+
status: SupportTicketStatus;
|
|
241
|
+
size?: 'small' | 'medium';
|
|
242
|
+
}
|
|
243
|
+
export interface SupportPriorityChipProps {
|
|
244
|
+
priority: SupportTicketPriority;
|
|
245
|
+
size?: 'small' | 'medium';
|
|
246
|
+
onDelete?: () => void;
|
|
247
|
+
}
|
|
248
|
+
export interface SupportCategoryChipProps {
|
|
249
|
+
category: SupportTicketCategory;
|
|
250
|
+
size?: 'small' | 'medium';
|
|
251
|
+
onDelete?: () => void;
|
|
252
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface AbyssBackgroundProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
variant?: 'default' | 'subtle' | 'hero';
|
|
5
|
+
fixed?: boolean;
|
|
6
|
+
sx?: Record<string, any>;
|
|
7
|
+
}
|
|
8
|
+
declare const AbyssBackground: React.FC<AbyssBackgroundProps>;
|
|
9
|
+
export default AbyssBackground;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { AbyssService } from '@abyss-project/main';
|
|
2
|
-
import { JSXElementConstructor } from 'react';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
2
|
export declare const DRAWER_WIDTH_EXPANDED = 275;
|
|
5
3
|
export declare const DRAWER_WIDTH_COLLAPSED = 72;
|
|
6
4
|
export type DrawerElements = {
|
|
@@ -33,9 +31,8 @@ type Props = {
|
|
|
33
31
|
header: HeaderConfig;
|
|
34
32
|
handleDrawerToggle: () => void;
|
|
35
33
|
elements: DrawerElements;
|
|
36
|
-
classes: Record<string, string>;
|
|
37
34
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
38
35
|
defaultCollapsed?: boolean;
|
|
39
36
|
};
|
|
40
|
-
declare const
|
|
41
|
-
export default
|
|
37
|
+
declare const AbyssDrawer: React.FC<Props>;
|
|
38
|
+
export default AbyssDrawer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
appName: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
onReset?: () => void;
|
|
6
|
+
resetKeys?: unknown[];
|
|
7
|
+
fullHeight?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const AbyssErrorBoundary: React.FC<Props>;
|
|
10
|
+
export default AbyssErrorBoundary;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type AbyssErrorPageProps = {
|
|
3
|
+
appName: string;
|
|
4
|
+
error?: Error | null;
|
|
5
|
+
componentStack?: string | null;
|
|
6
|
+
onRetry?: () => void;
|
|
7
|
+
onHome?: () => void;
|
|
8
|
+
fullHeight?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const AbyssErrorPage: React.FC<AbyssErrorPageProps>;
|
|
11
|
+
export default AbyssErrorPage;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SxProps } from '@mui/material';
|
|
2
|
-
import { JSXElementConstructor } from 'react';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
type Props = {
|
|
5
4
|
mainPath?: string;
|
|
6
5
|
subtitle?: string;
|
|
7
6
|
title: string;
|
|
8
7
|
sxProps?: SxProps;
|
|
9
|
-
classes: Record<string, string>;
|
|
10
8
|
logo?: string;
|
|
11
9
|
};
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
10
|
+
declare const AbyssHeaderTitle: React.FC<Props>;
|
|
11
|
+
export default AbyssHeaderTitle;
|
|
@@ -1,28 +1,37 @@
|
|
|
1
|
-
import { IUser } from '@abyss-project/main';
|
|
2
|
-
import { SxProps } from '@mui/material';
|
|
3
1
|
import { default as React } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
import { IPlanTemplate } from '@abyss-project/main';
|
|
4
|
+
export type AbyssLayoutMenuElement = {
|
|
5
|
+
text: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
img?: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
href?: string;
|
|
10
|
+
target?: string;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
color?: string;
|
|
13
|
+
sx?: SxProps;
|
|
14
|
+
};
|
|
15
|
+
export type AbyssLayoutMenuSection = {
|
|
6
16
|
title?: string;
|
|
7
|
-
elements:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
menuItemSxProps?: SxProps;
|
|
19
|
-
}[];
|
|
20
|
-
}[];
|
|
17
|
+
elements: AbyssLayoutMenuElement[];
|
|
18
|
+
};
|
|
19
|
+
type AbyssLayoutMenuUser = {
|
|
20
|
+
id?: string;
|
|
21
|
+
alias?: string | null;
|
|
22
|
+
name?: string | null;
|
|
23
|
+
email?: string | null;
|
|
24
|
+
billingAccount?: {
|
|
25
|
+
planTemplate?: IPlanTemplate;
|
|
26
|
+
} | null;
|
|
27
|
+
};
|
|
21
28
|
type Props = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
user?: AbyssLayoutMenuUser | null;
|
|
30
|
+
getProfilePictureUrl: (userId: string) => string;
|
|
31
|
+
onLogout: () => void;
|
|
32
|
+
content?: AbyssLayoutMenuSection[];
|
|
33
|
+
themeToggle?: React.ReactNode;
|
|
34
|
+
abyssUrl?: string;
|
|
26
35
|
};
|
|
27
|
-
declare const
|
|
28
|
-
export default
|
|
36
|
+
declare const AbyssLayoutMenu: React.FC<Props>;
|
|
37
|
+
export default AbyssLayoutMenu;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
type Props = {
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
path?: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
target?: string;
|
|
9
|
+
onClick?: (e?: React.MouseEvent) => void;
|
|
10
|
+
color?: string;
|
|
11
|
+
sx?: SxProps;
|
|
12
|
+
};
|
|
13
|
+
declare const AbyssMenuItem: React.FC<Props>;
|
|
14
|
+
export default AbyssMenuItem;
|
|
15
|
+
export { AbyssMenuItem };
|
package/dist/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
import { IGetPublicUserData, AbyssService, IUserNotification, NotificationDTO } from '@abyss-project/main';
|
|
2
1
|
import { default as React } from 'react';
|
|
3
|
-
import {
|
|
2
|
+
import { AbyssNotificationItem, AbyssNotificationUser } from './AbyssNotifications.component';
|
|
3
|
+
export type { AbyssNotificationItem, AbyssNotificationUser };
|
|
4
|
+
export type SSENotificationEvent = {
|
|
5
|
+
notification: AbyssNotificationItem;
|
|
6
|
+
type: 'created' | 'opened';
|
|
7
|
+
} | null;
|
|
4
8
|
type Props = {
|
|
5
|
-
allNotificationPath?: string;
|
|
6
9
|
getProfilePictureUrl: (id: string) => string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
fetchNotifications: () => Promise<{
|
|
11
|
+
notifications: AbyssNotificationItem[];
|
|
12
|
+
users: AbyssNotificationUser[];
|
|
13
|
+
totalCount: number;
|
|
14
|
+
}>;
|
|
15
|
+
onOpenNotification: (notificationId: string) => Promise<void>;
|
|
16
|
+
formatTitle: (notification: AbyssNotificationItem, user?: AbyssNotificationUser | null) => string;
|
|
17
|
+
formatContent: (notification: AbyssNotificationItem, user?: AbyssNotificationUser | null) => string;
|
|
18
|
+
actionButtonText: (notification: AbyssNotificationItem, user?: AbyssNotificationUser | null) => string | null;
|
|
19
|
+
handleNotificationActionButton?: (notification: AbyssNotificationItem, user?: AbyssNotificationUser | null) => void;
|
|
10
20
|
formatDate: (date: Date) => string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
sid
|
|
21
|
+
onSSEMessage?: (message: unknown) => SSENotificationEvent;
|
|
22
|
+
sseUrl?: string;
|
|
23
|
+
sid?: string;
|
|
14
24
|
disableSSE?: boolean;
|
|
15
25
|
enableSoundNotification?: boolean;
|
|
16
|
-
|
|
26
|
+
onSoundToggle?: () => Promise<void>;
|
|
27
|
+
notificationSoundUrl?: string;
|
|
28
|
+
onAllNotificationsClick?: () => void;
|
|
29
|
+
onPreferencesClick?: () => void;
|
|
17
30
|
};
|
|
18
|
-
declare const
|
|
19
|
-
export default
|
|
31
|
+
declare const AbyssLayoutNotifications: React.FC<Props>;
|
|
32
|
+
export default AbyssLayoutNotifications;
|
|
@@ -1,15 +1,30 @@
|
|
|
1
|
-
import { IPaginateUserNotificationResponse, IGetPublicUserData, IUserNotification, NotificationDTO } from '@abyss-project/main';
|
|
2
1
|
import { default as React } from 'react';
|
|
3
|
-
|
|
2
|
+
export type AbyssNotificationItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
userId?: string | null;
|
|
5
|
+
openedAt?: string | null;
|
|
6
|
+
createdAt?: string | null;
|
|
7
|
+
data?: Record<string, unknown>;
|
|
8
|
+
service?: string;
|
|
9
|
+
contentType?: string;
|
|
10
|
+
};
|
|
11
|
+
export type AbyssNotificationUser = {
|
|
12
|
+
id: string;
|
|
13
|
+
alias?: string | null;
|
|
14
|
+
profilePictureThumbnailId?: string | null;
|
|
15
|
+
};
|
|
4
16
|
type Props = {
|
|
5
|
-
notifications:
|
|
17
|
+
notifications: AbyssNotificationItem[];
|
|
18
|
+
users: AbyssNotificationUser[];
|
|
6
19
|
getProfilePictureUrl: (id: string) => string;
|
|
7
|
-
|
|
8
|
-
|
|
20
|
+
formatTitle: (notification: AbyssNotificationItem, user?: AbyssNotificationUser | null) => string;
|
|
21
|
+
formatContent: (notification: AbyssNotificationItem, user?: AbyssNotificationUser | null) => string;
|
|
22
|
+
actionButtonText: (notification: AbyssNotificationItem, user?: AbyssNotificationUser | null) => string | null;
|
|
23
|
+
handleNotificationActionButton?: (notification: AbyssNotificationItem, user?: AbyssNotificationUser | null) => void;
|
|
24
|
+
onOpenNotification: (notificationId: string) => Promise<void>;
|
|
9
25
|
handleRefreshNotifications: () => void;
|
|
10
|
-
users: IGetPublicUserData['user'][0][];
|
|
11
26
|
formatDate: (date: Date) => string;
|
|
12
|
-
|
|
27
|
+
noNotificationsLabel?: string;
|
|
13
28
|
};
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
29
|
+
declare const AbyssNotifications: React.FC<Props>;
|
|
30
|
+
export default AbyssNotifications;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default as AbyssLayoutNotifications } from './AbyssLayoutNotifications.component';
|
|
2
2
|
export { default as AbyssNotifications } from './AbyssNotifications.component';
|
|
3
|
+
export type { AbyssNotificationItem, AbyssNotificationUser } from './AbyssNotifications.component';
|
|
4
|
+
export type { SSENotificationEvent } from './AbyssLayoutNotifications.component';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React, ChangeEvent } from 'react';
|
|
2
|
+
import { ISpace, IFile, IGetRepositoryCloudData } from '@abyss-project/cloud';
|
|
3
|
+
export declare const MAX_PICTURE_SIZE: number;
|
|
4
|
+
type Props = {
|
|
5
|
+
children: React.ReactElement;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
handleUploadFromUrl?: (url: string) => Promise<void>;
|
|
8
|
+
handleFileUpload: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
|
|
9
|
+
handleImportFromCloud: (cloud: ISpace, files: IFile[]) => Promise<void>;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
maxSize?: number;
|
|
12
|
+
accept?: string[];
|
|
13
|
+
user?: {
|
|
14
|
+
enabledService?: string[];
|
|
15
|
+
} | null;
|
|
16
|
+
abyssCloudUrl: string;
|
|
17
|
+
getFileThumbnailUrl: (id: string) => string;
|
|
18
|
+
clouds?: ISpace[] | null;
|
|
19
|
+
cloudShares?: ISpace[] | null;
|
|
20
|
+
isLoadingClouds?: boolean;
|
|
21
|
+
onRefreshClouds?: () => Promise<void>;
|
|
22
|
+
fetchCloudRepository?: (cloudId: string) => Promise<IGetRepositoryCloudData>;
|
|
23
|
+
onActivateService?: () => Promise<void>;
|
|
24
|
+
onCreateCloud?: (name: string) => Promise<void>;
|
|
25
|
+
showCloudOption?: boolean;
|
|
26
|
+
getSpaceDisplay?: (space: ISpace) => {
|
|
27
|
+
label: string;
|
|
28
|
+
avatar?: React.ReactNode;
|
|
29
|
+
subtitle?: string;
|
|
30
|
+
organizationId?: string | null;
|
|
31
|
+
organizationName?: string | null;
|
|
32
|
+
scope?: 'personal' | 'perso-in-org' | 'org-common' | 'project';
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
declare const ImportButton: React.FC<Props>;
|
|
36
|
+
export default ImportButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssToast } from './AbyssToast.component';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
classes: Record<string, string>;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: React.JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
|
|
7
|
-
export default _default;
|
|
2
|
+
declare const WaterParticles: React.FC;
|
|
3
|
+
export default WaterParticles;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export * from './CustomDivider';
|
|
2
|
-
export * from './FloatingNavigation';
|
|
3
1
|
export * from './WaterParticles';
|
|
4
2
|
export * from './AbyssDrawer';
|
|
5
|
-
export
|
|
3
|
+
export { default as AbyssBackground } from './AbyssBackground/AbyssBackground.component';
|
|
4
|
+
export type { AbyssBackgroundProps } from './AbyssBackground/AbyssBackground.component';
|
|
5
|
+
export * from './ImportButton';
|
|
6
6
|
export * from './AbyssLayoutNotifications';
|
|
7
|
+
export * from './Toast';
|
|
8
|
+
export * from './AbyssHeaderTitle';
|
|
7
9
|
export * from './AbyssLayoutMenu';
|
|
10
|
+
export * from './AbyssErrorPage';
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export * from './AllCloudMetrics';
|
|
2
1
|
export * from './Avatars';
|
|
3
|
-
export * from './
|
|
2
|
+
export * from './Banking';
|
|
3
|
+
export * from './Cards';
|
|
4
|
+
export * from './Charts';
|
|
4
5
|
export * from './Chips';
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './ImportButton';
|
|
6
|
+
export * from './CookieConsent';
|
|
7
|
+
export * from './Data';
|
|
8
8
|
export * from './InfoBox';
|
|
9
9
|
export * from './Inputs';
|
|
10
|
+
export * from './Layouts';
|
|
10
11
|
export * from './Modals';
|
|
11
12
|
export * from './Utils';
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
13
|
+
export * from './Support';
|
|
14
|
+
export * from './Invitations';
|
|
15
|
+
export * from './PdfEditor';
|
|
16
|
+
export * from './QuotaReached';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * from './confirm-modal';
|
|
2
|
-
export * from './use-cloud.hook';
|
|
3
2
|
export * from './use-sse.hook';
|
|
3
|
+
export * from './use-theme-transition.hook';
|
|
4
|
+
export * from './use-rich-intl.hook';
|
|
5
|
+
export * from './use-cloud.hook';
|
|
6
|
+
export * from './use-public-users.hook';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISpace, IPaginateCloudItem } from '@abyss-project/cloud';
|
|
2
2
|
export declare const useFetchClouds: () => {
|
|
3
3
|
isLoading: boolean;
|
|
4
4
|
fetch: () => Promise<{
|
|
5
|
-
clouds:
|
|
6
|
-
cloudShares:
|
|
5
|
+
clouds: IPaginateCloudItem[];
|
|
6
|
+
cloudShares: ISpace[];
|
|
7
7
|
}>;
|
|
8
8
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QueryClient, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
export type PublicUser = {
|
|
3
|
+
id: string;
|
|
4
|
+
alias: string;
|
|
5
|
+
profilePictureThumbnailId: string | null;
|
|
6
|
+
emailVerifiedAt: Date | null;
|
|
7
|
+
};
|
|
8
|
+
export declare const publicUserQueryKey: (userId: string) => readonly ["public-user", string];
|
|
9
|
+
export declare const usePublicUser: (userId: string | null | undefined) => UseQueryResult<PublicUser | null, Error>;
|
|
10
|
+
export declare const usePublicUsers: (userIds: readonly (string | null | undefined)[]) => Record<string, PublicUser>;
|
|
11
|
+
export declare const primePublicUsers: (queryClient: QueryClient, users: readonly PublicUser[]) => void;
|
|
12
|
+
export declare const usePrimePublicUsers: () => (users: readonly PublicUser[]) => void;
|
|
13
|
+
export declare const invalidatePublicUsers: (queryClient: QueryClient, userIds: readonly string[]) => void;
|