@vulcanjs/react-ui 0.6.6-y.14 → 0.6.6-y.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/VulcanComponents/Consumer.d.ts.map +0 -0
- package/dist/components/VulcanComponents/Context.d.ts.map +0 -0
- package/dist/components/VulcanComponents/Dummy.d.ts.map +0 -0
- package/dist/components/VulcanComponents/Provider.d.ts.map +0 -0
- package/dist/components/VulcanComponents/defaultVulcanComponents/index.d.ts.map +0 -0
- package/dist/components/VulcanComponents/index.d.ts.map +0 -0
- package/dist/components/VulcanComponents/typings.d.ts.map +0 -0
- package/dist/components/VulcanCurrentUser/Consumer.d.ts.map +0 -0
- package/dist/components/VulcanCurrentUser/Context.d.ts.map +0 -0
- package/dist/components/VulcanCurrentUser/Provider.d.ts.map +0 -0
- package/dist/components/VulcanCurrentUser/index.d.ts.map +0 -0
- package/dist/components/core/LoadingButton.d.ts.map +0 -0
- package/dist/components/core/MutationButton.d.ts.map +0 -0
- package/dist/components/core/typings.d.ts.map +0 -0
- package/dist/components/form/core/Form/Form.d.ts.map +0 -0
- package/dist/components/form/core/Form/fields.d.ts.map +0 -0
- package/dist/components/form/core/Form/index.d.ts.map +0 -0
- package/dist/components/form/core/Form/typings.d.ts.map +0 -0
- package/dist/components/form/core/Form/utils.d.ts.map +0 -0
- package/dist/components/form/core/FormContainer.d.ts.map +0 -0
- package/dist/components/form/core/FormContext.d.ts.map +0 -0
- package/dist/components/form/core/index.d.ts.map +0 -0
- package/dist/components/form/hooks/useBlockTransition/block.d.ts.map +0 -0
- package/dist/components/form/hooks/useBlockTransition/useBlockTransition.d.ts.map +0 -0
- package/dist/components/form/hooks/useWarnOnUnsaved/index.d.ts.map +0 -0
- package/dist/components/form/hooks/useWarnOnUnsaved/useWarnOnUnsaved.d.ts.map +0 -0
- package/dist/components/form/index.d.ts.map +0 -0
- package/dist/components/form/typings.d.ts.map +0 -0
- package/dist/components/form/utils/formFragments.d.ts.map +0 -0
- package/dist/components/form/utils/path_utils.d.ts.map +0 -0
- package/dist/components/form/utils/schema_utils.d.ts.map +0 -0
- package/dist/components/form/utils/utils.d.ts.map +0 -0
- package/dist/componentsHelpers.d.ts.map +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/testing.js +34 -0
- package/dist/testing.js.map +1 -0
- package/package.json +13 -5
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/dist/index.d.ts.map
CHANGED
File without changes
|
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.6-y.
|
3
|
+
"version": "0.6.6-y.15",
|
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",
|
@@ -21,11 +29,11 @@
|
|
21
29
|
"license": "MIT",
|
22
30
|
"dependencies": {
|
23
31
|
"@vulcanjs/core": "^0.6.4",
|
24
|
-
"@vulcanjs/graphql": "^0.6.6-
|
32
|
+
"@vulcanjs/graphql": "^0.6.6-y.15",
|
25
33
|
"@vulcanjs/i18n": "^0.6.4",
|
26
34
|
"@vulcanjs/model": "^0.6.4",
|
27
35
|
"@vulcanjs/permissions": "^0.6.4",
|
28
|
-
"@vulcanjs/react-hooks": "^0.6.6-
|
36
|
+
"@vulcanjs/react-hooks": "^0.6.6-y.15",
|
29
37
|
"@vulcanjs/react-i18n": "^0.6.4",
|
30
38
|
"@vulcanjs/schema": "^0.6.4",
|
31
39
|
"@vulcanjs/utils": "^0.6.4",
|
@@ -47,5 +55,5 @@
|
|
47
55
|
"@types/underscore": "^1.11.1",
|
48
56
|
"graphql": "^15.5.0"
|
49
57
|
},
|
50
|
-
"gitHead": "
|
58
|
+
"gitHead": "fe716c6a0f8a37678612307f301bf1b3b902467c"
|
51
59
|
}
|