config-editor-base 1.7.0 → 1.7.2
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/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -90,7 +90,7 @@ var set = function set(alert) {
|
|
|
90
90
|
var demoConfig = 'config-01.04.json';
|
|
91
91
|
var regexUISchemaPublic = new RegExp(/^uischema-\d{2}\.\d{2}\.json/, 'g');
|
|
92
92
|
var regexSchemaPublic = new RegExp(/^schema-\d{2}\.\d{2}\.json/, 'g');
|
|
93
|
-
var isValidUISchema = function isValidUISchema(file) {
|
|
93
|
+
var isValidUISchema$1 = function isValidUISchema(file) {
|
|
94
94
|
var regexUiSchema = new RegExp('uischema-\\d{2}\\.\\d{2}\\.json', 'g');
|
|
95
95
|
return regexUiSchema.test(file);
|
|
96
96
|
};
|
|
@@ -266,7 +266,7 @@ var handleUploadedFile = function handleUploadedFile(file, dropdown, schemaAry,
|
|
|
266
266
|
|
|
267
267
|
if (contentJSON != null) {
|
|
268
268
|
switch (true) {
|
|
269
|
-
case type == "uischema" && isValidUISchema(file.name):
|
|
269
|
+
case type == "uischema" && isValidUISchema$1(file.name):
|
|
270
270
|
dispatch(setUISchemaContent(contentJSON));
|
|
271
271
|
dispatch(resetLocalUISchemaList());
|
|
272
272
|
dispatch(setUISchemaFile([fileNameDisplay]));
|
|
@@ -18471,7 +18471,7 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
18471
18471
|
value: selection,
|
|
18472
18472
|
label: selection
|
|
18473
18473
|
}, _this$setState), function () {
|
|
18474
|
-
if (_this3.s3 && !selection.includes('(local)')) {
|
|
18474
|
+
if (_this3.s3 && !selection.includes('Simple') && !selection.includes('Advanced') && !selection.includes('(local)')) {
|
|
18475
18475
|
_this3.props.fetchFileContentExt(selection, fileType);
|
|
18476
18476
|
} else {
|
|
18477
18477
|
_this3.props.fetchFileContent(selection, fileType);
|
|
@@ -18520,6 +18520,15 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
|
|
|
18520
18520
|
var configLocal = nextProps.editorConfigFiles.filter(function (file) {
|
|
18521
18521
|
return file.name.includes('(local)');
|
|
18522
18522
|
});
|
|
18523
|
+
var uiS3 = nextProps.editorUISchemaFiles.filter(function (file) {
|
|
18524
|
+
return isValidUISchema(file);
|
|
18525
|
+
});
|
|
18526
|
+
|
|
18527
|
+
if (uiS3.length) {
|
|
18528
|
+
this.setState({
|
|
18529
|
+
selecteduischema: uiS3[0].name
|
|
18530
|
+
});
|
|
18531
|
+
}
|
|
18523
18532
|
|
|
18524
18533
|
if (uiLocal.length) {
|
|
18525
18534
|
this.setState({
|