@saas-ui/react 1.8.0 → 1.8.2

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,27 @@
1
1
  # @saas-ui/react
2
2
 
3
+ ## 1.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d424898: Prevent input error in FormDialog to block cancel/close the modal.
8
+ - Updated dependencies [d424898]
9
+ - Updated dependencies [335acba]
10
+ - @saas-ui/modals@1.5.2
11
+ - @saas-ui/forms@1.5.2
12
+ - @saas-ui/radio@1.4.1
13
+ - @saas-ui/auth@1.7.2
14
+
15
+ ## 1.8.1
16
+
17
+ ### Patch Changes
18
+
19
+ - bff22b0: Removed deprecated type
20
+ - Updated dependencies [bff22b0]
21
+ - @saas-ui/forms@1.5.1
22
+ - @saas-ui/auth@1.7.1
23
+ - @saas-ui/modals@1.5.1
24
+
3
25
  ## 1.8.0
4
26
 
5
27
  ### 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.2",
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.2",
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.2",
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.2",
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",
@@ -79,7 +79,7 @@
79
79
  "@saas-ui/pin-input": "1.4.0",
80
80
  "@saas-ui/property": "1.4.0",
81
81
  "@saas-ui/provider": "1.2.0",
82
- "@saas-ui/radio": "1.4.0",
82
+ "@saas-ui/radio": "1.4.1",
83
83
  "@saas-ui/search-input": "1.4.0",
84
84
  "@saas-ui/select": "1.4.0",
85
85
  "@saas-ui/snackbar": "1.2.0",