@gravity-ui/dashkit 6.6.1 → 6.7.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.
Files changed (33) hide show
  1. package/build/cjs/components/Item/Item.d.ts +2 -2
  2. package/build/cjs/hocs/prepareItem.d.ts +2 -2
  3. package/build/cjs/hocs/prepareItem.js +2 -2
  4. package/build/cjs/hocs/withContext.js +2 -1
  5. package/build/cjs/shared/modules/helpers.d.ts +0 -9
  6. package/build/cjs/shared/modules/helpers.js +1 -22
  7. package/build/cjs/shared/modules/state-and-params.js +3 -21
  8. package/build/cjs/shared/types/state-and-params.d.ts +3 -0
  9. package/build/cjs/shared/units/__tests__/state-and-params.test.js +71 -0
  10. package/build/cjs/typings/plugin.d.ts +2 -2
  11. package/build/cjs/utils/__tests__/update-manager.test.d.ts +1 -0
  12. package/build/cjs/utils/__tests__/update-manager.test.js +476 -0
  13. package/build/cjs/utils/update-manager.d.ts +3 -2
  14. package/build/cjs/utils/update-manager.js +24 -10
  15. package/build/esm/components/Item/Item.d.ts +2 -2
  16. package/build/esm/hocs/prepareItem.d.ts +2 -2
  17. package/build/esm/hocs/prepareItem.js +2 -2
  18. package/build/esm/hocs/withContext.js +2 -1
  19. package/build/esm/shared/modules/helpers.d.ts +0 -9
  20. package/build/esm/shared/modules/helpers.js +0 -20
  21. package/build/esm/shared/modules/state-and-params.js +4 -22
  22. package/build/esm/shared/types/state-and-params.d.ts +3 -0
  23. package/build/esm/shared/units/__tests__/state-and-params.test.js +71 -0
  24. package/build/esm/typings/plugin.d.ts +2 -2
  25. package/build/esm/utils/__tests__/update-manager.test.d.ts +1 -0
  26. package/build/esm/utils/__tests__/update-manager.test.js +474 -0
  27. package/build/esm/utils/update-manager.d.ts +3 -2
  28. package/build/esm/utils/update-manager.js +24 -10
  29. package/package.json +1 -1
  30. package/build/cjs/utils/__tests__/mock.test.d.ts +0 -1
  31. package/build/cjs/utils/__tests__/mock.test.js +0 -8
  32. package/build/esm/utils/__tests__/mock.test.d.ts +0 -1
  33. package/build/esm/utils/__tests__/mock.test.js +0 -8
@@ -1,8 +1,6 @@
1
1
  import groupBy from 'lodash/groupBy';
2
- import intersection from 'lodash/intersection';
3
- import omit from 'lodash/omit';
4
2
  import { META_KEY } from '../constants';
