@webiny/app 6.3.0-beta.2 → 6.3.0-beta.4
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/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app",
|
|
3
|
-
"version": "6.3.0-beta.
|
|
3
|
+
"version": "6.3.0-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./index.js",
|
|
7
|
+
"./*": "./*"
|
|
8
|
+
},
|
|
6
9
|
"repository": {
|
|
7
10
|
"type": "git",
|
|
8
11
|
"url": "https://github.com/webiny/webiny-js.git"
|
|
@@ -19,12 +22,12 @@
|
|
|
19
22
|
"@emotion/styled": "11.14.1",
|
|
20
23
|
"@types/react": "18.3.28",
|
|
21
24
|
"@webiny/di": "0.2.3",
|
|
22
|
-
"@webiny/feature": "6.3.0-beta.
|
|
23
|
-
"@webiny/i18n": "6.3.0-beta.
|
|
24
|
-
"@webiny/i18n-react": "6.3.0-beta.
|
|
25
|
-
"@webiny/plugins": "6.3.0-beta.
|
|
26
|
-
"@webiny/react-composition": "6.3.0-beta.
|
|
27
|
-
"@webiny/react-properties": "6.3.0-beta.
|
|
25
|
+
"@webiny/feature": "6.3.0-beta.4",
|
|
26
|
+
"@webiny/i18n": "6.3.0-beta.4",
|
|
27
|
+
"@webiny/i18n-react": "6.3.0-beta.4",
|
|
28
|
+
"@webiny/plugins": "6.3.0-beta.4",
|
|
29
|
+
"@webiny/react-composition": "6.3.0-beta.4",
|
|
30
|
+
"@webiny/react-properties": "6.3.0-beta.4",
|
|
28
31
|
"apollo-cache": "1.3.5",
|
|
29
32
|
"apollo-cache-inmemory": "1.6.6",
|
|
30
33
|
"apollo-client": "2.6.10",
|
|
@@ -40,8 +43,8 @@
|
|
|
40
43
|
"invariant": "2.2.4",
|
|
41
44
|
"lodash": "4.18.1",
|
|
42
45
|
"minimatch": "10.2.5",
|
|
43
|
-
"mobx": "6.15.
|
|
44
|
-
"nanoid": "5.1.
|
|
46
|
+
"mobx": "6.15.1",
|
|
47
|
+
"nanoid": "5.1.11",
|
|
45
48
|
"react": "18.3.1",
|
|
46
49
|
"react-dom": "18.3.1",
|
|
47
50
|
"ts-invariant": "0.10.3",
|
|
@@ -51,7 +54,7 @@
|
|
|
51
54
|
"devDependencies": {
|
|
52
55
|
"@types/lodash": "4.17.24",
|
|
53
56
|
"@types/warning": "3.0.4",
|
|
54
|
-
"@webiny/build-tools": "6.3.0-beta.
|
|
57
|
+
"@webiny/build-tools": "6.3.0-beta.4",
|
|
55
58
|
"rimraf": "6.1.3",
|
|
56
59
|
"type-fest": "5.6.0",
|
|
57
60
|
"typescript": "6.0.3",
|
|
@@ -68,5 +71,5 @@
|
|
|
68
71
|
]
|
|
69
72
|
}
|
|
70
73
|
},
|
|
71
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "7cefe15431dbd65504e1f58147dc9e55bcbfa693"
|
|
72
75
|
}
|
|
@@ -3,7 +3,7 @@ import { autorun } from "mobx";
|
|
|
3
3
|
import { RouterFeature } from "../../../features/router/feature.js";
|
|
4
4
|
import { useFeature } from "../../../shared/di/useFeature.js";
|
|
5
5
|
export function useRoute(
|
|
6
|
-
//
|
|
6
|
+
// oxlint-disable-next-line typescript/no-unused-vars
|
|
7
7
|
route) {
|
|
8
8
|
const {
|
|
9
9
|
presenter
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useState","autorun","RouterFeature","useFeature","useRoute","route","presenter","currentRoute","setCurrentRoute","vm","setRouteParams","bind"],"sources":["useRoute.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport { autorun } from \"mobx\";\nimport type { Route, RouteParamsDefinition, RouteParamsInfer } from \"~/features/router/Route.js\";\nimport { MatchedRoute } from \"~/features/router/abstractions.js\";\nimport { RouterFeature } from \"~/features/router/feature.js\";\nimport { useFeature } from \"~/shared/di/useFeature.js\";\n\nexport function useRoute<TParams extends RouteParamsDefinition | undefined = undefined>(\n //
|
|
1
|
+
{"version":3,"names":["useEffect","useState","autorun","RouterFeature","useFeature","useRoute","route","presenter","currentRoute","setCurrentRoute","vm","setRouteParams","bind"],"sources":["useRoute.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport { autorun } from \"mobx\";\nimport type { Route, RouteParamsDefinition, RouteParamsInfer } from \"~/features/router/Route.js\";\nimport { MatchedRoute } from \"~/features/router/abstractions.js\";\nimport { RouterFeature } from \"~/features/router/feature.js\";\nimport { useFeature } from \"~/shared/di/useFeature.js\";\n\nexport function useRoute<TParams extends RouteParamsDefinition | undefined = undefined>(\n // oxlint-disable-next-line typescript/no-unused-vars\n route?: Route<TParams>\n) {\n const { presenter } = useFeature(RouterFeature);\n const [currentRoute, setCurrentRoute] = useState<MatchedRoute | undefined>(\n presenter.vm.currentRoute\n );\n\n useEffect(() => {\n autorun(() => {\n const route = presenter.vm.currentRoute;\n\n if (!route) {\n return;\n }\n\n setCurrentRoute(route);\n });\n }, []);\n\n // TODO: add validation (the requested route must match the current route)\n\n return {\n route: currentRoute as MatchedRoute<\n TParams extends RouteParamsDefinition ? RouteParamsInfer<TParams> : undefined\n >,\n setRouteParams: presenter.setRouteParams.bind(presenter)\n };\n}\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,OAAO,QAAQ,MAAM;AAG9B,SAASC,aAAa;AACtB,SAASC,UAAU;AAEnB,OAAO,SAASC,QAAQA;AACpB;AACAC,KAAsB,EACxB;EACE,MAAM;IAAEC;EAAU,CAAC,GAAGH,UAAU,CAACD,aAAa,CAAC;EAC/C,MAAM,CAACK,YAAY,EAAEC,eAAe,CAAC,GAAGR,QAAQ,CAC5CM,SAAS,CAACG,EAAE,CAACF,YACjB,CAAC;EAEDR,SAAS,CAAC,MAAM;IACZE,OAAO,CAAC,MAAM;MACV,MAAMI,KAAK,GAAGC,SAAS,CAACG,EAAE,CAACF,YAAY;MAEvC,IAAI,CAACF,KAAK,EAAE;QACR;MACJ;MAEAG,eAAe,CAACH,KAAK,CAAC;IAC1B,CAAC,CAAC;EACN,CAAC,EAAE,EAAE,CAAC;;EAEN;;EAEA,OAAO;IACHA,KAAK,EAAEE,YAEN;IACDG,cAAc,EAAEJ,SAAS,CAACI,cAAc,CAACC,IAAI,CAACL,SAAS;EAC3D,CAAC;AACL","ignoreList":[]}
|