ydb-components-material 0.1.146 → 0.1.147

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.
@@ -60,6 +60,7 @@ var FileList = function FileList(_ref) {
60
60
  if (stored) {
61
61
  try {
62
62
  setFileArray(JSON.parse(stored));
63
+ localStorage.removeItem(tokenTY);
63
64
  } catch (e) {}
64
65
  } else {
65
66
  setFileArray(fileList);
@@ -747,15 +747,6 @@ var FileItem = function FileItem(_ref) {
747
747
  format: format
748
748
  });
749
749
  };
750
- var invalidHandle = function invalidHandle() {
751
- // 分享出去的需要别人签署的文件数据。标识为无效
752
- if (file.signId) {
753
- saveSignerInfo({
754
- uuid: file.signId,
755
- invalid: true
756
- });
757
- }
758
- };
759
750
  var handleDel = /*#__PURE__*/function () {
760
751
  var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
761
752
  return _regeneratorRuntime.wrap(function (_context7) {
@@ -910,10 +901,9 @@ var FileItem = function FileItem(_ref) {
910
901
  contrId = _JSON$parse.contractId,
911
902
  docId = _JSON$parse.documentId,
912
903
  nameVal = _JSON$parse.fileName,
913
- storedFileId = _JSON$parse.fileId,
914
904
  originalUrl = _JSON$parse.fileUrl;
915
905
  console.log('docId', docId, contrId, nameVal);
916
- localStorage.removeItem(storedFileId);
906
+ localStorage.removeItem(fileId);
917
907
  originalUrlRef.current = originalUrl || '';
918
908
  if (docId && contrId && nameVal) {
919
909
  openLoading();
@@ -66,6 +66,7 @@ var FileList = function FileList(_ref) {
66
66
  if (stored) {
67
67
  try {
68
68
  setFileArray(JSON.parse(stored));
69
+ localStorage.removeItem(tokenTY);
69
70
  } catch (e) {}
70
71
  } else {
71
72
  setFileArray(fileList);
@@ -753,15 +753,6 @@ var FileItem = function FileItem(_ref) {
753
753
  format: format
754
754
  });
755
755
  };
756
- var invalidHandle = function invalidHandle() {
757
- // 分享出去的需要别人签署的文件数据。标识为无效
758
- if (file.signId) {
759
- saveSignerInfo({
760
- uuid: file.signId,
761
- invalid: true
762
- });
763
- }
764
- };
765
756
  var handleDel = /*#__PURE__*/function () {
766
757
  var _ref8 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7() {
767
758
  return _regenerator["default"].wrap(function (_context7) {
@@ -916,10 +907,9 @@ var FileItem = function FileItem(_ref) {
916
907
  contrId = _JSON$parse.contractId,
917
908
  docId = _JSON$parse.documentId,
918
909
  nameVal = _JSON$parse.fileName,
919
- storedFileId = _JSON$parse.fileId,
920
910
  originalUrl = _JSON$parse.fileUrl;
921
911
  console.log('docId', docId, contrId, nameVal);
922
- localStorage.removeItem(storedFileId);
912
+ localStorage.removeItem(fileId);
923
913
  originalUrlRef.current = originalUrl || '';
924
914
  if (docId && contrId && nameVal) {
925
915
  openLoading();
@@ -98,7 +98,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
98
98
  packageName = 'ydb-components-material';
99
99
  }
100
100
  if (version === void 0) {
101
- version = '0.1.146';
101
+ version = '0.1.147';
102
102
  }
103
103
  if (basicLibraryVersion === void 0) {
104
104
  basicLibraryVersion = {
@@ -103,7 +103,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
103
103
  packageName = 'ydb-components-material';
104
104
  }
105
105
  if (version === void 0) {
106
- version = '0.1.146';
106
+ version = '0.1.147';
107
107
  }
108
108
  if (basicLibraryVersion === void 0) {
109
109
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.146",
3
+ "version": "0.1.147",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -102,10 +102,10 @@
102
102
  },
103
103
  "componentConfig": {
104
104
  "isComponentLibrary": true,
105
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.146/build/lowcode/assets-prod.json"
105
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.147/build/lowcode/assets-prod.json"
106
106
  },
107
107
  "lcMeta": {
108
108
  "type": "component"
109
109
  },
110
- "homepage": "https://unpkg.com/ydb-components-material@0.1.146/build/index.html"
110
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.147/build/index.html"
111
111
  }