@saas-ui/react 1.8.0 → 1.8.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @saas-ui/react
2
2
 
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - bff22b0: Removed deprecated type
8
+ - Updated dependencies [bff22b0]
9
+ - @saas-ui/forms@1.5.1
10
+ - @saas-ui/auth@1.7.1
11
+ - @saas-ui/modals@1.5.1
12
+
3
13
  ## 1.8.0
4
14
 
5
15
  ### Minor Changes
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/error-boundary.tsx","../src/typography.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { SaasContext } from '@saas-ui/provider'\n\nexport interface ErrorBoundaryProps {\n errorComponent?: React.ReactNode\n children: React.ReactNode\n}\n\ninterface ErrorBoundaryState {\n error?: Error | null\n errorInfo?: any\n}\n\nexport class ErrorBoundary extends React.Component<ErrorBoundaryProps> {\n state: ErrorBoundaryState\n\n declare context: React.ContextType<typeof SaasContext>\n\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { error: null }\n }\n\n static getDerivedStateFromError(error: Error) {\n return { error }\n }\n\n componentDidCatch(error: Error, errorInfo: any) {\n this.context.onError?.(error, errorInfo)\n }\n\n render() {\n if (this.state.error) {\n return this.props.errorComponent || <h1>Something went wrong.</h1>\n }\n\n return this.props.children\n }\n}\n","import * as React from 'react'\nimport { chakra, HTMLChakraProps } from '@chakra-ui/system'\n\nexport const Br: React.FC<HTMLChakraProps<'span'>> = (props) => {\n return (\n <chakra.span {...props}>\n <br />\n </chakra.span>\n )\n}\n"],"names":["ErrorBoundary","props","_this","_React$Component","call","this","state","error","getDerivedStateFromError","componentDidCatch","errorInfo","_this$context$onError","_this$context","context","onError","_proto","render","errorComponent","React","createElement","children","Component","chakra","span"],"mappings":"20CAcaA,IAAAA,mCAKX,SAAYC,EAAAA,GACV,IAAAC,EAC4B,OAD5BA,EAAAC,EAAAC,KAAAC,KAAMJ,IAAMI,MALdC,WAAK,EAMHJ,EAAKI,MAAQ,CAAEC,MAAO,MAAML,CAC9B,iFAACF,EAEMQ,yBAAP,SAAgCD,GAC9B,MAAO,CAAEA,MAAAA,EACX,EAEAE,IAAAA,EAAAA,EAAAA,UAUC,OAVDA,EAAAA,kBAAA,SAAkBF,EAAcG,GAC9B,IAAAC,EAAAC,EAAA,OAAAD,GAAAC,EAAAP,KAAKQ,SAAQC,UAAbH,EAAAP,KAAAQ,EAAuBL,EAAOG,EAChC,EAACK,EAEDC,OAAA,WACE,OAAIX,KAAKC,MAAMC,WACDN,MAAMgB,6BAAkBC,EAAAC,cAAA,KAAA,KAAA,yBAG/Bd,KAAKJ,MAAMmB,QACpB,EAACpB,CAAA,EAxBgCkB,EAAMG,sBCXY,SAACpB,gBACpD,OACEiB,EAACC,cAAAG,EAAMA,OAACC,KAAStB,eACfiB,EAAAC,cAAA,KAAA,MAGN"}
1
+ {"version":3,"file":"index.js","sources":["../src/error-boundary.tsx","../src/typography.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { SaasContext } from '@saas-ui/provider'\n\nexport interface ErrorBoundaryProps {\n errorComponent?: React.ReactNode\n children: React.ReactNode\n}\n\ninterface ErrorBoundaryState {\n error?: Error | null\n errorInfo?: any\n}\n\nexport class ErrorBoundary extends React.Component<ErrorBoundaryProps> {\n state: ErrorBoundaryState\n\n declare context: React.ContextType<typeof SaasContext>\n\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { error: null }\n }\n\n static getDerivedStateFromError(error: Error) {\n return { error }\n }\n\n componentDidCatch(error: Error, errorInfo: any) {\n this.context.onError?.(error, errorInfo)\n }\n\n render() {\n if (this.state.error) {\n return this.props.errorComponent || <h1>Something went wrong.</h1>\n }\n\n return this.props.children\n }\n}\n","import * as React from 'react'\nimport { chakra, HTMLChakraProps } from '@chakra-ui/system'\n\nexport const Br: React.FC<HTMLChakraProps<'span'>> = (props) => {\n return (\n <chakra.span {...props}>\n <br />\n </chakra.span>\n )\n}\n"],"names":["ErrorBoundary","props","_this","_React$Component","call","this","state","error","getDerivedStateFromError","_proto","prototype","componentDidCatch","errorInfo","_this$context$onError","_this$context","context","onError","render","errorComponent","React","createElement","children","Component","chakra","span"],"mappings":"20CAcaA,IAAAA,mCAKX,SAAYC,EAAAA,GACV,IAAAC,EAC4B,OAD5BA,EAAAC,EAAAC,KAAAC,KAAMJ,IAAMI,MALdC,WAAK,EAMHJ,EAAKI,MAAQ,CAAEC,MAAO,MAAML,CAC9B,iFAACF,EAEMQ,yBAAP,SAAgCD,GAC9B,MAAO,CAAEA,MAAAA,EACX,EAAC,IAAAE,EAAAT,EAAAU,UAYA,OAZAD,EAEDE,kBAAA,SAAkBJ,EAAcK,WAC9B,OAAIC,GAAAC,EAAAT,KAACU,SAAQC,UAAbH,EAAAT,KAAAU,EAAuBP,EAAOK,EAChC,IAEAK,OAAA,WACE,OAAIZ,KAAKC,MAAMC,MACFF,KAACJ,MAAMiB,6BAAkBC,EAAAC,cAAA,KAAA,KAAI,yBAGnCf,KAAKJ,MAAMoB,QACpB,EAACrB,CAAA,EAxBgCmB,EAAMG,sBCXY,SAACrB,gBACpD,OACEkB,EAACC,cAAAG,EAAMA,OAACC,KAASvB,eACfkB,EAAAC,cAAA,KAAA,MAGN"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.modern.mjs","sources":["../src/typography.tsx","../src/error-boundary.tsx"],"sourcesContent":["import * as React from 'react'\nimport { chakra, HTMLChakraProps } from '@chakra-ui/system'\n\nexport const Br: React.FC<HTMLChakraProps<'span'>> = (props) => {\n return (\n <chakra.span {...props}>\n <br />\n </chakra.span>\n )\n}\n","import * as React from 'react'\n\nimport { SaasContext } from '@saas-ui/provider'\n\nexport interface ErrorBoundaryProps {\n errorComponent?: React.ReactNode\n children: React.ReactNode\n}\n\ninterface ErrorBoundaryState {\n error?: Error | null\n errorInfo?: any\n}\n\nexport class ErrorBoundary extends React.Component<ErrorBoundaryProps> {\n state: ErrorBoundaryState\n\n declare context: React.ContextType<typeof SaasContext>\n\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { error: null }\n }\n\n static getDerivedStateFromError(error: Error) {\n return { error }\n }\n\n componentDidCatch(error: Error, errorInfo: any) {\n this.context.onError?.(error, errorInfo)\n }\n\n render() {\n if (this.state.error) {\n return this.props.errorComponent || <h1>Something went wrong.</h1>\n }\n\n return this.props.children\n }\n}\n"],"names":["Br","props","React","createElement","chakra","span","Component","constructor","super","this","state","error","static","componentDidCatch","errorInfo","_this$context$onError","_this$context","context","onError","call","render","errorComponent","children"],"mappings":"y7BAGaA,MAAAA,EAAyCC,gBAElDC,EAAAC,cAACC,EAAOC,KAASJ,eACfC,EACFC,cAAA,KAAA,OCOS,gBAAsBD,EAAMI,UAKvCC,YAAYN,GACVO,MAAMP,GAAMQ,KALdC,aAMED,KAAKC,MAAQ,CAAEC,MAAO,KACxB,CAEAC,gCAAgCD,GAC9B,MAAO,CAAEA,QACX,CAEAE,kBAAkBF,EAAcG,GAC9B,IAAAC,EAAAC,EAAA,OAAAD,GAAAC,EAAAP,KAAKQ,SAAQC,UAAbH,EAAAI,KAAAH,EAAuBL,EAAOG,EAChC,CAEAM,SACE,OAAIX,KAAKC,MAAMC,MACNF,KAAKR,MAAMoB,6BAAkBnB,EAAAC,cAAA,KAAA,KAAA,yBAG/BM,KAAKR,MAAMqB,QACpB"}
1
+ {"version":3,"file":"index.modern.mjs","sources":["../src/typography.tsx","../src/error-boundary.tsx"],"sourcesContent":["import * as React from 'react'\nimport { chakra, HTMLChakraProps } from '@chakra-ui/system'\n\nexport const Br: React.FC<HTMLChakraProps<'span'>> = (props) => {\n return (\n <chakra.span {...props}>\n <br />\n </chakra.span>\n )\n}\n","import * as React from 'react'\n\nimport { SaasContext } from '@saas-ui/provider'\n\nexport interface ErrorBoundaryProps {\n errorComponent?: React.ReactNode\n children: React.ReactNode\n}\n\ninterface ErrorBoundaryState {\n error?: Error | null\n errorInfo?: any\n}\n\nexport class ErrorBoundary extends React.Component<ErrorBoundaryProps> {\n state: ErrorBoundaryState\n\n declare context: React.ContextType<typeof SaasContext>\n\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { error: null }\n }\n\n static getDerivedStateFromError(error: Error) {\n return { error }\n }\n\n componentDidCatch(error: Error, errorInfo: any) {\n this.context.onError?.(error, errorInfo)\n }\n\n render() {\n if (this.state.error) {\n return this.props.errorComponent || <h1>Something went wrong.</h1>\n }\n\n return this.props.children\n }\n}\n"],"names":["Br","props","React","createElement","chakra","span","Component","constructor","super","this","state","error","static","componentDidCatch","errorInfo","_this$context$onError","_this$context","context","onError","render","errorComponent","children"],"mappings":"y7BAGaA,MAAAA,EAAyCC,gBAElDC,EAAAC,cAACC,EAAOC,KAASJ,eACfC,EACFC,cAAA,KAAA,OCOS,gBAAsBD,EAAMI,UAKvCC,YAAYN,GACVO,MAAMP,GAAMQ,KALdC,aAMED,KAAKC,MAAQ,CAAEC,MAAO,KACxB,CAEAC,gCAAgCD,GAC9B,MAAO,CAAEA,QACX,CAEAE,kBAAkBF,EAAcG,kBAC1BC,GAAAC,EAAAP,KAACQ,SAAQC,UAAbH,EAAuBJ,KAAAA,EAAAA,EAAOG,EAChC,CAEAK,SACE,OAAIV,KAAKC,MAAMC,MACFF,KAACR,MAAMmB,6BAAkBlB,EAAIC,cAAA,KAAA,KAAA,8BAG9BF,MAAMoB,QACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Saas UI - The frontend stack for SaaS companies.",
5
5
  "source": "src/index.ts",
6
6
  "exports": {
@@ -57,20 +57,20 @@
57
57
  "dependencies": {
58
58
  "@chakra-ui/system": "^2.3.8",
59
59
  "@saas-ui/app-shell": "1.1.0",
60
- "@saas-ui/auth": "1.7.0",
60
+ "@saas-ui/auth": "1.7.1",
61
61
  "@saas-ui/banner": "1.4.0",
62
62
  "@saas-ui/button": "1.4.0",
63
63
  "@saas-ui/card": "1.5.0",
64
64
  "@saas-ui/collapse": "1.4.0",
65
65
  "@saas-ui/data-table": "1.4.0",
66
- "@saas-ui/forms": "1.5.0",
66
+ "@saas-ui/forms": "1.5.1",
67
67
  "@saas-ui/hooks": "1.2.0",
68
68
  "@saas-ui/hotkeys": "1.4.0",
69
69
  "@saas-ui/input-right-button": "1.4.0",
70
70
  "@saas-ui/layout": "1.4.0",
71
71
  "@saas-ui/list": "1.4.0",
72
72
  "@saas-ui/menu": "1.4.0",
73
- "@saas-ui/modals": "1.5.0",
73
+ "@saas-ui/modals": "1.5.1",
74
74
  "@saas-ui/nprogress": "1.4.0",
75
75
  "@saas-ui/number-input": "1.4.0",
76
76
  "@saas-ui/palette": "1.3.0",