dtable-ui-component 0.1.75-beta2 → 0.1.75-beta6

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.
@@ -24,7 +24,7 @@ var FileItemFormatter = /*#__PURE__*/function (_Component) {
24
24
  _this.getFileIconData = function (item) {
25
25
  var fileIconUrl = getFileIconUrl(item.name, item.type);
26
26
 
27
- var fileIconData = require(fileIconUrl);
27
+ var fileIconData = require('../' + fileIconUrl);
28
28
 
29
29
  return fileIconData;
30
30
  };
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { default as toaster } from './toast';
1
+ export { default as toaster } from './toaster';
2
2
  export { setLocale } from './lang';
3
3
  export { getDateDisplayString, getNumberDisplayString, formatStringToNumber, formatNumberString } from './utils/value-format-utils';
4
4
  export { default as CheckboxFormatter } from './CheckboxFormatter';
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
- var hrefReg = /\[.+\]\(\S+\)|<img src=(\S+).+\/>|!\[\]\(\S+\)|<\S+>/g;
2
- var imageReg1 = /^<img( width=[\\|/|"](\d)+[\\|/|"])? src="(\S+)" .?\/>/;
1
+ var hrefReg = /\[.+\]\(\S+\)|<img( width=[\\|/]?"(\d)+[\\|/|]?")? src=(\S+).+\/>|!\[\]\(\S+\)|<\S+>/g;
2
+ var imageReg1 = /^<img( width=[\\|/]?"(\d)+[\\|/|]?")? src="(\S+)" .?\/>/;
3
3
  var imageReg2 = /^!\[\]\((\S+)\)/;
4
4
  var linkReg1 = /^\[.+\]\(\S+\)/;
5
5
  var linkReg2 = /^<\S+>$/;
@@ -48,6 +48,7 @@ function float2Fixed(num) {
48
48
  function checkBoundary(num) {
49
49
  if (_boundaryCheckingState) {
50
50
  if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
51
+ // eslint-disable-next-line no-console
51
52
  console.warn("".concat(num, " is beyond boundary when transfer to integer, the results may not be accurate"));
52
53
  }
53
54
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable no-case-declarations */
1
2
  import moment from 'moment';
2
3
  import NP from './number-precision';
3
4
  import { NUMBER_TYPES, DEFAULT_NUMBER_FORMAT, DURATION_FORMATS_MAP, DURATION_FORMATS, DURATION_ZERO_DISPLAY, DURATION_DECIMAL_DIGITS, FORMULA_RESULT_TYPE, COLLABORATOR_COLUMN_TYPES, ARRAY_FORMAL_COLUMNS_TYPES, DEFAULT_DATE_FORMAT } from '../constants';
@@ -167,6 +168,7 @@ export var getDateDisplayString = function getDateDisplayString(value, format) {
167
168
  switch (format) {
168
169
  case 'D/M/YYYY':
169
170
  case 'DD/MM/YYYY':
171
+ // no-case-declarations
170
172
  var formatValue = date.format('YYYY-MM-DD');
171
173
  var formatValueList = formatValue.split('-');
172
174
  return "".concat(formatValueList[2], "/").concat(formatValueList[1], "/").concat(formatValueList[0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.75beta2",
3
+ "version": "0.1.75beta6",
4
4
  "main": "./es/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",
@@ -45,11 +45,11 @@
45
45
  "eslint": "eslint --ext .jsx,.js src --max-warnings=0",
46
46
  "storybook": "start-storybook -p 6006",
47
47
  "build-storybook": "build-storybook -c .storybook -o docs",
48
- "pub:esm": "npm run clean:lib && export BABEL_ENV=production && ./node_modules/.bin/babel src --out-dir lib --copy-files",
49
- "pub:lib": "npm run clean:esm && export BABEL_ENV=node && ./node_modules/.bin/babel src --out-dir lib --copy-files",
48
+ "pub:esm": "npm run clean:esm && export BABEL_ENV=node && ./node_modules/.bin/babel src --out-dir es --copy-files",
49
+ "pub:lib": "npm run clean:lib && export BABEL_ENV=production && ./node_modules/.bin/babel src --out-dir lib --copy-files",
50
50
  "pub:umd": "npm run build",
51
51
  "pub:optimized": "rm lib/index.local.js",
52
- "prepublishOnly": "npm run pub:esm && npm run pub:umd && npm run pub:optimized"
52
+ "prepublishOnly": "npm run pub:lib && npm run pub:umd && npm run pub:optimized"
53
53
  },
54
54
  "files": [
55
55
  "assets",