@zero-library/common 3.0.8 → 3.0.10

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.js CHANGED
@@ -63,7 +63,6 @@ var reactHotkeysHook = require('react-hotkeys-hook');
63
63
  var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
64
64
  var throttle = require('lodash.throttle');
65
65
 
66
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
67
66
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
68
67
 
69
68
  function _interopNamespace(e) {
@@ -295,11 +294,6 @@ var isJson = (text = "") => {
295
294
  return false;
296
295
  }
297
296
  };
298
- var isDocument = (fileName) => {
299
- if (!fileName) return false;
300
- const ext = getFileSuffixName(fileName);
301
- return ["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "csv"].includes(ext);
302
- };
303
297
  var OperatorToMethodName = {
304
298
  "+": "plus",
305
299
  "-": "minus",
@@ -2814,7 +2808,7 @@ var CodePreview = ({ fileUrl, suffix }) => {
2814
2808
  };
2815
2809
  var CodePreview_default = CodePreview;
2816
2810
  var { Text } = antd.Typography;
2817
- pdfjsLib__namespace.GlobalWorkerOptions.workerSrc = new URL("./pdf.worker.min.mjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs.js', document.baseURI).href))).toString();
2811
+ pdfjsLib__namespace.GlobalWorkerOptions.workerSrc = "https://unpkg.com/pdfjs-dist@5.4.296/legacy/build/pdf.worker.min.mjs";
2818
2812
  var MIN_SCALE = 0.6;
2819
2813
  var MAX_SCALE = 1.5;
2820
2814
  var SCALE_STEP = 0.1;
@@ -10018,7 +10012,6 @@ exports.isBlob = isBlob;
10018
10012
  exports.isBoolean = isBoolean;
10019
10013
  exports.isDate = isDate;
10020
10014
  exports.isDef = isDef;
10021
- exports.isDocument = isDocument;
10022
10015
  exports.isElement = isElement;
10023
10016
  exports.isEmpty = isEmpty;
10024
10017
  exports.isEmptyObj = isEmptyObj;