@lendi/navbar 7.0.1-beta01 → 7.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/navbar",
3
- "version": "7.0.1-beta01",
3
+ "version": "7.0.1",
4
4
  "license": "ISC",
5
5
  "source": "src/index.tsx",
6
6
  "main": "dist/cjs/index.js",
@@ -41,7 +41,7 @@
41
41
  "@lendi-ui/transition": "^4.0.2",
42
42
  "@lendi-ui/typography": "^5.0.0",
43
43
  "@lendi-ui/utils": "^4.0.1",
44
- "@lendi/comm-panel": "10.0.1-beta01",
44
+ "@lendi/comm-panel": "10.0.1",
45
45
  "@lendi/lala-utils": "^9.2.0",
46
46
  "@lendi/segment-tracking": "^4.0.2",
47
47
  "react-dot-fragment": "^0.2.8"
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ErrorBoundary = void 0;
17
- var React = require("react");
18
- var sentry_1 = require("../../utils/sentry");
19
- var ErrorBoundary = /** @class */ (function (_super) {
20
- __extends(ErrorBoundary, _super);
21
- function ErrorBoundary(props) {
22
- var _this = _super.call(this, props) || this;
23
- _this.state = { hasError: false };
24
- return _this;
25
- }
26
- ErrorBoundary.getDerivedStateFromError = function (_error) {
27
- // Update state so the next render will show the fallback UI.
28
- return { hasError: true };
29
- };
30
- ErrorBoundary.prototype.componentDidCatch = function (error, errorInfo) {
31
- // You can also log the error to an error reporting service
32
- sentry_1.NavbarSentry.captureException(error);
33
- };
34
- ErrorBoundary.prototype.render = function () {
35
- return this.props.children;
36
- };
37
- return ErrorBoundary;
38
- }(React.Component));
39
- exports.ErrorBoundary = ErrorBoundary;
40
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared/components/ErrorBoundry/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6BAA+B;AAC/B,6CAAkD;AAOlD;IAAmC,iCAAgC;IACjE,uBAAY,KAAU;QAAtB,YACE,kBAAM,KAAK,CAAC,SAEb;QADC,KAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;IACnC,CAAC;IAEM,sCAAwB,GAA/B,UAAgC,MAAa;QAC3C,6DAA6D;QAC7D,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,CAAC;IAED,yCAAiB,GAAjB,UAAkB,KAAY,EAAE,SAAoB;QAClD,2DAA2D;QAC3D,qBAAY,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,8BAAM,GAAN;QACE,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7B,CAAC;IACH,oBAAC;AAAD,CAAC,AAnBD,CAAmC,KAAK,CAAC,SAAS,GAmBjD;AAnBY,sCAAa"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NavbarSentry = void 0;
4
- var browser_1 = require("@sentry/browser");
5
- var SHAKA_SENTRY_DSN = 'https://f66f4513e35a4a289b501df54e68371f@o256496.ingest.sentry.io/5300356';
6
- var hub = new browser_1.Hub(new browser_1.BrowserClient({ dsn: SHAKA_SENTRY_DSN }));
7
- exports.NavbarSentry = {
8
- setUser: function (identity) {
9
- hub.configureScope(function (scope) {
10
- scope.setUser({
11
- identity: identity || 'anonymous',
12
- });
13
- });
14
- },
15
- captureException: function (error) {
16
- hub.captureException(error);
17
- },
18
- };
19
- //# sourceMappingURL=sentry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sentry.js","sourceRoot":"","sources":["../../../../src/shared/utils/sentry.ts"],"names":[],"mappings":";;;AAAA,2CAA4D;AAE5D,IAAM,gBAAgB,GAAG,2EAA2E,CAAC;AACrG,IAAM,GAAG,GAAG,IAAI,aAAG,CAAC,IAAI,uBAAa,CAAC,EAAE,GAAG,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAErD,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,UAAC,QAAiB;QACzB,GAAG,CAAC,cAAc,CAAC,UAAC,KAAY;YAC9B,KAAK,CAAC,OAAO,CAAC;gBACZ,QAAQ,EAAE,QAAQ,IAAI,WAAW;aAClC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IACD,gBAAgB,EAAE,UAAC,KAAY;QAC7B,GAAG,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACF,CAAC"}
@@ -1,37 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- import * as React from 'react';
15
- import { NavbarSentry } from '../../utils/sentry';
16
- var ErrorBoundary = /** @class */ (function (_super) {
17
- __extends(ErrorBoundary, _super);
18
- function ErrorBoundary(props) {
19
- var _this = _super.call(this, props) || this;
20
- _this.state = { hasError: false };
21
- return _this;
22
- }
23
- ErrorBoundary.getDerivedStateFromError = function (_error) {
24
- // Update state so the next render will show the fallback UI.
25
- return { hasError: true };
26
- };
27
- ErrorBoundary.prototype.componentDidCatch = function (error, errorInfo) {
28
- // You can also log the error to an error reporting service
29
- NavbarSentry.captureException(error);
30
- };
31
- ErrorBoundary.prototype.render = function () {
32
- return this.props.children;
33
- };
34
- return ErrorBoundary;
35
- }(React.Component));
36
- export { ErrorBoundary };
37
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared/components/ErrorBoundry/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAOlD;IAAmC,iCAAgC;IACjE,uBAAY,KAAU;QAAtB,YACE,kBAAM,KAAK,CAAC,SAEb;QADC,KAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;IACnC,CAAC;IAEM,sCAAwB,GAA/B,UAAgC,MAAa;QAC3C,6DAA6D;QAC7D,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,CAAC;IAED,yCAAiB,GAAjB,UAAkB,KAAY,EAAE,SAAoB;QAClD,2DAA2D;QAC3D,YAAY,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,8BAAM,GAAN;QACE,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7B,CAAC;IACH,oBAAC;AAAD,CAAC,AAnBD,CAAmC,KAAK,CAAC,SAAS,GAmBjD"}
@@ -1,16 +0,0 @@
1
- import { Hub, BrowserClient } from '@sentry/browser';
2
- var SHAKA_SENTRY_DSN = 'https://f66f4513e35a4a289b501df54e68371f@o256496.ingest.sentry.io/5300356';
3
- var hub = new Hub(new BrowserClient({ dsn: SHAKA_SENTRY_DSN }));
4
- export var NavbarSentry = {
5
- setUser: function (identity) {
6
- hub.configureScope(function (scope) {
7
- scope.setUser({
8
- identity: identity || 'anonymous',
9
- });
10
- });
11
- },
12
- captureException: function (error) {
13
- hub.captureException(error);
14
- },
15
- };
16
- //# sourceMappingURL=sentry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sentry.js","sourceRoot":"","sources":["../../../../src/shared/utils/sentry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,aAAa,EAAS,MAAM,iBAAiB,CAAC;AAE5D,IAAM,gBAAgB,GAAG,2EAA2E,CAAC;AACrG,IAAM,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,aAAa,CAAC,EAAE,GAAG,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAElE,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,UAAC,QAAiB;QACzB,GAAG,CAAC,cAAc,CAAC,UAAC,KAAY;YAC9B,KAAK,CAAC,OAAO,CAAC;gBACZ,QAAQ,EAAE,QAAQ,IAAI,WAAW;aAClC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IACD,gBAAgB,EAAE,UAAC,KAAY;QAC7B,GAAG,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACF,CAAC"}
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { ErrorInfo } from 'react';
3
- interface ErrorState {
4
- hasError: boolean;
5
- }
6
- export declare class ErrorBoundary extends React.Component<any, ErrorState> {
7
- constructor(props: any);
8
- static getDerivedStateFromError(_error: Error): {
9
- hasError: boolean;
10
- };
11
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
12
- render(): React.ReactNode;
13
- }
14
- export {};
@@ -1,4 +0,0 @@
1
- export declare const NavbarSentry: {
2
- setUser: (identity?: string | undefined) => void;
3
- captureException: (error: Error) => void;
4
- };