Skip to content

Commit

Permalink
Removed public export of expression_function from a plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznietsov committed Jul 23, 2021
1 parent b40fd94 commit 20a1334
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions src/plugins/expression_image/__fixtures__/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

export { imageFunction } from '../common/expression_functions';
1 change: 0 additions & 1 deletion src/plugins/expression_image/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@

export * from './constants';
export * from './types';
export * from './expression_functions';
2 changes: 1 addition & 1 deletion src/plugins/expression_image/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import { CoreSetup, CoreStart, Plugin } from '../../../core/public';
import { ExpressionsServerStart, ExpressionsServerSetup } from '../../expressions/server';
import { imageFunction } from '../common';
import { imageFunction } from '../common/expression_functions';

interface SetupDeps {
expressions: ExpressionsServerSetup;
Expand Down
1 change: 1 addition & 0 deletions src/plugins/expression_image/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"common/**/*",
"public/**/*",
"server/**/*",
"__fixtures__/**/*",
],
"references": [
{ "path": "../../core/tsconfig.json" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { storiesOf } from '@storybook/react';
import React from 'react';
import { ExampleContext } from '../../test/context_example';

import { imageFunction } from '../../../../../../src/plugins/expression_image/common';
import { imageFunction } from '../../../../../../src/plugins/expression_image/__fixtures__';
import { sharedWorkpads } from '../../test';
import { RenderedElement, RenderedElementComponent } from '../rendered_element';

Expand Down

0 comments on commit 20a1334

Please sign in to comment.