5
- import { prerenderItems, formQueueData, getMapItemsIgnores, mergeParamsWithAliases, getCurrentVersion, pickActionParamsFromParams, hasActionParam, pickExceptActionParamsFromParams, transformParamsToActionParams, isItemWithTabs, resolveItemInnerId, getDefaultsActionParamsToClear, } from './helpers';
3
+ import { prerenderItems, formQueueData, getMapItemsIgnores, mergeParamsWithAliases, getCurrentVersion, pickActionParamsFromParams, hasActionParam, pickExceptActionParamsFromParams, isItemWithTabs, resolveItemInnerId, } from './helpers';
6
4
  export function getItemsParams({ defaultGlobalParams = {}, globalParams = {}, config, itemsStateAndParams, plugins, }) {
7
5
  const { aliases, connections } = config;
8
6
  const items = prerenderItems({ items: config.items, plugins });
@@ -50,8 +48,7 @@ export function getItemsParams({ defaultGlobalParams = {}, globalParams = {}, co
50
48
  }
51
49
  else {
52
50
  // params according to queue of its applying
53
- let prevQueueDataWithActionParams = {};
54
- let queueDataItems = {};
51
+ let queueDataItemsParams = {};
55
52
  for (const data of Object.values(queueData)) {
56
53
  if (data.namespace !== namespace || itemIgnores.includes(data.id)) {
57
54
  continue;
@@ -64,24 +61,9 @@ export function getItemsParams({ defaultGlobalParams = {}, globalParams = {}, co
64
61
  params = pickExceptActionParamsFromParams(data.params);
65
62
  }
66
63
  const mergedParams = getMergedParams(params, actionParams);
67
- const actionParamKeyToClear = intersection(Object.keys(transformParamsToActionParams(mergedParams)), Object.keys(prevQueueDataWithActionParams));
68
- let queueDataRes = Object.assign({}, queueDataItems);
69
- if (actionParamKeyToClear.length) {
70
- queueDataRes = omit(queueDataItems, actionParamKeyToClear);
71
- }
72
- queueDataItems = Object.assign(Object.assign({}, queueDataRes), mergedParams);
73
- prevQueueDataWithActionParams = hasActionParam(queueDataItems)
74
- ? pickActionParamsFromParams(data.params, true)
75
- : {};
76
- }
77
- const clearActionParams = getDefaultsActionParamsToClear({
78
- defaultWidgetParams,
79
- queueWidgetParams: queueDataItems,
80
- });
81
- if (clearActionParams.length) {
82
- defaultWidgetParams = omit(defaultWidgetParams, clearActionParams);
64
+ queueDataItemsParams = Object.assign(Object.assign({}, queueDataItemsParams), mergedParams);
83
65
  }
84
- itemParams = Object.assign(itemParams, queueDataItems);
66
+ itemParams = Object.assign(itemParams, queueDataItemsParams);
85
67
  }
86
68
  return Object.assign(Object.assign({}, itemsParams), { [id]: Object.assign(Object.assign({}, defaultWidgetParams), itemParams) });
87
69
  }, {});
@@ -18,5 +18,8 @@ export type ItemStateAndParams = {
18
18
  params?: StringParams;
19
19
  state?: ItemState;
20
20
  };
21
+ export type ItemStateAndParamsChangeOptions = {
22
+ action: 'setParams' | 'removeItem';
23
+ };
21
24
  export type ItemsStateAndParamsBase = Record<string, ItemStateAndParams>;
22
25
  export type ItemsStateAndParams = ItemsStateAndParamsBase | StateAndParamsMeta;
@@ -302,6 +302,7 @@ const stateAndParamsForAP2 = {
302
302
  Country: 'Belgium',
303
303
  Year: '',
304
304
  'd079937f-6bc4-4133-9171-40092bb20d6f': 'Belgium',
305
+ _ap_Country: 'Italy',
305
306
  },
306
307
  state: {},
307
308
  },
@@ -330,6 +331,7 @@ const stateAndParamsForAP3 = {
330
331
  Country: '',
331
332
  Year: '',
332
333
  'd079937f-6bc4-4133-9171-40092bb20d6f': '',
334
+ _ap_Country: 'Italy',
333
335
  },
334
336
  state: {},
335
337
  },
@@ -406,6 +408,64 @@ const stateAndParamsForAP5 = {
406
408
  },
407
409
  },
408
410
  };
411
+ const stateAndParamsForAP6 = {
412
+ in: {
413
+ Q8: {
414
+ params: {
415
+ _ap_Year: '2021',
416
+ _ap_Country: 'Russia',
417
+ },
418
+ },
419
+ L5: {
420
+ params: {
421
+ _ap_Country: 'Russia',
422
+ _ap_Name: 'Alex',
423
+ _ap_Price: '1000',
424
+ },
425
+ },
426
+ __meta__: {
427
+ queue: [
428
+ { id: 'Q8', tabId: 'K0' },
429
+ { id: 'L5', tabId: 'K1' },
430
+ ],
431
+ version: 2,
432
+ },
433
+ },
434
+ out: {
435
+ L5: {
436
+ params: {
437
+ Name: '',
438
+ Price: '',
439
+ Year: '2021',
440
+ Country: 'Russia',
441
+ _ap_Country: 'Russia',
442
+ _ap_Name: 'Alex',
443
+ _ap_Price: '1000',
444
+ },
445
+ state: {},
446
+ },
447
+ Q8: {
448
+ params: {
449
+ Year: '',
450
+ Country: 'Russia',
451
+ Name: 'Alex',
452
+ Price: '1000',
453
+ _ap_Year: '2021',
454
+ _ap_Country: 'Russia',
455
+ },
456
+ state: {},
457
+ },
458
+ al: {
459
+ params: {
460
+ Country: 'Russia',
461
+ Name: 'Alex',
462
+ Price: '1000',
463
+ Year: '2021',
464
+ },
465
+ state: {},
466
+ },
467
+ },
468
+ };
409
469
  const configs = mockConfigs.configs;
