@backstage/test-utils 1.4.3 → 1.4.4-next.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @backstage/test-utils
2
2
 
3
+ ## 1.4.4-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 322bbcae24: Removed the alpha `MockPluginProvider` export since the plugin configuration API has been removed.
8
+ - Updated dependencies
9
+ - @backstage/core-plugin-api@1.7.0-next.0
10
+ - @backstage/config@1.1.0
11
+ - @backstage/core-app-api@1.10.1-next.0
12
+ - @backstage/plugin-permission-react@0.4.16-next.0
13
+ - @backstage/theme@0.4.2
14
+ - @backstage/types@1.1.1
15
+ - @backstage/plugin-permission-common@0.7.8
16
+
3
17
  ## 1.4.3
4
18
 
5
19
  ### Patch Changes
@@ -264,7 +278,7 @@
264
278
 
265
279
  ### Minor Changes
266
280
 
267
- - 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
281
+ - 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
268
282
 
269
283
  ### Patch Changes
270
284
 
@@ -322,7 +336,7 @@
322
336
 
323
337
  ### Minor Changes
324
338
 
325
- - 7908d72e033: Introduce a new global config parameter, `auth.enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
339
+ - 7908d72e033: Introduce a new global config parameter, `enableExperimentalRedirectFlow`. When enabled, auth will happen with an in-window redirect flow rather than through a popup window.
326
340
 
327
341
  ### Patch Changes
328
342
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/test-utils",
3
- "version": "1.4.3",
3
+ "version": "1.4.4-next.0",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
package/dist/alpha.d.ts CHANGED
@@ -1,13 +1,6 @@
1
- import React, { PropsWithChildren } from 'react';
2
1
  import { TranslationApi, TranslationRef, TranslationSnapshot } from '@backstage/core-plugin-api/alpha';
3
2
  import { Observable } from '@backstage/types';
4
3
 
5
- /**
6
- * Mock for PluginProvider to use in unit tests
7
- * @alpha
8
- */
9
- declare const MockPluginProvider: ({ children }: PropsWithChildren<{}>) => React.JSX.Element;
10
-
11
4
  /** @alpha */
12
5
  declare class MockTranslationApi implements TranslationApi {
13
6
  #private;
@@ -21,4 +14,4 @@ declare class MockTranslationApi implements TranslationApi {
21
14
  }>(): Observable<TranslationSnapshot<TMessages>>;
22
15
  }
23
16
 
24
- export { MockPluginProvider, MockTranslationApi };
17
+ export { MockTranslationApi };
package/dist/alpha.esm.js CHANGED
@@ -1,19 +1,4 @@
1
- import React from 'react';
2
- import { PluginProvider } from '@backstage/core-plugin-api/alpha';
3
- import { createPlugin } from '@backstage/core-plugin-api';
4
1
  export { M as MockTranslationApi } from './esm/MockTranslationApi-9ee7f90e.esm.js';
5
2
  import 'i18next';
6
3
  import 'zen-observable';
7
-
8
- const MockPluginProvider = ({ children }) => {
9
- const plugin = createPlugin({
10
- id: "my-plugin",
11
- __experimentalConfigure(_) {
12
- return {};
13
- }
14
- });
15
- return /* @__PURE__ */ React.createElement(PluginProvider, { plugin }, children);
16
- };
17
-
18
- export { MockPluginProvider };
19
4
  //# sourceMappingURL=alpha.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.esm.js","sources":["../src/testUtils/MockPluginProvider.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { PropsWithChildren } from 'react';\nimport { PluginProvider } from '@backstage/core-plugin-api/alpha';\nimport { createPlugin } from '@backstage/core-plugin-api';\n\n/**\n * Mock for PluginProvider to use in unit tests\n * @alpha\n */\nexport const MockPluginProvider = ({ children }: PropsWithChildren<{}>) => {\n type TestInputPluginOptions = {};\n type TestPluginOptions = {};\n const plugin = createPlugin({\n id: 'my-plugin',\n __experimentalConfigure(_: TestInputPluginOptions): TestPluginOptions {\n return {};\n },\n });\n\n return <PluginProvider plugin={plugin}>{children}</PluginProvider>;\n};\n"],"names":[],"mappings":";;;;;;;AAwBO,MAAM,kBAAqB,GAAA,CAAC,EAAE,QAAA,EAAsC,KAAA;AAGzE,EAAA,MAAM,SAAS,YAAa,CAAA;AAAA,IAC1B,EAAI,EAAA,WAAA;AAAA,IACJ,wBAAwB,CAA8C,EAAA;AACpE,MAAA,OAAO,EAAC,CAAA;AAAA,KACV;AAAA,GACD,CAAA,CAAA;AAED,EAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,cAAe,EAAA,EAAA,MAAA,EAAA,EAAiB,QAAS,CAAA,CAAA;AACnD;;;;"}
1
+ {"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/test-utils",
3
3
  "description": "Utilities to test Backstage plugins and apps.",
4
- "version": "1.4.3",
4
+ "version": "1.4.4-next.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -45,10 +45,10 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@backstage/config": "^1.1.0",
48
- "@backstage/core-app-api": "^1.10.0",
49
- "@backstage/core-plugin-api": "^1.6.0",
48
+ "@backstage/core-app-api": "^1.10.1-next.0",
49
+ "@backstage/core-plugin-api": "^1.7.0-next.0",
50
50
  "@backstage/plugin-permission-common": "^0.7.8",
51
- "@backstage/plugin-permission-react": "^0.4.15",
51
+ "@backstage/plugin-permission-react": "^0.4.16-next.0",
52
52
  "@backstage/theme": "^0.4.2",
53
53
  "@backstage/types": "^1.1.1",
54
54
  "@material-ui/core": "^4.12.2",
@@ -65,7 +65,7 @@
65
65
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@backstage/cli": "^0.22.13",
68
+ "@backstage/cli": "^0.23.0-next.0",
69
69
  "@testing-library/jest-dom": "^5.10.1",
70
70
  "msw": "^1.0.0"
71
71
  },