tenjin-ui-kit 0.2.190 → 0.2.191

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.
@@ -56,7 +56,7 @@ var FileUploader = function FileUploader(props) {
56
56
  if (selectedFile) {
57
57
  var _selectedFile$name, _selectedFile$name$sp, _selectedFile$name$sp2;
58
58
  var excludedExtensions = [".zip", ".exe", ".batch", ".webm", ".mp4", ".mp3", ".bat", ".js", ".vbs", ".html", ".scr", ".cmd", ".rar", ".svg", ".lnk"];
59
- var includedExtensions = [".xlsx", ".xls", ".csv", ".png", ".jpg", ".txt", ".pdf", ".doc", ".docx", ".ppt"];
59
+ var includedExtensions = [".xlsx", ".xls", ".csv", ".png", ".jpg", ".txt", ".pdf", ".doc", ".docx", ".ppt", ".yml", ".yaml"];
60
60
  var fileExtension = selectedFile === null || selectedFile === void 0 ? void 0 : (_selectedFile$name = selectedFile.name) === null || _selectedFile$name === void 0 ? void 0 : (_selectedFile$name$sp = _selectedFile$name.split(".")) === null || _selectedFile$name$sp === void 0 ? void 0 : (_selectedFile$name$sp2 = _selectedFile$name$sp.pop()) === null || _selectedFile$name$sp2 === void 0 ? void 0 : _selectedFile$name$sp2.toLowerCase();
61
61
  if (excludedExtensions.some(function (ext) {
62
62
  return selectedFile.name.endsWith(ext);
@@ -81,7 +81,7 @@ var FileUploader = function FileUploader(props) {
81
81
  if (droppedFiles.length > 0) {
82
82
  var _droppedFiles$, _droppedFiles$$name, _droppedFiles$$name$s, _droppedFiles$$name$s2;
83
83
  var excludedExtensions = [".zip", ".exe", ".batch", ".webm", ".mp4", ".mp3", ".bat", ".js", ".vbs", ".html", ".scr", ".cmd", ".rar", ".svg", ".lnk"];
84
- var includedExtensions = [".xlsx", ".xls", ".csv", ".png", ".jpg", ".txt", ".pdf", ".doc", ".docx", ".ppt"];
84
+ var includedExtensions = [".xlsx", ".xls", ".csv", ".png", ".jpg", ".txt", ".pdf", ".doc", ".docx", ".ppt", ".yml", ".yaml"];
85
85
  var fileExtension = (_droppedFiles$ = droppedFiles[0]) === null || _droppedFiles$ === void 0 ? void 0 : (_droppedFiles$$name = _droppedFiles$.name) === null || _droppedFiles$$name === void 0 ? void 0 : (_droppedFiles$$name$s = _droppedFiles$$name.split(".")) === null || _droppedFiles$$name$s === void 0 ? void 0 : (_droppedFiles$$name$s2 = _droppedFiles$$name$s.pop()) === null || _droppedFiles$$name$s2 === void 0 ? void 0 : _droppedFiles$$name$s2.toLowerCase();
86
86
  if (excludedExtensions !== null && excludedExtensions !== void 0 && excludedExtensions.some(function (ext) {
87
87
  var _droppedFiles$2, _droppedFiles$2$name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tenjin-ui-kit",
3
- "version": "0.2.190",
3
+ "version": "0.2.191",
4
4
  "repository": {
5
5
  "url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
6
6
  },