@backstage/plugin-signals-react 0.0.2 → 0.0.3-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 +9 -0
- package/README.md +2 -2
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -38,9 +38,9 @@ You can also use the signal API directly. This allows more fine-grained control
|
|
|
38
38
|
subscriptions.
|
|
39
39
|
|
|
40
40
|
```ts
|
|
41
|
-
import {
|
|
41
|
+
import { signalApiRef } from '@backstage/plugin-signals-react';
|
|
42
42
|
|
|
43
|
-
const signals = useApi(
|
|
43
|
+
const signals = useApi(signalApiRef);
|
|
44
44
|
const { unsubscribe } = signals.subscribe(
|
|
45
45
|
'myplugin:channel',
|
|
46
46
|
(message: JsonObject) => {
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-signals-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-next.0",
|
|
4
4
|
"description": "Web library for the signals plugin",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library"
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@material-ui/core": "^4.12.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@backstage/cli": "^0.26.
|
|
41
|
-
"@backstage/test-utils": "^1.5.
|
|
40
|
+
"@backstage/cli": "^0.26.3-next.1",
|
|
41
|
+
"@backstage/test-utils": "^1.5.4-next.0",
|
|
42
42
|
"@testing-library/jest-dom": "^6.0.0",
|
|
43
43
|
"@testing-library/react": "^14.0.0"
|
|
44
44
|
},
|