@embedpdf/plugin-history 1.0.20 → 1.0.22

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@embedpdf/core/preact"),i=require("@embedpdf/plugin-history");exports.useHistoryCapability=()=>e.useCapability(i.HistoryPlugin.id),exports.useHistoryPlugin=()=>e.usePlugin(i.HistoryPlugin.id);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@embedpdf/core/preact"),t=require("@embedpdf/plugin-history");exports.useHistoryCapability=()=>e.useCapability(t.HistoryPlugin.id),exports.useHistoryPlugin=()=>e.usePlugin(t.HistoryPlugin.id),Object.keys(t).forEach((e=>{"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})}));
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,6 @@
1
1
  import { usePlugin, useCapability } from "@embedpdf/core/preact";
2
2
  import { HistoryPlugin } from "@embedpdf/plugin-history";
3
+ export * from "@embedpdf/plugin-history";
3
4
  const useHistoryPlugin = () => usePlugin(HistoryPlugin.id);
4
5
  const useHistoryCapability = () => useCapability(HistoryPlugin.id);
5
6
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/shared/hooks/use-history.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/@framework';\nimport { HistoryPlugin } from '@embedpdf/plugin-history';\n\nexport const useHistoryPlugin = () => usePlugin<HistoryPlugin>(HistoryPlugin.id);\nexport const useHistoryCapability = () => useCapability<HistoryPlugin>(HistoryPlugin.id);\n"],"names":[],"mappings":";;AAGO,MAAM,mBAAmB,MAAM,UAAyB,cAAc,EAAE;AACxE,MAAM,uBAAuB,MAAM,cAA6B,cAAc,EAAE;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/shared/hooks/use-history.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/@framework';\nimport { HistoryPlugin } from '@embedpdf/plugin-history';\n\nexport const useHistoryPlugin = () => usePlugin<HistoryPlugin>(HistoryPlugin.id);\nexport const useHistoryCapability = () => useCapability<HistoryPlugin>(HistoryPlugin.id);\n"],"names":[],"mappings":";;;AAGO,MAAM,mBAAmB,MAAM,UAAyB,cAAc,EAAE;AACxE,MAAM,uBAAuB,MAAM,cAA6B,cAAc,EAAE;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@embedpdf/core/react"),i=require("@embedpdf/plugin-history");exports.useHistoryCapability=()=>e.useCapability(i.HistoryPlugin.id),exports.useHistoryPlugin=()=>e.usePlugin(i.HistoryPlugin.id);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@embedpdf/core/react"),t=require("@embedpdf/plugin-history");exports.useHistoryCapability=()=>e.useCapability(t.HistoryPlugin.id),exports.useHistoryPlugin=()=>e.usePlugin(t.HistoryPlugin.id),Object.keys(t).forEach((e=>{"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})}));
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,6 @@
1
1
  import { usePlugin, useCapability } from "@embedpdf/core/react";
2
2
  import { HistoryPlugin } from "@embedpdf/plugin-history";
3
+ export * from "@embedpdf/plugin-history";
3
4
  const useHistoryPlugin = () => usePlugin(HistoryPlugin.id);
4
5
  const useHistoryCapability = () => useCapability(HistoryPlugin.id);
5
6
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/shared/hooks/use-history.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/@framework';\nimport { HistoryPlugin } from '@embedpdf/plugin-history';\n\nexport const useHistoryPlugin = () => usePlugin<HistoryPlugin>(HistoryPlugin.id);\nexport const useHistoryCapability = () => useCapability<HistoryPlugin>(HistoryPlugin.id);\n"],"names":[],"mappings":";;AAGO,MAAM,mBAAmB,MAAM,UAAyB,cAAc,EAAE;AACxE,MAAM,uBAAuB,MAAM,cAA6B,cAAc,EAAE;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/shared/hooks/use-history.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/@framework';\nimport { HistoryPlugin } from '@embedpdf/plugin-history';\n\nexport const useHistoryPlugin = () => usePlugin<HistoryPlugin>(HistoryPlugin.id);\nexport const useHistoryCapability = () => useCapability<HistoryPlugin>(HistoryPlugin.id);\n"],"names":[],"mappings":";;;AAGO,MAAM,mBAAmB,MAAM,UAAyB,cAAc,EAAE;AACxE,MAAM,uBAAuB,MAAM,cAA6B,cAAc,EAAE;"}
@@ -1 +1,2 @@
1
1
  export * from './hooks';
2
+ export * from '../lib/index.ts';
@@ -1 +1,2 @@
1
1
  export * from './hooks';
2
+ export * from '../lib/index.ts';
@@ -0,0 +1 @@
1
+ export * from './use-history';
@@ -0,0 +1,3 @@
1
+ import { HistoryPlugin } from '../../lib/index.ts';
2
+ export declare const useHistoryPlugin: () => import('@embedpdf/core/vue').PluginState<HistoryPlugin>;
3
+ export declare const useHistoryCapability: () => import('@embedpdf/core/vue').CapabilityState<Readonly<import('../../lib/index.ts').HistoryCapability>>;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@embedpdf/core/vue"),t=require("@embedpdf/plugin-history");exports.useHistoryCapability=()=>e.useCapability(t.HistoryPlugin.id),exports.useHistoryPlugin=()=>e.usePlugin(t.HistoryPlugin.id),Object.keys(t).forEach((e=>{"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})}));
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../src/vue/hooks/use-history.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/vue';\nimport { HistoryPlugin } from '@embedpdf/plugin-history';\n\nexport const useHistoryPlugin = () => usePlugin<HistoryPlugin>(HistoryPlugin.id);\nexport const useHistoryCapability = () => useCapability<HistoryPlugin>(HistoryPlugin.id);\n"],"names":["useCapability","HistoryPlugin","id","usePlugin"],"mappings":"yLAIoC,IAAMA,gBAA6BC,EAAAA,cAAcC,6BADrD,IAAMC,YAAyBF,EAAAA,cAAcC"}
@@ -0,0 +1,2 @@
1
+ export * from './hooks';
2
+ export * from '../lib/index.ts';
@@ -0,0 +1,10 @@
1
+ import { usePlugin, useCapability } from "@embedpdf/core/vue";
2
+ import { HistoryPlugin } from "@embedpdf/plugin-history";
3
+ export * from "@embedpdf/plugin-history";
4
+ const useHistoryPlugin = () => usePlugin(HistoryPlugin.id);
5
+ const useHistoryCapability = () => useCapability(HistoryPlugin.id);
6
+ export {
7
+ useHistoryCapability,
8
+ useHistoryPlugin
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/vue/hooks/use-history.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/vue';\nimport { HistoryPlugin } from '@embedpdf/plugin-history';\n\nexport const useHistoryPlugin = () => usePlugin<HistoryPlugin>(HistoryPlugin.id);\nexport const useHistoryCapability = () => useCapability<HistoryPlugin>(HistoryPlugin.id);\n"],"names":[],"mappings":";;;AAGO,MAAM,mBAAmB,MAAM,UAAyB,cAAc,EAAE;AACxE,MAAM,uBAAuB,MAAM,cAA6B,cAAc,EAAE;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/plugin-history",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -20,22 +20,28 @@
20
20
  "types": "./dist/react/index.d.ts",
21
21
  "import": "./dist/react/index.js",
22
22
  "require": "./dist/react/index.cjs"
23
+ },
24
+ "./vue": {
25
+ "types": "./dist/vue/index.d.ts",
26
+ "import": "./dist/vue/index.js",
27
+ "require": "./dist/vue/index.cjs"
23
28
  }
