@backstage-community/plugin-tekton 3.31.0 → 3.32.1

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,24 @@
1
1
  ### Dependencies
2
2
 
3
+ ## 3.32.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 14a5222: Tekton plugin support NFS
8
+
9
+ ## 3.32.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 776a43f: Backstage version bump to v1.45.3
14
+
15
+ ### Patch Changes
16
+
17
+ - b5310cb: Updated dependency `@types/lodash` to `4.17.21`.
18
+ - 714f99c: fix an issue with the detail buttons in the dark theme
19
+ - Updated dependencies [776a43f]
20
+ - @backstage-community/plugin-tekton-common@1.15.0
21
+
3
22
  ## 3.31.0
4
23
 
5
24
  ### Minor Changes
@@ -0,0 +1,51 @@
1
+ /// <reference types="react" />
2
+ import * as _backstage_catalog_model from '@backstage/catalog-model';
3
+ import * as react from 'react';
4
+ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
5
+ import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
6
+
7
+ /**
8
+ * The Tekton backstage NFS plugin.
9
+ * @alpha
10
+ */
11
+ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{}, {}, {
12
+ "entity-content:tekton/tektonEntityContent": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
13
+ kind: "entity-content";
14
+ name: "tektonEntityContent";
15
+ config: {
16
+ path: string | undefined;
17
+ title: string | undefined;
18
+ filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
19
+ group: string | false | undefined;
20
+ };
21
+ configInput: {
22
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
23
+ title?: string | undefined;
24
+ path?: string | undefined;
25
+ group?: string | false | undefined;
26
+ };
27
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
28
+ optional: true;
29
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
30
+ optional: true;
31
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
32
+ optional: true;
33
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
34
+ optional: true;
35
+ }>;
36
+ inputs: {};
37
+ params: {
38
+ defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
39
+ path: string;
40
+ defaultTitle?: [Error: "Use the 'title' param instead"] | undefined;
41
+ title: string;
42
+ defaultGroup?: [Error: "Use the 'group' param instead"] | undefined;
43
+ group?: (string & {}) | "overview" | "documentation" | "development" | "deployment" | "operation" | "observability" | undefined;
44
+ loader: () => Promise<JSX.Element>;
45
+ routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
46
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean) | undefined;
47
+ };
48
+ }>;
49
+ }>;
50
+
51
+ export { _default as default };
@@ -0,0 +1,19 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
+ import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
4
+
5
+ const tektonEntityContent = EntityContentBlueprint.make({
6
+ name: "tektonEntityContent",
7
+ params: {
8
+ path: "/tekton",
9
+ title: "Tekton",
10
+ loader: () => import('./components/Router.esm.js').then((m) => /* @__PURE__ */ jsx(m.Router, {}))
11
+ }
12
+ });
13
+ var alpha = createFrontendPlugin({
14
+ pluginId: "tekton",
15
+ extensions: [tektonEntityContent]
16
+ });
17
+
18
+ export { alpha as default };
19
+ //# sourceMappingURL=alpha.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\n\nconst tektonEntityContent = EntityContentBlueprint.make({\n name: 'tektonEntityContent',\n params: {\n path: '/tekton',\n title: 'Tekton',\n loader: () => import('./components/Router').then(m => <m.Router />),\n },\n});\n\n/**\n * The Tekton backstage NFS plugin.\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'tekton',\n extensions: [tektonEntityContent],\n});\n"],"names":[],"mappings":";;;;AAkBA,MAAM,mBAAA,GAAsB,uBAAuB,IAAA,CAAK;AAAA,EACtD,IAAA,EAAM,qBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,SAAA;AAAA,IACN,KAAA,EAAO,QAAA;AAAA,IACP,MAAA,EAAQ,MAAM,OAAO,4BAAqB,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,qBAAK,GAAA,CAAC,CAAA,CAAE,MAAA,EAAF,EAAS,CAAE;AAAA;AAEtE,CAAC,CAAA;AAMD,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,QAAA;AAAA,EACV,UAAA,EAAY,CAAC,mBAAmB;AAClC,CAAC,CAAA;;;;"}
@@ -5,10 +5,10 @@ import classNames from 'classnames';
5
5
  const useStyles = makeStyles(
6
6
  (theme) => createStyles({
7
7
  icon: {
8
- fill: "var(--pf-t--global--icon--color--100)"
8
+ fill: theme.palette.text.primary
9
9
  },
10
10
  disabledButton: {
11
- fill: theme.palette.grey[600]
11
+ fill: theme.palette.text.disabled
12
12
  }
13
13
  })
14
14
  );
