@next-core/brick-kit 2.102.1 → 2.103.3
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/CHANGELOG.md +44 -0
- package/dist/index.bundle.js +9 -4
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +10 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/internal/historyExtended.d.ts.map +1 -1
- package/dist/types/themeAndMode.d.ts +1 -0
- package/dist/types/themeAndMode.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createBrowserHistory, locationsAreEqual, createPath } from 'history';
|
|
1
|
+
import { parsePath, createBrowserHistory, locationsAreEqual, createPath } from 'history';
|
|
2
2
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
4
|
import _asyncToGenerator$4 from '@babel/runtime/helpers/asyncToGenerator';
|
|
@@ -372,6 +372,10 @@ function useCurrentMode() {
|
|
|
372
372
|
}, []);
|
|
373
373
|
return currentMode;
|
|
374
374
|
}
|
|
375
|
+
function getCssPropertyValue(name) {
|
|
376
|
+
var el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document.documentElement;
|
|
377
|
+
return window.getComputedStyle(el).getPropertyValue(name);
|
|
378
|
+
}
|
|
375
379
|
|
|
376
380
|
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
377
381
|
try {
|
|
@@ -3106,12 +3110,12 @@ function standaloneHistoryOverridden(browserHistory) {
|
|
|
3106
3110
|
var pathIsString = typeof path === "string";
|
|
3107
3111
|
|
|
3108
3112
|
if (pathIsString) {
|
|
3109
|
-
pathname = path;
|
|
3113
|
+
pathname = parsePath(path).pathname;
|
|
3110
3114
|
} else {
|
|
3111
3115
|
pathname = path.pathname;
|
|
3112
3116
|
}
|
|
3113
3117
|
|
|
3114
|
-
if (_internalApiHasMatchedApp(pathname)) {
|
|
3118
|
+
if (pathname === "" || _internalApiHasMatchedApp(pathname)) {
|
|
3115
3119
|
return (method === "push" ? originalPush : originalReplace)(path, state);
|
|
3116
3120
|
} // Going to outside apps.
|
|
3117
3121
|
|
|
@@ -10317,7 +10321,7 @@ class Router {
|
|
|
10317
10321
|
var _this3 = this;
|
|
10318
10322
|
|
|
10319
10323
|
return _asyncToGenerator$4(function* () {
|
|
10320
|
-
var _apiAnalyzer$getInsta
|
|
10324
|
+
var _apiAnalyzer$getInsta;
|
|
10321
10325
|
|
|
10322
10326
|
_this3.state = "initial";
|
|
10323
10327
|
_this3.renderId = uniqueId("render-id-");
|
|
@@ -10368,7 +10372,7 @@ class Router {
|
|
|
10368
10372
|
var legacy = currentApp ? currentApp.legacy : undefined;
|
|
10369
10373
|
_this3.kernel.nextApp = currentApp;
|
|
10370
10374
|
var layoutType = (currentApp === null || currentApp === void 0 ? void 0 : currentApp.layoutType) || "console";
|
|
10371
|
-
setTheme((
|
|
10375
|
+
setTheme((currentApp === null || currentApp === void 0 ? void 0 : currentApp.theme) || "light");
|
|
10372
10376
|
setMode("default");
|
|
10373
10377
|
devtoolsHookEmit("rendering");
|
|
10374
10378
|
unmountTree(mountPoints.bg);
|
|
@@ -12630,5 +12634,5 @@ var ModalElement = _decorate(null, function (_initialize, _UpdatingElement) {
|
|
|
12630
12634
|
};
|
|
12631
12635
|
}, UpdatingElement);
|
|
12632
12636
|
|
|
12633
|
-
export { BrickAsComponent, BrickWrapper, DisplayByFeatureFlags, EasyopsEmpty, ErrorBoundary, FeatureFlagsProvider, ForwardRefSingleBrickAsComponent, ModalElement, SingleBrickAsComponent, StoryboardFunctionRegistryFactory, UpdatingElement, authenticate, checkIf, checkIfByTransform, createHistory, createRuntime, developHelper, doTransform, event, getAuth, getHistory, getMockInfo, getRuntime, handleHttpError, httpErrorToString, i18nText, initI18n, isLoggedIn, logout, looseCheckIf, looseCheckIfByTransform, looseCheckIfOfComputed, method, preprocessTransformProperties, property, reTransformForDevtools, renderEasyopsEmpty, transformElementProperties, transformIntermediateData, transformProperties, useApplyPageTitle, useCurrentApp, useCurrentMode, useCurrentTheme, useFeatureFlags, useLocation, useRecentApps };
|
|
12637
|
+
export { BrickAsComponent, BrickWrapper, DisplayByFeatureFlags, EasyopsEmpty, ErrorBoundary, FeatureFlagsProvider, ForwardRefSingleBrickAsComponent, ModalElement, SingleBrickAsComponent, StoryboardFunctionRegistryFactory, UpdatingElement, authenticate, checkIf, checkIfByTransform, createHistory, createRuntime, developHelper, doTransform, event, getAuth, getCssPropertyValue, getHistory, getMockInfo, getRuntime, handleHttpError, httpErrorToString, i18nText, initI18n, isLoggedIn, logout, looseCheckIf, looseCheckIfByTransform, looseCheckIfOfComputed, method, preprocessTransformProperties, property, reTransformForDevtools, renderEasyopsEmpty, transformElementProperties, transformIntermediateData, transformProperties, useApplyPageTitle, useCurrentApp, useCurrentMode, useCurrentTheme, useFeatureFlags, useLocation, useRecentApps };
|
|
12634
12638
|
//# sourceMappingURL=index.esm.js.map
|