@backstage/plugin-signals 0.0.9 → 0.0.10-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 +29 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +1 -1
- package/dist/plugin.esm.js +10 -2
- package/dist/plugin.esm.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @backstage/plugin-signals
|
|
2
2
|
|
|
3
|
+
## 0.0.10-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5add8e1: Added a `SignalsDisplay` extension to allows the signals plugin to be installed in an app as follows:
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
export default app.createRoot(
|
|
11
|
+
<>
|
|
12
|
+
<AlertDisplay transientTimeoutMs={2500} />
|
|
13
|
+
<OAuthRequestDialog />
|
|
14
|
+
<SignalsDisplay />
|
|
15
|
+
<AppRouter>
|
|
16
|
+
<VisitListener />
|
|
17
|
+
<Root>{routes}</Root>
|
|
18
|
+
</AppRouter>
|
|
19
|
+
</>,
|
|
20
|
+
);
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
With this in place you can remove the explicit installation via the `plugins` option for `createApp`.
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
- @backstage/plugin-signals-react@0.0.5-next.0
|
|
27
|
+
- @backstage/core-components@0.14.10
|
|
28
|
+
- @backstage/core-plugin-api@1.9.3
|
|
29
|
+
- @backstage/theme@0.5.6
|
|
30
|
+
- @backstage/types@1.1.1
|
|
31
|
+
|
|
3
32
|
## 0.0.9
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { JsonObject } from '@backstage/types';
|
|
|
5
5
|
|
|
6
6
|
/** @public */
|
|
7
7
|
declare const signalsPlugin: _backstage_core_plugin_api.BackstagePlugin<{}, {}>;
|
|
8
|
+
/** @public */
|
|
9
|
+
declare const SignalsDisplay: () => null;
|
|
8
10
|
|
|
9
11
|
/** @public */
|
|
10
12
|
declare class SignalClient implements SignalApi {
|
|
@@ -32,4 +34,4 @@ declare class SignalClient implements SignalApi {
|
|
|
32
34
|
private reconnect;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
export { SignalClient, signalsPlugin };
|
|
37
|
+
export { SignalClient, SignalsDisplay, signalsPlugin };
|
package/dist/index.esm.js
CHANGED
package/dist/plugin.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createPlugin, createApiFactory, identityApiRef, discoveryApiRef } from '@backstage/core-plugin-api';
|
|
1
|
+
import { createPlugin, createApiFactory, identityApiRef, discoveryApiRef, createComponentExtension } from '@backstage/core-plugin-api';
|
|
2
2
|
import { signalApiRef } from '@backstage/plugin-signals-react';
|
|
3
3
|
import { SignalClient } from './api/SignalClient.esm.js';
|
|
4
4
|
|
|
@@ -20,6 +20,14 @@ const signalsPlugin = createPlugin({
|
|
|
20
20
|
})
|
|
21
21
|
]
|
|
22
22
|
});
|
|
23
|
+
const SignalsDisplay = signalsPlugin.provide(
|
|
24
|
+
createComponentExtension({
|
|
25
|
+
component: {
|
|
26
|
+
// No-op for now, this is just a placeholder to avoid the need for an explicit plugin installation
|
|
27
|
+
sync: () => null
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
);
|
|
23
31
|
|
|
24
|
-
export { signalsPlugin };
|
|
32
|
+
export { SignalsDisplay, signalsPlugin };
|
|
25
33
|
//# sourceMappingURL=plugin.esm.js.map
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2023 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 */\nimport {\n createApiFactory,\n createPlugin,\n discoveryApiRef,\n identityApiRef,\n} from '@backstage/core-plugin-api';\nimport { signalApiRef } from '@backstage/plugin-signals-react';\nimport { SignalClient } from './api/SignalClient';\n\n/** @public */\nexport const signalsPlugin = createPlugin({\n id: 'signals',\n apis: [\n createApiFactory({\n api: signalApiRef,\n deps: {\n identity: identityApiRef,\n discoveryApi: discoveryApiRef,\n },\n factory: ({ identity, discoveryApi }) => {\n return SignalClient.create({\n identity,\n discoveryApi,\n });\n },\n }),\n ],\n});\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2023 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 */\nimport {\n createApiFactory,\n createComponentExtension,\n createPlugin,\n discoveryApiRef,\n identityApiRef,\n} from '@backstage/core-plugin-api';\nimport { signalApiRef } from '@backstage/plugin-signals-react';\nimport { SignalClient } from './api/SignalClient';\n\n/** @public */\nexport const signalsPlugin = createPlugin({\n id: 'signals',\n apis: [\n createApiFactory({\n api: signalApiRef,\n deps: {\n identity: identityApiRef,\n discoveryApi: discoveryApiRef,\n },\n factory: ({ identity, discoveryApi }) => {\n return SignalClient.create({\n identity,\n discoveryApi,\n });\n },\n }),\n ],\n});\n\n/** @public */\nexport const SignalsDisplay = signalsPlugin.provide(\n createComponentExtension({\n component: {\n // No-op for now, this is just a placeholder to avoid the need for an explicit plugin installation\n sync: () => null,\n },\n }),\n);\n"],"names":[],"mappings":";;;;AA0BO,MAAM,gBAAgB,YAAa,CAAA;AAAA,EACxC,EAAI,EAAA,SAAA;AAAA,EACJ,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,YAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,QAAU,EAAA,cAAA;AAAA,QACV,YAAc,EAAA,eAAA;AAAA,OAChB;AAAA,MACA,OAAS,EAAA,CAAC,EAAE,QAAA,EAAU,cAAmB,KAAA;AACvC,QAAA,OAAO,aAAa,MAAO,CAAA;AAAA,UACzB,QAAA;AAAA,UACA,YAAA;AAAA,SACD,CAAA,CAAA;AAAA,OACH;AAAA,KACD,CAAA;AAAA,GACH;AACF,CAAC,EAAA;AAGM,MAAM,iBAAiB,aAAc,CAAA,OAAA;AAAA,EAC1C,wBAAyB,CAAA;AAAA,IACvB,SAAW,EAAA;AAAA;AAAA,MAET,MAAM,MAAM,IAAA;AAAA,KACd;AAAA,GACD,CAAA;AACH;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-signals",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10-next.0",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "signals",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@backstage/core-components": "^0.14.10",
|
|
42
42
|
"@backstage/core-plugin-api": "^1.9.3",
|
|
43
|
-
"@backstage/plugin-signals-react": "^0.0.
|
|
43
|
+
"@backstage/plugin-signals-react": "^0.0.5-next.0",
|
|
44
44
|
"@backstage/theme": "^0.5.6",
|
|
45
45
|
"@backstage/types": "^1.1.1",
|
|
46
46
|
"@material-ui/core": "^4.12.4",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"uuid": "^9.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@backstage/cli": "^0.27.0",
|
|
53
|
+
"@backstage/cli": "^0.27.1-next.0",
|
|
54
54
|
"@backstage/core-app-api": "^1.14.2",
|
|
55
|
-
"@backstage/dev-utils": "^1.0.
|
|
56
|
-
"@backstage/test-utils": "^1.
|
|
55
|
+
"@backstage/dev-utils": "^1.0.38-next.0",
|
|
56
|
+
"@backstage/test-utils": "^1.6.0-next.0",
|
|
57
57
|
"@testing-library/jest-dom": "^6.0.0",
|
|
58
58
|
"@testing-library/react": "^15.0.0",
|
|
59
59
|
"@testing-library/user-event": "^14.0.0",
|