@evergis/apps 0.1.7 → 0.1.9

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.
Files changed (64) hide show
  1. package/dist/catalog/attributeFormat/Settings/styled.js +1 -1
  2. package/dist/catalog/attributeFormat/styled.js +22 -22
  3. package/dist/catalog/dialogs/EditResource/styled.js +4 -4
  4. package/dist/catalog/dialogs/ResourcePreview/styled.js +4 -4
  5. package/dist/catalog/dialogs/styled.js +14 -14
  6. package/dist/catalog/fields/ResourceTypeTiles/styled.js +4 -4
  7. package/dist/catalog/fields/styled.js +7 -7
  8. package/dist/catalog/geometry/GeometrySelector/styled.js +3 -3
  9. package/dist/catalog/selectors/AttributeSelector/styled.js +1 -1
  10. package/dist/catalog/selectors/DataSourceItemsList/styled.js +8 -8
  11. package/dist/catalog/selectors/DataSourcePicker/styled.js +2 -2
  12. package/dist/catalog/selectors/ResourceSelector/styled.js +3 -3
  13. package/dist/devmode/components/JsonTree/styled.js +12 -12
  14. package/dist/devmode/components/LayerCardPane/styled.js +5 -5
  15. package/dist/devmode/components/Markdown/MarkdownEditor/styled.js +1 -1
  16. package/dist/devmode/components/Markdown/MarkdownOutput/styled.js +1 -1
  17. package/dist/devmode/components/OutlinePanel/styled.js +5 -5
  18. package/dist/devmode/components/ResourceIcon/styled.js +4 -4
  19. package/dist/devmode/components/ResultsTable/styled.js +7 -7
  20. package/dist/devmode/components/RunErrorMessage/styled.js +3 -3
  21. package/dist/devmode/components/TreeExpand/index.js +1 -1
  22. package/dist/devmode/layout/DevModePanel/styled.js +2 -2
  23. package/dist/devmode/layout/DevModeTools/styled.js +4 -4
  24. package/dist/devmode/layout/NavigationSections/Header/styled.js +6 -6
  25. package/dist/devmode/layout/NavigationToggle/styled.js +1 -1
  26. package/dist/devmode/layout/PanelSwitcher/styled.js +4 -4
  27. package/dist/devmode/layout/StatusBar/styled.js +4 -4
  28. package/dist/devmode/layout/WorkspaceHeader/styled.js +2 -2
  29. package/dist/devmode/modules/eql/components/QueryTypeSelect/styled.js +6 -6
  30. package/dist/devmode/modules/eql/components/modes/EqlConfigurationMode/AddConfiguration/styled.js +5 -5
  31. package/dist/devmode/modules/eql/dialogs/AddParameterDialog/styled.js +1 -1
  32. package/dist/devmode/modules/eql/styled.js +15 -15
  33. package/dist/devmode/modules/files/styled.js +2 -2
  34. package/dist/devmode/modules/layer/styled.js +2 -2
  35. package/dist/devmode/modules/navigation-catalog/hooks/useCatalogReveal.js +14 -6
  36. package/dist/devmode/modules/navigation-catalog/hooks/useCatalogReveal.js.map +1 -1
  37. package/dist/devmode/modules/navigation-catalog/styled.js +10 -10
  38. package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.d.ts +2 -1
  39. package/dist/devmode/modules/navigation-catalog/thunks/catalogFiles.js +1 -1
  40. package/dist/devmode/modules/python/components/Notebook/styled.js +20 -20
  41. package/dist/devmode/modules/python/components/PythonFileContent/styled.js +1 -1
  42. package/dist/devmode/modules/python/components/PythonRunBar/styled.js +1 -1
  43. package/dist/devmode/modules/python/components/PythonRunControl/styled.js +3 -3
  44. package/dist/devmode/modules/python/components/PythonRunLog/styled.js +2 -2
  45. package/dist/devmode/modules/python/components/PythonStatus/styled.js +2 -2
  46. package/dist/devmode/modules/python/components/SandboxesDialog/components/SandboxCard/styled.js +5 -5
  47. package/dist/devmode/modules/python/components/SandboxesDialog/styled.js +9 -9
  48. package/dist/devmode/modules/python/components/WorkerMetrics/styled.js +4 -4
  49. package/dist/devmode/modules/python/dialogs/ViewResponseDialog/styled.js +1 -1
  50. package/dist/devmode/modules/resource-json/styled.js +1 -1
  51. package/dist/devmode/modules/table/components/TableContent/styled.js +3 -3
  52. package/dist/devmode/monaco/ReadonlyMonacoEditor/styled.js +1 -1
  53. package/dist/devmode/navigation/CategoryTree/styled.js +5 -5
  54. package/dist/devmode/navigation/NodeActionsMenu/styled.js +6 -6
  55. package/dist/devmode/tabs/Panes/PaneHandle/styled.js +1 -1
  56. package/dist/devmode/tabs/Panes/styled.js +2 -2
  57. package/dist/devmode/tabs/ResultsDock/styled.js +4 -4
  58. package/dist/devmode/tabs/TabActions/styled.js +3 -3
  59. package/dist/devmode/tabs/TabPane/styled.js +1 -1
  60. package/dist/devmode/tabs/Tabs/Tab/styled.js +6 -6
  61. package/dist/devmode/tabs/Tabs/styled.js +3 -3
  62. package/dist/devmode/tabs/states/styled.js +1 -1
  63. package/dist/devmode/tabs/styled.js +3 -3
  64. package/package.json +321 -322
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
  import { Flex, textOverflowEllipsisMixin, Icon, IconButtonButton } from '@evergis/uilib-gl';
3
3
 
4
- const EqlEditorContainer = styled.div.withConfig({ displayName: "EqlEditorContainer", componentId: "sc-px6m5d" }) `
4
+ const EqlEditorContainer = styled.div.withConfig({ displayName: "EqlEditorContainer", componentId: "sc-112a6hh" }) `
5
5
  flex: 1;
