@deephaven/console 0.31.2-beta.8 → 0.32.1-auth-plugins.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.
- package/dist/command-history/CommandHistoryViewportUpdater.d.ts.map +1 -1
- package/dist/command-history/CommandHistoryViewportUpdater.js +7 -2
- package/dist/command-history/CommandHistoryViewportUpdater.js.map +1 -1
- package/dist/command-history/index.d.ts.map +1 -1
- package/dist/command-history/index.js.map +1 -1
- package/dist/console-history/index.d.ts.map +1 -1
- package/dist/console-history/index.js.map +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandHistoryViewportUpdater.d.ts","sourceRoot":"","sources":["../../src/command-history/CommandHistoryViewportUpdater.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CommandHistoryViewportUpdater.d.ts","sourceRoot":"","sources":["../../src/command-history/CommandHistoryViewportUpdater.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,mBAAmB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,sBAAsB,CAAC,yBAAyB,CAAC,CAAC;CAC7D,CAAC;AAUF,iBAAS,6BAA6B,CAAC,EACrC,KAAK,EACL,OAAO,EACP,GAAO,EACP,MAAU,EACV,MAAM,EACN,UAAkB,EAClB,QAAQ,GACT,EAAE,kCAAkC,GAAG,IAAI,CAwE3C;AAED,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { useEffect, useMemo } from 'react';
|
|
2
|
+
import debounce from 'lodash.debounce';
|
|
2
3
|
import throttle from 'lodash.throttle';
|
|
3
4
|
import Log from '@deephaven/log';
|
|
5
|
+
var SET_SEARCH_DEBOUNCE_MS = 150;
|
|
4
6
|
var UPDATE_DELAY = 150;
|
|
5
7
|
var ROW_BUFFER_PAGES = 3;
|
|
6
8
|
var log = Log.module('CommandHistoryViewportUpdater');
|
|
@@ -14,6 +16,9 @@ function CommandHistoryViewportUpdater(_ref) {
|
|
|
14
16
|
isReversed = false,
|
|
15
17
|
onUpdate
|
|
16
18
|
} = _ref;
|
|
19
|
+
var debounceSetSearch = useMemo(() => debounce(searchText => {
|
|
20
|
+
table.setSearch(searchText !== null && searchText !== void 0 ? searchText : '');
|
|
21
|
+
}, SET_SEARCH_DEBOUNCE_MS), [table]);
|
|
17
22
|
var throttledUpdateViewport = useMemo(() => throttle(viewport => {
|
|
18
23
|
var viewHeight = viewport.bottom - viewport.top;
|
|
19
24
|
var bufferedTop = Math.max(0, viewport.top - viewHeight * ROW_BUFFER_PAGES);
|
|
@@ -38,8 +43,8 @@ function CommandHistoryViewportUpdater(_ref) {
|
|
|
38
43
|
};
|
|
39
44
|
}, [table, onUpdate]);
|
|
40
45
|
useEffect(function setSearchText() {
|
|
41
|
-
|
|
42
|
-
}, [
|
|
46
|
+
debounceSetSearch(search);
|
|
47
|
+
}, [debounceSetSearch, search]);
|
|
43
48
|
useEffect(function updateViewport() {
|
|
44
49
|
throttledUpdateViewport({
|
|
45
50
|
top,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandHistoryViewportUpdater.js","names":["useEffect","useMemo","throttle","Log","UPDATE_DELAY","ROW_BUFFER_PAGES","log","module","CommandHistoryViewportUpdater","table","columns","top","bottom","search","isReversed","onUpdate","throttledUpdateViewport","viewport","viewHeight","bufferedTop","Math","max","bufferedBottom","setViewport","updateTableAndReturnCleanup","cleanup","viewportData","items","offset","debug","setSearchText","
|
|
1
|
+
{"version":3,"file":"CommandHistoryViewportUpdater.js","names":["useEffect","useMemo","debounce","throttle","Log","SET_SEARCH_DEBOUNCE_MS","UPDATE_DELAY","ROW_BUFFER_PAGES","log","module","CommandHistoryViewportUpdater","table","columns","top","bottom","search","isReversed","onUpdate","debounceSetSearch","searchText","setSearch","throttledUpdateViewport","viewport","viewHeight","bufferedTop","Math","max","bufferedBottom","setViewport","updateTableAndReturnCleanup","cleanup","viewportData","items","offset","debug","setSearchText","updateViewport","debug2","cancel"],"sources":["../../src/command-history/CommandHistoryViewportUpdater.tsx"],"sourcesContent":["import { useEffect, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\nimport throttle from 'lodash.throttle';\nimport {\n StorageTableViewport,\n ViewportData,\n ViewportUpdateCallback,\n} from '@deephaven/storage';\nimport Log from '@deephaven/log';\nimport {\n CommandHistoryStorageItem,\n CommandHistoryTable,\n} from './CommandHistoryStorage';\n\nexport type CommandHistoryViewportUpdaterProps = {\n table: CommandHistoryTable;\n columns?: string[];\n top?: number;\n bottom?: number;\n search?: string;\n isReversed?: boolean;\n onUpdate: ViewportUpdateCallback<CommandHistoryStorageItem>;\n};\n\nconst SET_SEARCH_DEBOUNCE_MS = 150;\n\nconst UPDATE_DELAY = 150;\n\nconst ROW_BUFFER_PAGES = 3;\n\nconst log = Log.module('CommandHistoryViewportUpdater');\n\nfunction CommandHistoryViewportUpdater({\n table,\n columns,\n top = 0,\n bottom = 0,\n search,\n isReversed = false,\n onUpdate,\n}: CommandHistoryViewportUpdaterProps): null {\n const debounceSetSearch = useMemo(\n () =>\n debounce((searchText?: string) => {\n table.setSearch(searchText ?? '');\n }, SET_SEARCH_DEBOUNCE_MS),\n [table]\n );\n\n const throttledUpdateViewport = useMemo(\n () =>\n throttle((viewport: StorageTableViewport) => {\n const viewHeight = viewport.bottom - viewport.top;\n const bufferedTop = Math.max(\n 0,\n viewport.top - viewHeight * ROW_BUFFER_PAGES\n );\n const bufferedBottom = viewport.bottom + viewHeight * ROW_BUFFER_PAGES;\n\n table.setViewport({\n top: bufferedTop,\n bottom: bufferedBottom,\n columns: viewport.columns,\n });\n }, UPDATE_DELAY),\n [table]\n );\n\n useEffect(\n function updateTableAndReturnCleanup() {\n const cleanup = table.onUpdate(\n (viewportData: ViewportData<CommandHistoryStorageItem>) => {\n onUpdate({\n items: viewportData.items ?? [],\n offset: viewportData.offset ?? 0,\n });\n }\n );\n\n return () => {\n log.debug('onUpdate cleanup');\n cleanup();\n };\n },\n [table, onUpdate]\n );\n\n useEffect(\n function setSearchText() {\n debounceSetSearch(search);\n },\n [debounceSetSearch, search]\n );\n useEffect(\n function updateViewport() {\n throttledUpdateViewport({\n top,\n bottom,\n columns,\n });\n },\n [throttledUpdateViewport, top, bottom, columns, search, isReversed]\n );\n useEffect(\n () => () => {\n log.debug2('Cancel throttledUpdateViewport');\n throttledUpdateViewport.cancel();\n },\n [throttledUpdateViewport]\n );\n\n return null;\n}\n\nexport default CommandHistoryViewportUpdater;\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAC1C,OAAOC,QAAQ,MAAM,iBAAiB;AACtC,OAAOC,QAAQ,MAAM,iBAAiB;AAMtC,OAAOC,GAAG,MAAM,gBAAgB;AAgBhC,IAAMC,sBAAsB,GAAG,GAAG;AAElC,IAAMC,YAAY,GAAG,GAAG;AAExB,IAAMC,gBAAgB,GAAG,CAAC;AAE1B,IAAMC,GAAG,GAAGJ,GAAG,CAACK,MAAM,CAAC,+BAA+B,CAAC;AAEvD,SAASC,6BAA6B,OAQO;EAAA,IARN;IACrCC,KAAK;IACLC,OAAO;IACPC,GAAG,GAAG,CAAC;IACPC,MAAM,GAAG,CAAC;IACVC,MAAM;IACNC,UAAU,GAAG,KAAK;IAClBC;EACkC,CAAC;EACnC,IAAMC,iBAAiB,GAAGjB,OAAO,CAC/B,MACEC,QAAQ,CAAEiB,UAAmB,IAAK;IAChCR,KAA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C5B;EACDf,SAAS,CACP,SAASoC,cAAc,GAAG;IACxBf,uBAAuB,CAAC;MACtBR,GAAG;MACHC,MAAM;MACNF;IACF,CAAC,CAAC;EACJ,CAAC,EACD,CAACS,uBAAuB,EAAER,GAAG,EAAEC,MAAM,EAAEF,OAAO,EAAEG,MAAM,EAAEC,UAAU,CAAC,CACpE;EACDhB,SAAS,CACP,MAAM,MAAM;IACVQ,GAAG,CAAC6B,MAAM,CAAC,gCAAgC,CAAC;IAC5ChB,uBAAuB,CAACiB,MAAM,EAAE;EAClC,CAAC,EACD,CAACjB,uBAAuB,CAAC,CAC1B;EAED,OAAO,IAAI;AACb;AAEA,eAAeX,6BAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command-history/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command-history/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,cAAc,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","CommandHistory","CommandHistoryActions","CommandHistoryItem","CommandHistoryItemTooltip"],"sources":["../../src/command-history/index.
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","CommandHistory","CommandHistoryActions","CommandHistoryItem","CommandHistoryItemTooltip"],"sources":["../../src/command-history/index.ts"],"sourcesContent":["export { default as CommandHistory } from './CommandHistory';\nexport * from './CommandHistory';\nexport { default as CommandHistoryActions } from './CommandHistoryActions';\nexport { default as CommandHistoryItem } from './CommandHistoryItem';\nexport { default as CommandHistoryItemTooltip } from './CommandHistoryItemTooltip';\nexport * from './CommandHistoryStorage';\n"],"mappings":"SAASA,OAAO,IAAIC,cAAc;AAAA;AAAA,SAEzBD,OAAO,IAAIE,qBAAqB;AAAA,SAChCF,OAAO,IAAIG,kBAAkB;AAAA,SAC7BH,OAAO,IAAII,yBAAyB;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/console-history/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/console-history/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","ConsoleHistory","ConsoleHistoryItem","ConsoleHistoryItemResult","ConsoleHistoryResultErrorMessage","ConsoleHistoryResultInProgress"],"sources":["../../src/console-history/index.
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","ConsoleHistory","ConsoleHistoryItem","ConsoleHistoryItemResult","ConsoleHistoryResultErrorMessage","ConsoleHistoryResultInProgress"],"sources":["../../src/console-history/index.ts"],"sourcesContent":["export { default as ConsoleHistory } from './ConsoleHistory';\nexport { default as ConsoleHistoryItem } from './ConsoleHistoryItem';\nexport { default as ConsoleHistoryItemResult } from './ConsoleHistoryItemResult';\nexport { default as ConsoleHistoryResultErrorMessage } from './ConsoleHistoryResultErrorMessage';\nexport { default as ConsoleHistoryResultInProgress } from './ConsoleHistoryResultInProgress';\n"],"mappings":"SAASA,OAAO,IAAIC,cAAc;AAAA,SACzBD,OAAO,IAAIE,kBAAkB;AAAA,SAC7BF,OAAO,IAAIG,wBAAwB;AAAA,SACnCH,OAAO,IAAII,gCAAgC;AAAA,SAC3CJ,OAAO,IAAIK,8BAA8B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/console",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1-auth-plugins.7+ac63f536",
|
|
4
4
|
"description": "Deephaven Console",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@deephaven/chart": "^0.
|
|
27
|
-
"@deephaven/components": "^0.
|
|
28
|
-
"@deephaven/icons": "^0.
|
|
29
|
-
"@deephaven/jsapi-shim": "^0.
|
|
30
|
-
"@deephaven/log": "^0.
|
|
31
|
-
"@deephaven/storage": "^0.
|
|
32
|
-
"@deephaven/utils": "^0.
|
|
26
|
+
"@deephaven/chart": "^0.32.1-auth-plugins.7+ac63f536",
|
|
27
|
+
"@deephaven/components": "^0.32.1-auth-plugins.7+ac63f536",
|
|
28
|
+
"@deephaven/icons": "^0.32.1-auth-plugins.7+ac63f536",
|
|
29
|
+
"@deephaven/jsapi-shim": "^0.32.1-auth-plugins.7+ac63f536",
|
|
30
|
+
"@deephaven/log": "^0.32.1-auth-plugins.7+ac63f536",
|
|
31
|
+
"@deephaven/storage": "^0.32.1-auth-plugins.7+ac63f536",
|
|
32
|
+
"@deephaven/utils": "^0.32.1-auth-plugins.7+ac63f536",
|
|
33
33
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
34
34
|
"classnames": "^2.3.1",
|
|
35
35
|
"lodash.debounce": "^4.0.8",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"react-dom": "^17.x"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@deephaven/mocks": "^0.
|
|
51
|
-
"@deephaven/tsconfig": "^0.
|
|
50
|
+
"@deephaven/mocks": "^0.32.1-auth-plugins.7+ac63f536",
|
|
51
|
+
"@deephaven/tsconfig": "^0.32.1-auth-plugins.7+ac63f536"
|
|
52
52
|
},
|
|
53
53
|
"files": [
|
|
54
54
|
"dist"
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ac63f5369c73a01cb1e4e1ac6825138535e91bc1"
|
|
63
63
|
}
|