@deephaven/console 1.12.0 → 1.13.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.
|
@@ -24,7 +24,6 @@ var getActionBarClass = item => {
|
|
|
24
24
|
return "console-history-actions-".concat(lineCount);
|
|
25
25
|
};
|
|
26
26
|
var ConsoleHistoryItemActions = /*#__PURE__*/memo(props => {
|
|
27
|
-
var _item$command;
|
|
28
27
|
var {
|
|
29
28
|
item,
|
|
30
29
|
onCommandSubmit,
|
|
@@ -33,15 +32,14 @@ var ConsoleHistoryItemActions = /*#__PURE__*/memo(props => {
|
|
|
33
32
|
var actionBarClass = useMemo(() => getActionBarClass(item), [item]);
|
|
34
33
|
return /*#__PURE__*/_jsxs("div", {
|
|
35
34
|
className: classNames('console-history-actions', actionBarClass),
|
|
36
|
-
children: [/*#__PURE__*/_jsx(CopyButton, {
|
|
37
|
-
copy:
|
|
38
|
-
kind: "inline"
|
|
35
|
+
children: [item.command != null && /*#__PURE__*/_jsx(CopyButton, {
|
|
36
|
+
copy: item.command
|
|
39
37
|
}), /*#__PURE__*/_jsx(Button, {
|
|
40
38
|
icon: vsDebugRerun,
|
|
41
39
|
kind: "inline",
|
|
42
40
|
onClick: () => {
|
|
43
|
-
var _item$
|
|
44
|
-
return onCommandSubmit((_item$
|
|
41
|
+
var _item$command;
|
|
42
|
+
return onCommandSubmit((_item$command = item.command) !== null && _item$command !== void 0 ? _item$command : '');
|
|
45
43
|
},
|
|
46
44
|
tooltip: "Rerun",
|
|
47
45
|
children: null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsoleHistoryItemActions.js","names":["React","memo","useMemo","Button","CopyButton","ContextualHelp","vsDebugRerun","classNames","ConsoleHistoryItemTooltip","jsx","_jsx","jsxs","_jsxs","getActionBarClass","item","command","lineCount","split","length","concat","ConsoleHistoryItemActions","props","
|
|
1
|
+
{"version":3,"file":"ConsoleHistoryItemActions.js","names":["React","memo","useMemo","Button","CopyButton","ContextualHelp","vsDebugRerun","classNames","ConsoleHistoryItemTooltip","jsx","_jsx","jsxs","_jsxs","getActionBarClass","item","command","lineCount","split","length","concat","ConsoleHistoryItemActions","props","onCommandSubmit","handleTooltipVisible","actionBarClass","className","children","copy","icon","kind","onClick","_item$command","tooltip","variant","onOpenChange","UNSAFE_className","displayName"],"sources":["../../src/console-history/ConsoleHistoryItemActions.tsx"],"sourcesContent":["/**\n * Console display for use in the Iris environment.\n */\nimport React, { memo, type ReactElement, useMemo } from 'react';\nimport { Button, CopyButton, ContextualHelp } from '@deephaven/components';\nimport './ConsoleHistoryItem.scss';\nimport { vsDebugRerun } from '@deephaven/icons';\nimport classNames from 'classnames';\nimport { type ConsoleHistoryActionItem } from './ConsoleHistoryTypes';\nimport ConsoleHistoryItemTooltip from './ConsoleHistoryItemTooltip';\n\ninterface ConsoleHistoryItemProps {\n item: ConsoleHistoryActionItem;\n onCommandSubmit: (command: string) => void;\n handleTooltipVisible: (isVisible: boolean) => void;\n}\n\n/**\n * Get the action bar class for a console history item.\n * @param lineCount The number of lines in the console history item.\n * @returns The action bar class name or null if not applicable.\n */\nconst getActionBarClass = (item: ConsoleHistoryActionItem): string | null => {\n if (item?.command == null) {\n return null;\n }\n const lineCount = item.command ? item.command.split('\\n').length : 0;\n if (lineCount > 2) {\n return null;\n }\n return `console-history-actions-${lineCount}`;\n};\n\nconst ConsoleHistoryItemActions = memo(\n (props: ConsoleHistoryItemProps): ReactElement => {\n const { item, onCommandSubmit, handleTooltipVisible } = props;\n\n const actionBarClass = useMemo(() => getActionBarClass(item), [item]);\n\n return (\n <div className={classNames('console-history-actions', actionBarClass)}>\n {item.command != null && <CopyButton copy={item.command} />}\n <Button\n icon={vsDebugRerun}\n kind=\"inline\"\n onClick={() => onCommandSubmit(item.command ?? '')}\n tooltip=\"Rerun\"\n >\n {null}\n </Button>\n <ContextualHelp\n variant=\"info\"\n onOpenChange={handleTooltipVisible}\n UNSAFE_className=\"console-history-item-contextual-help\"\n >\n <ConsoleHistoryItemTooltip item={item} />\n </ContextualHelp>\n </div>\n );\n }\n);\n\nConsoleHistoryItemActions.displayName = 'ConsoleHistoryItemActions';\n\nexport default ConsoleHistoryItemActions;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,IAAI,EAAqBC,OAAO,QAAQ,OAAO;AAC/D,SAASC,MAAM,EAAEC,UAAU,EAAEC,cAAc,QAAQ,uBAAuB;AAAC;AAE3E,SAASC,YAAY,QAAQ,kBAAkB;AAC/C,OAAOC,UAAU,MAAM,YAAY;AAAC,OAE7BC,yBAAyB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQhC;AACA;AACA;AACA;AACA;AACA,IAAMC,iBAAiB,GAAIC,IAA8B,IAAoB;EAC3E,IAAI,CAAAA,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEC,OAAO,KAAI,IAAI,EAAE;IACzB,OAAO,IAAI;EACb;EACA,IAAMC,SAAS,GAAGF,IAAI,CAACC,OAAO,GAAGD,IAAI,CAACC,OAAO,CAACE,KAAK,CAAC,IAAI,CAAC,CAACC,MAAM,GAAG,CAAC;EACpE,IAAIF,SAAS,GAAG,CAAC,EAAE;IACjB,OAAO,IAAI;EACb;EACA,kCAAAG,MAAA,CAAkCH,SAAS;AAC7C,CAAC;AAED,IAAMI,yBAAyB,gBAAGnB,IAAI,CACnCoB,KAA8B,IAAmB;EAChD,IAAM;IAAEP,IAAI;IAAEQ,eAAe;IAAEC;EAAqB,CAAC,GAAGF,KAAK;EAE7D,IAAMG,cAAc,GAAGtB,OAAO,CAAC,MAAMW,iBAAiB,CAACC,IAAI,CAAC,EAAE,CAACA,IAAI,CAAC,CAAC;EAErE,oBACEF,KAAA;IAAKa,SAAS,EAAElB,UAAU,CAAC,yBAAyB,EAAEiB,cAAc,CAAE;IAAAE,QAAA,GACnEZ,IAAI,CAACC,OAAO,IAAI,IAAI,iBAAIL,IAAA,CAACN,UAAU;MAACuB,IAAI,EAAEb,IAAI,CAACC;IAAQ,CAAE,CAAC,eAC3DL,IAAA,CAACP,MAAM;MACLyB,IAAI,EAAEtB,YAAa;MACnBuB,IAAI,EAAC,QAAQ;MACbC,OAAO,EAAEA,CAAA;QAAA,IAAAC,aAAA;QAAA,OAAMT,eAAe,EAAAS,aAAA,GAACjB,IAAI,CAACC,OAAO,cAAAgB,aAAA,cAAAA,aAAA,GAAI,EAAE,CAAC;MAAA,CAAC;MACnDC,OAAO,EAAC,OAAO;MAAAN,QAAA,EAEd;IAAI,CACC,CAAC,eACThB,IAAA,CAACL,cAAc;MACb4B,OAAO,EAAC,MAAM;MACdC,YAAY,EAAEX,oBAAqB;MACnCY,gBAAgB,EAAC,sCAAsC;MAAAT,QAAA,eAEvDhB,IAAA,CAACF,yBAAyB;QAACM,IAAI,EAAEA;MAAK,CAAE;IAAC,CAC3B,CAAC;EAAA,CACd,CAAC;AAEV,CACF,CAAC;AAEDM,yBAAyB,CAACgB,WAAW,GAAG,2BAA2B;AAEnE,eAAehB,yBAAyB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/console",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Deephaven Console",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@astral-sh/ruff-wasm-web": "0.6.4",
|
|
27
|
-
"@deephaven/chart": "^1.
|
|
28
|
-
"@deephaven/components": "^1.
|
|
27
|
+
"@deephaven/chart": "^1.13.0",
|
|
28
|
+
"@deephaven/components": "^1.13.0",
|
|
29
29
|
"@deephaven/icons": "^1.2.0",
|
|
30
|
-
"@deephaven/jsapi-bootstrap": "^1.
|
|
30
|
+
"@deephaven/jsapi-bootstrap": "^1.13.0",
|
|
31
31
|
"@deephaven/jsapi-types": "^1.0.0-dev0.40.4",
|
|
32
|
-
"@deephaven/jsapi-utils": "^1.
|
|
32
|
+
"@deephaven/jsapi-utils": "^1.12.1",
|
|
33
33
|
"@deephaven/log": "^1.8.0",
|
|
34
34
|
"@deephaven/react-hooks": "^1.10.0",
|
|
35
35
|
"@deephaven/storage": "^1.8.0",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "9364f60cd5091ef48ff113d694ab23fc3b10fd6e"
|
|
69
69
|
}
|