@backstage/plugin-notifications 0.5.6-next.1 → 0.5.6
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,39 @@
|
|
|
1
1
|
# @backstage/plugin-notifications
|
|
2
2
|
|
|
3
|
+
## 0.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 18c64e9: Added the `info.packageJson` option to the plugin instance for the new frontend system.
|
|
8
|
+
- b00c160: Remove React import form notification and scaffolder plugin
|
|
9
|
+
- 1fb5f06: Adds ability for user to turn on/off notifications for specific topics within an origin.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @backstage/core-components@0.17.3
|
|
12
|
+
- @backstage/core-plugin-api@1.10.8
|
|
13
|
+
- @backstage/plugin-notifications-common@0.0.9
|
|
14
|
+
- @backstage/frontend-plugin-api@0.10.3
|
|
15
|
+
- @backstage/core-compat-api@0.4.3
|
|
16
|
+
- @backstage/errors@1.2.7
|
|
17
|
+
- @backstage/theme@0.6.6
|
|
18
|
+
- @backstage/types@1.2.1
|
|
19
|
+
- @backstage/plugin-signals-react@0.0.14
|
|
20
|
+
|
|
21
|
+
## 0.5.6-next.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- b00c160: Remove React import form notification and scaffolder plugin
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- @backstage/core-components@0.17.3-next.0
|
|
28
|
+
- @backstage/frontend-plugin-api@0.10.3-next.1
|
|
29
|
+
- @backstage/core-compat-api@0.4.3-next.2
|
|
30
|
+
- @backstage/core-plugin-api@1.10.7
|
|
31
|
+
- @backstage/errors@1.2.7
|
|
32
|
+
- @backstage/theme@0.6.6
|
|
33
|
+
- @backstage/types@1.2.1
|
|
34
|
+
- @backstage/plugin-notifications-common@0.0.9-next.0
|
|
35
|
+
- @backstage/plugin-signals-react@0.0.13
|
|
36
|
+
|
|
3
37
|
## 0.5.6-next.1
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OriginRow.esm.js","sources":["../../../src/components/UserNotificationSettingsCard/OriginRow.tsx"],"sourcesContent":["/*\n * Copyright 2024 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
|
|
1
|
+
{"version":3,"file":"OriginRow.esm.js","sources":["../../../src/components/UserNotificationSettingsCard/OriginRow.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 {\n ChannelSetting,\n isNotificationsEnabledFor,\n NotificationSettings,\n OriginSetting,\n} from '@backstage/plugin-notifications-common';\nimport IconButton from '@material-ui/core/IconButton';\nimport Switch from '@material-ui/core/Switch';\nimport TableRow from '@material-ui/core/TableRow';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown';\nimport KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp';\nimport { NoBorderTableCell } from './NoBorderTableCell';\nimport { useNotificationFormat } from './UserNotificationSettingsCard';\n\nexport const OriginRow = (props: {\n channel: ChannelSetting;\n origin: OriginSetting;\n settings: NotificationSettings;\n handleChange: (\n channel: string,\n origin: string,\n topic: string | null,\n enabled: boolean,\n ) => void;\n open: boolean;\n handleRowToggle: (originId: string) => void;\n}) => {\n const { channel, origin, settings, handleChange, open, handleRowToggle } =\n props;\n const { formatOriginName } = useNotificationFormat();\n return (\n <TableRow>\n <NoBorderTableCell>\n {origin.topics && origin.topics.length > 0 && (\n <Tooltip\n title={`Show Topics for the ${formatOriginName(origin.id)} origin`}\n >\n <IconButton\n aria-label=\"expand row\"\n size=\"small\"\n onClick={() => handleRowToggle(origin.id)}\n >\n {open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />}\n </IconButton>\n </Tooltip>\n )}\n </NoBorderTableCell>\n <NoBorderTableCell>{formatOriginName(origin.id)}</NoBorderTableCell>\n <NoBorderTableCell>all</NoBorderTableCell>\n {settings.channels.map(ch => (\n <NoBorderTableCell key={ch.id} align=\"center\">\n <Tooltip\n title={`Enable or disable ${channel.id.toLocaleLowerCase(\n 'en-US',\n )} notifications from ${formatOriginName(origin.id)}`}\n >\n <Switch\n checked={isNotificationsEnabledFor(\n settings,\n ch.id,\n origin.id,\n null,\n )}\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => {\n handleChange(ch.id, origin.id, null, event.target.checked);\n }}\n />\n </Tooltip>\n </NoBorderTableCell>\n ))}\n </TableRow>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;AA+Ba,MAAA,SAAA,GAAY,CAAC,KAYpB,KAAA;AACJ,EAAA,MAAM,EAAE,OAAS,EAAA,MAAA,EAAQ,UAAU,YAAc,EAAA,IAAA,EAAM,iBACrD,GAAA,KAAA;AACF,EAAM,MAAA,EAAE,gBAAiB,EAAA,GAAI,qBAAsB,EAAA;AACnD,EAAA,4BACG,QACC,EAAA,EAAA,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,qBACE,QAAO,EAAA,MAAA,CAAA,MAAA,IAAU,MAAO,CAAA,MAAA,CAAO,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a,GAAG,EAAI,EAAA,MAAA,CAAO,IAAI,IAAM,EAAA,KAAA,CAAM,OAAO,OAAO,CAAA;AAAA;AAC3D;AAAA;AACF;AAAA,KACF,EAAA,EAjBsB,EAAG,CAAA,EAkB3B,CACD;AAAA,GACH,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopicRow.esm.js","sources":["../../../src/components/UserNotificationSettingsCard/TopicRow.tsx"],"sourcesContent":["/*\n * Copyright 2024 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
|
|
1
|
+
{"version":3,"file":"TopicRow.esm.js","sources":["../../../src/components/UserNotificationSettingsCard/TopicRow.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 {\n isNotificationsEnabledFor,\n NotificationSettings,\n OriginSetting,\n TopicSetting,\n} from '@backstage/plugin-notifications-common';\nimport TableRow from '@material-ui/core/TableRow';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport Switch from '@material-ui/core/Switch';\nimport { withStyles } from '@material-ui/core/styles';\nimport { NoBorderTableCell } from './NoBorderTableCell';\nimport { useNotificationFormat } from './UserNotificationSettingsCard';\n\nconst TopicTableRow = withStyles({\n root: {\n paddingLeft: '4px',\n },\n})(TableRow);\n\nexport const TopicRow = (props: {\n topic: TopicSetting;\n origin: OriginSetting;\n settings: NotificationSettings;\n handleChange: (\n channel: string,\n origin: string,\n topic: string | null,\n enabled: boolean,\n ) => void;\n}) => {\n const { topic, origin, settings, handleChange } = props;\n const { formatOriginName, formatTopicName } = useNotificationFormat();\n return (\n <TopicTableRow>\n <NoBorderTableCell />\n <NoBorderTableCell />\n <NoBorderTableCell>{formatTopicName(topic.id)}</NoBorderTableCell>\n {settings.channels.map(ch => (\n <NoBorderTableCell key={`${ch.id}-${topic}`} align=\"center\">\n <Tooltip\n title={`Enable or disable ${ch.id.toLocaleLowerCase(\n 'en-US',\n )} notifications for the ${formatTopicName(\n topic.id,\n )} topic from ${formatOriginName(origin.id)}`}\n >\n <Switch\n checked={isNotificationsEnabledFor(\n settings,\n ch.id,\n origin.id,\n topic.id,\n )}\n onChange={(event: React.ChangeEvent<HTMLInputElement>) => {\n handleChange(ch.id, origin.id, topic.id, event.target.checked);\n }}\n />\n </Tooltip>\n </NoBorderTableCell>\n ))}\n </TopicTableRow>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AA6BA,MAAM,gBAAgB,UAAW,CAAA;AAAA,EAC/B,IAAM,EAAA;AAAA,IACJ,WAAa,EAAA;AAAA;AAEjB,CAAC,EAAE,QAAQ,CAAA;AAEE,MAAA,QAAA,GAAW,CAAC,KAUnB,KAAA;AACJ,EAAA,MAAM,EAAE,KAAA,EAAO,MAAQ,EAAA,QAAA,EAAU,cAAiB,GAAA,KAAA;AAClD,EAAA,MAAM,EAAE,gBAAA,EAAkB,eAAgB,EAAA,GAAI,qBAAsB,EAAA;AACpE,EAAA,4BACG,aACC,EAAA,EAAA,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,iBAAkB,EAAA,EAAA,CAAA;AAAA,wBAClB,iBAAkB,EAAA,EAAA,CAAA;AAAA,oBAClB,GAAA,CAAA,iBAAA,EAAA,EAAmB,QAAgB,EAAA,eAAA,CAAA,KAAA,CAAM,EAAE,CAAE,EAAA,CAAA;AAAA,IAC7C,SAAS,QAAS,CAAA,GAAA,CAAI,wBACpB,GAAA,CAAA,iBAAA,EAAA,EAA4C,OAAM,QACjD,EAAA,QAAA,kBAAA,GAAA;AAAA,MAAC,OAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO,CAAqB,kBAAA,EAAA,EAAA,CAAG,EAAG,CAAA,iBAAA;AAAA,UAChC;AAAA,SACD,CAA0B,uBAAA,EAAA,eAAA;AAAA,UACzB,KAAM,CAAA;AAAA,SACP,CAAA,YAAA,EAAe,gBAAiB,CAAA,MAAA,CAAO,EAAE,CAAC,CAAA,CAAA;AAAA,QAE3C,QAAA,kBAAA,GAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YACC,OAAS,EAAA,yBAAA;AAAA,cACP,QAAA;AAAA,cACA,EAAG,CAAA,EAAA;AAAA,cACH,MAAO,CAAA,EAAA;AAAA,cACP,KAAM,CAAA;AAAA,aACR;AAAA,YACA,QAAA,EAAU,CAAC,KAA+C,KAAA;AACxD,cAAa,YAAA,CAAA,EAAA,CAAG,IAAI,MAAO,CAAA,EAAA,EAAI,MAAM,EAAI,EAAA,KAAA,CAAM,OAAO,OAAO,CAAA;AAAA;AAC/D;AAAA;AACF;AAAA,SAlBoB,CAAG,EAAA,EAAA,CAAG,EAAE,CAAI,CAAA,EAAA,KAAK,EAoBzC,CACD;AAAA,GACH,EAAA,CAAA;AAEJ;;;;"}
|
package/dist/package.json.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-notifications",
|
|
3
|
-
"version": "0.5.6
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "notifications",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"test": "backstage-cli package test"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@backstage/core-compat-api": "0.4.3
|
|
67
|
-
"@backstage/core-components": "0.17.
|
|
68
|
-
"@backstage/core-plugin-api": "1.10.
|
|
69
|
-
"@backstage/errors": "1.2.7",
|
|
70
|
-
"@backstage/frontend-plugin-api": "0.10.3
|
|
71
|
-
"@backstage/plugin-notifications-common": "0.0.9
|
|
72
|
-
"@backstage/plugin-signals-react": "0.0.
|
|
73
|
-
"@backstage/theme": "0.6.6",
|
|
74
|
-
"@backstage/types": "1.2.1",
|
|
66
|
+
"@backstage/core-compat-api": "^0.4.3",
|
|
67
|
+
"@backstage/core-components": "^0.17.3",
|
|
68
|
+
"@backstage/core-plugin-api": "^1.10.8",
|
|
69
|
+
"@backstage/errors": "^1.2.7",
|
|
70
|
+
"@backstage/frontend-plugin-api": "^0.10.3",
|
|
71
|
+
"@backstage/plugin-notifications-common": "^0.0.9",
|
|
72
|
+
"@backstage/plugin-signals-react": "^0.0.14",
|
|
73
|
+
"@backstage/theme": "^0.6.6",
|
|
74
|
+
"@backstage/types": "^1.2.1",
|
|
75
75
|
"@material-ui/core": "^4.9.13",
|
|
76
76
|
"@material-ui/icons": "^4.9.1",
|
|
77
77
|
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
"react-use": "^17.2.4"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@backstage/cli": "0.
|
|
86
|
-
"@backstage/core-app-api": "1.17.
|
|
87
|
-
"@backstage/dev-utils": "1.1.11
|
|
88
|
-
"@backstage/plugin-signals": "0.0.20
|
|
89
|
-
"@backstage/test-utils": "1.7.
|
|
85
|
+
"@backstage/cli": "^0.33.0",
|
|
86
|
+
"@backstage/core-app-api": "^1.17.1",
|
|
87
|
+
"@backstage/dev-utils": "^1.1.11",
|
|
88
|
+
"@backstage/plugin-signals": "^0.0.20",
|
|
89
|
+
"@backstage/test-utils": "^1.7.9",
|
|
90
90
|
"@testing-library/jest-dom": "^6.0.0",
|
|
91
91
|
"@testing-library/react": "^16.0.0",
|
|
92
92
|
"@testing-library/user-event": "^14.0.0",
|