@embedpdf/plugin-attachment 1.0.0 → 1.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.
@@ -20,19 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/preact/index.ts
21
21
  var preact_exports = {};
22
22
  __export(preact_exports, {
23
- useAttachment: () => useAttachment,
24
- useAttachmentCapability: () => useAttachmentCapability
23
+ useAttachmentCapability: () => useAttachmentCapability,
24
+ useAttachmentPlugin: () => useAttachmentPlugin
25
25
  });
26
26
  module.exports = __toCommonJS(preact_exports);
27
27
 
28
28
  // src/preact/hooks/use-attachment.ts
29
29
  var import_preact = require("@embedpdf/core/preact");
30
30
  var import_plugin_attachment = require("@embedpdf/plugin-attachment");
31
- var useAttachment = () => (0, import_preact.usePlugin)(import_plugin_attachment.AttachmentPlugin.id);
31
+ var useAttachmentPlugin = () => (0, import_preact.usePlugin)(import_plugin_attachment.AttachmentPlugin.id);
32
32
  var useAttachmentCapability = () => (0, import_preact.useCapability)(import_plugin_attachment.AttachmentPlugin.id);
33
33
  // Annotate the CommonJS export names for ESM import in node:
34
34
  0 && (module.exports = {
35
- useAttachment,
36
- useAttachmentCapability
35
+ useAttachmentCapability,
36
+ useAttachmentPlugin
37
37
  });
