@vuu-ui/vuu-data-react 0.13.95-alpha.6 → 0.13.95-alpha.7
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.
|
@@ -14,7 +14,6 @@ const useLostConnection = () => {
|
|
|
14
14
|
const { current: wasConnected } = isConnectedRef;
|
|
15
15
|
isConnectedRef.current = vuuDataRemote.isConnected(connectionStatus);
|
|
16
16
|
if (wasConnected && connectionStatus === "disconnected") {
|
|
17
|
-
console.log(`[useLostConnection] connection lost show spinner`);
|
|
18
17
|
showNotification({
|
|
19
18
|
content: /* @__PURE__ */ jsxRuntime.jsx(LostConnectionIndicator.LostConnectionIndicator, {}),
|
|
20
19
|
status: "error",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLostConnection.js","sources":["../../../../packages/vuu-data-react/src/lost-connection-indicator/useLostConnection.tsx"],"sourcesContent":["import {\n ConnectionManager,\n ConnectionStatus,\n isConnected,\n} from \"@vuu-ui/vuu-data-remote\";\nimport { useCallback, useMemo, useRef } from \"react\";\nimport { NotificationType, useNotifications } from \"@vuu-ui/vuu-notifications\";\nimport { LostConnectionIndicator } from \"../lost-connection-indicator/LostConnectionIndicator\";\n\nexport const useLostConnection = () => {\n const { hideNotification, showNotification } = useNotifications();\n\n const isConnectedRef = useRef(ConnectionManager.connected);\n\n const handleConnectionStatusChange = useCallback(\n (connectionStatus: ConnectionStatus) => {\n const { current: wasConnected } = isConnectedRef;\n isConnectedRef.current = isConnected(connectionStatus);\n\n if (wasConnected && connectionStatus === \"disconnected\") {\n
|
|
1
|
+
{"version":3,"file":"useLostConnection.js","sources":["../../../../packages/vuu-data-react/src/lost-connection-indicator/useLostConnection.tsx"],"sourcesContent":["import {\n ConnectionManager,\n ConnectionStatus,\n isConnected,\n} from \"@vuu-ui/vuu-data-remote\";\nimport { useCallback, useMemo, useRef } from \"react\";\nimport { NotificationType, useNotifications } from \"@vuu-ui/vuu-notifications\";\nimport { LostConnectionIndicator } from \"../lost-connection-indicator/LostConnectionIndicator\";\n\nexport const useLostConnection = () => {\n const { hideNotification, showNotification } = useNotifications();\n\n const isConnectedRef = useRef(ConnectionManager.connected);\n\n const handleConnectionStatusChange = useCallback(\n (connectionStatus: ConnectionStatus) => {\n const { current: wasConnected } = isConnectedRef;\n isConnectedRef.current = isConnected(connectionStatus);\n\n if (wasConnected && connectionStatus === \"disconnected\") {\n showNotification({\n content: <LostConnectionIndicator />,\n status: \"error\",\n type: NotificationType.Workspace,\n });\n } else if (!wasConnected && isConnectedRef.current) {\n hideNotification();\n }\n },\n [hideNotification, showNotification],\n );\n\n useMemo(async () => {\n ConnectionManager.on(\"connection-status\", handleConnectionStatusChange);\n }, [handleConnectionStatusChange]);\n};\n"],"names":["useNotifications","useRef","ConnectionManager","useCallback","isConnected","LostConnectionIndicator","NotificationType","useMemo"],"mappings":";;;;;;;;AASO,MAAM,oBAAoB,MAAM;AACrC,EAAA,MAAM,EAAE,gBAAA,EAAkB,gBAAiB,EAAA,GAAIA,iCAAiB,EAAA;AAEhE,EAAM,MAAA,cAAA,GAAiBC,YAAO,CAAAC,+BAAA,CAAkB,SAAS,CAAA;AAEzD,EAAA,MAAM,4BAA+B,GAAAC,iBAAA;AAAA,IACnC,CAAC,gBAAuC,KAAA;AACtC,MAAM,MAAA,EAAE,OAAS,EAAA,YAAA,EAAiB,GAAA,cAAA;AAClC,MAAe,cAAA,CAAA,OAAA,GAAUC,0BAAY,gBAAgB,CAAA;AAErD,MAAI,IAAA,YAAA,IAAgB,qBAAqB,cAAgB,EAAA;AACvD,QAAiB,gBAAA,CAAA;AAAA,UACf,OAAA,iCAAUC,+CAAwB,EAAA,EAAA,CAAA;AAAA,UAClC,MAAQ,EAAA,OAAA;AAAA,UACR,MAAMC,iCAAiB,CAAA;AAAA,SACxB,CAAA;AAAA,OACQ,MAAA,IAAA,CAAC,YAAgB,IAAA,cAAA,CAAe,OAAS,EAAA;AAClD,QAAiB,gBAAA,EAAA;AAAA;AACnB,KACF;AAAA,IACA,CAAC,kBAAkB,gBAAgB;AAAA,GACrC;AAEA,EAAAC,aAAA,CAAQ,YAAY;AAClB,IAAkBL,+BAAA,CAAA,EAAA,CAAG,qBAAqB,4BAA4B,CAAA;AAAA,GACxE,EAAG,CAAC,4BAA4B,CAAC,CAAA;AACnC;;;;"}
|
|
@@ -12,7 +12,6 @@ const useLostConnection = () => {
|
|
|
12
12
|
const { current: wasConnected } = isConnectedRef;
|
|
13
13
|
isConnectedRef.current = isConnected(connectionStatus);
|
|
14
14
|
if (wasConnected && connectionStatus === "disconnected") {
|
|
15
|
-
console.log(`[useLostConnection] connection lost show spinner`);
|
|
16
15
|
showNotification({
|
|
17
16
|
content: /* @__PURE__ */ jsx(LostConnectionIndicator, {}),
|
|
18
17
|
status: "error",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLostConnection.js","sources":["../../../../packages/vuu-data-react/src/lost-connection-indicator/useLostConnection.tsx"],"sourcesContent":["import {\n ConnectionManager,\n ConnectionStatus,\n isConnected,\n} from \"@vuu-ui/vuu-data-remote\";\nimport { useCallback, useMemo, useRef } from \"react\";\nimport { NotificationType, useNotifications } from \"@vuu-ui/vuu-notifications\";\nimport { LostConnectionIndicator } from \"../lost-connection-indicator/LostConnectionIndicator\";\n\nexport const useLostConnection = () => {\n const { hideNotification, showNotification } = useNotifications();\n\n const isConnectedRef = useRef(ConnectionManager.connected);\n\n const handleConnectionStatusChange = useCallback(\n (connectionStatus: ConnectionStatus) => {\n const { current: wasConnected } = isConnectedRef;\n isConnectedRef.current = isConnected(connectionStatus);\n\n if (wasConnected && connectionStatus === \"disconnected\") {\n
|
|
1
|
+
{"version":3,"file":"useLostConnection.js","sources":["../../../../packages/vuu-data-react/src/lost-connection-indicator/useLostConnection.tsx"],"sourcesContent":["import {\n ConnectionManager,\n ConnectionStatus,\n isConnected,\n} from \"@vuu-ui/vuu-data-remote\";\nimport { useCallback, useMemo, useRef } from \"react\";\nimport { NotificationType, useNotifications } from \"@vuu-ui/vuu-notifications\";\nimport { LostConnectionIndicator } from \"../lost-connection-indicator/LostConnectionIndicator\";\n\nexport const useLostConnection = () => {\n const { hideNotification, showNotification } = useNotifications();\n\n const isConnectedRef = useRef(ConnectionManager.connected);\n\n const handleConnectionStatusChange = useCallback(\n (connectionStatus: ConnectionStatus) => {\n const { current: wasConnected } = isConnectedRef;\n isConnectedRef.current = isConnected(connectionStatus);\n\n if (wasConnected && connectionStatus === \"disconnected\") {\n showNotification({\n content: <LostConnectionIndicator />,\n status: \"error\",\n type: NotificationType.Workspace,\n });\n } else if (!wasConnected && isConnectedRef.current) {\n hideNotification();\n }\n },\n [hideNotification, showNotification],\n );\n\n useMemo(async () => {\n ConnectionManager.on(\"connection-status\", handleConnectionStatusChange);\n }, [handleConnectionStatusChange]);\n};\n"],"names":[],"mappings":";;;;;;AASO,MAAM,oBAAoB,MAAM;AACrC,EAAA,MAAM,EAAE,gBAAA,EAAkB,gBAAiB,EAAA,GAAI,gBAAiB,EAAA;AAEhE,EAAM,MAAA,cAAA,GAAiB,MAAO,CAAA,iBAAA,CAAkB,SAAS,CAAA;AAEzD,EAAA,MAAM,4BAA+B,GAAA,WAAA;AAAA,IACnC,CAAC,gBAAuC,KAAA;AACtC,MAAM,MAAA,EAAE,OAAS,EAAA,YAAA,EAAiB,GAAA,cAAA;AAClC,MAAe,cAAA,CAAA,OAAA,GAAU,YAAY,gBAAgB,CAAA;AAErD,MAAI,IAAA,YAAA,IAAgB,qBAAqB,cAAgB,EAAA;AACvD,QAAiB,gBAAA,CAAA;AAAA,UACf,OAAA,sBAAU,uBAAwB,EAAA,EAAA,CAAA;AAAA,UAClC,MAAQ,EAAA,OAAA;AAAA,UACR,MAAM,gBAAiB,CAAA;AAAA,SACxB,CAAA;AAAA,OACQ,MAAA,IAAA,CAAC,YAAgB,IAAA,cAAA,CAAe,OAAS,EAAA;AAClD,QAAiB,gBAAA,EAAA;AAAA;AACnB,KACF;AAAA,IACA,CAAC,kBAAkB,gBAAgB;AAAA,GACrC;AAEA,EAAA,OAAA,CAAQ,YAAY;AAClB,IAAkB,iBAAA,CAAA,EAAA,CAAG,qBAAqB,4BAA4B,CAAA;AAAA,GACxE,EAAG,CAAC,4BAA4B,CAAC,CAAA;AACnC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.13.95-alpha.
|
|
2
|
+
"version": "0.13.95-alpha.7",
|
|
3
3
|
"author": "heswell",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@vuu-ui/vuu-data-types": "0.13.95-alpha.
|
|
7
|
-
"@vuu-ui/vuu-filter-types": "0.13.95-alpha.
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "0.13.95-alpha.
|
|
9
|
-
"@vuu-ui/vuu-table-types": "0.13.95-alpha.
|
|
6
|
+
"@vuu-ui/vuu-data-types": "0.13.95-alpha.7",
|
|
7
|
+
"@vuu-ui/vuu-filter-types": "0.13.95-alpha.7",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "0.13.95-alpha.7",
|
|
9
|
+
"@vuu-ui/vuu-table-types": "0.13.95-alpha.7"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@vuu-ui/vuu-context-menu": "0.13.95-alpha.
|
|
13
|
-
"@vuu-ui/vuu-data-remote": "0.13.95-alpha.
|
|
14
|
-
"@vuu-ui/vuu-filter-parser": "0.13.95-alpha.
|
|
15
|
-
"@vuu-ui/vuu-filters": "0.13.95-alpha.
|
|
16
|
-
"@vuu-ui/vuu-layout": "0.13.95-alpha.
|
|
17
|
-
"@vuu-ui/vuu-notifications": "0.13.95-alpha.
|
|
18
|
-
"@vuu-ui/vuu-ui-controls": "0.13.95-alpha.
|
|
19
|
-
"@vuu-ui/vuu-utils": "0.13.95-alpha.
|
|
20
|
-
"@vuu-ui/vuu-table": "0.13.95-alpha.
|
|
12
|
+
"@vuu-ui/vuu-context-menu": "0.13.95-alpha.7",
|
|
13
|
+
"@vuu-ui/vuu-data-remote": "0.13.95-alpha.7",
|
|
14
|
+
"@vuu-ui/vuu-filter-parser": "0.13.95-alpha.7",
|
|
15
|
+
"@vuu-ui/vuu-filters": "0.13.95-alpha.7",
|
|
16
|
+
"@vuu-ui/vuu-layout": "0.13.95-alpha.7",
|
|
17
|
+
"@vuu-ui/vuu-notifications": "0.13.95-alpha.7",
|
|
18
|
+
"@vuu-ui/vuu-ui-controls": "0.13.95-alpha.7",
|
|
19
|
+
"@vuu-ui/vuu-utils": "0.13.95-alpha.7",
|
|
20
|
+
"@vuu-ui/vuu-table": "0.13.95-alpha.7",
|
|
21
21
|
"@salt-ds/core": "1.48.0",
|
|
22
22
|
"@salt-ds/styles": "0.2.1",
|
|
23
23
|
"@salt-ds/window": "0.1.1"
|