@embedpdf/plugin-spread 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.
- package/dist/preact/index.cjs +5 -5
- package/dist/preact/index.cjs.map +1 -1
- package/dist/preact/index.d.cts +2 -2
- package/dist/preact/index.d.ts +2 -2
- package/dist/preact/index.js +3 -3
- package/dist/preact/index.js.map +1 -1
- package/dist/react/index.cjs +5 -5
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +1 -1
- package/package.json +4 -4
package/dist/preact/index.cjs
CHANGED
|
@@ -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
|
-
|
|
24
|
-
|
|
23
|
+
useSpreadCapability: () => useSpreadCapability,
|
|
24
|
+
useSpreadPlugin: () => useSpreadPlugin
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(preact_exports);
|
|
27
27
|
|
|
28
28
|
// src/preact/hooks/use-spread.ts
|
|
29
29
|
var import_preact = require("@embedpdf/core/preact");
|
|
30
30
|
var import_plugin_spread = require("@embedpdf/plugin-spread");
|
|
31
|
-
var
|
|
31
|
+
var useSpreadPlugin = () => (0, import_preact.usePlugin)(import_plugin_spread.SpreadPlugin.id);
|
|
32
32
|
var useSpreadCapability = () => (0, import_preact.useCapability)(import_plugin_spread.SpreadPlugin.id);
|
|
33
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34
34
|
0 && (module.exports = {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
useSpreadCapability,
|
|
36
|
+
useSpreadPlugin
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/preact/index.ts","../../src/preact/hooks/use-spread.ts"],"sourcesContent":["export * from './hooks';\n","import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { SpreadPlugin } from '@embedpdf/plugin-spread';\n\nexport const
|
|
1
|
+
{"version":3,"sources":["../../src/preact/index.ts","../../src/preact/hooks/use-spread.ts"],"sourcesContent":["export * from './hooks';\n","import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { SpreadPlugin } from '@embedpdf/plugin-spread';\n\nexport const useSpreadPlugin = () => usePlugin<SpreadPlugin>(SpreadPlugin.id);\nexport const useSpreadCapability = () => useCapability<SpreadPlugin>(SpreadPlugin.id);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBAAyC;AACzC,2BAA6B;AAEtB,IAAM,kBAAkB,UAAM,yBAAwB,kCAAa,EAAE;AACrE,IAAM,sBAAsB,UAAM,6BAA4B,kCAAa,EAAE;","names":[]}
|
package/dist/preact/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _embedpdf_plugin_spread from '@embedpdf/plugin-spread';
|
|
2
2
|
import { SpreadPlugin } from '@embedpdf/plugin-spread';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
4
|
+
declare const useSpreadPlugin: () => {
|
|
5
5
|
plugin: SpreadPlugin | null;
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
ready: Promise<void>;
|
|
@@ -12,4 +12,4 @@ declare const useSpreadCapability: () => {
|
|
|
12
12
|
ready: Promise<void>;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { useSpreadCapability, useSpreadPlugin };
|
package/dist/preact/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _embedpdf_plugin_spread from '@embedpdf/plugin-spread';
|
|
2
2
|
import { SpreadPlugin } from '@embedpdf/plugin-spread';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
4
|
+
declare const useSpreadPlugin: () => {
|
|
5
5
|
plugin: SpreadPlugin | null;
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
ready: Promise<void>;
|
|
@@ -12,4 +12,4 @@ declare const useSpreadCapability: () => {
|
|
|
12
12
|
ready: Promise<void>;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { useSpreadCapability, useSpreadPlugin };
|
package/dist/preact/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// src/preact/hooks/use-spread.ts
|
|
2
2
|
import { useCapability, usePlugin } from "@embedpdf/core/preact";
|
|
3
3
|
import { SpreadPlugin } from "@embedpdf/plugin-spread";
|
|
4
|
-
var
|
|
4
|
+
var useSpreadPlugin = () => usePlugin(SpreadPlugin.id);
|
|
5
5
|
var useSpreadCapability = () => useCapability(SpreadPlugin.id);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
useSpreadCapability,
|
|
8
|
+
useSpreadPlugin
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/preact/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/preact/hooks/use-spread.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { SpreadPlugin } from '@embedpdf/plugin-spread';\n\nexport const
|
|
1
|
+
{"version":3,"sources":["../../src/preact/hooks/use-spread.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { SpreadPlugin } from '@embedpdf/plugin-spread';\n\nexport const useSpreadPlugin = () => usePlugin<SpreadPlugin>(SpreadPlugin.id);\nexport const useSpreadCapability = () => useCapability<SpreadPlugin>(SpreadPlugin.id);\n"],"mappings":";AAAA,SAAS,eAAe,iBAAiB;AACzC,SAAS,oBAAoB;AAEtB,IAAM,kBAAkB,MAAM,UAAwB,aAAa,EAAE;AACrE,IAAM,sBAAsB,MAAM,cAA4B,aAAa,EAAE;","names":[]}
|
package/dist/react/index.cjs
CHANGED
|
@@ -20,19 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/react/index.ts
|
|
21
21
|
var react_exports = {};
|
|
22
22
|
__export(react_exports, {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
useSpreadCapability: () => useSpreadCapability,
|
|
24
|
+
useSpreadPlugin: () => useSpreadPlugin
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(react_exports);
|
|
27
27
|
|
|
28
28
|
// src/react/hooks/use-spread.ts
|
|
29
29
|
var import_react = require("@embedpdf/core/react");
|
|
30
30
|
var import_plugin_spread = require("@embedpdf/plugin-spread");
|
|
31
|
-
var
|
|
31
|
+
var useSpreadPlugin = () => (0, import_react.usePlugin)(import_plugin_spread.SpreadPlugin.id);
|
|
32
32
|
var useSpreadCapability = () => (0, import_react.useCapability)(import_plugin_spread.SpreadPlugin.id);
|
|
33
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34
34
|
0 && (module.exports = {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
useSpreadCapability,
|
|
36
|
+
useSpreadPlugin
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=index.cjs.map
|
package/dist/react/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/index.ts","../../src/react/hooks/use-spread.ts"],"sourcesContent":["export * from './hooks';\n","import { useCapability, usePlugin } from '@embedpdf/core/react';\nimport { SpreadPlugin } from '@embedpdf/plugin-spread';\n\nexport const
|
|
1
|
+
{"version":3,"sources":["../../src/react/index.ts","../../src/react/hooks/use-spread.ts"],"sourcesContent":["export * from './hooks';\n","import { useCapability, usePlugin } from '@embedpdf/core/react';\nimport { SpreadPlugin } from '@embedpdf/plugin-spread';\n\nexport const useSpreadPlugin = () => usePlugin<SpreadPlugin>(SpreadPlugin.id);\nexport const useSpreadCapability = () => useCapability<SpreadPlugin>(SpreadPlugin.id);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAyC;AACzC,2BAA6B;AAEtB,IAAM,kBAAkB,UAAM,wBAAwB,kCAAa,EAAE;AACrE,IAAM,sBAAsB,UAAM,4BAA4B,kCAAa,EAAE;","names":[]}
|
package/dist/react/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _embedpdf_plugin_spread from '@embedpdf/plugin-spread';
|
|
2
2
|
import { SpreadPlugin } from '@embedpdf/plugin-spread';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
4
|
+
declare const useSpreadPlugin: () => {
|
|
5
5
|
plugin: SpreadPlugin | null;
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
ready: Promise<void>;
|
|
@@ -12,4 +12,4 @@ declare const useSpreadCapability: () => {
|
|
|
12
12
|
ready: Promise<void>;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { useSpreadCapability, useSpreadPlugin };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _embedpdf_plugin_spread from '@embedpdf/plugin-spread';
|
|
2
2
|
import { SpreadPlugin } from '@embedpdf/plugin-spread';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
4
|
+
declare const useSpreadPlugin: () => {
|
|
5
5
|
plugin: SpreadPlugin | null;
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
ready: Promise<void>;
|
|
@@ -12,4 +12,4 @@ declare const useSpreadCapability: () => {
|
|
|
12
12
|
ready: Promise<void>;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { useSpreadCapability, useSpreadPlugin };
|
package/dist/react/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// src/react/hooks/use-spread.ts
|
|
2
2
|
import { useCapability, usePlugin } from "@embedpdf/core/react";
|
|
3
3
|
import { SpreadPlugin } from "@embedpdf/plugin-spread";
|
|
4
|
-
var
|
|
4
|
+
var useSpreadPlugin = () => usePlugin(SpreadPlugin.id);
|
|
5
5
|
var useSpreadCapability = () => useCapability(SpreadPlugin.id);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
useSpreadCapability,
|
|
8
|
+
useSpreadPlugin
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/react/hooks/use-spread.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/react';\nimport { SpreadPlugin } from '@embedpdf/plugin-spread';\n\nexport const
|
|
1
|
+
{"version":3,"sources":["../../src/react/hooks/use-spread.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/react';\nimport { SpreadPlugin } from '@embedpdf/plugin-spread';\n\nexport const useSpreadPlugin = () => usePlugin<SpreadPlugin>(SpreadPlugin.id);\nexport const useSpreadCapability = () => useCapability<SpreadPlugin>(SpreadPlugin.id);\n"],"mappings":";AAAA,SAAS,eAAe,iBAAiB;AACzC,SAAS,oBAAoB;AAEtB,IAAM,kBAAkB,MAAM,UAAwB,aAAa,EAAE;AACrE,IAAM,sBAAsB,MAAM,cAA4B,aAAa,EAAE;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/plugin-spread",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@embedpdf/
|
|
27
|
-
"@embedpdf/
|
|
26
|
+
"@embedpdf/plugin-loader": "1.0.1",
|
|
27
|
+
"@embedpdf/models": "1.0.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": "^18.2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react": ">=16.8.0",
|
|
36
36
|
"react-dom": ">=16.8.0",
|
|
37
37
|
"preact": "^10.26.4",
|
|
38
|
-
"@embedpdf/core": "1.0.
|
|
38
|
+
"@embedpdf/core": "1.0.1"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|