@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @liner-fe/icon
2
2
 
3
+ ## 0.0.49
4
+
5
+ ### Patch Changes
6
+
7
+ - 369b5e4: refactor: icon에 에러 바운더리 적용
8
+
9
+ ## 0.0.48
10
+
11
+ ### Patch Changes
12
+
13
+ - 705930f: @liner-fe/icon cjs -> tsx
14
+
3
15
  ## 0.0.47
4
16
 
5
17
  ### Patch Changes
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 <IconComponent {...props} ref={ref} size={iconSizeMap[size]} />;
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.47",
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
  }