ydb-embedded-ui 6.33.0 → 6.34.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +21 -0
  2. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +31 -0
  3. package/dist/components/ConfirmationDialog/ConfirmationDialog.js.map +1 -0
  4. package/dist/components/ConfirmationDialog/ConfirmationDialog.scss +6 -0
  5. package/dist/components/ConfirmationDialog/i18n/en.json +3 -0
  6. package/dist/components/ConfirmationDialog/i18n/index.d.ts +1 -0
  7. package/dist/components/ConfirmationDialog/i18n/index.js +5 -0
  8. package/dist/components/ConfirmationDialog/i18n/index.js.map +1 -0
  9. package/dist/components/EntityStatus/EntityStatus.js +1 -1
  10. package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
  11. package/dist/components/MemoryViewer/MemoryViewer.d.ts +14 -0
  12. package/dist/components/MemoryViewer/MemoryViewer.js +84 -0
  13. package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -0
  14. package/dist/components/MemoryViewer/MemoryViewer.scss +104 -0
  15. package/dist/components/MemoryViewer/i18n/en.json +11 -0
  16. package/dist/components/MemoryViewer/i18n/index.d.ts +2 -0
  17. package/dist/components/MemoryViewer/i18n/index.js +5 -0
  18. package/dist/components/MemoryViewer/i18n/index.js.map +1 -0
  19. package/dist/components/MemoryViewer/utils.d.ts +10 -0
  20. package/dist/components/MemoryViewer/utils.js +71 -0
  21. package/dist/components/MemoryViewer/utils.js.map +1 -0
  22. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  23. package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
  24. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  25. package/dist/components/nodesColumns/columns.d.ts +4 -7
  26. package/dist/components/nodesColumns/columns.js +9 -17
  27. package/dist/components/nodesColumns/columns.js.map +1 -1
  28. package/dist/components/nodesColumns/constants.d.ts +4 -5
  29. package/dist/components/nodesColumns/constants.js +78 -11
  30. package/dist/components/nodesColumns/constants.js.map +1 -1
  31. package/dist/components/nodesColumns/i18n/en.json +8 -5
  32. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  33. package/dist/containers/App/App.d.ts +1 -1
  34. package/dist/containers/App/Providers.js +2 -1
  35. package/dist/containers/App/Providers.js.map +1 -1
  36. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +2 -0
  37. package/dist/containers/AsideNavigation/AsideNavigation.js +2 -1
  38. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  39. package/dist/containers/Clusters/constants.d.ts +1 -1
  40. package/dist/containers/Nodes/columns/columns.js +2 -2
  41. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  42. package/dist/containers/Nodes/columns/constants.js +2 -2
  43. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  44. package/dist/containers/Nodes/getNodes.js +4 -5
  45. package/dist/containers/Nodes/getNodes.js.map +1 -1
  46. package/dist/containers/Storage/StorageGroups/columns/columns.js +3 -3
  47. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
  48. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +3 -7
  49. package/dist/containers/Storage/StorageGroups/columns/constants.js +54 -10
  50. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  51. package/dist/containers/Storage/StorageGroups/getGroups.js +3 -5
  52. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  53. package/dist/containers/Storage/StorageNodes/columns/columns.js +2 -3
  54. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  55. package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -2
  56. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  57. package/dist/containers/Storage/StorageNodes/getNodes.js +4 -5
  58. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  59. package/dist/containers/Storage/utils/index.d.ts +1 -1
  60. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  61. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +3 -1
  62. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
  63. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -7
  64. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  65. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  66. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +3 -1
  67. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  68. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +5 -1
  69. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
  70. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +5 -2
  71. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  72. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.d.ts +7 -0
  73. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js +40 -0
  74. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js.map +1 -0
  75. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +1 -1
  76. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
  77. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +4 -1
  78. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  79. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +8 -1
  80. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
  81. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +3 -1
  82. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
  83. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -27
  84. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +32 -51
  85. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  86. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +1 -1
  87. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  88. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +9 -3
  89. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +23 -12
  90. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
  91. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +8 -3
  92. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js.map +1 -1
  93. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +1 -1
  94. package/dist/containers/Tenant/utils/newSQLQueryActions.js +2 -3
  95. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -1
  96. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -0
  97. package/dist/containers/Tenant/utils/schemaActions.js +59 -40
  98. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  99. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +1 -1
  100. package/dist/containers/UserSettings/i18n/en.json +2 -0
  101. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  102. package/dist/containers/UserSettings/settings.d.ts +1 -0
  103. package/dist/containers/UserSettings/settings.js +7 -2
  104. package/dist/containers/UserSettings/settings.js.map +1 -1
  105. package/dist/services/api.d.ts +4 -0
  106. package/dist/services/api.js +11 -0
  107. package/dist/services/api.js.map +1 -1
  108. package/dist/services/settings.d.ts +1 -0
  109. package/dist/services/settings.js +2 -1
  110. package/dist/services/settings.js.map +1 -1
  111. package/dist/store/configureStore.d.ts +25 -11
  112. package/dist/store/defaultStore.d.ts +12 -5
  113. package/dist/store/reducers/capabilities/capabilities.d.ts +48 -8
  114. package/dist/store/reducers/cluster/cluster.d.ts +36 -6
  115. package/dist/store/reducers/executeQuery.d.ts +41 -51
  116. package/dist/store/reducers/executeQuery.js +64 -160
  117. package/dist/store/reducers/executeQuery.js.map +1 -1
  118. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +120 -20
  119. package/dist/store/reducers/index.d.ts +19 -10
  120. package/dist/store/reducers/node/selectors.d.ts +6 -1
  121. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  122. package/dist/store/reducers/nodesList.d.ts +6 -1
  123. package/dist/store/reducers/planToSvg.d.ts +8 -0
  124. package/dist/store/reducers/planToSvg.js +21 -0
  125. package/dist/store/reducers/planToSvg.js.map +1 -0
  126. package/dist/store/reducers/queryActions/queryActions.d.ts +0 -27
  127. package/dist/store/reducers/queryActions/queryActions.js +1 -1
  128. package/dist/store/reducers/queryActions/queryActions.js.map +1 -1
  129. package/dist/store/reducers/schema/schema.d.ts +22 -7
  130. package/dist/store/reducers/schema/schema.js +16 -20
  131. package/dist/store/reducers/schema/schema.js.map +1 -1
  132. package/dist/store/reducers/tablets.d.ts +30 -5
  133. package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
  134. package/dist/store/reducers/tenants/selectors.d.ts +54 -9
  135. package/dist/store/reducers/tooltip.d.ts +1 -1
  136. package/dist/store/reducers/topic.d.ts +90 -15
  137. package/dist/store/reducers/trace.d.ts +1 -1
  138. package/dist/store/reducers/trace.js +1 -1
  139. package/dist/store/reducers/trace.js.map +1 -1
  140. package/dist/types/api/nodes.d.ts +18 -4
  141. package/dist/types/api/nodes.js.map +1 -1
  142. package/dist/types/store/executeQuery.d.ts +3 -6
  143. package/dist/types/store/executeQuery.js.map +1 -1
  144. package/dist/utils/constants.d.ts +1 -0
  145. package/dist/utils/constants.js +1 -0
  146. package/dist/utils/constants.js.map +1 -1
  147. package/dist/utils/hooks/withConfirmation/i18n/en.json +4 -0
  148. package/dist/utils/hooks/withConfirmation/i18n/index.d.ts +2 -0
  149. package/dist/utils/hooks/withConfirmation/i18n/index.js +5 -0
  150. package/dist/utils/hooks/withConfirmation/i18n/index.js.map +1 -0
  151. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.d.ts +3 -0
  152. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +53 -0
  153. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -0
  154. package/dist/utils/nodes.d.ts +1 -4
  155. package/dist/utils/nodes.js +0 -36
  156. package/dist/utils/nodes.js.map +1 -1
  157. package/dist/utils/query.d.ts +1 -1
  158. package/dist/utils/storage.d.ts +1 -3
  159. package/dist/utils/storage.js +0 -17
  160. package/dist/utils/storage.js.map +1 -1
  161. package/package.json +2 -1
