@embedpdf/plugin-viewport 2.4.1 → 2.6.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.
- package/dist/preact/index.js +2 -2
- package/dist/react/index.js +2 -2
- package/dist/svelte/index.js +1 -1
- package/dist/vue/index.js +2 -2
- package/package.json +5 -5
package/dist/preact/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "preact/jsx-runtime";
|
|
2
2
|
import { createContext } from "preact";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useState, useEffect, useContext, useRef, useLayoutEffect } from "preact/hooks";
|
|
4
|
+
import { useCapability, usePlugin } from "@embedpdf/core/preact";
|
|
5
5
|
import { ViewportPlugin } from "@embedpdf/plugin-viewport";
|
|
6
6
|
export * from "@embedpdf/plugin-viewport";
|
|
7
7
|
const ViewportElementContext = createContext(null);
|
package/dist/react/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext,
|
|
3
|
-
import {
|
|
2
|
+
import { createContext, useState, useEffect, useContext, useRef, useLayoutEffect } from "react";
|
|
3
|
+
import { useCapability, usePlugin } from "@embedpdf/core/react";
|
|
4
4
|
import { ViewportPlugin } from "@embedpdf/plugin-viewport";
|
|
5
5
|
export * from "@embedpdf/plugin-viewport";
|
|
6
6
|
const ViewportElementContext = createContext(null);
|
package/dist/svelte/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as $ from "svelte/internal/client";
|
|
3
3
|
import { setContext } from "svelte";
|
|
4
|
-
import {
|
|
4
|
+
import { usePlugin, useCapability } from "@embedpdf/core/svelte";
|
|
5
5
|
import { ViewportPlugin } from "@embedpdf/plugin-viewport";
|
|
6
6
|
export * from "@embedpdf/plugin-viewport";
|
|
7
7
|
const useViewportPlugin = () => usePlugin(ViewportPlugin.id);
|
package/dist/vue/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref, watch, toValue, onBeforeUnmount, defineComponent, useAttrs, provide,
|
|
2
|
-
import {
|
|
1
|
+
import { ref, watch, toValue, onBeforeUnmount, defineComponent, useAttrs, provide, openBlock, createElementBlock, mergeProps, unref, renderSlot, createCommentVNode } from "vue";
|
|
2
|
+
import { usePlugin, useCapability } from "@embedpdf/core/vue";
|
|
3
3
|
import { ViewportPlugin } from "@embedpdf/plugin-viewport";
|
|
4
4
|
export * from "@embedpdf/plugin-viewport";
|
|
5
5
|
const useViewportPlugin = () => usePlugin(ViewportPlugin.id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embedpdf/plugin-viewport",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@embedpdf/models": "2.
|
|
38
|
+
"@embedpdf/models": "2.6.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/react": "^18.2.0",
|
|
42
42
|
"typescript": "^5.0.0",
|
|
43
|
-
"@embedpdf/
|
|
44
|
-
"@embedpdf/
|
|
43
|
+
"@embedpdf/build": "1.1.0",
|
|
44
|
+
"@embedpdf/core": "2.6.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=16.8.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"preact": "^10.26.4",
|
|
50
50
|
"vue": ">=3.2.0",
|
|
51
51
|
"svelte": ">=5 <6",
|
|
52
|
-
"@embedpdf/core": "2.
|
|
52
|
+
"@embedpdf/core": "2.6.0"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
55
|
"dist",
|