@uniformdev/next-app-router 20.61.2-alpha.4 → 20.63.1-alpha.12
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/dist/{UniformComposition-d7_93l3F.d.ts → UniformComposition-BV6YnA2a.d.ts} +2 -2
- package/dist/{UniformComposition-hhRIBHmn.d.mts → UniformComposition-scIgVvIH.d.mts} +2 -2
- package/dist/cache.d.mts +2 -2
- package/dist/cache.d.ts +2 -2
- package/dist/{client-BCGVjYM-.d.mts → client-BlKZeE6C.d.mts} +1 -1
- package/dist/{client-BCGVjYM-.d.ts → client-BlKZeE6C.d.ts} +1 -1
- package/dist/compat.d.mts +3 -3
- package/dist/compat.d.ts +3 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.esm.js +40 -37
- package/dist/index.js +40 -37
- package/dist/index.mjs +40 -37
- package/dist/middleware.d.mts +2 -2
- package/dist/middleware.d.ts +2 -2
- package/dist/middleware.js +40 -37
- package/dist/middleware.mjs +40 -37
- package/dist/{resolveRouteFromCode-DgTsfMK8.d.ts → resolveRouteFromCode-3u61IwOW.d.ts} +1 -1
- package/dist/{resolveRouteFromCode-CKaYNXte.d.mts → resolveRouteFromCode-_CdAMtVM.d.mts} +1 -1
- package/package.json +9 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RootComponentInstance, ComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import { ComponentProps } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import React, { ComponentType } from 'react';
|
|
4
|
-
import { D as DataClient } from './client-
|
|
5
|
-
import { a as ResolvedRouteResult, R as ResolveRouteFunction } from './resolveRouteFromCode-
|
|
4
|
+
import { D as DataClient } from './client-BlKZeE6C.js';
|
|
5
|
+
import { a as ResolvedRouteResult, R as ResolveRouteFunction } from './resolveRouteFromCode-3u61IwOW.js';
|
|
6
6
|
import { ClientContextComponent } from '@uniformdev/next-app-router-client';
|
|
7
7
|
|
|
8
8
|
type CompositionCache = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RootComponentInstance, ComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import { ComponentProps } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import React, { ComponentType } from 'react';
|
|
4
|
-
import { D as DataClient } from './client-
|
|
5
|
-
import { a as ResolvedRouteResult, R as ResolveRouteFunction } from './resolveRouteFromCode-
|
|
4
|
+
import { D as DataClient } from './client-BlKZeE6C.mjs';
|
|
5
|
+
import { a as ResolvedRouteResult, R as ResolveRouteFunction } from './resolveRouteFromCode-_CdAMtVM.mjs';
|
|
6
6
|
import { ClientContextComponent } from '@uniformdev/next-app-router-client';
|
|
7
7
|
|
|
8
8
|
type CompositionCache = {
|
package/dist/cache.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as ResolveRouteFunction } from './resolveRouteFromCode-
|
|
1
|
+
import { R as ResolveRouteFunction } from './resolveRouteFromCode-_CdAMtVM.mjs';
|
|
2
2
|
import '@uniformdev/canvas';
|
|
3
3
|
import '@uniformdev/next-app-router-shared';
|
|
4
|
-
import './client-
|
|
4
|
+
import './client-BlKZeE6C.mjs';
|
|
5
5
|
import '@uniformdev/context';
|
|
6
6
|
|
|
7
7
|
declare const resolveRouteFromCode: ResolveRouteFunction;
|
package/dist/cache.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as ResolveRouteFunction } from './resolveRouteFromCode-
|
|
1
|
+
import { R as ResolveRouteFunction } from './resolveRouteFromCode-3u61IwOW.js';
|
|
2
2
|
import '@uniformdev/canvas';
|
|
3
3
|
import '@uniformdev/next-app-router-shared';
|
|
4
|
-
import './client-
|
|
4
|
+
import './client-BlKZeE6C.js';
|
|
5
5
|
import '@uniformdev/context';
|
|
6
6
|
|
|
7
7
|
declare const resolveRouteFromCode: ResolveRouteFunction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RouteGetParameters,
|
|
1
|
+
import { RouteGetParameters, RouteGetResponse, RouteClient, RouteGetResponseEdgehancedComposition } from '@uniformdev/canvas';
|
|
2
2
|
import { ManifestV2 } from '@uniformdev/context';
|
|
3
3
|
import { PageState } from '@uniformdev/next-app-router-shared';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RouteGetParameters,
|
|
1
|
+
import { RouteGetParameters, RouteGetResponse, RouteClient, RouteGetResponseEdgehancedComposition } from '@uniformdev/canvas';
|
|
2
2
|
import { ManifestV2 } from '@uniformdev/context';
|
|
3
3
|
import { PageState } from '@uniformdev/next-app-router-shared';
|
|
4
4
|
|
package/dist/compat.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
2
|
import { ComponentProps as ComponentProps$1, ComponentParameter } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { U as UniformTextProps$1 } from './UniformText-ChMwHBw4.mjs';
|
|
4
|
-
import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-
|
|
4
|
+
import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-scIgVvIH.mjs';
|
|
5
5
|
import '@uniformdev/next-app-router-client';
|
|
6
6
|
import '@uniformdev/canvas';
|
|
7
|
-
import './client-
|
|
7
|
+
import './client-BlKZeE6C.mjs';
|
|
8
8
|
import '@uniformdev/context';
|
|
9
|
-
import './resolveRouteFromCode-
|
|
9
|
+
import './resolveRouteFromCode-_CdAMtVM.mjs';
|
|
10
10
|
|
|
11
11
|
type ComponentContext = ComponentProps$1['component'] & {
|
|
12
12
|
parameters: Record<string, ComponentParameter>;
|
package/dist/compat.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
2
|
import { ComponentProps as ComponentProps$1, ComponentParameter } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { U as UniformTextProps$1 } from './UniformText-ChMwHBw4.js';
|
|
4
|
-
import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-
|
|
4
|
+
import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-BV6YnA2a.js';
|
|
5
5
|
import '@uniformdev/next-app-router-client';
|
|
6
6
|
import '@uniformdev/canvas';
|
|
7
|
-
import './client-
|
|
7
|
+
import './client-BlKZeE6C.js';
|
|
8
8
|
import '@uniformdev/context';
|
|
9
|
-
import './resolveRouteFromCode-
|
|
9
|
+
import './resolveRouteFromCode-3u61IwOW.js';
|
|
10
10
|
|
|
11
11
|
type ComponentContext = ComponentProps$1['component'] & {
|
|
12
12
|
parameters: Record<string, ComponentParameter>;
|
package/dist/index.d.mts
CHANGED
|
@@ -2,12 +2,12 @@ import { CanvasClient, RouteClient, ComponentInstance } from '@uniformdev/canvas
|
|
|
2
2
|
import { CacheMode, CanvasCacheMode, ManifestCacheMode, ProjectMapCacheMode, RewriteRequestPathResult } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { ManifestClient } from '@uniformdev/context/api';
|
|
4
4
|
import { ProjectMapClient } from '@uniformdev/project-map';
|
|
5
|
-
import { U as UniformCompositionProps } from './UniformComposition-
|
|
6
|
-
export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-
|
|
5
|
+
import { U as UniformCompositionProps } from './UniformComposition-scIgVvIH.mjs';
|
|
6
|
+
export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-scIgVvIH.mjs';
|
|
7
7
|
import React from 'react';
|
|
8
|
-
export { D as DataClient, a as DefaultDataClient, E as EnhanceRouteOptions, G as GetRouteFromMiddlewareOptions, b as GetRouteFromPageStateOptions, c as GetRouteOptions, R as RewriteRouteOptions, d as RewriteRouteResult, e as expireMiddlewareCacheTag } from './client-
|
|
9
|
-
import { a as ResolvedRouteResult } from './resolveRouteFromCode-
|
|
10
|
-
export { R as ResolveRouteFunction, r as resolveRouteFromCode } from './resolveRouteFromCode-
|
|
8
|
+
export { D as DataClient, a as DefaultDataClient, E as EnhanceRouteOptions, G as GetRouteFromMiddlewareOptions, b as GetRouteFromPageStateOptions, c as GetRouteOptions, R as RewriteRouteOptions, d as RewriteRouteResult, e as expireMiddlewareCacheTag } from './client-BlKZeE6C.mjs';
|
|
9
|
+
import { a as ResolvedRouteResult } from './resolveRouteFromCode-_CdAMtVM.mjs';
|
|
10
|
+
export { R as ResolveRouteFunction, r as resolveRouteFromCode } from './resolveRouteFromCode-_CdAMtVM.mjs';
|
|
11
11
|
import '@uniformdev/next-app-router-client';
|
|
12
12
|
import '@uniformdev/context';
|
|
13
13
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { CanvasClient, RouteClient, ComponentInstance } from '@uniformdev/canvas
|
|
|
2
2
|
import { CacheMode, CanvasCacheMode, ManifestCacheMode, ProjectMapCacheMode, RewriteRequestPathResult } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { ManifestClient } from '@uniformdev/context/api';
|
|
4
4
|
import { ProjectMapClient } from '@uniformdev/project-map';
|
|
5
|
-
import { U as UniformCompositionProps } from './UniformComposition-
|
|
6
|
-
export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-
|
|
5
|
+
import { U as UniformCompositionProps } from './UniformComposition-BV6YnA2a.js';
|
|
6
|
+
export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-BV6YnA2a.js';
|
|
7
7
|
import React from 'react';
|
|
8
|
-
export { D as DataClient, a as DefaultDataClient, E as EnhanceRouteOptions, G as GetRouteFromMiddlewareOptions, b as GetRouteFromPageStateOptions, c as GetRouteOptions, R as RewriteRouteOptions, d as RewriteRouteResult, e as expireMiddlewareCacheTag } from './client-
|
|
9
|
-
import { a as ResolvedRouteResult } from './resolveRouteFromCode-
|
|
10
|
-
export { R as ResolveRouteFunction, r as resolveRouteFromCode } from './resolveRouteFromCode-
|
|
8
|
+
export { D as DataClient, a as DefaultDataClient, E as EnhanceRouteOptions, G as GetRouteFromMiddlewareOptions, b as GetRouteFromPageStateOptions, c as GetRouteOptions, R as RewriteRouteOptions, d as RewriteRouteResult, e as expireMiddlewareCacheTag } from './client-BlKZeE6C.js';
|
|
9
|
+
import { a as ResolvedRouteResult } from './resolveRouteFromCode-3u61IwOW.js';
|
|
10
|
+
export { R as ResolveRouteFunction, r as resolveRouteFromCode } from './resolveRouteFromCode-3u61IwOW.js';
|
|
11
11
|
import '@uniformdev/next-app-router-client';
|
|
12
12
|
import '@uniformdev/context';
|
|
13
13
|
|
package/dist/index.esm.js
CHANGED
|
@@ -1575,7 +1575,7 @@ function hasReferencedVariables(value) {
|
|
|
1575
1575
|
return variableTokenCount;
|
|
1576
1576
|
}
|
|
1577
1577
|
function walkNodeTree(node, visitor, options) {
|
|
1578
|
-
var _a, _b;
|
|
1578
|
+
var _a, _b, _c;
|
|
1579
1579
|
const componentQueue = [
|
|
1580
1580
|
{
|
|
1581
1581
|
ancestorsAndSelf: Array.isArray(node) ? node : [{ node, type: "root" }],
|
|
@@ -1583,12 +1583,14 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
];
|
|
1585
1585
|
const childContexts = /* @__PURE__ */ new Map();
|
|
1586
|
+
const order = (_a = options == null ? void 0 : options.order) != null ? _a : "dfs";
|
|
1587
|
+
const takeNext = () => order === "bfs" ? componentQueue.shift() : componentQueue.pop();
|
|
1586
1588
|
do {
|
|
1587
|
-
const currentQueueEntry =
|
|
1589
|
+
const currentQueueEntry = takeNext();
|
|
1588
1590
|
if (!currentQueueEntry) continue;
|
|
1589
1591
|
const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
|
|
1590
1592
|
let visitDescendants = true;
|
|
1591
|
-
let descendantContext = (
|
|
1593
|
+
let descendantContext = (_b = childContexts.get(currentComponent.node)) != null ? _b : currentQueueEntry.context;
|
|
1592
1594
|
let visitorInfo;
|
|
1593
1595
|
if (currentComponent.type === "root" && isRootEntryReference(currentComponent) || currentComponent.type === "block") {
|
|
1594
1596
|
visitorInfo = {
|
|
@@ -1775,39 +1777,11 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1775
1777
|
continue;
|
|
1776
1778
|
}
|
|
1777
1779
|
const slots = "slots" in currentComponent.node && currentComponent.node.slots;
|
|
1778
|
-
|
|
1779
|
-
const slotKeys = Object.keys(slots);
|
|
1780
|
-
for (let slotIndex = slotKeys.length - 1; slotIndex >= 0; slotIndex--) {
|
|
1781
|
-
const slotKey = slotKeys[slotIndex];
|
|
1782
|
-
const components = slots[slotKey];
|
|
1783
|
-
for (let componentIndex = components.length - 1; componentIndex >= 0; componentIndex--) {
|
|
1784
|
-
const enqueueingComponent = components[componentIndex];
|
|
1785
|
-
const parentSlotIndexFn = () => {
|
|
1786
|
-
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1787
|
-
(x) => x === enqueueingComponent
|
|
1788
|
-
);
|
|
1789
|
-
return result;
|
|
1790
|
-
};
|
|
1791
|
-
componentQueue.push({
|
|
1792
|
-
ancestorsAndSelf: [
|
|
1793
|
-
{
|
|
1794
|
-
type: "slot",
|
|
1795
|
-
node: enqueueingComponent,
|
|
1796
|
-
parentSlot: slotKey,
|
|
1797
|
-
parentSlotIndexFn
|
|
1798
|
-
},
|
|
1799
|
-
...currentQueueEntry.ancestorsAndSelf
|
|
1800
|
-
],
|
|
1801
|
-
context: descendantContext
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1780
|
+
const childEntries = [];
|
|
1806
1781
|
const properties = getPropertiesValue(currentComponent.node);
|
|
1807
1782
|
if (properties) {
|
|
1808
1783
|
const propertyEntries = Object.entries(properties);
|
|
1809
|
-
for (
|
|
1810
|
-
const [propKey, propObject] = propertyEntries[propIndex];
|
|
1784
|
+
for (const [propKey, propObject] of propertyEntries) {
|
|
1811
1785
|
if (!isNestedNodeType(propObject.type)) {
|
|
1812
1786
|
continue;
|
|
1813
1787
|
}
|
|
@@ -1827,13 +1801,12 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1827
1801
|
continue;
|
|
1828
1802
|
}
|
|
1829
1803
|
}
|
|
1830
|
-
const blocks = (
|
|
1831
|
-
for (
|
|
1832
|
-
const enqueueingBlock = blocks[blockIndex];
|
|
1804
|
+
const blocks = (_c = propObject.value) != null ? _c : [];
|
|
1805
|
+
for (const enqueueingBlock of blocks) {
|
|
1833
1806
|
const blockIndexFn = () => {
|
|
1834
1807
|
return getBlockValue(currentComponent.node, propKey).findIndex((x) => x === enqueueingBlock);
|
|
1835
1808
|
};
|
|
1836
|
-
|
|
1809
|
+
childEntries.push({
|
|
1837
1810
|
ancestorsAndSelf: [
|
|
1838
1811
|
{
|
|
1839
1812
|
type: "block",
|
|
@@ -1848,6 +1821,36 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1848
1821
|
}
|
|
1849
1822
|
}
|
|
1850
1823
|
}
|
|
1824
|
+
if (slots) {
|
|
1825
|
+
const slotKeys = Object.keys(slots);
|
|
1826
|
+
for (const slotKey of slotKeys) {
|
|
1827
|
+
const components = slots[slotKey];
|
|
1828
|
+
for (const enqueueingComponent of components) {
|
|
1829
|
+
const parentSlotIndexFn = () => {
|
|
1830
|
+
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1831
|
+
(x) => x === enqueueingComponent
|
|
1832
|
+
);
|
|
1833
|
+
return result;
|
|
1834
|
+
};
|
|
1835
|
+
childEntries.push({
|
|
1836
|
+
ancestorsAndSelf: [
|
|
1837
|
+
{
|
|
1838
|
+
type: "slot",
|
|
1839
|
+
node: enqueueingComponent,
|
|
1840
|
+
parentSlot: slotKey,
|
|
1841
|
+
parentSlotIndexFn
|
|
1842
|
+
},
|
|
1843
|
+
...currentQueueEntry.ancestorsAndSelf
|
|
1844
|
+
],
|
|
1845
|
+
context: descendantContext
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
if (order === "dfs") {
|
|
1851
|
+
childEntries.reverse();
|
|
1852
|
+
}
|
|
1853
|
+
componentQueue.push(...childEntries);
|
|
1851
1854
|
} while (componentQueue.length > 0);
|
|
1852
1855
|
}
|
|
1853
1856
|
function isNestedNodeType(type) {
|
package/dist/index.js
CHANGED
|
@@ -1602,7 +1602,7 @@ function hasReferencedVariables(value) {
|
|
|
1602
1602
|
return variableTokenCount;
|
|
1603
1603
|
}
|
|
1604
1604
|
function walkNodeTree(node, visitor, options) {
|
|
1605
|
-
var _a, _b;
|
|
1605
|
+
var _a, _b, _c;
|
|
1606
1606
|
const componentQueue = [
|
|
1607
1607
|
{
|
|
1608
1608
|
ancestorsAndSelf: Array.isArray(node) ? node : [{ node, type: "root" }],
|
|
@@ -1610,12 +1610,14 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
];
|
|
1612
1612
|
const childContexts = /* @__PURE__ */ new Map();
|
|
1613
|
+
const order = (_a = options == null ? void 0 : options.order) != null ? _a : "dfs";
|
|
1614
|
+
const takeNext = () => order === "bfs" ? componentQueue.shift() : componentQueue.pop();
|
|
1613
1615
|
do {
|
|
1614
|
-
const currentQueueEntry =
|
|
1616
|
+
const currentQueueEntry = takeNext();
|
|
1615
1617
|
if (!currentQueueEntry) continue;
|
|
1616
1618
|
const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
|
|
1617
1619
|
let visitDescendants = true;
|
|
1618
|
-
let descendantContext = (
|
|
1620
|
+
let descendantContext = (_b = childContexts.get(currentComponent.node)) != null ? _b : currentQueueEntry.context;
|
|
1619
1621
|
let visitorInfo;
|
|
1620
1622
|
if (currentComponent.type === "root" && isRootEntryReference(currentComponent) || currentComponent.type === "block") {
|
|
1621
1623
|
visitorInfo = {
|
|
@@ -1802,39 +1804,11 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1802
1804
|
continue;
|
|
1803
1805
|
}
|
|
1804
1806
|
const slots = "slots" in currentComponent.node && currentComponent.node.slots;
|
|
1805
|
-
|
|
1806
|
-
const slotKeys = Object.keys(slots);
|
|
1807
|
-
for (let slotIndex = slotKeys.length - 1; slotIndex >= 0; slotIndex--) {
|
|
1808
|
-
const slotKey = slotKeys[slotIndex];
|
|
1809
|
-
const components = slots[slotKey];
|
|
1810
|
-
for (let componentIndex = components.length - 1; componentIndex >= 0; componentIndex--) {
|
|
1811
|
-
const enqueueingComponent = components[componentIndex];
|
|
1812
|
-
const parentSlotIndexFn = () => {
|
|
1813
|
-
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1814
|
-
(x) => x === enqueueingComponent
|
|
1815
|
-
);
|
|
1816
|
-
return result;
|
|
1817
|
-
};
|
|
1818
|
-
componentQueue.push({
|
|
1819
|
-
ancestorsAndSelf: [
|
|
1820
|
-
{
|
|
1821
|
-
type: "slot",
|
|
1822
|
-
node: enqueueingComponent,
|
|
1823
|
-
parentSlot: slotKey,
|
|
1824
|
-
parentSlotIndexFn
|
|
1825
|
-
},
|
|
1826
|
-
...currentQueueEntry.ancestorsAndSelf
|
|
1827
|
-
],
|
|
1828
|
-
context: descendantContext
|
|
1829
|
-
});
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1807
|
+
const childEntries = [];
|
|
1833
1808
|
const properties = getPropertiesValue(currentComponent.node);
|
|
1834
1809
|
if (properties) {
|
|
1835
1810
|
const propertyEntries = Object.entries(properties);
|
|
1836
|
-
for (
|
|
1837
|
-
const [propKey, propObject] = propertyEntries[propIndex];
|
|
1811
|
+
for (const [propKey, propObject] of propertyEntries) {
|
|
1838
1812
|
if (!isNestedNodeType(propObject.type)) {
|
|
1839
1813
|
continue;
|
|
1840
1814
|
}
|
|
@@ -1854,13 +1828,12 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1854
1828
|
continue;
|
|
1855
1829
|
}
|
|
1856
1830
|
}
|
|
1857
|
-
const blocks = (
|
|
1858
|
-
for (
|
|
1859
|
-
const enqueueingBlock = blocks[blockIndex];
|
|
1831
|
+
const blocks = (_c = propObject.value) != null ? _c : [];
|
|
1832
|
+
for (const enqueueingBlock of blocks) {
|
|
1860
1833
|
const blockIndexFn = () => {
|
|
1861
1834
|
return getBlockValue(currentComponent.node, propKey).findIndex((x) => x === enqueueingBlock);
|
|
1862
1835
|
};
|
|
1863
|
-
|
|
1836
|
+
childEntries.push({
|
|
1864
1837
|
ancestorsAndSelf: [
|
|
1865
1838
|
{
|
|
1866
1839
|
type: "block",
|
|
@@ -1875,6 +1848,36 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1875
1848
|
}
|
|
1876
1849
|
}
|
|
1877
1850
|
}
|
|
1851
|
+
if (slots) {
|
|
1852
|
+
const slotKeys = Object.keys(slots);
|
|
1853
|
+
for (const slotKey of slotKeys) {
|
|
1854
|
+
const components = slots[slotKey];
|
|
1855
|
+
for (const enqueueingComponent of components) {
|
|
1856
|
+
const parentSlotIndexFn = () => {
|
|
1857
|
+
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1858
|
+
(x) => x === enqueueingComponent
|
|
1859
|
+
);
|
|
1860
|
+
return result;
|
|
1861
|
+
};
|
|
1862
|
+
childEntries.push({
|
|
1863
|
+
ancestorsAndSelf: [
|
|
1864
|
+
{
|
|
1865
|
+
type: "slot",
|
|
1866
|
+
node: enqueueingComponent,
|
|
1867
|
+
parentSlot: slotKey,
|
|
1868
|
+
parentSlotIndexFn
|
|
1869
|
+
},
|
|
1870
|
+
...currentQueueEntry.ancestorsAndSelf
|
|
1871
|
+
],
|
|
1872
|
+
context: descendantContext
|
|
1873
|
+
});
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
if (order === "dfs") {
|
|
1878
|
+
childEntries.reverse();
|
|
1879
|
+
}
|
|
1880
|
+
componentQueue.push(...childEntries);
|
|
1878
1881
|
} while (componentQueue.length > 0);
|
|
1879
1882
|
}
|
|
1880
1883
|
function isNestedNodeType(type) {
|
package/dist/index.mjs
CHANGED
|
@@ -1575,7 +1575,7 @@ function hasReferencedVariables(value) {
|
|
|
1575
1575
|
return variableTokenCount;
|
|
1576
1576
|
}
|
|
1577
1577
|
function walkNodeTree(node, visitor, options) {
|
|
1578
|
-
var _a, _b;
|
|
1578
|
+
var _a, _b, _c;
|
|
1579
1579
|
const componentQueue = [
|
|
1580
1580
|
{
|
|
1581
1581
|
ancestorsAndSelf: Array.isArray(node) ? node : [{ node, type: "root" }],
|
|
@@ -1583,12 +1583,14 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
];
|
|
1585
1585
|
const childContexts = /* @__PURE__ */ new Map();
|
|
1586
|
+
const order = (_a = options == null ? void 0 : options.order) != null ? _a : "dfs";
|
|
1587
|
+
const takeNext = () => order === "bfs" ? componentQueue.shift() : componentQueue.pop();
|
|
1586
1588
|
do {
|
|
1587
|
-
const currentQueueEntry =
|
|
1589
|
+
const currentQueueEntry = takeNext();
|
|
1588
1590
|
if (!currentQueueEntry) continue;
|
|
1589
1591
|
const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
|
|
1590
1592
|
let visitDescendants = true;
|
|
1591
|
-
let descendantContext = (
|
|
1593
|
+
let descendantContext = (_b = childContexts.get(currentComponent.node)) != null ? _b : currentQueueEntry.context;
|
|
1592
1594
|
let visitorInfo;
|
|
1593
1595
|
if (currentComponent.type === "root" && isRootEntryReference(currentComponent) || currentComponent.type === "block") {
|
|
1594
1596
|
visitorInfo = {
|
|
@@ -1775,39 +1777,11 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1775
1777
|
continue;
|
|
1776
1778
|
}
|
|
1777
1779
|
const slots = "slots" in currentComponent.node && currentComponent.node.slots;
|
|
1778
|
-
|
|
1779
|
-
const slotKeys = Object.keys(slots);
|
|
1780
|
-
for (let slotIndex = slotKeys.length - 1; slotIndex >= 0; slotIndex--) {
|
|
1781
|
-
const slotKey = slotKeys[slotIndex];
|
|
1782
|
-
const components = slots[slotKey];
|
|
1783
|
-
for (let componentIndex = components.length - 1; componentIndex >= 0; componentIndex--) {
|
|
1784
|
-
const enqueueingComponent = components[componentIndex];
|
|
1785
|
-
const parentSlotIndexFn = () => {
|
|
1786
|
-
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1787
|
-
(x) => x === enqueueingComponent
|
|
1788
|
-
);
|
|
1789
|
-
return result;
|
|
1790
|
-
};
|
|
1791
|
-
componentQueue.push({
|
|
1792
|
-
ancestorsAndSelf: [
|
|
1793
|
-
{
|
|
1794
|
-
type: "slot",
|
|
1795
|
-
node: enqueueingComponent,
|
|
1796
|
-
parentSlot: slotKey,
|
|
1797
|
-
parentSlotIndexFn
|
|
1798
|
-
},
|
|
1799
|
-
...currentQueueEntry.ancestorsAndSelf
|
|
1800
|
-
],
|
|
1801
|
-
context: descendantContext
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1780
|
+
const childEntries = [];
|
|
1806
1781
|
const properties = getPropertiesValue(currentComponent.node);
|
|
1807
1782
|
if (properties) {
|
|
1808
1783
|
const propertyEntries = Object.entries(properties);
|
|
1809
|
-
for (
|
|
1810
|
-
const [propKey, propObject] = propertyEntries[propIndex];
|
|
1784
|
+
for (const [propKey, propObject] of propertyEntries) {
|
|
1811
1785
|
if (!isNestedNodeType(propObject.type)) {
|
|
1812
1786
|
continue;
|
|
1813
1787
|
}
|
|
@@ -1827,13 +1801,12 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1827
1801
|
continue;
|
|
1828
1802
|
}
|
|
1829
1803
|
}
|
|
1830
|
-
const blocks = (
|
|
1831
|
-
for (
|
|
1832
|
-
const enqueueingBlock = blocks[blockIndex];
|
|
1804
|
+
const blocks = (_c = propObject.value) != null ? _c : [];
|
|
1805
|
+
for (const enqueueingBlock of blocks) {
|
|
1833
1806
|
const blockIndexFn = () => {
|
|
1834
1807
|
return getBlockValue(currentComponent.node, propKey).findIndex((x) => x === enqueueingBlock);
|
|
1835
1808
|
};
|
|
1836
|
-
|
|
1809
|
+
childEntries.push({
|
|
1837
1810
|
ancestorsAndSelf: [
|
|
1838
1811
|
{
|
|
1839
1812
|
type: "block",
|
|
@@ -1848,6 +1821,36 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1848
1821
|
}
|
|
1849
1822
|
}
|
|
1850
1823
|
}
|
|
1824
|
+
if (slots) {
|
|
1825
|
+
const slotKeys = Object.keys(slots);
|
|
1826
|
+
for (const slotKey of slotKeys) {
|
|
1827
|
+
const components = slots[slotKey];
|
|
1828
|
+
for (const enqueueingComponent of components) {
|
|
1829
|
+
const parentSlotIndexFn = () => {
|
|
1830
|
+
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1831
|
+
(x) => x === enqueueingComponent
|
|
1832
|
+
);
|
|
1833
|
+
return result;
|
|
1834
|
+
};
|
|
1835
|
+
childEntries.push({
|
|
1836
|
+
ancestorsAndSelf: [
|
|
1837
|
+
{
|
|
1838
|
+
type: "slot",
|
|
1839
|
+
node: enqueueingComponent,
|
|
1840
|
+
parentSlot: slotKey,
|
|
1841
|
+
parentSlotIndexFn
|
|
1842
|
+
},
|
|
1843
|
+
...currentQueueEntry.ancestorsAndSelf
|
|
1844
|
+
],
|
|
1845
|
+
context: descendantContext
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
if (order === "dfs") {
|
|
1851
|
+
childEntries.reverse();
|
|
1852
|
+
}
|
|
1853
|
+
componentQueue.push(...childEntries);
|
|
1851
1854
|
} while (componentQueue.length > 0);
|
|
1852
1855
|
}
|
|
1853
1856
|
function isNestedNodeType(type) {
|
package/dist/middleware.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Quirks } from '@uniformdev/context';
|
|
2
|
-
import {
|
|
2
|
+
import { RewriteRequestPathResult, PageState } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { NextRequest, NextResponse } from 'next/server';
|
|
4
|
-
import { D as DataClient } from './client-
|
|
4
|
+
import { D as DataClient } from './client-BlKZeE6C.mjs';
|
|
5
5
|
import '@uniformdev/canvas';
|
|
6
6
|
|
|
7
7
|
type RewriteOptions = {
|
package/dist/middleware.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Quirks } from '@uniformdev/context';
|
|
2
|
-
import {
|
|
2
|
+
import { RewriteRequestPathResult, PageState } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { NextRequest, NextResponse } from 'next/server';
|
|
4
|
-
import { D as DataClient } from './client-
|
|
4
|
+
import { D as DataClient } from './client-BlKZeE6C.js';
|
|
5
5
|
import '@uniformdev/canvas';
|
|
6
6
|
|
|
7
7
|
type RewriteOptions = {
|
package/dist/middleware.js
CHANGED
|
@@ -1771,7 +1771,7 @@ function hasReferencedVariables(value) {
|
|
|
1771
1771
|
return variableTokenCount;
|
|
1772
1772
|
}
|
|
1773
1773
|
function walkNodeTree(node, visitor, options) {
|
|
1774
|
-
var _a, _b;
|
|
1774
|
+
var _a, _b, _c;
|
|
1775
1775
|
const componentQueue = [
|
|
1776
1776
|
{
|
|
1777
1777
|
ancestorsAndSelf: Array.isArray(node) ? node : [{ node, type: "root" }],
|
|
@@ -1779,12 +1779,14 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
];
|
|
1781
1781
|
const childContexts = /* @__PURE__ */ new Map();
|
|
1782
|
+
const order = (_a = options == null ? void 0 : options.order) != null ? _a : "dfs";
|
|
1783
|
+
const takeNext = () => order === "bfs" ? componentQueue.shift() : componentQueue.pop();
|
|
1782
1784
|
do {
|
|
1783
|
-
const currentQueueEntry =
|
|
1785
|
+
const currentQueueEntry = takeNext();
|
|
1784
1786
|
if (!currentQueueEntry) continue;
|
|
1785
1787
|
const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
|
|
1786
1788
|
let visitDescendants = true;
|
|
1787
|
-
let descendantContext = (
|
|
1789
|
+
let descendantContext = (_b = childContexts.get(currentComponent.node)) != null ? _b : currentQueueEntry.context;
|
|
1788
1790
|
let visitorInfo;
|
|
1789
1791
|
if (currentComponent.type === "root" && isRootEntryReference(currentComponent) || currentComponent.type === "block") {
|
|
1790
1792
|
visitorInfo = {
|
|
@@ -1971,39 +1973,11 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1971
1973
|
continue;
|
|
1972
1974
|
}
|
|
1973
1975
|
const slots = "slots" in currentComponent.node && currentComponent.node.slots;
|
|
1974
|
-
|
|
1975
|
-
const slotKeys = Object.keys(slots);
|
|
1976
|
-
for (let slotIndex = slotKeys.length - 1; slotIndex >= 0; slotIndex--) {
|
|
1977
|
-
const slotKey = slotKeys[slotIndex];
|
|
1978
|
-
const components = slots[slotKey];
|
|
1979
|
-
for (let componentIndex = components.length - 1; componentIndex >= 0; componentIndex--) {
|
|
1980
|
-
const enqueueingComponent = components[componentIndex];
|
|
1981
|
-
const parentSlotIndexFn = () => {
|
|
1982
|
-
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1983
|
-
(x) => x === enqueueingComponent
|
|
1984
|
-
);
|
|
1985
|
-
return result;
|
|
1986
|
-
};
|
|
1987
|
-
componentQueue.push({
|
|
1988
|
-
ancestorsAndSelf: [
|
|
1989
|
-
{
|
|
1990
|
-
type: "slot",
|
|
1991
|
-
node: enqueueingComponent,
|
|
1992
|
-
parentSlot: slotKey,
|
|
1993
|
-
parentSlotIndexFn
|
|
1994
|
-
},
|
|
1995
|
-
...currentQueueEntry.ancestorsAndSelf
|
|
1996
|
-
],
|
|
1997
|
-
context: descendantContext
|
|
1998
|
-
});
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
}
|
|
1976
|
+
const childEntries = [];
|
|
2002
1977
|
const properties = getPropertiesValue(currentComponent.node);
|
|
2003
1978
|
if (properties) {
|
|
2004
1979
|
const propertyEntries = Object.entries(properties);
|
|
2005
|
-
for (
|
|
2006
|
-
const [propKey, propObject] = propertyEntries[propIndex];
|
|
1980
|
+
for (const [propKey, propObject] of propertyEntries) {
|
|
2007
1981
|
if (!isNestedNodeType(propObject.type)) {
|
|
2008
1982
|
continue;
|
|
2009
1983
|
}
|
|
@@ -2023,13 +1997,12 @@ function walkNodeTree(node, visitor, options) {
|
|
|
2023
1997
|
continue;
|
|
2024
1998
|
}
|
|
2025
1999
|
}
|
|
2026
|
-
const blocks = (
|
|
2027
|
-
for (
|
|
2028
|
-
const enqueueingBlock = blocks[blockIndex];
|
|
2000
|
+
const blocks = (_c = propObject.value) != null ? _c : [];
|
|
2001
|
+
for (const enqueueingBlock of blocks) {
|
|
2029
2002
|
const blockIndexFn = () => {
|
|
2030
2003
|
return getBlockValue(currentComponent.node, propKey).findIndex((x) => x === enqueueingBlock);
|
|
2031
2004
|
};
|
|
2032
|
-
|
|
2005
|
+
childEntries.push({
|
|
2033
2006
|
ancestorsAndSelf: [
|
|
2034
2007
|
{
|
|
2035
2008
|
type: "block",
|
|
@@ -2044,6 +2017,36 @@ function walkNodeTree(node, visitor, options) {
|
|
|
2044
2017
|
}
|
|
2045
2018
|
}
|
|
2046
2019
|
}
|
|
2020
|
+
if (slots) {
|
|
2021
|
+
const slotKeys = Object.keys(slots);
|
|
2022
|
+
for (const slotKey of slotKeys) {
|
|
2023
|
+
const components = slots[slotKey];
|
|
2024
|
+
for (const enqueueingComponent of components) {
|
|
2025
|
+
const parentSlotIndexFn = () => {
|
|
2026
|
+
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
2027
|
+
(x) => x === enqueueingComponent
|
|
2028
|
+
);
|
|
2029
|
+
return result;
|
|
2030
|
+
};
|
|
2031
|
+
childEntries.push({
|
|
2032
|
+
ancestorsAndSelf: [
|
|
2033
|
+
{
|
|
2034
|
+
type: "slot",
|
|
2035
|
+
node: enqueueingComponent,
|
|
2036
|
+
parentSlot: slotKey,
|
|
2037
|
+
parentSlotIndexFn
|
|
2038
|
+
},
|
|
2039
|
+
...currentQueueEntry.ancestorsAndSelf
|
|
2040
|
+
],
|
|
2041
|
+
context: descendantContext
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
if (order === "dfs") {
|
|
2047
|
+
childEntries.reverse();
|
|
2048
|
+
}
|
|
2049
|
+
componentQueue.push(...childEntries);
|
|
2047
2050
|
} while (componentQueue.length > 0);
|
|
2048
2051
|
}
|
|
2049
2052
|
function isNestedNodeType(type) {
|
package/dist/middleware.mjs
CHANGED
|
@@ -1756,7 +1756,7 @@ function hasReferencedVariables(value) {
|
|
|
1756
1756
|
return variableTokenCount;
|
|
1757
1757
|
}
|
|
1758
1758
|
function walkNodeTree(node, visitor, options) {
|
|
1759
|
-
var _a, _b;
|
|
1759
|
+
var _a, _b, _c;
|
|
1760
1760
|
const componentQueue = [
|
|
1761
1761
|
{
|
|
1762
1762
|
ancestorsAndSelf: Array.isArray(node) ? node : [{ node, type: "root" }],
|
|
@@ -1764,12 +1764,14 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
];
|
|
1766
1766
|
const childContexts = /* @__PURE__ */ new Map();
|
|
1767
|
+
const order = (_a = options == null ? void 0 : options.order) != null ? _a : "dfs";
|
|
1768
|
+
const takeNext = () => order === "bfs" ? componentQueue.shift() : componentQueue.pop();
|
|
1767
1769
|
do {
|
|
1768
|
-
const currentQueueEntry =
|
|
1770
|
+
const currentQueueEntry = takeNext();
|
|
1769
1771
|
if (!currentQueueEntry) continue;
|
|
1770
1772
|
const currentComponent = currentQueueEntry.ancestorsAndSelf[0];
|
|
1771
1773
|
let visitDescendants = true;
|
|
1772
|
-
let descendantContext = (
|
|
1774
|
+
let descendantContext = (_b = childContexts.get(currentComponent.node)) != null ? _b : currentQueueEntry.context;
|
|
1773
1775
|
let visitorInfo;
|
|
1774
1776
|
if (currentComponent.type === "root" && isRootEntryReference(currentComponent) || currentComponent.type === "block") {
|
|
1775
1777
|
visitorInfo = {
|
|
@@ -1956,39 +1958,11 @@ function walkNodeTree(node, visitor, options) {
|
|
|
1956
1958
|
continue;
|
|
1957
1959
|
}
|
|
1958
1960
|
const slots = "slots" in currentComponent.node && currentComponent.node.slots;
|
|
1959
|
-
|
|
1960
|
-
const slotKeys = Object.keys(slots);
|
|
1961
|
-
for (let slotIndex = slotKeys.length - 1; slotIndex >= 0; slotIndex--) {
|
|
1962
|
-
const slotKey = slotKeys[slotIndex];
|
|
1963
|
-
const components = slots[slotKey];
|
|
1964
|
-
for (let componentIndex = components.length - 1; componentIndex >= 0; componentIndex--) {
|
|
1965
|
-
const enqueueingComponent = components[componentIndex];
|
|
1966
|
-
const parentSlotIndexFn = () => {
|
|
1967
|
-
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
1968
|
-
(x) => x === enqueueingComponent
|
|
1969
|
-
);
|
|
1970
|
-
return result;
|
|
1971
|
-
};
|
|
1972
|
-
componentQueue.push({
|
|
1973
|
-
ancestorsAndSelf: [
|
|
1974
|
-
{
|
|
1975
|
-
type: "slot",
|
|
1976
|
-
node: enqueueingComponent,
|
|
1977
|
-
parentSlot: slotKey,
|
|
1978
|
-
parentSlotIndexFn
|
|
1979
|
-
},
|
|
1980
|
-
...currentQueueEntry.ancestorsAndSelf
|
|
1981
|
-
],
|
|
1982
|
-
context: descendantContext
|
|
1983
|
-
});
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
}
|
|
1961
|
+
const childEntries = [];
|
|
1987
1962
|
const properties = getPropertiesValue(currentComponent.node);
|
|
1988
1963
|
if (properties) {
|
|
1989
1964
|
const propertyEntries = Object.entries(properties);
|
|
1990
|
-
for (
|
|
1991
|
-
const [propKey, propObject] = propertyEntries[propIndex];
|
|
1965
|
+
for (const [propKey, propObject] of propertyEntries) {
|
|
1992
1966
|
if (!isNestedNodeType(propObject.type)) {
|
|
1993
1967
|
continue;
|
|
1994
1968
|
}
|
|
@@ -2008,13 +1982,12 @@ function walkNodeTree(node, visitor, options) {
|
|
|
2008
1982
|
continue;
|
|
2009
1983
|
}
|
|
2010
1984
|
}
|
|
2011
|
-
const blocks = (
|
|
2012
|
-
for (
|
|
2013
|
-
const enqueueingBlock = blocks[blockIndex];
|
|
1985
|
+
const blocks = (_c = propObject.value) != null ? _c : [];
|
|
1986
|
+
for (const enqueueingBlock of blocks) {
|
|
2014
1987
|
const blockIndexFn = () => {
|
|
2015
1988
|
return getBlockValue(currentComponent.node, propKey).findIndex((x) => x === enqueueingBlock);
|
|
2016
1989
|
};
|
|
2017
|
-
|
|
1990
|
+
childEntries.push({
|
|
2018
1991
|
ancestorsAndSelf: [
|
|
2019
1992
|
{
|
|
2020
1993
|
type: "block",
|
|
@@ -2029,6 +2002,36 @@ function walkNodeTree(node, visitor, options) {
|
|
|
2029
2002
|
}
|
|
2030
2003
|
}
|
|
2031
2004
|
}
|
|
2005
|
+
if (slots) {
|
|
2006
|
+
const slotKeys = Object.keys(slots);
|
|
2007
|
+
for (const slotKey of slotKeys) {
|
|
2008
|
+
const components = slots[slotKey];
|
|
2009
|
+
for (const enqueueingComponent of components) {
|
|
2010
|
+
const parentSlotIndexFn = () => {
|
|
2011
|
+
const result = currentComponent.node.slots[slotKey].findIndex(
|
|
2012
|
+
(x) => x === enqueueingComponent
|
|
2013
|
+
);
|
|
2014
|
+
return result;
|
|
2015
|
+
};
|
|
2016
|
+
childEntries.push({
|
|
2017
|
+
ancestorsAndSelf: [
|
|
2018
|
+
{
|
|
2019
|
+
type: "slot",
|
|
2020
|
+
node: enqueueingComponent,
|
|
2021
|
+
parentSlot: slotKey,
|
|
2022
|
+
parentSlotIndexFn
|
|
2023
|
+
},
|
|
2024
|
+
...currentQueueEntry.ancestorsAndSelf
|
|
2025
|
+
],
|
|
2026
|
+
context: descendantContext
|
|
2027
|
+
});
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
if (order === "dfs") {
|
|
2032
|
+
childEntries.reverse();
|
|
2033
|
+
}
|
|
2034
|
+
componentQueue.push(...childEntries);
|
|
2032
2035
|
} while (componentQueue.length > 0);
|
|
2033
2036
|
}
|
|
2034
2037
|
function isNestedNodeType(type) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RouteGetResponseEdgehancedComposition } from '@uniformdev/canvas';
|
|
2
2
|
import { PageState } from '@uniformdev/next-app-router-shared';
|
|
3
|
-
import { D as DataClient } from './client-
|
|
3
|
+
import { D as DataClient } from './client-BlKZeE6C.js';
|
|
4
4
|
|
|
5
5
|
type ResolvedRouteResult = {
|
|
6
6
|
pageState: PageState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RouteGetResponseEdgehancedComposition } from '@uniformdev/canvas';
|
|
2
2
|
import { PageState } from '@uniformdev/next-app-router-shared';
|
|
3
|
-
import { D as DataClient } from './client-
|
|
3
|
+
import { D as DataClient } from './client-BlKZeE6C.mjs';
|
|
4
4
|
|
|
5
5
|
type ResolvedRouteResult = {
|
|
6
6
|
pageState: PageState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/next-app-router",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.63.1-alpha.12+914935b899",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@types/node": "20.19.25",
|
|
92
92
|
"@types/react": "19.0.8",
|
|
93
93
|
"@types/react-dom": "19.0.3",
|
|
94
|
-
"next": "16.
|
|
94
|
+
"next": "16.2.3",
|
|
95
95
|
"react": "19.2.0",
|
|
96
96
|
"react-dom": "19.2.0",
|
|
97
97
|
"typescript": "5.9.2",
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"vitest": "3.2.4"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@uniformdev/canvas-react": "20.
|
|
103
|
-
"@uniformdev/next-app-router-client": "20.
|
|
104
|
-
"@uniformdev/next-app-router-shared": "20.
|
|
105
|
-
"@uniformdev/redirect": "20.
|
|
106
|
-
"@uniformdev/richtext": "20.
|
|
107
|
-
"@uniformdev/webhooks": "20.
|
|
102
|
+
"@uniformdev/canvas-react": "20.63.1-alpha.12+914935b899",
|
|
103
|
+
"@uniformdev/next-app-router-client": "20.63.1-alpha.12+914935b899",
|
|
104
|
+
"@uniformdev/next-app-router-shared": "20.63.1-alpha.12+914935b899",
|
|
105
|
+
"@uniformdev/redirect": "20.63.1-alpha.12+914935b899",
|
|
106
|
+
"@uniformdev/richtext": "20.63.1-alpha.12+914935b899",
|
|
107
|
+
"@uniformdev/webhooks": "20.63.1-alpha.12+914935b899",
|
|
108
108
|
"@vercel/functions": "^2.2.2",
|
|
109
109
|
"encoding": "^0.1.13",
|
|
110
110
|
"server-only": "^0.0.1",
|
|
@@ -121,5 +121,5 @@
|
|
|
121
121
|
"publishConfig": {
|
|
122
122
|
"access": "public"
|
|
123
123
|
},
|
|
124
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "914935b89907018dde56a2c49b72e6899d9fb0e2"
|
|
125
125
|
}
|