24
29
  },
25
30
  "dependencies": {
26
- "@embedpdf/models": "1.0.20"
31
+ "@embedpdf/models": "1.0.22"
27
32
  },
28
33
  "devDependencies": {
29
34
  "@types/react": "^18.2.0",
30
35
  "typescript": "^5.0.0",
31
- "@embedpdf/core": "1.0.20",
32
- "@embedpdf/build": "1.0.0"
36
+ "@embedpdf/build": "1.0.0",
37
+ "@embedpdf/core": "1.0.22"
33
38
  },
34
39
  "peerDependencies": {
35
40
  "react": ">=16.8.0",
36
41
  "react-dom": ">=16.8.0",
37
42
  "preact": "^10.26.4",
38
- "@embedpdf/core": "1.0.20"
43
+ "vue": ">=3.2.0",
44
+ "@embedpdf/core": "1.0.22"
39
45
  },
40
46
  "files": [
41
47
  "dist",
@@ -57,7 +63,8 @@
57
63
  "build:base": "vite build --mode base",
58
64
  "build:react": "vite build --mode react",
59
65
  "build:preact": "vite build --mode preact",
60
- "build": "pnpm run clean && concurrently -c auto -n base,react,preact \"vite build --mode base\" \"vite build --mode react\" \"vite build --mode preact\"",
66
+ "build:vue": "vite build --mode vue",
67
+ "build": "pnpm run clean && concurrently -c auto -n base,react,preact,vue \"vite build --mode base\" \"vite build --mode react\" \"vite build --mode preact\" \"vite build --mode vue\"",
61
68
  "clean": "rimraf dist",
62
69
  "lint": "eslint src --color",
63
70
  "lint:fix": "eslint src --color --fix"