@next-core/brick-kit 2.194.2 → 2.195.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.esm.js CHANGED
@@ -10,7 +10,7 @@ import { pipes } from '@next-core/pipes';
10
10
  import i18next, { getFixedT } from 'i18next';
11
11
  import React, { useState, useEffect, useMemo, useContext, createContext, useRef, useReducer, useCallback } from 'react';
12
12
  import { http, HttpResponseError, HttpAbortError, HttpFetchError } from '@next-core/brick-http';
13
- import { userAnalytics, apiAnalyzer } from '@next-core/easyops-analytics';
13
+ import { userAnalytics, apiAnalyzer, SkywalkingAnalysis } from '@next-core/easyops-analytics';
14
14
  import { Modal, message, Empty, ConfigProvider } from 'antd';
15
15
  import { ExclamationCircleOutlined } from '@ant-design/icons';
16
16
  import yaml from 'js-yaml';
@@ -12030,6 +12030,9 @@ class Router {
12030
12030
  // Create the page tracker before page load.
12031
12031
  // And the API Analyzer maybe disabled.
12032
12032
  var tracePageEnd = (_apiAnalyzer$getInsta = apiAnalyzer.getInstance()) === null || _apiAnalyzer$getInsta === void 0 ? void 0 : _apiAnalyzer$getInsta.tracePage();
12033
+ SkywalkingAnalysis.setPerformance({
12034
+ pagePath: "".concat(location.pathname).concat(location.search)
12035
+ });
12033
12036
  var locationContext = _this3.locationContext = new LocationContext(_this3.kernel, location, renderId);
12034
12037
  if (window.DEVELOPER_PREVIEW) {
12035
12038
  return;
@@ -12588,12 +12591,9 @@ class LegacyErrorBoundary extends React.Component {
12588
12591
  error
12589
12592
  };
12590
12593
  }
12591
-
12592
- /* componentDidCatch(error, info) {
12593
- // You can also log the error to an error reporting service
12594
- logErrorToMyService(error, info);
12595
- } */
12596
-
12594
+ componentDidCatch(error) {
12595
+ SkywalkingAnalysis.reportFrameErrors(error);
12596
+ }
12597
12597
  render() {
12598
12598
  if (this.state.error) {
12599
12599
  // You can render any custom fallback UI