@gravity-ui/data-source 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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Data Source
|
|
1
|
+
# Data Source · [](https://www.npmjs.com/package/@gravity-ui/data-source) [](https://github.com/gravity-ui/data-source/actions/workflows/ci.yml?query=branch:main)
|
|
2
2
|
|
|
3
3
|
**Data Source** is a simple wrapper around data fetching. It is a kind of "port" in [clean architecture](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html). It allows you to make wrappers for stuff around data fetching depending on your use cases. **Data Source** uses [react-query](https://tanstack.com/query/latest) under the hood.
|
|
4
4
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { DataManagerContext, useDataManager } from './DataManagerContext';
|
|
2
2
|
export type { WithDataManagerProps } from './withDataManager';
|
|
3
3
|
export { withDataManager } from './withDataManager';
|
|
4
|
+
export type { ErrorAction, ErrorViewProps } from './components/types';
|
|
4
5
|
export * from './components/DataLoader';
|
|
5
6
|
export * from './components/DataInfiniteLoader';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_DataManagerContext","require","_withDataManager","_DataLoader","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_DataInfiniteLoader"],"sources":["index.ts"],"sourcesContent":["export {DataManagerContext, useDataManager} from './DataManagerContext';\n\nexport type {WithDataManagerProps} from './withDataManager';\nexport {withDataManager} from './withDataManager';\n\nexport * from './components/DataLoader';\nexport * from './components/DataInfiniteLoader';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;
|
|
1
|
+
{"version":3,"names":["_DataManagerContext","require","_withDataManager","_DataLoader","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_DataInfiniteLoader"],"sources":["index.ts"],"sourcesContent":["export {DataManagerContext, useDataManager} from './DataManagerContext';\n\nexport type {WithDataManagerProps} from './withDataManager';\nexport {withDataManager} from './withDataManager';\n\nexport type {ErrorAction, ErrorViewProps} from './components/types';\nexport * from './components/DataLoader';\nexport * from './components/DataInfiniteLoader';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAGA,IAAAE,WAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,WAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,WAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,WAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,mBAAA,GAAAf,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAW,mBAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,mBAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,mBAAA,CAAAT,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { DataManagerContext, useDataManager } from './DataManagerContext';
|
|
2
2
|
export type { WithDataManagerProps } from './withDataManager';
|
|
3
3
|
export { withDataManager } from './withDataManager';
|
|
4
|
+
export type { ErrorAction, ErrorViewProps } from './components/types';
|
|
4
5
|
export * from './components/DataLoader';
|
|
5
6
|
export * from './components/DataInfiniteLoader';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DataManagerContext","useDataManager","withDataManager"],"sources":["index.ts"],"sourcesContent":["export {DataManagerContext, useDataManager} from './DataManagerContext';\n\nexport type {WithDataManagerProps} from './withDataManager';\nexport {withDataManager} from './withDataManager';\n\nexport * from './components/DataLoader';\nexport * from './components/DataInfiniteLoader';\n"],"mappings":"AAAA,SAAQA,kBAAkB,EAAEC,cAAc,QAAO,sBAAsB;AAGvE,SAAQC,eAAe,QAAO,mBAAmB;
|
|
1
|
+
{"version":3,"names":["DataManagerContext","useDataManager","withDataManager"],"sources":["index.ts"],"sourcesContent":["export {DataManagerContext, useDataManager} from './DataManagerContext';\n\nexport type {WithDataManagerProps} from './withDataManager';\nexport {withDataManager} from './withDataManager';\n\nexport type {ErrorAction, ErrorViewProps} from './components/types';\nexport * from './components/DataLoader';\nexport * from './components/DataInfiniteLoader';\n"],"mappings":"AAAA,SAAQA,kBAAkB,EAAEC,cAAc,QAAO,sBAAsB;AAGvE,SAAQC,eAAe,QAAO,mBAAmB;AAGjD,cAAc,yBAAyB;AACvC,cAAc,iCAAiC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/data-source",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A wrapper around data fetching",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-fetching",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"deps:ci": "npm ci",
|
|
38
38
|
"lint": "eslint .",
|
|
39
39
|
"lint:fix": "npm run lint -- --fix",
|
|
40
|
-
"prepare": "husky
|
|
40
|
+
"prepare": "husky",
|
|
41
41
|
"prepublishOnly": "npm run build",
|
|
42
42
|
"test": "jest --passWithNoTests",
|
|
43
43
|
"typecheck": "tsc --noEmit"
|