tsdf 9.1.1 → 9.3.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/main.cjs +6 -3
- package/dist/main.d.ts +7 -5
- package/dist/main.js +6 -3
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -1411,7 +1411,8 @@ function newTSDFListQueryStore({
|
|
|
1411
1411
|
error: null,
|
|
1412
1412
|
hasMore: false,
|
|
1413
1413
|
payload: omitPayload ? void 0 : payload,
|
|
1414
|
-
isLoading: returnIdleStatus ? false : true
|
|
1414
|
+
isLoading: returnIdleStatus ? false : true,
|
|
1415
|
+
isLoadingMore: false
|
|
1415
1416
|
};
|
|
1416
1417
|
}
|
|
1417
1418
|
let status = query.status;
|
|
@@ -1425,7 +1426,8 @@ function newTSDFListQueryStore({
|
|
|
1425
1426
|
error: query.error,
|
|
1426
1427
|
hasMore: query.hasMore,
|
|
1427
1428
|
isLoading: status === "loading",
|
|
1428
|
-
payload: omitPayload ? void 0 : query.payload
|
|
1429
|
+
payload: omitPayload ? void 0 : query.payload,
|
|
1430
|
+
isLoadingMore: status === "loadingMore"
|
|
1429
1431
|
};
|
|
1430
1432
|
}
|
|
1431
1433
|
);
|
|
@@ -1487,7 +1489,8 @@ function newTSDFListQueryStore({
|
|
|
1487
1489
|
isLoading: false,
|
|
1488
1490
|
status: "idle",
|
|
1489
1491
|
queryKey: "",
|
|
1490
|
-
items: []
|
|
1492
|
+
items: [],
|
|
1493
|
+
isLoadingMore: false
|
|
1491
1494
|
},
|
|
1492
1495
|
[queryResult]
|
|
1493
1496
|
);
|
package/dist/main.d.ts
CHANGED
|
@@ -159,6 +159,7 @@ type TSFDUseListQueryReturn<Selected, ItemPayload, NError> = {
|
|
|
159
159
|
queryKey: string;
|
|
160
160
|
hasMore: boolean;
|
|
161
161
|
isLoading: boolean;
|
|
162
|
+
isLoadingMore: boolean;
|
|
162
163
|
};
|
|
163
164
|
type TSFDUseListItemReturn<Selected, NError, ItemPayload> = {
|
|
164
165
|
data: Selected;
|
|
@@ -167,11 +168,12 @@ type TSFDUseListItemReturn<Selected, NError, ItemPayload> = {
|
|
|
167
168
|
error: NError | null;
|
|
168
169
|
isLoading: boolean;
|
|
169
170
|
};
|
|
171
|
+
type FetchListFnReturnItem<ItemPayload extends ValidPayload, ItemState extends ValidStoreState> = {
|
|
172
|
+
itemPayload: ItemPayload;
|
|
173
|
+
data: ItemState;
|
|
174
|
+
};
|
|
170
175
|
type FetchListFnReturn<ItemState extends ValidStoreState, ItemPayload extends ValidPayload> = {
|
|
171
|
-
items:
|
|
172
|
-
itemPayload: ItemPayload;
|
|
173
|
-
data: ItemState;
|
|
174
|
-
}[];
|
|
176
|
+
items: FetchListFnReturnItem<ItemPayload, ItemState>[];
|
|
175
177
|
hasMore: boolean;
|
|
176
178
|
};
|
|
177
179
|
type ListQueryStoreInitialData<ItemState extends ValidStoreState, QueryPayload extends ValidPayload, ItemPayload extends ValidPayload> = {
|
|
@@ -302,4 +304,4 @@ declare function newTSDFListQueryStore<ItemState extends ValidStoreState, NError
|
|
|
302
304
|
};
|
|
303
305
|
type TSFDListQueryStore<ItemState extends ValidStoreState, NError, QueryPayload extends ValidPayload, ItemPayload extends ValidPayload> = ReturnType<typeof newTSDFListQueryStore<ItemState, NError, QueryPayload, ItemPayload>>;
|
|
304
306
|
|
|
305
|
-
export { CollectionInitialStateItem, FetchListFnReturn, ListQueryStoreInitialData, TSDFCollectionStore, TSDFDocumentStore, TSDFDocumentStoreState, TSDFItemQuery, TSDFStatus, TSDFUseDocumentReturn, TSFDCollectionItem, TSFDCollectionState, TSFDListQuery, TSFDListQueryState, TSFDListQueryStore, TSFDUseCollectionItemReturn, TSFDUseListItemReturn, TSFDUseListQueryReturn, ValidPayload, ValidStoreState, newTSDFCollectionStore, newTSDFDocumentStore, newTSDFListQueryStore };
|
|
307
|
+
export { CollectionInitialStateItem, FetchListFnReturn, FetchListFnReturnItem, ListQueryStoreInitialData, TSDFCollectionStore, TSDFDocumentStore, TSDFDocumentStoreState, TSDFItemQuery, TSDFStatus, TSDFUseDocumentReturn, TSFDCollectionItem, TSFDCollectionState, TSFDListQuery, TSFDListQueryState, TSFDListQueryStore, TSFDUseCollectionItemReturn, TSFDUseListItemReturn, TSFDUseListQueryReturn, ValidPayload, ValidStoreState, newTSDFCollectionStore, newTSDFDocumentStore, newTSDFListQueryStore };
|
package/dist/main.js
CHANGED
|
@@ -1377,7 +1377,8 @@ function newTSDFListQueryStore({
|
|
|
1377
1377
|
error: null,
|
|
1378
1378
|
hasMore: false,
|
|
1379
1379
|
payload: omitPayload ? void 0 : payload,
|
|
1380
|
-
isLoading: returnIdleStatus ? false : true
|
|
1380
|
+
isLoading: returnIdleStatus ? false : true,
|
|
1381
|
+
isLoadingMore: false
|
|
1381
1382
|
};
|
|
1382
1383
|
}
|
|
1383
1384
|
let status = query.status;
|
|
@@ -1391,7 +1392,8 @@ function newTSDFListQueryStore({
|
|
|
1391
1392
|
error: query.error,
|
|
1392
1393
|
hasMore: query.hasMore,
|
|
1393
1394
|
isLoading: status === "loading",
|
|
1394
|
-
payload: omitPayload ? void 0 : query.payload
|
|
1395
|
+
payload: omitPayload ? void 0 : query.payload,
|
|
1396
|
+
isLoadingMore: status === "loadingMore"
|
|
1395
1397
|
};
|
|
1396
1398
|
}
|
|
1397
1399
|
);
|
|
@@ -1453,7 +1455,8 @@ function newTSDFListQueryStore({
|
|
|
1453
1455
|
isLoading: false,
|
|
1454
1456
|
status: "idle",
|
|
1455
1457
|
queryKey: "",
|
|
1456
|
-
items: []
|
|
1458
|
+
items: [],
|
|
1459
|
+
isLoadingMore: false
|
|
1457
1460
|
},
|
|
1458
1461
|
[queryResult]
|
|
1459
1462
|
);
|