intelicoreact 1.0.42 → 1.0.44

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.
@@ -1,6 +1,7 @@
1
1
  // @import '../../scss/main.scss';
2
2
 
3
3
  .file-loader {
4
+ overflow: hidden;
4
5
  position: relative;
5
6
 
6
7
  display: flex;
@@ -34,6 +35,8 @@
34
35
  }
35
36
 
36
37
  &__value-link {
38
+ width: calc(100% - 16px);
39
+
37
40
  display: flex;
38
41
  align-items: center;
39
42
  flex-flow: row nowrap;
@@ -62,6 +65,10 @@
62
65
  }
63
66
 
64
67
  &__value-name {
68
+ width: calc(100% - 20px);
69
+ overflow: hidden;
70
+ text-overflow: ellipsis;
71
+ white-space: nowrap;
65
72
  margin-left: 4px;
66
73
  }
67
74
 
@@ -74,7 +81,9 @@
74
81
 
75
82
  &__delete-value-button {
76
83
  width: 16px;
84
+ min-width: 16px;
77
85
  height: 16px;
86
+ min-height: 16px;
78
87
 
79
88
  cursor: pointer;
80
89
 
@@ -103,7 +103,9 @@ var TagsDropdown = function TagsDropdown(_ref) {
103
103
 
104
104
  var target = _ref2.target;
105
105
 
106
- if (!((_getListContainer = getListContainer()) !== null && _getListContainer !== void 0 && _getListContainer.contains(target)) && !isTargetInParent(target)) {
106
+ if (!((_getListContainer = getListContainer()) !== null && _getListContainer !== void 0 && _getListContainer.contains(target))
107
+ /* && !isTargetInParent(target) */
108
+ ) {
107
109
  setIsOpen(false);
108
110
  setSearchValue('');
109
111
  }
@@ -162,12 +162,13 @@ var AbortableFetch = /*#__PURE__*/function () {
162
162
  var abortController = new AbortController();
163
163
  var externalRequest = Promise.all(requests.map( /*#__PURE__*/function () {
164
164
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(item) {
165
- var request;
165
+ var safelyQuery, request;
166
166
  return _regenerator.default.wrap(function _callee$(_context) {
167
167
  while (1) {
168
168
  switch (_context.prev = _context.next) {
169
169
  case 0:
170
- request = fetch("".concat(item.pathPrefix).concat(item.path).concat(item.queryParameters), _objectSpread(_objectSpread(_objectSpread({}, item.options), {}, {
170
+ safelyQuery = item.path.includes('?') ? "&".concat(item.queryParameters.replace(/\?/g, '')) : item.queryParameters;
171
+ request = fetch("".concat(item.pathPrefix).concat(item.path).concat(safelyQuery), _objectSpread(_objectSpread(_objectSpread({}, item.options), {}, {
171
172
  method: item.method,
172
173
  headers: item.headers
173
174
  }, item.body ? {
@@ -195,7 +196,7 @@ var AbortableFetch = /*#__PURE__*/function () {
195
196
  });
196
197
  return _context.abrupt("return", request);
197
198
 
198
- case 5:
199
+ case 6:
199
200
  case "end":
200
201
  return _context.stop();
201
202
  }
@@ -358,8 +359,10 @@ var AbortableFetch = /*#__PURE__*/function () {
358
359
  value: function getQueryArray(value) {
359
360
  var _value$replace;
360
361
 
361
- if (typeof value === 'string') return value === null || value === void 0 ? void 0 : (_value$replace = value.replace(/\?/g, '')) === null || _value$replace === void 0 ? void 0 : _value$replace.split('&');else if (Array.isArray(value)) return value;else if ((0, _typeof2.default)(value) === 'object' && value !== null) return Object.keys(value).filter(function (key) {
362
- return value[key];
362
+ if (typeof value === 'string') return value === null || value === void 0 ? void 0 : (_value$replace = value.replace(/\?/g, '')) === null || _value$replace === void 0 ? void 0 : _value$replace.split('&');else if (Array.isArray(value)) return value.map(function (item) {
363
+ return item.replace(/\?/g, '');
364
+ });else if ((0, _typeof2.default)(value) === 'object' && value !== null) return Object.keys(value).filter(function (key) {
365
+ return key && value[key];
363
366
  }).map(function (key) {
364
367
  return "".concat(key, "=").concat(value[key]);
365
368
  });else return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [