config-editor-base 1.4.9 → 1.5.3

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/README.md CHANGED
@@ -154,7 +154,7 @@ The module expects to find JSON Schema files in the structure below to facilitat
154
154
  /
155
155
  |-- dist/
156
156
  |-- schema/
157
- |-- Advanded/
157
+ |-- Advanced/
158
158
  |-- uischema-XX.YY.json
159
159
  |-- Simple/
160
160
  |-- uischema-XX.YY.json
package/dist/index.js CHANGED
@@ -55,7 +55,7 @@ var isValidSchema = function isValidSchema(file) {
55
55
  return regexSchema.test(file);
56
56
  };
57
57
  var isValidConfig = function isValidConfig(file) {
58
- var regexConfig = new RegExp('config-\\d{2}\\.\\d{2}\\.json', 'g');
58
+ var regexConfig = new RegExp('config-\\d{2}\\.\\d{2}.{0,35}\\.json', 'g');
59
59
  return regexConfig.test(file);
60
60
  };
61
61
  var getFileType = function getFileType(dropdown) {
@@ -1473,7 +1473,11 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
1473
1473
  }
1474
1474
  }, /*#__PURE__*/React.createElement("button", {
1475
1475
  type: "submit",
1476
- className: "btn btn-primary"
1476
+ className: classNames({
1477
+ btn: true,
1478
+ 'btn-primary': editorSchemaFiles.length != 0,
1479
+ 'btn-disabled': editorSchemaFiles.length == 0
1480
+ })
1477
1481
  }, ' ', "Review changes", ' ')), /*#__PURE__*/React.createElement("div", {
1478
1482
  className: "col-xs-7",
1479
1483
  style: {