@next-core/brick-kit 2.157.2 → 2.157.4

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.esm.js CHANGED
@@ -6603,7 +6603,7 @@ function _standaloneBootstrap() {
6603
6603
  })];
6604
6604
  if (!window.NO_AUTH_GUARD) {
6605
6605
  var matches;
6606
- var appId = window.APP_ID || (window.APP_ROOT && (matches = window.APP_ROOT.match(/^(?:\/next)?\/sa-static\/([^/]+)\/versions\//)) ? matches[1] : null);
6606
+ var appId = window.APP_ID || (window.APP_ROOT && (matches = window.APP_ROOT.match(/^(?:(?:\/next)?\/)?sa-static\/([^/]+)\/versions\//)) ? matches[1] : null);
6607
6607
  if (appId) {
6608
6608
  // No need to wait.
6609
6609
  safeGetRuntimeMicroAppStandalone(appId);
@@ -6685,6 +6685,7 @@ function _safeGetRuntimeMicroAppStandalone() {
6685
6685
  console.warn("request standalone runtime api from micro-app-standalone failed: ", error, ", something might went wrong running standalone micro app");
6686
6686
  });
6687
6687
  appRuntimeDataMap.set(appId, promise);
6688
+ return promise;
6688
6689
  });
6689
6690
  return _safeGetRuntimeMicroAppStandalone.apply(this, arguments);
6690
6691
  }
@@ -9303,7 +9304,7 @@ function getStoryboard(datasource, result, fields, isPreview, formContextId) {
9303
9304
  dataItem.properties = _objectSpread(_objectSpread({}, dataItem.properties), {}, {
9304
9305
  className: "form-preview"
9305
9306
  });
9306
- dataItem.events = {
9307
+ dataItem.events = _objectSpread(_objectSpread({}, dataItem.events), {}, {
9307
9308
  "validate.error": [{
9308
9309
  action: "preview.debug",
9309
9310
  args: ["validate.error", "<% EVENT.detail %>"]
@@ -9312,7 +9313,7 @@ function getStoryboard(datasource, result, fields, isPreview, formContextId) {
9312
9313
  action: "preview.debug",
9313
9314
  args: ["validate.success", "<% EVENT.detail %>"]
9314
9315
  }]
9315
- };
9316
+ });
9316
9317
  }
9317
9318
  //数据初始化:与默认属性进行合并
9318
9319
  Object.keys(defaultProperties).forEach(item => {