@@ -1 +1 @@
1
- {"version":3,"file":"LinkToSbomIcon.esm.js","sources":["../../../src/components/Icons/LinkToSbomIcon.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 */\nimport type { ReactElement } from 'react';\n\nimport { createStyles, makeStyles, Theme } from '@material-ui/core';\nimport classNames from 'classnames';\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n icon: {\n fill: 'var(--pf-t--global--icon--color--100)',\n },\n disabledButton: {\n fill: theme.palette.grey[600],\n },\n }),\n);\n\nconst LinkToSBomIcon = ({\n disabled,\n dataTestId,\n}: {\n dataTestId: string;\n disabled?: boolean;\n}): ReactElement => {\n const classes = useStyles();\n return (\n <svg\n data-testid={dataTestId}\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={classNames(classes.icon, {\n [classes.disabledButton]: disabled,\n })}\n >\n <path d=\"M11 17H7C5.61667 17 4.4375 16.5125 3.4625 15.5375C2.4875 14.5625 2 13.3833 2 12C2 10.6167 2.4875 9.4375 3.4625 8.4625C4.4375 7.4875 5.61667 7 7 7H11V9H7C6.16667 9 5.45833 9.29167 4.875 9.875C4.29167 10.4583 4 11.1667 4 12C4 12.8333 4.29167 13.5417 4.875 14.125C5.45833 14.7083 6.16667 15 7 15H11V17ZM8 13V11H16V13H8ZM13 17V15H17C17.8333 15 18.5417 14.7083 19.125 14.125C19.7083 13.5417 20 12.8333 20 12C20 11.1667 19.7083 10.4583 19.125 9.875C18.5417 9.29167 17.8333 9 17 9H13V7H17C18.3833 7 19.5625 7.4875 20.5375 8.4625C21.5125 9.4375 22 10.6167 22 12C22 13.3833 21.5125 14.5625 20.5375 15.5375C19.5625 16.5125 18.3833 17 17 17H13Z\" />\n </svg>\n );\n};\n\nexport default LinkToSBomIcon;\n"],"names":[],"mappings":";;;;AAoBA,MAAM,SAAA,GAAY,UAAA;AAAA,EAAW,CAAC,UAC5B,YAAA,CAAa;AAAA,IACX,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM;AAAA,KACR;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,GAAG;AAAA;AAC9B,GACD;AACH,CAAA;AAEA,MAAM,iBAAiB,CAAC;AAAA,EACtB,QAAA;AAAA,EACA;AACF,CAAA,KAGoB;AAClB,EAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,aAAA,EAAa,UAAA;AAAA,MACb,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP,OAAA,EAAQ,WAAA;AAAA,MACR,KAAA,EAAM,4BAAA;AAAA,MACN,SAAA,EAAW,UAAA,CAAW,OAAA,CAAQ,IAAA,EAAM;AAAA,QAClC,CAAC,OAAA,CAAQ,cAAc,GAAG;AAAA,OAC3B,CAAA;AAAA,MAED,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,2nBAAA,EAA4nB;AAAA;AAAA,GACtoB;AAEJ;;;;"}
1
+ {"version":3,"file":"LinkToSbomIcon.esm.js","sources":["../../../src/components/Icons/LinkToSbomIcon.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 */\nimport type { ReactElement } from 'react';\n\nimport { createStyles, makeStyles, Theme } from '@material-ui/core';\nimport classNames from 'classnames';\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n icon: {\n fill: theme.palette.text.primary,\n },\n disabledButton: {\n fill: theme.palette.text.disabled,\n },\n }),\n);\n\nconst LinkToSBomIcon = ({\n disabled,\n dataTestId,\n}: {\n dataTestId: string;\n disabled?: boolean;\n}): ReactElement => {\n const classes = useStyles();\n return (\n <svg\n data-testid={dataTestId}\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={classNames(classes.icon, {\n [classes.disabledButton]: disabled,\n })}\n >\n <path d=\"M11 17H7C5.61667 17 4.4375 16.5125 3.4625 15.5375C2.4875 14.5625 2 13.3833 2 12C2 10.6167 2.4875 9.4375 3.4625 8.4625C4.4375 7.4875 5.61667 7 7 7H11V9H7C6.16667 9 5.45833 9.29167 4.875 9.875C4.29167 10.4583 4 11.1667 4 12C4 12.8333 4.29167 13.5417 4.875 14.125C5.45833 14.7083 6.16667 15 7 15H11V17ZM8 13V11H16V13H8ZM13 17V15H17C17.8333 15 18.5417 14.7083 19.125 14.125C19.7083 13.5417 20 12.8333 20 12C20 11.1667 19.7083 10.4583 19.125 9.875C18.5417 9.29167 17.8333 9 17 9H13V7H17C18.3833 7 19.5625 7.4875 20.5375 8.4625C21.5125 9.4375 22 10.6167 22 12C22 13.3833 21.5125 14.5625 20.5375 15.5375C19.5625 16.5125 18.3833 17 17 17H13Z\" />\n </svg>\n );\n};\n\nexport default LinkToSBomIcon;\n"],"names":[],"mappings":";;;;AAoBA,MAAM,SAAA,GAAY,UAAA;AAAA,EAAW,CAAC,UAC5B,YAAA,CAAa;AAAA,IACX,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK;AAAA,KAC3B;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK;AAAA;AAC3B,GACD;AACH,CAAA;AAEA,MAAM,iBAAiB,CAAC;AAAA,EACtB,QAAA;AAAA,EACA;AACF,CAAA,KAGoB;AAClB,EAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,aAAA,EAAa,UAAA;AAAA,MACb,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP,OAAA,EAAQ,WAAA;AAAA,MACR,KAAA,EAAM,4BAAA;AAAA,MACN,SAAA,EAAW,UAAA,CAAW,OAAA,CAAQ,IAAA,EAAM;AAAA,QAClC,CAAC,OAAA,CAAQ,cAAc,GAAG;AAAA,OAC3B,CAAA;AAAA,MAED,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,2nBAAA,EAA4nB;AAAA;AAAA,GACtoB;AAEJ;;;;"}
@@ -5,10 +5,10 @@ import classNames from 'classnames';
5
5
  const useStyles = makeStyles(
6
6
  (theme) => createStyles({
7
7
  icon: {
8
- fill: "var(--pf-t--global--icon--color--100)"
8
+ fill: theme.palette.text.primary
9
9
  },
10
10
  disabledButton: {
11
- fill: theme.palette.grey[600]
11
+ fill: theme.palette.text.disabled
12
12
  }
13
13
  })
14
14
  );