6
6
  width: 100%;
7
7
  min-height: 0;
@@ -9,14 +9,14 @@ const EqlEditorContainer = styled.div.withConfig({ displayName: "EqlEditorContai
9
9
  flex-direction: column;
10
10
  position: relative;
11
11
  `;
12
- const EqlSectionsBar = styled.div.withConfig({ displayName: "EqlSectionsBar", componentId: "sc-2xu4y4" }) `
12
+ const EqlSectionsBar = styled.div.withConfig({ displayName: "EqlSectionsBar", componentId: "sc-1upg486" }) `
13
13
  display: flex;
14
14
  align-items: center;
15
15
  flex: 1;
16
16
  min-width: 0;
17
17
  height: 100%;
18
18
  `;
19
- const EqlSectionTab = styled.button.withConfig({ displayName: "EqlSectionTab", componentId: "sc-4uvhli" }) `
19
+ const EqlSectionTab = styled.button.withConfig({ displayName: "EqlSectionTab", componentId: "sc-164fxg3" }) `
20
20
  padding: 0.25rem 0.5rem;
21
21
  border: none;
22
22
  border-bottom: 2px solid ${({ $active, theme: { palette } }) => ($active ? palette.primary : "transparent")};
@@ -29,7 +29,7 @@ const EqlSectionTab = styled.button.withConfig({ displayName: "EqlSectionTab", c
29
29
  opacity: ${({ $active }) => ($active ? 1 : 0.36)};
30
30
  cursor: pointer;
31
31
  `;
32
- const ResultsTextContainer = styled.div.withConfig({ displayName: "ResultsTextContainer", componentId: "sc-812ggi" }) `
32
+ const ResultsTextContainer = styled.div.withConfig({ displayName: "ResultsTextContainer", componentId: "sc-av2tq" }) `
33
33
  display: flex;
34
34
  flex-direction: column;
35
35
  width: 100%;
@@ -45,7 +45,7 @@ const ResultsTextContainer = styled.div.withConfig({ displayName: "ResultsTextCo
45
45
  margin: 0;
46
46
  }
47
47
  `;
48
- const ResultsFormWrapper = styled.div.withConfig({ displayName: "ResultsFormWrapper", componentId: "sc-frpzu" }) `
48
+ const ResultsFormWrapper = styled.div.withConfig({ displayName: "ResultsFormWrapper", componentId: "sc-1fb74gq" }) `
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  background-color: ${({ theme: { palette } }) => palette.background};
@@ -55,7 +55,7 @@ const ResultsFormWrapper = styled.div.withConfig({ displayName: "ResultsFormWrap
55
55
  overflow-y: auto;
56
56
  overflow-x: hidden;
57
57
  `;
58
- const ResultsFormContainer = styled.div.withConfig({ displayName: "ResultsFormContainer", componentId: "sc-wngqol" }) `
58
+ const ResultsFormContainer = styled.div.withConfig({ displayName: "ResultsFormContainer", componentId: "sc-10ea6p6" }) `
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  gap: 1rem 0.5rem;
@@ -67,7 +67,7 @@ const ResultsFormContainer = styled.div.withConfig({ displayName: "ResultsFormCo
67
67
  height: 100%;
68
68
  min-height: 1px;
69
69
  `;
70
- const ResultsMapContainer = styled.div.withConfig({ displayName: "ResultsMapContainer", componentId: "sc-f6ks8j" }) `
70
+ const ResultsMapContainer = styled.div.withConfig({ displayName: "ResultsMapContainer", componentId: "sc-xcj5a4" }) `
71
71
  position: relative;
72
72
  flex: 1;
73
73
  min-height: 0;
@@ -77,7 +77,7 @@ const ResultsMapContainer = styled.div.withConfig({ displayName: "ResultsMapCont
77
77
  display: flex;
78
78
  flex-direction: column;
79
79
  `;
80
- const ResultsBarConfiguration = styled.div.withConfig({ displayName: "ResultsBarConfiguration", componentId: "sc-g7ushm" }) `
80
+ const ResultsBarConfiguration = styled.div.withConfig({ displayName: "ResultsBarConfiguration", componentId: "sc-1tbw14x" }) `
81
81
  display: flex;
82
82
  flex-wrap: nowrap;
83
83
  overflow: hidden;
@@ -86,7 +86,7 @@ const ResultsBarConfiguration = styled.div.withConfig({ displayName: "ResultsBar
86
86
  flex-shrink: 1;
87
87
  min-width: 1px;
88
88
  `;
89
- const ResultsBarItem = styled.div.withConfig({ displayName: "ResultsBarItem", componentId: "sc-14r27p9" }) `
89
+ const ResultsBarItem = styled.div.withConfig({ displayName: "ResultsBarItem", componentId: "sc-iroagt" }) `
90
90
  display: flex;
91
91
  align-items: center;
92
92
  gap: 0 0.25rem;
@@ -102,20 +102,20 @@ const ResultsBarItem = styled.div.withConfig({ displayName: "ResultsBarItem", co
102
102
  font-size: 14px;
103
103
  }
104
104
  `;
105
- const ResultsBarDivider = styled.div.withConfig({ displayName: "ResultsBarDivider", componentId: "sc-knecmq" }) `
105
+ const ResultsBarDivider = styled.div.withConfig({ displayName: "ResultsBarDivider", componentId: "sc-1lugp6e" }) `
106
106
  width: 1px;
107
107
  height: 14px;
108
108
  background-color: ${({ theme: { palette } }) => palette.textPrimary};
109
109
  opacity: 0.12;
110
110
  flex-shrink: 0;
111
111
  `;
112
- const ResultsBarTime = styled.div.withConfig({ displayName: "ResultsBarTime", componentId: "sc-1u2pyxl" }) `
112
+ const ResultsBarTime = styled.div.withConfig({ displayName: "ResultsBarTime", componentId: "sc-7bsu53" }) `
113
113
  font-size: 10px;
114
114
  color: ${({ theme: { palette } }) => palette.textSecondary};
115
115
  white-space: nowrap;
116
116
  margin-top: 0.25rem;
117
117
  `;
118
- const ResultsBarMenu = styled.div.withConfig({ displayName: "ResultsBarMenu", componentId: "sc-ped6yk" }) `
118
+ const ResultsBarMenu = styled.div.withConfig({ displayName: "ResultsBarMenu", componentId: "sc-12tbds4" }) `
119
119
  display: flex;
120
120
  align-items: center;
121
121
 
@@ -125,7 +125,7 @@ const ResultsBarMenu = styled.div.withConfig({ displayName: "ResultsBarMenu", co
125
125
  padding: 0;
126
126
  }
127
127
  `;
128
- const ResultsFooterContainer = styled(Flex).withConfig({ displayName: "ResultsFooterContainer", componentId: "sc-j9l4k9" }) `
128
+ const ResultsFooterContainer = styled(Flex).withConfig({ displayName: "ResultsFooterContainer", componentId: "sc-1bclpm4" }) `
129
129
  align-items: center;
130
130
  height: 1.5rem;
131
131
  box-sizing: border-box;
@@ -133,12 +133,12 @@ const ResultsFooterContainer = styled(Flex).withConfig({ displayName: "ResultsFo
133
133
  flex-shrink: 0;
134
134
  background-color: ${({ theme: { palette } }) => palette.devBackgroundDark};
135
135
  `;
136
- const ResultsFooterText = styled(Flex).withConfig({ displayName: "ResultsFooterText", componentId: "sc-1sesd2a" }) `
136
+ const ResultsFooterText = styled(Flex).withConfig({ displayName: "ResultsFooterText", componentId: "sc-169esj6" }) `
137
137
  color: ${({ theme: { palette } }) => palette.textSecondary};
138
138
  font-size: 10px;
139
139
  ${textOverflowEllipsisMixin}
140
140
  `;
141
- const ResultsFooterActions = styled.div.withConfig({ displayName: "ResultsFooterActions", componentId: "sc-ft07ev" }) `
141
+ const ResultsFooterActions = styled.div.withConfig({ displayName: "ResultsFooterActions", componentId: "sc-mz46vi" }) `
142
142
  display: flex;
143
143
  align-items: center;
144
144
  margin-left: auto;
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const FileEditorContainer = styled.div.withConfig({ displayName: "FileEditorContainer", componentId: "sc-ryzpq" }) `
3
+ const FileEditorContainer = styled.div.withConfig({ displayName: "FileEditorContainer", componentId: "sc-1jb410d" }) `
4
4
  flex: 1;
5
5
  width: 100%;
6
6
  min-height: 0;
@@ -8,7 +8,7 @@ const FileEditorContainer = styled.div.withConfig({ displayName: "FileEditorCont
8
8
  flex-direction: column;
9
9
  position: relative;
10
10
  `;
11
- const FileImageWrapper = styled.div.withConfig({ displayName: "FileImageWrapper", componentId: "sc-1brfvke" }) `
11
+ const FileImageWrapper = styled.div.withConfig({ displayName: "FileImageWrapper", componentId: "sc-s34lr2" }) `
12
12
  display: flex;
13
13
  flex-direction: column;
14
14
  height: 100%;
@@ -1,13 +1,13 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const LayerJsonContainer = styled.div.withConfig({ displayName: "LayerJsonContainer", componentId: "sc-1y65qmf" }) `
3
+ const LayerJsonContainer = styled.div.withConfig({ displayName: "LayerJsonContainer", componentId: "sc-1pdid3a" }) `
4
4
  display: flex;
5
5
  flex: 1;
6
6
  flex-direction: column;
7
7
  width: 100%;
8
8
  min-height: 0;
9
9
  `;
10
- const LayerViewSwitchContainer = styled.div.withConfig({ displayName: "LayerViewSwitchContainer", componentId: "sc-1khr3td" }) `
10
+ const LayerViewSwitchContainer = styled.div.withConfig({ displayName: "LayerViewSwitchContainer", componentId: "sc-1u6xuo2" }) `
11
11
  display: flex;
12
12
  align-items: center;
13
13
  gap: 0.25rem;
@@ -42,19 +42,27 @@ const useCatalogReveal = ({ revealId, search, onClearSearch, treeData, setTreeDa
42
42
  const activeTab = useDevModeSelector(selectActiveTab);
43
43
  const activeTabId = activeTab?.id;
44
44
  const activeResourceId = resourceIdOfTab(activeTab);
45
+ const activeTabIsTemp = activeTab?.temp;
45
46
  // Дерево читается после await-ов обхода: его изменения не должны перезапускать раскрытие пути.
46
47
  const treeDataRef = useRef(treeData);
47
- const [trackedTabId, setTrackedTabId] = useState(activeTabId);
48
+ const trackedTabIdRef = useRef(activeTabId);
48
49
  const [tabRevealId, setTabRevealId] = useState();
49
50
  const [handledId, setHandledId] = useState();
50
51
  const targetId = tabRevealId ?? revealId;
51
52
  const isPending = !!targetId && targetId !== handledId;
52
53
  treeDataRef.current = treeData;
53
- // Смена активного таба (не монтирование) раскрывает его ресурс в каталоге.
54
- if (trackedTabId !== activeTabId) {
55
- setTrackedTabId(activeTabId);
56
- setTabRevealId(activeTab?.temp ? undefined : activeResourceId);
57
- }
54
+ /*
55
+ * Смена активного таба (не монтирование) раскрывает его ресурс в каталоге. Смену ловит эффект, а не рендер:
56
+ * обновление состояния прямо в рендере вместе с dispatch из эффекта раскрытия обрывало подписку `useSelector`,
57
+ * и следующие смены вкладки хук уже не видел — подсвечивалась только первая выбранная.
58
+ */
59
+ useEffect(() => {
60
+ if (trackedTabIdRef.current === activeTabId) {
61
+ return;
62
+ }
63
+ trackedTabIdRef.current = activeTabId;
64
+ setTabRevealId(activeTabIsTemp ? undefined : activeResourceId);
65
+ }, [activeResourceId, activeTabId, activeTabIsTemp]);
58
66
  useEffect(() => {
59
67
  if (!isPending || !targetId) {
60
68
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useCatalogReveal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"useCatalogReveal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,7 +2,7 @@ import styled from 'styled-components';
2
2
  import { TreeText, TreeRow, TreeItemWrapper, IconButtonButton, TreeContent, Tree, Icon, Input } from '@evergis/uilib-gl';
3
3
  import { hexToRgba } from '@evergis/common';
4
4
 
5
- const NavigationTreeWrapper = styled.div.withConfig({ displayName: "NavigationTreeWrapper", componentId: "sc-1hkdzgp" }) `
5
+ const NavigationTreeWrapper = styled.div.withConfig({ displayName: "NavigationTreeWrapper", componentId: "sc-xsr89c" }) `
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  width: 100%;
@@ -12,7 +12,7 @@ const NavigationTreeWrapper = styled.div.withConfig({ displayName: "NavigationTr
12
12
  padding: 0 1rem;
13
13
  overflow-y: auto;
14
14
  `;
15
- const StyledCatalogTree = styled(Tree).withConfig({ displayName: "StyledCatalogTree", componentId: "sc-13ky09f" }) `
15
+ const StyledCatalogTree = styled(Tree).withConfig({ displayName: "StyledCatalogTree", componentId: "sc-rb3f54" }) `
16
16
  margin-top: 0.5rem;
17
17
 
18
18
  .item {
@@ -66,7 +66,7 @@ const StyledCatalogTree = styled(Tree).withConfig({ displayName: "StyledCatalogT
66
66
  margin-left: 0.25rem;
67
67
  }
68
68
  `;
69
- const TreeItemActions = styled.div.withConfig({ displayName: "TreeItemActions", componentId: "sc-1acckoc" }) `
69
+ const TreeItemActions = styled.div.withConfig({ displayName: "TreeItemActions", componentId: "sc-2x88gz" }) `
70
70
  display: flex;
71
71
  flex-shrink: 0;
72
72
  align-items: center;
@@ -78,7 +78,7 @@ const TreeItemActions = styled.div.withConfig({ displayName: "TreeItemActions",
78
78
  width: 1rem;
79
79
  }
80
80
  `;
81
- const TreeItemChip = styled.div.withConfig({ displayName: "TreeItemChip", componentId: "sc-1u2wvx4" }) `
81
+ const TreeItemChip = styled.div.withConfig({ displayName: "TreeItemChip", componentId: "sc-1b5at60" }) `
82
82
  background-color: ${({ theme }) => hexToRgba(theme.palette.primary, 0.12)};
83
83
  border-radius: 0.25rem;
84
84
  padding: 0.125rem 0.25rem;
@@ -100,7 +100,7 @@ const TreeItemChip = styled.div.withConfig({ displayName: "TreeItemChip", compon
100
100
  }
101
101
  }
102
102
  `;
103
- const CyclicWarningIcon = styled(Icon).withConfig({ displayName: "CyclicWarningIcon", componentId: "sc-auehpr" }) `
103
+ const CyclicWarningIcon = styled(Icon).withConfig({ displayName: "CyclicWarningIcon", componentId: "sc-1sq0hap" }) `
104
104
  flex-shrink: 0;
105
105
  color: ${({ theme }) => theme.palette.secondary};
106
106
  width: 0.875rem;
@@ -110,7 +110,7 @@ const CyclicWarningIcon = styled(Icon).withConfig({ displayName: "CyclicWarningI
110
110
  font-size: 0.875rem;
111
111
  }
112
112
  `;
113
- const LoadMoreButton = styled.button.withConfig({ displayName: "LoadMoreButton", componentId: "sc-wxvulr" }) `
113
+ const LoadMoreButton = styled.button.withConfig({ displayName: "LoadMoreButton", componentId: "sc-bvedlw" }) `
114
114
  background: none;
115
115
  border: none;
116
116
  color: ${({ theme }) => theme.palette.primary};
@@ -129,7 +129,7 @@ const LoadMoreButton = styled.button.withConfig({ displayName: "LoadMoreButton",
129
129
  cursor: default;
130
130
  }
131
131
  `;
132
- const TempNodeBadge = styled.div.withConfig({ displayName: "TempNodeBadge", componentId: "sc-qze4r1" }) `
132
+ const TempNodeBadge = styled.div.withConfig({ displayName: "TempNodeBadge", componentId: "sc-dr0q8e" }) `
133
133
  display: flex;
134
134
  align-items: center;
135
135
  box-sizing: border-box;
@@ -143,19 +143,19 @@ const TempNodeBadge = styled.div.withConfig({ displayName: "TempNodeBadge", comp
143
143
  font-weight: 600;
144
144
  line-height: 14px;
145
145
  `;
146
- const NodeNameInput = styled(Input).withConfig({ displayName: "NodeNameInput", componentId: "sc-15ewojg" }) `
146
+ const NodeNameInput = styled(Input).withConfig({ displayName: "NodeNameInput", componentId: "sc-n1o559" }) `
147
147
  height: 18px;
148
148
  padding: 4px;
149
149
  font-size: 0.75rem;
150
150
  margin-left: 5px;
151
151
  border-radius: 0.25rem;
152
152
  `;
153
- const DragItemContainer = styled(TreeContent).withConfig({ displayName: "DragItemContainer", componentId: "sc-p3qwj4" }) `
153
+ const DragItemContainer = styled(TreeContent).withConfig({ displayName: "DragItemContainer", componentId: "sc-92li3" }) `
154
154
  padding-left: 18px;
155
155
  padding-top: 2px;
156
156
  box-sizing: border-box;
157
157
  `;
158
- const DragItemText = styled(TreeText).withConfig({ displayName: "DragItemText", componentId: "sc-13hbwra" }) `
158
+ const DragItemText = styled(TreeText).withConfig({ displayName: "DragItemText", componentId: "sc-oaxxe2" }) `
159
159
  font-weight: ${({ $isLeaf }) => ($isLeaf ? "700" : "400")};
160
160
  color: ${({ theme }) => theme.palette.textPrimary};
161
161
  `;
@@ -1,7 +1,8 @@
1
1
  import type { DevModeThunk } from "../../../core";
2
- export declare const uploadCatalogFile: ({ parentId, file, rewrite }: {
2
+ export declare const uploadCatalogFile: ({ parentId, file, rewrite, }: {
3
3
  parentId: string;
4
4
  file: File;
5
+ /** Перезапись одноимённого файла: флаг уходит в запрос всегда, `undefined` сервер не принимает. */
5
6
  rewrite?: boolean;
6
7
  }) => DevModeThunk<Promise<void>>;
7
8
  export declare const createEmptyCatalogFile: ({ parentId, name }: {
@@ -1,6 +1,6 @@
1
1
  import { catalogFolderInvalidated } from '../api/catalogApi.js';
2
2
 
3
- const uploadCatalogFile = ({ parentId, file, rewrite }) => async (dispatch, _getState, { getEnv }) => {
3
+ const uploadCatalogFile = ({ parentId, file, rewrite = false, }) => async (dispatch, _getState, { getEnv }) => {
4
4
  const api = getEnv().global?.api;
5
5
  if (!api) {
6
6
  return;
@@ -20,7 +20,7 @@ const compactIconButtons = css `
20
20
  }
21
21
  }
22
22
  `;
23
- const NotebookWrapper = styled.div.withConfig({ displayName: "NotebookWrapper", componentId: "sc-7893y" }) `
23
+ const NotebookWrapper = styled.div.withConfig({ displayName: "NotebookWrapper", componentId: "sc-1ldd98g" }) `
24
24
  display: flex;
25
25
  flex-direction: column;
26
26
  gap: 0.5rem 0;
@@ -30,7 +30,7 @@ const NotebookWrapper = styled.div.withConfig({ displayName: "NotebookWrapper",
30
30
  overflow-y: auto;
31
31
  position: relative;
32
32
  `;
33
- const AddBlock = styled.div.withConfig({ displayName: "AddBlock", componentId: "sc-15s3h82" }) `
33
+ const AddBlock = styled.div.withConfig({ displayName: "AddBlock", componentId: "sc-1cdgc5u" }) `
34
34
  display: flex;
35
35
  position: absolute;
36
36
  z-index: 5;
@@ -47,14 +47,14 @@ const AddBlock = styled.div.withConfig({ displayName: "AddBlock", componentId: "
47
47
  background-color: ${({ theme }) => (isDark(theme) ? "#122631" : "#fff")};
48
48
  box-shadow: 0 0 8px 0 ${({ theme }) => (isDark(theme) ? "rgba(0, 0, 0, 0.75)" : "rgba(17, 37, 47, 0.12)")};
49
49
  `;
50
- const CellAddButton = styled.img.withConfig({ displayName: "CellAddButton", componentId: "sc-77wi6h" }) `
50
+ const CellAddButton = styled.img.withConfig({ displayName: "CellAddButton", componentId: "sc-kd59xw" }) `
51
51
  width: 1rem;
52
52
  height: 1rem;
53
53
  object-fit: cover;
54
54
  cursor: pointer;
55
55
  user-select: none;
56
56
  `;
57
- const NotebookCellBlock = styled.div.withConfig({ displayName: "NotebookCellBlock", componentId: "sc-17j8av6" }) `
57
+ const NotebookCellBlock = styled.div.withConfig({ displayName: "NotebookCellBlock", componentId: "sc-1h1tw7y" }) `
58
58
  display: flex;
59
59
  flex-direction: column;
60
60
  gap: 0.5rem 0;
@@ -65,12 +65,12 @@ const NotebookCellBlock = styled.div.withConfig({ displayName: "NotebookCellBloc
65
65
  visibility: visible;
66
66
  }
67
67
  `;
68
- const NotebookCellRow = styled.div.withConfig({ displayName: "NotebookCellRow", componentId: "sc-1yah6rg" }) `
68
+ const NotebookCellRow = styled.div.withConfig({ displayName: "NotebookCellRow", componentId: "sc-vlhd82" }) `
69
69
  display: flex;
70
70
  width: 100%;
71
71
  border-top: 1px solid ${({ theme }) => theme.palette.elementDeep};
72
72
  `;
73
- const NotebookCellBody = styled.div.withConfig({ displayName: "NotebookCellBody", componentId: "sc-hhqoon" }) `
73
+ const NotebookCellBody = styled.div.withConfig({ displayName: "NotebookCellBody", componentId: "sc-o8n6um" }) `
74
74
  display: flex;
75
75
  flex-direction: column;
76
76
  width: 100%;
@@ -78,7 +78,7 @@ const NotebookCellBody = styled.div.withConfig({ displayName: "NotebookCellBody"
78
78
  box-sizing: border-box;
79
79
  position: relative;
80
80
  `;
81
- const MainActions = styled.div.withConfig({ displayName: "MainActions", componentId: "sc-1xv8p4h" }) `
81
+ const MainActions = styled.div.withConfig({ displayName: "MainActions", componentId: "sc-9kznis" }) `
82
82
  display: flex;
83
83
  flex-direction: column;
84
84
  align-items: center;
@@ -90,13 +90,13 @@ const MainActions = styled.div.withConfig({ displayName: "MainActions", componen
90
90
 
91
91
  ${compactIconButtons}
92
92
  `;
93
- const TitleWrapper = styled.div.withConfig({ displayName: "TitleWrapper", componentId: "sc-2dxpyx" }) `
93
+ const TitleWrapper = styled.div.withConfig({ displayName: "TitleWrapper", componentId: "sc-1pi375t" }) `
94
94
  position: sticky;
95
95
  top: 0;
96
96
  right: 0;
97
97
  z-index: 1;
98
98
  `;
99
- const TitleInner = styled.div.withConfig({ displayName: "TitleInner", componentId: "sc-tquby5" }) `
99
+ const TitleInner = styled.div.withConfig({ displayName: "TitleInner", componentId: "sc-1nlxq33" }) `
100
100
  display: none;
101
101
  position: absolute;
102
102
  top: 0;
@@ -111,7 +111,7 @@ const TitleInner = styled.div.withConfig({ displayName: "TitleInner", componentI
111
111
 
112
112
  ${compactIconButtons}
113
113
  `;
114
- const TitleSecondaryActions = styled.div.withConfig({ displayName: "TitleSecondaryActions", componentId: "sc-9w7kir" }) `
114
+ const TitleSecondaryActions = styled.div.withConfig({ displayName: "TitleSecondaryActions", componentId: "sc-12rb8qj" }) `
115
115
  display: flex;
116
116
  align-items: center;
117
117
  gap: 0 0.25rem;
@@ -123,7 +123,7 @@ const revealTitleOnHover = css `
123
123
  display: flex;
124
124
  }
125
125
  `;
126
- const CellEditorContainer = styled.div.withConfig({ displayName: "CellEditorContainer", componentId: "sc-1ak16ol" }) `
126
+ const CellEditorContainer = styled.div.withConfig({ displayName: "CellEditorContainer", componentId: "sc-1h3siu4" }) `
127
127
  display: flex;
128
128
  flex-direction: column;
129
129
  width: 100%;
@@ -132,13 +132,13 @@ const CellEditorContainer = styled.div.withConfig({ displayName: "CellEditorCont
132
132
 
133
133
  ${revealTitleOnHover}
134
134
  `;
135
- const CellInfoText = styled.div.withConfig({ displayName: "CellInfoText", componentId: "sc-86swtw" }) `
135
+ const CellInfoText = styled.div.withConfig({ displayName: "CellInfoText", componentId: "sc-1lrlsk8" }) `
136
136
  margin-right: 0.25rem;
137
137
  font-size: 12px;
138
138
  color: ${({ theme: { palette } }) => palette.textSecondary};
139
139
  ${textOverflowEllipsisMixin}
140
140
  `;
141
- const CodeCellActionContainer = styled.div.withConfig({ displayName: "CodeCellActionContainer", componentId: "sc-1wrr5j" }) `
141
+ const CodeCellActionContainer = styled.div.withConfig({ displayName: "CodeCellActionContainer", componentId: "sc-16e5i0g" }) `
142
142
  display: flex;
143
143
  flex-direction: column;
144
144
  flex-shrink: 0;
@@ -146,7 +146,7 @@ const CodeCellActionContainer = styled.div.withConfig({ displayName: "CodeCellAc
146
146
  top: 0;
147
147
  left: 0;
148
148
  `;
149
- const MarkdownCellContainer = styled.div.withConfig({ displayName: "MarkdownCellContainer", componentId: "sc-1vgsn5l" }) `
149
+ const MarkdownCellContainer = styled.div.withConfig({ displayName: "MarkdownCellContainer", componentId: "sc-ei3ji8" }) `
150
150
  display: flex;
151
151
  flex-direction: column;
152
152
  flex: 1;
@@ -156,18 +156,18 @@ const MarkdownCellContainer = styled.div.withConfig({ displayName: "MarkdownCell
156
156
 
157
157
  ${revealTitleOnHover}
158
158
  `;
159
- const MarkdownToolbar = styled.div.withConfig({ displayName: "MarkdownToolbar", componentId: "sc-14uejth" }) `
159
+ const MarkdownToolbar = styled.div.withConfig({ displayName: "MarkdownToolbar", componentId: "sc-j1qang" }) `
160
160
  display: flex;
161
161
  align-items: center;
162
162
  width: 100%;
163
163
 
164
164
  ${compactIconButtons}
165
165
  `;
166
- const MarkdownToolbarDivider = styled(Divider).withConfig({ displayName: "MarkdownToolbarDivider", componentId: "sc-8jzzuv" }) `
166
+ const MarkdownToolbarDivider = styled(Divider).withConfig({ displayName: "MarkdownToolbarDivider", componentId: "sc-br3bqc" }) `
167
167
  height: 1rem;
168
168
  margin-top: 0.25rem;
169
169
  `;
170
- const OutputResultContainer = styled.div.withConfig({ displayName: "OutputResultContainer", componentId: "sc-jypnke" }) `
170
+ const OutputResultContainer = styled.div.withConfig({ displayName: "OutputResultContainer", componentId: "sc-1bz3ray" }) `
171
171
  display: flex;
172
172
  flex-direction: column;
173
173
  width: 100%;
@@ -183,7 +183,7 @@ const OutputResultContainer = styled.div.withConfig({ displayName: "OutputResult
183
183
  background-color: ${({ theme }) => (isDark(theme) ? "#1F323B" : "#F1F2F3")};
184
184
  }
185
185
  `;
186
- const OutputEditorContainer = styled.div.withConfig({ displayName: "OutputEditorContainer", componentId: "sc-1rt6abr" }) `
186
+ const OutputEditorContainer = styled.div.withConfig({ displayName: "OutputEditorContainer", componentId: "sc-1mhmn9v" }) `
187
187
  display: flex;
188
188
  flex-direction: column;
189
189
  width: 100%;
@@ -193,7 +193,7 @@ const OutputEditorContainer = styled.div.withConfig({ displayName: "OutputEditor
193
193
  position: relative;
194
194
  border-radius: 6px;
195
195
  `;
196
- const ErrorBlock = styled.div.withConfig({ displayName: "ErrorBlock", componentId: "sc-s15l4r" }) `
196
+ const ErrorBlock = styled.div.withConfig({ displayName: "ErrorBlock", componentId: "sc-aeatzr" }) `
197
197
  padding: 0 1rem;
198
198
  font-size: 0.75rem;
199
199
  cursor: text;
@@ -202,7 +202,7 @@ const ErrorBlock = styled.div.withConfig({ displayName: "ErrorBlock", componentI
202
202
  color: ${({ theme }) => theme.palette.primary} !important;
203
203
  }
204
204
  `;
205
- const ImageBlock = styled.img.withConfig({ displayName: "ImageBlock", componentId: "sc-1vwhbuc" }) `
205
+ const ImageBlock = styled.img.withConfig({ displayName: "ImageBlock", componentId: "sc-1eoj82c" }) `
206
206
  max-width: max-content;
207
207
  user-select: none;
208
208
  `;
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const PythonEditorContainer = styled.div.withConfig({ displayName: "PythonEditorContainer", componentId: "sc-70lh2y" }) `
3
+ const PythonEditorContainer = styled.div.withConfig({ displayName: "PythonEditorContainer", componentId: "sc-10fdof3" }) `
4
4
  display: flex;
5
5
  flex: 1;
6
6
  flex-direction: column;
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const RunBarTime = styled.div.withConfig({ displayName: "RunBarTime", componentId: "sc-1ce6xc6" }) `
3
+ const RunBarTime = styled.div.withConfig({ displayName: "RunBarTime", componentId: "sc-1yxpobl" }) `
4
4
  margin-left: auto;
5
5
  font-size: 0.75rem;
6
6
  color: ${({ theme: { palette } }) => palette.textSecondary};
@@ -1,15 +1,15 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const LimitTooltipContent = styled.div.withConfig({ displayName: "LimitTooltipContent", componentId: "sc-zyu6vj" }) `
3
+ const LimitTooltipContent = styled.div.withConfig({ displayName: "LimitTooltipContent", componentId: "sc-po1n5y" }) `
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  gap: 0.25rem;
7
7
  max-width: 16rem;
8
8
  `;
9
- const LimitTooltipTitle = styled.div.withConfig({ displayName: "LimitTooltipTitle", componentId: "sc-1feqnr5" }) `
9
+ const LimitTooltipTitle = styled.div.withConfig({ displayName: "LimitTooltipTitle", componentId: "sc-tgefno" }) `
10
10
  font-weight: 600;
11
11
  `;
12
- const LimitTooltipHint = styled.div.withConfig({ displayName: "LimitTooltipHint", componentId: "sc-1vwam9t" }) `
12
+ const LimitTooltipHint = styled.div.withConfig({ displayName: "LimitTooltipHint", componentId: "sc-12valbi" }) `
13
13
  opacity: 0.72;
14
14
  `;
15
15
 
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
  import { LogTerminal } from '@evergis/react';
3
3
 
4
- const RunLogContainer = styled.div.withConfig({ displayName: "RunLogContainer", componentId: "sc-v58xm5" }) `
4
+ const RunLogContainer = styled.div.withConfig({ displayName: "RunLogContainer", componentId: "sc-1myu2sw" }) `
5
5
  display: flex;
6
6
  flex-direction: column;
7
7
  width: 100%;
@@ -9,7 +9,7 @@ const RunLogContainer = styled.div.withConfig({ displayName: "RunLogContainer",
9
9
  min-height: 0;
10
10
  background-color: ${({ theme: { palette } }) => palette.devBackgroundDark};
11
11
  `;
12
- const RunLogTerminal = styled(LogTerminal).withConfig({ displayName: "RunLogTerminal", componentId: "sc-14pi5fo" }) `
12
+ const RunLogTerminal = styled(LogTerminal).withConfig({ displayName: "RunLogTerminal", componentId: "sc-yww8ev" }) `
13
13
  flex: 1;
14
14
  min-height: 0;
15
15
  margin: 1rem;
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
  import { Divider } from '@evergis/uilib-gl';
3
3
 
4
- const PythonStatusContainer = styled.div.withConfig({ displayName: "PythonStatusContainer", componentId: "sc-1tzstko" }) `
4
+ const PythonStatusContainer = styled.div.withConfig({ displayName: "PythonStatusContainer", componentId: "sc-akt6hv" }) `
5
5
  display: flex;
6
6
  align-items: center;
7
7
  gap: 1rem;
@@ -9,7 +9,7 @@ const PythonStatusContainer = styled.div.withConfig({ displayName: "PythonStatus
9
9
  margin-left: auto;
10
10
  white-space: nowrap;
11
11
  `;
12
- const PythonStatusDivider = styled(Divider).withConfig({ displayName: "PythonStatusDivider", componentId: "sc-b3ztp2" }) `
12
+ const PythonStatusDivider = styled(Divider).withConfig({ displayName: "PythonStatusDivider", componentId: "sc-fo7qpg" }) `
13
13
  height: 0.875rem;
14
14
  align-self: center;
15
15
  margin: 0;
@@ -1,13 +1,13 @@
1
1
  import styled from 'styled-components';
2
2
 
3
- const CardActions = styled.div.withConfig({ displayName: "CardActions", componentId: "sc-pyjgdq" }) `
3
+ const CardActions = styled.div.withConfig({ displayName: "CardActions", componentId: "sc-tzqpo6" }) `
4
4
  display: flex;
5
5
  align-items: center;
6
6
  gap: 1rem;
7
7
  flex-shrink: 0;
8
8
  opacity: 0;
9
9
  `;
10
- const Card = styled.div.withConfig({ displayName: "Card", componentId: "sc-jaghvc" }) `
10
+ const Card = styled.div.withConfig({ displayName: "Card", componentId: "sc-w2l8ep" }) `
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  gap: 1rem;
@@ -25,20 +25,20 @@ const Card = styled.div.withConfig({ displayName: "Card", componentId: "sc-jaghv
25
25
  opacity: 1;
26
26
  }
27
27
  `;
28
- const CardRow = styled.div.withConfig({ displayName: "CardRow", componentId: "sc-18t0s7t" }) `
28
+ const CardRow = styled.div.withConfig({ displayName: "CardRow", componentId: "sc-6nj6ve" }) `
29
29
  display: flex;
30
30
  align-items: center;
31
31
  justify-content: space-between;
32
32
  gap: 1rem;
33
33
  min-width: 0;
34
34
  `;
35
- const CardMain = styled.div.withConfig({ displayName: "CardMain", componentId: "sc-2piesf" }) `
35
+ const CardMain = styled.div.withConfig({ displayName: "CardMain", componentId: "sc-kmw4e0" }) `
36
36
  display: flex;
37
37
  align-items: center;
38
38
  gap: 0.5rem;
39
39
  min-width: 0;
40
40
  `;
41
- const CardName = styled.div.withConfig({ displayName: "CardName", componentId: "sc-199g6sw" }) `
41
+ const CardName = styled.div.withConfig({ displayName: "CardName", componentId: "sc-1g0ellv" }) `
42
42
  overflow: hidden;
43
43
  font-size: 1rem;
44
44
  font-weight: 600;
@@ -6,12 +6,12 @@ const SandboxesDialogFrame = styled(Dialog).attrs({
6
6
  minWidth: "40rem",
7
7
  maxWidth: "40rem",
8
8
  minHeight: "0",
9
- }).withConfig({ displayName: "SandboxesDialogFrame", componentId: "sc-1az8ezw" }) `
9
+ }).withConfig({ displayName: "SandboxesDialogFrame", componentId: "sc-1n6uicz" }) `
10
10
  border-radius: 0.75rem;
11
11
  overflow: hidden;
12
12
  background: ${({ theme }) => theme.palette.background};
13
13
  `;
14
- const SandboxesDialogContent = styled(DialogContent).withConfig({ displayName: "SandboxesDialogContent", componentId: "sc-155ppja" }) `
14
+ const SandboxesDialogContent = styled(DialogContent).withConfig({ displayName: "SandboxesDialogContent", componentId: "sc-13isuks" }) `
15
15
  flex-direction: column;
16
16
  align-items: stretch;
17
17
  gap: 2rem;
@@ -20,39 +20,39 @@ const SandboxesDialogContent = styled(DialogContent).withConfig({ displayName: "
20
20
  padding: 3rem;
21
21
  box-sizing: border-box;
22
22
  `;
23
- const SandboxesHeader = styled.div.withConfig({ displayName: "SandboxesHeader", componentId: "sc-5h8a1v" }) `
23
+ const SandboxesHeader = styled.div.withConfig({ displayName: "SandboxesHeader", componentId: "sc-1wnjkaw" }) `
24
24
  display: flex;
25
25
  align-items: center;
26
26
  justify-content: space-between;
27
27
  gap: 1rem;
28
28
  `;
29
- const SandboxesTitle = styled.div.withConfig({ displayName: "SandboxesTitle", componentId: "sc-yfsmg" }) `
29
+ const SandboxesTitle = styled.div.withConfig({ displayName: "SandboxesTitle", componentId: "sc-14wdg5o" }) `
30
30
  font-size: 1.5rem;
31
31
  line-height: 1.75rem;
32
32
  color: ${({ theme }) => theme.palette.textPrimary};
33
33
  white-space: nowrap;
34
34
  `;
35
- const SandboxesHeaderActions = styled.div.withConfig({ displayName: "SandboxesHeaderActions", componentId: "sc-7oio91" }) `
35
+ const SandboxesHeaderActions = styled.div.withConfig({ displayName: "SandboxesHeaderActions", componentId: "sc-12832vq" }) `
36
36
  display: flex;
37
37
  align-items: center;
38
38
  gap: 1rem;
39
39
  `;
40
- const SandboxesLimit = styled.div.withConfig({ displayName: "SandboxesLimit", componentId: "sc-n5zkq3" }) `
40
+ const SandboxesLimit = styled.div.withConfig({ displayName: "SandboxesLimit", componentId: "sc-1ni85ul" }) `
41
41
  font-size: 0.875rem;
42
42
  color: ${({ theme }) => theme.palette.textPrimary};
43
43
  white-space: nowrap;
44
44
  `;
45
- const SandboxesList = styled.div.withConfig({ displayName: "SandboxesList", componentId: "sc-1xqvsu4" }) `
45
+ const SandboxesList = styled.div.withConfig({ displayName: "SandboxesList", componentId: "sc-u65u6p" }) `
46
46
  display: flex;
47
47
  flex-direction: column;
48
48
  gap: 0.5rem;
49
49
  max-height: 32rem;
50
50
  overflow-y: auto;
51
51
  `;
52
- const SandboxesEmpty = styled.div.withConfig({ displayName: "SandboxesEmpty", componentId: "sc-147zv36" }) `
52
+ const SandboxesEmpty = styled.div.withConfig({ displayName: "SandboxesEmpty", componentId: "sc-cjp5g7" }) `
53
53
  color: ${({ theme }) => theme.palette.textSecondary};
54
54
  `;
55
- const PlainIconButton = styled.button.withConfig({ displayName: "PlainIconButton", componentId: "sc-1gck6f8" }) `
55
+ const PlainIconButton = styled.button.withConfig({ displayName: "PlainIconButton", componentId: "sc-gjk7b6" }) `
56
56
  display: flex;
57
57
  align-items: center;
58
58
  justify-content: center;