Skip to content

Commit

Permalink
[Rename] ui-actions plugin (#161)
Browse files Browse the repository at this point in the history
Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla authored and mihirsoni committed Mar 20, 2021
1 parent 2e9d038 commit 0c4b181
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
10 changes: 0 additions & 10 deletions src/plugins/ui_actions/kibana.json

This file was deleted.

10 changes: 10 additions & 0 deletions src/plugins/ui_actions/opensearch_dashboards.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "uiActions",
"version": "opensearchDashboards",
"server": false,
"ui": true,
"requiredBundles": [
"opensearchDashboardsUtils",
"opensearchDashboardsReact"
]
}
2 changes: 1 addition & 1 deletion src/plugins/ui_actions/public/actions/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { UiComponent } from 'src/plugins/kibana_utils/public';
import { UiComponent } from 'src/plugins/opensearch_dashboards_utils/public';
import { ActionType, ActionContextMapping, BaseContext } from '../types';
import { Presentable } from '../util/presentable';
import { Trigger } from '../triggers';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ui_actions/public/actions/action_internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import React from 'react';
import { Action, ActionContext as Context, ActionDefinition } from './action';
import { Presentable, PresentableGrouping } from '../util/presentable';
import { uiToReactComponent } from '../../../kibana_react/public';
import { uiToReactComponent } from '../../../opensearch_dashboards_react/public';
import { ActionType } from '../types';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { i18n } from '@kbn/i18n';
import { i18n } from '@osd/i18n';

export class IncompatibleActionError extends Error {
code = 'INCOMPATIBLE_ACTION';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import * as React from 'react';
import { EuiContextMenuPanelDescriptor, EuiContextMenuPanelItemDescriptor } from '@elastic/eui';
import _ from 'lodash';
import { i18n } from '@kbn/i18n';
import { uiToReactComponent } from '../../../kibana_react/public';
import { i18n } from '@osd/i18n';
import { uiToReactComponent } from '../../../opensearch_dashboards_react/public';
import { Action, ActionExecutionContext } from '../actions';
import { Trigger } from '../triggers';
import { BaseContext } from '../types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import { uniqBy } from 'lodash';
import { Action } from '../actions';
import { BaseContext } from '../types';
import { defer as createDefer, Defer } from '../../../kibana_utils/public';
import { defer as createDefer, Defer } from '../../../opensearch_dashboards_utils/public';
import { buildContextMenuForActions, openContextMenu } from '../context_menu';
import { Trigger } from '../triggers';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import React from 'react';
import { EuiFlexGroup, EuiFlexItem, EuiBadge, EuiFlyoutBody } from '@elastic/eui';
import { CoreStart } from 'src/core/public';
import { createAction, ActionByType } from '../../actions';
import { toMountPoint, reactToUiComponent } from '../../../../kibana_react/public';
import { toMountPoint, reactToUiComponent } from '../../../../opensearch_dashboards_react/public';
import { ActionType } from '../../types';

const ReactMenuItem: React.FC = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { i18n } from '@kbn/i18n';
import { i18n } from '@osd/i18n';
import { Trigger } from '.';

export const APPLY_FILTER_TRIGGER = 'FILTER_TRIGGER';
Expand All @@ -27,6 +27,6 @@ export const applyFilterTrigger: Trigger<'FILTER_TRIGGER'> = {
defaultMessage: 'Apply filter',
}),
description: i18n.translate('uiActions.triggers.applyFilterDescription', {
defaultMessage: 'When kibana filter is applied. Could be a single value or a range filter.',
defaultMessage: 'When OpenSearch Dashboards filter is applied. Could be a single value or a range filter.',
}),
};
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { i18n } from '@kbn/i18n';
import { i18n } from '@osd/i18n';
import { Trigger } from '.';

export const SELECT_RANGE_TRIGGER = 'SELECT_RANGE_TRIGGER';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { i18n } from '@kbn/i18n';
import { i18n } from '@osd/i18n';
import { Trigger } from '.';

export const VALUE_CLICK_TRIGGER = 'VALUE_CLICK_TRIGGER';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ui_actions/public/util/presentable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { UiComponent } from 'src/plugins/kibana_utils/public';
import { UiComponent } from 'src/plugins/opensearch_dashboards_utils/public';

/**
* Represents something that can be displayed to user in UI.
Expand Down

0 comments on commit 0c4b181

Please sign in to comment.