superdesk-ui-framework 4.0.21 → 4.0.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superdesk-ui-framework",
3
- "version": "4.0.21",
3
+ "version": "4.0.23",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -49,8 +49,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
49
49
  Object.defineProperty(exports, "__esModule", { value: true });
50
50
  exports.IconPicker = void 0;
51
51
  var React = __importStar(require("react"));
52
- // @ts-ignore
53
- var iconFont = __importStar(require("../../app/styles/_icon-font.scss"));
54
52
  var Button_1 = require("./Button");
55
53
  var Icon_1 = require("./Icon");
56
54
  var SelectGrid_1 = require("./SelectGrid");
@@ -281,11 +279,8 @@ var getIcons = function (translateFunction) {
281
279
  'zoom-in': 'Zoom In',
282
280
  'zoom-out': 'Zoom Out',
283
281
  };
284
- return iconFont.icon
285
- .split(', ')
286
- .sort()
287
- .map(function (icon) { return ({
282
+ return Object.keys(translatedIconNameMap).sort().map(function (icon) { return ({
288
283
  value: icon,
289
- label: translatedIconNameMap[icon] ? translateFunction(translatedIconNameMap[icon]) : icon,
284
+ label: translateFunction(translatedIconNameMap[icon]),
290
285
  }); });
291
286
  };
@@ -5,5 +5,6 @@ module.exports = merge(webpackConfig, {
5
5
  externals: [
6
6
  'react',
7
7
  'react-dom',
8
+ 'angular',
8
9
  ],
9
10
  });