Skip to content

Commit 67cfc49

Browse files
committed
fix the build
1 parent 7c59a84 commit 67cfc49

File tree

6 files changed

+299
-290
lines changed

6 files changed

+299
-290
lines changed

packages/module/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"devDependencies": {
5252
"@patternfly/documentation-framework": "6.36.4",
5353
"@patternfly/patternfly": "^6.5.0-prerelease.50",
54-
"@patternfly/patternfly-a11y": "^4.3.1",
54+
"@patternfly/patternfly-a11y": "^5.2.0",
5555
"@patternfly/react-code-editor": "^6.5.0-prerelease.40",
5656
"@patternfly/react-table": "^6.5.0-prerelease.38",
5757
"monaco-editor": "^0.34.1",

packages/module/patternfly-docs/generated/extensions/react-console/react.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const pageData = {
7474
{
7575
"name": "innerRef",
7676
"type": "React.RefObject<any>",
77-
"description": "A reference object to attach to the SerialConsole."
77+
"description": "A reference object to attach to the xterm"
7878
},
7979
{
8080
"name": "onConnect",
@@ -85,7 +85,7 @@ const pageData = {
8585
{
8686
"name": "onData",
8787
"type": "(e: string) => void",
88-
"description": "Terminal produced data, like key-press",
88+
"description": "Data to be sent from terminal to backend; (data) => {}",
8989
"required": true
9090
},
9191
{
@@ -97,7 +97,7 @@ const pageData = {
9797
{
9898
"name": "onTitleChanged",
9999
"type": "() => void",
100-
"description": "Terminal title has been changed"
100+
"description": "Terminal title has been changed."
101101
},
102102
{
103103
"name": "rows",
@@ -237,6 +237,16 @@ const pageData = {
237237
"description": "Custom content of more-info section",
238238
"defaultValue": "null"
239239
},
240+
{
241+
"name": "onDownload",
242+
"type": "(fileName: string, content: string, mimeType: string) => void",
243+
"description": "Callback function. Perform file download.\nDefault implementation is usually good enough, but i.e. in case of environment with tight\ncontent security policy set, this might be required.\n\nExamples for alternative file-download implementations:\n - use of iframe\n - use of http-server\n\nParameters: (fileName, content, mimeType) => {}"
244+
},
245+
{
246+
"name": "onGenerate",
247+
"type": "(\n _console: ConsoleDetailPropType,\n type: string\n) => { content: string; mimeType: string }",
248+
"description": "Callback function. Generate content of .vv file.\nParameters: ({ _console, type }) => ({\n content, // required string value\n mimeType, // optional, default application/x-virt-viewer\n fileName // optional, default: console.vv\n })"
249+
},
240250
{
241251
"name": "rdp",
242252
"type": "ConsoleDetailPropType",

packages/module/src/components/AccessConsoles/__snapshots__/AccessConsoles.test.tsx.snap

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,24 @@ exports[`AccessConsoles with SerialConsole and VncConsole as children 1`] = `
4747
fill="currentColor"
4848
height="1em"
4949
role="img"
50-
viewBox="0 0 320 512"
5150
width="1em"
5251
>
53-
<path
54-
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
55-
/>
52+
<svg
53+
class="pf-v6-icon-default"
54+
viewBox="0 0 320 512"
55+
>
56+
<path
57+
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
58+
/>
59+
</svg>
60+
<svg
61+
class="pf-v6-icon-rh-ui"
62+
viewBox="0 0 32 32"
63+
>
64+
<path
65+
d="M16 24.792c-.384 0-.769-.146-1.061-.438L2.293 11.707a.999.999 0 1 1 1.414-1.414L16 22.586l12.293-12.293a.999.999 0 1 1 1.414 1.414L17.061 24.353a1.497 1.497 0 0 1-1.061.438Z"
66+
/>
67+
</svg>
5668
</svg>
5769
</span>
5870
</span>

packages/module/src/components/DesktopViewer/__snapshots__/DesktopViewer.test.tsx.snap

Lines changed: 80 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,24 @@ exports[`DesktopViewer with Spice and VNC 1`] = `
242242
fill="currentColor"
243243
height="1em"
244244
role="img"
245-
viewBox="0 0 256 512"
246245
width="1em"
247246
>
248-
<path
249-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
250-
/>
247+
<svg
248+
class="pf-v6-icon-default"
249+
viewBox="0 0 256 512"
250+
>
251+
<path
252+
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
253+
/>
254+
</svg>
255+
<svg
256+
class="pf-v6-icon-rh-ui"
257+
viewBox="0 0 32 32"
258+
>
259+
<path
260+
d="M11 30a.999.999 0 0 1-.707-1.707L22.586 16 10.293 3.707a.999.999 0 1 1 1.414-1.414l12.646 12.646a1.501 1.501 0 0 1 0 2.121L11.707 29.706a.997.997 0 0 1-.707.293Z"
261+
/>
262+
</svg>
251263
</svg>
252264
</span>
253265
</span>
@@ -590,12 +602,24 @@ exports[`DesktopViewer with Spice, VNC and RDP (different hostname) 1`] = `
590602
fill="currentColor"
591603
height="1em"
592604
role="img"
593-
viewBox="0 0 256 512"
594605
width="1em"
595606
>
596-
<path
597-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
598-
/>
607+
<svg
608+
class="pf-v6-icon-default"
609+
viewBox="0 0 256 512"
610+
>
611+
<path
612+
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
613+
/>
614+
</svg>
615+
<svg
616+
class="pf-v6-icon-rh-ui"
617+
viewBox="0 0 32 32"
618+
>
619+
<path
620+
d="M11 30a.999.999 0 0 1-.707-1.707L22.586 16 10.293 3.707a.999.999 0 1 1 1.414-1.414l12.646 12.646a1.501 1.501 0 0 1 0 2.121L11.707 29.706a.997.997 0 0 1-.707.293Z"
621+
/>
622+
</svg>
599623
</svg>
600624
</span>
601625
</span>
@@ -766,12 +790,24 @@ exports[`DesktopViewer with Spice, VNC and RDP (different hostname) 1`] = `
766790
fill="currentColor"
767791
height="1em"
768792
role="img"
769-
viewBox="0 0 256 512"
770793
width="1em"
771794
>
772-
<path
773-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
774-
/>
795+
<svg
796+
class="pf-v6-icon-default"
797+
viewBox="0 0 256 512"
798+
>
799+
<path
800+
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
801+
/>
802+
</svg>
803+
<svg
804+
class="pf-v6-icon-rh-ui"
805+
viewBox="0 0 32 32"
806+
>
807+
<path
808+
d="M11 30a.999.999 0 0 1-.707-1.707L22.586 16 10.293 3.707a.999.999 0 1 1 1.414-1.414l12.646 12.646a1.501 1.501 0 0 1 0 2.121L11.707 29.706a.997.997 0 0 1-.707.293Z"
809+
/>
810+
</svg>
775811
</svg>
776812
</span>
777813
</span>
@@ -1034,12 +1070,24 @@ exports[`DesktopViewer with Spice, VNC and RDP 1`] = `
10341070
fill="currentColor"
10351071
height="1em"
10361072
role="img"
1037-
viewBox="0 0 256 512"
10381073
width="1em"
10391074
>
1040-
<path
1041-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
1042-
/>
1075+
<svg
1076+
class="pf-v6-icon-default"
1077+
viewBox="0 0 256 512"
1078+
>
1079+
<path
1080+
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
1081+
/>
1082+
</svg>
1083+
<svg
1084+
class="pf-v6-icon-rh-ui"
1085+
viewBox="0 0 32 32"
1086+
>
1087+
<path
1088+
d="M11 30a.999.999 0 0 1-.707-1.707L22.586 16 10.293 3.707a.999.999 0 1 1 1.414-1.414l12.646 12.646a1.501 1.501 0 0 1 0 2.121L11.707 29.706a.997.997 0 0 1-.707.293Z"
1089+
/>
1090+
</svg>
10431091
</svg>
10441092
</span>
10451093
</span>
@@ -1210,12 +1258,24 @@ exports[`DesktopViewer with Spice, VNC and RDP 1`] = `
12101258
fill="currentColor"
12111259
height="1em"
12121260
role="img"
1213-
viewBox="0 0 256 512"
12141261
width="1em"
12151262
>
1216-
<path
1217-
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
1218-
/>
1263+
<svg
1264+
class="pf-v6-icon-default"
1265+
viewBox="0 0 256 512"
1266+
>
1267+
<path
1268+
d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"
1269+
/>
1270+
</svg>
1271+
<svg
1272+
class="pf-v6-icon-rh-ui"
1273+
viewBox="0 0 32 32"
1274+
>
1275+
<path
1276+
d="M11 30a.999.999 0 0 1-.707-1.707L22.586 16 10.293 3.707a.999.999 0 1 1 1.414-1.414l12.646 12.646a1.501 1.501 0 0 1 0 2.121L11.707 29.706a.997.997 0 0 1-.707.293Z"
1277+
/>
1278+
</svg>
12191279
</svg>
12201280
</span>
12211281
</span>

packages/module/src/components/VncConsole/__snapshots__/VncActions.test.tsx.snap

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,24 @@ exports[`VncActions VncActions renders correctly component hierarchy 1`] = `
3030
fill="currentColor"
3131
height="1em"
3232
role="img"
33-
viewBox="0 0 320 512"
3433
width="1em"
3534
>
36-
<path
37-
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
38-
/>
35+
<svg
36+
class="pf-v6-icon-default"
37+
viewBox="0 0 320 512"
38+
>
39+
<path
40+
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
41+
/>
42+
</svg>
43+
<svg
44+
class="pf-v6-icon-rh-ui"
45+
viewBox="0 0 32 32"
46+
>
47+
<path
48+
d="M16 24.792c-.384 0-.769-.146-1.061-.438L2.293 11.707a.999.999 0 1 1 1.414-1.414L16 22.586l12.293-12.293a.999.999 0 1 1 1.414 1.414L17.061 24.353a1.497 1.497 0 0 1-1.061.438Z"
49+
/>
50+
</svg>
3951
</svg>
4052
</span>
4153
</span>
@@ -87,12 +99,24 @@ exports[`VncActions VncActions renders correctly html 1`] = `
8799
fill="currentColor"
88100
height="1em"
89101
role="img"
90-
viewBox="0 0 320 512"
91102
width="1em"
92103
>
93-
<path
94-
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
95-
/>
104+
<svg
105+
class="pf-v6-icon-default"
106+
viewBox="0 0 320 512"
107+
>
108+
<path
109+
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
110+
/>
111+
</svg>
112+
<svg
113+
class="pf-v6-icon-rh-ui"
114+
viewBox="0 0 32 32"
115+
>
116+
<path
117+
d="M16 24.792c-.384 0-.769-.146-1.061-.438L2.293 11.707a.999.999 0 1 1 1.414-1.414L16 22.586l12.293-12.293a.999.999 0 1 1 1.414 1.414L17.061 24.353a1.497 1.497 0 0 1-1.061.438Z"
118+
/>
119+
</svg>
96120
</svg>
97121
</span>
98122
</span>
@@ -144,12 +168,24 @@ exports[`VncActions placeholder render test 1`] = `
144168
fill="currentColor"
145169
height="1em"
146170
role="img"
147-
viewBox="0 0 320 512"
148171
width="1em"
149172
>
150-
<path
151-
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
152-
/>
173+
<svg
174+
class="pf-v6-icon-default"
175+
viewBox="0 0 320 512"
176+
>
177+
<path
178+
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
179+
/>
180+
</svg>
181+
<svg
182+
class="pf-v6-icon-rh-ui"
183+
viewBox="0 0 32 32"
184+
>
185+
<path
186+
d="M16 24.792c-.384 0-.769-.146-1.061-.438L2.293 11.707a.999.999 0 1 1 1.414-1.414L16 22.586l12.293-12.293a.999.999 0 1 1 1.414 1.414L17.061 24.353a1.497 1.497 0 0 1-1.061.438Z"
187+
/>
188+
</svg>
153189
</svg>
154190
</span>
155191
</span>

0 commit comments

Comments
 (0)