@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.
- package/dist/index.bundle.js +33 -0
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +33 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/CustomEditors.d.ts +5 -0
- package/dist/types/core/CustomEditors.d.ts.map +1 -0
- package/dist/types/core/Runtime.d.ts +6 -1
- package/dist/types/core/Runtime.d.ts.map +1 -1
- package/dist/types/core/exports.d.ts +1 -0
- package/dist/types/core/exports.d.ts.map +1 -1
- package/dist/types/core/interfaces.d.ts +10 -1
- package/dist/types/core/interfaces.d.ts.map +1 -1
- package/dist/types/developHelper.d.ts +2 -1
- package/dist/types/developHelper.d.ts.map +1 -1
- package/dist/types/internal/checkPermissions.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1257,6 +1257,8 @@ function _validatePermissions() {
|
|
|
1257
1257
|
try {
|
|
1258
1258
|
var result = yield PermissionApi_validatePermissions({
|
|
1259
1259
|
actions
|
|
1260
|
+
}, {
|
|
1261
|
+
noAbortOnRouteChange: true
|
|
1260
1262
|
});
|
|
1261
1263
|
for (var item of result.actions) {
|
|
1262
1264
|
permissionMap.set(item.action, item.authorizationStatus);
|
|
@@ -3684,6 +3686,16 @@ function _dev_only_debugDataValue2() {
|
|
|
3684
3686
|
});
|
|
3685
3687
|
return _dev_only_debugDataValue2.apply(this, arguments);
|
|
3686
3688
|
}
|
|
3689
|
+
function _dev_only_getLegalRuntimeValue() {
|
|
3690
|
+
var _runtimeContext$overr;
|
|
3691
|
+
var runtimeContext = _internalApiGetCurrentContext();
|
|
3692
|
+
return _objectSpread({
|
|
3693
|
+
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,
|
|
3694
|
+
location: pick(location, ["href", "origin", "hostname", "host"])
|
|
3695
|
+
}, pick(runtimeContext, ["query", "sys", "match"]));
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
/* istanbul ignore next */
|
|
3687
3699
|
function _dev_only_updateFormPreviewSettings(appId, formId, settings) {
|
|
3688
3700
|
kernel._dev_only_updateFormPreviewSettings(appId, formId, settings);
|
|
3689
3701
|
}
|
|
@@ -3748,6 +3760,7 @@ class Runtime {
|
|
|
3748
3760
|
_defineProperty$1(this, "registerLazyBricks", registerLazyBricks);
|
|
3749
3761
|
_defineProperty$1(this, "registerWidgetFunctions", registerWidgetFunctions);
|
|
3750
3762
|
_defineProperty$1(this, "registerWidgetI18n", registerWidgetI18n);
|
|
3763
|
+
_defineProperty$1(this, "customEditors", customEditors);
|
|
3751
3764
|
_defineProperty$1(this, "getBasePath", getBasePath);
|
|
3752
3765
|
_defineProperty$1(this, "getCurrentTheme", getCurrentTheme);
|
|
3753
3766
|
_defineProperty$1(this, "getCurrentMode", getCurrentMode);
|
|
@@ -12551,6 +12564,25 @@ function registerCustomProcessor(processorFullName, processorFunc) {
|
|
|
12551
12564
|
registry.set(processorName, processorFunc);
|
|
12552
12565
|
}
|
|
12553
12566
|
|
|
12567
|
+
function CustomEditorRegistry() {
|
|
12568
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
12569
|
+
var registry = new Map();
|
|
12570
|
+
return {
|
|
12571
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
12572
|
+
define(editorName, editorFunc) {
|
|
12573
|
+
if (registry.has(editorName)) {
|
|
12574
|
+
throw new Error("Custom editor of \"".concat(editorName, "\" already registered"));
|
|
12575
|
+
}
|
|
12576
|
+
registry.set(editorName, editorFunc);
|
|
12577
|
+
},
|
|
12578
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
12579
|
+
get(editorName) {
|
|
12580
|
+
return registry.get(editorName);
|
|
12581
|
+
}
|
|
12582
|
+
};
|
|
12583
|
+
}
|
|
12584
|
+
var customEditors = CustomEditorRegistry();
|
|
12585
|
+
|
|
12554
12586
|
var runtime;
|
|
12555
12587
|
|
|
12556
12588
|
/** @internal */
|
|
@@ -14489,6 +14521,7 @@ var developHelper = {
|
|
|
14489
14521
|
getContextValue: _dev_only_getContextValue,
|
|
14490
14522
|
getAllContextValues: _dev_only_getAllContextValues,
|
|
14491
14523
|
debugDataValue: _dev_only_debugDataValue,
|
|
14524
|
+
getLegalRuntimeValue: _dev_only_getLegalRuntimeValue,
|
|
14492
14525
|
render: _dev_only_render,
|
|
14493
14526
|
setRealTimeDataInspectRoot,
|
|
14494
14527
|
addRealTimeDataInspectHook
|