@next-core/brick-kit 2.195.1 → 2.197.0

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.
@@ -1255,6 +1255,8 @@
1255
1255
  try {
1256
1256
  var result = yield PermissionApi_validatePermissions({
1257
1257
  actions
1258
+ }, {
1259
+ noAbortOnRouteChange: true
1258
1260
  });
1259
1261
  for (var item of result.actions) {
1260
1262
  permissionMap.set(item.action, item.authorizationStatus);
@@ -3682,6 +3684,16 @@
3682
3684
  });
3683
3685
  return _dev_only_debugDataValue2.apply(this, arguments);
3684
3686
  }
3687
+ function _dev_only_getLegalRuntimeValue() {
3688
+ var _runtimeContext$overr;
3689
+ var runtimeContext = _internalApiGetCurrentContext();
3690
+ return _objectSpread__default["default"]({
3691
+ app: (_runtimeContext$overr = runtimeContext === null || runtimeContext === void 0 ? void 0 : runtimeContext.overrideApp) !== null && _runtimeContext$overr !== void 0 ? _runtimeContext$overr : runtimeContext === null || runtimeContext === void 0 ? void 0 : runtimeContext.app,
3692
+ location: _.pick(location, ["href", "origin", "hostname", "host"])
3693
+ }, _.pick(runtimeContext, ["query", "sys", "match"]));
3694
+ }
3695
+
3696
+ /* istanbul ignore next */
3685
3697
  function _dev_only_updateFormPreviewSettings(appId, formId, settings) {
3686
3698
  kernel._dev_only_updateFormPreviewSettings(appId, formId, settings);
3687
3699
  }
@@ -3746,6 +3758,7 @@
3746
3758
  _defineProperty__default["default"](this, "registerLazyBricks", registerLazyBricks);
3747
3759
  _defineProperty__default["default"](this, "registerWidgetFunctions", registerWidgetFunctions);
3748
3760
  _defineProperty__default["default"](this, "registerWidgetI18n", registerWidgetI18n);
3761
+ _defineProperty__default["default"](this, "customEditors", customEditors);
3749
3762
  _defineProperty__default["default"](this, "getBasePath", getBasePath);
3750
3763
  _defineProperty__default["default"](this, "getCurrentTheme", getCurrentTheme);
3751
3764
  _defineProperty__default["default"](this, "getCurrentMode", getCurrentMode);
@@ -12549,6 +12562,25 @@
12549
12562
  registry.set(processorName, processorFunc);
12550
12563
  }
12551
12564
 
12565
+ function CustomEditorRegistry() {
12566
+ // eslint-disable-next-line @typescript-eslint/ban-types
12567
+ var registry = new Map();
12568
+ return {
12569
+ // eslint-disable-next-line @typescript-eslint/ban-types
12570
+ define(editorName, editorFunc) {
12571
+ if (registry.has(editorName)) {
12572
+ throw new Error("Custom editor of \"".concat(editorName, "\" already registered"));
12573
+ }
12574
+ registry.set(editorName, editorFunc);
12575
+ },
12576
+ // eslint-disable-next-line @typescript-eslint/ban-types
12577
+ get(editorName) {
12578
+ return registry.get(editorName);
12579
+ }
12580
+ };
12581
+ }
12582
+ var customEditors = CustomEditorRegistry();
12583
+
12552
12584
  var runtime;
12553
12585
 
12554
12586
  /** @internal */
@@ -14487,6 +14519,7 @@
14487
14519
  getContextValue: _dev_only_getContextValue,
14488
14520
  getAllContextValues: _dev_only_getAllContextValues,
14489
14521
  debugDataValue: _dev_only_debugDataValue,
14522
+ getLegalRuntimeValue: _dev_only_getLegalRuntimeValue,
14490
14523
  render: _dev_only_render,
14491
14524
  setRealTimeDataInspectRoot,
14492
14525
  addRealTimeDataInspectHook