@embedpdf/viewer-chrome 3.0.0-next.14 → 3.0.0-next.16
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 +175 -132
- package/dist/annotation-fonts-DWjVOTP0.js +80 -0
- package/dist/annotation-fonts-DWjVOTP0.js.map +1 -0
- package/dist/annotation-fonts-dpfVkhnq.cjs +91 -0
- package/dist/annotation-fonts-dpfVkhnq.cjs.map +1 -0
- package/dist/annotation-style-B3XKAyZ-.cjs +879 -0
- package/dist/annotation-style-B3XKAyZ-.cjs.map +1 -0
- package/dist/annotation-style-CXF3X47Z.js +879 -0
- package/dist/annotation-style-CXF3X47Z.js.map +1 -0
- package/dist/ar-B132r9bo.cjs +659 -0
- package/dist/ar-B132r9bo.cjs.map +1 -0
- package/dist/ar-BLWFJoA_.js +659 -0
- package/dist/ar-BLWFJoA_.js.map +1 -0
- package/dist/attachments-panel-Cxln8xos.cjs +217 -0
- package/dist/attachments-panel-Cxln8xos.cjs.map +1 -0
- package/dist/attachments-panel-H1ucRbwo.js +217 -0
- package/dist/attachments-panel-H1ucRbwo.js.map +1 -0
- package/dist/chrome.cjs +399 -242
- package/dist/chrome.cjs.map +1 -1
- package/dist/chrome.d.cts +5 -35
- package/dist/chrome.d.ts +5 -35
- package/dist/chrome.js +398 -239
- package/dist/chrome.js.map +1 -1
- package/dist/commands-BkgLP3Om.js +1348 -0
- package/dist/commands-BkgLP3Om.js.map +1 -0
- package/dist/commands-DL1gjZt7.cjs +1473 -0
- package/dist/commands-DL1gjZt7.cjs.map +1 -0
- package/dist/commands.cjs +13 -649
- package/dist/commands.d.cts +30 -3
- package/dist/commands.d.ts +30 -3
- package/dist/commands.js +2 -647
- package/dist/comments-panel-BsnWedTh.cjs +514 -0
- package/dist/comments-panel-BsnWedTh.cjs.map +1 -0
- package/dist/comments-panel-D7Eadws9.js +514 -0
- package/dist/comments-panel-D7Eadws9.js.map +1 -0
- package/dist/de-7_MvFWzN.cjs +658 -0
- package/dist/de-7_MvFWzN.cjs.map +1 -0
- package/dist/de-BUhwc9-x.js +658 -0
- package/dist/de-BUhwc9-x.js.map +1 -0
- package/dist/dialog-BIb373cg.js +55 -0
- package/dist/dialog-BIb373cg.js.map +1 -0
- package/dist/dialog-CngKTnAM.cjs +60 -0
- package/dist/dialog-CngKTnAM.cjs.map +1 -0
- package/dist/es-DgYj-1L3.cjs +658 -0
- package/dist/es-DgYj-1L3.cjs.map +1 -0
- package/dist/es-DoXTqFoO.js +658 -0
- package/dist/es-DoXTqFoO.js.map +1 -0
- package/dist/form-design-panel-CgV_5YWC.js +418 -0
- package/dist/form-design-panel-CgV_5YWC.js.map +1 -0
- package/dist/form-design-panel-D0FdmWXW.cjs +418 -0
- package/dist/form-design-panel-D0FdmWXW.cjs.map +1 -0
- package/dist/fr-B-8NDhBA.js +658 -0
- package/dist/fr-B-8NDhBA.js.map +1 -0
- package/dist/fr-C856dmQJ.cjs +658 -0
- package/dist/fr-C856dmQJ.cjs.map +1 -0
- package/dist/he-BFTeNc4t.cjs +659 -0
- package/dist/he-BFTeNc4t.cjs.map +1 -0
- package/dist/he-Dlh0fNXM.js +659 -0
- package/dist/he-Dlh0fNXM.js.map +1 -0
- package/dist/icons-1UfLUZ_y.cjs +1029 -0
- package/dist/icons-1UfLUZ_y.cjs.map +1 -0
- package/dist/icons-7dB0Y1ct.js +875 -0
- package/dist/icons-7dB0Y1ct.js.map +1 -0
- package/dist/index.cjs +3651 -5447
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +646 -144
- package/dist/index.d.ts +646 -144
- package/dist/index.js +3618 -5368
- package/dist/index.js.map +1 -1
- package/dist/it-Bef-2Yxq.cjs +658 -0
- package/dist/it-Bef-2Yxq.cjs.map +1 -0
- package/dist/it-BkirG7ol.js +658 -0
- package/dist/it-BkirG7ol.js.map +1 -0
- package/dist/ja-CGEjCE-s.js +658 -0
- package/dist/ja-CGEjCE-s.js.map +1 -0
- package/dist/ja-DNw2zqSD.cjs +658 -0
- package/dist/ja-DNw2zqSD.cjs.map +1 -0
- package/dist/ko-CTkl5vMh.js +658 -0
- package/dist/ko-CTkl5vMh.js.map +1 -0
- package/dist/ko-YHzeBqP6.cjs +658 -0
- package/dist/ko-YHzeBqP6.cjs.map +1 -0
- package/dist/labels-BiM9wp9K.cjs +21 -0
- package/dist/labels-BiM9wp9K.cjs.map +1 -0
- package/dist/labels-C6_i87Oj.js +16 -0
- package/dist/labels-C6_i87Oj.js.map +1 -0
- package/dist/link-editor-CAS7MZM2.cjs +125 -0
- package/dist/link-editor-CAS7MZM2.cjs.map +1 -0
- package/dist/link-editor-CkwtqRvb.js +125 -0
- package/dist/link-editor-CkwtqRvb.js.map +1 -0
- package/dist/measurement-CQdbnIrn.js +325 -0
- package/dist/measurement-CQdbnIrn.js.map +1 -0
- package/dist/measurement-Cxv1Ahxx.cjs +326 -0
- package/dist/measurement-Cxv1Ahxx.cjs.map +1 -0
- package/dist/nl-BjkbaLq3.cjs +658 -0
- package/dist/nl-BjkbaLq3.cjs.map +1 -0
- package/dist/nl-Dya4sR8_.js +658 -0
- package/dist/nl-Dya4sR8_.js.map +1 -0
- package/dist/outline-panel-BpGtBdj0.cjs +707 -0
- package/dist/outline-panel-BpGtBdj0.cjs.map +1 -0
- package/dist/outline-panel-DO5_REYw.js +707 -0
- package/dist/outline-panel-DO5_REYw.js.map +1 -0
- package/dist/outline-properties-BCa2cc0t.js +330 -0
- package/dist/outline-properties-BCa2cc0t.js.map +1 -0
- package/dist/outline-properties-DT3FIxCw.cjs +330 -0
- package/dist/outline-properties-DT3FIxCw.cjs.map +1 -0
- package/dist/pl-CKKdVnpZ.cjs +658 -0
- package/dist/pl-CKKdVnpZ.cjs.map +1 -0
- package/dist/pl-DA9b5NVg.js +658 -0
- package/dist/pl-DA9b5NVg.js.map +1 -0
- package/dist/print-dialog-BqIrHCBh.cjs +276 -0
- package/dist/print-dialog-BqIrHCBh.cjs.map +1 -0
- package/dist/print-dialog-DvcI2m2_.js +276 -0
- package/dist/print-dialog-DvcI2m2_.js.map +1 -0
- package/dist/pt-DLcszlzi.cjs +658 -0
- package/dist/pt-DLcszlzi.cjs.map +1 -0
- package/dist/pt-Nm8yyjbX.js +658 -0
- package/dist/pt-Nm8yyjbX.js.map +1 -0
- package/dist/redact-confirm-C6EiK8yN.cjs +83 -0
- package/dist/redact-confirm-C6EiK8yN.cjs.map +1 -0
- package/dist/redact-confirm-CKuv9iN_.js +83 -0
- package/dist/redact-confirm-CKuv9iN_.js.map +1 -0
- package/dist/redaction-panel-CgNZ-pQk.js +96 -0
- package/dist/redaction-panel-CgNZ-pQk.js.map +1 -0
- package/dist/redaction-panel-ZhX0dlMi.cjs +96 -0
- package/dist/redaction-panel-ZhX0dlMi.cjs.map +1 -0
- package/dist/search-panel-BE4xzWlm.js +249 -0
- package/dist/search-panel-BE4xzWlm.js.map +1 -0
- package/dist/search-panel-wcbTNG1z.cjs +249 -0
- package/dist/search-panel-wcbTNG1z.cjs.map +1 -0
- package/dist/sheet-DTBFiwde.cjs +461 -0
- package/dist/sheet-DTBFiwde.cjs.map +1 -0
- package/dist/sheet-DyjKfAq0.js +378 -0
- package/dist/sheet-DyjKfAq0.js.map +1 -0
- package/dist/sign-dialog-D5WGx-Yn.cjs +155 -0
- package/dist/sign-dialog-D5WGx-Yn.cjs.map +1 -0
- package/dist/sign-dialog-DerNe8qT.js +155 -0
- package/dist/sign-dialog-DerNe8qT.js.map +1 -0
- package/dist/signature-inspector-Bz6TAfZM.cjs +160 -0
- package/dist/signature-inspector-Bz6TAfZM.cjs.map +1 -0
- package/dist/signature-inspector-CsGr9EBk.js +160 -0
- package/dist/signature-inspector-CsGr9EBk.js.map +1 -0
- package/dist/signature-maker-D_YfBXLn.cjs +393 -0
- package/dist/signature-maker-D_YfBXLn.cjs.map +1 -0
- package/dist/signature-maker-Dnth4rV4.js +393 -0
- package/dist/signature-maker-Dnth4rV4.js.map +1 -0
- package/dist/signatures-panel-Ci_LaI1C.cjs +294 -0
- package/dist/signatures-panel-Ci_LaI1C.cjs.map +1 -0
- package/dist/signatures-panel-DZ9ywrjz.js +294 -0
- package/dist/signatures-panel-DZ9ywrjz.js.map +1 -0
- package/dist/stamp-store-BHvRs-Do.cjs +147 -0
- package/dist/stamp-store-BHvRs-Do.cjs.map +1 -0
- package/dist/stamp-store-WuF-L3Jj.js +112 -0
- package/dist/stamp-store-WuF-L3Jj.js.map +1 -0
- package/dist/stamps-panel-BrczStaz.js +225 -0
- package/dist/stamps-panel-BrczStaz.js.map +1 -0
- package/dist/stamps-panel-Cv9nJBwx.cjs +225 -0
- package/dist/stamps-panel-Cv9nJBwx.cjs.map +1 -0
- package/dist/theme-Be0OZokZ.js +97 -0
- package/dist/theme-Be0OZokZ.js.map +1 -0
- package/dist/theme-FR26JI3r.cjs +126 -0
- package/dist/theme-FR26JI3r.cjs.map +1 -0
- package/dist/toolbar-DF361xWY.js +1565 -0
- package/dist/toolbar-DF361xWY.js.map +1 -0
- package/dist/toolbar-ddvpsvTb.cjs +1660 -0
- package/dist/toolbar-ddvpsvTb.cjs.map +1 -0
- package/dist/zh-cn-BMPPkLpL.js +658 -0
- package/dist/zh-cn-BMPPkLpL.js.map +1 -0
- package/dist/zh-cn-CZOO3p4H.cjs +658 -0
- package/dist/zh-cn-CZOO3p4H.cjs.map +1 -0
- package/package.json +6 -4
- package/src/styles.css +161 -89
- package/dist/commands.cjs.map +0 -1
- package/dist/commands.js.map +0 -1
- package/dist/es-BXLlBo2b.cjs +0 -321
- package/dist/es-BXLlBo2b.cjs.map +0 -1
- package/dist/es-CLgTsFDS.js +0 -321
- package/dist/es-CLgTsFDS.js.map +0 -1
package/dist/commands.d.cts
CHANGED
|
@@ -1,13 +1,34 @@
|
|
|
1
|
+
import { AnnotationToolInput } from "@embedpdf/react/annotation";
|
|
1
2
|
import { CommandDef } from "@embedpdf/react/commands";
|
|
2
3
|
//#region src/config/commands.d.ts
|
|
4
|
+
type Ctx = Parameters<NonNullable<CommandDef['run']>>[0];
|
|
5
|
+
/** The dialog the Go to Page command opens without a page to go to (ui/go-to-page.tsx). */
|
|
6
|
+
declare const GO_TO_PAGE_DIALOG = "go-to-page";
|
|
7
|
+
/** The keyboard shortcuts sheet, which `?` opens (ui/shortcuts-sheet.tsx). */
|
|
8
|
+
declare const SHORTCUTS_DIALOG = "shortcuts";
|
|
9
|
+
/** The confirmation before marked areas are removed for good (ui/redact-confirm.tsx). */
|
|
10
|
+
declare const REDACT_CONFIRM_DIALOG = "redact-confirm";
|
|
11
|
+
/** The Print dialog: which pages, and whether annotations print (ui/print-dialog.tsx). */
|
|
12
|
+
declare const PRINT_DIALOG = "print";
|
|
13
|
+
/** The form designer's sidebar (ui/form-design-panel.tsx), which `form:design` opens. */
|
|
14
|
+
declare const FORM_DESIGN_PANEL = "form-design";
|
|
15
|
+
/** Form design's resting tool, the form plugin's: widgets select, move and resize there. */
|
|
16
|
+
declare const FORM_DESIGN_TOOL = "form-edit";
|
|
17
|
+
/**
|
|
18
|
+
* Whether a tool designs a form: design's resting tool, or a field tool. Neither fills, so the
|
|
19
|
+
* form lends its widgets to be selected, moved and resized.
|
|
20
|
+
*/
|
|
21
|
+
declare const isFormDesignTool: (tool: string | null | undefined) => boolean;
|
|
22
|
+
/** Whether a form is being designed: the active tool designs it. */
|
|
23
|
+
declare const isDesigningForm: (commandContext: Pick<Ctx, "tryGet">) => boolean;
|
|
3
24
|
type ColorKey = 'color' | 'interiorColor' | 'fontColor';
|
|
4
25
|
interface ToolAccentDefinition {
|
|
5
26
|
primary: ColorKey;
|
|
6
27
|
secondary?: ColorKey;
|
|
7
28
|
}
|
|
8
29
|
/**
|
|
9
|
-
* toolId → the
|
|
10
|
-
* as a side effect of the `tool()` command definitions below —
|
|
30
|
+
* toolId → the same icon + accent definition its toolbar button uses, recorded
|
|
31
|
+
* as a side effect of the `tool()` command definitions below — one source of
|
|
11
32
|
* truth, so the tool cursor (ui/tool-cursor.tsx) and the button can never
|
|
12
33
|
* drift apart.
|
|
13
34
|
*/
|
|
@@ -17,6 +38,12 @@ declare const TOOL_ICONS: Record<string, {
|
|
|
17
38
|
}>;
|
|
18
39
|
declare const defaultCommands: CommandDef[];
|
|
19
40
|
declare const MODE_SURFACES: readonly ["mode:annotate", "mode:shapes", "mode:insert", "mode:form", "mode:redact", "mode:measure"];
|
|
41
|
+
/**
|
|
42
|
+
* A `tool:<id>` command for each tool of yours (`plugins.annotation.tools`) that no command has
|
|
43
|
+
* (`isTaken` says which ids do): labelled by its `meta.label`, else its id; drawn with its
|
|
44
|
+
* `meta.icon`, else the icon of the tool it extends; in that tool's feature, else `annotations`.
|
|
45
|
+
*/
|
|
46
|
+
declare function toolCommandsFor(tools: readonly AnnotationToolInput[], isTaken: (id: string) => boolean): CommandDef[];
|
|
20
47
|
//#endregion
|
|
21
|
-
export { MODE_SURFACES, TOOL_ICONS, ToolAccentDefinition, defaultCommands };
|
|
48
|
+
export { FORM_DESIGN_PANEL, FORM_DESIGN_TOOL, GO_TO_PAGE_DIALOG, MODE_SURFACES, PRINT_DIALOG, REDACT_CONFIRM_DIALOG, SHORTCUTS_DIALOG, TOOL_ICONS, ToolAccentDefinition, defaultCommands, isDesigningForm, isFormDesignTool, toolCommandsFor };
|
|
22
49
|
//# sourceMappingURL=commands.d.cts.map
|
package/dist/commands.d.ts
CHANGED
|
@@ -1,13 +1,34 @@
|
|
|
1
|
+
import { AnnotationToolInput } from "@embedpdf/react/annotation";
|
|
1
2
|
import { CommandDef } from "@embedpdf/react/commands";
|
|
2
3
|
//#region src/config/commands.d.ts
|
|
4
|
+
type Ctx = Parameters<NonNullable<CommandDef['run']>>[0];
|
|
5
|
+
/** The dialog the Go to Page command opens without a page to go to (ui/go-to-page.tsx). */
|
|
6
|
+
declare const GO_TO_PAGE_DIALOG = "go-to-page";
|
|
7
|
+
/** The keyboard shortcuts sheet, which `?` opens (ui/shortcuts-sheet.tsx). */
|
|
8
|
+
declare const SHORTCUTS_DIALOG = "shortcuts";
|
|
9
|
+
/** The confirmation before marked areas are removed for good (ui/redact-confirm.tsx). */
|
|
10
|
+
declare const REDACT_CONFIRM_DIALOG = "redact-confirm";
|
|
11
|
+
/** The Print dialog: which pages, and whether annotations print (ui/print-dialog.tsx). */
|
|
12
|
+
declare const PRINT_DIALOG = "print";
|
|
13
|
+
/** The form designer's sidebar (ui/form-design-panel.tsx), which `form:design` opens. */
|
|
14
|
+
declare const FORM_DESIGN_PANEL = "form-design";
|
|
15
|
+
/** Form design's resting tool, the form plugin's: widgets select, move and resize there. */
|
|
16
|
+
declare const FORM_DESIGN_TOOL = "form-edit";
|
|
17
|
+
/**
|
|
18
|
+
* Whether a tool designs a form: design's resting tool, or a field tool. Neither fills, so the
|
|
19
|
+
* form lends its widgets to be selected, moved and resized.
|
|
20
|
+
*/
|
|
21
|
+
declare const isFormDesignTool: (tool: string | null | undefined) => boolean;
|
|
22
|
+
/** Whether a form is being designed: the active tool designs it. */
|
|
23
|
+
declare const isDesigningForm: (commandContext: Pick<Ctx, "tryGet">) => boolean;
|
|
3
24
|
type ColorKey = 'color' | 'interiorColor' | 'fontColor';
|
|
4
25
|
interface ToolAccentDefinition {
|
|
5
26
|
primary: ColorKey;
|
|
6
27
|
secondary?: ColorKey;
|
|
7
28
|
}
|
|
8
29
|
/**
|
|
9
|
-
* toolId → the
|
|
10
|
-
* as a side effect of the `tool()` command definitions below —
|
|
30
|
+
* toolId → the same icon + accent definition its toolbar button uses, recorded
|
|
31
|
+
* as a side effect of the `tool()` command definitions below — one source of
|
|
11
32
|
* truth, so the tool cursor (ui/tool-cursor.tsx) and the button can never
|
|
12
33
|
* drift apart.
|
|
13
34
|
*/
|
|
@@ -17,6 +38,12 @@ declare const TOOL_ICONS: Record<string, {
|
|
|
17
38
|
}>;
|
|
18
39
|
declare const defaultCommands: CommandDef[];
|
|
19
40
|
declare const MODE_SURFACES: readonly ["mode:annotate", "mode:shapes", "mode:insert", "mode:form", "mode:redact", "mode:measure"];
|
|
41
|
+
/**
|
|
42
|
+
* A `tool:<id>` command for each tool of yours (`plugins.annotation.tools`) that no command has
|
|
43
|
+
* (`isTaken` says which ids do): labelled by its `meta.label`, else its id; drawn with its
|
|
44
|
+
* `meta.icon`, else the icon of the tool it extends; in that tool's feature, else `annotations`.
|
|
45
|
+
*/
|
|
46
|
+
declare function toolCommandsFor(tools: readonly AnnotationToolInput[], isTaken: (id: string) => boolean): CommandDef[];
|
|
20
47
|
//#endregion
|
|
21
|
-
export { MODE_SURFACES, TOOL_ICONS, ToolAccentDefinition, defaultCommands };
|
|
48
|
+
export { FORM_DESIGN_PANEL, FORM_DESIGN_TOOL, GO_TO_PAGE_DIALOG, MODE_SURFACES, PRINT_DIALOG, REDACT_CONFIRM_DIALOG, SHORTCUTS_DIALOG, TOOL_ICONS, ToolAccentDefinition, defaultCommands, isDesigningForm, isFormDesignTool, toolCommandsFor };
|
|
22
49
|
//# sourceMappingURL=commands.d.ts.map
|