@@ -1 +1 @@
1
- {"version":3,"file":"OutputIcon.esm.js","sources":["../../../src/components/Icons/OutputIcon.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 */\nimport type { ReactElement } from 'react';\n\nimport { createStyles, makeStyles, Theme } from '@material-ui/core';\nimport classNames from 'classnames';\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n icon: {\n fill: 'var(--pf-t--global--icon--color--100)',\n },\n disabledButton: {\n fill: theme.palette.grey[600],\n },\n }),\n);\n\nconst OutputIcon = ({ disabled }: { disabled?: boolean }): ReactElement => {\n const classes = useStyles();\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={classNames(classes.icon, {\n [classes.disabledButton]: disabled,\n })}\n >\n <path d=\"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V7H5V19ZM7 12V10H17V12H7ZM7 16V14H13V16H7Z\" />\n </svg>\n );\n};\n\nexport default OutputIcon;\n"],"names":[],"mappings":";;;;AAoBA,MAAM,SAAA,GAAY,UAAA;AAAA,EAAW,CAAC,UAC5B,YAAA,CAAa;AAAA,IACX,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM;AAAA,KACR;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,GAAG;AAAA;AAC9B,GACD;AACH,CAAA;AAEA,MAAM,UAAA,GAAa,CAAC,EAAE,QAAA,EAAS,KAA4C;AACzE,EAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP,OAAA,EAAQ,WAAA;AAAA,MACR,IAAA,EAAK,MAAA;AAAA,MACL,KAAA,EAAM,4BAAA;AAAA,MACN,SAAA,EAAW,UAAA,CAAW,OAAA,CAAQ,IAAA,EAAM;AAAA,QAClC,CAAC,OAAA,CAAQ,cAAc,GAAG;AAAA,OAC3B,CAAA;AAAA,MAED,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,oVAAA,EAAqV;AAAA;AAAA,GAC/V;AAEJ;;;;"}
1
+ {"version":3,"file":"OutputIcon.esm.js","sources":["../../../src/components/Icons/OutputIcon.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 */\nimport type { ReactElement } from 'react';\n\nimport { createStyles, makeStyles, Theme } from '@material-ui/core';\nimport classNames from 'classnames';\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n icon: {\n fill: theme.palette.text.primary,\n },\n disabledButton: {\n fill: theme.palette.text.disabled,\n },\n }),\n);\n\nconst OutputIcon = ({ disabled }: { disabled?: boolean }): ReactElement => {\n const classes = useStyles();\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={classNames(classes.icon, {\n [classes.disabledButton]: disabled,\n })}\n >\n <path d=\"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V7H5V19ZM7 12V10H17V12H7ZM7 16V14H13V16H7Z\" />\n </svg>\n );\n};\n\nexport default OutputIcon;\n"],"names":[],"mappings":";;;;AAoBA,MAAM,SAAA,GAAY,UAAA;AAAA,EAAW,CAAC,UAC5B,YAAA,CAAa;AAAA,IACX,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK;AAAA,KAC3B;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK;AAAA;AAC3B,GACD;AACH,CAAA;AAEA,MAAM,UAAA,GAAa,CAAC,EAAE,QAAA,EAAS,KAA4C;AACzE,EAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP,OAAA,EAAQ,WAAA;AAAA,MACR,IAAA,EAAK,MAAA;AAAA,MACL,KAAA,EAAM,4BAAA;AAAA,MACN,SAAA,EAAW,UAAA,CAAW,OAAA,CAAQ,IAAA,EAAM;AAAA,QAClC,CAAC,OAAA,CAAQ,cAAc,GAAG;AAAA,OAC3B,CAAA;AAAA,MAED,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,oVAAA,EAAqV;AAAA;AAAA,GAC/V;AAEJ;;;;"}
@@ -5,10 +5,10 @@ import classNames from 'classnames';
5
5
  const useStyles = makeStyles(
6
6
  (theme) => createStyles({
7
7
  icon: {
8
- fill: "var(--pf-t--global--icon--color--100)"
8
+ fill: theme.palette.text.primary
9
9
  },
10
10
  disabledButton: {
11
- fill: theme.palette.grey[600]
11
+ fill: theme.palette.text.disabled
12
12
  }
13
13
  })
14
14
  );
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLogsIcon.esm.js","sources":["../../../src/components/Icons/ViewLogsIcon.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 */\nimport type { ReactElement } from 'react';\n\nimport { createStyles, makeStyles, Theme } from '@material-ui/core';\nimport classNames from 'classnames';\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n icon: {\n fill: 'var(--pf-t--global--icon--color--100)',\n },\n disabledButton: {\n fill: theme.palette.grey[600],\n },\n }),\n);\n\nconst ViewLogsIcon = ({ disabled }: { disabled?: boolean }): ReactElement => {\n const classes = useStyles();\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={classNames(classes.icon, {\n [classes.disabledButton]: disabled,\n })}\n >\n <path d=\"M4.5 21C4.0875 21 3.73438 20.8531 3.44063 20.5594C3.14688 20.2656 3 19.9125 3 19.5V4.5C3 4.0875 3.14688 3.73438 3.44063 3.44063C3.73438 3.14688 4.0875 3 4.5 3H19.5C19.9125 3 20.2656 3.14688 20.5594 3.44063C20.8531 3.73438 21 4.0875 21 4.5V19.5C21 19.9125 20.8531 20.2656 20.5594 20.5594C20.2656 20.8531 19.9125 21 19.5 21H4.5ZM4.5 19.5H19.5V6.5H4.5V19.5ZM12.001 16.875C10.667 16.875 9.475 16.5154 8.425 15.7962C7.375 15.077 6.60833 14.1437 6.125 12.9962C6.60833 11.8487 7.37466 10.9167 8.42398 10.2C9.47329 9.48333 10.665 9.125 11.999 9.125C13.333 9.125 14.525 9.48459 15.575 10.2038C16.625 10.923 17.3917 11.8563 17.875 13.0038C17.3917 14.1513 16.6253 15.0833 15.576 15.8C14.5267 16.5167 13.335 16.875 12.001 16.875ZM11.9971 14.25C11.649 14.25 11.3542 14.1282 11.1125 13.8846C10.8708 13.6409 10.75 13.3451 10.75 12.9971C10.75 12.649 10.8718 12.3542 11.1155 12.1125C11.3591 11.8708 11.6549 11.75 12.003 11.75C12.351 11.75 12.6458 11.8718 12.8875 12.1155C13.1292 12.3591 13.25 12.6549 13.25 13.003C13.25 13.351 13.1282 13.6458 12.8846 13.8875C12.6409 14.1292 12.3451 14.25 11.9971 14.25ZM12 15C12.56 15 13.0333 14.8067 13.42 14.42C13.8067 14.0333 14 13.56 14 13C14 12.44 13.8067 11.9667 13.42 11.58C13.0333 11.1933 12.56 11 12 11C11.44 11 10.9667 11.1933 10.58 11.58C10.1933 11.9667 10 12.44 10 13C10 13.56 10.1933 14.0333 10.58 14.42C10.9667 14.8067 11.44 15 12 15Z\" />\n </svg>\n );\n};\n\nexport default ViewLogsIcon;\n"],"names":[],"mappings":";;;;AAoBA,MAAM,SAAA,GAAY,UAAA;AAAA,EAAW,CAAC,UAC5B,YAAA,CAAa;AAAA,IACX,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM;AAAA,KACR;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,GAAG;AAAA;AAC9B,GACD;AACH,CAAA;AAEA,MAAM,YAAA,GAAe,CAAC,EAAE,QAAA,EAAS,KAA4C;AAC3E,EAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP,OAAA,EAAQ,WAAA;AAAA,MACR,KAAA,EAAM,4BAAA;AAAA,MACN,SAAA,EAAW,UAAA,CAAW,OAAA,CAAQ,IAAA,EAAM;AAAA,QAClC,CAAC,OAAA,CAAQ,cAAc,GAAG;AAAA,OAC3B,CAAA;AAAA,MAED,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,u1CAAA,EAAw1C;AAAA;AAAA,GACl2C;AAEJ;;;;"}
1
+ {"version":3,"file":"ViewLogsIcon.esm.js","sources":["../../../src/components/Icons/ViewLogsIcon.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 */\nimport type { ReactElement } from 'react';\n\nimport { createStyles, makeStyles, Theme } from '@material-ui/core';\nimport classNames from 'classnames';\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n icon: {\n fill: theme.palette.text.primary,\n },\n disabledButton: {\n fill: theme.palette.text.disabled,\n },\n }),\n);\n\nconst ViewLogsIcon = ({ disabled }: { disabled?: boolean }): ReactElement => {\n const classes = useStyles();\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={classNames(classes.icon, {\n [classes.disabledButton]: disabled,\n })}\n >\n <path d=\"M4.5 21C4.0875 21 3.73438 20.8531 3.44063 20.5594C3.14688 20.2656 3 19.9125 3 19.5V4.5C3 4.0875 3.14688 3.73438 3.44063 3.44063C3.73438 3.14688 4.0875 3 4.5 3H19.5C19.9125 3 20.2656 3.14688 20.5594 3.44063C20.8531 3.73438 21 4.0875 21 4.5V19.5C21 19.9125 20.8531 20.2656 20.5594 20.5594C20.2656 20.8531 19.9125 21 19.5 21H4.5ZM4.5 19.5H19.5V6.5H4.5V19.5ZM12.001 16.875C10.667 16.875 9.475 16.5154 8.425 15.7962C7.375 15.077 6.60833 14.1437 6.125 12.9962C6.60833 11.8487 7.37466 10.9167 8.42398 10.2C9.47329 9.48333 10.665 9.125 11.999 9.125C13.333 9.125 14.525 9.48459 15.575 10.2038C16.625 10.923 17.3917 11.8563 17.875 13.0038C17.3917 14.1513 16.6253 15.0833 15.576 15.8C14.5267 16.5167 13.335 16.875 12.001 16.875ZM11.9971 14.25C11.649 14.25 11.3542 14.1282 11.1125 13.8846C10.8708 13.6409 10.75 13.3451 10.75 12.9971C10.75 12.649 10.8718 12.3542 11.1155 12.1125C11.3591 11.8708 11.6549 11.75 12.003 11.75C12.351 11.75 12.6458 11.8718 12.8875 12.1155C13.1292 12.3591 13.25 12.6549 13.25 13.003C13.25 13.351 13.1282 13.6458 12.8846 13.8875C12.6409 14.1292 12.3451 14.25 11.9971 14.25ZM12 15C12.56 15 13.0333 14.8067 13.42 14.42C13.8067 14.0333 14 13.56 14 13C14 12.44 13.8067 11.9667 13.42 11.58C13.0333 11.1933 12.56 11 12 11C11.44 11 10.9667 11.1933 10.58 11.58C10.1933 11.9667 10 12.44 10 13C10 13.56 10.1933 14.0333 10.58 14.42C10.9667 14.8067 11.44 15 12 15Z\" />\n </svg>\n );\n};\n\nexport default ViewLogsIcon;\n"],"names":[],"mappings":";;;;AAoBA,MAAM,SAAA,GAAY,UAAA;AAAA,EAAW,CAAC,UAC5B,YAAA,CAAa;AAAA,IACX,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK;AAAA,KAC3B;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,IAAA,EAAM,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK;AAAA;AAC3B,GACD;AACH,CAAA;AAEA,MAAM,YAAA,GAAe,CAAC,EAAE,QAAA,EAAS,KAA4C;AAC3E,EAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,IAAA;AAAA,MACP,OAAA,EAAQ,WAAA;AAAA,MACR,KAAA,EAAM,4BAAA;AAAA,MACN,SAAA,EAAW,UAAA,CAAW,OAAA,CAAQ,IAAA,EAAM;AAAA,QAClC,CAAC,OAAA,CAAQ,cAAc,GAAG;AAAA,OAC3B,CAAA;AAAA,MAED,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,u1CAAA,EAAw1C;AAAA;AAAA,GACl2C;AAEJ;;;;"}
@@ -2,9 +2,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { useState, useContext } from 'react';
3
3
  import { useApi } from '@backstage/core-plugin-api';
