@embedpdf/snippet 2.1.2 → 2.3.0

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.
Files changed (79) hide show
  1. package/dist/{browser-awZxztMA-MZYHZ0lP.js → browser-awZxztMA-RDxqV2Sx.js} +1 -1
  2. package/dist/components/annotation-sidebar/dynamic-sidebar.d.ts +14 -0
  3. package/dist/components/annotation-sidebar/dynamic-sidebar.d.ts.map +1 -0
  4. package/dist/components/annotation-sidebar/property-schema.d.ts +41 -0
  5. package/dist/components/annotation-sidebar/property-schema.d.ts.map +1 -0
  6. package/dist/components/annotation-sidebar/property-sections.d.ts +12 -0
  7. package/dist/components/annotation-sidebar/property-sections.d.ts.map +1 -0
  8. package/dist/components/annotation-sidebar.d.ts.map +1 -1
  9. package/dist/components/app.d.ts +13 -1
  10. package/dist/components/app.d.ts.map +1 -1
  11. package/dist/components/comment-sidebar/annotation-card.d.ts +2 -1
  12. package/dist/components/comment-sidebar/annotation-card.d.ts.map +1 -1
  13. package/dist/components/comment-sidebar/comment.d.ts +2 -1
  14. package/dist/components/comment-sidebar/comment.d.ts.map +1 -1
  15. package/dist/components/comment-sidebar.d.ts.map +1 -1
  16. package/dist/components/icons/external-link.d.ts +3 -0
  17. package/dist/components/icons/external-link.d.ts.map +1 -0
  18. package/dist/components/icons/eye-off.d.ts +4 -0
  19. package/dist/components/icons/eye-off.d.ts.map +1 -0
  20. package/dist/components/icons/eye.d.ts +4 -0
  21. package/dist/components/icons/eye.d.ts.map +1 -0
  22. package/dist/components/icons/group.d.ts +4 -0
  23. package/dist/components/icons/group.d.ts.map +1 -0
  24. package/dist/components/icons/index.d.ts.map +1 -1
  25. package/dist/components/icons/info.d.ts +4 -0
  26. package/dist/components/icons/info.d.ts.map +1 -0
  27. package/dist/components/icons/link-off.d.ts +4 -0
  28. package/dist/components/icons/link-off.d.ts.map +1 -0
  29. package/dist/components/icons/link.d.ts +4 -0
  30. package/dist/components/icons/link.d.ts.map +1 -0
  31. package/dist/components/icons/marquee-select.d.ts +4 -0
  32. package/dist/components/icons/marquee-select.d.ts.map +1 -0
  33. package/dist/components/icons/types.d.ts +2 -1
  34. package/dist/components/icons/types.d.ts.map +1 -1
  35. package/dist/components/icons/ungroup.d.ts +4 -0
  36. package/dist/components/icons/ungroup.d.ts.map +1 -0
  37. package/dist/components/icons/unlock.d.ts +4 -0
  38. package/dist/components/icons/unlock.d.ts.map +1 -0
  39. package/dist/components/link-modal.d.ts +10 -0
  40. package/dist/components/link-modal.d.ts.map +1 -0
  41. package/dist/components/permissions-display.d.ts +16 -0
  42. package/dist/components/permissions-display.d.ts.map +1 -0
  43. package/dist/components/protect-modal.d.ts +10 -0
  44. package/dist/components/protect-modal.d.ts.map +1 -0
  45. package/dist/components/unlock-owner-overlay.d.ts +7 -0
  46. package/dist/components/unlock-owner-overlay.d.ts.map +1 -0
  47. package/dist/components/view-permissions-modal.d.ts +10 -0
  48. package/dist/components/view-permissions-modal.d.ts.map +1 -0
  49. package/dist/config/commands.d.ts.map +1 -1
  50. package/dist/config/translations.d.ts.map +1 -1
  51. package/dist/config/ui-schema.d.ts.map +1 -1
  52. package/dist/direct-engine-BDuzMUFV.js +1 -0
  53. package/dist/embedpdf-CE93i_Sd.js +3 -0
  54. package/dist/embedpdf.js +1 -1
  55. package/dist/pdfium.wasm +0 -0
  56. package/dist/ui/schema-selection-menu.d.ts.map +1 -1
  57. package/dist/worker-engine-D8W4P9zI.js +1 -0
  58. package/package.json +30 -30
  59. package/dist/components/annotation-menu.d.ts +0 -9
  60. package/dist/components/annotation-menu.d.ts.map +0 -1
  61. package/dist/components/annotation-sidebar/free-text-sidebar.d.ts +0 -5
  62. package/dist/components/annotation-sidebar/free-text-sidebar.d.ts.map +0 -1
  63. package/dist/components/annotation-sidebar/ink-sidebar.d.ts +0 -5
  64. package/dist/components/annotation-sidebar/ink-sidebar.d.ts.map +0 -1
  65. package/dist/components/annotation-sidebar/line-sidebar.d.ts +0 -5
  66. package/dist/components/annotation-sidebar/line-sidebar.d.ts.map +0 -1
  67. package/dist/components/annotation-sidebar/polygon-sidebar.d.ts +0 -5
  68. package/dist/components/annotation-sidebar/polygon-sidebar.d.ts.map +0 -1
  69. package/dist/components/annotation-sidebar/registry.d.ts +0 -20
  70. package/dist/components/annotation-sidebar/registry.d.ts.map +0 -1
  71. package/dist/components/annotation-sidebar/shape-sidebar.d.ts +0 -5
  72. package/dist/components/annotation-sidebar/shape-sidebar.d.ts.map +0 -1
  73. package/dist/components/annotation-sidebar/stamp-sidebar.d.ts +0 -5
  74. package/dist/components/annotation-sidebar/stamp-sidebar.d.ts.map +0 -1
  75. package/dist/components/annotation-sidebar/text-markup-sidebar.d.ts +0 -5
  76. package/dist/components/annotation-sidebar/text-markup-sidebar.d.ts.map +0 -1
  77. package/dist/direct-engine-CluHueed.js +0 -1
  78. package/dist/embedpdf-BFHbxCoj.js +0 -3
  79. package/dist/worker-engine-rPr4Ul0q.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/snippet",
