core-plugin-api: remove exprerimental plugin options

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-24 18:30:11 +02:00
parent 959aa2a09f
commit 322bbcae24
16 changed files with 24 additions and 270 deletions
-7
View File
@@ -4,17 +4,10 @@
```ts
import { Observable } from '@backstage/types';
import { PropsWithChildren } from 'react';
import { default as React_2 } from 'react';
import { TranslationApi } from '@backstage/core-plugin-api/alpha';
import { TranslationRef } from '@backstage/core-plugin-api/alpha';
import { TranslationSnapshot } from '@backstage/core-plugin-api/alpha';
// @alpha
export const MockPluginProvider: ({
children,
}: PropsWithChildren<{}>) => React_2.JSX.Element;
// @alpha (undocumented)
export class MockTranslationApi implements TranslationApi {
// (undocumented)
-1
View File
@@ -14,5 +14,4 @@
* limitations under the License.
*/
export * from './testUtils/MockPluginProvider';
export * from './testUtils/apis/TranslationApi';
@@ -1,36 +0,0 @@
/*
* Copyright 2020 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, { PropsWithChildren } from 'react';
import { PluginProvider } from '@backstage/core-plugin-api/alpha';
import { createPlugin } from '@backstage/core-plugin-api';
/**
* Mock for PluginProvider to use in unit tests
* @alpha
*/
export const MockPluginProvider = ({ children }: PropsWithChildren<{}>) => {
type TestInputPluginOptions = {};
type TestPluginOptions = {};
const plugin = createPlugin({
id: 'my-plugin',
__experimentalConfigure(_: TestInputPluginOptions): TestPluginOptions {
return {};
},
});
return <PluginProvider plugin={plugin}>{children}</PluginProvider>;
};