@embedpdf/plugin-attachment 1.0.18 → 1.0.20
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/attachment-plugin.d.ts +1 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@embedpdf/core"),t=class extends e.BasePlugin{constructor(e,t
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@embedpdf/core"),t=class extends e.BasePlugin{constructor(e,t){super(e,t)}async initialize(e){}buildCapability(){return{}}};t.id="attachment";let a=t;const n="attachment",i={id:n,name:"Attachment Plugin",version:"1.0.0",provides:["attachment"],requires:[],optional:[],defaultConfig:{enabled:!0}},r={manifest:i,create:e=>new a(n,e),reducer:()=>{},initialState:{}};exports.ATTACHMENT_PLUGIN_ID=n,exports.AttachmentPlugin=a,exports.AttachmentPluginPackage=r,exports.manifest=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/lib/attachment-plugin.ts","../src/lib/manifest.ts","../src/lib/index.ts"],"sourcesContent":["import { BasePlugin, PluginRegistry } from '@embedpdf/core';\
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/lib/attachment-plugin.ts","../src/lib/manifest.ts","../src/lib/index.ts"],"sourcesContent":["import { BasePlugin, PluginRegistry } from '@embedpdf/core';\n\nimport { AttachmentCapability, AttachmentPluginConfig } from './types';\n\nexport class AttachmentPlugin extends BasePlugin<AttachmentPluginConfig, AttachmentCapability> {\n static readonly id = 'attachment' as const;\n\n constructor(id: string, registry: PluginRegistry) {\n super(id, registry);\n }\n\n async initialize(_: AttachmentPluginConfig): Promise<void> {}\n\n protected buildCapability(): AttachmentCapability {\n return {};\n }\n}\n","import { PluginManifest } from '@embedpdf/core';\nimport { AttachmentPluginConfig } from './types';\n\nexport const ATTACHMENT_PLUGIN_ID = 'attachment';\n\nexport const manifest: PluginManifest<AttachmentPluginConfig> = {\n id: ATTACHMENT_PLUGIN_ID,\n name: 'Attachment Plugin',\n version: '1.0.0',\n provides: ['attachment'],\n requires: [],\n optional: [],\n defaultConfig: {\n enabled: true,\n },\n};\n","import { PluginPackage } from '@embedpdf/core';\n\nimport { AttachmentPlugin } from './attachment-plugin';\nimport { manifest, ATTACHMENT_PLUGIN_ID } from './manifest';\nimport { AttachmentPluginConfig } from './types';\n\nexport const AttachmentPluginPackage: PluginPackage<AttachmentPlugin, AttachmentPluginConfig> = {\n manifest,\n create: (registry) => new AttachmentPlugin(ATTACHMENT_PLUGIN_ID, registry),\n reducer: () => {},\n initialState: {},\n};\n\nexport * from './attachment-plugin';\nexport * from './types';\nexport * from './manifest';\n"],"names":["_AttachmentPlugin","BasePlugin","constructor","id","registry","super","initialize","_","buildCapability","AttachmentPlugin","ATTACHMENT_PLUGIN_ID","manifest","name","version","provides","requires","optional","defaultConfig","enabled","AttachmentPluginPackage","create","reducer","initialState"],"mappings":"kHAIaA,EAAN,cAA+BC,EAAAA,WAGpC,WAAAC,CAAYC,EAAYC,GACtBC,MAAMF,EAAIC,EAAQ,CAGpB,gBAAME,CAAWC,GAA0C,CAEjD,eAAAC,GACR,MAAO,CAAC,CAAA,GATVR,EAAgBG,GAAK,aADhB,IAAMM,EAANT,ECDA,MAAMU,EAAuB,aAEvBC,EAAmD,CAC9DR,GAAIO,EACJE,KAAM,oBACNC,QAAS,QACTC,SAAU,CAAC,cACXC,SAAU,GACVC,SAAU,GACVC,cAAe,CACbC,SAAS,ICPAC,EAAmF,CAC9FR,WACAS,OAAShB,GAAa,IAAIK,EAAiBC,EAAsBN,GACjEiB,QAAS,OACTC,aAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BasePlugin } from "@embedpdf/core";
|
|
2
2
|
const _AttachmentPlugin = class _AttachmentPlugin extends BasePlugin {
|
|
3
|
-
constructor(id, registry
|
|
3
|
+
constructor(id, registry) {
|
|
4
4
|
super(id, registry);
|
|
5
|
-
this.engine = engine;
|
|
6
5
|
}
|
|
7
6
|
async initialize(_) {
|
|
8
7
|
}
|
|
@@ -26,7 +25,7 @@ const manifest = {
|
|
|
26
25
|
};
|
|
27
26
|
const AttachmentPluginPackage = {
|
|
28
27
|
manifest,
|
|
29
|
-
create: (registry
|
|
28
|
+
create: (registry) => new AttachmentPlugin(ATTACHMENT_PLUGIN_ID, registry),
|
|
30
29
|
reducer: () => {
|
|
31
30
|
},
|
|
32
31
|
initialState: {}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/lib/attachment-plugin.ts","../src/lib/manifest.ts","../src/lib/index.ts"],"sourcesContent":["import { BasePlugin, PluginRegistry } from '@embedpdf/core';\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/lib/attachment-plugin.ts","../src/lib/manifest.ts","../src/lib/index.ts"],"sourcesContent":["import { BasePlugin, PluginRegistry } from '@embedpdf/core';\n\nimport { AttachmentCapability, AttachmentPluginConfig } from './types';\n\nexport class AttachmentPlugin extends BasePlugin<AttachmentPluginConfig, AttachmentCapability> {\n static readonly id = 'attachment' as const;\n\n constructor(id: string, registry: PluginRegistry) {\n super(id, registry);\n }\n\n async initialize(_: AttachmentPluginConfig): Promise<void> {}\n\n protected buildCapability(): AttachmentCapability {\n return {};\n }\n}\n","import { PluginManifest } from '@embedpdf/core';\nimport { AttachmentPluginConfig } from './types';\n\nexport const ATTACHMENT_PLUGIN_ID = 'attachment';\n\nexport const manifest: PluginManifest<AttachmentPluginConfig> = {\n id: ATTACHMENT_PLUGIN_ID,\n name: 'Attachment Plugin',\n version: '1.0.0',\n provides: ['attachment'],\n requires: [],\n optional: [],\n defaultConfig: {\n enabled: true,\n },\n};\n","import { PluginPackage } from '@embedpdf/core';\n\nimport { AttachmentPlugin } from './attachment-plugin';\nimport { manifest, ATTACHMENT_PLUGIN_ID } from './manifest';\nimport { AttachmentPluginConfig } from './types';\n\nexport const AttachmentPluginPackage: PluginPackage<AttachmentPlugin, AttachmentPluginConfig> = {\n manifest,\n create: (registry) => new AttachmentPlugin(ATTACHMENT_PLUGIN_ID, registry),\n reducer: () => {},\n initialState: {},\n};\n\nexport * from './attachment-plugin';\nexport * from './types';\nexport * from './manifest';\n"],"names":[],"mappings":";AAIO,MAAM,oBAAN,MAAM,0BAAyB,WAAyD;AAAA,EAG7F,YAAY,IAAY,UAA0B;AAChD,UAAM,IAAI,QAAQ;AAAA,EAAA;AAAA,EAGpB,MAAM,WAAW,GAA0C;AAAA,EAAA;AAAA,EAEjD,kBAAwC;AAChD,WAAO,CAAC;AAAA,EAAA;AAEZ;AAXE,kBAAgB,KAAK;AADhB,IAAM,mBAAN;ACDA,MAAM,uBAAuB;AAE7B,MAAM,WAAmD;AAAA,EAC9D,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,SAAS;AAAA,EACT,UAAU,CAAC,YAAY;AAAA,EACvB,UAAU,CAAC;AAAA,EACX,UAAU,CAAC;AAAA,EACX,eAAe;AAAA,IACb,SAAS;AAAA,EAAA;AAEb;ACTO,MAAM,0BAAmF;AAAA,EAC9F;AAAA,EACA,QAAQ,CAAC,aAAa,IAAI,iBAAiB,sBAAsB,QAAQ;AAAA,EACzE,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,cAAc,CAAA;AAChB;"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { BasePlugin, PluginRegistry } from '@embedpdf/core';
|
|
2
|
-
import { PdfEngine } from '@embedpdf/models';
|
|
3
2
|
import { AttachmentCapability, AttachmentPluginConfig } from './types';
|
|
4
3
|
export declare class AttachmentPlugin extends BasePlugin<AttachmentPluginConfig, AttachmentCapability> {
|
|
5
4
|
static readonly id: "attachment";
|
|
6
|
-
|
|
7
|
-
constructor(id: string, registry: PluginRegistry, engine: PdfEngine);
|
|
5
|
+
constructor(id: string, registry: PluginRegistry);
|
|
8
6
|
initialize(_: AttachmentPluginConfig): Promise<void>;
|
|
9
7
|
protected buildCapability(): AttachmentCapability;
|
|
10
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/plugin-attachment",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@embedpdf/models": "1.0.
|
|
21
|
+
"@embedpdf/models": "1.0.20"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/react": "^18.2.0",
|
|
25
25
|
"typescript": "^5.0.0",
|
|
26
|
-
"@embedpdf/
|
|
27
|
-
"@embedpdf/
|
|
26
|
+
"@embedpdf/build": "1.0.0",
|
|
27
|
+
"@embedpdf/core": "1.0.20"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": ">=16.8.0",
|
|
31
31
|
"react-dom": ">=16.8.0",
|
|
32
32
|
"preact": "^10.26.4",
|
|
33
|
-
"@embedpdf/core": "1.0.
|
|
33
|
+
"@embedpdf/core": "1.0.20"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|