Skip to content

Commit e123eb8

Browse files
committed
do an npm audit fix
1 parent a332130 commit e123eb8

File tree

7 files changed

+28
-20
lines changed

7 files changed

+28
-20
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ An explanation of each of the props follows:
104104
|makePreviousLink|function|A render prop which returns an element which lets the user tell the paged form to return to the previous page. The parameters is (*previousPage*, *onClick*). *previousPage* is the page number (starting 0) of the previous page. *onClick* is a function the rendered element must call when the user has requested to go to the previous page. It has one argument which is the number of the page to which to go.|
105105
|makeNextLink|function|A render prop which returns an element which lets the user tell the paged form to go to the next page. The parameters is (*nextPage*, *onClick*). *nextPage* is the page number (starting 0) of the next page. *onClick* is a function the rendered element must call when the user has requested to go to the next page. It has one argument which is the number of the page to which to go.|
106106

107+
## Styling the components
108+
109+
The package comes with a base CSS file which sets up expected layout. This can then be overriden with style customisations.
110+
111+
import "@restspace/schema-form/build/index.css";
112+
107113

108114
## JSON schema
109115
JSON Schema is a (provisional but widely used) web standard defining a system for describing validity conditions on a JSON object. It is described here: [https://json-schema.org/](https://json-schema.org/).

build/index.es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20738,7 +20738,7 @@ function UploadEditor(props) {
2073820738
if (schema['acceptedExtensions']) {
2073920739
var getExt_1 = function (name) {
2074020740
var parts = name.split('.');
20741-
return parts.length === 1 ? '' : parts[parts.length - 1];
20741+
return parts.length === 1 ? '' : parts[parts.length - 1].toLowerCase();
2074220742
};
2074320743
var accepted_1 = schema['acceptedExtensions'].map(function (ext) { return ext.startsWith('.') ? ext.substr(1) : ext; });
2074420744
var badExtensions = acceptedFiles.filter(function (f) { return !accepted_1.includes(getExt_1(f.name)); });

build/index.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20745,7 +20745,7 @@ function UploadEditor(props) {
2074520745
if (schema['acceptedExtensions']) {
2074620746
var getExt_1 = function (name) {
2074720747
var parts = name.split('.');
20748-
return parts.length === 1 ? '' : parts[parts.length - 1];
20748+
return parts.length === 1 ? '' : parts[parts.length - 1].toLowerCase();
2074920749
};
2075020750
var accepted_1 = schema['acceptedExtensions'].map(function (ext) { return ext.startsWith('.') ? ext.substr(1) : ext; });
2075120751
var badExtensions = acceptedFiles.filter(function (f) { return !accepted_1.includes(getExt_1(f.name)); });

build/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 14 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "@lynicon/schema-form",
2+
"name": "@restspace/schema-form",
33
"version": "1.0.3",
44
"description": "JSON Schema based form generator in React",
55
"author": "James Ellis-Jones",
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/jamesej/schema-form.git"
9+
"url": "git+https://github.com/restspace/schema-form.git"
1010
},
1111
"keywords": [
1212
"react",
@@ -26,9 +26,9 @@
2626
"build": "rollup -c"
2727
},
2828
"bugs": {
29-
"url": "https://github.com/jamesej/schema-form/issues"
29+
"url": "https://github.com/restspace/schema-form/issues"
3030
},
31-
"homepage": "https://github.com/jamesej/schema-form#readme",
31+
"homepage": "https://github.com/restspace/schema-form#readme",
3232
"devDependencies": {
3333
"@babel/core": "^7.5.5",
3434
"@babel/preset-env": "^7.5.5",

0 commit comments

Comments
 (0)