@arbidocs/blocks 0.4.157 → 0.4.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedNativeDocxComparison-S25BPUH5.cjs → ConnectedNativeDocxComparison-R6RU5TZE.cjs} +8 -7
- package/dist/{ConnectedNativeDocxComparison-S25BPUH5.cjs.map → ConnectedNativeDocxComparison-R6RU5TZE.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-2PLOOXSH.js → ConnectedNativeDocxComparison-XMZ5KLD4.js} +7 -6
- package/dist/{ConnectedNativeDocxComparison-2PLOOXSH.js.map → ConnectedNativeDocxComparison-XMZ5KLD4.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-YA4HWLY4.cjs → ConnectedNativeDocxEditor-LBATSM3M.cjs} +7 -6
- package/dist/{ConnectedNativeDocxEditor-YA4HWLY4.cjs.map → ConnectedNativeDocxEditor-LBATSM3M.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-JJAGMHZC.js → ConnectedNativeDocxEditor-NGUK2AX6.js} +5 -4
- package/dist/{ConnectedNativeDocxEditor-JJAGMHZC.js.map → ConnectedNativeDocxEditor-NGUK2AX6.js.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-EXYZAU4Y.cjs → ConnectedStreamedWordArtifact-CWFR6A37.cjs} +8 -7
- package/dist/ConnectedStreamedWordArtifact-CWFR6A37.cjs.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-YAAXY5KY.js → ConnectedStreamedWordArtifact-IXRJ7MUE.js} +7 -6
- package/dist/{ConnectedStreamedWordArtifact-YAAXY5KY.js.map → ConnectedStreamedWordArtifact-IXRJ7MUE.js.map} +1 -1
- package/dist/{NativeDocxEditor-M3I776GD.cjs → NativeDocxEditor-T2PJIZMU.cjs} +9 -7
- package/dist/{NativeDocxEditor-M3I776GD.cjs.map → NativeDocxEditor-T2PJIZMU.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-JBQMH3MP.js → NativeDocxEditor-TBTBD6TC.js} +5 -3
- package/dist/{NativeDocxEditor-JBQMH3MP.js.map → NativeDocxEditor-TBTBD6TC.js.map} +1 -1
- package/dist/{WorkspaceTableView-5OWX53R5.js → WorkspaceTableView-DWUE4VQF.js} +19 -9
- package/dist/WorkspaceTableView-DWUE4VQF.js.map +1 -0
- package/dist/{WorkspaceTableView-ZFMAYHUD.cjs → WorkspaceTableView-EYLEUZZT.cjs} +21 -11
- package/dist/WorkspaceTableView-EYLEUZZT.cjs.map +1 -0
- package/dist/{chunk-IJEISII2.cjs → chunk-2BHDRVVL.cjs} +17 -7
- package/dist/chunk-2BHDRVVL.cjs.map +1 -0
- package/dist/chunk-2R3GGNPA.js +151 -0
- package/dist/chunk-2R3GGNPA.js.map +1 -0
- package/dist/{chunk-F3EZDBDJ.js → chunk-3OCNUKGX.js} +4 -4
- package/dist/{chunk-F3EZDBDJ.js.map → chunk-3OCNUKGX.js.map} +1 -1
- package/dist/{chunk-D3WFIFRY.cjs → chunk-3VW7ZXQ6.cjs} +211 -5
- package/dist/chunk-3VW7ZXQ6.cjs.map +1 -0
- package/dist/{chunk-JSQEAPTC.cjs → chunk-4GITK3Q5.cjs} +398 -75
- package/dist/chunk-4GITK3Q5.cjs.map +1 -0
- package/dist/{chunk-2CWM2CFZ.js → chunk-7UENVUA6.js} +4 -4
- package/dist/{chunk-2CWM2CFZ.js.map → chunk-7UENVUA6.js.map} +1 -1
- package/dist/{chunk-EWCJXUBP.js → chunk-AVXRXPII.js} +3 -3
- package/dist/{chunk-EWCJXUBP.js.map → chunk-AVXRXPII.js.map} +1 -1
- package/dist/{chunk-7IRSCMNK.js → chunk-BGXWPVHR.js} +3 -3
- package/dist/{chunk-7IRSCMNK.js.map → chunk-BGXWPVHR.js.map} +1 -1
- package/dist/chunk-DAN7EJ4O.js +482 -0
- package/dist/chunk-DAN7EJ4O.js.map +1 -0
- package/dist/chunk-E4H5H2C3.cjs +18 -0
- package/dist/{chunk-OTU5KGQ6.cjs.map → chunk-E4H5H2C3.cjs.map} +1 -1
- package/dist/{chunk-VY4UFXTM.cjs → chunk-ETJFC6MO.cjs} +4 -4
- package/dist/{chunk-VY4UFXTM.cjs.map → chunk-ETJFC6MO.cjs.map} +1 -1
- package/dist/{chunk-TQIY2SVY.cjs → chunk-GFVIFXWT.cjs} +5 -5
- package/dist/{chunk-TQIY2SVY.cjs.map → chunk-GFVIFXWT.cjs.map} +1 -1
- package/dist/chunk-JPWPR6QU.cjs +485 -0
- package/dist/chunk-JPWPR6QU.cjs.map +1 -0
- package/dist/{chunk-KQYPP72K.js → chunk-JTJCCL2E.js} +212 -9
- package/dist/chunk-JTJCCL2E.js.map +1 -0
- package/dist/{chunk-PGOSIJ2I.js → chunk-KFMRBZQK.js} +15 -5
- package/dist/chunk-KFMRBZQK.js.map +1 -0
- package/dist/chunk-NMZI3K6R.cjs +159 -0
- package/dist/chunk-NMZI3K6R.cjs.map +1 -0
- package/dist/{chunk-53RCZPMR.cjs → chunk-P2YM67Y5.cjs} +5 -5
- package/dist/{chunk-53RCZPMR.cjs.map → chunk-P2YM67Y5.cjs.map} +1 -1
- package/dist/chunk-Q2XGM372.cjs +18 -0
- package/dist/{chunk-S74QMZVZ.cjs.map → chunk-Q2XGM372.cjs.map} +1 -1
- package/dist/{chunk-7HHYMDPE.js → chunk-RATEAOKT.js} +3 -3
- package/dist/{chunk-7HHYMDPE.js.map → chunk-RATEAOKT.js.map} +1 -1
- package/dist/{chunk-SN2GZ4ZM.cjs → chunk-TQUYWUEE.cjs} +10 -156
- package/dist/chunk-TQUYWUEE.cjs.map +1 -0
- package/dist/{chunk-ONTUMV74.js → chunk-XER3JLC7.js} +398 -78
- package/dist/chunk-XER3JLC7.js.map +1 -0
- package/dist/{chunk-HP2C4MD3.js → chunk-ZDOKJD44.js} +4 -143
- package/dist/chunk-ZDOKJD44.js.map +1 -0
- package/dist/connect/docx.cjs +11 -10
- package/dist/connect/docx.js +7 -6
- package/dist/connect/index.cjs +406 -384
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +69 -47
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +41 -20
- package/dist/connect/viewer.cjs.map +1 -1
- package/dist/connect/viewer.js +29 -8
- package/dist/connect/viewer.js.map +1 -1
- package/dist/connection/viewer/ViewerPdfPane.d.ts +7 -1
- package/dist/connection/workspace-list/ConnectedWorkspaceList.d.ts +4 -2
- package/dist/connection/workspace-list/WorkspaceCardsView.d.ts +3 -2
- package/dist/connection/workspace-list/WorkspaceTableView.d.ts +3 -2
- package/dist/connection/workspace-list/index.d.ts +1 -1
- package/dist/connection/workspace-list/useConnectedWorkspaceList.d.ts +19 -0
- package/dist/connection/workspace-list/workspaceTable.d.ts +3 -1
- package/dist/connection/workspace-settings/ConnectedWorkspaceSettings.d.ts +3 -1
- package/dist/document-tools/AdoptSignatureDialog.d.ts +39 -4
- package/dist/document-tools/PlaceMySignatureButton.d.ts +16 -0
- package/dist/document-tools/SavedSignatureSettings.d.ts +10 -0
- package/dist/document-tools/index.cjs +37 -22
- package/dist/document-tools/index.d.ts +2 -0
- package/dist/document-tools/index.js +5 -2
- package/dist/document-tools/viewer/AnnotatedPdfViewer.d.ts +10 -1
- package/dist/document-tools/viewer/SignatureRequestEditor.d.ts +7 -4
- package/dist/document-tools/viewer/index.cjs +184 -18
- package/dist/document-tools/viewer/index.cjs.map +1 -1
- package/dist/document-tools/viewer/index.js +184 -18
- package/dist/document-tools/viewer/index.js.map +1 -1
- package/dist/docx/NativeDocxEditor.d.ts +5 -0
- package/dist/docx/index.cjs +61 -47
- package/dist/docx/index.d.ts +1 -0
- package/dist/docx/index.js +5 -3
- package/dist/docx/signatures/SignatureFields.d.ts +50 -0
- package/dist/settings/index.cjs +183 -182
- package/dist/settings/index.js +2 -1
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +109 -16
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +84 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +84 -1
- package/node_modules/@arbidocs/coedit/dist/commands.js +99 -17
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/docx/styles.css +50 -0
- package/dist/ConnectedStreamedWordArtifact-EXYZAU4Y.cjs.map +0 -1
- package/dist/WorkspaceTableView-5OWX53R5.js.map +0 -1
- package/dist/WorkspaceTableView-ZFMAYHUD.cjs.map +0 -1
- package/dist/chunk-6MG62I5B.cjs +0 -272
- package/dist/chunk-6MG62I5B.cjs.map +0 -1
- package/dist/chunk-D3WFIFRY.cjs.map +0 -1
- package/dist/chunk-EQB3WELX.js +0 -269
- package/dist/chunk-EQB3WELX.js.map +0 -1
- package/dist/chunk-HP2C4MD3.js.map +0 -1
- package/dist/chunk-IJEISII2.cjs.map +0 -1
- package/dist/chunk-JSQEAPTC.cjs.map +0 -1
- package/dist/chunk-KQYPP72K.js.map +0 -1
- package/dist/chunk-ONTUMV74.js.map +0 -1
- package/dist/chunk-OTU5KGQ6.cjs +0 -18
- package/dist/chunk-PGOSIJ2I.js.map +0 -1
- package/dist/chunk-S74QMZVZ.cjs +0 -18
- package/dist/chunk-SN2GZ4ZM.cjs.map +0 -1
|
@@ -42,5 +42,11 @@ export interface ViewerPdfPaneProps {
|
|
|
42
42
|
markup: ReturnType<typeof useDocumentMarkup>;
|
|
43
43
|
pdfSnapshotNumber: number | undefined;
|
|
44
44
|
isSigned: boolean;
|
|
45
|
+
/** One's saved signature or initials to place as a picture stamp (PDF tab › My signature). */
|
|
46
|
+
placeMark?: {
|
|
47
|
+
image: string;
|
|
48
|
+
label: string;
|
|
49
|
+
key: number;
|
|
50
|
+
} | null;
|
|
45
51
|
}
|
|
46
|
-
export declare function ViewerPdfPane({ documentId, doc, pdfBlob, isPdfLoading, pdfError, onDownload, viewerProps, signatureFlow, onSignatureFlow, currentUserId, placingSignature, onPlacingDone, annotating, markup, pdfSnapshotNumber, isSigned, }: ViewerPdfPaneProps): import("react").JSX.Element;
|
|
52
|
+
export declare function ViewerPdfPane({ documentId, doc, pdfBlob, isPdfLoading, pdfError, onDownload, viewerProps, signatureFlow, onSignatureFlow, currentUserId, placingSignature, onPlacingDone, annotating, markup, pdfSnapshotNumber, isSigned, placeMark, }: ViewerPdfPaneProps): import("react").JSX.Element;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { type ReactNode } from 'react';
|
|
11
11
|
import type { GridState } from 'ag-grid-community';
|
|
12
12
|
import { type Tab } from '../../shell/TabHeader';
|
|
13
|
-
import { type WorkspaceListFilters, type WorkspaceListLabels } from './useConnectedWorkspaceList';
|
|
13
|
+
import { type WorkspaceItemStateOf, type WorkspaceListFilters, type WorkspaceListLabels } from './useConnectedWorkspaceList';
|
|
14
14
|
import type { RenderWorkspaceMember } from './workspaceTable';
|
|
15
15
|
export type WorkspaceListView = 'cards' | 'table';
|
|
16
16
|
/** The base tab's id. */
|
|
@@ -33,5 +33,7 @@ export interface ConnectedWorkspaceListProps {
|
|
|
33
33
|
onTabChange?: (tabId: string) => void;
|
|
34
34
|
children?: ReactNode;
|
|
35
35
|
labels?: Partial<WorkspaceListLabels>;
|
|
36
|
+
/** A workspace's host state (a status line; selecting it does something else than open it). */
|
|
37
|
+
workspaceState?: WorkspaceItemStateOf;
|
|
36
38
|
}
|
|
37
|
-
export declare function ConnectedWorkspaceList({ onCreateWorkspace, view: controlledView, onViewChange, filters, onFiltersChange, gridState, onGridStateChange, renderMember, extraTabs, activeTab, onTabChange, children, labels, }: ConnectedWorkspaceListProps): import("react").JSX.Element;
|
|
39
|
+
export declare function ConnectedWorkspaceList({ onCreateWorkspace, view: controlledView, onViewChange, filters, onFiltersChange, gridState, onGridStateChange, renderMember, extraTabs, activeTab, onTabChange, children, labels, workspaceState, }: ConnectedWorkspaceListProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type WorkspaceSummary } from '../../workspaces/WorkspaceCard';
|
|
2
2
|
import { type GroupedWorkspace } from '../../workspaces/workspace-groups';
|
|
3
|
-
import type { ConnectedWorkspaceListState } from './useConnectedWorkspaceList';
|
|
3
|
+
import type { ConnectedWorkspaceListState, WorkspaceItemStateOf } from './useConnectedWorkspaceList';
|
|
4
4
|
/** A workspace as its card shows it: summed counts, people only (owners first). */
|
|
5
5
|
export declare function toWorkspaceSummary(workspace: GroupedWorkspace, selfId: string | undefined): WorkspaceSummary;
|
|
6
6
|
export interface WorkspaceCardsViewProps {
|
|
@@ -11,5 +11,6 @@ export interface WorkspaceCardsViewProps {
|
|
|
11
11
|
onOpenProject: (projectId: string) => void;
|
|
12
12
|
onCreateWorkspace: (projectId?: string) => void;
|
|
13
13
|
createDisabledReason?: string;
|
|
14
|
+
workspaceState?: WorkspaceItemStateOf;
|
|
14
15
|
}
|
|
15
|
-
export declare function WorkspaceCardsView({ list, currentWorkspaceId, onOpenWorkspace, onOpenProject, onCreateWorkspace, createDisabledReason, }: WorkspaceCardsViewProps): import("react").JSX.Element;
|
|
16
|
+
export declare function WorkspaceCardsView({ list, currentWorkspaceId, onOpenWorkspace, onOpenProject, onCreateWorkspace, createDisabledReason, workspaceState, }: WorkspaceCardsViewProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GridState } from 'ag-grid-community';
|
|
2
2
|
import type { GroupedWorkspace } from '../../workspaces/workspace-groups';
|
|
3
|
-
import type { ConnectedWorkspaceListState } from './useConnectedWorkspaceList';
|
|
3
|
+
import type { ConnectedWorkspaceListState, WorkspaceItemStateOf } from './useConnectedWorkspaceList';
|
|
4
4
|
import { type RenderWorkspaceMember } from './workspaceTable';
|
|
5
5
|
export interface WorkspaceTableViewProps {
|
|
6
6
|
list: ConnectedWorkspaceListState;
|
|
@@ -9,5 +9,6 @@ export interface WorkspaceTableViewProps {
|
|
|
9
9
|
renderMember: RenderWorkspaceMember;
|
|
10
10
|
gridState?: GridState;
|
|
11
11
|
onGridStateChange?: (state: GridState) => void;
|
|
12
|
+
workspaceState?: WorkspaceItemStateOf;
|
|
12
13
|
}
|
|
13
|
-
export declare function WorkspaceTableView({ list, onOpenWorkspace, onOpenProject, renderMember, gridState, onGridStateChange, }: WorkspaceTableViewProps): import("react").JSX.Element;
|
|
14
|
+
export declare function WorkspaceTableView({ list, onOpenWorkspace, onOpenProject, renderMember, gridState, onGridStateChange, workspaceState, }: WorkspaceTableViewProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ConnectedWorkspaceList, WORKSPACES_TAB_ID, type ConnectedWorkspaceListProps, type WorkspaceListView, } from './ConnectedWorkspaceList';
|
|
2
|
-
export { useConnectedWorkspaceList, DEFAULT_WORKSPACE_LIST_LABELS, type ConnectedWorkspaceListState, type UseConnectedWorkspaceListOptions, type WorkspaceListFilters, type WorkspaceListLabels, } from './useConnectedWorkspaceList';
|
|
2
|
+
export { useConnectedWorkspaceList, DEFAULT_WORKSPACE_LIST_LABELS, type ConnectedWorkspaceListState, type UseConnectedWorkspaceListOptions, type WorkspaceItemState, type WorkspaceItemStateOf, type WorkspaceListFilters, type WorkspaceListLabels, } from './useConnectedWorkspaceList';
|
|
3
3
|
export { toWorkspaceSummary } from './WorkspaceCardsView';
|
|
4
4
|
export type { RenderWorkspaceMember } from './workspaceTable';
|
|
5
5
|
export { projectGroupBilling, type ProjectGroupBilling } from './projectBilling';
|
|
@@ -1,4 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The signed-in user's workspaces as the workspace list shows them: grouped by project (with the
|
|
3
|
+
* projects themselves for each group's plan and usage), filtered, the groups' collapsed state, the
|
|
4
|
+
* table's selection and its bulk delete. Opening a workspace and creating one are the host's.
|
|
5
|
+
*/
|
|
6
|
+
import { type ReactNode } from 'react';
|
|
1
7
|
import type { TriState } from '../../settings/TriStateFilterMenu';
|
|
8
|
+
import { type GroupedWorkspace } from '../../workspaces/workspace-groups';
|
|
9
|
+
/**
|
|
10
|
+
* A host's state for a workspace that is not simply opened (e.g. archived): a status line on its
|
|
11
|
+
* card and its table row, and what selecting it does instead of opening it.
|
|
12
|
+
*/
|
|
13
|
+
export interface WorkspaceItemState {
|
|
14
|
+
status?: ReactNode;
|
|
15
|
+
/** Replaces opening the workspace (its card then has no link). */
|
|
16
|
+
onSelect?: () => void;
|
|
17
|
+
/** The card's accessible name when `onSelect` replaces opening. */
|
|
18
|
+
selectLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
export type WorkspaceItemStateOf = (workspace: GroupedWorkspace) => WorkspaceItemState | undefined;
|
|
2
21
|
/** The persisted form of the filters: filter id → include / exclude (absent or null: off). */
|
|
3
22
|
export type WorkspaceListFilters = Record<string, TriState>;
|
|
4
23
|
export interface WorkspaceListLabels {
|
|
@@ -50,9 +50,11 @@ export interface ProjectHeadingContext {
|
|
|
50
50
|
* The table's columns. There is no Project column (the project is the heading above each group),
|
|
51
51
|
* and no column filters (they cannot mix with heading rows): the filter sits above the table.
|
|
52
52
|
*/
|
|
53
|
-
export declare function workspaceTableColumns({ selfId, renderMember, heading, }: {
|
|
53
|
+
export declare function workspaceTableColumns({ selfId, renderMember, workspaceStatus, heading, }: {
|
|
54
54
|
selfId: string | undefined;
|
|
55
55
|
renderMember: RenderWorkspaceMember;
|
|
56
|
+
/** A host's status line beside a workspace's name (e.g. Archived). */
|
|
57
|
+
workspaceStatus?: (workspace: GroupedWorkspace) => ReactNode;
|
|
56
58
|
heading: ProjectHeadingContext;
|
|
57
59
|
}): ColDef<WorkspaceTableRow>[];
|
|
58
60
|
export {};
|
|
@@ -41,11 +41,13 @@ export interface ConnectedWorkspaceSettingsProps {
|
|
|
41
41
|
children?: ReactNode;
|
|
42
42
|
/** Open the host's export/copy/move dialog (members only). */
|
|
43
43
|
onExport?: () => void;
|
|
44
|
+
/** More page-foot actions beside Export (members only), e.g. the host's Archive…. */
|
|
45
|
+
footerActions?: ReactNode;
|
|
44
46
|
/** Open the workspace's activity feed (from the bell menu). */
|
|
45
47
|
onOpenActivity?: () => void;
|
|
46
48
|
/** After the viewer left the workspace. */
|
|
47
49
|
onLeft?: () => void;
|
|
48
50
|
testId?: string;
|
|
49
51
|
}
|
|
50
|
-
export declare function ConnectedWorkspaceSettings({ workspaceId, project, projectLine, renderMember, membersGridState, onMembersGridStateChange, shareDialog, children, onExport, onOpenActivity, onLeft, testId, }: ConnectedWorkspaceSettingsProps): import("react").JSX.Element;
|
|
52
|
+
export declare function ConnectedWorkspaceSettings({ workspaceId, project, projectLine, renderMember, membersGridState, onMembersGridStateChange, shareDialog, children, onExport, footerActions, onOpenActivity, onLeft, testId, }: ConnectedWorkspaceSettingsProps): import("react").JSX.Element;
|
|
51
53
|
export {};
|
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Adopt a signature once, before applying it at each field: type it (the name in a signature
|
|
3
|
-
* face, as the signed PDF draws it), draw it, or upload an image of it
|
|
4
|
-
* or uploaded
|
|
3
|
+
* face, as the signed PDF draws it), draw it, or upload an image of it; initials likewise typed or
|
|
4
|
+
* drawn. A drawn or uploaded mark is handed on as a PNG (white made transparent); the server
|
|
5
|
+
* re-encodes it.
|
|
6
|
+
*
|
|
7
|
+
* The drawing pad spans the screen's width on a phone and is a generous box on a tablet or desktop.
|
|
8
|
+
* Its canvas is backed at the device's pixel ratio (crisp strokes on a retina screen), and it takes
|
|
9
|
+
* every touch for itself (`touch-action: none`): drawing with a finger never scrolls or zooms the
|
|
10
|
+
* page. Strokes are kept as points, so a resize (turning the phone) redraws them at the new size.
|
|
11
|
+
*
|
|
12
|
+
* With `onSave`, the person may also tick "Save to my account for future use": the signature and
|
|
13
|
+
* initials are then sealed to their own key and kept for next time (`saved` prefills the dialog).
|
|
14
|
+
* In `mode="save"` (account settings) the dialog only saves.
|
|
5
15
|
*/
|
|
6
16
|
import { type ReactElement } from 'react';
|
|
7
|
-
import { type AdoptedSignature } from '@arbidocs/react/document-tools';
|
|
17
|
+
import { type AdoptedSignature, type SavedSignature } from '@arbidocs/react/document-tools';
|
|
8
18
|
export interface AdoptedMark {
|
|
9
19
|
adopted: AdoptedSignature;
|
|
10
20
|
/** A data URL of the drawn/uploaded signature, for showing it at each field; null when typed. */
|
|
11
21
|
signatureUrl: string | null;
|
|
22
|
+
/** A data URL of the drawn initials; null when typed. */
|
|
23
|
+
initialsUrl?: string | null;
|
|
12
24
|
}
|
|
13
25
|
export interface AdoptSignatureDialogProps {
|
|
14
26
|
open: boolean;
|
|
15
27
|
onOpenChange: (open: boolean) => void;
|
|
16
28
|
defaultName: string;
|
|
17
29
|
onAdopt: (mark: AdoptedMark) => void;
|
|
30
|
+
/** The signature saved to the account: the dialog starts from it. */
|
|
31
|
+
saved?: SavedSignature | null;
|
|
32
|
+
/** Present: offer "Save to my account for future use" (and save when ticked). */
|
|
33
|
+
onSave?: (signature: SavedSignature) => Promise<void>;
|
|
34
|
+
/** `save`: account settings, the dialog only saves the signature (no signing). */
|
|
35
|
+
mode?: 'adopt' | 'save';
|
|
18
36
|
}
|
|
19
37
|
/** Typed signatures look like the PDF will: an italic serif in ink blue. */
|
|
20
38
|
export declare const TYPED_SIGNATURE_STYLE: {
|
|
@@ -22,4 +40,21 @@ export declare const TYPED_SIGNATURE_STYLE: {
|
|
|
22
40
|
readonly fontStyle: "italic";
|
|
23
41
|
readonly color: "#0d1a59";
|
|
24
42
|
};
|
|
25
|
-
export
|
|
43
|
+
export interface SignaturePadHandle {
|
|
44
|
+
isBlank: () => boolean;
|
|
45
|
+
toDataUrl: () => string | null;
|
|
46
|
+
clear: () => void;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A drawing pad: strokes in fractions of the pad, painted on a canvas at the device's pixel ratio.
|
|
50
|
+
* `onInk` fires when the first stroke lands or the pad is cleared.
|
|
51
|
+
*/
|
|
52
|
+
export declare const SignaturePad: import("react").ForwardRefExoticComponent<{
|
|
53
|
+
label: string;
|
|
54
|
+
className?: string;
|
|
55
|
+
onInk: (has: boolean) => void;
|
|
56
|
+
testId?: string;
|
|
57
|
+
} & import("react").RefAttributes<SignaturePadHandle>>;
|
|
58
|
+
/** A typed mark as a picture (transparent, ink blue, the signature face): what is saved for it. */
|
|
59
|
+
export declare function typedPng(text: string, height?: number): string;
|
|
60
|
+
export declare function AdoptSignatureDialog({ open, onOpenChange, defaultName, onAdopt, saved, onSave, mode, }: AdoptSignatureDialogProps): ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PDF tab › My signature: place one's own saved signature or initials on the page as a picture stamp
|
|
3
|
+
* in the markup layer (then drag and resize it like any stamp). Nothing saved yet: the adopt dialog
|
|
4
|
+
* opens first and saves it. An informal signature; verified signing is Request signatures. Needs a
|
|
5
|
+
* `<DocumentToolsProvider>` inside a React Query `QueryClientProvider`.
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactElement } from 'react';
|
|
8
|
+
export type PlacedMark = {
|
|
9
|
+
image: string;
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function PlaceMySignatureButton({ onPlace, compact, }: {
|
|
13
|
+
/** Arm the stamp tool with this picture: the next click on a page places it. */
|
|
14
|
+
onPlace: (mark: PlacedMark) => void;
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
}): ReactElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Account settings › Your signature: the signature and initials saved to the account (sealed with
|
|
3
|
+
* the user's own key), with Replace (the adopt dialog, saving over it) and Delete (removed from the
|
|
4
|
+
* account completely; what was already placed in documents or sealed in signed PDFs stays as it
|
|
5
|
+
* is). Needs a `<DocumentToolsProvider>` inside a React Query `QueryClientProvider`.
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactElement } from 'react';
|
|
8
|
+
export declare const DELETE_SAVED_SIGNATURE_TEXT: string;
|
|
9
|
+
export declare function SavedSignatureSettings(): ReactElement;
|
|
10
|
+
export default SavedSignatureSettings;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var chunk6MG62I5B_cjs = require('../chunk-6MG62I5B.cjs');
|
|
4
|
+
var chunk3VW7ZXQ6_cjs = require('../chunk-3VW7ZXQ6.cjs');
|
|
6
5
|
require('../chunk-UWIILWDI.cjs');
|
|
7
6
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
7
|
+
require('../chunk-NMZI3K6R.cjs');
|
|
8
|
+
var chunkJPWPR6QU_cjs = require('../chunk-JPWPR6QU.cjs');
|
|
9
|
+
require('../chunk-DWZXSPMB.cjs');
|
|
10
|
+
require('../chunk-MHVNT4J3.cjs');
|
|
8
11
|
require('../chunk-ULWRNGGE.cjs');
|
|
9
12
|
require('../chunk-DES3K4SD.cjs');
|
|
10
13
|
|
|
@@ -12,71 +15,83 @@ require('../chunk-DES3K4SD.cjs');
|
|
|
12
15
|
|
|
13
16
|
Object.defineProperty(exports, "AnnotateButton", {
|
|
14
17
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk3VW7ZXQ6_cjs.AnnotateButton; }
|
|
16
19
|
});
|
|
17
20
|
Object.defineProperty(exports, "DEFAULT_VERSION_SNAPSHOT_BAR_LABELS", {
|
|
18
21
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk3VW7ZXQ6_cjs.DEFAULT_VERSION_SNAPSHOT_BAR_LABELS; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "DELETE_SAVED_SIGNATURE_TEXT", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunk3VW7ZXQ6_cjs.DELETE_SAVED_SIGNATURE_TEXT; }
|
|
20
27
|
});
|
|
21
28
|
Object.defineProperty(exports, "DownloadMarkupButton", {
|
|
22
29
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk3VW7ZXQ6_cjs.DownloadMarkupButton; }
|
|
24
31
|
});
|
|
25
32
|
Object.defineProperty(exports, "MarkupNotices", {
|
|
26
33
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk3VW7ZXQ6_cjs.MarkupNotices; }
|
|
28
35
|
});
|
|
29
36
|
Object.defineProperty(exports, "MarkupViewNote", {
|
|
30
37
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk3VW7ZXQ6_cjs.MarkupViewNote; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "PlaceMySignatureButton", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunk3VW7ZXQ6_cjs.PlaceMySignatureButton; }
|
|
32
43
|
});
|
|
33
44
|
Object.defineProperty(exports, "RequestSignaturesButton", {
|
|
34
45
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk3VW7ZXQ6_cjs.RequestSignaturesButton; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "SavedSignatureSettings", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunk3VW7ZXQ6_cjs.SavedSignatureSettings; }
|
|
36
51
|
});
|
|
37
52
|
Object.defineProperty(exports, "ShowOriginalButton", {
|
|
38
53
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk3VW7ZXQ6_cjs.ShowOriginalButton; }
|
|
40
55
|
});
|
|
41
56
|
Object.defineProperty(exports, "SignButton", {
|
|
42
57
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk3VW7ZXQ6_cjs.SignButton; }
|
|
44
59
|
});
|
|
45
60
|
Object.defineProperty(exports, "SignatureCertificate", {
|
|
46
61
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk3VW7ZXQ6_cjs.SignatureCertificate; }
|
|
48
63
|
});
|
|
49
64
|
Object.defineProperty(exports, "SignatureRequestBanner", {
|
|
50
65
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk3VW7ZXQ6_cjs.SignatureRequestBanner; }
|
|
52
67
|
});
|
|
53
68
|
Object.defineProperty(exports, "SignatureStatus", {
|
|
54
69
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk3VW7ZXQ6_cjs.SignatureStatus; }
|
|
56
71
|
});
|
|
57
72
|
Object.defineProperty(exports, "SignedEditNote", {
|
|
58
73
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk3VW7ZXQ6_cjs.SignedEditNote; }
|
|
60
75
|
});
|
|
61
76
|
Object.defineProperty(exports, "VersionSnapshotBar", {
|
|
62
77
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk3VW7ZXQ6_cjs.VersionSnapshotBar; }
|
|
64
79
|
});
|
|
65
80
|
Object.defineProperty(exports, "formatSignedAt", {
|
|
66
81
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk3VW7ZXQ6_cjs.formatSignedAt; }
|
|
68
83
|
});
|
|
69
|
-
Object.defineProperty(exports, "
|
|
84
|
+
Object.defineProperty(exports, "SignDocumentDialog", {
|
|
70
85
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkJH6JTI76_cjs.SignDocumentDialog; }
|
|
72
87
|
});
|
|
73
|
-
Object.defineProperty(exports, "
|
|
88
|
+
Object.defineProperty(exports, "AdoptSignatureDialog", {
|
|
74
89
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkJPWPR6QU_cjs.AdoptSignatureDialog; }
|
|
76
91
|
});
|
|
77
|
-
Object.defineProperty(exports, "
|
|
92
|
+
Object.defineProperty(exports, "TYPED_SIGNATURE_STYLE", {
|
|
78
93
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkJPWPR6QU_cjs.TYPED_SIGNATURE_STYLE; }
|
|
80
95
|
});
|
|
81
96
|
//# sourceMappingURL=index.cjs.map
|
|
82
97
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -6,4 +6,6 @@ export { SignatureStatus, formatSignedAt, type SignatureStatusProps } from './Si
|
|
|
6
6
|
export { SignatureCertificate, type SignatureCertificateProps } from './SignatureCertificate';
|
|
7
7
|
export { DEFAULT_VERSION_SNAPSHOT_BAR_LABELS, VersionSnapshotBar, type VersionSnapshotBarLabels, type VersionSnapshotBarProps, } from './VersionSnapshotBar';
|
|
8
8
|
export { AdoptSignatureDialog, TYPED_SIGNATURE_STYLE, type AdoptSignatureDialogProps, type AdoptedMark, } from './AdoptSignatureDialog';
|
|
9
|
+
export { PlaceMySignatureButton, type PlacedMark } from './PlaceMySignatureButton';
|
|
10
|
+
export { SavedSignatureSettings, DELETE_SAVED_SIGNATURE_TEXT } from './SavedSignatureSettings';
|
|
9
11
|
export { SignatureRequestBanner, type SignatureRequestBannerProps } from './SignatureRequestBanner';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { AnnotateButton, DEFAULT_VERSION_SNAPSHOT_BAR_LABELS, DownloadMarkupButton, MarkupNotices, MarkupViewNote, RequestSignaturesButton, ShowOriginalButton, SignButton, SignatureCertificate, SignatureRequestBanner, SignatureStatus, SignedEditNote, VersionSnapshotBar, formatSignedAt } from '../chunk-
|
|
3
|
-
export { AdoptSignatureDialog, TYPED_SIGNATURE_STYLE } from '../chunk-EQB3WELX.js';
|
|
2
|
+
export { AnnotateButton, DEFAULT_VERSION_SNAPSHOT_BAR_LABELS, DELETE_SAVED_SIGNATURE_TEXT, DownloadMarkupButton, MarkupNotices, MarkupViewNote, PlaceMySignatureButton, RequestSignaturesButton, SavedSignatureSettings, ShowOriginalButton, SignButton, SignatureCertificate, SignatureRequestBanner, SignatureStatus, SignedEditNote, VersionSnapshotBar, formatSignedAt } from '../chunk-JTJCCL2E.js';
|
|
4
3
|
import '../chunk-6HKLTYNN.js';
|
|
5
4
|
export { SignDocumentDialog } from '../chunk-2YOVK524.js';
|
|
5
|
+
import '../chunk-2R3GGNPA.js';
|
|
6
|
+
export { AdoptSignatureDialog, TYPED_SIGNATURE_STYLE } from '../chunk-DAN7EJ4O.js';
|
|
7
|
+
import '../chunk-VHJHY7TT.js';
|
|
8
|
+
import '../chunk-7F6CBP3Z.js';
|
|
6
9
|
import '../chunk-TX2ZICS7.js';
|
|
7
10
|
import '../chunk-VUNV25KB.js';
|
|
8
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -49,6 +49,15 @@ export interface AnnotatedPdfViewerProps extends Omit<PdfViewerProps, 'file' | '
|
|
|
49
49
|
* "Download with markup" (they are never written into its PDF).
|
|
50
50
|
*/
|
|
51
51
|
signed?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* One's saved signature or initials to place (PDF tab › My signature): arms the stamp tool with
|
|
54
|
+
* the picture; the next click on a page places it. A new `key` arms it again.
|
|
55
|
+
*/
|
|
56
|
+
placeStamp?: {
|
|
57
|
+
image: string;
|
|
58
|
+
label: string;
|
|
59
|
+
key: number;
|
|
60
|
+
} | null;
|
|
52
61
|
}
|
|
53
|
-
export declare function AnnotatedPdfViewer({ file, documentId, version, fileName, shared, folder, editing, onMarkupChange, store: storeOverride, viewer: PdfViewer, signed, ...viewerProps }: AnnotatedPdfViewerProps): import("react").JSX.Element;
|
|
62
|
+
export declare function AnnotatedPdfViewer({ file, documentId, version, fileName, shared, folder, editing, onMarkupChange, store: storeOverride, viewer: PdfViewer, signed, placeStamp, ...viewerProps }: AnnotatedPdfViewerProps): import("react").JSX.Element;
|
|
54
63
|
export default AnnotatedPdfViewer;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Prepare a document for signature: add the signers, then place each field (signature, initials,
|
|
3
3
|
* date signed, name) where it goes on the PDF of the version shown, for the signer it is for.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* A Word document's own signature fields (Insert › Signature field) are placed on opening, each
|
|
5
|
+
* for the signer it names. "Find signature blocks" proposes fields from the document's execution
|
|
6
|
+
* blocks ("Director", "Witness name", "[Signature]", "Date:"); the author assigns a signer per
|
|
7
|
+
* block. A signer is a workspace member or anyone by email: someone not in the workspace is
|
|
8
|
+
* invited (as a guest) when it is sent, and signs once they join. Save it as a draft or send it:
|
|
9
|
+
* each signer is notified and walked through their fields. Needs a `<DocumentToolsProvider>`
|
|
10
|
+
* inside a React Query `QueryClientProvider`.
|
|
8
11
|
*/
|
|
9
12
|
import { type ReactElement } from 'react';
|
|
10
13
|
import { type SignatureRequest } from '@arbidocs/react/document-tools';
|