410
470
  describe('getItemsStateAndParamsDL', () => {
411
471
  describe('old version fallback', () => {
@@ -498,4 +558,15 @@ describe('getItemsStateAndParams actionParams variants check', () => {
498
558
  expect(resultItemsStateAndParams).toEqual(omit(stateAndParamsForAP5.out, META_KEY));
499
559
  });
500
560
  });
561
+ describe('action and params state 6', () => {
562
+ const resultItemsStateAndParams = getItemsStateAndParamsDL({
563
+ defaultGlobalParams: {},
564
+ globalParams: {},
565
+ config: configs[4],
566
+ itemsStateAndParams: stateAndParamsForAP6.in,
567
+ });
568
+ it('return stateAndParamsForAP6.out', () => {
569
+ expect(resultItemsStateAndParams).toEqual(omit(stateAndParamsForAP6.out, META_KEY));
570
+ });
571
+ });
501
572
  });
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ContextProps, SettingsProps, WidgetLayout } from './common';
3
- import { StringParams, ConfigItem, ItemState, ItemStateAndParams, PluginBase } from '../shared';
3
+ import { StringParams, ConfigItem, ItemState, ItemStateAndParams, PluginBase, ItemStateAndParamsChangeOptions } from '../shared';
4
4
  import type { ReactGridLayoutProps } from 'react-grid-layout';
