config-editor-base 1.5.4 → 1.5.5

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 CHANGED
@@ -1382,7 +1382,8 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
1382
1382
  schemaContent = _this$props.schemaContent,
1383
1383
  editorTools = _this$props.editorTools,
1384
1384
  sideBarPadding = _this$props.sideBarPadding;
1385
- console.log('editorConfigFiles', editorConfigFiles);
1385
+ var editorUISchemaFile = editorUISchemaFiles[0] ? editorUISchemaFiles[0].name : "";
1386
+ var editorUIAdvancedSimpleTest = editorUISchemaFile.includes("Simple") || editorUISchemaFile.includes("Advanced");
1386
1387
  var FormWithNav = schemaContent ? applyNav(Form, EditorNavs) : Form;
1387
1388
  var editorToolsFull = editorTools.concat({
1388
1389
  name: 'partialconfig-modal',
@@ -1438,7 +1439,11 @@ var EditorSection = /*#__PURE__*/function (_React$Component) {
1438
1439
  className: "schema-loader-callout uischema-loader"
1439
1440
  }, /*#__PURE__*/React.createElement("p", {
1440
1441
  className: "loader-callout"
1441
- }, "Load your UIschema File ", /*#__PURE__*/React.createElement("br", null), "(uischema-XX.YY.json)")) : null, /*#__PURE__*/React.createElement(FormWithNav, {
1442
+ }, "Load your UIschema File ", /*#__PURE__*/React.createElement("br", null), "(uischema-XX.YY.json)")) : null, editorConfigFiles.length != 0 && editorSchemaFiles.length != 0 && editorUIAdvancedSimpleTest == true ? /*#__PURE__*/React.createElement("div", {
1443
+ className: "schema-loader-callout uischema-loader fadeout-box"
1444
+ }, /*#__PURE__*/React.createElement("p", {
1445
+ className: "loader-callout"
1446
+ }, "Toggle simple/advanced settings")) : null, /*#__PURE__*/React.createElement(FormWithNav, {
1442
1447
  omitExtraData: true,
1443
1448
  liveOmit: true,
1444
1449
  liveValidate: true,