@gravity-ui/dashkit 7.1.0 → 7.1.1

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,8 +1,8 @@
1
- import type { ReactGridLayoutProps } from 'react-grid-layout';
1
+ import type ReactGridLayout from 'react-grid-layout';
2
2
  import { OverlayCustomControlItem } from '../components/OverlayControls/OverlayControls';
3
3
  import { MenuItems } from '../constants';
4
4
  export interface Settings {
5
- gridLayout?: ReactGridLayoutProps;
5
+ gridLayout?: ReactGridLayout.ReactGridLayoutProps;
6
6
  theme?: string;
7
7
  isMobile?: boolean;
8
8
  menu?: Array<MenuItem>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ReactGridLayoutProps } from 'react-grid-layout';
2
+ import ReactGridLayout from 'react-grid-layout';
3
3
  import { ConfigItem, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions, PluginBase, StringParams } from '../shared';
4
4
  import { ContextProps, SettingsProps, WidgetLayout } from './common';
5
5
  export interface PluginWidgetProps<T = StringParams> {
@@ -16,7 +16,7 @@ export interface PluginWidgetProps<T = StringParams> {
16
16
  settings: SettingsProps;
17
17
  context: ContextProps;
18
18
  layout: WidgetLayout[];
19
- gridLayout: ReactGridLayoutProps;
19
+ gridLayout: ReactGridLayout.ReactGridLayoutProps;
20
20
  adjustWidgetLayout: (data: {
21
21
  widgetId: string;
22
22
  needSetDefault?: boolean;
@@ -1,4 +1,4 @@
1
- import type { ReactGridLayoutProps } from 'react-grid-layout';
1
+ import ReactGridLayout from 'react-grid-layout';
2
2
  import { Plugin, PluginDefaultLayout, Settings } from '../typings';
3
3
  interface RegisterManagerDefaultLayout {
4
4
  x: number;
@@ -23,7 +23,7 @@ export declare class RegisterManager {
23
23
  registerPlugin(plugin: Plugin): void;
24
24
  setSettings(settings?: Settings): void;
25
25
  get settings(): RegisterManagerSettings;
26
- get gridLayout(): ReactGridLayoutProps;
26
+ get gridLayout(): ReactGridLayout.ReactGridLayoutProps;
27
27
  getPlugins(): RegisterManagerPlugin[];
28
28
  getItem(type: string): RegisterManagerPlugin;
29
29
  check(type: string): boolean;
@@ -1,8 +1,8 @@
1
- import type { ReactGridLayoutProps } from 'react-grid-layout';
1
+ import type ReactGridLayout from 'react-grid-layout';
2
2
  import { OverlayCustomControlItem } from '../components/OverlayControls/OverlayControls';
3
3
  import { MenuItems } from '../constants';
4
4
  export interface Settings {
5
- gridLayout?: ReactGridLayoutProps;
5
+ gridLayout?: ReactGridLayout.ReactGridLayoutProps;
6
6
  theme?: string;
7
7
  isMobile?: boolean;
8
8
  menu?: Array<MenuItem>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ReactGridLayoutProps } from 'react-grid-layout';
2
+ import ReactGridLayout from 'react-grid-layout';
3
3
  import { ConfigItem, ItemState, ItemStateAndParams, ItemStateAndParamsChangeOptions, PluginBase, StringParams } from '../shared';
4
4
  import { ContextProps, SettingsProps, WidgetLayout } from './common';
5
5
  export interface PluginWidgetProps<T = StringParams> {
@@ -16,7 +16,7 @@ export interface PluginWidgetProps<T = StringParams> {
16
16
  settings: SettingsProps;
17
17
  context: ContextProps;
18
18
  layout: WidgetLayout[];
19
- gridLayout: ReactGridLayoutProps;
19
+ gridLayout: ReactGridLayout.ReactGridLayoutProps;
20
20
  adjustWidgetLayout: (data: {
21
21
  widgetId: string;
22
22
  needSetDefault?: boolean;
@@ -1,4 +1,4 @@
1
- import type { ReactGridLayoutProps } from 'react-grid-layout';
1
+ import ReactGridLayout from 'react-grid-layout';
2
2
  import { Plugin, PluginDefaultLayout, Settings } from '../typings';
3
3
  interface RegisterManagerDefaultLayout {
4
4
  x: number;
@@ -23,7 +23,7 @@ export declare class RegisterManager {
23
23
  registerPlugin(plugin: Plugin): void;
24
24
  setSettings(settings?: Settings): void;
25
25
  get settings(): RegisterManagerSettings;
26
- get gridLayout(): ReactGridLayoutProps;
26
+ get gridLayout(): ReactGridLayout.ReactGridLayoutProps;
27
27
  getPlugins(): RegisterManagerPlugin[];
28
28
  getItem(type: string): RegisterManagerPlugin;
29
29
  check(type: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/dashkit",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "Library for rendering dashboard grid layout",
5
5
  "license": "MIT",
6
6
  "repository": {