@vulcanjs/react-ui 0.6.6-y.8 → 0.6.8-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/VulcanComponents/index.d.ts +1 -1
- package/dist/components/VulcanComponents/index.d.ts.map +1 -1
- package/dist/components/core/index.d.ts +4 -0
- package/dist/components/core/index.d.ts.map +1 -0
- package/dist/components/form/FieldErrors.d.ts +6 -0
- package/dist/components/form/Form/Form.d.ts +4 -0
- package/dist/components/form/Form/fields.d.ts +22 -0
- package/dist/components/form/Form/index.d.ts +3 -0
- package/dist/components/form/Form/typings.d.ts +76 -0
- package/dist/components/form/Form/utils.d.ts +2 -0
- package/dist/components/form/FormComponent.d.ts +31 -0
- package/dist/components/form/FormComponentInner.d.ts +32 -0
- package/dist/components/form/FormComponentLoader.d.ts +15 -0
- package/dist/components/form/FormContainer.d.ts +18 -0
- package/dist/components/form/FormContext.d.ts +25 -0
- package/dist/components/form/FormElement.d.ts +4 -0
- package/dist/components/form/FormError.d.ts +11 -0
- package/dist/components/form/FormErrors.d.ts +3 -0
- package/dist/components/form/FormGroup.d.ts +30 -0
- package/dist/components/form/FormIntl.d.ts +15 -0
- package/dist/components/form/FormLayout.d.ts +10 -0
- package/dist/components/form/FormNestedArray.d.ts +26 -0
- package/dist/components/form/FormNestedArrayLayout.d.ts +18 -0
- package/dist/components/form/FormNestedDivider.d.ts +13 -0
- package/dist/components/form/FormNestedItem.d.ts +52 -0
- package/dist/components/form/FormNestedObject.d.ts +35 -0
- package/dist/components/form/FormOptionLabel.d.ts +5 -0
- package/dist/components/form/FormSubmit.d.ts +38 -0
- package/dist/components/form/core/Button.d.ts +4 -0
- package/dist/components/form/core/FormComponent.d.ts +27 -2
- package/dist/components/form/core/FormComponentInner.d.ts +30 -2
- package/dist/components/form/core/FormContainer.d.ts.map +1 -1
- package/dist/components/form/core/FormContext.d.ts.map +1 -1
- package/dist/components/form/core/Loading.d.ts +3 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/AutocompleteMultiple.d.ts +1 -1
- package/dist/components/form/inputs/BasicInputs.d.ts +1 -1
- package/dist/components/form/inputs/Checkboxgroup.d.ts +1 -1
- package/dist/components/form/inputs/FormItem.d.ts +1 -1
- package/dist/components/form/inputs/FormOptionLabel.d.ts +1 -1
- package/dist/components/form/inputs/RadioGroup.d.ts +1 -1
- package/dist/components/form/inputs/SelectInputs.d.ts +1 -1
- package/dist/components/form/modules/formFragments.d.ts +16 -0
- package/dist/components/form/modules/path_utils.d.ts +6 -0
- package/dist/components/form/modules/schema_utils.d.ts +14 -0
- package/dist/components/form/modules/utils.d.ts +17 -0
- package/dist/components/form/ui_utils.d.ts +3 -0
- package/dist/components/form/useBlockTransition/block.d.ts +4 -0
- package/dist/components/form/useBlockTransition/useBlockTransition.d.ts +5 -0
- package/dist/components/form/useWarnOnUnsaved/index.d.ts +2 -0
- package/dist/components/form/useWarnOnUnsaved/useWarnOnUnsaved.d.ts +5 -0
- package/dist/components/form/utils/index.d.ts +6 -0
- package/dist/components/form/utils/index.d.ts.map +1 -0
- package/dist/components/form/utils/ui_utils.d.ts.map +1 -0
- package/dist/decorators/autocomplete.d.ts +8 -0
- package/dist/decorators/index.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1830 -3803
- package/dist/index.js.map +1 -1
- package/dist/testing/ExpectedErrorBoundary.d.ts +14 -0
- package/dist/testing/ExpectedErrorBoundary.d.ts.map +1 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +34 -0
- package/dist/testing.js.map +1 -0
- package/package.json +25 -17
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
export declare class ExpectedErrorBoundary extends React.Component<any, {
|
3
|
+
hasError: boolean;
|
4
|
+
error?: Error;
|
5
|
+
}> {
|
6
|
+
constructor(props: any);
|
7
|
+
static getDerivedStateFromError(error: any): {
|
8
|
+
hasError: boolean;
|
9
|
+
error: any;
|
10
|
+
};
|
11
|
+
componentDidCatch(error: any, errorInfo: any): void;
|
12
|
+
render(): JSX.Element;
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=ExpectedErrorBoundary.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExpectedErrorBoundary.d.ts","sourceRoot":"","sources":["../../testing/ExpectedErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,qBAAa,qBAAsB,SAAQ,KAAK,CAAC,SAAS,CACxD,GAAG,EACH;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CACrC;gBACa,KAAK,KAAA;IAIjB,MAAM,CAAC,wBAAwB,CAAC,KAAK,KAAA;;;;IAKrC,iBAAiB,CAAC,KAAK,KAAA,EAAE,SAAS,KAAA;IAGlC,MAAM;CAsBP"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../testing.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
package/dist/testing.js
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
3
|
+
|
4
|
+
// testing/ExpectedErrorBoundary.tsx
|
5
|
+
import React from "react";
|
6
|
+
var ExpectedErrorBoundary = class extends React.Component {
|
7
|
+
constructor(props) {
|
8
|
+
super(props);
|
9
|
+
this.state = {
|
10
|
+
hasError: false
|
11
|
+
};
|
12
|
+
}
|
13
|
+
static getDerivedStateFromError(error) {
|
14
|
+
console.warn(error);
|
15
|
+
return {
|
16
|
+
hasError: true,
|
17
|
+
error
|
18
|
+
};
|
19
|
+
}
|
20
|
+
componentDidCatch(error, errorInfo) {
|
21
|
+
}
|
22
|
+
render() {
|
23
|
+
var _a;
|
24
|
+
if (this.state.hasError) {
|
25
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "Everything is fine"), /* @__PURE__ */ React.createElement("p", null, "An expected error was caught by the error boundary with message:"), /* @__PURE__ */ React.createElement("p", null, (_a = this.state.error) == null ? void 0 : _a.message));
|
26
|
+
}
|
27
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("p", null, "Waiting for an error to be caught... this message should disappear..."), /* @__PURE__ */ React.createElement("div", null, this.props.children));
|
28
|
+
}
|
29
|
+
};
|
30
|
+
__name(ExpectedErrorBoundary, "ExpectedErrorBoundary");
|
31
|
+
export {
|
32
|
+
ExpectedErrorBoundary
|
33
|
+
};
|
34
|
+
//# sourceMappingURL=testing.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../testing/ExpectedErrorBoundary.tsx"],"sourcesContent":["import React from \"react\";\n// Catches aerror and display correctly\nexport class ExpectedErrorBoundary extends React.Component<\n any,\n { hasError: boolean; error?: Error }\n> {\n constructor(props) {\n super(props);\n this.state = { hasError: false };\n }\n static getDerivedStateFromError(error) {\n console.warn(error);\n // Mettez à jour l'état, de façon à montrer l'UI de repli au prochain rendu.\n return { hasError: true, error };\n }\n componentDidCatch(error, errorInfo) {\n // Vous pouvez aussi enregistrer l'erreur au sein d'un service de rapport.\n }\n render() {\n if (this.state.hasError) {\n // Vous pouvez afficher n'importe quelle UI de repli.\n return (\n <div>\n <h2>Everything is fine</h2>\n <p>\n An expected error was caught by the error boundary with message:\n </p>\n <p>{this.state.error?.message}</p>\n </div>\n );\n }\n return (\n <div>\n <p>\n Waiting for an error to be caught... this message should disappear...\n </p>\n <div>{this.props.children}</div>\n </div>\n );\n }\n}\n"],"mappings":";;;;AAAA;AAEO,0CAAoC,MAAM,UAAS;EAIxD,YAAY,OAAO;AACjB,UAAM,KAAK;AACX,SAAK,QAAQ;MAAE,UAAU;;;SAEpB,yBAAyB,OAAO;AACrC,YAAQ,KAAK,KAAK;AAElB,WAAO;MAAE,UAAU;MAAM;;;EAE3B,kBAAkB,OAAO,WAAW;;EAGpC,SAAS;AAlBX;AAmBI,QAAI,KAAK,MAAM,UAAU;AAEvB,aACE,sBAAA,cAAC,OAAG,MACF,sBAAA,cAAC,MAAE,MAAC,oBAAkB,GACtB,sBAAA,cAAC,KAAC,MAAC,kEAEH,GACA,sBAAA,cAAC,KAAC,MAAE,WAAK,MAAM,UAAX,mBAAkB,OAAO,CAAK;;AAIxC,WACE,sBAAA,cAAC,OAAG,MACF,sBAAA,cAAC,KAAC,MAAC,uEAEH,GACA,sBAAA,cAAC,OAAG,MAAE,KAAK,MAAM,QAAQ,CAAO;;;AAlCjC;","names":[]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vulcanjs/react-ui",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.8-alpha.1",
|
4
4
|
"description": "Vulcan UI components for React",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"files": [
|
@@ -8,9 +8,17 @@
|
|
8
8
|
],
|
9
9
|
"type": "module",
|
10
10
|
"exports": {
|
11
|
-
".": "./dist/index.js"
|
11
|
+
".": "./dist/index.js",
|
12
|
+
"./testing": "./dist/testing.js"
|
12
13
|
},
|
13
14
|
"types": "./dist/index.d.ts",
|
15
|
+
"typesVersions": {
|
16
|
+
"*": {
|
17
|
+
"testing": [
|
18
|
+
"./dist/testing.d.ts"
|
19
|
+
]
|
20
|
+
}
|
21
|
+
},
|
14
22
|
"scripts": {
|
15
23
|
"test": "echo \"Error: no test specified\" && exit 1",
|
16
24
|
"build": "yarn run build:tsup",
|
@@ -20,32 +28,32 @@
|
|
20
28
|
"author": "",
|
21
29
|
"license": "MIT",
|
22
30
|
"dependencies": {
|
23
|
-
"@vulcanjs/core": "^0.6.
|
24
|
-
"@vulcanjs/graphql": "^0.6.
|
25
|
-
"@vulcanjs/i18n": "^0.6.
|
26
|
-
"@vulcanjs/model": "^0.6.
|
27
|
-
"@vulcanjs/permissions": "^0.6.
|
28
|
-
"@vulcanjs/react-hooks": "^0.6.
|
29
|
-
"@vulcanjs/react-i18n": "^0.6.
|
30
|
-
"@vulcanjs/schema": "^0.6.
|
31
|
-
"@vulcanjs/utils": "^0.6.
|
31
|
+
"@vulcanjs/core": "^0.6.7",
|
32
|
+
"@vulcanjs/graphql": "^0.6.7",
|
33
|
+
"@vulcanjs/i18n": "^0.6.7",
|
34
|
+
"@vulcanjs/model": "^0.6.7",
|
35
|
+
"@vulcanjs/permissions": "^0.6.7",
|
36
|
+
"@vulcanjs/react-hooks": "^0.6.7",
|
37
|
+
"@vulcanjs/react-i18n": "^0.6.7",
|
38
|
+
"@vulcanjs/schema": "^0.6.7",
|
39
|
+
"@vulcanjs/utils": "^0.6.7",
|
32
40
|
"classnames": "^2.3.1",
|
33
41
|
"debug": "^4.3.1",
|
34
42
|
"lodash": "^4.17.21",
|
35
43
|
"simpl-schema": "^1.12.0"
|
36
44
|
},
|
45
|
+
"devDependencies": {
|
46
|
+
"@types/lodash": "^4.14.168",
|
47
|
+
"@types/underscore": "^1.11.1"
|
48
|
+
},
|
37
49
|
"peerDependencies": {
|
38
50
|
"@apollo/client": "^3.5.5",
|
51
|
+
"graphql": "^15.5.0",
|
39
52
|
"react": "^17.0.1",
|
40
53
|
"react-dom": "^17.0.1"
|
41
54
|
},
|
42
55
|
"publishConfig": {
|
43
56
|
"access": "public"
|
44
57
|
},
|
45
|
-
"
|
46
|
-
"@types/lodash": "^4.14.168",
|
47
|
-
"@types/underscore": "^1.11.1",
|
48
|
-
"graphql": "^15.5.0"
|
49
|
-
},
|
50
|
-
"gitHead": "116a180e78767d48df4dc3617e4fa67c5a711a4a"
|
58
|
+
"gitHead": "e8354630506a35f831d620d9a99202835652c836"
|
51
59
|
}
|