@@ -0,0 +1,53 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import NiceModal from '@ebay/nice-modal-react';
4
+ import { useTypedSelector } from '..';
5
+ import { CONFIRMATION_DIALOG } from '../../../components/ConfirmationDialog/ConfirmationDialog';
6
+ import { SaveQueryButton, SaveQueryDialog, } from '../../../containers/Tenant/Query/SaveQuery/SaveQuery';
7
+ import { selectUserInput } from '../../../store/reducers/executeQuery';
8
+ import i18n from './i18n';
9
+ function ExtendedSaveQueryButton() {
10
+ const modal = NiceModal.useModal(CONFIRMATION_DIALOG);
11
+ const closeModal = () => {
12
+ modal.hide();
13
+ modal.remove();
14
+ };
15
+ const handleSaveQuerySuccess = () => {
16
+ modal.resolve(true);
17
+ closeModal();
18
+ };
19
+ const handleCancelQuerySave = () => {
20
+ modal.resolve(false);
21
+ closeModal();
22
+ };
23
+ return (_jsxs(React.Fragment, { children: [_jsx(SaveQueryDialog, { onSuccess: handleSaveQuerySuccess, onCancel: handleCancelQuerySave }), _jsx(SaveQueryButton, { view: "action", size: "l" })] }));
24
+ }
25
+ export async function getConfirmation() {
26
+ return await NiceModal.show(CONFIRMATION_DIALOG, {
27
+ id: CONFIRMATION_DIALOG,
28
+ caption: i18n('context_unsaved-changes-warning'),
29
+ textButtonApply: i18n('action_apply'),
30
+ propsButtonApply: { view: 'l' },
31
+ renderButtons: (buttonApply, buttonCancel) => {
32
+ return (_jsxs(React.Fragment, { children: [buttonCancel, _jsx(ExtendedSaveQueryButton, {}), buttonApply] }));
33
+ },
34
+ });
35
+ }
36
+ export function changeInputWithConfirmation(callback) {
37
+ return async (args) => {
38
+ const confirmed = await getConfirmation();
39
+ if (!confirmed) {
40
+ return;
41
+ }
42
+ callback(args);
43
+ };
44
+ }
45
+ export function useChangeInputWithConfirmation(callback) {
46
+ const userInput = useTypedSelector(selectUserInput);
47
+ const callbackWithConfirmation = React.useMemo(() => changeInputWithConfirmation(callback), [callback]);
48
+ if (!userInput) {
49
+ return callback;
50
+ }
51
+ return callbackWithConfirmation;
52
+ }
53
+ //# sourceMappingURL=useChangeInputWithConfirmation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChangeInputWithConfirmation.js","sourceRoot":"","sources":["../../../../src/utils/hooks/withConfirmation/useChangeInputWithConfirmation.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,OAAO,EAAC,gBAAgB,EAAC,MAAM,IAAI,CAAC;AACpC,OAAO,EAAC,mBAAmB,EAAC,MAAM,2DAA2D,CAAC;AAC9F,OAAO,EACH,eAAe,EACf,eAAe,GAClB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AAErE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,SAAS,uBAAuB;IAC5B,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAEtD,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,KAAK,CAAC,IAAI,EAAE,CAAC;QACb,KAAK,CAAC,MAAM,EAAE,CAAC;IACnB,CAAC,CAAC;IACF,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAChC,KAAK,CAAC,OAA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pD,MAAM,wBAAwB,GAAG,KAAK,CAAC,OAAO,CAC1C,GAAG,EAAE,CAAC,2BAA2B,CAAI,QAAQ,CAAC,EAC9C,CAAC,QAAQ,CAAC,CACb,CAAC;IACF,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,OAAO,wBAAwB,CAAC;AACpC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { ProblemFilterValue } from '../store/reducers/settings/types';
3
- import type { NodesSortValue, TSystemStateInfo } from '../types/api/nodes';
3
+ import type { TSystemStateInfo } from '../types/api/nodes';
4
4
  import type { TNodeInfo } from '../types/api/nodesList';