38
38
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/preact/index.ts","../../src/preact/hooks/use-attachment.ts"],"sourcesContent":["export * from './hooks';\n","import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { AttachmentPlugin } from '@embedpdf/plugin-attachment';\n\nexport const useAttachment = () => usePlugin<AttachmentPlugin>(AttachmentPlugin.id);\nexport const useAttachmentCapability = () => useCapability<AttachmentPlugin>(AttachmentPlugin.id);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBAAyC;AACzC,+BAAiC;AAE1B,IAAM,gBAAgB,UAAM,yBAA4B,0CAAiB,EAAE;AAC3E,IAAM,0BAA0B,UAAM,6BAAgC,0CAAiB,EAAE;","names":[]}
1
+ {"version":3,"sources":["../../src/preact/index.ts","../../src/preact/hooks/use-attachment.ts"],"sourcesContent":["export * from './hooks';\n","import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { AttachmentPlugin } from '@embedpdf/plugin-attachment';\n\nexport const useAttachmentPlugin = () => usePlugin<AttachmentPlugin>(AttachmentPlugin.id);\nexport const useAttachmentCapability = () => useCapability<AttachmentPlugin>(AttachmentPlugin.id);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBAAyC;AACzC,+BAAiC;AAE1B,IAAM,sBAAsB,UAAM,yBAA4B,0CAAiB,EAAE;AACjF,IAAM,0BAA0B,UAAM,6BAAgC,0CAAiB,EAAE;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import * as _embedpdf_plugin_attachment from '@embedpdf/plugin-attachment';
2
2
  import { AttachmentPlugin } from '@embedpdf/plugin-attachment';
3
3
 
4
- declare const useAttachment: () => {
4
+ declare const useAttachmentPlugin: () => {
5
5
  plugin: AttachmentPlugin | null;
6
6
  isLoading: boolean;
7
7
  ready: Promise<void>;
@@ -12,4 +12,4 @@ declare const useAttachmentCapability: () => {
12
12
  ready: Promise<void>;
13
13
  };
14
14
 
15
- export { useAttachment, useAttachmentCapability };
15
+ export { useAttachmentCapability, useAttachmentPlugin };
@@ -1,7 +1,7 @@
1
1
  import * as _embedpdf_plugin_attachment from '@embedpdf/plugin-attachment';
2
2
  import { AttachmentPlugin } from '@embedpdf/plugin-attachment';
3
3
 
4
- declare const useAttachment: () => {
4
+ declare const useAttachmentPlugin: () => {
5
5
  plugin: AttachmentPlugin | null;
6
6
  isLoading: boolean;
7
7
  ready: Promise<void>;
@@ -12,4 +12,4 @@ declare const useAttachmentCapability: () => {
12
12
  ready: Promise<void>;
13
13
  };
14
14
 
15
- export { useAttachment, useAttachmentCapability };
15
+ export { useAttachmentCapability, useAttachmentPlugin };
@@ -1,10 +1,10 @@
1
1
  // src/preact/hooks/use-attachment.ts
2
2
  import { useCapability, usePlugin } from "@embedpdf/core/preact";
3
3
  import { AttachmentPlugin } from "@embedpdf/plugin-attachment";
4
- var useAttachment = () => usePlugin(AttachmentPlugin.id);
4
+ var useAttachmentPlugin = () => usePlugin(AttachmentPlugin.id);
5
5
  var useAttachmentCapability = () => useCapability(AttachmentPlugin.id);
6
6
  export {
7
- useAttachment,
8
- useAttachmentCapability
7
+ useAttachmentCapability,
8
+ useAttachmentPlugin
9
9
  };
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/preact/hooks/use-attachment.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { AttachmentPlugin } from '@embedpdf/plugin-attachment';\n\nexport const useAttachment = () => usePlugin<AttachmentPlugin>(AttachmentPlugin.id);\nexport const useAttachmentCapability = () => useCapability<AttachmentPlugin>(AttachmentPlugin.id);\n"],"mappings":";AAAA,SAAS,eAAe,iBAAiB;AACzC,SAAS,wBAAwB;AAE1B,IAAM,gBAAgB,MAAM,UAA4B,iBAAiB,EAAE;AAC3E,IAAM,0BAA0B,MAAM,cAAgC,iBAAiB,EAAE;","names":[]}
1
+ {"version":3,"sources":["../../src/preact/hooks/use-attachment.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { AttachmentPlugin } from '@embedpdf/plugin-attachment';\n\nexport const useAttachmentPlugin = () => usePlugin<AttachmentPlugin>(AttachmentPlugin.id);\nexport const useAttachmentCapability = () => useCapability<AttachmentPlugin>(AttachmentPlugin.id);\n"],"mappings":";AAAA,SAAS,eAAe,iBAAiB;AACzC,SAAS,wBAAwB;AAE1B,IAAM,sBAAsB,MAAM,UAA4B,iBAAiB,EAAE;AACjF,IAAM,0BAA0B,MAAM,cAAgC,iBAAiB,EAAE;","names":[]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/react/index.ts
21
+ var react_exports = {};
22
+ __export(react_exports, {
23
+ useAttachmentCapability: () => useAttachmentCapability,
24
+ useAttachmentPlugin: () => useAttachmentPlugin
25
+ });
26
+ module.exports = __toCommonJS(react_exports);
27
+
28
+ // src/react/hooks/use-attachment.ts
29
+ var import_react = require("@embedpdf/core/react");
30
+ var import_plugin_attachment = require("@embedpdf/plugin-attachment");
31
+ var useAttachmentPlugin = () => (0, import_react.usePlugin)(import_plugin_attachment.AttachmentPlugin.id);
32
+ var useAttachmentCapability = () => (0, import_react.useCapability)(import_plugin_attachment.AttachmentPlugin.id);
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ useAttachmentCapability,
36
+ useAttachmentPlugin
37
+ });
38
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/react/index.ts","../../src/react/hooks/use-attachment.ts"],"sourcesContent":["export * from './hooks';\n","import { useCapability, usePlugin } from '@embedpdf/core/react';\nimport { AttachmentPlugin } from '@embedpdf/plugin-attachment';\n\nexport const useAttachmentPlugin = () => usePlugin<AttachmentPlugin>(AttachmentPlugin.id);\nexport const useAttachmentCapability = () => useCapability<AttachmentPlugin>(AttachmentPlugin.id);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAyC;AACzC,+BAAiC;AAE1B,IAAM,sBAAsB,UAAM,wBAA4B,0CAAiB,EAAE;AACjF,IAAM,0BAA0B,UAAM,4BAAgC,0CAAiB,EAAE;","names":[]}
@@ -0,0 +1,15 @@
1
+ import * as _embedpdf_plugin_attachment from '@embedpdf/plugin-attachment';
2
+ import { AttachmentPlugin } from '@embedpdf/plugin-attachment';
3
+
4
+ declare const useAttachmentPlugin: () => {
5
+ plugin: AttachmentPlugin | null;
6
+ isLoading: boolean;
7
+ ready: Promise<void>;
8
+ };
9
+ declare const useAttachmentCapability: () => {
10
+ provides: Readonly<_embedpdf_plugin_attachment.AttachmentCapability> | null;
11
+ isLoading: boolean;
12
+ ready: Promise<void>;
13
+ };
14
+
15
+ export { useAttachmentCapability, useAttachmentPlugin };
@@ -0,0 +1,15 @@
1
+ import * as _embedpdf_plugin_attachment from '@embedpdf/plugin-attachment';
2
+ import { AttachmentPlugin } from '@embedpdf/plugin-attachment';
3
+
4
+ declare const useAttachmentPlugin: () => {
5
+ plugin: AttachmentPlugin | null;
6
+ isLoading: boolean;
7
+ ready: Promise<void>;
8
+ };
9
+ declare const useAttachmentCapability: () => {
10
+ provides: Readonly<_embedpdf_plugin_attachment.AttachmentCapability> | null;
11
+ isLoading: boolean;
12
+ ready: Promise<void>;
13
+ };
14
+
15
+ export { useAttachmentCapability, useAttachmentPlugin };
@@ -0,0 +1,10 @@
1
+ // src/react/hooks/use-attachment.ts
2
+ import { useCapability, usePlugin } from "@embedpdf/core/react";
3
+ import { AttachmentPlugin } from "@embedpdf/plugin-attachment";
4
+ var useAttachmentPlugin = () => usePlugin(AttachmentPlugin.id);
5
+ var useAttachmentCapability = () => useCapability(AttachmentPlugin.id);
6
+ export {
7
+ useAttachmentCapability,
8
+ useAttachmentPlugin
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/react/hooks/use-attachment.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/react';\nimport { AttachmentPlugin } from '@embedpdf/plugin-attachment';\n\nexport const useAttachmentPlugin = () => usePlugin<AttachmentPlugin>(AttachmentPlugin.id);\nexport const useAttachmentCapability = () => useCapability<AttachmentPlugin>(AttachmentPlugin.id);\n"],"mappings":";AAAA,SAAS,eAAe,iBAAiB;AACzC,SAAS,wBAAwB;AAE1B,IAAM,sBAAsB,MAAM,UAA4B,iBAAiB,EAAE;AACjF,IAAM,0BAA0B,MAAM,cAAgC,iBAAiB,EAAE;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/plugin-attachment",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -22,14 +22,14 @@
22
22
  "@types/react": "^18.2.0",
23
23
  "tsup": "^8.0.0",
24
24
  "typescript": "^5.0.0",
25
- "@embedpdf/core": "1.0.0",
26
- "@embedpdf/models": "1.0.0"
25
+ "@embedpdf/core": "1.0.1",
26
+ "@embedpdf/models": "1.0.1"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.8.0",
30
30
  "react-dom": ">=16.8.0",
31
31
  "preact": "^10.26.4",
32
- "@embedpdf/core": "1.0.0"
32
+ "@embedpdf/core": "1.0.1"
33
33
  },
34
34
  "files": [
35
35
  "dist",