@pdfslick/react 1.2.3 → 1.2.5
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/umd/index.js +2 -2
- package/package.json +11 -11
package/dist/umd/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).PDFSlickReact={},e.React,e.jsxRuntime,e.ReactDOM)}(this,(function(exports,React,jsxRuntime,reactDom){"use strict";const createStoreImpl=e=>{let t;const i=new Set,n=(e,n)=>{const s="function"==typeof e?e(t):e;if(!Object.is(s,t)){const e=t;t=(null!=n?n:"object"!=typeof s)?s:Object.assign({},t,s),i.forEach((i=>i(t,e)))}},s=()=>t,r={setState:n,getState:s,subscribe:e=>(i.add(e),()=>i.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}};return t=e(n,s,r),r},createStore$1=e=>e?createStoreImpl(e):createStoreImpl;function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var i=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),i}var withSelector={exports:{}},shim={exports:{}},useSyncExternalStoreShim_production_min={},hasRequiredUseSyncExternalStoreShim_production_min,hasRequiredShim;function requireUseSyncExternalStoreShim_production_min(){if(hasRequiredUseSyncExternalStoreShim_production_min)return useSyncExternalStoreShim_production_min;hasRequiredUseSyncExternalStoreShim_production_min=1;var e=React;var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,n=e.useEffect,s=e.useLayoutEffect,r=e.useDebugValue;function a(e){var i=e.getSnapshot;e=e.value;try{var n=i();return!t(e,n)}catch(e){return!0}}var o="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var o=t(),l=i({inst:{value:o,getSnapshot:t}}),h=l[0].inst,c=l[1];return s((function(){h.value=o,h.getSnapshot=t,a(h)&&c({inst:h})}),[e,o,t]),n((function(){return a(h)&&c({inst:h}),e((function(){a(h)&&c({inst:h})}))}),[e]),r(o),o};return useSyncExternalStoreShim_production_min.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:o,useSyncExternalStoreShim_production_min}function requireShim(){return hasRequiredShim||(hasRequiredShim=1,shim.exports=requireUseSyncExternalStoreShim_production_min()),shim.exports}var withSelector_production_min={},hasRequiredWithSelector_production_min;
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).PDFSlickReact={},e.React,e.jsxRuntime,e.ReactDOM)}(this,(function(exports,React,jsxRuntime,reactDom){"use strict";const createStoreImpl=e=>{let t;const i=new Set,n=(e,n)=>{const s="function"==typeof e?e(t):e;if(!Object.is(s,t)){const e=t;t=(null!=n?n:"object"!=typeof s||null===s)?s:Object.assign({},t,s),i.forEach((i=>i(t,e)))}},s=()=>t,r={setState:n,getState:s,subscribe:e=>(i.add(e),()=>i.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}};return t=e(n,s,r),r},createStore$1=e=>e?createStoreImpl(e):createStoreImpl;function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var i=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),i}var withSelector={exports:{}},shim={exports:{}},useSyncExternalStoreShim_production_min={},hasRequiredUseSyncExternalStoreShim_production_min,hasRequiredShim;function requireUseSyncExternalStoreShim_production_min(){if(hasRequiredUseSyncExternalStoreShim_production_min)return useSyncExternalStoreShim_production_min;hasRequiredUseSyncExternalStoreShim_production_min=1;var e=React;var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,n=e.useEffect,s=e.useLayoutEffect,r=e.useDebugValue;function a(e){var i=e.getSnapshot;e=e.value;try{var n=i();return!t(e,n)}catch(e){return!0}}var o="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var o=t(),l=i({inst:{value:o,getSnapshot:t}}),h=l[0].inst,c=l[1];return s((function(){h.value=o,h.getSnapshot=t,a(h)&&c({inst:h})}),[e,o,t]),n((function(){return a(h)&&c({inst:h}),e((function(){a(h)&&c({inst:h})}))}),[e]),r(o),o};return useSyncExternalStoreShim_production_min.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:o,useSyncExternalStoreShim_production_min}function requireShim(){return hasRequiredShim||(hasRequiredShim=1,shim.exports=requireUseSyncExternalStoreShim_production_min()),shim.exports}var withSelector_production_min={},hasRequiredWithSelector_production_min;
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/function requireWithSelector_production_min(){if(hasRequiredWithSelector_production_min)return withSelector_production_min;hasRequiredWithSelector_production_min=1;var e=React,t=requireShim();var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=t.useSyncExternalStore,s=e.useRef,r=e.useEffect,a=e.useMemo,o=e.useDebugValue;return withSelector_production_min.useSyncExternalStoreWithSelector=function(e,t,l,h,c){var d=s(null);if(null===d.current){var u={hasValue:!1,value:null};d.current=u}else u=d.current;d=a((function(){function e(e){if(!r){if(r=!0,n=e,e=h(e),void 0!==c&&u.hasValue){var t=u.value;if(c(t,e))return s=t}return s=e}if(t=s,i(n,e))return t;var a=h(e);return void 0!==c&&c(t,a)?t:(n=e,s=a)}var n,s,r=!1,a=void 0===l?null:l;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]}),[t,l,h,c]);var p=n(e,d[0],d[1]);return r((function(){u.hasValue=!0,u.value=p}),[p]),o(p),p},withSelector_production_min}withSelector.exports=requireWithSelector_production_min();var withSelectorExports=withSelector.exports,useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports);const{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;function useStore(e,t=e.getState,i){i&&!didWarnAboutEqualityFn&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),didWarnAboutEqualityFn=!0);const n=useSyncExternalStoreWithSelector(e.subscribe,e.getState,e.getServerState||e.getState,t,i);return
|
|
10
|
+
*/function requireWithSelector_production_min(){if(hasRequiredWithSelector_production_min)return withSelector_production_min;hasRequiredWithSelector_production_min=1;var e=React,t=requireShim();var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=t.useSyncExternalStore,s=e.useRef,r=e.useEffect,a=e.useMemo,o=e.useDebugValue;return withSelector_production_min.useSyncExternalStoreWithSelector=function(e,t,l,h,c){var d=s(null);if(null===d.current){var u={hasValue:!1,value:null};d.current=u}else u=d.current;d=a((function(){function e(e){if(!r){if(r=!0,n=e,e=h(e),void 0!==c&&u.hasValue){var t=u.value;if(c(t,e))return s=t}return s=e}if(t=s,i(n,e))return t;var a=h(e);return void 0!==c&&c(t,a)?t:(n=e,s=a)}var n,s,r=!1,a=void 0===l?null:l;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]}),[t,l,h,c]);var p=n(e,d[0],d[1]);return r((function(){u.hasValue=!0,u.value=p}),[p]),o(p),p},withSelector_production_min}withSelector.exports=requireWithSelector_production_min();var withSelectorExports=withSelector.exports,useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports);const{useDebugValue:useDebugValue}=React,{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;function useStore(e,t=e.getState,i){i&&!didWarnAboutEqualityFn&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),didWarnAboutEqualityFn=!0);const n=useSyncExternalStoreWithSelector(e.subscribe,e.getState,e.getServerState||e.getState,t,i);return useDebugValue(n),n}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}},_nodeResolve_empty={},_nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty}),require$$5=getAugmentedNamespace(_nodeResolve_empty$1);
|
|
11
11
|
/**
|
|
12
12
|
* @licstart The following is the entire license notice for the
|
|
13
13
|
* JavaScript code in this page
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdfslick/react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"source": "./index.tsx",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
"build": "rollup --config node:@pdfslick/rollup-config --environment NODE_ENV:production && cp ../core/dist/pdf_viewer.css ./dist"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/react": "^18.2.
|
|
47
|
-
"concurrently": "^8.2.
|
|
48
|
-
"eslint": "^8.
|
|
49
|
-
"eslint-config-custom": "
|
|
46
|
+
"@types/react": "^18.2.41",
|
|
47
|
+
"concurrently": "^8.2.2",
|
|
48
|
+
"eslint": "^8.55.0",
|
|
49
|
+
"eslint-config-custom": "0.0.0",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
|
-
"tsconfig": "
|
|
52
|
-
"typescript": "^5.
|
|
53
|
-
"wait-on": "^7.0
|
|
51
|
+
"tsconfig": "0.0.0",
|
|
52
|
+
"typescript": "^5.3.2",
|
|
53
|
+
"wait-on": "^7.2.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": ">=17",
|
|
57
57
|
"react-dom": ">=17"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@pdfslick/core": "
|
|
61
|
-
"react-use": "^17.4.
|
|
62
|
-
"zustand": "^4.4.
|
|
60
|
+
"@pdfslick/core": "^1.2.5",
|
|
61
|
+
"react-use": "^17.4.2",
|
|
62
|
+
"zustand": "^4.4.7"
|
|
63
63
|
},
|
|
64
64
|
"rollup": {
|
|
65
65
|
"globals": {
|