@backstage/plugin-org 0.6.41-next.0 → 0.6.41

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,32 @@
1
1
  # @backstage/plugin-org
2
2
 
3
+ ## 0.6.41
4
+
5
+ ### Patch Changes
6
+
7
+ - 3ab9b96: Updated card extensions for the new frontend system to use the new entity predicates, and switch the card type to `info` for the user and group profile cards.
8
+ - Updated dependencies
9
+ - @backstage/plugin-catalog-react@1.19.1
10
+ - @backstage/catalog-model@1.7.5
11
+ - @backstage/core-components@0.17.4
12
+ - @backstage/core-plugin-api@1.10.9
13
+ - @backstage/core-compat-api@0.4.4
14
+ - @backstage/frontend-plugin-api@0.10.4
15
+ - @backstage/plugin-catalog-common@1.1.5
16
+
17
+ ## 0.6.41-next.1
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+ - @backstage/catalog-model@1.7.5-next.0
23
+ - @backstage/plugin-catalog-react@1.19.1-next.1
24
+ - @backstage/core-components@0.17.4-next.1
25
+ - @backstage/core-plugin-api@1.10.9-next.0
26
+ - @backstage/plugin-catalog-common@1.1.5-next.0
27
+ - @backstage/core-compat-api@0.4.4-next.1
28
+ - @backstage/frontend-plugin-api@0.10.4-next.1
29
+
3
30
  ## 0.6.41-next.0
4
31
 
5
32
  ### Patch Changes
