@getdashfy/ui 0.1.0 → 0.1.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/CHANGELOG.md +10 -0
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +20 -20
package/dist/index.d.cts
CHANGED
|
@@ -315,22 +315,28 @@ interface ErrorBoundaryProps {
|
|
|
315
315
|
* Wraps react-error-boundary with Dashfy-specific defaults.
|
|
316
316
|
*
|
|
317
317
|
* @example
|
|
318
|
+
* ```tsx
|
|
318
319
|
* // Basic usage
|
|
319
320
|
* <WidgetErrorBoundary>
|
|
320
321
|
* <MyWidget />
|
|
321
322
|
* </WidgetErrorBoundary>
|
|
323
|
+
* ```
|
|
322
324
|
*
|
|
323
325
|
* @example
|
|
326
|
+
* ```tsx
|
|
324
327
|
* // With custom fallback
|
|
325
328
|
* <WidgetErrorBoundary fallback={<div>Custom error</div>}>
|
|
326
329
|
* <MyWidget />
|
|
327
330
|
* </WidgetErrorBoundary>
|
|
331
|
+
* ```
|
|
328
332
|
*
|
|
329
333
|
* @example
|
|
334
|
+
* ```tsx
|
|
330
335
|
* // With error logging
|
|
331
336
|
* <WidgetErrorBoundary onError={(error) => logToSentry(error)}>
|
|
332
337
|
* <MyWidget />
|
|
333
338
|
* </WidgetErrorBoundary>
|
|
339
|
+
* ```
|
|
334
340
|
*/
|
|
335
341
|
declare const WidgetErrorBoundary: ({ children, fallback, onError, onReset, resetKeys, }: ErrorBoundaryProps) => React$1.JSX.Element;
|
|
336
342
|
|
package/dist/index.d.ts
CHANGED
|
@@ -315,22 +315,28 @@ interface ErrorBoundaryProps {
|
|
|
315
315
|
* Wraps react-error-boundary with Dashfy-specific defaults.
|
|
316
316
|
*
|
|
317
317
|
* @example
|
|
318
|
+
* ```tsx
|
|
318
319
|
* // Basic usage
|
|
319
320
|
* <WidgetErrorBoundary>
|
|
320
321
|
* <MyWidget />
|
|
321
322
|
* </WidgetErrorBoundary>
|
|
323
|
+
* ```
|
|
322
324
|
*
|
|
323
325
|
* @example
|
|
326
|
+
* ```tsx
|
|
324
327
|
* // With custom fallback
|
|
325
328
|
* <WidgetErrorBoundary fallback={<div>Custom error</div>}>
|
|
326
329
|
* <MyWidget />
|
|
327
330
|
* </WidgetErrorBoundary>
|
|
331
|
+
* ```
|
|
328
332
|
*
|
|
329
333
|
* @example
|
|
334
|
+
* ```tsx
|
|
330
335
|
* // With error logging
|
|
331
336
|
* <WidgetErrorBoundary onError={(error) => logToSentry(error)}>
|
|
332
337
|
* <MyWidget />
|
|
333
338
|
* </WidgetErrorBoundary>
|
|
339
|
+
* ```
|
|
334
340
|
*/
|
|
335
341
|
declare const WidgetErrorBoundary: ({ children, fallback, onError, onReset, resetKeys, }: ErrorBoundaryProps) => React$1.JSX.Element;
|
|
336
342
|
|