Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update to alpha omega release #55

Merged
merged 3 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
},
"dependencies": {
"@novnc/novnc": "^1.3.0",
"@patternfly/react-core": "6.0.0-alpha.50",
"@patternfly/react-styles": "6.0.0-alpha.19",
"@patternfly/react-core": "6.0.0-alpha.61",
"@patternfly/react-styles": "6.0.0-alpha.23",
"@spice-project/spice-html5": "^0.2.1",
"file-saver": "^1.3.8",
"xterm": "^4.8.1",
Expand All @@ -47,11 +47,11 @@
"react-dom": "^17 || ^18"
},
"devDependencies": {
"@patternfly/documentation-framework": "6.0.0-alpha.20",
"@patternfly/patternfly": "6.0.0-alpha.117",
"@patternfly/documentation-framework": "6.0.0-alpha.41",
"@patternfly/patternfly": "6.0.0-alpha.139",
"@patternfly/patternfly-a11y": "^4.3.1",
"@patternfly/react-code-editor": "6.0.0-alpha.50",
"@patternfly/react-table": "6.0.0-alpha.50",
"@patternfly/react-code-editor": "6.0.0-alpha.61",
"@patternfly/react-table": "6.0.0-alpha.61",
"rimraf": "^2.6.2",
"serve": "^14.1.2",
"monaco-editor": "^0.34.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ pageData.liveContext = {
pageData.relativeImports = "import { SerialConsoleCustom } from 'content/extensions/react-console/examples/./SerialConsoleCustom.jsx';"
pageData.examples = {
'Basic Usage': props =>
<Example {...pageData} {...props} thumbnail={srcImportbasicusage} {...{"code":"import React from 'react';\nimport { AccessConsoles, SerialConsole, VncConsole, DesktopViewer } from '@patternfly/react-console';\nimport { SerialConsoleCustom } from './SerialConsoleCustom.jsx';\nimport { debounce } from '@patternfly/react-core';\n\nAccessConsolesVariants = () => {\n const [status, setStatus] = React.useState('disconnected');\n const setConnected = React.useRef(debounce(() => setStatus('connected'), 3000)).current;\n const onConnect = React.useCallback(() => {\n setStatus('loading');\n setConnected();\n }, [setConnected])\n const onDisconnect = React.useCallback(() => setStatus('disconnected'), [])\n const ref = React.createRef();\n\n return (\n <AccessConsoles preselectedType=\"SerialConsole\">\n <VncConsole host=\"localhost\" port=\"9090\" encrypt shared />\n <SerialConsole\n onConnect={onConnect}\n status={status}\n onDisconnect={onDisconnect}\n onData={data => {\n ref.current.onDataReceived(data);\n }}\n ref={ref}\n />\n <SerialConsoleCustom type='Serial Console pty2' />\n <DesktopViewer spice={{ address: '127.0.0.1', port: '5900' }} vnc={{ address: '127.0.0.1', port: '5901' }} />\n </AccessConsoles>\n );\n};","title":"Basic Usage","lang":"js","isFullscreen":true}}>
<Example {...pageData} {...props} thumbnail={srcImportbasicusage} {...{"code":"import React from 'react';\nimport { AccessConsoles, SerialConsole, VncConsole, DesktopViewer } from '@patternfly/react-console';\nimport { SerialConsoleCustom } from './SerialConsoleCustom.jsx';\nimport { debounce } from '@patternfly/react-core';\n\nAccessConsolesVariants = () => {\n const [status, setStatus] = React.useState('disconnected');\n const setConnected = React.useRef(debounce(() => setStatus('connected'), 3000)).current;\n const onConnect = React.useCallback(() => {\n setStatus('loading');\n setConnected();\n }, [setConnected])\n const onDisconnect = React.useCallback(() => setStatus('disconnected'), [])\n const ref = React.createRef();\n\n return (\n <AccessConsoles preselectedType=\"SerialConsole\">\n <VncConsole host=\"localhost\" port=\"9090\" encrypt shared />\n <SerialConsole\n onConnect={onConnect}\n status={status}\n onDisconnect={onDisconnect}\n onData={data => {\n ref.current.onDataReceived(data);\n }}\n ref={ref}\n />\n <SerialConsoleCustom type='Serial Console pty2' />\n <DesktopViewer spice={{ address: '127.0.0.1', port: '5900' }} vnc={{ address: '127.0.0.1', port: '5901' }} />\n </AccessConsoles>\n );\n};","title":"Basic Usage","lang":"js","isFullscreen":true,"className":""}}>

</Example>
};
Expand All @@ -376,10 +376,10 @@ const Component = () => (
<AutoLinkHeader {...{"id":"note","size":"h3","className":"ws-title ws-h3"}}>
{`Note`}
</AutoLinkHeader>
<p {...{"className":"ws-p"}}>
<p {...{"className":"pf-v6-c-content--p ws-p "}}>
{`React console lives in its own package at `}
<PatternflyThemeLink {...{"to":"https://www.npmjs.com/package/@patternfly/react-console"}}>
<code {...{"className":"ws-code"}}>
<PatternflyThemeLink {...{"to":"https://www.npmjs.com/package/@patternfly/react-console","className":""}}>
<code {...{"className":"ws-code "}}>
{`@patternfly/react-console`}
</code>
</PatternflyThemeLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ exports[`AccessConsoles with preselected SerialConsole 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-1"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand All @@ -97,7 +97,7 @@ exports[`AccessConsoles with preselected SerialConsole 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-2"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ exports[`DesktopViewer empty 1`] = `
class="pf-v6-c-console__remote-viewer-launch"
>
<button
aria-disabled="true"
class="pf-v6-c-button pf-m-primary pf-m-disabled pf-v6-c-console__remote-viewer-launch-vv"
aria-disabled="false"
class="pf-v6-c-button pf-m-primary pf-v6-c-console__remote-viewer-launch-vv"
data-ouia-component-id="OUIA-Generated-Button-primary-1"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
disabled=""
type="button"
Expand All @@ -170,7 +170,7 @@ exports[`DesktopViewer empty 1`] = `
<h2
class="pf-v6-c-title pf-m-3xl"
data-ouia-component-id="OUIA-Generated-Title-1"
data-ouia-component-type="PF5/Title"
data-ouia-component-type="PF6/Title"
data-ouia-safe="true"
>
Manual Connection
Expand Down Expand Up @@ -201,7 +201,7 @@ exports[`DesktopViewer with Spice and VNC 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-primary pf-v6-c-console__remote-viewer-launch-vv"
data-ouia-component-id="OUIA-Generated-Button-primary-2"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down Expand Up @@ -380,7 +380,7 @@ exports[`DesktopViewer with Spice and VNC 1`] = `
<h2
class="pf-v6-c-title pf-m-3xl"
data-ouia-component-id="OUIA-Generated-Title-2"
data-ouia-component-type="PF5/Title"
data-ouia-component-type="PF6/Title"
data-ouia-safe="true"
>
Manual Connection
Expand Down Expand Up @@ -522,7 +522,7 @@ exports[`DesktopViewer with Spice, VNC and RDP (different hostname) 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-primary pf-v6-c-console__remote-viewer-launch-vv"
data-ouia-component-id="OUIA-Generated-Button-primary-5"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand All @@ -532,7 +532,7 @@ exports[`DesktopViewer with Spice, VNC and RDP (different hostname) 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-primary pf-v6-c-console__remote-viewer-launch-rdp"
data-ouia-component-id="OUIA-Generated-Button-primary-6"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down Expand Up @@ -752,7 +752,7 @@ exports[`DesktopViewer with Spice, VNC and RDP (different hostname) 1`] = `
<h2
class="pf-v6-c-title pf-m-3xl"
data-ouia-component-id="OUIA-Generated-Title-4"
data-ouia-component-type="PF5/Title"
data-ouia-component-type="PF6/Title"
data-ouia-safe="true"
>
Manual Connection
Expand Down Expand Up @@ -938,7 +938,7 @@ exports[`DesktopViewer with Spice, VNC and RDP 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-primary pf-v6-c-console__remote-viewer-launch-vv"
data-ouia-component-id="OUIA-Generated-Button-primary-3"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand All @@ -948,7 +948,7 @@ exports[`DesktopViewer with Spice, VNC and RDP 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-primary pf-v6-c-console__remote-viewer-launch-rdp"
data-ouia-component-id="OUIA-Generated-Button-primary-4"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down Expand Up @@ -1168,7 +1168,7 @@ exports[`DesktopViewer with Spice, VNC and RDP 1`] = `
<h2
class="pf-v6-c-title pf-m-3xl"
data-ouia-component-id="OUIA-Generated-Title-3"
data-ouia-component-type="PF5/Title"
data-ouia-component-type="PF6/Title"
data-ouia-safe="true"
>
Manual Connection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports[`SerialConsole in the DISCONNECTED state 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-primary"
data-ouia-component-id="OUIA-Generated-Button-primary-1"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand All @@ -53,7 +53,7 @@ exports[`SerialConsole in the LOADING state 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-1"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand All @@ -63,7 +63,7 @@ exports[`SerialConsole in the LOADING state 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-2"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down Expand Up @@ -127,7 +127,7 @@ exports[`SerialConsole with CONNECTED state renders 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-3"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand All @@ -137,7 +137,7 @@ exports[`SerialConsole with CONNECTED state renders 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-4"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`Render SerialConsoleActions 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-1"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand All @@ -19,7 +19,7 @@ exports[`Render SerialConsoleActions 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-2"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand All @@ -38,7 +38,7 @@ exports[`Render SerialConsoleActions with custom texts 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-3"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand All @@ -48,7 +48,7 @@ exports[`Render SerialConsoleActions with custom texts 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-4"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports[`VncActions VncActions renders correctly component hierarchy 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-2"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down Expand Up @@ -92,7 +92,7 @@ exports[`VncActions VncActions renders correctly html 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-3"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down Expand Up @@ -143,7 +143,7 @@ exports[`VncActions placeholder render test 1`] = `
aria-disabled="false"
class="pf-v6-c-button pf-m-secondary"
data-ouia-component-id="OUIA-Generated-Button-secondary-1"
data-ouia-component-type="PF5/Button"
data-ouia-component-type="PF6/Button"
data-ouia-safe="true"
type="button"
>
Expand Down
Loading
Loading