@vuu-ui/vuu-data-react 2.1.0-alpha.8 → 2.1.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.
|
@@ -13,6 +13,7 @@ const VuuDataSourceProvider = ({
|
|
|
13
13
|
children,
|
|
14
14
|
websocketUrl
|
|
15
15
|
}) => {
|
|
16
|
+
const { VuuDataSource } = vuuUtils.useData();
|
|
16
17
|
useAutoLoginToVuuServer.useAutoLoginToVuuServer({
|
|
17
18
|
authenticate,
|
|
18
19
|
autoConnect,
|
|
@@ -22,7 +23,7 @@ const VuuDataSourceProvider = ({
|
|
|
22
23
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23
24
|
vuuUtils.DataProvider,
|
|
24
25
|
{
|
|
25
|
-
VuuDataSource
|
|
26
|
+
VuuDataSource,
|
|
26
27
|
getServerAPI,
|
|
27
28
|
isLocalData: false,
|
|
28
29
|
children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VuuDataSourceProvider.js","sources":["../../../../packages/vuu-data-react/src/datasource-provider/VuuDataSourceProvider.tsx"],"sourcesContent":["import { ConnectionManager
|
|
1
|
+
{"version":3,"file":"VuuDataSourceProvider.js","sources":["../../../../packages/vuu-data-react/src/datasource-provider/VuuDataSourceProvider.tsx"],"sourcesContent":["import { ConnectionManager } from \"@vuu-ui/vuu-data-remote\";\nimport { DataProvider, useData } from \"@vuu-ui/vuu-utils\";\nimport { ReactNode } from \"react\";\nimport { useAutoLoginToVuuServer } from \"./useAutoLoginToVuuServer\";\n\nconst getServerAPI = () => ConnectionManager.serverAPI;\n\nexport const VuuDataSourceProvider = ({\n authenticate,\n autoConnect = false,\n autoLogin = false,\n children,\n websocketUrl,\n}: {\n authenticate?: boolean;\n autoConnect?: boolean;\n autoLogin?: boolean;\n children: ReactNode;\n websocketUrl?: string;\n}) => {\n const { VuuDataSource } = useData();\n\n useAutoLoginToVuuServer({\n authenticate,\n autoConnect,\n autoLogin,\n websocketUrl,\n });\n\n return (\n <DataProvider\n VuuDataSource={VuuDataSource}\n getServerAPI={getServerAPI}\n isLocalData={false}\n >\n {children}\n </DataProvider>\n );\n};\n"],"names":["ConnectionManager","useData","useAutoLoginToVuuServer","jsx","DataProvider"],"mappings":";;;;;;;AAKA,MAAM,YAAA,GAAe,MAAMA,+BAAkB,CAAA,SAAA;AAEtC,MAAM,wBAAwB,CAAC;AAAA,EACpC,YAAA;AAAA,EACA,WAAc,GAAA,KAAA;AAAA,EACd,SAAY,GAAA,KAAA;AAAA,EACZ,QAAA;AAAA,EACA;AACF,CAMM,KAAA;AACJ,EAAM,MAAA,EAAE,aAAc,EAAA,GAAIC,gBAAQ,EAAA;AAElC,EAAwBC,+CAAA,CAAA;AAAA,IACtB,YAAA;AAAA,IACA,WAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,GACD,CAAA;AAED,EACE,uBAAAC,cAAA;AAAA,IAACC,qBAAA;AAAA,IAAA;AAAA,MACC,aAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAa,EAAA,KAAA;AAAA,MAEZ;AAAA;AAAA,GACH;AAEJ;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import { DataProvider } from '@vuu-ui/vuu-utils';
|
|
2
|
+
import { ConnectionManager } from '@vuu-ui/vuu-data-remote';
|
|
3
|
+
import { useData, DataProvider } from '@vuu-ui/vuu-utils';
|
|
4
4
|
import { useAutoLoginToVuuServer } from './useAutoLoginToVuuServer.js';
|
|
5
5
|
|
|
6
6
|
const getServerAPI = () => ConnectionManager.serverAPI;
|
|
@@ -11,6 +11,7 @@ const VuuDataSourceProvider = ({
|
|
|
11
11
|
children,
|
|
12
12
|
websocketUrl
|
|
13
13
|
}) => {
|
|
14
|
+
const { VuuDataSource } = useData();
|
|
14
15
|
useAutoLoginToVuuServer({
|
|
15
16
|
authenticate,
|
|
16
17
|
autoConnect,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VuuDataSourceProvider.js","sources":["../../../../packages/vuu-data-react/src/datasource-provider/VuuDataSourceProvider.tsx"],"sourcesContent":["import { ConnectionManager
|
|
1
|
+
{"version":3,"file":"VuuDataSourceProvider.js","sources":["../../../../packages/vuu-data-react/src/datasource-provider/VuuDataSourceProvider.tsx"],"sourcesContent":["import { ConnectionManager } from \"@vuu-ui/vuu-data-remote\";\nimport { DataProvider, useData } from \"@vuu-ui/vuu-utils\";\nimport { ReactNode } from \"react\";\nimport { useAutoLoginToVuuServer } from \"./useAutoLoginToVuuServer\";\n\nconst getServerAPI = () => ConnectionManager.serverAPI;\n\nexport const VuuDataSourceProvider = ({\n authenticate,\n autoConnect = false,\n autoLogin = false,\n children,\n websocketUrl,\n}: {\n authenticate?: boolean;\n autoConnect?: boolean;\n autoLogin?: boolean;\n children: ReactNode;\n websocketUrl?: string;\n}) => {\n const { VuuDataSource } = useData();\n\n useAutoLoginToVuuServer({\n authenticate,\n autoConnect,\n autoLogin,\n websocketUrl,\n });\n\n return (\n <DataProvider\n VuuDataSource={VuuDataSource}\n getServerAPI={getServerAPI}\n isLocalData={false}\n >\n {children}\n </DataProvider>\n );\n};\n"],"names":[],"mappings":";;;;;AAKA,MAAM,YAAA,GAAe,MAAM,iBAAkB,CAAA,SAAA;AAEtC,MAAM,wBAAwB,CAAC;AAAA,EACpC,YAAA;AAAA,EACA,WAAc,GAAA,KAAA;AAAA,EACd,SAAY,GAAA,KAAA;AAAA,EACZ,QAAA;AAAA,EACA;AACF,CAMM,KAAA;AACJ,EAAM,MAAA,EAAE,aAAc,EAAA,GAAI,OAAQ,EAAA;AAElC,EAAwB,uBAAA,CAAA;AAAA,IACtB,YAAA;AAAA,IACA,WAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,GACD,CAAA;AAED,EACE,uBAAA,GAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,aAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAa,EAAA,KAAA;AAAA,MAEZ;AAAA;AAAA,GACH;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.0
|
|
2
|
+
"version": "2.1.0",
|
|
3
3
|
"author": "heswell",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@vuu-ui/vuu-data-types": "2.1.0
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "2.1.0
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "2.1.0
|
|
9
|
-
"@vuu-ui/vuu-table-types": "2.1.0
|
|
6
|
+
"@vuu-ui/vuu-data-types": "2.1.0",
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "2.1.0",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "2.1.0",
|
|
9
|
+
"@vuu-ui/vuu-table-types": "2.1.0"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@vuu-ui/vuu-context-menu": "2.1.0
|
|
13
|
-
"@vuu-ui/vuu-data-remote": "2.1.0
|
|
14
|
-
"@vuu-ui/vuu-filter-parser": "2.1.0
|
|
15
|
-
"@vuu-ui/vuu-filters": "2.1.0
|
|
16
|
-
"@vuu-ui/vuu-layout": "2.1.0
|
|
17
|
-
"@vuu-ui/vuu-notifications": "2.1.0
|
|
18
|
-
"@vuu-ui/vuu-ui-controls": "2.1.0
|
|
19
|
-
"@vuu-ui/vuu-utils": "2.1.0
|
|
20
|
-
"@vuu-ui/vuu-table": "2.1.0
|
|
12
|
+
"@vuu-ui/vuu-context-menu": "2.1.0",
|
|
13
|
+
"@vuu-ui/vuu-data-remote": "2.1.0",
|
|
14
|
+
"@vuu-ui/vuu-filter-parser": "2.1.0",
|
|
15
|
+
"@vuu-ui/vuu-filters": "2.1.0",
|
|
16
|
+
"@vuu-ui/vuu-layout": "2.1.0",
|
|
17
|
+
"@vuu-ui/vuu-notifications": "2.1.0",
|
|
18
|
+
"@vuu-ui/vuu-ui-controls": "2.1.0",
|
|
19
|
+
"@vuu-ui/vuu-utils": "2.1.0",
|
|
20
|
+
"@vuu-ui/vuu-table": "2.1.0",
|
|
21
21
|
"@salt-ds/core": "1.54.1",
|
|
22
22
|
"@salt-ds/styles": "0.2.1",
|
|
23
23
|
"@salt-ds/window": "0.1.1"
|