4
4
  import { kubernetesProxyApiRef } from '@backstage/plugin-kubernetes-react';
5
- import { makeStyles, Link, createStyles } from '@material-ui/core';
5
+ import { Button } from '@material-ui/core';
6
6
  import DownloadIcon from '@mui/icons-material/FileDownloadOutlined';
7
- import classNames from 'classnames';
8
7
  import { TektonResourcesContext } from '../../hooks/TektonResourcesContext.esm.js';
9
8
  import { getPodLogs } from '../../utils/log-downloader-utils.esm.js';
10
9
  import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
@@ -12,22 +11,7 @@ import '../../translations/index.esm.js';
12
11
  import { downloadLogFile } from '../../utils/download-log-file-utils.esm.js';
13
12
  import { tektonTranslationRef } from '../../translations/ref.esm.js';
14
13
 
15
- const useStyles = makeStyles(
16
- (theme) => createStyles({
17
- downloadAction: {
18
- position: "relative",
19
- marginBottom: "var(--pf-t--global--spacer--sm)",
20
- color: "var(--pf-t--global--icon--color--100)",
21
- cursor: "pointer"
22
- },
23
- buttonDisabled: {
24
- color: theme.palette.grey[400],
25
- cursor: "not-allowed"
26
- }
27
- })
28
- );
29
14
  const PodLogsDownloadLink = ({ pods, fileName, downloadTitle, ...props }) => {
30
- const classes = useStyles();
31
15
  const [downloading, setDownloading] = useState(false);
32
16
  const kubernetesProxyApi = useApi(kubernetesProxyApiRef);
33
17
  const { t } = useTranslationRef(tektonTranslationRef);
@@ -43,11 +27,8 @@ const PodLogsDownloadLink = ({ pods, fileName, downloadTitle, ...props }) => {
43
27
  });
