@patternfly/react-code-editor 4.82.113 → 5.0.0-alpha.10
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 +1644 -4732
- package/dist/esm/components/CodeEditor/CodeEditor.d.ts +2 -1
- package/dist/esm/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/esm/components/CodeEditor/CodeEditor.js +1 -1
- package/dist/esm/components/CodeEditor/CodeEditor.js.map +1 -1
- package/dist/esm/components/CodeEditor/CodeEditorControl.d.ts +1 -11
- package/dist/esm/components/CodeEditor/CodeEditorControl.d.ts.map +1 -1
- package/dist/esm/components/CodeEditor/CodeEditorControl.js +2 -25
- package/dist/esm/components/CodeEditor/CodeEditorControl.js.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditor.d.ts +2 -1
- package/dist/js/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditor.js +1 -1
- package/dist/js/components/CodeEditor/CodeEditor.js.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditorControl.d.ts +1 -11
- package/dist/js/components/CodeEditor/CodeEditorControl.d.ts.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditorControl.js +2 -25
- package/dist/js/components/CodeEditor/CodeEditorControl.js.map +1 -1
- package/package.json +7 -7
- package/src/components/CodeEditor/CodeEditor.tsx +3 -3
- package/src/components/CodeEditor/CodeEditorControl.tsx +2 -76
- package/src/components/CodeEditor/__test__/__snapshots__/CodeEditor.test.tsx.snap +77 -65
|
@@ -6,7 +6,8 @@ exports[`CodeEditor matches snapshot with all props 1`] = `
|
|
|
6
6
|
class="pf-c-code-editor pf-m-read-only"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="pf-c-file-upload
|
|
9
|
+
class="pf-c-file-upload false false"
|
|
10
|
+
role="presentation"
|
|
10
11
|
tabindex="0"
|
|
11
12
|
>
|
|
12
13
|
<div
|
|
@@ -15,75 +16,87 @@ exports[`CodeEditor matches snapshot with all props 1`] = `
|
|
|
15
16
|
<div
|
|
16
17
|
class="pf-c-code-editor__controls"
|
|
17
18
|
>
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
aria-label="Copy code to clipboard"
|
|
21
|
-
class="pf-c-button pf-m-control"
|
|
22
|
-
data-ouia-component-id="OUIA-Generated-Button-control-1"
|
|
23
|
-
data-ouia-component-type="PF4/Button"
|
|
24
|
-
data-ouia-safe="true"
|
|
25
|
-
type="button"
|
|
19
|
+
<div
|
|
20
|
+
style="display: contents;"
|
|
26
21
|
>
|
|
27
|
-
<
|
|
28
|
-
aria-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<button
|
|
23
|
+
aria-disabled="false"
|
|
24
|
+
aria-label="Copy code to clipboard"
|
|
25
|
+
class="pf-c-button pf-m-control"
|
|
26
|
+
data-ouia-component-id="OUIA-Generated-Button-control-1"
|
|
27
|
+
data-ouia-component-type="PF4/Button"
|
|
28
|
+
data-ouia-safe="true"
|
|
29
|
+
type="button"
|
|
35
30
|
>
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
31
|
+
<svg
|
|
32
|
+
aria-hidden="true"
|
|
33
|
+
fill="currentColor"
|
|
34
|
+
height="1em"
|
|
35
|
+
role="img"
|
|
36
|
+
style="vertical-align: -0.125em;"
|
|
37
|
+
viewBox="0 0 448 512"
|
|
38
|
+
width="1em"
|
|
39
|
+
>
|
|
40
|
+
<path
|
|
41
|
+
d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"
|
|
42
|
+
/>
|
|
43
|
+
</svg>
|
|
44
|
+
</button>
|
|
45
|
+
</div>
|
|
46
|
+
<div
|
|
47
|
+
style="display: contents;"
|
|
49
48
|
>
|
|
50
|
-
<
|
|
51
|
-
aria-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
<button
|
|
50
|
+
aria-disabled="false"
|
|
51
|
+
aria-label="Upload code"
|
|
52
|
+
class="pf-c-button pf-m-control"
|
|
53
|
+
data-ouia-component-id="OUIA-Generated-Button-control-2"
|
|
54
|
+
data-ouia-component-type="PF4/Button"
|
|
55
|
+
data-ouia-safe="true"
|
|
56
|
+
type="button"
|
|
58
57
|
>
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
58
|
+
<svg
|
|
59
|
+
aria-hidden="true"
|
|
60
|
+
fill="currentColor"
|
|
61
|
+
height="1em"
|
|
62
|
+
role="img"
|
|
63
|
+
style="vertical-align: -0.125em;"
|
|
64
|
+
viewBox="0 0 512 512"
|
|
65
|
+
width="1em"
|
|
66
|
+
>
|
|
67
|
+
<path
|
|
68
|
+
d="M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"
|
|
69
|
+
/>
|
|
70
|
+
</svg>
|
|
71
|
+
</button>
|
|
72
|
+
</div>
|
|
73
|
+
<div
|
|
74
|
+
style="display: contents;"
|
|
72
75
|
>
|
|
73
|
-
<
|
|
74
|
-
aria-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
<button
|
|
77
|
+
aria-disabled="false"
|
|
78
|
+
aria-label="Download code"
|
|
79
|
+
class="pf-c-button pf-m-control"
|
|
80
|
+
data-ouia-component-id="OUIA-Generated-Button-control-3"
|
|
81
|
+
data-ouia-component-type="PF4/Button"
|
|
82
|
+
data-ouia-safe="true"
|
|
83
|
+
type="button"
|
|
81
84
|
>
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
<svg
|
|
86
|
+
aria-hidden="true"
|
|
87
|
+
fill="currentColor"
|
|
88
|
+
height="1em"
|
|
89
|
+
role="img"
|
|
90
|
+
style="vertical-align: -0.125em;"
|
|
91
|
+
viewBox="0 0 512 512"
|
|
92
|
+
width="1em"
|
|
93
|
+
>
|
|
94
|
+
<path
|
|
95
|
+
d="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"
|
|
96
|
+
/>
|
|
97
|
+
</svg>
|
|
98
|
+
</button>
|
|
99
|
+
</div>
|
|
87
100
|
</div>
|
|
88
101
|
<div
|
|
89
102
|
class="pf-c-code-editor__header-main"
|
|
@@ -119,7 +132,6 @@ exports[`CodeEditor matches snapshot with all props 1`] = `
|
|
|
119
132
|
class="pf-c-code-editor__main"
|
|
120
133
|
>
|
|
121
134
|
<input
|
|
122
|
-
autocomplete="off"
|
|
123
135
|
style="display: none;"
|
|
124
136
|
tabindex="-1"
|
|
125
137
|
type="file"
|