3
- "version": "2.1.2",
3
+ "version": "2.3.0",
4
4
  "main": "dist/embedpdf.js",
5
5
  "types": "dist/embedpdf.d.ts",
6
6
  "license": "MIT",
@@ -12,35 +12,35 @@
12
12
  "dependencies": {
13
13
  "preact": "^10.17.0",
14
14
  "tailwind-merge": "^3.4.0",
15
- "@embedpdf/core": "2.1.2",
16
- "@embedpdf/models": "2.1.2",
17
- "@embedpdf/engines": "2.1.2",
18
- "@embedpdf/pdfium": "2.1.2",
19
- "@embedpdf/plugin-annotation": "2.1.2",
20
- "@embedpdf/plugin-attachment": "2.1.2",
21
- "@embedpdf/plugin-bookmark": "2.1.2",
22
- "@embedpdf/plugin-commands": "2.1.2",
23
- "@embedpdf/plugin-capture": "2.1.2",
24
- "@embedpdf/plugin-document-manager": "2.1.2",
25
- "@embedpdf/plugin-export": "2.1.2",
26
- "@embedpdf/plugin-history": "2.1.2",
27
- "@embedpdf/plugin-fullscreen": "2.1.2",
28
- "@embedpdf/plugin-interaction-manager": "2.1.2",
29
- "@embedpdf/plugin-i18n": "2.1.2",
30
- "@embedpdf/plugin-pan": "2.1.2",
31
- "@embedpdf/plugin-print": "2.1.2",
32
- "@embedpdf/plugin-redaction": "2.1.2",
33
- "@embedpdf/plugin-render": "2.1.2",
34
- "@embedpdf/plugin-rotate": "2.1.2",
35
- "@embedpdf/plugin-search": "2.1.2",
36
- "@embedpdf/plugin-selection": "2.1.2",
37
- "@embedpdf/plugin-scroll": "2.1.2",
38
- "@embedpdf/plugin-spread": "2.1.2",
39
- "@embedpdf/plugin-tiling": "2.1.2",
40
- "@embedpdf/plugin-ui": "2.1.2",
41
- "@embedpdf/plugin-thumbnail": "2.1.2",
42
- "@embedpdf/plugin-viewport": "2.1.2",
43
- "@embedpdf/plugin-zoom": "2.1.2"
15
+ "@embedpdf/core": "2.3.0",
16
+ "@embedpdf/engines": "2.3.0",
17
+ "@embedpdf/pdfium": "2.3.0",
18
+ "@embedpdf/models": "2.3.0",
19
+ "@embedpdf/plugin-attachment": "2.3.0",
20
+ "@embedpdf/plugin-annotation": "2.3.0",
21
+ "@embedpdf/plugin-bookmark": "2.3.0",
22
+ "@embedpdf/plugin-capture": "2.3.0",
23
+ "@embedpdf/plugin-commands": "2.3.0",
24
+ "@embedpdf/plugin-document-manager": "2.3.0",
25
+ "@embedpdf/plugin-fullscreen": "2.3.0",
26
+ "@embedpdf/plugin-export": "2.3.0",
27
+ "@embedpdf/plugin-i18n": "2.3.0",
28
+ "@embedpdf/plugin-history": "2.3.0",
29
+ "@embedpdf/plugin-interaction-manager": "2.3.0",
30
+ "@embedpdf/plugin-pan": "2.3.0",
31
+ "@embedpdf/plugin-redaction": "2.3.0",
32
+ "@embedpdf/plugin-print": "2.3.0",
33
+ "@embedpdf/plugin-render": "2.3.0",
34
+ "@embedpdf/plugin-rotate": "2.3.0",
35
+ "@embedpdf/plugin-search": "2.3.0",
36
+ "@embedpdf/plugin-thumbnail": "2.3.0",
37
+ "@embedpdf/plugin-scroll": "2.3.0",
38
+ "@embedpdf/plugin-selection": "2.3.0",
39
+ "@embedpdf/plugin-tiling": "2.3.0",
40
+ "@embedpdf/plugin-ui": "2.3.0",
41
+ "@embedpdf/plugin-spread": "2.3.0",
42
+ "@embedpdf/plugin-viewport": "2.3.0",
43
+ "@embedpdf/plugin-zoom": "2.3.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/core": "^7.22.10",
@@ -1,9 +0,0 @@
1
- import { h, JSX } from 'preact';
2
- import { TrackedAnnotation } from '@embedpdf/plugin-annotation';
3
- type AnnotationMenuProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, 'style'> & {
4
- trackedAnnotation: TrackedAnnotation;
5
- style?: JSX.CSSProperties;
6
- };
7
- export declare const AnnotationMenu: ({ trackedAnnotation, ...props }: AnnotationMenuProps) => h.JSX.Element;
8
- export {};
9
- //# sourceMappingURL=annotation-menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotation-menu.d.ts","sourceRoot":"","sources":["../../src/components/annotation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAIhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,KAAK,mBAAmB,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,GAAG;IAC7E,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,KAAK,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,iCAAiC,mBAAmB,kBA2ClF,CAAC"}
@@ -1,5 +0,0 @@
1
- import { h } from 'preact';
2
- import { PdfFreeTextAnnoObject } from '@embedpdf/models';
3
- import { SidebarPropsBase } from './common';
4
- export declare const FreeTextSidebar: ({ documentId, selected, activeTool, colorPresets, }: SidebarPropsBase<PdfFreeTextAnnoObject>) => h.JSX.Element | null;
5
- //# sourceMappingURL=free-text-sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"free-text-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/free-text-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,CAAC,EAAE,MAAM,QAAQ,CAAC;AAGrC,OAAO,EACL,qBAAqB,EAStB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAc5C,eAAO,MAAM,eAAe,GAAI,qDAK7B,gBAAgB,CAAC,qBAAqB,CAAC,yBAoRzC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { h } from 'preact';
2
- import { PdfInkAnnoObject } from '@embedpdf/models';
3
- import { SidebarPropsBase } from './common';
4
- export declare const InkSidebar: ({ documentId, selected, activeTool, colorPresets, }: SidebarPropsBase<PdfInkAnnoObject>) => h.JSX.Element | null;
5
- //# sourceMappingURL=ink-sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ink-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/ink-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,CAAC,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C,eAAO,MAAM,UAAU,GAAI,qDAKxB,gBAAgB,CAAC,gBAAgB,CAAC,yBAqEpC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { h } from 'preact';
2
- import { PdfLineAnnoObject, PdfPolylineAnnoObject } from '@embedpdf/models';
3
- import { SidebarPropsBase } from './common';
4
- export declare const LineSidebar: ({ documentId, selected, activeTool, colorPresets, }: SidebarPropsBase<PdfLineAnnoObject | PdfPolylineAnnoObject>) => h.JSX.Element | null;
5
- //# sourceMappingURL=line-sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"line-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/line-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,CAAC,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAGL,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAW5C,eAAO,MAAM,WAAW,GAAI,qDAKzB,gBAAgB,CAAC,iBAAiB,GAAG,qBAAqB,CAAC,yBAkJ7D,CAAC"}
@@ -1,5 +0,0 @@
1
- import { h } from 'preact';
2
- import { PdfPolygonAnnoObject } from '@embedpdf/models';
3
- import { SidebarPropsBase } from './common';
4
- export declare const PolygonSidebar: ({ documentId, selected, activeTool, colorPresets, }: SidebarPropsBase<PdfPolygonAnnoObject>) => h.JSX.Element | null;
5
- //# sourceMappingURL=polygon-sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"polygon-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/polygon-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,CAAC,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAA4B,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGlF,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,eAAO,MAAM,cAAc,GAAI,qDAK5B,gBAAgB,CAAC,oBAAoB,CAAC,yBA8GxC,CAAC"}
@@ -1,20 +0,0 @@
1
- /** @jsxImportSource preact */
2
- import { h } from 'preact';
3
- import { PdfAnnotationSubtype, PdfAnnotationObject } from '@embedpdf/models';
4
- import { SidebarPropsBase } from './common';
5
- type SidebarComponent<S extends PdfAnnotationSubtype> = (p: SidebarPropsBase<Extract<PdfAnnotationObject, {
6
- type: S;
7
- }>>) => h.JSX.Element | null;
8
- interface SidebarEntry<S extends PdfAnnotationSubtype> {
9
- component: SidebarComponent<S>;
10
- /** Translation key for the sidebar title (e.g., 'annotation.ink') */
11
- titleKey?: string | ((p: SidebarPropsBase<Extract<PdfAnnotationObject, {
12
- type: S;
13
- }>>) => string);
14
- }
15
- type SidebarRegistry = Partial<{
16
- [K in PdfAnnotationSubtype]: SidebarEntry<K>;
17
- }>;
18
- export declare const SidebarRegistry: SidebarRegistry;
19
- export {};
20
- //# sourceMappingURL=registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/registry.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAS5C,KAAK,gBAAgB,CAAC,CAAC,SAAS,oBAAoB,IAAI,CACtD,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,mBAAmB,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,KAC3D,CAAC,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;AAE1B,UAAU,YAAY,CAAC,CAAC,SAAS,oBAAoB;IACnD,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC/B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,mBAAmB,EAAE;QAAE,IAAI,EAAE,CAAC,CAAA;KAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC;CAClG;AAED,KAAK,eAAe,GAAG,OAAO,CAAC;KAC5B,CAAC,IAAI,oBAAoB,GAAG,YAAY,CAAC,CAAC,CAAC;CAC7C,CAAC,CAAC;AAEH,eAAO,MAAM,eAAe,EAAE,eA8B7B,CAAC"}
@@ -1,5 +0,0 @@
1
- import { h } from 'preact';
2
- import { SidebarPropsBase } from './common';
3
- import { PdfCircleAnnoObject, PdfSquareAnnoObject } from '@embedpdf/models';
4
- export declare const ShapeSidebar: ({ documentId, selected, activeTool, colorPresets, }: SidebarPropsBase<PdfCircleAnnoObject | PdfSquareAnnoObject>) => h.JSX.Element | null;
5
- //# sourceMappingURL=shape-sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shape-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/shape-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,CAAC,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5E,eAAO,MAAM,YAAY,GAAI,qDAK1B,gBAAgB,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,yBAuG7D,CAAC"}
@@ -1,5 +0,0 @@
1
- import { h } from 'preact';
2
- import { PdfStampAnnoObject } from '@embedpdf/models';
3
- import { SidebarPropsBase } from './common';
4
- export declare const StampSidebar: ({ documentId }: SidebarPropsBase<PdfStampAnnoObject>) => h.JSX.Element;
5
- //# sourceMappingURL=stamp-sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stamp-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/stamp-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,YAAY,GAAI,gBAAgB,gBAAgB,CAAC,kBAAkB,CAAC,kBAGhF,CAAC"}
@@ -1,5 +0,0 @@
1
- import { h } from 'preact';
2
- import { PdfHighlightAnnoObject, PdfSquigglyAnnoObject, PdfStrikeOutAnnoObject, PdfUnderlineAnnoObject } from '@embedpdf/models';
3
- import { SidebarPropsBase } from './common';
4
- export declare const TextMarkupSidebar: ({ documentId, selected, activeTool, colorPresets, }: SidebarPropsBase<PdfHighlightAnnoObject | PdfUnderlineAnnoObject | PdfStrikeOutAnnoObject | PdfSquigglyAnnoObject>) => h.JSX.Element | null;
5
- //# sourceMappingURL=text-markup-sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"text-markup-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/annotation-sidebar/text-markup-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,CAAC,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAEL,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EAEvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAwB5C,eAAO,MAAM,iBAAiB,GAAI,qDAK/B,gBAAgB,CACjB,sBAAsB,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,qBAAqB,CACjG,yBAkFA,CAAC"}