Skip to content

Commit

Permalink
Merge pull request #113 from wagtail/upgrade-sass
Browse files Browse the repository at this point in the history
Security update for npm packages
  • Loading branch information
SaptakS authored May 12, 2022
2 parents 6119cf6 + bede960 commit ff92db2
Show file tree
Hide file tree
Showing 13 changed files with 18,863 additions and 11,258 deletions.
9 changes: 9 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Chrome >= 35
Firefox >= 31
Edge >= 12
Explorer >= 9
iOS >= 8
Safari >= 8
Android 2.3
Android >= 4
Opera >= 12
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"@wagtail/eslint-config-wagtail"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
}
}
20 changes: 20 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": "35",
"firefox": "31",
"edge": "12",
"ie": "9",
"ios": "8",
"safari": "8",
"android": "2.3",
"opera": "12",
},
},
],
["@babel/preset-react"],
]
}
Original file line number Diff line number Diff line change
@@ -1,290 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Multi mounts 1`] = `
ShallowWrapper {
"complexSelector": ComplexSelector {
"buildPredicate": [Function],
"childrenOfNode": [Function],
"findWhereUnwrapped": [Function],
},
"length": 1,
"node": <span
className="c-wagtailautocomplete__layout"
>
<span
className="c-wagtailautocomplete__layout__item"
>
<Suggestions
canCreate={true}
input={
Object {
"value": "",
}
}
inputElm={undefined}
labelId={undefined}
onChange={[Function]}
onClick={[Function]}
onCreate={[Function]}
suggestions={
Array [
Object {
"id": 1,
"title": "Alice",
},
Object {
"id": 2,
"title": "Tekisha",
},
]
}
/>
</span>
<span
className="c-wagtailautocomplete__layout__item"
>
<span>
Nothing selected.
</span>
</span>
</span>,
"nodes": Array [
<span
className="c-wagtailautocomplete__layout"
>
<span
className="c-wagtailautocomplete__layout__item"
>
<Suggestions
canCreate={true}
input={
Object {
"value": "",
}
}
inputElm={undefined}
labelId={undefined}
onChange={[Function]}
onClick={[Function]}
onCreate={[Function]}
suggestions={
Array [
Object {
"id": 1,
"title": "Alice",
},
Object {
"id": 2,
"title": "Tekisha",
},
]
}
/>
</span>
<span
className="c-wagtailautocomplete__layout__item"
>
<span>
Nothing selected.
</span>
</span>
</span>,
],
"options": Object {},
"renderer": ReactShallowRenderer {
"_instance": ShallowComponentWrapper {
"_calledComponentWillUnmount": false,
"_compositeType": 1,
"_context": Object {},
"_currentElement": <Multi
canCreate={true}
input={
Object {
"value": "",
}
}
onChange={[Function]}
onClick={[Function]}
onCreate={[Function]}
selected={Array []}
selections={Array []}
suggestions={
Array [
Object {
"id": 1,
"title": "Alice",
},
Object {
"id": 2,
"title": "Tekisha",
},
]
}
/>,
"_debugID": 1,
"_hostContainerInfo": null,
"_hostParent": null,
"_instance": Multi {
"_reactInternalInstance": [Circular],
"context": Object {},
"handleClick": [Function],
"props": Object {
"canCreate": true,
"input": Object {
"value": "",
},
"onChange": [Function],
"onClick": [Function],
"onCreate": [Function],
"selected": Array [],
"selections": Array [],
"suggestions": Array [
Object {
"id": 1,
"title": "Alice",
},
Object {
"id": 2,
"title": "Tekisha",
},
],
},
"refs": Object {},
"state": null,
"updater": Object {
"enqueueCallback": [Function],
"enqueueCallbackInternal": [Function],
"enqueueElementInternal": [Function],
"enqueueForceUpdate": [Function],
"enqueueReplaceState": [Function],
"enqueueSetState": [Function],
"isMounted": [Function],
"validateCallback": [Function],
},
},
"_mountOrder": 1,
"_pendingCallbacks": null,
"_pendingElement": null,
"_pendingForceUpdate": false,
"_pendingReplaceState": false,
"_pendingStateQueue": null,
"_renderedComponent": NoopInternalComponent {
"_currentElement": <span
className="c-wagtailautocomplete__layout"
>
<span
className="c-wagtailautocomplete__layout__item"
>
<Suggestions
canCreate={true}
input={
Object {
"value": "",
}
}
inputElm={undefined}
labelId={undefined}
onChange={[Function]}
onClick={[Function]}
onCreate={[Function]}
suggestions={
Array [
Object {
"id": 1,
"title": "Alice",
},
Object {
"id": 2,
"title": "Tekisha",
},
]
}
/>
</span>
<span
className="c-wagtailautocomplete__layout__item"
>
<span>
Nothing selected.
</span>
</span>
</span>,
"_debugID": 2,
"_renderedOutput": <span
className="c-wagtailautocomplete__layout"
>
<span
className="c-wagtailautocomplete__layout__item"
>
<Suggestions
canCreate={true}
input={
Object {
"value": "",
}
}
inputElm={undefined}
labelId={undefined}
onChange={[Function]}
onClick={[Function]}
onCreate={[Function]}
suggestions={
Array [
Object {
"id": 1,
"title": "Alice",
},
Object {
"id": 2,
"title": "Tekisha",
},
]
}
/>
</span>
<span
className="c-wagtailautocomplete__layout__item"
>
<span>
Nothing selected.
</span>
</span>
</span>,
},
"_renderedNodeType": 0,
"_rootNodeID": 0,
"_topLevelWrapper": null,
"_updateBatchNumber": null,
"_warnedAboutRefsInRender": false,
},
"getRenderOutput": [Function],
"render": [Function],
},
"root": [Circular],
"unrendered": <Multi
canCreate={true}
input={
Object {
"value": "",
}
}
onChange={[Function]}
onClick={[Function]}
onCreate={[Function]}
selected={Array []}
selections={Array []}
suggestions={
Array [
Object {
"id": 1,
"title": "Alice",
},
Object {
"id": 2,
"title": "Tekisha",
},
]
}
/>,
}
`;
exports[`Multi mounts 1`] = `ShallowWrapper {}`;
Loading

0 comments on commit ff92db2

Please sign in to comment.