@singularsystems/neo-react 1.0.6 → 1.0.7

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 { __assign, __decorate, __extends, __metadata, __rest } from "tslib";
2
2
  import React from 'react';
3
3
  import { observer } from 'mobx-react';
4
+ import { Misc, Utils } from '@singularsystems/neo-core';
4
5
  import Button from '../Button';
5
6
  import { FileContext } from './FileContext';
6
7
  import FileBasicInput from './FileBasicInput';
@@ -30,8 +31,7 @@ var FileUploadButton = /** @class */ (function (_super) {
30
31
  }
31
32
  if (!buttonProps)
32
33
  buttonProps = {};
33
- if (!buttonProps.variant)
34
- buttonProps.variant = "light";
34
+ Utils.populatePartialWithDefaults(buttonProps, Misc.Settings.fileManager.browseButton);
35
35
  if (this.fileManager.isUploading && !this.fileManager.options.allowConcurrent) {
36
36
  buttonProps.disabled = true;
37
37
  }
@@ -114,5 +114,6 @@ var neoFontAwesomeMappings = [
114
114
  ["greater-than", ""],
115
115
  ["greater-than-equal", ""],
116
116
  ["stamp", "approval"],
117
- ["circle-notch", "progress_activity"]
117
+ ["circle-notch", "progress_activity"],
118
+ ["cube", "deployed_code"]
118
119
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-react",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "React application logic and components for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "typescript": "5.4.2"
32
32
  },
33
33
  "dependencies": {
34
- "@singularsystems/neo-core": "1.0.3",
34
+ "@singularsystems/neo-core": "1.0.4",
35
35
  "@types/rc-slider": "^8.6.5",
36
36
  "@types/react-color": "^3.0.1",
37
37
  "axios": "1.6.7",
@@ -49,7 +49,7 @@
49
49
  "tslib": "2.5.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "@singularsystems/neo-core": ">=1.0.2",
52
+ "@singularsystems/neo-core": ">=1.0.4",
53
53
  "axios": ">=1.6.2",
54
54
  "inversify": ">=5.0.1",
55
55
  "mobx": ">=6.9.0",