@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 +16 -2
- package/alpha/package.json +1 -1
- package/dist/alpha.d.ts +1 -8
- package/dist/alpha.esm.js +0 -15
- package/dist/alpha.esm.js.map +1 -1
- package/package.json +5 -5
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, `
|
|
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, `
|
|
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
|
|
package/alpha/package.json
CHANGED
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 {
|
|
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
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":[
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
},
|