@abyss-project/commons-front-core 1.0.147 → 2.0.1
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 -30
- package/declaration.d.ts +13 -13
- package/dist/{CookieConsentSettings.component-Dkw8Ye0E.js → CookieConsentSettings.component-Dqbo9N8Y.js} +234 -124
- package/dist/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts +3 -5
- package/dist/components/Chips/ApplicationWebhookTypeChip/ApplicationWebhookTypeChip.component.d.ts +3 -5
- package/dist/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +3 -5
- package/dist/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +3 -5
- package/dist/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +3 -6
- package/dist/components/Chips/WebhookTypeChip/WebhookTypeChip.component.d.ts +3 -5
- package/dist/components/Inputs/AbyssDatePicker/AbyssDatePicker.component.d.ts +3 -4
- package/dist/components/Inputs/AbyssDateTimePicker/AbyssDateTimePicker.component.d.ts +3 -4
- package/dist/components/Inputs/ColorPalette/ColorPalette.component.d.ts +1 -0
- package/dist/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +0 -2
- package/dist/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +0 -2
- package/dist/components/PdfEditor/hooks/use-pdf-document.d.ts +6 -1
- package/dist/components/PdfEditor/operations/actions.d.ts +1 -0
- package/dist/components/PdfEditor/operations/compute-page-order.d.ts +4 -0
- package/dist/components/PdfEditor/operations/extract.d.ts +2 -0
- package/dist/components/PdfEditor/operations/extract.spec.d.ts +1 -0
- package/dist/components/PdfEditor/operations/rasterize.d.ts +3 -0
- package/dist/components/PdfEditor/operations/redact.d.ts +9 -0
- package/dist/components/PdfEditor/operations/redact.spec.d.ts +1 -0
- package/dist/components/PdfEditor/tools/RedactTool.d.ts +2 -0
- package/dist/components/PdfEditor/tools/ShapeTool.d.ts +17 -0
- package/dist/components/PdfEditor/tools/TextTool.d.ts +11 -1
- package/dist/components/PdfEditor/tools/Toolbar.d.ts +11 -0
- package/dist/components/PdfEditor/tools/tool-options-ui.d.ts +4 -0
- package/dist/components/PdfEditor/types.d.ts +55 -3
- package/dist/components/PdfEditor/viewer/PageOverlay.d.ts +7 -2
- package/dist/components/PdfEditor/viewer/PdfCanvas.d.ts +4 -0
- package/dist/components/PdfEditor/viewer/ViewerControls.d.ts +2 -0
- package/dist/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +2 -4
- package/dist/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +2 -4
- package/dist/components/Support/SupportCategoryChip.component.d.ts +0 -1
- package/dist/components/Support/types.d.ts +2 -0
- package/dist/cookie-consent.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +67 -1494
- package/dist/{index-DCJSXRWb.js → index-9JIy7Djb.js} +1 -1
- package/dist/{index-BOsYmSCD.js → index-BAuonW3N.js} +32974 -32421
- package/dist/{index-BHkn2ltL.js → index-BOtrcw1j.js} +2 -2
- package/dist/{index-HwfQ82MI.js → index-BPJVReI0.js} +2 -2
- package/dist/{index-BL7GRhPa.js → index-BXZfTf55.js} +4 -4
- package/dist/{index-EZoUoL9o.js → index-BYLT28lc.js} +3 -3
- package/dist/{index-Cx0vAIWv.js → index-BYwHCIWy.js} +2 -2
- package/dist/{index-Dn-WBCKE.js → index-BgmzPVRb.js} +2 -2
- package/dist/{index-B3Q0CXvH.js → index-BpK4Invo.js} +2 -2
- package/dist/{index-DayoEcuw.js → index-CFDZ3MU0.js} +2 -2
- package/dist/{index-CrfvkYYN.js → index-CH4t9QXm.js} +2 -2
- package/dist/{index-C2KsBRfQ.js → index-CHx1H8aR.js} +2 -2
- package/dist/{index-CaN4t0Xc.js → index-CWbky7lZ.js} +2 -2
- package/dist/{index-GG9dANvs.js → index-CdyQkcro.js} +4 -4
- package/dist/{index-DFfm18gp.js → index-ChracZ7Y.js} +2 -2
- package/dist/{index-DCjRpdx3.js → index-D-lUzl7L.js} +4 -4
- package/dist/{index-2CKJrPca.js → index-DA-Al57V.js} +2 -2
- package/dist/{index-BqukycfU.js → index-DQA1qMA-.js} +3 -3
- package/dist/{index-DBRSsvnV.js → index-DsGlqSMc.js} +2 -2
- package/dist/{index-BW9Bye_5.js → index-Dwu4v8nG.js} +3 -3
- package/dist/{index-D8zo5pJ7.js → index-JwdWWKbV.js} +3 -3
- package/dist/{index-xJbVPHgr.js → index-nCkskgkm.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/translations/en.d.ts +66 -11
- package/dist/translations/fr.d.ts +66 -11
- package/dist/utils/color.utils.d.ts +0 -1
- package/package.json +3 -4
- package/tsconfig.json +35 -35
- package/vite.config.ts +75 -75
- package/vitest.config.ts +14 -14
- package/.claude/settings.local.json +0 -7
package/dist/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { ApplicationSentinelType } from '@abyss-project/monitor';
|
|
2
|
-
import { JSXElementConstructor } from 'react';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
type Props = {
|
|
5
4
|
value: ApplicationSentinelType;
|
|
6
|
-
classes: Record<string, string>;
|
|
7
5
|
};
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
6
|
+
declare const ApplicationSentinelTypeChip: FC<Props>;
|
|
7
|
+
export default ApplicationSentinelTypeChip;
|
package/dist/components/Chips/ApplicationWebhookTypeChip/ApplicationWebhookTypeChip.component.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { ApplicationWebhookScope } from '@abyss-project/monitor';
|
|
2
|
-
import { JSXElementConstructor } from 'react';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
type Props = {
|
|
5
4
|
value: ApplicationWebhookScope;
|
|
6
|
-
classes: Record<string, string>;
|
|
7
5
|
};
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
6
|
+
declare const WebhookTypeChip: FC<Props>;
|
|
7
|
+
export default WebhookTypeChip;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { LogLevel } from '@abyss-project/monitor';
|
|
2
|
-
import { JSXElementConstructor } from 'react';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
type Props = {
|
|
5
4
|
level: LogLevel;
|
|
6
|
-
classes: Record<string, string>;
|
|
7
5
|
};
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
6
|
+
declare const LogTypeChip: FC<Props>;
|
|
7
|
+
export default LogTypeChip;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { ProjectStatus } from '@abyss-project/main';
|
|
2
|
-
import { JSXElementConstructor } from 'react';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
type Props = {
|
|
5
4
|
status: ProjectStatus;
|
|
6
|
-
classes: Record<string, string>;
|
|
7
5
|
};
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
6
|
+
declare const ProjectStatusChip: FC<Props>;
|
|
7
|
+
export default ProjectStatusChip;
|
package/dist/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
3
|
-
/// <reference types="react" />
|
|
1
|
+
import { FC } from 'react';
|
|
4
2
|
type Props = {
|
|
5
3
|
responseCode: number | null;
|
|
6
|
-
classes: Record<string, string>;
|
|
7
4
|
};
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
5
|
+
declare const WebhookResponseCodeChip: FC<Props>;
|
|
6
|
+
export default WebhookResponseCodeChip;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { WebhookType } from '@abyss-project/storage';
|
|
2
|
-
import { JSXElementConstructor } from 'react';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
type Props = {
|
|
5
4
|
value: WebhookType;
|
|
6
|
-
classes: Record<string, string>;
|
|
7
5
|
};
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
6
|
+
declare const WebhookTypeChip: FC<Props>;
|
|
7
|
+
export default WebhookTypeChip;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { DatePickerProps } from '@mui/x-date-pickers';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const _default: JSXElementConstructor<Omit<DatePickerProps<Date>, "classes"> & StyledComponentProps<string> & object>;
|
|
5
|
-
export default _default;
|
|
3
|
+
declare const AbyssDatePicker: FC<DatePickerProps<Date>>;
|
|
4
|
+
export default AbyssDatePicker;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { DateTimePickerProps } from '@mui/x-date-pickers';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const _default: JSXElementConstructor<Omit<DateTimePickerProps<Date>, "classes"> & StyledComponentProps<string> & object>;
|
|
5
|
-
export default _default;
|
|
3
|
+
declare const AbyssDateTimePicker: FC<DateTimePickerProps<Date>>;
|
|
4
|
+
export default AbyssDateTimePicker;
|
|
@@ -4,10 +4,8 @@ type Props = {
|
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onCancel: () => Promise<void>;
|
|
6
6
|
user: UserSettingsUser;
|
|
7
|
-
resetApiKey: () => Promise<void>;
|
|
8
7
|
fetchMe: () => Promise<void>;
|
|
9
8
|
isLoading: boolean;
|
|
10
|
-
apiKey: string;
|
|
11
9
|
abyssUrl: string;
|
|
12
10
|
};
|
|
13
11
|
declare const UserSettings: FC<Props>;
|
|
@@ -22,10 +22,8 @@ type Props = {
|
|
|
22
22
|
isOpen: boolean;
|
|
23
23
|
onCancel: () => Promise<void>;
|
|
24
24
|
onSave: (values: UserSettingsValues) => Promise<void>;
|
|
25
|
-
resetApiKey: () => Promise<void>;
|
|
26
25
|
user: UserSettingsUser;
|
|
27
26
|
isLoading: boolean;
|
|
28
|
-
apiKey: string;
|
|
29
27
|
abyssUrl: string;
|
|
30
28
|
profileSuffix?: string;
|
|
31
29
|
deleteAccountSuffix?: string;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
2
2
|
import { PdfSource } from '../types';
|
|
3
|
+
type Decryptor = (bytes: Uint8Array, password: string) => Promise<Uint8Array>;
|
|
3
4
|
interface UsePdfDocumentResult {
|
|
4
5
|
pdfDoc: PDFDocumentProxy | null;
|
|
5
6
|
sourceBytes: Uint8Array | null;
|
|
6
7
|
pageCount: number;
|
|
7
8
|
loading: boolean;
|
|
8
9
|
error: Error | null;
|
|
10
|
+
needsPassword: boolean;
|
|
11
|
+
unlocking: boolean;
|
|
12
|
+
unlockFailed: boolean;
|
|
13
|
+
unlock: (password: string) => void;
|
|
9
14
|
}
|
|
10
|
-
export declare const usePdfDocument: (source: PdfSource | null) => UsePdfDocumentResult;
|
|
15
|
+
export declare const usePdfDocument: (source: PdfSource | null, decryptor?: Decryptor) => UsePdfDocumentResult;
|
|
11
16
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AcroFormField, EditorAction, PdfOperation, ToolKind } from '../types';
|
|
2
2
|
export declare const addOperation: (operation: PdfOperation) => EditorAction;
|
|
3
|
+
export declare const addOperations: (operations: PdfOperation[]) => EditorAction;
|
|
3
4
|
export declare const addOperationAllPages: (operation: PdfOperation, pageIndices: number[]) => EditorAction;
|
|
4
5
|
export declare const updateOperation: (opId: string, operation: PdfOperation) => EditorAction;
|
|
5
6
|
export declare const moveOperation: (opId: string, operation: PdfOperation) => EditorAction;
|
|
@@ -5,5 +5,9 @@ export interface InsertedPageRef {
|
|
|
5
5
|
uploadPageIndex: number;
|
|
6
6
|
}
|
|
7
7
|
export declare function computeInsertionTable(numPages: number, operations: PdfOperation[]): Map<number, InsertedPageRef>;
|
|
8
|
+
export declare function computeBlankPages(numPages: number, operations: PdfOperation[]): Map<number, {
|
|
9
|
+
widthPt: number;
|
|
10
|
+
heightPt: number;
|
|
11
|
+
}>;
|
|
8
12
|
export declare function computePageOrder(numPages: number, operations: PdfOperation[]): number[];
|
|
9
13
|
export declare function computeRotationMap(operations: PdfOperation[]): Map<number, number>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PdfOperation } from '../types';
|
|
2
|
+
export interface RedactRect {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
widthPt: number;
|
|
6
|
+
heightPt: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const hasRedactions: (operations: PdfOperation[]) => boolean;
|
|
9
|
+
export declare const collectRedactions: (operations: PdfOperation[]) => Map<number, RedactRect[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ShapeKind } from '../types';
|
|
3
|
+
interface ShapeToolProps {
|
|
4
|
+
mode: 'shape' | 'highlight';
|
|
5
|
+
shapeKind: ShapeKind;
|
|
6
|
+
onShapeKind: (k: ShapeKind) => void;
|
|
7
|
+
color: string;
|
|
8
|
+
onColorChange: (c: string) => void;
|
|
9
|
+
strokeWidth: number;
|
|
10
|
+
onStrokeWidthChange: (w: number) => void;
|
|
11
|
+
fill: string | null;
|
|
12
|
+
onFillChange: (c: string | null) => void;
|
|
13
|
+
highlightColor: string;
|
|
14
|
+
onHighlightColorChange: (c: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ShapeTool: React.FC<ShapeToolProps>;
|
|
17
|
+
export {};
|
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { TextFontFamily } from '../types';
|
|
3
|
+
interface TextToolProps {
|
|
4
|
+
color: string;
|
|
5
|
+
onColorChange: (c: string) => void;
|
|
6
|
+
size: number;
|
|
7
|
+
onSizeChange: (s: number) => void;
|
|
8
|
+
family: TextFontFamily;
|
|
9
|
+
onFamilyChange: (f: TextFontFamily) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const TextTool: React.FC<TextToolProps>;
|
|
12
|
+
export {};
|
|
@@ -19,6 +19,17 @@ interface ToolbarProps {
|
|
|
19
19
|
compact?: boolean;
|
|
20
20
|
sidebarOpen?: boolean;
|
|
21
21
|
onToggleSidebar?: () => void;
|
|
22
|
+
onAddBlankPage?: () => void;
|
|
23
|
+
onAddPageNumbers?: () => void;
|
|
24
|
+
onWatermark?: () => void;
|
|
25
|
+
onInsertImage?: () => void;
|
|
26
|
+
onInsertCloudImage?: () => void;
|
|
27
|
+
onExtractPages?: () => void;
|
|
28
|
+
onProtect?: () => void;
|
|
29
|
+
onCompress?: () => void;
|
|
30
|
+
securing?: boolean;
|
|
31
|
+
toolOptions?: React.ReactNode;
|
|
32
|
+
placementActive?: boolean;
|
|
22
33
|
}
|
|
23
34
|
export declare const Toolbar: React.FC<ToolbarProps>;
|
|
24
35
|
export {};
|
|
@@ -9,13 +9,19 @@ export declare enum PdfOperationType {
|
|
|
9
9
|
ANNOTATE_TEXT = "ANNOTATE_TEXT",
|
|
10
10
|
ANNOTATE_DRAW = "ANNOTATE_DRAW",
|
|
11
11
|
ANNOTATE_IMAGE = "ANNOTATE_IMAGE",
|
|
12
|
+
ANNOTATE_SHAPE = "ANNOTATE_SHAPE",
|
|
13
|
+
ANNOTATE_HIGHLIGHT = "ANNOTATE_HIGHLIGHT",
|
|
14
|
+
ANNOTATE_REDACT = "ANNOTATE_REDACT",
|
|
12
15
|
FILL_FIELD = "FILL_FIELD",
|
|
13
16
|
PAGE_REORDER = "PAGE_REORDER",
|
|
14
17
|
PAGE_DELETE = "PAGE_DELETE",
|
|
15
18
|
PAGE_ROTATE = "PAGE_ROTATE",
|
|
16
19
|
PAGE_INSERT_FROM_UPLOAD = "PAGE_INSERT_FROM_UPLOAD",
|
|
20
|
+
PAGE_INSERT_BLANK = "PAGE_INSERT_BLANK",
|
|
17
21
|
FLATTEN = "FLATTEN"
|
|
18
22
|
}
|
|
23
|
+
export type ShapeKind = 'rect' | 'ellipse' | 'line' | 'arrow';
|
|
24
|
+
export type TextFontFamily = 'sans' | 'serif' | 'mono';
|
|
19
25
|
export type PdfImageSource = {
|
|
20
26
|
kind: 'USER_ASSET';
|
|
21
27
|
assetId: string;
|
|
@@ -32,6 +38,9 @@ export type PdfOperation = {
|
|
|
32
38
|
text: string;
|
|
33
39
|
fontSize: number;
|
|
34
40
|
color: string;
|
|
41
|
+
fontFamily?: TextFontFamily;
|
|
42
|
+
opacity?: number;
|
|
43
|
+
rotationDeg?: number;
|
|
35
44
|
} | {
|
|
36
45
|
opId: string;
|
|
37
46
|
type: PdfOperationType.ANNOTATE_DRAW;
|
|
@@ -48,6 +57,35 @@ export type PdfOperation = {
|
|
|
48
57
|
widthPt: number;
|
|
49
58
|
heightPt: number;
|
|
50
59
|
source: PdfImageSource;
|
|
60
|
+
} | {
|
|
61
|
+
opId: string;
|
|
62
|
+
type: PdfOperationType.ANNOTATE_SHAPE;
|
|
63
|
+
pageIndex: number;
|
|
64
|
+
shape: ShapeKind;
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
x2: number;
|
|
68
|
+
y2: number;
|
|
69
|
+
color: string;
|
|
70
|
+
strokeWidth: number;
|
|
71
|
+
fill?: string | null;
|
|
72
|
+
} | {
|
|
73
|
+
opId: string;
|
|
74
|
+
type: PdfOperationType.ANNOTATE_HIGHLIGHT;
|
|
75
|
+
pageIndex: number;
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
widthPt: number;
|
|
79
|
+
heightPt: number;
|
|
80
|
+
color: string;
|
|
81
|
+
} | {
|
|
82
|
+
opId: string;
|
|
83
|
+
type: PdfOperationType.ANNOTATE_REDACT;
|
|
84
|
+
pageIndex: number;
|
|
85
|
+
x: number;
|
|
86
|
+
y: number;
|
|
87
|
+
widthPt: number;
|
|
88
|
+
heightPt: number;
|
|
51
89
|
} | {
|
|
52
90
|
opId: string;
|
|
53
91
|
type: PdfOperationType.FILL_FIELD;
|
|
@@ -72,6 +110,12 @@ export type PdfOperation = {
|
|
|
72
110
|
afterPageIndex: number;
|
|
73
111
|
uploadKey: string;
|
|
74
112
|
uploadPages: number[];
|
|
113
|
+
} | {
|
|
114
|
+
opId: string;
|
|
115
|
+
type: PdfOperationType.PAGE_INSERT_BLANK;
|
|
116
|
+
afterPageIndex: number;
|
|
117
|
+
widthPt: number;
|
|
118
|
+
heightPt: number;
|
|
75
119
|
} | {
|
|
76
120
|
opId: string;
|
|
77
121
|
type: PdfOperationType.FLATTEN;
|
|
@@ -101,7 +145,7 @@ export type PdfSource = {
|
|
|
101
145
|
fileName: string;
|
|
102
146
|
};
|
|
103
147
|
export type PdfEditorMode = 'anonymous-client' | 'anonymous-shared' | 'session-authenticated' | 'session-cloud-bridge';
|
|
104
|
-
export type ToolKind = 'select' | 'text' | 'draw' | 'signature' | 'eraser' | 'fill-fields';
|
|
148
|
+
export type ToolKind = 'select' | 'text' | 'draw' | 'shape' | 'highlight' | 'redact' | 'signature' | 'eraser' | 'fill-fields';
|
|
105
149
|
export interface AcroFormField {
|
|
106
150
|
name: string;
|
|
107
151
|
kind: 'text' | 'checkbox' | 'radio' | 'dropdown';
|
|
@@ -122,6 +166,9 @@ export interface EditorState {
|
|
|
122
166
|
export type EditorAction = {
|
|
123
167
|
type: 'ADD_OPERATION';
|
|
124
168
|
payload: PdfOperation;
|
|
169
|
+
} | {
|
|
170
|
+
type: 'ADD_OPERATIONS';
|
|
171
|
+
payload: PdfOperation[];
|
|
125
172
|
} | {
|
|
126
173
|
type: 'ADD_OPERATION_ALL_PAGES';
|
|
127
174
|
payload: {
|
|
@@ -205,6 +252,11 @@ export type SaveSignatureFn = (params: {
|
|
|
205
252
|
export type OperationsAdapter = (params: {
|
|
206
253
|
operations: PdfOperation[];
|
|
207
254
|
}) => Promise<void>;
|
|
255
|
+
export interface PdfSecurity {
|
|
256
|
+
setPassword?: (bytes: Uint8Array, password: string) => Promise<Uint8Array>;
|
|
257
|
+
removePassword?: (bytes: Uint8Array, password: string) => Promise<Uint8Array>;
|
|
258
|
+
compress?: (bytes: Uint8Array) => Promise<Uint8Array>;
|
|
259
|
+
}
|
|
208
260
|
export interface PdfEditorProps {
|
|
209
261
|
source: PdfSource;
|
|
210
262
|
mode: PdfEditorMode;
|
|
@@ -216,10 +268,10 @@ export interface PdfEditorProps {
|
|
|
216
268
|
onSaveSignature?: SaveSignatureFn;
|
|
217
269
|
onExport: (request: ExportRequest) => Promise<void>;
|
|
218
270
|
exportOptions: ExportOption[];
|
|
219
|
-
title?: string;
|
|
220
|
-
onTitleChange?: (title: string) => Promise<void>;
|
|
221
271
|
readOnly?: boolean;
|
|
222
272
|
cloudImport?: PdfEditorCloudImportProps;
|
|
223
273
|
manageAssetsUrl?: string;
|
|
224
274
|
onChangeSource?: () => void;
|
|
275
|
+
pdfSecurity?: PdfSecurity;
|
|
276
|
+
pickCloudImage?: () => Promise<string | null>;
|
|
225
277
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { PdfOperation, ToolKind, EditorAction } from '../types';
|
|
2
|
+
import { PdfOperation, ToolKind, EditorAction, ShapeKind, TextFontFamily } from '../types';
|
|
3
3
|
interface PageOverlayProps {
|
|
4
4
|
pageIndex: number;
|
|
5
5
|
displayIndex: number;
|
|
@@ -13,9 +13,14 @@ interface PageOverlayProps {
|
|
|
13
13
|
pendingApplyAllPages: boolean;
|
|
14
14
|
pageIndices: number[];
|
|
15
15
|
dispatch: React.Dispatch<EditorAction>;
|
|
16
|
-
textInput?: string;
|
|
17
16
|
drawColor?: string;
|
|
18
17
|
drawStrokeWidth?: number;
|
|
18
|
+
textColor?: string;
|
|
19
|
+
textSize?: number;
|
|
20
|
+
textFamily?: TextFontFamily;
|
|
21
|
+
shapeKind?: ShapeKind;
|
|
22
|
+
shapeFill?: string | null;
|
|
23
|
+
highlightColor?: string;
|
|
19
24
|
scale?: number;
|
|
20
25
|
rotation?: number;
|
|
21
26
|
}
|
|
@@ -7,6 +7,10 @@ interface PdfCanvasProps {
|
|
|
7
7
|
pdfDoc: PDFDocumentProxy;
|
|
8
8
|
uploadedDocs: Map<string, PDFDocumentProxy>;
|
|
9
9
|
insertionTable: Map<number, InsertedPageRef>;
|
|
10
|
+
blankPages?: Map<number, {
|
|
11
|
+
widthPt: number;
|
|
12
|
+
heightPt: number;
|
|
13
|
+
}>;
|
|
10
14
|
rotationMap?: Map<number, number>;
|
|
11
15
|
scale?: number;
|
|
12
16
|
activePageIndex: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ProjectCategory, ProjectLanguage } from '@abyss-project/spotlight';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
type Props = {
|
|
5
4
|
project: {
|
|
6
5
|
title: string;
|
|
@@ -16,7 +15,6 @@ type Props = {
|
|
|
16
15
|
isFollowed: boolean;
|
|
17
16
|
startCount: number;
|
|
18
17
|
viewCount: number;
|
|
19
|
-
classes: Record<string, string>;
|
|
20
18
|
};
|
|
21
|
-
declare const
|
|
22
|
-
export default
|
|
19
|
+
declare const ProjectCard: React.FC<Props>;
|
|
20
|
+
export default ProjectCard;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
3
2
|
type Props = {
|
|
4
3
|
abyssProjectId: string;
|
|
5
4
|
abyssProjectApplicationId: string;
|
|
6
5
|
setAbyssProjectId: (id: string) => void;
|
|
7
6
|
setAbyssProjectApplicationId: (id: string) => void;
|
|
8
7
|
getProjectPictureUrl: (id: string) => string;
|
|
9
|
-
classes: Record<string, string>;
|
|
10
8
|
};
|
|
11
|
-
declare const
|
|
12
|
-
export default
|
|
9
|
+
declare const ProjectLinkSelector: React.FC<Props>;
|
|
10
|
+
export default ProjectLinkSelector;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SupportTicketCategory, SupportTicketCategoryGroup } from '@abyss-project/main';
|
|
3
2
|
import { SupportCategoryChipProps } from './types';
|
|
4
3
|
export declare const getCategoryGroup: (category: SupportTicketCategory) => SupportTicketCategoryGroup;
|
|
5
4
|
export declare const getCategoryConfig: (category: SupportTicketCategory) => {
|
|
@@ -192,6 +192,7 @@ export interface SupportSidebarProps extends SupportCloudImportProps {
|
|
|
192
192
|
id: string;
|
|
193
193
|
name: string;
|
|
194
194
|
} | null;
|
|
195
|
+
onViewContext?: (contextType: string, contextId: string) => void;
|
|
195
196
|
}
|
|
196
197
|
export interface SupportTicketDetailProps extends SupportCloudImportProps {
|
|
197
198
|
ticket: ISupportTicket;
|
|
@@ -235,6 +236,7 @@ export interface SupportTicketDetailProps extends SupportCloudImportProps {
|
|
|
235
236
|
name: string;
|
|
236
237
|
} | null;
|
|
237
238
|
onUploadMessageAttachment?: (file: File) => void;
|
|
239
|
+
onViewContext?: (contextType: string, contextId: string) => void;
|
|
238
240
|
}
|
|
239
241
|
export interface SupportStatusBadgeProps {
|
|
240
242
|
status: SupportTicketStatus;
|
package/dist/cookie-consent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as a, C as n, a as i, R as C, V as t, d as r, f as k, r as c, e as A, u as l, b, w as d } from "./CookieConsentSettings.component-
|
|
1
|
+
import { A as s, c as a, C as n, a as i, R as C, V as t, d as r, f as k, r as c, e as A, u as l, b, w as d } from "./CookieConsentSettings.component-Dqbo9N8Y.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AbyssCookieConsentProvider,
|
|
4
4
|
a as COOKIE_NAME,
|