44
28
  };
45
29
  return /* @__PURE__ */ jsxs(
46
- Link,
30
+ Button,
47
31
  {
48
- component: "button",
49
- variant: "body2",
50
- underline: "none",
51
32
  disabled: downloading,
52
33
  title: downloading ? t("pipelineRunLogs.podLogsDownloadLink.downloading") : downloadTitle,
53
34
  onClick: () => {
@@ -60,9 +41,6 @@ const PodLogsDownloadLink = ({ pods, fileName, downloadTitle, ...props }) => {
60
41
  setDownloading(false);
61
42
  });
62
43
  },
63
- className: classNames(classes.downloadAction, {
64
- [classes.buttonDisabled]: downloading
65
- }),
66
44
  ...props,
67
45
  children: [
68
46
  /* @__PURE__ */ jsx(DownloadIcon, { style: { verticalAlign: "-0.180em" } }),
@@ -1 +1 @@
1
- {"version":3,"file":"PodLogsDownloadLink.esm.js","sources":["../../../src/components/PipelineRunLogs/PodLogsDownloadLink.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 */\nimport type { FC, ReactElement } from 'react';\n\nimport { useState, useContext } from 'react';\n\nimport { useApi } from '@backstage/core-plugin-api';\nimport { kubernetesProxyApiRef } from '@backstage/plugin-kubernetes-react';\n\nimport { V1Pod } from '@kubernetes/client-node';\nimport { createStyles, Link, makeStyles, Theme } from '@material-ui/core';\nimport DownloadIcon from '@mui/icons-material/FileDownloadOutlined';\nimport classNames from 'classnames';\n\nimport { TektonResourcesContext } from '../../hooks/TektonResourcesContext';\nimport { ContainerScope } from '../../hooks/usePodLogsOfPipelineRun';\nimport { TektonResourcesContextData } from '../../types/types';\nimport { getPodLogs } from '../../utils/log-downloader-utils';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { tektonTranslationRef } from '../../translations/index.ts';\nimport { downloadLogFile } from '../../utils/download-log-file-utils';\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n downloadAction: {\n position: 'relative',\n marginBottom: 'var(--pf-t--global--spacer--sm)',\n color: 'var(--pf-t--global--icon--color--100)',\n cursor: 'pointer',\n },\n buttonDisabled: {\n color: theme.palette.grey[400],\n cursor: 'not-allowed',\n },\n }),\n);\n\nconst PodLogsDownloadLink: FC<{\n pods: V1Pod[];\n fileName: string;\n downloadTitle: string;\n}> = ({ pods, fileName, downloadTitle, ...props }): ReactElement => {\n const classes = useStyles();\n const [downloading, setDownloading] = useState<boolean>(false);\n const kubernetesProxyApi = useApi(kubernetesProxyApiRef);\n const { t } = useTranslationRef(tektonTranslationRef);\n\n const { clusters, selectedCluster = 0 } =\n useContext<TektonResourcesContextData>(TektonResourcesContext);\n const currCluster = clusters.length > 0 ? clusters[selectedCluster] : '';\n\n const getLogs = (podScope: ContainerScope): Promise<{ text: string }> => {\n const { podName, podNamespace, containerName, clusterName } = podScope;\n return kubernetesProxyApi.getPodLogs({\n podName: podName,\n namespace: podNamespace,\n containerName: containerName,\n clusterName: clusterName,\n });\n };\n\n return (\n <Link\n component=\"button\"\n variant=\"body2\"\n underline=\"none\"\n disabled={downloading}\n title={\n downloading\n ? t('pipelineRunLogs.podLogsDownloadLink.downloading')\n : downloadTitle\n }\n onClick={() => {\n setDownloading(true);\n getPodLogs(pods, getLogs, currCluster)\n .then((logs: string) => {\n setDownloading(false);\n downloadLogFile(logs || '', fileName);\n })\n .catch(err => {\n // eslint-disable-next-line no-console\n console.warn('Download failed', err);\n setDownloading(false);\n });\n }}\n className={classNames(classes.downloadAction, {\n [classes.buttonDisabled]: downloading,\n })}\n {...props}\n >\n <DownloadIcon style={{ verticalAlign: '-0.180em' }} />\n {downloadTitle || t('pipelineRunLogs.podLogsDownloadLink.title')}\n </Link>\n );\n};\nexport default PodLogsDownloadLink;\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAmCA,MAAM,SAAA,GAAY,UAAA;AAAA,EAAW,CAAC,UAC5B,YAAA,CAAa;AAAA,IACX,cAAA,EAAgB;AAAA,MACd,QAAA,EAAU,UAAA;AAAA,MACV,YAAA,EAAc,iCAAA;AAAA,MACd,KAAA,EAAO,uCAAA;AAAA,MACP,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,GAAG,CAAA;AAAA,MAC7B,MAAA,EAAQ;AAAA;AACV,GACD;AACH,CAAA;AAEA,MAAM,mBAAA,GAID,CAAC,EAAE,IAAA,EAAM,UAAU,aAAA,EAAe,GAAG,OAAM,KAAoB;AAClE,EAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,EAAA,MAAM,CAAC,WAAA,EAAa,cAAc,CAAA,GAAI,SAAkB,KAAK,CAAA;AAC7D,EAAA,MAAM,kBAAA,GAAqB,OAAO,qBAAqB,CAAA;AACvD,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,oBAAoB,CAAA;AAEpD,EAAA,MAAM,EAAE,QAAA,EAAU,eAAA,GAAkB,CAAA,EAAE,GACpC,WAAuC,sBAAsB,CAAA;AAC/D,EAAA,MAAM,cAAc,QAAA,CAAS,MAAA,GAAS,CAAA,GAAI,QAAA,CAAS,eAAe,CAAA,GAAI,EAAA;AAEtE,EAAA,MAAM,OAAA,GAAU,CAAC,QAAA,KAAwD;AACvE,IAAA,MAAM,EAAE,OAAA,EAAS,YAAA,EAAc,aAAA,EAAe,aAAY,GAAI,QAAA;AAC9D,IAAA,OAAO,mBAAmB,UAAA,CAAW;AAAA,MACnC,OAAA;AAAA,MACA,SAAA,EAAW,YAAA;AAAA,MACX,aAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,EACH,CAAA;AAEA,EAAA,uBACE,IAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAU,QAAA;AAAA,MACV,OAAA,EAAQ,OAAA;AAAA,MACR,SAAA,EAAU,MAAA;AAAA,MACV,QAAA,EAAU,WAAA;AAAA,MACV,KAAA,EACE,WAAA,GACI,CAAA,CAAE,iDAAiD,CAAA,GACnD,aAAA;AAAA,MAEN,SAAS,MAAM;AACb,QAAA,cAAA,CAAe,IAAI,CAAA;AACnB,QAAA,UAAA,CAAW,MAAM,OAAA,EAAS,WAAW,CAAA,CAClC,IAAA,CAAK,CAAC,IAAA,KAAiB;AACtB,UAAA,cAAA,CAAe,KAAK,CAAA;AACpB,UAAA,eAAA,CAAgB,IAAA,IAAQ,IAAI,QAAQ,CAAA;AAAA,QACtC,CAAC,CAAA,CACA,KAAA,CAAM,CAAA,GAAA,KAAO;AAEZ,UAAA,OAAA,CAAQ,IAAA,CAAK,mBAAmB,GAAG,CAAA;AACnC,UAAA,cAAA,CAAe,KAAK,CAAA;AAAA,QACtB,CAAC,CAAA;AAAA,MACL,CAAA;AAAA,MACA,SAAA,EAAW,UAAA,CAAW,OAAA,CAAQ,cAAA,EAAgB;AAAA,QAC5C,CAAC,OAAA,CAAQ,cAAc,GAAG;AAAA,OAC3B,CAAA;AAAA,MACA,GAAG,KAAA;AAAA,MAEJ,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,YAAA,EAAA,EAAa,KAAA,EAAO,EAAE,aAAA,EAAe,YAAW,EAAG,CAAA;AAAA,QACnD,aAAA,IAAiB,EAAE,2CAA2C;AAAA;AAAA;AAAA,GACjE;AAEJ;;;;"}
1
+ {"version":3,"file":"PodLogsDownloadLink.esm.js","sources":["../../../src/components/PipelineRunLogs/PodLogsDownloadLink.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 */\nimport type { FC, ReactElement } from 'react';\n\nimport { useState, useContext } from 'react';\n\nimport { useApi } from '@backstage/core-plugin-api';\nimport { kubernetesProxyApiRef } from '@backstage/plugin-kubernetes-react';\n\nimport { V1Pod } from '@kubernetes/client-node';\nimport { Button } from '@material-ui/core';\nimport DownloadIcon from '@mui/icons-material/FileDownloadOutlined';\n\nimport { TektonResourcesContext } from '../../hooks/TektonResourcesContext';\nimport { ContainerScope } from '../../hooks/usePodLogsOfPipelineRun';\nimport { TektonResourcesContextData } from '../../types/types';\nimport { getPodLogs } from '../../utils/log-downloader-utils';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { tektonTranslationRef } from '../../translations/index.ts';\nimport { downloadLogFile } from '../../utils/download-log-file-utils';\n\nconst PodLogsDownloadLink: FC<{\n pods: V1Pod[];\n fileName: string;\n downloadTitle: string;\n}> = ({ pods, fileName, downloadTitle, ...props }): ReactElement => {\n const [downloading, setDownloading] = useState<boolean>(false);\n const kubernetesProxyApi = useApi(kubernetesProxyApiRef);\n const { t } = useTranslationRef(tektonTranslationRef);\n\n const { clusters, selectedCluster = 0 } =\n useContext<TektonResourcesContextData>(TektonResourcesContext);\n const currCluster = clusters.length > 0 ? clusters[selectedCluster] : '';\n\n const getLogs = (podScope: ContainerScope): Promise<{ text: string }> => {\n const { podName, podNamespace, containerName, clusterName } = podScope;\n return kubernetesProxyApi.getPodLogs({\n podName: podName,\n namespace: podNamespace,\n containerName: containerName,\n clusterName: clusterName,\n });\n };\n\n return (\n <Button\n disabled={downloading}\n title={\n downloading\n ? t('pipelineRunLogs.podLogsDownloadLink.downloading')\n : downloadTitle\n }\n onClick={() => {\n setDownloading(true);\n getPodLogs(pods, getLogs, currCluster)\n .then((logs: string) => {\n setDownloading(false);\n downloadLogFile(logs || '', fileName);\n })\n .catch(err => {\n // eslint-disable-next-line no-console\n console.warn('Download failed', err);\n setDownloading(false);\n });\n }}\n {...props}\n >\n <DownloadIcon style={{ verticalAlign: '-0.180em' }} />\n {downloadTitle || t('pipelineRunLogs.podLogsDownloadLink.title')}\n </Button>\n );\n};\nexport default PodLogsDownloadLink;\n"],"names":[],"mappings":";;;;;;;;;;;;;AAkCA,MAAM,mBAAA,GAID,CAAC,EAAE,IAAA,EAAM,UAAU,aAAA,EAAe,GAAG,OAAM,KAAoB;AAClE,EAAA,MAAM,CAAC,WAAA,EAAa,cAAc,CAAA,GAAI,SAAkB,KAAK,CAAA;AAC7D,EAAA,MAAM,kBAAA,GAAqB,OAAO,qBAAqB,CAAA;AACvD,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,oBAAoB,CAAA;AAEpD,EAAA,MAAM,EAAE,QAAA,EAAU,eAAA,GAAkB,CAAA,EAAE,GACpC,WAAuC,sBAAsB,CAAA;AAC/D,EAAA,MAAM,cAAc,QAAA,CAAS,MAAA,GAAS,CAAA,GAAI,QAAA,CAAS,eAAe,CAAA,GAAI,EAAA;AAEtE,EAAA,MAAM,OAAA,GAAU,CAAC,QAAA,KAAwD;AACvE,IAAA,MAAM,EAAE,OAAA,EAAS,YAAA,EAAc,aAAA,EAAe,aAAY,GAAI,QAAA;AAC9D,IAAA,OAAO,mBAAmB,UAAA,CAAW;AAAA,MACnC,OAAA;AAAA,MACA,SAAA,EAAW,YAAA;AAAA,MACX,aAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,EACH,CAAA;AAEA,EAAA,uBACE,IAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,QAAA,EAAU,WAAA;AAAA,MACV,KAAA,EACE,WAAA,GACI,CAAA,CAAE,iDAAiD,CAAA,GACnD,aAAA;AAAA,MAEN,SAAS,MAAM;AACb,QAAA,cAAA,CAAe,IAAI,CAAA;AACnB,QAAA,UAAA,CAAW,MAAM,OAAA,EAAS,WAAW,CAAA,CAClC,IAAA,CAAK,CAAC,IAAA,KAAiB;AACtB,UAAA,cAAA,CAAe,KAAK,CAAA;AACpB,UAAA,eAAA,CAAgB,IAAA,IAAQ,IAAI,QAAQ,CAAA;AAAA,QACtC,CAAC,CAAA,CACA,KAAA,CAAM,CAAA,GAAA,KAAO;AAEZ,UAAA,OAAA,CAAQ,IAAA,CAAK,mBAAmB,GAAG,CAAA;AACnC,UAAA,cAAA,CAAe,KAAK,CAAA;AAAA,QACtB,CAAC,CAAA;AAAA,MACL,CAAA;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,YAAA,EAAA,EAAa,KAAA,EAAO,EAAE,aAAA,EAAe,YAAW,EAAG,CAAA;AAAA,QACnD,aAAA,IAAiB,EAAE,2CAA2C;AAAA;AAAA;AAAA,GACjE;AAEJ;;;;"}
package/package.json CHANGED
@@ -1,13 +1,35 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-tekton",
3
- "version": "3.31.0",
4
- "main": "dist/index.esm.js",
5
- "types": "dist/index.d.ts",
3
+ "version": "3.32.1",
4
+ "main": "./dist/index.esm.js",
5
+ "types": "./dist/index.d.ts",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {
8
- "access": "public",
9
- "main": "dist/index.esm.js",
10
- "types": "dist/index.d.ts"
8
+ "access": "public"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.esm.js",
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.esm.js"
15
+ },
16
+ "./alpha": {
17
+ "backstage": "@backstage/FrontendPlugin",
18
+ "import": "./dist/alpha.esm.js",
19
+ "types": "./dist/alpha.d.ts",
20
+ "default": "./dist/alpha.esm.js"
21
+ },
22
+ "./package.json": "./package.json"
23
+ },
24
+ "typesVersions": {
25
+ "*": {
26
+ "alpha": [
27
+ "dist/alpha.d.ts"
28
+ ],
29
+ "package.json": [
30
+ "package.json"
31
+ ]
32
+ }
11
33
  },
12
34
  "backstage": {
13
35
  "role": "frontend-plugin",
@@ -16,7 +38,10 @@
16
38
  "pluginPackages": [
17
39
  "@backstage-community/plugin-tekton",
18
40
  "@backstage-community/plugin-tekton-common"
19
- ]
41
+ ],
42
+ "features": {
43
+ "./alpha": "@backstage/FrontendPlugin"
44
+ }
20
45
  },
21
46
  "sideEffects": [
22
47
  "./**/*.css",
@@ -34,16 +59,17 @@
34
59
  },
35
60
  "dependencies": {
36
61
  "@aonic-ui/pipelines": "^3.1.0",
37
- "@backstage-community/plugin-tekton-common": "^1.14.0",
38
- "@backstage/catalog-model": "^1.7.5",
39
- "@backstage/core-components": "^0.18.2",
40
- "@backstage/core-plugin-api": "^1.11.1",
41
- "@backstage/plugin-catalog-react": "^1.21.2",
42
- "@backstage/plugin-kubernetes-common": "^0.9.7",
43
- "@backstage/plugin-kubernetes-react": "^0.5.12",
44
- "@backstage/plugin-permission-react": "^0.4.37",
62
+ "@backstage-community/plugin-tekton-common": "^1.15.0",
63
+ "@backstage/catalog-model": "^1.7.6",
64
+ "@backstage/core-components": "^0.18.3",
65
+ "@backstage/core-plugin-api": "^1.12.0",
66
+ "@backstage/frontend-plugin-api": "^0.13.1",
67
+ "@backstage/plugin-catalog-react": "^1.21.3",
68
+ "@backstage/plugin-kubernetes-common": "^0.9.8",
69
+ "@backstage/plugin-kubernetes-react": "^0.5.13",
70
+ "@backstage/plugin-permission-react": "^0.4.38",
45
71
  "@backstage/theme": "^0.7.0",
46
- "@backstage/ui": "^0.8.2",
72
+ "@backstage/ui": "^0.9.1",
47
73
  "@janus-idp/shared-react": "^2.16.0",
48
74
  "@kubernetes/client-node": "1.0.0-rc7",
49
75
  "@material-ui/core": "^4.9.13",
@@ -67,14 +93,15 @@
67
93
  "react-router-dom": "^6.0.0"
68
94
  },
69
95
  "devDependencies": {
70
- "@backstage/cli": "^0.34.4",
71
- "@backstage/dev-utils": "^1.1.15",
72
- "@backstage/test-utils": "^1.7.12",
73
- "@playwright/test": "^1.52.0",
96
+ "@axe-core/playwright": "^4.11.0",
97
+ "@backstage/cli": "^0.34.5",
98
+ "@backstage/dev-utils": "^1.1.17",
99
+ "@backstage/test-utils": "^1.7.13",
100
+ "@playwright/test": "^1.57.0",
74
101
  "@testing-library/jest-dom": "6.9.1",
75
102
  "@testing-library/react": "14.3.1",
76
103
  "@types/dagre": "^0.7.52",
77
- "@types/lodash": "4.17.20",
104
+ "@types/lodash": "4.17.21",
78
105
  "cross-fetch": "4.0.0",
79
106
  "msw": "1.3.5",
80
107
  "start-server-and-test": "2.1.2"
@@ -101,12 +128,5 @@
101
128
  "@divyanshiGupta"
102
129
  ],
103
130
  "author": "Red Hat",
104
- "typesVersions": {
105
- "*": {
106
- "package.json": [
107
- "package.json"
108
- ]
109
- }
110
- },
111
131
  "module": "./dist/index.esm.js"
112
132
  }