package/dist/alpha.esm.js CHANGED
@@ -8,7 +8,8 @@ export { orgTranslationRef } from './translation.esm.js';
8
8
  const EntityGroupProfileCard = EntityCardBlueprint.make({
9
9
  name: "group-profile",
10
10
  params: {
11
- filter: "kind:group",
11
+ type: "info",
12
+ filter: { kind: "group" },
12
13
  loader: async () => import('./components/Cards/Group/GroupProfile/GroupProfileCard.esm.js').then(
13
14
  (m) => compatWrapper(/* @__PURE__ */ jsx(m.GroupProfileCard, {}))
14
15
  )
@@ -17,7 +18,7 @@ const EntityGroupProfileCard = EntityCardBlueprint.make({
17
18
  const EntityMembersListCard = EntityCardBlueprint.make({
18
19
  name: "members-list",
19
20
  params: {
20
- filter: "kind:group",
21
+ filter: { kind: "group" },
21
22
  loader: async () => import('./components/Cards/Group/MembersList/MembersListCard.esm.js').then(
22
23
  (m) => compatWrapper(/* @__PURE__ */ jsx(m.MembersListCard, {}))
23
24
  )
@@ -26,7 +27,7 @@ const EntityMembersListCard = EntityCardBlueprint.make({
26
27
  const EntityOwnershipCard = EntityCardBlueprint.make({
27
28
  name: "ownership",
28
29
  params: {
29
- filter: "kind:group,user",
30
+ filter: { kind: { $in: ["group", "user"] } },
30
31
  loader: async () => import('./components/Cards/OwnershipCard/OwnershipCard.esm.js').then(
31
32
  (m) => compatWrapper(/* @__PURE__ */ jsx(m.OwnershipCard, {}))
32
33
  )
@@ -42,7 +43,8 @@ const EntityUserProfileCard = EntityCardBlueprint.makeWithOverrides({
42
43
  },
43
44
  factory(originalFactory, { config }) {
44
45
  return originalFactory({
45
- filter: "kind:user",
46
+ type: "info",
47
+ filter: { kind: "user" },
46
48
  loader: async () => import('./components/Cards/User/UserProfileCard/UserProfileCard.esm.js').then(
47
49
  (m) => compatWrapper(
48
50
  /* @__PURE__ */ jsx(
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"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 */\n\nimport {\n compatWrapper,\n convertLegacyRouteRefs,\n} from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport { catalogIndexRouteRef } from './routes';\nimport { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';\n\n/** @alpha */\nconst EntityGroupProfileCard = EntityCardBlueprint.make({\n name: 'group-profile',\n params: {\n filter: 'kind:group',\n loader: async () =>\n import('./components/Cards/Group/GroupProfile/GroupProfileCard').then(m =>\n compatWrapper(<m.GroupProfileCard />),\n ),\n },\n});\n\n/** @alpha */\nconst EntityMembersListCard = EntityCardBlueprint.make({\n name: 'members-list',\n params: {\n filter: 'kind:group',\n loader: async () =>\n import('./components/Cards/Group/MembersList/MembersListCard').then(m =>\n compatWrapper(<m.MembersListCard />),\n ),\n },\n});\n\n/** @alpha */\nconst EntityOwnershipCard = EntityCardBlueprint.make({\n name: 'ownership',\n params: {\n filter: 'kind:group,user',\n loader: async () =>\n import('./components/Cards/OwnershipCard/OwnershipCard').then(m =>\n compatWrapper(<m.OwnershipCard />),\n ),\n },\n});\n\n/** @alpha */\nconst EntityUserProfileCard = EntityCardBlueprint.makeWithOverrides({\n name: 'user-profile',\n config: {\n schema: {\n maxRelations: z => z.number().optional(),\n hideIcons: z => z.boolean().default(false),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n filter: 'kind:user',\n loader: async () =>\n import('./components/Cards/User/UserProfileCard/UserProfileCard').then(\n m =>\n compatWrapper(\n <m.UserProfileCard\n maxRelations={config.maxRelations}\n hideIcons={config.hideIcons}\n />,\n ),\n ),\n });\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'org',\n info: { packageJson: () => import('../package.json') },\n extensions: [\n EntityGroupProfileCard,\n EntityMembersListCard,\n EntityOwnershipCard,\n EntityUserProfileCard,\n ],\n externalRoutes: convertLegacyRouteRefs({\n catalogIndex: catalogIndexRouteRef,\n }),\n});\n\nexport { orgTranslationRef } from './translation';\n"],"names":[],"mappings":";;;;;;;AAyBA,MAAM,sBAAA,GAAyB,oBAAoB,IAAK,CAAA;AAAA,EACtD,IAAM,EAAA,eAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA,YAAA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A,YACN,OAAO,gEAAyD,CAAE,CAAA,IAAA;AAAA,QAChE,CACE,CAAA,KAAA,aAAA;AAAA,0BACE,GAAA;AAAA,YAAC,CAAE,CAAA,eAAA;AAAA,YAAF;AAAA,cACC,cAAc,MAAO,CAAA,YAAA;AAAA,cACrB,WAAW,MAAO,CAAA;AAAA;AAAA;AACpB;AACF;AACJ,KACH,CAAA;AAAA;AAEL,CAAC,CAAA;AAGD,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,KAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAE,EAAA;AAAA,EACrD,UAAY,EAAA;AAAA,IACV,sBAAA;AAAA,IACA,qBAAA;AAAA,IACA,mBAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,gBAAgB,sBAAuB,CAAA;AAAA,IACrC,YAAc,EAAA;AAAA,GACf;AACH,CAAC,CAAA;;;;"}
1
+ {"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"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 */\n\nimport {\n compatWrapper,\n convertLegacyRouteRefs,\n} from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport { catalogIndexRouteRef } from './routes';\nimport { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';\n\n/** @alpha */\nconst EntityGroupProfileCard = EntityCardBlueprint.make({\n name: 'group-profile',\n params: {\n type: 'info',\n filter: { kind: 'group' },\n loader: async () =>\n import('./components/Cards/Group/GroupProfile/GroupProfileCard').then(m =>\n compatWrapper(<m.GroupProfileCard />),\n ),\n },\n});\n\n/** @alpha */\nconst EntityMembersListCard = EntityCardBlueprint.make({\n name: 'members-list',\n params: {\n filter: { kind: 'group' },\n loader: async () =>\n import('./components/Cards/Group/MembersList/MembersListCard').then(m =>\n compatWrapper(<m.MembersListCard />),\n ),\n },\n});\n\n/** @alpha */\nconst EntityOwnershipCard = EntityCardBlueprint.make({\n name: 'ownership',\n params: {\n filter: { kind: { $in: ['group', 'user'] } },\n loader: async () =>\n import('./components/Cards/OwnershipCard/OwnershipCard').then(m =>\n compatWrapper(<m.OwnershipCard />),\n ),\n },\n});\n\n/** @alpha */\nconst EntityUserProfileCard = EntityCardBlueprint.makeWithOverrides({\n name: 'user-profile',\n config: {\n schema: {\n maxRelations: z => z.number().optional(),\n hideIcons: z => z.boolean().default(false),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n type: 'info',\n filter: { kind: 'user' },\n loader: async () =>\n import('./components/Cards/User/UserProfileCard/UserProfileCard').then(\n m =>\n compatWrapper(\n <m.UserProfileCard\n maxRelations={config.maxRelations}\n hideIcons={config.hideIcons}\n />,\n ),\n ),\n });\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'org',\n info: { packageJson: () => import('../package.json') },\n extensions: [\n EntityGroupProfileCard,\n EntityMembersListCard,\n EntityOwnershipCard,\n EntityUserProfileCard,\n ],\n externalRoutes: convertLegacyRouteRefs({\n catalogIndex: catalogIndexRouteRef,\n }),\n});\n\nexport { orgTranslationRef } from './translation';\n"],"names":[],"mappings":";;;;;;;AAyBA,MAAM,sBAAA,GAAyB,oBAAoB,IAAK,CAAA;AAAA,EACtD,IAAM,EAAA,eAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,MAAA,EAAQ,EAAE,IAAA,EAAM,OAAQ,EAAA;AAAA,IACxB,MAAQ,EAAA,YACN,OAAO,+DAAwD,CAAE,CAAA,IAAA;AAAA,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A;AAAA,MACN,MAAA,EAAQ,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,MACvB,MAAQ,EAAA,YACN,OAAO,gEAAyD,CAAE,CAAA,IAAA;AAAA,QAChE,CACE,CAAA,KAAA,aAAA;AAAA,0BACE,GAAA;AAAA,YAAC,CAAE,CAAA,eAAA;AAAA,YAAF;AAAA,cACC,cAAc,MAAO,CAAA,YAAA;AAAA,cACrB,WAAW,MAAO,CAAA;AAAA;AAAA;AACpB;AACF;AACJ,KACH,CAAA;AAAA;AAEL,CAAC,CAAA;AAGD,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,KAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAE,EAAA;AAAA,EACrD,UAAY,EAAA;AAAA,IACV,sBAAA;AAAA,IACA,qBAAA;AAAA,IACA,mBAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,gBAAgB,sBAAuB,CAAA;AAAA,IACrC,YAAc,EAAA;AAAA,GACf;AACH,CAAC,CAAA;;;;"}
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-org";
2
- var version = "0.6.41-next.0";
2
+ var version = "0.6.41";
3
3
  var description = "A Backstage plugin that helps you create entity pages for your organization";
4
4
  var backstage = {
5
5
  role: "frontend-plugin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-org",
3
- "version": "0.6.41-next.0",
3
+ "version": "0.6.41",
4
4
  "description": "A Backstage plugin that helps you create entity pages for your organization",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -63,13 +63,13 @@
63
63
  "test": "backstage-cli package test"
64
64
  },
65
65
  "dependencies": {
66
- "@backstage/catalog-model": "1.7.4",
67
- "@backstage/core-compat-api": "0.4.4-next.0",
68
- "@backstage/core-components": "0.17.4-next.0",
69
- "@backstage/core-plugin-api": "1.10.8",
70
- "@backstage/frontend-plugin-api": "0.10.4-next.0",
71
- "@backstage/plugin-catalog-common": "1.1.4",
72
- "@backstage/plugin-catalog-react": "1.19.1-next.0",
66
+ "@backstage/catalog-model": "^1.7.5",
67
+ "@backstage/core-compat-api": "^0.4.4",
68
+ "@backstage/core-components": "^0.17.4",
69
+ "@backstage/core-plugin-api": "^1.10.9",
70
+ "@backstage/frontend-plugin-api": "^0.10.4",
71
+ "@backstage/plugin-catalog-common": "^1.1.5",
72
+ "@backstage/plugin-catalog-react": "^1.19.1",
73
73
  "@material-ui/core": "^4.12.2",
74
74
  "@material-ui/icons": "^4.9.1",
75
75
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -80,15 +80,15 @@
80
80
  "react-use": "^17.2.4"
81
81
  },
82
82
  "devDependencies": {
83
- "@backstage/catalog-client": "1.10.1",
84
- "@backstage/cli": "0.33.1-next.0",
85
- "@backstage/core-app-api": "1.17.1",
86
- "@backstage/dev-utils": "1.1.12-next.0",
87
- "@backstage/plugin-catalog": "1.31.1-next.0",
88
- "@backstage/plugin-permission-common": "0.9.0",
89
- "@backstage/plugin-permission-react": "0.4.35",
90
- "@backstage/test-utils": "1.7.10-next.0",
91
- "@backstage/types": "1.2.1",
83
+ "@backstage/catalog-client": "^1.10.2",
84
+ "@backstage/cli": "^0.33.1",
85
+ "@backstage/core-app-api": "^1.18.0",
86
+ "@backstage/dev-utils": "^1.1.12",
87
+ "@backstage/plugin-catalog": "^1.31.1",
88
+ "@backstage/plugin-permission-common": "^0.9.1",
89
+ "@backstage/plugin-permission-react": "^0.4.36",
90
+ "@backstage/test-utils": "^1.7.10",
91
+ "@backstage/types": "^1.2.1",
92
92
  "@testing-library/dom": "^10.0.0",
93
93
  "@testing-library/jest-dom": "^6.0.0",
94
94
  "@testing-library/react": "^16.0.0",