@red-hat-developer-hub/backstage-plugin-homepage-common 0.1.1 → 0.2.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 +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/permissions.cjs.js.map +1 -1
- package/dist/permissions.esm.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @red-hat-developer-hub/backstage-plugin-homepage-common
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1aa10e7: Backsatge version bump to v1.51.0
|
|
8
|
+
|
|
9
|
+
## 0.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- faf1cbd: Make default widgets response optional when no widgets are configured, so that no widget is shown when no conditional widget can be shown.
|
|
14
|
+
|
|
3
15
|
## 0.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 createPermission,\n ResourcePermission,\n} from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET = 'homepage-default-widget';\n\n/**\n * Convenience type for homepage default widget permissions\n * @public\n */\nexport type HomepageDefaultWidgetPermission = ResourcePermission<\n typeof RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET\n>;\n\n/**\n * This permission is used to read the homepage default widgets endpoint\n * @public\n */\nexport const homepageDefaultWidgetsReadPermission = createPermission({\n name: 'homepage.default-widgets.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET,\n});\n\n/**\n * @public\n */\nexport const homepagePermissions = [homepageDefaultWidgetsReadPermission];\n"],"names":["createPermission"],"mappings":";;;;AAuBO,MAAM,
|
|
1
|
+
{"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 createPermission,\n ResourcePermission,\n} from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET = 'homepage-default-widget';\n\n/**\n * Convenience type for homepage default widget permissions\n * @public\n */\nexport type HomepageDefaultWidgetPermission = ResourcePermission<\n typeof RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET\n>;\n\n/**\n * This permission is used to read the homepage default widgets endpoint\n * @public\n */\nexport const homepageDefaultWidgetsReadPermission = createPermission({\n name: 'homepage.default-widgets.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET,\n});\n\n/**\n * @public\n */\nexport const homepagePermissions = [homepageDefaultWidgetsReadPermission];\n"],"names":["createPermission"],"mappings":";;;;AAuBO,MAAM,qCAAA,GAAwC;AAc9C,MAAM,uCAAuCA,uCAAA,CAAiB;AAAA,EACnE,IAAA,EAAM,+BAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,YAAA,EAAc;AAChB,CAAC;AAKM,MAAM,mBAAA,GAAsB,CAAC,oCAAoC;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 createPermission,\n ResourcePermission,\n} from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET = 'homepage-default-widget';\n\n/**\n * Convenience type for homepage default widget permissions\n * @public\n */\nexport type HomepageDefaultWidgetPermission = ResourcePermission<\n typeof RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET\n>;\n\n/**\n * This permission is used to read the homepage default widgets endpoint\n * @public\n */\nexport const homepageDefaultWidgetsReadPermission = createPermission({\n name: 'homepage.default-widgets.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET,\n});\n\n/**\n * @public\n */\nexport const homepagePermissions = [homepageDefaultWidgetsReadPermission];\n"],"names":[],"mappings":";;AAuBO,MAAM,
|
|
1
|
+
{"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 createPermission,\n ResourcePermission,\n} from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET = 'homepage-default-widget';\n\n/**\n * Convenience type for homepage default widget permissions\n * @public\n */\nexport type HomepageDefaultWidgetPermission = ResourcePermission<\n typeof RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET\n>;\n\n/**\n * This permission is used to read the homepage default widgets endpoint\n * @public\n */\nexport const homepageDefaultWidgetsReadPermission = createPermission({\n name: 'homepage.default-widgets.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_HOMEPAGE_DEFAULT_WIDGET,\n});\n\n/**\n * @public\n */\nexport const homepagePermissions = [homepageDefaultWidgetsReadPermission];\n"],"names":[],"mappings":";;AAuBO,MAAM,qCAAA,GAAwC;AAc9C,MAAM,uCAAuC,gBAAA,CAAiB;AAAA,EACnE,IAAA,EAAM,+BAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,YAAA,EAAc;AAChB,CAAC;AAKM,MAAM,mBAAA,GAAsB,CAAC,oCAAoC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@red-hat-developer-hub/backstage-plugin-homepage-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Common functionalities for the homepage plugin",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"postpack": "backstage-cli package postpack"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@backstage/plugin-permission-common": "^0.9.
|
|
38
|
+
"@backstage/plugin-permission-common": "^0.9.9"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@backstage/cli": "^0.36.
|
|
41
|
+
"@backstage/cli": "^0.36.2"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist"
|