@liner-fe/icon 0.0.47 → 0.0.49
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 +12 -0
- package/index.tsx +6 -1
- package/lib/index.js +2 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
package/index.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { BasicColorType } from '@liner-fe/design-token-primitive';
|
|
3
|
+
import { ErrorBoundary } from '@sentry/nextjs';
|
|
3
4
|
import { ArrowUpward } from './assets/arrow-upward';
|
|
4
5
|
import { ArrowDownward } from './assets/arrow-downward';
|
|
5
6
|
import { ArrowBack } from './assets/arrow-back';
|
|
@@ -401,5 +402,9 @@ export interface IconProps {
|
|
|
401
402
|
|
|
402
403
|
export const Icon = forwardRef<SVGSVGElement, IconProps>(({name, size = "m", ...props}, ref) => {
|
|
403
404
|
const IconComponent = IconMap[name];
|
|
404
|
-
return
|
|
405
|
+
return (
|
|
406
|
+
<ErrorBoundary fallback={<></>}>
|
|
407
|
+
<IconComponent {...props} ref={ref} size={iconSizeMap[size]} />
|
|
408
|
+
</ErrorBoundary>
|
|
409
|
+
);
|
|
405
410
|
});
|
package/lib/index.js
CHANGED
|
@@ -3267,6 +3267,7 @@ __export(index_exports, {
|
|
|
3267
3267
|
});
|
|
3268
3268
|
module.exports = __toCommonJS(index_exports);
|
|
3269
3269
|
var import_react188 = __toESM(require_react());
|
|
3270
|
+
var import_nextjs = require("@sentry/nextjs");
|
|
3270
3271
|
|
|
3271
3272
|
// assets/arrow-upward/index.tsx
|
|
3272
3273
|
var import_react = __toESM(require_react());
|
|
@@ -8258,7 +8259,7 @@ var iconSizeMap = {
|
|
|
8258
8259
|
};
|
|
8259
8260
|
var Icon = (0, import_react188.forwardRef)(({ name, size = "m", ...props }, ref) => {
|
|
8260
8261
|
const IconComponent = IconMap[name];
|
|
8261
|
-
return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(IconComponent, { ...props, ref, size: iconSizeMap[size] });
|
|
8262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_nextjs.ErrorBoundary, { fallback: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(import_jsx_runtime188.Fragment, {}), children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(IconComponent, { ...props, ref, size: iconSizeMap[size] }) });
|
|
8262
8263
|
});
|
|
8263
8264
|
/*! Bundled license information:
|
|
8264
8265
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liner-fe/icon",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn tsup --config ./config/tsup/tsup.config.ts"
|
|
6
6
|
},
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"types": "./lib/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@liner-fe/design-token-primitive": "workspace:^",
|
|
18
|
+
"@sentry/nextjs": "^9.30.0",
|
|
18
19
|
"tsup": "^8.5.0"
|
|
19
20
|
}
|
|
20
21
|
}
|