Skip to content

Commit 50ca5cd

Browse files
authored
fix: pin mosaic to exact version (#137)
1 parent 5d3acb6 commit 50ca5cd

File tree

4 files changed

+193
-80
lines changed

4 files changed

+193
-80
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@fortawesome/free-solid-svg-icons": "^5.15.2",
4545
"@stoplight/json": "^3.10.0",
4646
"@stoplight/json-schema-tree": "^1.1.3",
47-
"@stoplight/mosaic": "^1.0.0-beta.36",
47+
"@stoplight/mosaic": "1.0.0-beta.46",
4848
"@stoplight/react-error-boundary": "^1.0.0",
4949
"classnames": "^2.2.6",
5050
"lodash": "^4.17.19"

src/__tests__/__snapshots__/index.spec.tsx.snap

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ exports[`HTML Output given anyOf combiner placed next to allOf given allOf mergi
341341
<input type=\\"text\\" style=\\"font-size: 16px\\" />
342342
<label>
343343
<select size=\\"2\\">
344+
<option></option>
344345
<option value=\\"0\\">1. Admin</option>
345346
<option value=\\"1\\">2. Editor</option>
346347
</select>
@@ -476,6 +477,7 @@ exports[`HTML Output given array with oneOf containing items, should merge it co
476477
<input type=\\"text\\" style=\\"font-size: 16px\\" />
477478
<label>
478479
<select size=\\"2\\">
480+
<option></option>
479481
<option value=\\"0\\">1. array of strings</option>
480482
<option value=\\"1\\">2. array of numbers</option>
481483
</select>
@@ -606,6 +608,7 @@ exports[`HTML Output given oneOf combiner placed next to allOf given allOf mergi
606608
<input type=\\"text\\" style=\\"font-size: 16px\\" />
607609
<label>
608610
<select size=\\"2\\">
611+
<option></option>
609612
<option value=\\"0\\">1. Admin</option>
610613
<option value=\\"1\\">2. Editor</option>
611614
</select>
@@ -1224,16 +1227,17 @@ exports[`HTML Output should match arrays/of-complex-objects.json 1`] = `
12241227
<input type=\\"text\\" style=\\"font-size: 16px\\" />
12251228
<label>
12261229
<select size=\\"2\\">
1230+
<option></option>
12271231
<option value=\\"0\\">1. object</option>
12281232
<option value=\\"1\\">2. array of integers</option>
12291233
</select>
12301234
</label>
12311235
</div>
12321236
<div>
12331237
<button
1238+
aria-label=\\"Pick a type\\"
12341239
aria-haspopup=\\"listbox\\"
12351240
aria-expanded=\\"false\\"
1236-
aria-label=\\"Pick a type\\"
12371241
id=\\"react-aria-0-3\\"
12381242
aria-labelledby=\\"react-aria-0-3 react-aria-0-5\\"
12391243
type=\\"button\\"
@@ -2497,6 +2501,7 @@ exports[`HTML Output should match combiners/allOfs/with-type.json 1`] = `
24972501
<input type=\\"text\\" style=\\"font-size: 16px\\" />
24982502
<label>
24992503
<select size=\\"2\\">
2504+
<option></option>
25002505
<option value=\\"0\\">1. BugExample</option>
25012506
<option value=\\"1\\">2. BugExample</option>
25022507
</select>
@@ -2655,6 +2660,7 @@ exports[`HTML Output should match combiners/oneof-with-array-type.json 1`] = `
26552660
<input type=\\"text\\" style=\\"font-size: 16px\\" />
26562661
<label>
26572662
<select size=\\"2\\">
2663+
<option></option>
26582664
<option value=\\"0\\">1. array of objects</option>
26592665
<option value=\\"1\\">2. array of objects</option>
26602666
</select>
@@ -2739,6 +2745,7 @@ exports[`HTML Output should match combiners/oneof-within-array-item.json 1`] = `
27392745
<input type=\\"text\\" style=\\"font-size: 16px\\" />
27402746
<label>
27412747
<select size=\\"2\\">
2748+
<option></option>
27422749
<option value=\\"0\\">1. array of A-s</option>
27432750
<option value=\\"1\\">2. array of B-s</option>
27442751
</select>
@@ -2969,16 +2976,17 @@ exports[`HTML Output should match default-schema.json 1`] = `
29692976
<input type=\\"text\\" style=\\"font-size: 16px\\" />
29702977
<label>
29712978
<select size=\\"2\\">
2979+
<option></option>
29722980
<option value=\\"0\\">1. object</option>
29732981
<option value=\\"1\\">2. array of integers</option>
29742982
</select>
29752983
</label>
29762984
</div>
29772985
<div>
29782986
<button
2987+
aria-label=\\"Pick a type\\"
29792988
aria-haspopup=\\"listbox\\"
29802989
aria-expanded=\\"false\\"
2981-
aria-label=\\"Pick a type\\"
29822990
id=\\"react-aria-0-3\\"
29832991
aria-labelledby=\\"react-aria-0-3 react-aria-0-5\\"
29842992
type=\\"button\\"

src/components/shared/__tests__/Property.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('Property component', () => {
141141

142142
const wrapper = render(schema);
143143
expect(wrapper.html()).toMatchInlineSnapshot(
144-
`"<div class=\\"\\"><div class=\\"sl-relative\\"><div class=\\"sl-flex\\"><div class=\\"sl-min-w-0 sl-flex-grow\\"><div class=\\"\\"><div class=\\"sl-flex sl-items-center sl-my-2\\"><div class=\\"sl-flex sl-items-baseline sl-text-base sl-flex-1\\"><div class=\\"sl-select sl-relative\\"><div style=\\"border: 0px; clip-path: inset(50%); height: 1px; margin: 0px -1px -1px 0px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;\\" aria-hidden=\\"true\\"><input type=\\"text\\" tabindex=\\"-1\\" style=\\"font-size: 16px;\\"><label><select size=\\"2\\" tabindex=\\"-1\\"><option value=\\"0\\">1. array of strings</option><option value=\\"1\\">2. array of numbers</option></select></label></div><div class=\\"sl-relative\\"><button aria-haspopup=\\"listbox\\" aria-expanded=\\"false\\" aria-label=\\"Pick a type\\" id=\\"react-aria-0-3\\" aria-labelledby=\\"react-aria-0-3 react-aria-0-5\\" type=\\"button\\" class=\\"sl-button sl-w-full sl-h-sm sl-text-base sl-font-normal sl-px-1.5 sl-bg-transparent sl-text-body sl-rounded sl-border-transparent hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"><div class=\\"sl-flex sl-flex-grow sl-justify-items-start sl-items-center\\"><div class=\\"sl-pr-1\\">1. array of strings</div></div><div class=\\"sl--mr-0.5 sl-ml-0.5\\"><svg aria-hidden=\\"true\\" focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"chevron-down\\" class=\\"svg-inline--fa fa-chevron-down fa-w-14 fa-xs sl-icon\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 448 512\\"><path fill=\\"currentColor\\" d=\\"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\\"></path></svg></div></button></div></div></div></div></div></div><div></div></div></div></div>"`,
144+
`"<div class=\\"\\"><div class=\\"sl-relative\\"><div class=\\"sl-flex\\"><div class=\\"sl-min-w-0 sl-flex-grow\\"><div class=\\"\\"><div class=\\"sl-flex sl-items-center sl-my-2\\"><div class=\\"sl-flex sl-items-baseline sl-text-base sl-flex-1\\"><div class=\\"sl-select sl-relative\\"><div style=\\"border: 0px; clip-path: inset(50%); height: 1px; margin: 0px -1px -1px 0px; overflow: hidden; padding: 0px; position: absolute; width: 1px; white-space: nowrap;\\" aria-hidden=\\"true\\"><input type=\\"text\\" tabindex=\\"-1\\" style=\\"font-size: 16px;\\"><label><select size=\\"2\\" tabindex=\\"-1\\"><option></option><option value=\\"0\\">1. array of strings</option><option value=\\"1\\">2. array of numbers</option></select></label></div><div class=\\"sl-relative\\"><button aria-label=\\"Pick a type\\" aria-haspopup=\\"listbox\\" aria-expanded=\\"false\\" id=\\"react-aria-0-3\\" aria-labelledby=\\"react-aria-0-3 react-aria-0-5\\" type=\\"button\\" class=\\"sl-button sl-w-full sl-h-sm sl-text-base sl-font-normal sl-px-1.5 sl-bg-transparent sl-text-body sl-rounded sl-border-transparent hover:sl-border-input focus:sl-border-primary disabled:sl-opacity-50\\"><div class=\\"sl-flex sl-flex-1 sl-justify-items-start sl-items-center\\"><div class=\\"sl-pr-1\\">1. array of strings</div></div><div class=\\"sl--mr-0.5 sl-ml-0.5\\"><svg aria-hidden=\\"true\\" focusable=\\"false\\" data-prefix=\\"fas\\" data-icon=\\"chevron-down\\" class=\\"svg-inline--fa fa-chevron-down fa-w-14 fa-xs sl-icon\\" role=\\"img\\" xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 448 512\\"><path fill=\\"currentColor\\" d=\\"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\\"></path></svg></div></button></div></div></div></div></div></div><div></div></div></div></div>"`,
145145
);
146146
});
147147

0 commit comments

Comments
 (0)