@gravity-ui/dashkit 6.9.0 → 6.10.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ButtonSize, ButtonView, IconProps, MenuItemProps } from '@gravity-ui/uikit';
|
|
3
|
+
import { Config, ConfigItem, ItemState, PluginBase, StringParams } from '../../shared';
|
|
4
4
|
import type { RegisterManager } from '../../utils/register-manager';
|
|
5
5
|
export declare enum OverlayControlsPosition {
|
|
6
6
|
TopRight = "top_right",
|
|
@@ -45,7 +45,9 @@ type PreparedCopyItemOptionsArg = Pick<ConfigItem, 'data' | 'type' | 'defaults'
|
|
|
45
45
|
h: number;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
export type PreparedCopyItemOptions = PreparedCopyItemOptionsArg
|
|
48
|
+
export type PreparedCopyItemOptions<C extends object = {}> = PreparedCopyItemOptionsArg & {
|
|
49
|
+
copyContext?: C;
|
|
50
|
+
};
|
|
49
51
|
type DashKitCtx = React.Context<{
|
|
50
52
|
context: Record<string, any>;
|
|
51
53
|
registerManager: RegisterManager;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ButtonSize, ButtonView, IconProps, MenuItemProps } from '@gravity-ui/uikit';
|
|
3
|
+
import { Config, ConfigItem, ItemState, PluginBase, StringParams } from '../../shared';
|
|
4
4
|
import type { RegisterManager } from '../../utils/register-manager';
|
|
5
5
|
import './OverlayControls.css';
|
|
6
6
|
export declare enum OverlayControlsPosition {
|
|
@@ -46,7 +46,9 @@ type PreparedCopyItemOptionsArg = Pick<ConfigItem, 'data' | 'type' | 'defaults'
|
|
|
46
46
|
h: number;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
export type PreparedCopyItemOptions = PreparedCopyItemOptionsArg
|
|
49
|
+
export type PreparedCopyItemOptions<C extends object = {}> = PreparedCopyItemOptionsArg & {
|
|
50
|
+
copyContext?: C;
|
|
51
|
+
};
|
|
50
52
|
type DashKitCtx = React.Context<{
|
|
51
53
|
context: Record<string, any>;
|
|
52
54
|
registerManager: RegisterManager;
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import i18n from '../../i18n';
|
|
3
3
|
import noop from 'lodash/noop';
|
|
4
4
|
import { DashKitContext } from '../../context/DashKitContext';
|
|
5
|
-
import {
|
|
6
|
-
import { COPIED_WIDGET_STORE_KEY,
|
|
5
|
+
import { Button, DropdownMenu, Icon, } from '@gravity-ui/uikit';
|
|
6
|
+
import { COPIED_WIDGET_STORE_KEY, MenuItems, OVERLAY_CONTROLS_CLASS_NAME } from '../../constants';
|
|
7
7
|
import { DotsIcon } from '../../icons/DotsIcon';
|
|
8
8
|
import { CogIcon } from '../../icons/CogIcon';
|
|
9
9
|
import { CloseIcon } from '../../icons/CloseIcon';
|