@availity/mui-spaces 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 +7 -0
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +2 -2
- package/src/lib/Spaces.tsx +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.1.1](https://github.com/Availity/element/compare/@availity/mui-spaces@0.1.0...@availity/mui-spaces@0.1.1) (2024-05-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **mui-spaces:** error handling for v4 of react-query ([8b72ab1](https://github.com/Availity/element/commit/8b72ab19f44c704a77a80d9b917111d664e90352))
|
|
11
|
+
|
|
5
12
|
## 0.1.0 (2024-05-17)
|
|
6
13
|
|
|
7
14
|
### Dependency Updates
|
package/dist/index.js
CHANGED
|
@@ -332,8 +332,8 @@ var Spaces = ({
|
|
|
332
332
|
const spaceIdVars = __spreadProps(__spreadValues({}, variables), { ids: [...spaceIdsToQuery.keys()] });
|
|
333
333
|
const payerIdVars = __spreadProps(__spreadValues({}, variables), { payerIds: [...payerIdsToQuery.keys()] });
|
|
334
334
|
const [
|
|
335
|
-
{ data: spacesBySpaceIds, isFetching: isLoadingBySpaceIds,
|
|
336
|
-
{ data: spacesByPayerIds, isFetching: isLoadingByPayerIds,
|
|
335
|
+
{ data: spacesBySpaceIds, isFetching: isLoadingBySpaceIds, isError: isErrorBySpaceIds },
|
|
336
|
+
{ data: spacesByPayerIds, isFetching: isLoadingByPayerIds, isError: isErrorByPayerIds }
|
|
337
337
|
] = (0, import_react_query.useQueries)({
|
|
338
338
|
queries: [
|
|
339
339
|
{
|
|
@@ -349,14 +349,14 @@ var Spaces = ({
|
|
|
349
349
|
]
|
|
350
350
|
});
|
|
351
351
|
(0, import_react.useEffect)(() => {
|
|
352
|
-
if (
|
|
352
|
+
if (isErrorByPayerIds || isErrorBySpaceIds) {
|
|
353
353
|
dispatch({
|
|
354
354
|
type: "ERROR",
|
|
355
|
-
error:
|
|
355
|
+
error: "Error fetching spaces.",
|
|
356
356
|
loading: false
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
-
}, [
|
|
359
|
+
}, [isErrorByPayerIds, isErrorBySpaceIds]);
|
|
360
360
|
(0, import_react.useEffect)(() => {
|
|
361
361
|
dispatch({
|
|
362
362
|
type: "LOADING",
|
package/dist/index.mjs
CHANGED
|
@@ -305,8 +305,8 @@ var Spaces = ({
|
|
|
305
305
|
const spaceIdVars = __spreadProps(__spreadValues({}, variables), { ids: [...spaceIdsToQuery.keys()] });
|
|
306
306
|
const payerIdVars = __spreadProps(__spreadValues({}, variables), { payerIds: [...payerIdsToQuery.keys()] });
|
|
307
307
|
const [
|
|
308
|
-
{ data: spacesBySpaceIds, isFetching: isLoadingBySpaceIds,
|
|
309
|
-
{ data: spacesByPayerIds, isFetching: isLoadingByPayerIds,
|
|
308
|
+
{ data: spacesBySpaceIds, isFetching: isLoadingBySpaceIds, isError: isErrorBySpaceIds },
|
|
309
|
+
{ data: spacesByPayerIds, isFetching: isLoadingByPayerIds, isError: isErrorByPayerIds }
|
|
310
310
|
] = useQueries({
|
|
311
311
|
queries: [
|
|
312
312
|
{
|
|
@@ -322,14 +322,14 @@ var Spaces = ({
|
|
|
322
322
|
]
|
|
323
323
|
});
|
|
324
324
|
useEffect(() => {
|
|
325
|
-
if (
|
|
325
|
+
if (isErrorByPayerIds || isErrorBySpaceIds) {
|
|
326
326
|
dispatch({
|
|
327
327
|
type: "ERROR",
|
|
328
|
-
error:
|
|
328
|
+
error: "Error fetching spaces.",
|
|
329
329
|
loading: false
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
|
-
}, [
|
|
332
|
+
}, [isErrorByPayerIds, isErrorBySpaceIds]);
|
|
333
333
|
useEffect(() => {
|
|
334
334
|
dispatch({
|
|
335
335
|
type: "LOADING",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-spaces",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Availity MUI Spaces Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@availity/mui-button": "^0.6.7",
|
|
52
52
|
"@availity/mui-modal": "^0.1.3",
|
|
53
53
|
"@availity/mui-typography": "^0.1.8",
|
|
54
|
-
"@tanstack/react-query": "^
|
|
54
|
+
"@tanstack/react-query": "^4.36.1",
|
|
55
55
|
"dayjs": "^1.11.10",
|
|
56
56
|
"qs": "^6.12.1",
|
|
57
57
|
"react-markdown": "^9.0.1"
|
package/src/lib/Spaces.tsx
CHANGED
|
@@ -74,8 +74,8 @@ export const Spaces = ({
|
|
|
74
74
|
const payerIdVars = { ...variables, payerIds: [...payerIdsToQuery.keys()] };
|
|
75
75
|
|
|
76
76
|
const [
|
|
77
|
-
{ data: spacesBySpaceIds, isFetching: isLoadingBySpaceIds,
|
|
78
|
-
{ data: spacesByPayerIds, isFetching: isLoadingByPayerIds,
|
|
77
|
+
{ data: spacesBySpaceIds, isFetching: isLoadingBySpaceIds, isError: isErrorBySpaceIds },
|
|
78
|
+
{ data: spacesByPayerIds, isFetching: isLoadingByPayerIds, isError: isErrorByPayerIds },
|
|
79
79
|
] = useQueries({
|
|
80
80
|
queries: [
|
|
81
81
|
{
|
|
@@ -92,14 +92,14 @@ export const Spaces = ({
|
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
useEffect(() => {
|
|
95
|
-
if (
|
|
95
|
+
if (isErrorByPayerIds || isErrorBySpaceIds) {
|
|
96
96
|
dispatch({
|
|
97
97
|
type: 'ERROR',
|
|
98
|
-
error:
|
|
98
|
+
error: 'Error fetching spaces.',
|
|
99
99
|
loading: false,
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
}, [
|
|
102
|
+
}, [isErrorByPayerIds, isErrorBySpaceIds]);
|
|
103
103
|
|
|
104
104
|
useEffect(() => {
|
|
105
105
|
dispatch({
|