@next-core/brick-kit 2.102.0 → 2.103.2

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
@@ -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 {
@@ -3193,7 +3197,7 @@ var unauthenticatedConfirmModal;
3193
3197
 
3194
3198
  function handleHttpError(error) {
3195
3199
  // Redirect to login page if not logged in.
3196
- if (isUnauthenticatedError(error)) {
3200
+ if (isUnauthenticatedError(error) && !window.NO_AUTH_GUARD) {
3197
3201
  // Do not show multiple confirm modals.
3198
3202
  if (unauthenticatedConfirmModal) {
3199
3203
  return;
@@ -10317,7 +10321,7 @@ class Router {
10317
10321
  var _this3 = this;
10318
10322
 
10319
10323
  return _asyncToGenerator$4(function* () {
10320
- var _apiAnalyzer$getInsta, _currentApp$theme;
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((_currentApp$theme = currentApp === null || currentApp === void 0 ? void 0 : currentApp.theme) !== null && _currentApp$theme !== void 0 ? _currentApp$theme : "light");
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);
@@ -10413,7 +10417,7 @@ class Router {
10413
10417
  // eslint-disable-next-line no-console
10414
10418
  console.error(error); // Redirect to login page if not logged in.
10415
10419
 
10416
- if (isUnauthenticatedError(error)) {
10420
+ if (isUnauthenticatedError(error) && !window.NO_AUTH_GUARD) {
10417
10421
  mountRoutesResult.flags.unauthenticated = true;
10418
10422
  } else {
10419
10423
  yield _this3.kernel.layoutBootstrap(layoutType);
@@ -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