5
5
  export interface PluginWidgetProps {
6
6
  id: string;
7
7
  editMode: boolean;
8
8
  params: StringParams;
9
9
  state: ItemState;
10
- onStateAndParamsChange: (stateAndParams: ItemStateAndParams) => void;
10
+ onStateAndParamsChange: (stateAndParams: ItemStateAndParams, options?: ItemStateAndParamsChangeOptions) => void;
11
11
  width: number;
12
12
  height: number;
13
13
  data: ConfigItem['data'];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,474 @@
1
+ import { UpdateManager } from '../update-manager';
2
+ const config = {
3
+ salt: '0.09852189776033704',
4
+ counter: 14,
5
+ items: [
6
+ {
7
+ id: 'al',
8
+ data: {
9
+ tabs: [
10
+ {
11
+ id: 'Jn',
12
+ title: 'tab 1',
13
+ params: {
14
+ Country: 'Germany',
15
+ },
16
+ chartId: 'h8hfbffyo3dg8',
17
+ isDefault: true,
18
+ autoHeight: false,
19
+ },
20
+ {
21
+ id: 'Pf',
22
+ title: 'tab 2',
23
+ params: {},
24
+ chartId: 'f5hfbl3yo3dh7',
25
+ isDefault: false,
26
+ autoHeight: false,
27
+ },
28
+ ],
29
+ hideTitle: true,
30
+ },
31
+ type: 'widget',
32
+ namespace: 'default',
33
+ },
34
+ {
35
+ id: 'Q8',
36
+ data: {
37
+ tabs: [
38
+ {
39
+ id: 'K0',
40
+ title: 'filtering_charts_table (charteditor)',
41
+ params: {
42
+ Year: '',
43
+ Country: '',
44
+ _ap_Country: 'Belgium',
45
+ },
46
+ chartId: '245z37u4ylvet',
47
+ isDefault: true,
48
+ autoHeight: false,
49
+ },
50
+ ],
51
+ hideTitle: false,
52
+ },
53
+ type: 'widget',
54
+ namespace: 'default',
55
+ },
56
+ {
57
+ id: 'L5',
58
+ data: {
59
+ title: 'Country',
60
+ source: {
61
+ datasetId: 'gyrnhj945gum9',
62
+ fieldType: 'string',
63
+ showTitle: true,
64
+ innerTitle: 'Inner title',
65
+ elementType: 'select',
66
+ datasetFieldId: 'd079',
67
+ showInnerTitle: false,
68
+ datasetFieldType: 'DIMENSION',
69
+ },
70
+ sourceType: 'dataset',
71
+ },
72
+ type: 'control',
73
+ defaults: {
74
+ d079: ['Italy', 'France'],
75
+ },
76
+ namespace: 'default',
77
+ },
78
+ {
79
+ id: 'C8',
80
+ data: {
81
+ title: 'Client',
82
+ source: {
83
+ datasetId: 'rfvnhj345gugf',
84
+ fieldType: 'string',
85
+ showTitle: true,
86
+ innerTitle: 'Inner title',
87
+ elementType: 'select',
88
+ datasetFieldId: 'g129',
89
+ showInnerTitle: false,
90
+ datasetFieldType: 'DIMENSION',
91
+ },
92
+ sourceType: 'dataset',
93
+ },
94
+ type: 'control',
95
+ defaults: {
96
+ g129: ['Alex'],
97
+ },
98
+ namespace: 'default',
99
+ },
100
+ {
101
+ id: 'lko',
102
+ data: {
103
+ title: 'External control',
104
+ source: {
105
+ chartId: 'deuaclrdakbc4',
106
+ },
107
+ autoHeight: true,
108
+ sourceType: 'external',
109
+ },
110
+ type: 'control',
111
+ defaults: {
112
+ Name: '',
113
+ Brand: '',
114
+ Label: '',
115
+ },
116
+ namespace: 'default',
117
+ },
118
+ ],
119
+ layout: [
120
+ { h: 4, i: 'al', w: 4, x: 8, y: 0 },
121
+ { h: 16, i: 'Q8', w: 12, x: 12, y: 0 },
122
+ { h: 2, i: 'L5', w: 8, x: 0, y: 2 },
123
+ { h: 2, i: 'C8', w: 8, x: 10, y: 30 },
124
+ { h: 2, i: 'lko', w: 8, x: 0, y: 12 },
125
+ ],
126
+ aliases: {},
127
+ connections: [],
128
+ };
129
+ beforeEach(() => {
130
+ jest.spyOn(console, 'warn').mockImplementation(jest.fn());
131
+ });
132
+ describe('UpdateManager', () => {
133
+ describe('changeStateAndParams', () => {
134
+ it('control adds params to empty itemsStateAndParams', () => {
135
+ expect(UpdateManager.changeStateAndParams({
136
+ id: 'L5',
137
+ config,
138
+ itemsStateAndParams: {},
139
+ stateAndParams: {
140
+ params: {
141
+ d079: ['Russia'],
142
+ },
143
+ },
144
+ })).toEqual({
145
+ L5: {
146
+ params: {
147
+ d079: ['Russia'],
148
+ },
149
+ },
150
+ __meta__: { queue: [{ id: 'L5' }], version: 2 },
151
+ });
152
+ });
153
+ it('state changes only do not push into the queue', () => {
154
+ expect(UpdateManager.changeStateAndParams({
155
+ id: 'al',
156
+ config,
157
+ itemsStateAndParams: {
158
+ L5: {
159
+ params: {
160
+ d079: ['Russia'],
161
+ },
162
+ },
163
+ __meta__: { queue: [{ id: 'L5' }, { id: 'Unk' }], version: 2 },
164
+ },
165
+ stateAndParams: {
166
+ state: { tabId: 'Pf' },
167
+ },
168
+ })).toEqual({
169
+ L5: {
170
+ params: {
171
+ d079: ['Russia'],
172
+ },
173
+ },
174
+ al: {
175
+ state: {
176
+ tabId: 'Pf',
177
+ },
178
+ },
179
+ __meta__: { queue: [{ id: 'L5' }], version: 2 },
180
+ });
181
+ });
182
+ it('tab changes clear previous tab params', () => {
183
+ expect(UpdateManager.changeStateAndParams({
184
+ id: 'al',
185
+ config,
186
+ itemsStateAndParams: {
187
+ al: {
188
+ state: {
189
+ tabId: 'Jn',
190
+ },
191
+ params: {
192
+ Country: 'USA',
193
+ },
194
+ },
195
+ __meta__: { queue: [{ id: 'al', tabId: 'Jn' }], version: 2 },
196
+ },
197
+ stateAndParams: {
198
+ state: { tabId: 'Pf' },
199
+ },
200
+ })).toEqual({
201
+ al: {
202
+ state: {
203
+ tabId: 'Pf',
204
+ },
205
+ },
206
+ __meta__: { queue: [], version: 2 },
207
+ });
208
+ });
209
+ it('control changes rearrange position in the queue', () => {
210
+ expect(UpdateManager.changeStateAndParams({
211
+ id: 'L5',
212
+ config,
213
+ itemsStateAndParams: {
214
+ al: {
215
+ state: {
216
+ tabId: 'Jn',
217
+ },
218
+ params: {
219
+ Country: 'USA',
220
+ },
221
+ },
222
+ L5: {
223
+ params: {
224
+ d079: ['Russia'],
225
+ },
226
+ },
227
+ C8: {
228
+ params: {
229
+ g129: ['Anton'],
230
+ },
231
+ },
232
+ __meta__: {
233
+ queue: [{ id: 'L5' }, { id: 'C8' }, { id: 'al', tabId: 'Jn' }, { id: 'Unk' }],
234
+ version: 2,
235
+ },
236
+ },
237
+ stateAndParams: {
238
+ params: {
239
+ d079: ['Oman'],
240
+ },
241
+ },
242
+ })).toEqual({
243
+ al: {
244
+ state: {
245
+ tabId: 'Jn',
246
+ },
247
+ params: {
248
+ Country: 'USA',
249
+ },
250
+ },
251
+ L5: {
252
+ params: {
253
+ d079: ['Oman'],
254
+ },
255
+ },
256
+ C8: {
257
+ params: {
258
+ g129: ['Anton'],
259
+ },
260
+ },
261
+ __meta__: {
262
+ queue: [{ id: 'C8' }, { id: 'al', tabId: 'Jn' }, { id: 'L5' }],
263
+ version: 2,
264
+ },
265
+ });
266
+ });
267
+ it('control params should merge', () => {
268
+ expect(UpdateManager.changeStateAndParams({
269
+ id: 'lko',
270
+ config,
271
+ itemsStateAndParams: {
272
+ L5: {
273
+ params: {
274
+ d079: ['Russia'],
275
+ },
276
+ },
277
+ lko: {
278
+ params: {
279
+ Brand: ['Nuke'],
280
+ Label: ['pin'],
281
+ },
282
+ },
283
+ __meta__: {
284
+ queue: [{ id: 'lko' }, { id: 'L5' }],
285
+ version: 2,
286
+ },
287
+ },
288
+ stateAndParams: {
289
+ params: {
290
+ Name: ['Jack'],
291
+ Label: ['clone'],
292
+ },
293
+ },
294
+ })).toEqual({
295
+ L5: {
296
+ params: {
297
+ d079: ['Russia'],
298
+ },
299
+ },
300
+ lko: {
301
+ params: {
302
+ Brand: ['Nuke'],
303
+ Name: ['Jack'],
304
+ Label: ['clone'],
305
+ },
306
+ },
307
+ __meta__: { queue: [{ id: 'L5' }, { id: 'lko' }], version: 2 },
308
+ });
309
+ });
310
+ it('control cannot set params not from defaults', () => {
311
+ expect(UpdateManager.changeStateAndParams({
312
+ id: 'lko',
313
+ config,
314
+ itemsStateAndParams: {},
315
+ stateAndParams: {
316
+ params: {
317
+ Brand: ['Nuke'],
318
+ UnknownParam: ['Value'],
319
+ },
320
+ },
321
+ })).toEqual({
322
+ lko: {
323
+ params: {
324
+ Brand: ['Nuke'],
325
+ },
326
+ },
327
+ __meta__: { queue: [{ id: 'lko' }], version: 2 },
328
+ });
329
+ });
330
+ it('filtering_charts_table can set action params not from defaults', () => {
331
+ expect(UpdateManager.changeStateAndParams({
332
+ id: 'Q8',
333
+ config,
334
+ itemsStateAndParams: {},
335
+ stateAndParams: {
336
+ params: {
337
+ _ap_Country: 'Germany',
338
+ _ap_Brand: 'Pule',
339
+ _ap_Year: '2020',
340
+ },
341
+ state: {
342
+ tabId: 'K0',
343
+ },
344
+ },
345
+ })).toEqual({
346
+ Q8: {
347
+ state: {
348
+ tabId: 'K0',
349
+ },
350
+ params: {
351
+ _ap_Country: 'Germany',
352
+ _ap_Brand: 'Pule',
353
+ _ap_Year: '2020',
354
+ },
355
+ },
356
+ __meta__: { queue: [{ id: 'Q8', tabId: 'K0' }], version: 2 },
357
+ });
358
+ });
359
+ it('the item is correctly removed from the queue', () => {
360
+ expect(UpdateManager.changeStateAndParams({
361
+ id: 'Q8',
362
+ config,
363
+ itemsStateAndParams: {
364
+ L5: {
365
+ params: {
366
+ d079: ['Russia'],
367
+ },
368
+ },
369
+ Q8: {
370
+ state: {
371
+ tabId: 'K0',
372
+ },
373
+ params: {
374
+ _ap_Country: 'Germany',
375
+ _ap_Year: '2020',
376
+ },
377
+ },
378
+ Unk: {
379
+ params: {
380
+ Country: 'Unknown',
381
+ },
382
+ },
383
+ __meta__: {
384
+ queue: [{ id: 'Q8', tabId: 'K0' }, { id: 'Unk' }, { id: 'L5' }],
385
+ version: 2,
386
+ },
387
+ },
388
+ stateAndParams: {},
389
+ options: { action: 'removeItem' },
390
+ })).toEqual({
391
+ L5: {
392
+ params: {
393
+ d079: ['Russia'],
394
+ },
395
+ },
396
+ __meta__: { queue: [{ id: 'L5' }], version: 2 },
397
+ });
398
+ expect(UpdateManager.changeStateAndParams({
399
+ id: 'Q8',
400
+ config,
401
+ itemsStateAndParams: {
402
+ L5: {
403
+ params: {
404
+ d079: ['Russia'],
405
+ },
406
+ },
407
+ __meta__: {
408
+ queue: [{ id: 'L5' }],
409
+ version: 2,
410
+ },
411
+ },
412
+ stateAndParams: {},
413
+ options: { action: 'removeItem' },
414
+ })).toEqual({
415
+ L5: {
416
+ params: {
417
+ d079: ['Russia'],
418
+ },
419
+ },
420
+ __meta__: { queue: [{ id: 'L5' }], version: 2 },
421
+ });
422
+ });
423
+ it('the item is correctly setParams using additional options', () => {
424
+ expect(UpdateManager.changeStateAndParams({
425
+ id: 'Q8',
426
+ config,
427
+ itemsStateAndParams: {
428
+ L5: {
429
+ params: {
430
+ d079: ['Russia'],
431
+ },
432
+ },
433
+ Q8: {
434
+ state: {
435
+ tabId: 'K0',
436
+ },
437
+ params: {
438
+ _ap_Country: 'Germany',
439
+ _ap_Year: '2020',
440
+ },
441
+ },
442
+ __meta__: {
443
+ queue: [{ id: 'Q8', tabId: 'K0' }, { id: 'L5' }],
444
+ version: 2,
445
+ },
446
+ },
447
+ stateAndParams: {
448
+ state: {
449
+ tabId: 'K0',
450
+ },
451
+ params: {
452
+ _ap_Country: 'Russia',
453
+ },
454
+ },
455
+ options: { action: 'setParams' },
456
+ })).toEqual({
457
+ L5: {
458
+ params: {
459
+ d079: ['Russia'],
460
+ },
461
+ },
462
+ Q8: {
463
+ state: {
464
+ tabId: 'K0',
465
+ },
466
+ params: {
467
+ _ap_Country: 'Russia',
468
+ },
469
+ },
470
+ __meta__: { queue: [{ id: 'L5' }, { id: 'Q8', tabId: 'K0' }], version: 2 },
471
+ });
472
+ });
473
+ });
474
+ });
@@ -1,4 +1,4 @@
1
- import { Config, ConfigItem, ItemsStateAndParams, ItemStateAndParams } from '../shared';
1
+ import { Config, ConfigItem, ItemsStateAndParams, ItemStateAndParams, ItemStateAndParamsChangeOptions } from '../shared';
2
2
  import { AddConfigItem, WidgetLayout, SetItemOptions } from '../typings';
3
3
  import { RegisterManagerPluginLayout } from './register-manager';
4
4
  interface RemoveItemArg {
@@ -11,6 +11,7 @@ interface ChangeStateAndParamsArg {
11
11
  config: Config;
12
12
  itemsStateAndParams: ItemsStateAndParams;
13
13
  stateAndParams: ItemStateAndParams;
14
+ options?: ItemStateAndParamsChangeOptions;
14
15
  }
15
16
  export declare class UpdateManager {
16
17
  static addItem({ item, namespace, layout, config, options, }: {
@@ -34,6 +35,6 @@ export declare class UpdateManager {
34
35
  layout: WidgetLayout[];
35
36
  config: Config;
36
37
  }): Config;
37
- static changeStateAndParams({ id: initiatorId, config, stateAndParams, itemsStateAndParams, }: ChangeStateAndParamsArg): ItemsStateAndParams;
38
+ static changeStateAndParams({ id: initiatorId, config, stateAndParams, itemsStateAndParams, options, }: ChangeStateAndParamsArg): ItemsStateAndParams;
38
39
  }
39
40
  export {};