@embedpdf/snippet 2.2.0 → 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 (53) hide show
  1. package/dist/{browser-awZxztMA-DP8ttsSz.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.map +1 -1
  10. package/dist/components/icons/external-link.d.ts +3 -0
  11. package/dist/components/icons/external-link.d.ts.map +1 -0
  12. package/dist/components/icons/group.d.ts +4 -0
  13. package/dist/components/icons/group.d.ts.map +1 -0
  14. package/dist/components/icons/index.d.ts.map +1 -1
  15. package/dist/components/icons/link-off.d.ts +4 -0
  16. package/dist/components/icons/link-off.d.ts.map +1 -0
  17. package/dist/components/icons/link.d.ts +4 -0
  18. package/dist/components/icons/link.d.ts.map +1 -0
  19. package/dist/components/icons/marquee-select.d.ts +4 -0
  20. package/dist/components/icons/marquee-select.d.ts.map +1 -0
  21. package/dist/components/icons/ungroup.d.ts +4 -0
  22. package/dist/components/icons/ungroup.d.ts.map +1 -0
  23. package/dist/components/link-modal.d.ts +10 -0
  24. package/dist/components/link-modal.d.ts.map +1 -0
  25. package/dist/config/commands.d.ts.map +1 -1
  26. package/dist/config/translations.d.ts.map +1 -1
  27. package/dist/config/ui-schema.d.ts.map +1 -1
  28. package/dist/direct-engine-BDuzMUFV.js +1 -0
  29. package/dist/embedpdf-CE93i_Sd.js +3 -0
  30. package/dist/embedpdf.js +1 -1
  31. package/dist/pdfium.wasm +0 -0
  32. package/dist/ui/schema-selection-menu.d.ts.map +1 -1
  33. package/dist/worker-engine-D8W4P9zI.js +1 -0
  34. package/package.json +30 -30
  35. package/dist/components/annotation-sidebar/free-text-sidebar.d.ts +0 -5
  36. package/dist/components/annotation-sidebar/free-text-sidebar.d.ts.map +0 -1
  37. package/dist/components/annotation-sidebar/ink-sidebar.d.ts +0 -5
  38. package/dist/components/annotation-sidebar/ink-sidebar.d.ts.map +0 -1
  39. package/dist/components/annotation-sidebar/line-sidebar.d.ts +0 -5
  40. package/dist/components/annotation-sidebar/line-sidebar.d.ts.map +0 -1
  41. package/dist/components/annotation-sidebar/polygon-sidebar.d.ts +0 -5
  42. package/dist/components/annotation-sidebar/polygon-sidebar.d.ts.map +0 -1
  43. package/dist/components/annotation-sidebar/registry.d.ts +0 -20
  44. package/dist/components/annotation-sidebar/registry.d.ts.map +0 -1
  45. package/dist/components/annotation-sidebar/shape-sidebar.d.ts +0 -5
  46. package/dist/components/annotation-sidebar/shape-sidebar.d.ts.map +0 -1
  47. package/dist/components/annotation-sidebar/stamp-sidebar.d.ts +0 -5
  48. package/dist/components/annotation-sidebar/stamp-sidebar.d.ts.map +0 -1
  49. package/dist/components/annotation-sidebar/text-markup-sidebar.d.ts +0 -5
  50. package/dist/components/annotation-sidebar/text-markup-sidebar.d.ts.map +0 -1
  51. package/dist/direct-engine-m4-HnUa2.js +0 -1
  52. package/dist/embedpdf-T0lTFeLi.js +0 -3
  53. package/dist/worker-engine-Ch3J8jLj.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/snippet",
3
- "version": "2.2.0",
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.2.0",
16
- "@embedpdf/models": "2.2.0",
17
- "@embedpdf/engines": "2.2.0",
18
- "@embedpdf/pdfium": "2.2.0",
19
- "@embedpdf/plugin-attachment": "2.2.0",
20
- "@embedpdf/plugin-bookmark": "2.2.0",
21
- "@embedpdf/plugin-annotation": "2.2.0",
22
- "@embedpdf/plugin-document-manager": "2.2.0",
23
- "@embedpdf/plugin-capture": "2.2.0",
24
- "@embedpdf/plugin-commands": "2.2.0",
25
- "@embedpdf/plugin-export": "2.2.0",
26
- "@embedpdf/plugin-fullscreen": "2.2.0",
27
- "@embedpdf/plugin-history": "2.2.0",
28
- "@embedpdf/plugin-i18n": "2.2.0",
29
- "@embedpdf/plugin-pan": "2.2.0",
30
- "@embedpdf/plugin-print": "2.2.0",
31
- "@embedpdf/plugin-interaction-manager": "2.2.0",
32
- "@embedpdf/plugin-redaction": "2.2.0",
33
- "@embedpdf/plugin-render": "2.2.0",
34
- "@embedpdf/plugin-rotate": "2.2.0",
35
- "@embedpdf/plugin-scroll": "2.2.0",
36
- "@embedpdf/plugin-search": "2.2.0",
37
- "@embedpdf/plugin-selection": "2.2.0",
38
- "@embedpdf/plugin-spread": "2.2.0",
39
- "@embedpdf/plugin-thumbnail": "2.2.0",
40
- "@embedpdf/plugin-tiling": "2.2.0",
41
- "@embedpdf/plugin-ui": "2.2.0",
42
- "@embedpdf/plugin-zoom": "2.2.0",
43
- "@embedpdf/plugin-viewport": "2.2.0"
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,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"}