@dgui/react-router-web-shared 1.6.0-next.3 → 1.7.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -71
- package/dist/Providers/ReactRouterBrowserProvider.d.ts +2 -1
- package/dist/Providers/ReactRouterBrowserProvider.js +14 -2
- package/dist/Providers/ReactRouterBrowserProvider.js.map +1 -1
- package/dist/Providers/index.d.ts +1 -1
- package/dist/Providers/index.js +14 -2
- package/dist/Providers/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +81 -81
package/README.md
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
<h1>
|
|
3
|
+
<a
|
|
4
|
+
href="https://gitlab.com/digested/dgui/"
|
|
5
|
+
>
|
|
6
|
+
@dgui/react-router-web-shared
|
|
7
|
+
</a>
|
|
8
|
+
</h1>
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
11
|
<div align="center">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
<a
|
|
13
|
+
href="https://commitizen.github.io/cz-cli/"
|
|
14
|
+
>
|
|
15
|
+
<img
|
|
16
|
+
alt="Commitizen Friendly"
|
|
17
|
+
src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?maxAge=2592000"
|
|
18
|
+
/>
|
|
19
|
+
</a>
|
|
20
|
+
<a
|
|
21
|
+
href="https://github.com/semantic-release/semantic-release"
|
|
22
|
+
>
|
|
23
|
+
<img
|
|
24
|
+
alt="Semantic Release"
|
|
25
|
+
src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?maxAge=2592000"
|
|
26
|
+
/>
|
|
27
|
+
</a>
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
30
|
<div align="center">
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
31
|
+
<a
|
|
32
|
+
href="https://gitlab.com/digested/dgui/-/commits/main"
|
|
33
|
+
>
|
|
34
|
+
<img
|
|
35
|
+
alt="Build Status"
|
|
36
|
+
src="https://gitlab.com/digested/dgui/badges/main/pipeline.svg"
|
|
37
|
+
/>
|
|
38
|
+
</a>
|
|
39
|
+
<a
|
|
40
|
+
href="https://digested.gitlab.io/dgui/coverage"
|
|
41
|
+
>
|
|
42
|
+
<img
|
|
43
|
+
alt="Coverage Report"
|
|
44
|
+
src="https://gitlab.com/digested/dgui/badges/master/coverage.svg"
|
|
45
|
+
/>
|
|
46
|
+
</a>
|
|
47
|
+
<a
|
|
48
|
+
href="https://www.npmjs.org/package/@dgui/react-router-web-shared"
|
|
49
|
+
>
|
|
50
|
+
<img
|
|
51
|
+
alt="NPM Version"
|
|
52
|
+
src="http://img.shields.io/npm/v/@dgui/react-router-web-shared.svg?maxAge=86400"
|
|
53
|
+
/>
|
|
54
|
+
</a>
|
|
55
|
+
<a
|
|
56
|
+
href="https://www.gnu.org/licenses/lgpl-3.0.html"
|
|
57
|
+
>
|
|
58
|
+
<img
|
|
59
|
+
alt="License"
|
|
60
|
+
src="https://img.shields.io/npm/l/@dgui/react-router-web-shared.svg?maxAge=2592000"
|
|
61
|
+
/>
|
|
62
|
+
</a>
|
|
63
|
+
<a
|
|
64
|
+
href="https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgitlab.com%2Fdigested%2Fdgui.svg?type=shield"
|
|
65
|
+
>
|
|
66
|
+
<img
|
|
67
|
+
alt="FOSSA Status"
|
|
68
|
+
src="https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgitlab.com%2Fdigested%2Fdgui.svg?type=shield&maxAge=3600"
|
|
69
|
+
/>
|
|
70
|
+
</a>
|
|
71
|
+
<a
|
|
72
|
+
href="https://github.com/gajus/canonical"
|
|
73
|
+
>
|
|
74
|
+
<img
|
|
75
|
+
alt="Canonical Code Style"
|
|
76
|
+
src="https://img.shields.io/badge/code%20style-canonical-blue.svg?maxAge=2592000"
|
|
77
|
+
/>
|
|
78
|
+
</a>
|
|
79
79
|
</div>
|
|
80
80
|
<br />
|
|
81
81
|
<br />
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type FunctionComponent, type PropsWithChildren } from 'react';
|
|
2
|
+
import { type BrowserRouterProps } from 'react-router-dom';
|
|
2
3
|
declare const ReactRouterBrowserProvider: FunctionComponent<ReactRouterBrowserProviderProps>;
|
|
3
4
|
export default ReactRouterBrowserProvider;
|
|
4
|
-
export type ReactRouterBrowserProviderProps = PropsWithChildren<{
|
|
5
|
+
export type ReactRouterBrowserProviderProps = BrowserRouterProps & PropsWithChildren<{
|
|
5
6
|
readonly router?: boolean;
|
|
6
7
|
}>;
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
15
|
const react_router_dom_1 = require("react-router-dom");
|
|
5
|
-
const ReactRouterBrowserProvider = (
|
|
16
|
+
const ReactRouterBrowserProvider = (_a) => {
|
|
17
|
+
var { children, router } = _a, props = __rest(_a, ["children", "router"]);
|
|
6
18
|
return router ?
|
|
7
19
|
((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children })) :
|
|
8
|
-
((0, jsx_runtime_1.jsx)(react_router_dom_1.BrowserRouter, { children: children }));
|
|
20
|
+
((0, jsx_runtime_1.jsx)(react_router_dom_1.BrowserRouter, Object.assign({}, props, { children: children })));
|
|
9
21
|
};
|
|
10
22
|
ReactRouterBrowserProvider.displayName = 'ReactRouterBrowserProvider';
|
|
11
23
|
exports.default = ReactRouterBrowserProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactRouterBrowserProvider.js","sourceRoot":"","sources":["../../src/Providers/ReactRouterBrowserProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ReactRouterBrowserProvider.js","sourceRoot":"","sources":["../../src/Providers/ReactRouterBrowserProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,uDAG0B;AAE1B,MAAM,0BAA0B,GAAuD,CAAC,EAIvF,EAAE,EAAE;QAJmF,EACtF,QAAQ,EACR,MAAM,OAEP,EADI,KAAK,cAH8E,sBAIvF,CADS;IAER,OAAO,MAAM,CAAC,CAAC;QAEb,CACE,2DACG,QAAQ,GACR,CACJ,CAAC,CAAC;QAEH,CACE,uBAAC,gCAAa,oBACR,KAAK,cAER,QAAQ,IACK,CACjB,CAAC;AACN,CAAC,CAAC;AAEF,0BAA0B,CAAC,WAAW,GAAG,4BAA4B,CAAC;AAEtE,kBAAe,0BAA0B,CAAC"}
|
|
@@ -2,4 +2,4 @@ import { type ReactRouterBrowserProviderProps } from './ReactRouterBrowserProvid
|
|
|
2
2
|
import { type FunctionComponent, type PropsWithChildren } from 'react';
|
|
3
3
|
declare const Providers: FunctionComponent<ReactRouterWebProvidersProps>;
|
|
4
4
|
export default Providers;
|
|
5
|
-
export type ReactRouterWebProvidersProps = PropsWithChildren<
|
|
5
|
+
export type ReactRouterWebProvidersProps = PropsWithChildren<object> & ReactRouterBrowserProviderProps;
|
package/dist/Providers/index.js
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
17
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
18
|
const ReactRouterBrowserProvider_1 = __importDefault(require("./ReactRouterBrowserProvider"));
|
|
8
|
-
const Providers = (
|
|
9
|
-
|
|
19
|
+
const Providers = (_a) => {
|
|
20
|
+
var { children, router } = _a, props = __rest(_a, ["children", "router"]);
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(ReactRouterBrowserProvider_1.default, Object.assign({ router: router }, props, { children: children })));
|
|
10
22
|
};
|
|
11
23
|
Providers.displayName = 'ReactRouterWebProviders';
|
|
12
24
|
exports.default = Providers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8FAEsC;AAMtC,MAAM,SAAS,GAAoD,CAAC,EAInE,EAAE,EAAE;QAJ+D,EAClE,QAAQ,EACR,MAAM,OAEP,EADI,KAAK,cAH0D,sBAInE,CADS;IAER,OAAO,CACL,uBAAC,oCAA0B,kBACzB,MAAM,EAAE,MAAM,IACV,KAAK,cAER,QAAQ,IACkB,CAC9B,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,yBAAyB,CAAC;AAElD,kBAAe,SAAS,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,yCAGqB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,yCAGqB;AAFnB,qIAAA,OAAO,OAA2B"}
|
package/package.json
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
2
|
+
"name": "@dgui/react-router-web-shared",
|
|
3
|
+
"title": "Digested React GUI Shared Web Router Components",
|
|
4
|
+
"license": "LGPL-3.0-or-later",
|
|
5
|
+
"version": "1.7.0-beta.2",
|
|
6
|
+
"private": false,
|
|
7
|
+
"description": "Shared Web Router Components for a boilerplate React GUI",
|
|
8
|
+
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
9
|
+
"contributors": [
|
|
10
|
+
{
|
|
11
|
+
"name": "Connor Schlesiger",
|
|
12
|
+
"email": "connor@schlesiger.ca",
|
|
13
|
+
"position": "Initial and Lead Developer"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"main": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/",
|
|
20
|
+
"COPYING.md",
|
|
21
|
+
"COPYING.LESSER.md"
|
|
22
|
+
],
|
|
23
|
+
"homepage": "https://gitlab.com/digested/dgui/tree/main/packages/react-router-web-shared",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://gitlab.com/digested/dgui.git"
|
|
27
|
+
},
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://gitlab.com/digested/dgui/issues"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "run-s clean:dist build:prod",
|
|
33
|
+
"build:prod": "tsc -p ./tsconfig.json",
|
|
34
|
+
"build:watch": "tsc -p ./tsconfig.json --watch --pretty --preserveWatchOutput",
|
|
35
|
+
"----------------------------------------------------------------": "",
|
|
36
|
+
"build:prod:config": "",
|
|
37
|
+
"---------------------------------------------------------------": "",
|
|
38
|
+
"lint": "run-p lint:es",
|
|
39
|
+
"lint:es": "eslint",
|
|
40
|
+
"clean": "run-s clean:dist clean:node_modules",
|
|
41
|
+
"clean:node_modules": "rimraf node_modules yarn.lock package-lock.json",
|
|
42
|
+
"clean:dist": "rimraf dist"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@digest/eslint-config-jest": "^4.13.0",
|
|
46
|
+
"@digest/eslint-config-react": "^4.13.0",
|
|
47
|
+
"@digest/eslint-config-typescript": "^4.13.0",
|
|
48
|
+
"@digest/jest-junit": "^4.13.0",
|
|
49
|
+
"@digest/jest-react": "^4.13.0",
|
|
50
|
+
"@digest/jest-typescript": "^4.13.0",
|
|
51
|
+
"@digest/typescript": "^4.13.0",
|
|
52
|
+
"@types/jest": "^29.5.14",
|
|
53
|
+
"@types/react": "^18.3.12",
|
|
54
|
+
"@types/react-test-renderer": "^18.3.0",
|
|
55
|
+
"cross-env": "^7.0.3",
|
|
56
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
57
|
+
"jest-environment-jsdom-global": "^4.0.0",
|
|
58
|
+
"npm-run-all": "^4.1.5",
|
|
59
|
+
"react": "^18.3.1",
|
|
60
|
+
"react-dom": "^18.3.1",
|
|
61
|
+
"react-router": "^6.28.0",
|
|
62
|
+
"react-router-dom": "^6.28.0",
|
|
63
|
+
"react-test-renderer": "^18.3.1",
|
|
64
|
+
"rimraf": "^6.0.1"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"react": "^18.0.0",
|
|
68
|
+
"react-dom": "^18.0.0",
|
|
69
|
+
"react-router": "^6.0.0",
|
|
70
|
+
"react-router-dom": "^6.0.0"
|
|
71
|
+
},
|
|
72
|
+
"keywords": [
|
|
73
|
+
"digest",
|
|
74
|
+
"library",
|
|
75
|
+
"react",
|
|
76
|
+
"reactjs",
|
|
77
|
+
"react-dom",
|
|
78
|
+
"react-router",
|
|
79
|
+
"react-router-dom",
|
|
80
|
+
"typescript"
|
|
81
|
+
],
|
|
82
|
+
"gitHead": "bd8b2233f9e018cbcbbdd91641feb649cb3edb6d"
|
|
83
83
|
}
|