@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,217 @@
|
|
|
1
|
+
import { AssetKind } from '@abyss-project/main';
|
|
2
|
+
import { ISpace, IFile } from '@abyss-project/cloud';
|
|
3
|
+
import { SupportCloudImportProps } from '../Support/types';
|
|
4
|
+
import type * as React from 'react';
|
|
5
|
+
export interface PdfEditorCloudImportProps extends SupportCloudImportProps {
|
|
6
|
+
downloadCloudFile: (cloud: ISpace, file: IFile) => Promise<ArrayBuffer>;
|
|
7
|
+
}
|
|
8
|
+
export declare enum PdfOperationType {
|
|
9
|
+
ANNOTATE_TEXT = "ANNOTATE_TEXT",
|
|
10
|
+
ANNOTATE_DRAW = "ANNOTATE_DRAW",
|
|
11
|
+
ANNOTATE_IMAGE = "ANNOTATE_IMAGE",
|
|
12
|
+
FILL_FIELD = "FILL_FIELD",
|
|
13
|
+
PAGE_REORDER = "PAGE_REORDER",
|
|
14
|
+
PAGE_DELETE = "PAGE_DELETE",
|
|
15
|
+
PAGE_ROTATE = "PAGE_ROTATE",
|
|
16
|
+
PAGE_INSERT_FROM_UPLOAD = "PAGE_INSERT_FROM_UPLOAD",
|
|
17
|
+
FLATTEN = "FLATTEN"
|
|
18
|
+
}
|
|
19
|
+
export type PdfImageSource = {
|
|
20
|
+
kind: 'USER_ASSET';
|
|
21
|
+
assetId: string;
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'INLINE';
|
|
24
|
+
storageKey: string;
|
|
25
|
+
};
|
|
26
|
+
export type PdfOperation = {
|
|
27
|
+
opId: string;
|
|
28
|
+
type: PdfOperationType.ANNOTATE_TEXT;
|
|
29
|
+
pageIndex: number;
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
text: string;
|
|
33
|
+
fontSize: number;
|
|
34
|
+
color: string;
|
|
35
|
+
} | {
|
|
36
|
+
opId: string;
|
|
37
|
+
type: PdfOperationType.ANNOTATE_DRAW;
|
|
38
|
+
pageIndex: number;
|
|
39
|
+
pathSvg: string;
|
|
40
|
+
color: string;
|
|
41
|
+
strokeWidth: number;
|
|
42
|
+
} | {
|
|
43
|
+
opId: string;
|
|
44
|
+
type: PdfOperationType.ANNOTATE_IMAGE;
|
|
45
|
+
pageIndex: number;
|
|
46
|
+
x: number;
|
|
47
|
+
y: number;
|
|
48
|
+
widthPt: number;
|
|
49
|
+
heightPt: number;
|
|
50
|
+
source: PdfImageSource;
|
|
51
|
+
} | {
|
|
52
|
+
opId: string;
|
|
53
|
+
type: PdfOperationType.FILL_FIELD;
|
|
54
|
+
fieldName: string;
|
|
55
|
+
value: string | boolean;
|
|
56
|
+
} | {
|
|
57
|
+
opId: string;
|
|
58
|
+
type: PdfOperationType.PAGE_REORDER;
|
|
59
|
+
order: number[];
|
|
60
|
+
} | {
|
|
61
|
+
opId: string;
|
|
62
|
+
type: PdfOperationType.PAGE_DELETE;
|
|
63
|
+
pageIndex: number;
|
|
64
|
+
} | {
|
|
65
|
+
opId: string;
|
|
66
|
+
type: PdfOperationType.PAGE_ROTATE;
|
|
67
|
+
pageIndex: number;
|
|
68
|
+
deg: 90 | 180 | 270;
|
|
69
|
+
} | {
|
|
70
|
+
opId: string;
|
|
71
|
+
type: PdfOperationType.PAGE_INSERT_FROM_UPLOAD;
|
|
72
|
+
afterPageIndex: number;
|
|
73
|
+
uploadKey: string;
|
|
74
|
+
uploadPages: number[];
|
|
75
|
+
} | {
|
|
76
|
+
opId: string;
|
|
77
|
+
type: PdfOperationType.FLATTEN;
|
|
78
|
+
};
|
|
79
|
+
export type ExportOption = 'DOWNLOAD' | 'CLOUD_NEW_FILE' | 'CLOUD_REPLACE';
|
|
80
|
+
export type ExportRequest = {
|
|
81
|
+
kind: 'DOWNLOAD';
|
|
82
|
+
fileName: string;
|
|
83
|
+
pdfBytes: Uint8Array;
|
|
84
|
+
} | {
|
|
85
|
+
kind: 'CLOUD_NEW_FILE';
|
|
86
|
+
folderId: string;
|
|
87
|
+
fileName: string;
|
|
88
|
+
pdfBytes: Uint8Array;
|
|
89
|
+
} | {
|
|
90
|
+
kind: 'CLOUD_REPLACE';
|
|
91
|
+
fileId: string;
|
|
92
|
+
pdfBytes: Uint8Array;
|
|
93
|
+
};
|
|
94
|
+
export type PdfSource = {
|
|
95
|
+
kind: 'BLOB';
|
|
96
|
+
data: ArrayBuffer;
|
|
97
|
+
fileName: string;
|
|
98
|
+
} | {
|
|
99
|
+
kind: 'URL';
|
|
100
|
+
url: string;
|
|
101
|
+
fileName: string;
|
|
102
|
+
};
|
|
103
|
+
export type PdfEditorMode = 'anonymous-client' | 'anonymous-shared' | 'session-authenticated' | 'session-cloud-bridge';
|
|
104
|
+
export type ToolKind = 'select' | 'text' | 'draw' | 'signature' | 'eraser' | 'fill-fields';
|
|
105
|
+
export interface AcroFormField {
|
|
106
|
+
name: string;
|
|
107
|
+
kind: 'text' | 'checkbox' | 'radio' | 'dropdown';
|
|
108
|
+
value: string | boolean;
|
|
109
|
+
options?: string[];
|
|
110
|
+
}
|
|
111
|
+
export interface EditorState {
|
|
112
|
+
activeTool: ToolKind;
|
|
113
|
+
activePageIndex: number;
|
|
114
|
+
operations: PdfOperation[];
|
|
115
|
+
past: PdfOperation[][];
|
|
116
|
+
future: PdfOperation[][];
|
|
117
|
+
acroFormFields: AcroFormField[];
|
|
118
|
+
pendingSignature: string | null;
|
|
119
|
+
pendingText: string | null;
|
|
120
|
+
pendingApplyAllPages: boolean;
|
|
121
|
+
}
|
|
122
|
+
export type EditorAction = {
|
|
123
|
+
type: 'ADD_OPERATION';
|
|
124
|
+
payload: PdfOperation;
|
|
125
|
+
} | {
|
|
126
|
+
type: 'ADD_OPERATION_ALL_PAGES';
|
|
127
|
+
payload: {
|
|
128
|
+
op: PdfOperation;
|
|
129
|
+
pageCount: number;
|
|
130
|
+
};
|
|
131
|
+
} | {
|
|
132
|
+
type: 'UPDATE_OPERATION';
|
|
133
|
+
payload: {
|
|
134
|
+
opId: string;
|
|
135
|
+
op: PdfOperation;
|
|
136
|
+
};
|
|
137
|
+
} | {
|
|
138
|
+
type: 'DELETE_OPERATION';
|
|
139
|
+
payload: {
|
|
140
|
+
opId: string;
|
|
141
|
+
};
|
|
142
|
+
} | {
|
|
143
|
+
type: 'UNDO';
|
|
144
|
+
} | {
|
|
145
|
+
type: 'REDO';
|
|
146
|
+
} | {
|
|
147
|
+
type: 'SET_ACTIVE_TOOL';
|
|
148
|
+
payload: ToolKind;
|
|
149
|
+
} | {
|
|
150
|
+
type: 'SET_ACTIVE_PAGE';
|
|
151
|
+
payload: number;
|
|
152
|
+
} | {
|
|
153
|
+
type: 'SET_ACRO_FORM_FIELDS';
|
|
154
|
+
payload: AcroFormField[];
|
|
155
|
+
} | {
|
|
156
|
+
type: 'SET_PENDING_SIGNATURE';
|
|
157
|
+
payload: string | null;
|
|
158
|
+
} | {
|
|
159
|
+
type: 'SET_PENDING_TEXT';
|
|
160
|
+
payload: string | null;
|
|
161
|
+
} | {
|
|
162
|
+
type: 'SET_PENDING_APPLY_ALL_PAGES';
|
|
163
|
+
payload: boolean;
|
|
164
|
+
};
|
|
165
|
+
export interface AssetPaletteItem {
|
|
166
|
+
id: string;
|
|
167
|
+
kind: AssetKind;
|
|
168
|
+
name: string;
|
|
169
|
+
downloadUrl: string | null;
|
|
170
|
+
thumbnailUrl?: string | null;
|
|
171
|
+
textContent?: string | null;
|
|
172
|
+
}
|
|
173
|
+
export interface AssetPaletteOrgBucket {
|
|
174
|
+
id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
items: AssetPaletteItem[];
|
|
177
|
+
avatar?: React.ReactNode;
|
|
178
|
+
}
|
|
179
|
+
export interface AssetPaletteProjectBucket {
|
|
180
|
+
id: string;
|
|
181
|
+
name: string;
|
|
182
|
+
organizationId: string;
|
|
183
|
+
items: AssetPaletteItem[];
|
|
184
|
+
avatar?: React.ReactNode;
|
|
185
|
+
}
|
|
186
|
+
export interface AssetPalette {
|
|
187
|
+
personal: AssetPaletteItem[];
|
|
188
|
+
personalAvatar?: React.ReactNode;
|
|
189
|
+
organizations?: AssetPaletteOrgBucket[];
|
|
190
|
+
projects?: AssetPaletteProjectBucket[];
|
|
191
|
+
}
|
|
192
|
+
export type SaveSignatureFn = (params: {
|
|
193
|
+
dataUrl: string;
|
|
194
|
+
kind: AssetKind;
|
|
195
|
+
name: string;
|
|
196
|
+
organizationId?: string | null;
|
|
197
|
+
projectId?: string | null;
|
|
198
|
+
}) => Promise<void>;
|
|
199
|
+
export type OperationsAdapter = (params: {
|
|
200
|
+
operations: PdfOperation[];
|
|
201
|
+
}) => Promise<void>;
|
|
202
|
+
export interface PdfEditorProps {
|
|
203
|
+
source: PdfSource;
|
|
204
|
+
mode: PdfEditorMode;
|
|
205
|
+
initialOperations?: PdfOperation[];
|
|
206
|
+
operationsAdapter?: OperationsAdapter;
|
|
207
|
+
assetPalette?: AssetPalette;
|
|
208
|
+
onSaveSignature?: SaveSignatureFn;
|
|
209
|
+
onExport: (request: ExportRequest) => Promise<void>;
|
|
210
|
+
exportOptions: ExportOption[];
|
|
211
|
+
title?: string;
|
|
212
|
+
onTitleChange?: (title: string) => Promise<void>;
|
|
213
|
+
readOnly?: boolean;
|
|
214
|
+
cloudImport?: PdfEditorCloudImportProps;
|
|
215
|
+
manageAssetsUrl?: string;
|
|
216
|
+
onChangeSource?: () => void;
|
|
217
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EditorAction, PdfEditorCloudImportProps } from '../types';
|
|
3
|
+
interface InsertPagesButtonProps {
|
|
4
|
+
afterVirtualIndex: number;
|
|
5
|
+
dispatch: React.Dispatch<EditorAction>;
|
|
6
|
+
cloudImport?: PdfEditorCloudImportProps;
|
|
7
|
+
}
|
|
8
|
+
export declare const InsertPagesButton: React.FC<InsertPagesButtonProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface InsertPagesDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
numPages: number;
|
|
5
|
+
fileName: string;
|
|
6
|
+
onConfirm: (selectedPages: number[]) => void;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const InsertPagesDialog: React.FC<InsertPagesDialogProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PdfOperation, ToolKind, EditorAction } from '../types';
|
|
3
|
+
interface PageOverlayProps {
|
|
4
|
+
pageIndex: number;
|
|
5
|
+
displayIndex: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
operations: PdfOperation[];
|
|
9
|
+
activeTool: ToolKind;
|
|
10
|
+
activePageIndex: number;
|
|
11
|
+
pendingSignature: string | null;
|
|
12
|
+
pendingText: string | null;
|
|
13
|
+
pendingApplyAllPages: boolean;
|
|
14
|
+
numPages: number;
|
|
15
|
+
dispatch: React.Dispatch<EditorAction>;
|
|
16
|
+
textInput?: string;
|
|
17
|
+
drawColor?: string;
|
|
18
|
+
drawStrokeWidth?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare const PageOverlay: React.FC<PageOverlayProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
+
import { PdfOperation, EditorAction, PdfEditorCloudImportProps } from '../types';
|
|
4
|
+
import { InsertedPageRef } from '../operations/compute-page-order';
|
|
5
|
+
interface PageSidebarProps {
|
|
6
|
+
pdfDoc: PDFDocumentProxy;
|
|
7
|
+
operations: PdfOperation[];
|
|
8
|
+
activePageIndex: number;
|
|
9
|
+
uploadedDocs: Map<string, PDFDocumentProxy>;
|
|
10
|
+
insertionTable: Map<number, InsertedPageRef>;
|
|
11
|
+
dispatch: React.Dispatch<EditorAction>;
|
|
12
|
+
cloudImport?: PdfEditorCloudImportProps;
|
|
13
|
+
}
|
|
14
|
+
export declare const PageSidebar: React.FC<PageSidebarProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
+
import { EditorAction, PdfOperation } from '../types';
|
|
4
|
+
import { InsertedPageRef } from '../operations/compute-page-order';
|
|
5
|
+
interface PageThumbnailProps {
|
|
6
|
+
pdfDoc: PDFDocumentProxy;
|
|
7
|
+
uploadedDocs: Map<string, PDFDocumentProxy>;
|
|
8
|
+
virtualIndex: number;
|
|
9
|
+
insertedRef: InsertedPageRef | undefined;
|
|
10
|
+
displayIndex: number;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
rotation: number;
|
|
13
|
+
operations: PdfOperation[];
|
|
14
|
+
dispatch: React.Dispatch<EditorAction>;
|
|
15
|
+
}
|
|
16
|
+
export declare const PageThumbnail: React.FC<PageThumbnailProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
+
import { InsertedPageRef } from '../operations/compute-page-order';
|
|
4
|
+
declare const RENDER_SCALE = 1.5;
|
|
5
|
+
export { RENDER_SCALE };
|
|
6
|
+
interface PdfCanvasProps {
|
|
7
|
+
pdfDoc: PDFDocumentProxy;
|
|
8
|
+
uploadedDocs: Map<string, PDFDocumentProxy>;
|
|
9
|
+
insertionTable: Map<number, InsertedPageRef>;
|
|
10
|
+
rotationMap?: Map<number, number>;
|
|
11
|
+
scale?: number;
|
|
12
|
+
activePageIndex: number;
|
|
13
|
+
pageOrder: number[];
|
|
14
|
+
onPageDimensions?: (pageIndex: number, width: number, height: number) => void;
|
|
15
|
+
children?: (virtualIndex: number, displayIndex: number) => React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const PdfCanvas: React.FC<PdfCanvasProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { QuotaReachedDialog } from './QuotaReachedDialog.component';
|
|
2
|
+
export type { QuotaReachedDialogProps } from './QuotaReachedDialog.component';
|
|
3
|
+
export { useQuotaDialogStore } from './quota-dialog.store';
|
|
4
|
+
export type { QuotaDialogPayload } from './quota-dialog.store';
|
|
5
|
+
export { parseQuotaError, attachQuotaInterceptor } from './billing-quota-error';
|
|
6
|
+
export { QUOTA_SERVICE_META, getQuotaServiceColor, renderQuotaServiceIcon, buildQuotaServiceChipSx, } from './quota-service-meta';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BillingMetric, BillingService } from '@abyss-project/main';
|
|
2
|
+
import { UseBoundStore, StoreApi } from 'zustand';
|
|
3
|
+
export interface QuotaDialogPayload {
|
|
4
|
+
metric: BillingMetric;
|
|
5
|
+
service: BillingService;
|
|
6
|
+
rawMessage?: string;
|
|
7
|
+
}
|
|
8
|
+
interface QuotaDialogState {
|
|
9
|
+
open: boolean;
|
|
10
|
+
payload: QuotaDialogPayload | null;
|
|
11
|
+
show: (payload: QuotaDialogPayload) => void;
|
|
12
|
+
hide: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const useQuotaDialogStore: UseBoundStore<StoreApi<QuotaDialogState>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
import { BillingService } from '@abyss-project/main';
|
|
4
|
+
type PaletteKey = 'primary' | 'success' | 'warning' | 'info' | 'secondary' | 'error';
|
|
5
|
+
interface ServiceMeta {
|
|
6
|
+
icon: React.ReactElement;
|
|
7
|
+
color: PaletteKey;
|
|
8
|
+
}
|
|
9
|
+
export declare const QUOTA_SERVICE_META: Record<BillingService, ServiceMeta>;
|
|
10
|
+
export declare const getQuotaServiceColor: (theme: Theme, service: BillingService) => string;
|
|
11
|
+
export declare const renderQuotaServiceIcon: (service: BillingService, fontSize: number) => React.ReactElement;
|
|
12
|
+
export declare const buildQuotaServiceChipSx: (theme: Theme, service: BillingService) => {
|
|
13
|
+
height: number;
|
|
14
|
+
fontSize: string;
|
|
15
|
+
fontWeight: number;
|
|
16
|
+
bgcolor: string;
|
|
17
|
+
color: string;
|
|
18
|
+
border: string;
|
|
19
|
+
'& .MuiChip-icon': {
|
|
20
|
+
color: string;
|
|
21
|
+
marginLeft: string;
|
|
22
|
+
};
|
|
23
|
+
'& .MuiChip-label': {
|
|
24
|
+
px: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AbyssService } from '@abyss-project/main';
|
|
3
|
+
export declare const SERVICE_CONFIG: Partial<Record<AbyssService, {
|
|
4
|
+
logo: string;
|
|
5
|
+
color: string;
|
|
6
|
+
}>>;
|
|
7
|
+
export declare const getServiceConfig: (service: AbyssService) => {
|
|
8
|
+
logo: string;
|
|
9
|
+
color: string;
|
|
10
|
+
};
|
|
11
|
+
export interface AbyssServiceSelectProps {
|
|
12
|
+
value: AbyssService[];
|
|
13
|
+
onChange: (value: AbyssService[]) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
sx?: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
export declare const AbyssServiceSelect: React.FC<AbyssServiceSelectProps>;
|
|
18
|
+
interface AbyssServiceChipProps {
|
|
19
|
+
service: AbyssService;
|
|
20
|
+
logo: string;
|
|
21
|
+
color: string;
|
|
22
|
+
label: string;
|
|
23
|
+
size?: 'small' | 'medium';
|
|
24
|
+
onDelete?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const AbyssServiceChip: React.FC<AbyssServiceChipProps>;
|
|
27
|
+
export interface AbyssServiceSingleSelectProps {
|
|
28
|
+
value: AbyssService | null;
|
|
29
|
+
onChange: (value: AbyssService | null) => void;
|
|
30
|
+
label?: string;
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
sx?: Record<string, unknown>;
|
|
33
|
+
}
|
|
34
|
+
export declare const AbyssServiceSingleSelect: React.FC<AbyssServiceSingleSelectProps>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SupportTicketCategory, SupportTicketCategoryGroup } from '@abyss-project/main';
|
|
3
|
+
import { SupportCategoryChipProps } from './types';
|
|
4
|
+
export declare const getCategoryGroup: (category: SupportTicketCategory) => SupportTicketCategoryGroup;
|
|
5
|
+
export declare const getCategoryConfig: (category: SupportTicketCategory) => {
|
|
6
|
+
color: string;
|
|
7
|
+
icon: React.ElementType;
|
|
8
|
+
};
|
|
9
|
+
export declare const SupportCategoryChip: React.FC<SupportCategoryChipProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SupportTicketCategory } from '@abyss-project/main';
|
|
3
|
+
interface SupportCategorySelectProps {
|
|
4
|
+
value?: SupportTicketCategory | null;
|
|
5
|
+
onChange?: (value: SupportTicketCategory | null) => void;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
multipleValue?: SupportTicketCategory[];
|
|
8
|
+
onMultipleChange?: (value: SupportTicketCategory[]) => void;
|
|
9
|
+
label?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
size?: 'small' | 'medium';
|
|
12
|
+
error?: boolean;
|
|
13
|
+
helperText?: React.ReactNode;
|
|
14
|
+
name?: string;
|
|
15
|
+
onBlur?: React.FocusEventHandler;
|
|
16
|
+
sx?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
export declare const SupportCategorySelect: React.FC<SupportCategorySelectProps>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export { SupportStatusBadge } from './SupportStatusBadge.component';
|
|
3
|
+
export { SupportPriorityChip } from './SupportPriorityChip.component';
|
|
4
|
+
export { SupportTicketList } from './SupportTicketList.component';
|
|
5
|
+
export { SupportTicketCreateForm } from './SupportTicketCreateForm.component';
|
|
6
|
+
export { SupportMessageThread } from './SupportMessageThread.component';
|
|
7
|
+
export { SupportMessageInput } from './SupportMessageInput.component';
|
|
8
|
+
export { SupportActionButtons } from './SupportActionButtons.component';
|
|
9
|
+
export { SupportActivityLog } from './SupportActivityLog.component';
|
|
10
|
+
export { SupportAttachmentsPanel } from './SupportAttachmentsPanel.component';
|
|
11
|
+
export { SupportSidebar } from './SupportSidebar.component';
|
|
12
|
+
export { SupportTicketDetail } from './SupportTicketDetail.component';
|
|
13
|
+
export { SupportCategoryChip, getCategoryGroup, getCategoryConfig } from './SupportCategoryChip.component';
|
|
14
|
+
export { SupportCategorySelect } from './SupportCategorySelect.component';
|
|
15
|
+
export { SupportTopBar } from './SupportTopBar.component';
|
|
16
|
+
export { SupportCategoryGroupCards } from './SupportCategoryGroupCards.component';
|
|
17
|
+
export { SupportTicketCreateStepper } from './SupportTicketCreateStepper.component';
|
|
18
|
+
export { AbyssServiceSelect, AbyssServiceSingleSelect, AbyssServiceChip, SERVICE_CONFIG as ABYSS_SERVICE_CONFIG, getServiceConfig } from './AbyssServiceSelect.component';
|