@uniweb/kit 0.15.5 → 0.15.6
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/kit",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.6",
|
|
4
4
|
"description": "Standard component library for Uniweb foundations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"shiki": "^3.0.0",
|
|
45
45
|
"tailwind-merge": "^3.6.0",
|
|
46
46
|
"temml": "^0.13.2",
|
|
47
|
-
"@uniweb/
|
|
47
|
+
"@uniweb/core": "^0.19.0",
|
|
48
48
|
"@uniweb/scene": "^0.1.3",
|
|
49
|
-
"@uniweb/
|
|
49
|
+
"@uniweb/semantic-parser": "^1.4.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^19.0.0",
|
|
@@ -99,7 +99,7 @@ export function useEntityDetail(record, options = {}) {
|
|
|
99
99
|
*
|
|
100
100
|
* @param {Object|null} record
|
|
101
101
|
* @param {string} query
|
|
102
|
-
* @returns {{path?: string, url?: string, endpoint?: string,
|
|
102
|
+
* @returns {{path?: string, url?: string, endpoint?: string, as: string}|null}
|
|
103
103
|
*/
|
|
104
104
|
export function buildDetailRequest(record, query) {
|
|
105
105
|
const slug = record?.slug
|
|
@@ -110,7 +110,7 @@ export function buildDetailRequest(record, query) {
|
|
|
110
110
|
|
|
111
111
|
// One synthetic source, resolved by the shared rule — same inputs the
|
|
112
112
|
// EntityStore passes, so the hook cannot disagree with the page it sits on.
|
|
113
|
-
const resolved = resolveFetchConfigs([{ query,
|
|
113
|
+
const resolved = resolveFetchConfigs([{ query, as: query }], {
|
|
114
114
|
queries: config?.queries ?? null,
|
|
115
115
|
records: config?.records ?? null,
|
|
116
116
|
locale: website?.getActiveLocale?.() ?? null,
|