5
5
  import type { NodeHostsMap } from '../types/store/nodesList';
6
6
  export declare enum NodesUptimeFilterValues {
@@ -27,6 +27,3 @@ export interface PreparedNodeSystemState extends TSystemStateInfo {
27
27
  export declare const prepareNodeSystemState: (systemState?: TSystemStateInfo) => PreparedNodeSystemState;
28
28
  export declare const getProblemParamValue: (problemFilter: ProblemFilterValue | undefined) => problemFilter is "With problems";
29
29
  export declare const getUptimeParamValue: (nodesUptimeFilter: NodesUptimeFilterValues | undefined) => number | undefined;
30
- export declare const NODES_SORT_VALUES: NodesSortValue[];
31
- export declare const NODES_SORT_VALUE_TO_FIELD: Record<NodesSortValue, NodesSortValue>;
32
- export declare const isSortableNodesProperty: (value: unknown) => value is NodesSortValue;
@@ -64,40 +64,4 @@ export const getProblemParamValue = (problemFilter) => {
64
64
  export const getUptimeParamValue = (nodesUptimeFilter) => {
65
65
  return nodesUptimeFilter === NodesUptimeFilterValues.SmallUptime ? HOUR_IN_SECONDS : undefined;
66
66
  };
67
- export const NODES_SORT_VALUES = [
68
- 'NodeId',
69
- 'Host',
70
- 'NodeName',
71
- 'DC',
72
- 'Rack',
73
- 'Version',
74
- 'Uptime',
75
- 'CPU',
76
- 'LoadAverage',
77
- 'Memory',
78
- `Missing`,
79
- `DiskSpaceUsage`,
80
- `Database`,
81
- 'Pools',
82
- 'RAM',
83
- ];
84
- // Maps column names to actual fields on backend for sorting.
85
- export const NODES_SORT_VALUE_TO_FIELD = {
86
- NodeId: 'NodeId',
87
- Host: 'Host',
88
- NodeName: 'NodeName',
89
- DC: 'DC',
90
- Rack: 'Rack',
91
- Version: 'Version',
92
- Uptime: 'Uptime',
93
- CPU: 'CPU',
94
- LoadAverage: 'LoadAverage',
95
- Memory: 'Memory',
96
- Missing: 'Missing',
97
- DiskSpaceUsage: 'DiskSpaceUsage',
98
- Database: 'Database',
99
- Pools: 'CPU',
100
- RAM: 'Memory',
101
- };
102
- export const isSortableNodesProperty = (value) => NODES_SORT_VALUES.includes(value);
103
67
  //# sourceMappingURL=nodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAKzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,cAAc,EAAC,MAAM,GAAG,CAAC;AAEjC,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,sCAAa,CAAA;IACb,sDAA6B,CAAA;AACjC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KACzC,UAAU,CAAC,uBAAuB,CAAC;KACnC,KAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,KAAK;IACpC,CAAC,uBAAuB,CAAC,WAAW,CAAC,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1";
42
42
  readonly pg: "pg";
43
43
  };
44
- export declare const getColumnType: (type: string) => "number" | "boolean" | "string" | "date" | undefined;
44
+ export declare const getColumnType: (type: string) => "boolean" | "number" | "string" | "date" | undefined;
45
45
  type UnsupportedQueryResponseFormat = Array<unknown> | string | null | undefined | {
46
46
  result: string | Record<string, unknown>;
47
47
  };
@@ -1,9 +1,7 @@
1
- import type { StorageV2SortValue } from '../types/api/storage';
2
1
  interface EntityWithUsage {
3
2
  Used: number;
4
3
  Limit: number;
5
4
  }
6
5
  export declare const getUsage: <T extends EntityWithUsage>(data: T, step?: number) => number;
7
- export declare const getSpaceUsageSeverity: (value: number) => "success" | "warning" | "danger" | undefined;
8
- export declare const isSortableStorageProperty: (value: unknown) => value is StorageV2SortValue;
6
+ export declare const getSpaceUsageSeverity: (value: number) => "warning" | "danger" | "success" | undefined;
9
7
  export {};
@@ -5,21 +5,4 @@ export const getUsage = (data, step = 1) => {
5
5
  return Math.floor(usage / step) * step;
6
6
  };
7
7
  export const getSpaceUsageSeverity = generateEvaluator(80, 85, ['success', 'warning', 'danger']);
8
- const STORAGE_SORT_VALUES = [
9
- 'PoolName',
10
- 'Kind',
11
- 'MediaType',
12
- 'Erasure',
13
- 'Degraded',
14
- 'Usage',
15
- 'GroupId',
16
- 'Used',
17
- 'Limit',
18
- 'Read',
19
- 'Write',
20
- 'AllocationUnits',
21
- 'Latency',
22
- 'DiskSpaceUsage',
23
- ];
24
- export const isSortableStorageProperty = (value) => STORAGE_SORT_VALUES.includes(value);
25
8
  //# sourceMappingURL=storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAOtD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAA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EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.33.0",
3
+ "version": "6.34.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -119,6 +119,7 @@
119
119
  "devDependencies": {
120
120
  "@commitlint/cli": "^19.3.0",
121
121
  "@commitlint/config-conventional": "^19.2.2",
122
+ "@ebay/nice-modal-react": "^1.2.13",
122
123
  "@gravity-ui/browserslist-config": "^4.3.0",
123
124
  "@gravity-ui/eslint-config": "^3.2.0",
124
125
  "@gravity-ui/prettier-config": "^1.1.0",