@deephaven/jsapi-components 1.8.1-beta.5 → 1.8.1-beta.8
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/useWidgetClose.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { type WidgetTypes } from '@deephaven/jsapi-bootstrap';
|
|
2
1
|
/**
|
|
3
2
|
* React hook that closes a given widget when the reference changes or when the
|
|
4
3
|
* component unmounts.
|
|
5
4
|
* @param widget The widget to close
|
|
6
5
|
*/
|
|
7
|
-
export default function useWidgetClose(widget:
|
|
6
|
+
export default function useWidgetClose(widget: {
|
|
7
|
+
close: () => void;
|
|
8
|
+
} | null | undefined): void;
|
|
8
9
|
/**
|
|
9
10
|
* @deprecated Use `useWidgetClose` instead.
|
|
10
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidgetClose.d.ts","sourceRoot":"","sources":["../src/useWidgetClose.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWidgetClose.d.ts","sourceRoot":"","sources":["../src/useWidgetClose.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GAC/C,IAAI,CAaN;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,uBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidgetClose.js","names":["useEffect","isClosed","useWidgetClose","widget","_widget$close","close","call","useTableClose"],"sources":["../src/useWidgetClose.ts"],"sourcesContent":["import { useEffect } from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"useWidgetClose.js","names":["useEffect","isClosed","useWidgetClose","widget","_widget$close","close","call","useTableClose"],"sources":["../src/useWidgetClose.ts"],"sourcesContent":["import { useEffect } from 'react';\nimport { isClosed } from '@deephaven/jsapi-utils';\n\n/**\n * React hook that closes a given widget when the reference changes or when the\n * component unmounts.\n * @param widget The widget to close\n */\nexport default function useWidgetClose(\n widget: { close: () => void } | null | undefined\n): void {\n useEffect(\n () => () => {\n if (widget == null) {\n return;\n }\n\n if (!isClosed(widget)) {\n widget.close?.();\n }\n },\n [widget]\n );\n}\n\n/**\n * @deprecated Use `useWidgetClose` instead.\n */\nexport const useTableClose = useWidgetClose;\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,QAAQ,QAAQ,wBAAwB;;AAEjD;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,cAAcA,CACpCC,MAAgD,EAC1C;EACNH,SAAS,CACP,MAAM,MAAM;IACV,IAAIG,MAAM,IAAI,IAAI,EAAE;MAClB;IACF;IAEA,IAAI,CAACF,QAAQ,CAACE,MAAM,CAAC,EAAE;MAAA,IAAAC,aAAA;MACrB,CAAAA,aAAA,GAAAD,MAAM,CAACE,KAAK,cAAAD,aAAA,eAAZA,aAAA,CAAAE,IAAA,CAAAH,MAAe,CAAC;IAClB;EACF,CAAC,EACD,CAACA,MAAM,CACT,CAAC;AACH;;AAEA;AACA;AACA;AACA,OAAO,IAAMI,aAAa,GAAGL,cAAc","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/jsapi-components",
|
|
3
|
-
"version": "1.8.1-beta.
|
|
3
|
+
"version": "1.8.1-beta.8+f3eb5389",
|
|
4
4
|
"description": "Deephaven JSAPI Components",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,21 +22,21 @@
|
|
|
22
22
|
"build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@deephaven/components": "^1.8.1-beta.
|
|
26
|
-
"@deephaven/jsapi-bootstrap": "^1.8.1-beta.
|
|
25
|
+
"@deephaven/components": "^1.8.1-beta.8+f3eb5389",
|
|
26
|
+
"@deephaven/jsapi-bootstrap": "^1.8.1-beta.8+f3eb5389",
|
|
27
27
|
"@deephaven/jsapi-types": "^1.0.0-dev0.40.4",
|
|
28
|
-
"@deephaven/jsapi-utils": "^1.8.1-beta.
|
|
29
|
-
"@deephaven/log": "^1.8.1-beta.
|
|
30
|
-
"@deephaven/react-hooks": "^1.8.1-beta.
|
|
31
|
-
"@deephaven/utils": "^1.8.1-beta.
|
|
28
|
+
"@deephaven/jsapi-utils": "^1.8.1-beta.8+f3eb5389",
|
|
29
|
+
"@deephaven/log": "^1.8.1-beta.8+f3eb5389",
|
|
30
|
+
"@deephaven/react-hooks": "^1.8.1-beta.8+f3eb5389",
|
|
31
|
+
"@deephaven/utils": "^1.8.1-beta.8+f3eb5389",
|
|
32
32
|
"@types/js-cookie": "^3.0.3",
|
|
33
33
|
"classnames": "^2.3.2",
|
|
34
34
|
"js-cookie": "^3.0.5",
|
|
35
35
|
"lodash.debounce": "^4.0.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@deephaven/jsapi-shim": "^1.8.1-beta.
|
|
39
|
-
"@deephaven/test-utils": "^1.8.1-beta.
|
|
38
|
+
"@deephaven/jsapi-shim": "^1.8.1-beta.8+f3eb5389",
|
|
39
|
+
"@deephaven/test-utils": "^1.8.1-beta.8+f3eb5389"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=16.8.0"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "f3eb5389531d00888d8846c12fc9f11aaed1f691"
|
|
54
54
|
}
|