Skip to content

Commit 7319d6c

Browse files
elastic-renovate-prod[bot]cqliu1
authored andcommitted
Update kibana-presentation misc canvas dependencies (main) (elastic#235576)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [object-path-immutable](https://redirect.github.com/mariocasciaro/object-path-immutable) | dependencies | major | [`^3.1.1` -> `^4.1.2`](https://renovatebot.com/diffs/npm/object-path-immutable/3.1.1/4.1.2) | --- ### Release Notes <details> <summary>mariocasciaro/object-path-immutable (object-path-immutable)</summary> ### [`v4.1.2`](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/47aacb3f523eb8e25d24eeb1148212e38ab8dd92...v4.1.2) [Compare Source](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/47aacb3f523eb8e25d24eeb1148212e38ab8dd92...v4.1.2) ### [`v4.1.1`](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/e2a1dadb658fd48c1f9c6ef8aea28c2745bf9268...47aacb3f523eb8e25d24eeb1148212e38ab8dd92) [Compare Source](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/e2a1dadb658fd48c1f9c6ef8aea28c2745bf9268...47aacb3f523eb8e25d24eeb1148212e38ab8dd92) ### [`v4.1.0`](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/ef686f0f703ad01d78389dada55d9da58e707e0a...e2a1dadb658fd48c1f9c6ef8aea28c2745bf9268) [Compare Source](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/ef686f0f703ad01d78389dada55d9da58e707e0a...e2a1dadb658fd48c1f9c6ef8aea28c2745bf9268) ### [`v4.0.2`](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/069809684582dfa022a788d481edcb398a6ff2a5...ef686f0f703ad01d78389dada55d9da58e707e0a) [Compare Source](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/069809684582dfa022a788d481edcb398a6ff2a5...ef686f0f703ad01d78389dada55d9da58e707e0a) ### [`v4.0.1`](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/c22309926496725e8c7f7450d8041dc88e45c3ac...069809684582dfa022a788d481edcb398a6ff2a5) [Compare Source](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/c22309926496725e8c7f7450d8041dc88e45c3ac...069809684582dfa022a788d481edcb398a6ff2a5) ### [`v4.0.0`](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/42102eabbed95cd487b3bc5c46a6393252f58759...c22309926496725e8c7f7450d8041dc88e45c3ac) [Compare Source](https://redirect.github.com/mariocasciaro/object-path-immutable/compare/42102eabbed95cd487b3bc5c46a6393252f58759...c22309926496725e8c7f7450d8041dc88e45c3ac) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://elastic.slack.com/archives/C07AMD4CNUR) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOlByZXNlbnRhdGlvbiIsImJhY2twb3J0OmFsbC1vcGVuIiwicmVsZWFzZV9ub3RlOnNraXAiXX0=--> --------- Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> Co-authored-by: Catherine Liu <[email protected]>
1 parent a37aaf7 commit 7319d6c

File tree

13 files changed

+23
-47
lines changed

13 files changed

+23
-47
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@
13201320
"nunjucks": "^3.2.4",
13211321
"oas": "^28.1.0",
13221322
"object-hash": "^3.0.0",
1323-
"object-path-immutable": "^3.1.1",
1323+
"object-path-immutable": "^4.1.2",
13241324
"oniguruma-to-es": "^4.1.0",
13251325
"openai": "^4.72.0",
13261326
"openpgp": "5.11.3",

x-pack/platform/plugins/private/canvas/canvas_plugin_src/uis/arguments/axis_config/extended_template.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ import type { ChangeEvent } from 'react';
99
import React, { Fragment, PureComponent } from 'react';
1010
import PropTypes from 'prop-types';
1111
import { EuiSelect, EuiFormRow, EuiSpacer, EuiText } from '@elastic/eui';
12-
import immutable from 'object-path-immutable';
12+
import { set } from 'object-path-immutable';
1313
import { get } from 'lodash';
1414
import type { ExpressionAstExpression } from '../../../../types';
1515
import { ArgumentStrings } from '../../../../i18n/ui';
1616

1717
const { AxisConfig: strings } = ArgumentStrings;
1818

19-
const { set } = immutable;
20-
2119
const defaultExpression: ExpressionAstExpression = {
2220
type: 'expression',
2321
chain: [

x-pack/platform/plugins/private/canvas/public/expression_types/arg_types/container_style/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import type { ComponentType } from 'react';
99
import { withHandlers } from 'react-recompose';
10-
import immutable from 'object-path-immutable';
10+
import { set } from 'object-path-immutable';
1111
import { get } from 'lodash';
1212
import { templateFromReactComponent } from '../../../lib/template_from_react_component';
1313
import type { Arguments as SimpleArguments } from './simple_template';
@@ -16,7 +16,6 @@ import type { Arguments as ExtendedArguments } from './extended_template';
1616
import { ExtendedTemplate } from './extended_template';
1717
import { ArgTypesStrings } from '../../../../i18n';
1818

19-
const { set } = immutable;
2019
const { ContainerStyle: strings } = ArgTypesStrings;
2120

2221
interface Arguments extends SimpleArguments, ExtendedArguments {}

x-pack/platform/plugins/private/canvas/public/expression_types/arg_types/series_style/extended_template.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ import type { FunctionComponent, ChangeEvent } from 'react';
99
import React, { Fragment } from 'react';
1010
import PropTypes from 'prop-types';
1111
import { EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiSelect, EuiSpacer } from '@elastic/eui';
12-
import immutable from 'object-path-immutable';
12+
import { set, del } from 'object-path-immutable';
1313
import { get } from 'lodash';
1414
import type { ResolvedArgProps, ResolvedLabels } from '../../arg';
1515
import type { ExpressionAstExpression } from '../../../../types';
1616
import { ArgTypesStrings } from '../../../../i18n';
1717

18-
const { set, del } = immutable;
1918
const { SeriesStyle: strings } = ArgTypesStrings;
2019

2120
export interface Arguments {

x-pack/platform/plugins/private/canvas/public/expression_types/arg_types/series_style/simple_template.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ import type { FunctionComponent } from 'react';
99
import React, { Fragment } from 'react';
1010
import PropTypes from 'prop-types';
1111
import { EuiFlexGroup, EuiFlexItem, EuiLink, EuiButtonIcon, EuiText } from '@elastic/eui';
12-
import immutable from 'object-path-immutable';
12+
import { set, del } from 'object-path-immutable';
1313
import { get } from 'lodash';
1414
import type { ResolvedArgProps, ResolvedLabels } from '../../arg';
1515
import { ColorPickerPopover } from '../../../components/color_picker_popover';
1616
import { TooltipIcon, IconType } from '../../../components/tooltip_icon';
1717
import type { ExpressionAstExpression, CanvasWorkpad } from '../../../../types';
1818
import { ArgTypesStrings } from '../../../../i18n';
1919

20-
const { set, del } = immutable;
2120
const { SeriesStyle: strings } = ArgTypesStrings;
2221

2322
interface Arguments {

x-pack/platform/plugins/private/canvas/public/lib/sync_filter_expression.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
*/
77

88
import { fromExpression } from '@kbn/interpreter';
9-
import immutable from 'object-path-immutable';
9+
import { set, del } from 'object-path-immutable';
1010
import { get } from 'lodash';
1111

12-
const { set, del } = immutable;
13-
1412
export function syncFilterExpression(
1513
config: Record<string, any>,
1614
filterExpression: string,

x-pack/platform/plugins/private/canvas/public/state/actions/elements.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import { createAction } from 'redux-actions';
9-
import immutable from 'object-path-immutable';
9+
import { set, del } from 'object-path-immutable';
1010
import { get, pick, cloneDeep, without, last } from 'lodash';
1111
import { toExpression, safeElementFromExpression } from '@kbn/interpreter';
1212
import { createThunk } from '../../lib/create_thunk';
@@ -31,8 +31,6 @@ import { setFilter } from './filters';
3131

3232
const { actionsElements: strings } = ErrorStrings;
3333

34-
const { set, del } = immutable;
35-
3634
export function getSiblingContext(state, elementId, checkIndex, path = ['ast.chain']) {
3735
const prevContextPath = [elementId, 'expressionContext', ...path, checkIndex];
3836
const prevContextValue = getResolvedArgsValue(state, prevContextPath);

x-pack/platform/plugins/private/canvas/public/state/reducers/assets.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
*/
77

88
import { handleActions, combineActions } from 'redux-actions';
9-
import immutable from 'object-path-immutable';
9+
import { set, assign, del } from 'object-path-immutable';
1010
import { get } from 'lodash';
1111
import { setAssetValue, removeAsset, setAssets, resetAssets, setAsset } from '../actions/assets';
1212

13-
const { set, assign, del } = immutable;
14-
1513
export const assetsReducer = handleActions(
1614
{
1715
[setAssetValue]: (assetState, { payload }) => {

x-pack/platform/plugins/private/canvas/public/state/reducers/elements.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
*/
77

88
import { handleActions } from 'redux-actions';
9-
import immutable from 'object-path-immutable';
9+
import { assign, push, del, set } from 'object-path-immutable';
1010
import { get } from 'lodash';
1111

12-
const { assign, push, del, set } = immutable;
13-
1412
const getLocation = (type) => (type === 'group' ? 'groups' : 'elements');
1513
const firstOccurrence = (element, index, array) => array.indexOf(element) === index;
1614

x-pack/platform/plugins/private/canvas/public/state/reducers/pages.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66
*/
77

88
import { handleActions } from 'redux-actions';
9-
import immutable from 'object-path-immutable';
9+
import { set, del, insert } from 'object-path-immutable';
1010
import { cloneSubgraphs } from '../../lib/clone_subgraphs';
1111
import { getId } from '../../lib/get_id';
1212
import { getDefaultPage } from '../defaults';
1313
import * as actions from '../actions/pages';
1414
import { getSelectedPageIndex } from '../selectors/workpad';
1515
import { isGroupId } from '../../lib/workpad';
1616

17-
const { set, del, insert } = immutable;
18-
1917
const setPageIndex = (workpadState, index) =>
2018
index < 0 || !workpadState.pages[index] || getSelectedPageIndex(workpadState) === index
2119
? workpadState

0 commit comments

Comments
 (0)