@niagads/common 0.0.1 → 0.1.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/errors.js CHANGED
@@ -1,2 +1,2 @@
1
- import e from"react";function r({error:r,resetErrorBoundary:t}){return e.createElement("div",{role:"alert",className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative"},e.createElement("p",null,"Something went wrong:"),e.createElement("pre",{className:"text-wrap"},r.message))}export{r as errorFallback};
1
+ class r extends Error{constructor(r,t){Object.assign(t,{error:r}),super(JSON.stringify(t)),this.name="Service Error"}}function t(r){return r&&"object"==typeof r&&"number"==typeof r.status&&"string"==typeof r.detail}export{r as APIError,t as isAPIError};
2
2
  //# sourceMappingURL=errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sources":["../src/errors.tsx"],"sourcesContent":[null],"names":["errorFallback","error","resetErrorBoundary","React","role","className","createElement","message"],"mappings":"8BAGgBA,GAAcC,MAAEA,EAAKC,mBAAEA,IACnC,OACIC,uBAAKC,KAAK,QAAQC,UAAU,4EACxBF,EAAAG,cAAA,IAAA,KAAA,yBACAH,EAAAG,cAAA,MAAA,CAAKD,UAAU,aAAaJ,EAAMM,SAG9C"}
1
+ {"version":3,"file":"errors.js","sources":["../src/errors.tsx"],"sourcesContent":[null],"names":["APIError","Error","constructor","message","response","Object","assign","error","super","JSON","stringify","this","name","isAPIError","obj","status","detail"],"mappings":"AAEM,MAAOA,UAAiBC,MAC1B,WAAAC,CAAYC,EAAiBC,GACzBC,OAAOC,OAAOF,EAAU,CAAEG,MAAOJ,IACjCK,MAAMC,KAAKC,UAAUN,IACrBO,KAAKC,KAAO,eAChB,EAIE,SAAUC,EAAWC,GACvB,OAAOA,GAAsB,iBAARA,GAA0C,iBAAfA,EAAIC,QAA6C,iBAAfD,EAAIE,MAC1F"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import React, { JSX } from 'react';
2
- import { FallbackProps } from 'react-error-boundary';
3
2
  import { NextRequest } from 'next/server';
4
3
 
5
4
  declare const COLOR_BLIND_FRIENDLY_PALETTES: {
@@ -13,12 +12,6 @@ type HEX = `#${string}`;
13
12
  type STANDARD_COLORS = "red" | "blue" | "green" | "gold" | "grey" | "black" | "white";
14
13
  type Color = RGB | RGBA | HEX | STANDARD_COLORS;
15
14
 
16
- declare function errorFallback({ error, resetErrorBoundary }: FallbackProps): React.JSX.Element;
17
-
18
- declare function safeHtml<P>(str: string, props?: P, Component?: React.ComponentClass<P>): JSX.Element;
19
- declare function safeHtml<P>(str: string, props?: P, Component?: React.FunctionComponent<P>): JSX.Element;
20
- declare function safeHtml<P>(str: string, props?: P, Component?: string): JSX.Element;
21
-
22
15
  type BasicType = string | number | boolean;
23
16
  type NAString = "NA" | "N/A" | "NULL" | "." | "" | "na" | "n/a" | "null";
24
17
  type Modify<T, R> = Omit<T, keyof R> & R;
@@ -33,6 +26,36 @@ type Expand<T> = T extends infer O ? {
33
26
  type ExpandRecursively<T> = T extends object ? T extends infer O ? {
34
27
  [K in keyof O]: ExpandRecursively<O[K]>;
35
28
  } : never : T;
29
+ interface APIResult {
30
+ }
31
+ interface APIPagination {
32
+ page: number;
33
+ total_num_pages: number;
34
+ paged_num_records: number;
35
+ total_num_records: number;
36
+ }
37
+ interface APIResponse {
38
+ data: APIResult[];
39
+ request: Request;
40
+ pagination: APIPagination;
41
+ message: string;
42
+ }
43
+ interface APIErrorResponse {
44
+ status: number;
45
+ detail: string;
46
+ message?: string;
47
+ stack_trace?: string;
48
+ request?: string;
49
+ }
50
+
51
+ declare class APIError extends Error {
52
+ constructor(message: string, response: APIErrorResponse);
53
+ }
54
+ declare function isAPIError(obj: any): obj is APIErrorResponse;
55
+
56
+ declare function safeHtml<P>(str: string, props?: P, Component?: React.ComponentClass<P>): JSX.Element;
57
+ declare function safeHtml<P>(str: string, props?: P, Component?: React.FunctionComponent<P>): JSX.Element;
58
+ declare function safeHtml<P>(str: string, props?: P, Component?: string): JSX.Element;
36
59
 
37
60
  declare const _hasOwnProperty: (key: string, object: any) => any;
38
61
  declare const _get: (key: string, object: any, alt?: any) => any;
@@ -41,6 +64,7 @@ declare const _isObject: (a: any) => boolean;
41
64
  declare const _isJSON: (value: any) => boolean;
42
65
  declare const _isNA: (value: BasicType | null, nullsAsNA?: boolean) => boolean;
43
66
  declare const _isNull: (value: BasicType | null) => value is null;
67
+ declare const _isEmpty: (value: Record<string, any> | null | undefined) => boolean;
44
68
  declare const toFixedWithoutZeros: (value: number, precision?: number) => string;
45
69
  declare const toExponential: (value: string | number, precision?: number) => string | number;
46
70
  declare function caseInsensitiveIncludes(array: string[], value: string): boolean;
@@ -48,10 +72,11 @@ declare const toTitleCase: (value: string) => string;
48
72
  declare function jsonSyntaxHighlight(json: any): any;
49
73
  declare function linkify(text: string): string;
50
74
  declare function formatMultiline(text: string | string[], delimiter?: string): JSX.Element[];
75
+ declare function getUrlParam(url: string, param: string): string | null;
51
76
 
52
77
  declare function userAgentIsBrowser(userAgent: string): boolean;
53
78
  declare function backendFetchFromRequest(request: NextRequest, base: string, asText?: boolean): Promise<any>;
54
79
  declare function backendFetch(pathname: string, base: string | undefined, skipErrorCheck?: boolean): Promise<any>;
55
80
 
56
- export { COLOR_BLIND_FRIENDLY_PALETTES, _deepCopy, _get, _hasOwnProperty, _isJSON, _isNA, _isNull, _isObject, backendFetch, backendFetchFromRequest, caseInsensitiveIncludes, errorFallback, formatMultiline, jsonSyntaxHighlight, linkify, safeHtml, toExponential, toFixedWithoutZeros, toTitleCase, userAgentIsBrowser };
57
- export type { BasicType, Color, Expand, ExpandRecursively, Modify, NAString, TypeMapper };
81
+ export { APIError, COLOR_BLIND_FRIENDLY_PALETTES, _deepCopy, _get, _hasOwnProperty, _isEmpty, _isJSON, _isNA, _isNull, _isObject, backendFetch, backendFetchFromRequest, caseInsensitiveIncludes, formatMultiline, getUrlParam, isAPIError, jsonSyntaxHighlight, linkify, safeHtml, toExponential, toFixedWithoutZeros, toTitleCase, userAgentIsBrowser };
82
+ export type { APIErrorResponse, APIPagination, APIResponse, APIResult, BasicType, Color, Expand, ExpandRecursively, Modify, NAString, TypeMapper };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{COLOR_BLIND_FRIENDLY_PALETTES}from"./colors.js";export{errorFallback}from"./errors.js";export{safeHtml}from"./formatters.js";export{_deepCopy,_get,_hasOwnProperty,_isJSON,_isNA,_isNull,_isObject,caseInsensitiveIncludes,formatMultiline,jsonSyntaxHighlight,linkify,toExponential,toFixedWithoutZeros,toTitleCase}from"./utils.js";export{backendFetch,backendFetchFromRequest,userAgentIsBrowser}from"./route-handlers.js";
1
+ export{COLOR_BLIND_FRIENDLY_PALETTES}from"./colors.js";export{APIError,isAPIError}from"./errors.js";export{safeHtml}from"./formatters.js";export{_deepCopy,_get,_hasOwnProperty,_isEmpty,_isJSON,_isNA,_isNull,_isObject,caseInsensitiveIncludes,formatMultiline,getUrlParam,jsonSyntaxHighlight,linkify,toExponential,toFixedWithoutZeros,toTitleCase}from"./utils.js";export{backendFetch,backendFetchFromRequest,userAgentIsBrowser}from"./route-handlers.js";
2
2
  //# sourceMappingURL=index.js.map
package/dist/utils.js CHANGED
@@ -1,2 +1,2 @@
1
- import e from"react";const t=(e,t)=>void 0!==t&&t.hasOwnProperty(e),r=(e,r,n=null)=>t(e,r)?r[e]:n,n=e=>JSON.parse(JSON.stringify(e)),a=e=>e instanceof Object,s=e=>{try{e=JSON.parse(e)}catch(t){return a(e)&&null!=e}return a(e)&&null!=e},l=(e,t=!1)=>!(!e||"string"!=typeof e||!["NA","N/A","NULL",".",""].includes(e.toUpperCase()))||!!t&&o(e),o=e=>null==e,p=(e,t=2)=>Number.parseFloat(e.toFixed(t)).toString(),u=(e,t=2)=>{const r=Number.parseFloat(e.toString()).toExponential(t||2);let[n,a]=(r+"").split("e");return parseInt(a)>3||parseInt(a)<-4?(n=n.endsWith("0")?p(Number.parseFloat(n),t):n,`${n}e${a}`):e};function c(e,t){const r=t.toLowerCase();return e.some(e=>e.toLowerCase().includes(r))}const i=e=>e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substring(1).toLowerCase());function g(e){return(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,function(e){var t="number";return/^"/.test(e)?t=/:$/.test(e)?"key":"string":/true|false/.test(e)?t="boolean":/null/.test(e)&&(t="null"),'<span class="'+t+'">'+e+"</span>"})}function f(e){return e.replace(/((https?:\/\/|www\.)[^\s]+)/g,e=>`<a href="${e.startsWith("http")?e:`https://${e}`}" target="_blank" rel="noopener noreferrer">${e}</a>`)}function m(t,r="\n"){return Array.isArray(t)?t.map((t,r)=>e.createElement("p",{key:`${r}-${t}`},t)):("string"!=typeof t&&(t=null==t?"":String(t)),t.split(r).map((t,r)=>e.createElement("p",{key:`${r}-${t}`},t)))}export{n as _deepCopy,r as _get,t as _hasOwnProperty,s as _isJSON,l as _isNA,o as _isNull,a as _isObject,c as caseInsensitiveIncludes,m as formatMultiline,g as jsonSyntaxHighlight,f as linkify,u as toExponential,p as toFixedWithoutZeros,i as toTitleCase};
1
+ import e from"react";const t=(e,t)=>void 0!==t&&t.hasOwnProperty(e),r=(e,r,n=null)=>t(e,r)?r[e]:n,n=e=>JSON.parse(JSON.stringify(e)),a=e=>e instanceof Object,s=e=>{try{e=JSON.parse(e)}catch(t){return a(e)&&null!=e}return a(e)&&null!=e},o=(e,t=!1)=>!(!e||"string"!=typeof e||!["NA","N/A","NULL",".",""].includes(e.toUpperCase()))||!!t&&l(e),l=e=>null==e,p=e=>null==e||(e=>{for(var t in e)if(e.hasOwnProperty(t))return!1;return!0})(e),u=(e,t=2)=>Number.parseFloat(e.toFixed(t)).toString(),c=(e,t=2)=>{const r=Number.parseFloat(e.toString()).toExponential(t||2);let[n,a]=(r+"").split("e");return parseInt(a)>3||parseInt(a)<-4?(n=n.endsWith("0")?u(Number.parseFloat(n),t):n,`${n}e${a}`):e};function i(e,t){const r=t.toLowerCase();return e.some(e=>e.toLowerCase().includes(r))}const g=e=>e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substring(1).toLowerCase());function f(e){return(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,function(e){var t="number";return/^"/.test(e)?t=/:$/.test(e)?"key":"string":/true|false/.test(e)?t="boolean":/null/.test(e)&&(t="null"),'<span class="'+t+'">'+e+"</span>"})}function m(e){return e.replace(/((https?:\/\/|www\.)[^\s]+)/g,e=>`<a href="${e.startsWith("http")?e:`https://${e}`}" target="_blank" rel="noopener noreferrer">${e}</a>`)}function h(t,r="\n"){return Array.isArray(t)?t.map((t,r)=>e.createElement("p",{key:`${r}-${t}`},t)):("string"!=typeof t&&(t=null==t?"":String(t)),t.split(r).map((t,r)=>e.createElement("p",{key:`${r}-${t}`},t)))}function y(e,t){let r;try{r=new URL(e)}catch(t){r=new URL(e,"https://google.com")}return r.searchParams.get(t)}export{n as _deepCopy,r as _get,t as _hasOwnProperty,p as _isEmpty,s as _isJSON,o as _isNA,l as _isNull,a as _isObject,i as caseInsensitiveIncludes,h as formatMultiline,y as getUrlParam,f as jsonSyntaxHighlight,m as linkify,c as toExponential,u as toFixedWithoutZeros,g as toTitleCase};
2
2
  //# sourceMappingURL=utils.js.map
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../src/utils.tsx"],"sourcesContent":[null],"names":["_hasOwnProperty","key","object","undefined","hasOwnProperty","_get","alt","_deepCopy","obj","JSON","parse","stringify","_isObject","a","Object","_isJSON","value","e","_isNA","nullsAsNA","includes","toUpperCase","_isNull","toFixedWithoutZeros","precision","Number","parseFloat","toFixed","toString","toExponential","snValue","mantissa","exponent","split","parseInt","endsWith","caseInsensitiveIncludes","array","lcValue","toLowerCase","some","item","toTitleCase","replace","text","charAt","substring","jsonSyntaxHighlight","json","match","cls","test","linkify","url","startsWith","formatMultiline","delimiter","Array","isArray","map","line","idx","React","String","createElement"],"mappings":"2BAKaA,EAAkB,CAACC,EAAaC,SAA2BC,IAAXD,GAAwBA,EAAOE,eAAeH,GAK9FI,EAAO,CAACJ,EAAaC,EAAaI,EAAW,OAClDN,EAAgBC,EAAKC,GAEdA,EAAOD,GAEXK,EAKEC,EAAaC,GAAaC,KAAKC,MAAMD,KAAKE,UAAUH,IAEpDI,EAAaC,GAAWA,aAAaC,OAErCC,EAAWC,IACpB,IACIA,EAAQP,KAAKC,MAAMM,EACvB,CAAE,MAAOC,GAEL,OAAOL,EAAUI,IAAmB,MAATA,CAC/B,CAGA,OAAOJ,EAAUI,IAAmB,MAATA,GAGlBE,EAAQ,CAACF,EAAyBG,GAAqB,OAG5DH,GAA0B,iBAAVA,IAFD,CAAC,KAAM,MAAO,OAAQ,IAAK,IAEOI,SAASJ,EAAMK,mBAIhEF,GACOG,EAAQN,GAMVM,EAAWN,GACbA,QAGEO,EAAsB,CAACP,EAAeQ,EAAoB,IAC5DC,OAAOC,WAAWV,EAAMW,QAAQH,IAAYI,WAG1CC,EAAgB,CAACb,EAAwBQ,EAAoB,KACtE,MAAMM,EAAUL,OAAOC,WAAWV,EAAMY,YAAYC,cAAcL,GAAwB,GAE1F,IAAKO,EAAUC,IAAaF,EAAU,IAAIG,MAAM,KAChD,OAAIC,SAASF,GAAY,GAAKE,SAASF,OACnCD,EAAWA,EAASI,SAAS,KAAOZ,EAAoBE,OAAOC,WAAWK,GAAWP,GAAaO,EAC3F,GAAGA,KAAYC,KAEnBhB,GAGL,SAAUoB,EAAwBC,EAAiBrB,GACrD,MAAMsB,EAAUtB,EAAMuB,cACtB,OAAOF,EAAMG,KAAMC,GAASA,EAAKF,cAAcnB,SAASkB,GAC5D,CAGO,MAAMI,EAAe1B,GACxBA,EAAM2B,QAAQ,SAAWC,GAASA,EAAKC,OAAO,GAAGxB,cAAgBuB,EAAKE,UAAU,GAAGP,eAGjF,SAAUQ,EAAoBC,GAEhC,OADAA,EAAOA,EAAKL,QAAQ,KAAM,SAASA,QAAQ,KAAM,QAAQA,QAAQ,KAAM,SAC3DA,QACR,yGACA,SAAUM,GACN,IAAIC,EAAM,SAYV,MAXI,KAAKC,KAAKF,GAENC,EADA,KAAKC,KAAKF,GACJ,MAEA,SAEH,aAAaE,KAAKF,GACzBC,EAAM,UACC,OAAOC,KAAKF,KACnBC,EAAM,QAEH,gBAAkBA,EAAM,KAAOD,EAAQ,SAClD,EAER,CAEM,SAAUG,EAAQR,GAIpB,OAAOA,EAAKD,QADK,+BACcU,GAEpB,YADMA,EAAIC,WAAW,QAAUD,EAAM,WAAWA,kDACeA,QAE9E,UAEgBE,EAAgBX,EAAyBY,EAAoB,MAGzE,OAAIC,MAAMC,QAAQd,GACPA,EAAKe,IAAI,CAACC,EAAMC,IAAQC,qBAAG7D,IAAK,GAAG4D,KAAOD,KAASA,KAG1C,iBAAThB,IACPA,EAAe,MAARA,EAAe,GAAKmB,OAAOnB,IAG/BA,EAAKX,MAAMuB,GAAWG,IAAI,CAACC,EAAMC,IAAQC,EAAAE,cAAA,IAAA,CAAG/D,IAAK,GAAG4D,KAAOD,KAASA,IAC/E"}
1
+ {"version":3,"file":"utils.js","sources":["../src/utils.tsx"],"sourcesContent":[null],"names":["_hasOwnProperty","key","object","undefined","hasOwnProperty","_get","alt","_deepCopy","obj","JSON","parse","stringify","_isObject","a","Object","_isJSON","value","e","_isNA","nullsAsNA","includes","toUpperCase","_isNull","_isEmpty","o","i","check","toFixedWithoutZeros","precision","Number","parseFloat","toFixed","toString","toExponential","snValue","mantissa","exponent","split","parseInt","endsWith","caseInsensitiveIncludes","array","lcValue","toLowerCase","some","item","toTitleCase","replace","text","charAt","substring","jsonSyntaxHighlight","json","match","cls","test","linkify","url","startsWith","formatMultiline","delimiter","Array","isArray","map","line","idx","React","String","createElement","getUrlParam","param","parsed","URL","_a","searchParams","get"],"mappings":"2BAKaA,EAAkB,CAACC,EAAaC,SAA2BC,IAAXD,GAAwBA,EAAOE,eAAeH,GAK9FI,EAAO,CAACJ,EAAaC,EAAaI,EAAW,OAClDN,EAAgBC,EAAKC,GAEdA,EAAOD,GAEXK,EAKEC,EAAaC,GAAaC,KAAKC,MAAMD,KAAKE,UAAUH,IAEpDI,EAAaC,GAAWA,aAAaC,OAErCC,EAAWC,IACpB,IACIA,EAAQP,KAAKC,MAAMM,EACvB,CAAE,MAAOC,GAEL,OAAOL,EAAUI,IAAmB,MAATA,CAC/B,CAGA,OAAOJ,EAAUI,IAAmB,MAATA,GAGlBE,EAAQ,CAACF,EAAyBG,GAAqB,OAG5DH,GAA0B,iBAAVA,IAFD,CAAC,KAAM,MAAO,OAAQ,IAAK,IAEOI,SAASJ,EAAMK,mBAIhEF,GACOG,EAAQN,GAMVM,EAAWN,GACbA,QAGEO,EAAYP,GAUdA,SATO,CAACQ,IACX,IAAK,IAAIC,KAAKD,EACV,GAAIA,EAAEpB,eAAeqB,GACjB,OAAO,EAGf,OAAO,GAGqCC,CAAMV,GAG7CW,EAAsB,CAACX,EAAeY,EAAoB,IAC5DC,OAAOC,WAAWd,EAAMe,QAAQH,IAAYI,WAG1CC,EAAgB,CAACjB,EAAwBY,EAAoB,KACtE,MAAMM,EAAUL,OAAOC,WAAWd,EAAMgB,YAAYC,cAAcL,GAAwB,GAE1F,IAAKO,EAAUC,IAAaF,EAAU,IAAIG,MAAM,KAChD,OAAIC,SAASF,GAAY,GAAKE,SAASF,OACnCD,EAAWA,EAASI,SAAS,KAAOZ,EAAoBE,OAAOC,WAAWK,GAAWP,GAAaO,EAC3F,GAAGA,KAAYC,KAEnBpB,GAGL,SAAUwB,EAAwBC,EAAiBzB,GACrD,MAAM0B,EAAU1B,EAAM2B,cACtB,OAAOF,EAAMG,KAAMC,GAASA,EAAKF,cAAcvB,SAASsB,GAC5D,CAGO,MAAMI,EAAe9B,GACxBA,EAAM+B,QAAQ,SAAWC,GAASA,EAAKC,OAAO,GAAG5B,cAAgB2B,EAAKE,UAAU,GAAGP,eAGjF,SAAUQ,EAAoBC,GAEhC,OADAA,EAAOA,EAAKL,QAAQ,KAAM,SAASA,QAAQ,KAAM,QAAQA,QAAQ,KAAM,SAC3DA,QACR,yGACA,SAAUM,GACN,IAAIC,EAAM,SAYV,MAXI,KAAKC,KAAKF,GAENC,EADA,KAAKC,KAAKF,GACJ,MAEA,SAEH,aAAaE,KAAKF,GACzBC,EAAM,UACC,OAAOC,KAAKF,KACnBC,EAAM,QAEH,gBAAkBA,EAAM,KAAOD,EAAQ,SAClD,EAER,CAEM,SAAUG,EAAQR,GAIpB,OAAOA,EAAKD,QADK,+BACcU,GAEpB,YADMA,EAAIC,WAAW,QAAUD,EAAM,WAAWA,kDACeA,QAE9E,UAEgBE,EAAgBX,EAAyBY,EAAoB,MAGzE,OAAIC,MAAMC,QAAQd,GACPA,EAAKe,IAAI,CAACC,EAAMC,IAAQC,qBAAGjE,IAAK,GAAGgE,KAAOD,KAASA,KAG1C,iBAAThB,IACPA,EAAe,MAARA,EAAe,GAAKmB,OAAOnB,IAG/BA,EAAKX,MAAMuB,GAAWG,IAAI,CAACC,EAAMC,IAAQC,EAAAE,cAAA,IAAA,CAAGnE,IAAK,GAAGgE,KAAOD,KAASA,IAC/E,CAEM,SAAUK,EAAYZ,EAAaa,GACrC,IAAIC,EACJ,IACIA,EAAS,IAAIC,IAAIf,EACrB,CAAE,MAAAgB,GAGEF,EAAS,IAAIC,IAAIf,EAAK,qBAC1B,CACA,OAAOc,EAAOG,aAAaC,IAAIL,EACnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niagads/common",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "scripts": {
5
5
  "build": "rollup -c"
6
6
  },
@@ -17,9 +17,6 @@
17
17
  "rollup-plugin-peer-deps-external": "^2.2.4",
18
18
  "rollup-plugin-postcss": "^4.0.2"
19
19
  },
20
- "dependencies": {
21
- "react-error-boundary": "^4.0.13"
22
- },
23
20
  "main": "dist/index.js",
24
21
  "types": "dist/index.d.ts",
25
22
  "files": [
@@ -29,5 +26,5 @@
29
26
  "publishConfig": {
30
27
  "access": "public"
31
28
  },
32
- "gitHead": "6ce7216cdf0b944dc419abc33ba14e7d3f6592c8"
29
+ "gitHead": "5962101eb3af53695309d0340fe9b9c8e0bcaef4"
33
30
  }