@uniformdev/next-app-router 20.48.1-alpha.28 → 20.48.1-alpha.9
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/cache.js +5 -1
- package/dist/cache.mjs +5 -1
- package/dist/index.esm.js +5 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/dist/middleware.js +7 -2
- package/dist/middleware.mjs +7 -2
- package/package.json +8 -8
package/dist/cache.js
CHANGED
|
@@ -1400,6 +1400,9 @@ var isIncontextEditingEnabled = ({
|
|
|
1400
1400
|
var isDevelopmentEnvironment = () => {
|
|
1401
1401
|
return process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
1402
1402
|
};
|
|
1403
|
+
var shouldIgnoreRedirects = ({ state }) => {
|
|
1404
|
+
return state !== CANVAS_PUBLISHED_STATE;
|
|
1405
|
+
};
|
|
1403
1406
|
|
|
1404
1407
|
// src/clients/cache.ts
|
|
1405
1408
|
var isStateCacheMode = (options) => {
|
|
@@ -1856,7 +1859,8 @@ var DefaultDataClient = class {
|
|
|
1856
1859
|
state: options.pageState.compositionState,
|
|
1857
1860
|
withComponentIDs: true,
|
|
1858
1861
|
releaseId: options.pageState.releaseId,
|
|
1859
|
-
locale: options.pageState.locale
|
|
1862
|
+
locale: options.pageState.locale,
|
|
1863
|
+
ignoreRedirects: shouldIgnoreRedirects({ state: options.pageState.compositionState })
|
|
1860
1864
|
};
|
|
1861
1865
|
const resolvedRoute = await this.getRouteFromApi({
|
|
1862
1866
|
source: "pageState",
|
package/dist/cache.mjs
CHANGED
|
@@ -1387,6 +1387,9 @@ var isIncontextEditingEnabled = ({
|
|
|
1387
1387
|
var isDevelopmentEnvironment = () => {
|
|
1388
1388
|
return process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
1389
1389
|
};
|
|
1390
|
+
var shouldIgnoreRedirects = ({ state }) => {
|
|
1391
|
+
return state !== CANVAS_PUBLISHED_STATE;
|
|
1392
|
+
};
|
|
1390
1393
|
|
|
1391
1394
|
// src/clients/cache.ts
|
|
1392
1395
|
var isStateCacheMode = (options) => {
|
|
@@ -1843,7 +1846,8 @@ var DefaultDataClient = class {
|
|
|
1843
1846
|
state: options.pageState.compositionState,
|
|
1844
1847
|
withComponentIDs: true,
|
|
1845
1848
|
releaseId: options.pageState.releaseId,
|
|
1846
|
-
locale: options.pageState.locale
|
|
1849
|
+
locale: options.pageState.locale,
|
|
1850
|
+
ignoreRedirects: shouldIgnoreRedirects({ state: options.pageState.compositionState })
|
|
1847
1851
|
};
|
|
1848
1852
|
const resolvedRoute = await this.getRouteFromApi({
|
|
1849
1853
|
source: "pageState",
|
package/dist/index.esm.js
CHANGED
|
@@ -1973,6 +1973,9 @@ var isIncontextEditingEnabled = ({
|
|
|
1973
1973
|
var isDevelopmentEnvironment = () => {
|
|
1974
1974
|
return process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
1975
1975
|
};
|
|
1976
|
+
var shouldIgnoreRedirects = ({ state }) => {
|
|
1977
|
+
return state !== CANVAS_PUBLISHED_STATE;
|
|
1978
|
+
};
|
|
1976
1979
|
|
|
1977
1980
|
// src/clients/cache.ts
|
|
1978
1981
|
var isStateCacheMode = (options) => {
|
|
@@ -3739,7 +3742,8 @@ var DefaultDataClient = class {
|
|
|
3739
3742
|
state: options.pageState.compositionState,
|
|
3740
3743
|
withComponentIDs: true,
|
|
3741
3744
|
releaseId: options.pageState.releaseId,
|
|
3742
|
-
locale: options.pageState.locale
|
|
3745
|
+
locale: options.pageState.locale,
|
|
3746
|
+
ignoreRedirects: shouldIgnoreRedirects({ state: options.pageState.compositionState })
|
|
3743
3747
|
};
|
|
3744
3748
|
const resolvedRoute = await this.getRouteFromApi({
|
|
3745
3749
|
source: "pageState",
|
package/dist/index.js
CHANGED
|
@@ -2000,6 +2000,9 @@ var isIncontextEditingEnabled = ({
|
|
|
2000
2000
|
var isDevelopmentEnvironment = () => {
|
|
2001
2001
|
return process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
2002
2002
|
};
|
|
2003
|
+
var shouldIgnoreRedirects = ({ state }) => {
|
|
2004
|
+
return state !== CANVAS_PUBLISHED_STATE;
|
|
2005
|
+
};
|
|
2003
2006
|
|
|
2004
2007
|
// src/clients/cache.ts
|
|
2005
2008
|
var isStateCacheMode = (options) => {
|
|
@@ -3760,7 +3763,8 @@ var DefaultDataClient = class {
|
|
|
3760
3763
|
state: options.pageState.compositionState,
|
|
3761
3764
|
withComponentIDs: true,
|
|
3762
3765
|
releaseId: options.pageState.releaseId,
|
|
3763
|
-
locale: options.pageState.locale
|
|
3766
|
+
locale: options.pageState.locale,
|
|
3767
|
+
ignoreRedirects: shouldIgnoreRedirects({ state: options.pageState.compositionState })
|
|
3764
3768
|
};
|
|
3765
3769
|
const resolvedRoute = await this.getRouteFromApi({
|
|
3766
3770
|
source: "pageState",
|
package/dist/index.mjs
CHANGED
|
@@ -1973,6 +1973,9 @@ var isIncontextEditingEnabled = ({
|
|
|
1973
1973
|
var isDevelopmentEnvironment = () => {
|
|
1974
1974
|
return process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
1975
1975
|
};
|
|
1976
|
+
var shouldIgnoreRedirects = ({ state }) => {
|
|
1977
|
+
return state !== CANVAS_PUBLISHED_STATE;
|
|
1978
|
+
};
|
|
1976
1979
|
|
|
1977
1980
|
// src/clients/cache.ts
|
|
1978
1981
|
var isStateCacheMode = (options) => {
|
|
@@ -3739,7 +3742,8 @@ var DefaultDataClient = class {
|
|
|
3739
3742
|
state: options.pageState.compositionState,
|
|
3740
3743
|
withComponentIDs: true,
|
|
3741
3744
|
releaseId: options.pageState.releaseId,
|
|
3742
|
-
locale: options.pageState.locale
|
|
3745
|
+
locale: options.pageState.locale,
|
|
3746
|
+
ignoreRedirects: shouldIgnoreRedirects({ state: options.pageState.compositionState })
|
|
3743
3747
|
};
|
|
3744
3748
|
const resolvedRoute = await this.getRouteFromApi({
|
|
3745
3749
|
source: "pageState",
|
package/dist/middleware.js
CHANGED
|
@@ -2310,6 +2310,9 @@ var isIncontextEditingEnabled = ({
|
|
|
2310
2310
|
var isDevelopmentEnvironment = () => {
|
|
2311
2311
|
return process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
2312
2312
|
};
|
|
2313
|
+
var shouldIgnoreRedirects = ({ state }) => {
|
|
2314
|
+
return state !== CANVAS_PUBLISHED_STATE;
|
|
2315
|
+
};
|
|
2313
2316
|
|
|
2314
2317
|
// src/clients/cache.ts
|
|
2315
2318
|
var isStateCacheMode = (options) => {
|
|
@@ -2841,7 +2844,8 @@ var DefaultDataClient = class {
|
|
|
2841
2844
|
state: options.pageState.compositionState,
|
|
2842
2845
|
withComponentIDs: true,
|
|
2843
2846
|
releaseId: options.pageState.releaseId,
|
|
2844
|
-
locale: options.pageState.locale
|
|
2847
|
+
locale: options.pageState.locale,
|
|
2848
|
+
ignoreRedirects: shouldIgnoreRedirects({ state: options.pageState.compositionState })
|
|
2845
2849
|
};
|
|
2846
2850
|
const resolvedRoute = await this.getRouteFromApi({
|
|
2847
2851
|
source: "pageState",
|
|
@@ -5386,7 +5390,8 @@ var retrieveRouteByPath = async ({
|
|
|
5386
5390
|
withComponentIDs: true,
|
|
5387
5391
|
withContentSourceMap: (_a = getServerConfig().experimental) == null ? void 0 : _a.vercelVisualEditing,
|
|
5388
5392
|
releaseId,
|
|
5389
|
-
locale
|
|
5393
|
+
locale,
|
|
5394
|
+
ignoreRedirects: shouldIgnoreRedirects({ state })
|
|
5390
5395
|
}
|
|
5391
5396
|
});
|
|
5392
5397
|
};
|
package/dist/middleware.mjs
CHANGED
|
@@ -2297,6 +2297,9 @@ var isIncontextEditingEnabled = ({
|
|
|
2297
2297
|
var isDevelopmentEnvironment = () => {
|
|
2298
2298
|
return process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
2299
2299
|
};
|
|
2300
|
+
var shouldIgnoreRedirects = ({ state }) => {
|
|
2301
|
+
return state !== CANVAS_PUBLISHED_STATE;
|
|
2302
|
+
};
|
|
2300
2303
|
|
|
2301
2304
|
// src/clients/cache.ts
|
|
2302
2305
|
var isStateCacheMode = (options) => {
|
|
@@ -2828,7 +2831,8 @@ var DefaultDataClient = class {
|
|
|
2828
2831
|
state: options.pageState.compositionState,
|
|
2829
2832
|
withComponentIDs: true,
|
|
2830
2833
|
releaseId: options.pageState.releaseId,
|
|
2831
|
-
locale: options.pageState.locale
|
|
2834
|
+
locale: options.pageState.locale,
|
|
2835
|
+
ignoreRedirects: shouldIgnoreRedirects({ state: options.pageState.compositionState })
|
|
2832
2836
|
};
|
|
2833
2837
|
const resolvedRoute = await this.getRouteFromApi({
|
|
2834
2838
|
source: "pageState",
|
|
@@ -5378,7 +5382,8 @@ var retrieveRouteByPath = async ({
|
|
|
5378
5382
|
withComponentIDs: true,
|
|
5379
5383
|
withContentSourceMap: (_a = getServerConfig().experimental) == null ? void 0 : _a.vercelVisualEditing,
|
|
5380
5384
|
releaseId,
|
|
5381
|
-
locale
|
|
5385
|
+
locale,
|
|
5386
|
+
ignoreRedirects: shouldIgnoreRedirects({ state })
|
|
5382
5387
|
}
|
|
5383
5388
|
});
|
|
5384
5389
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/next-app-router",
|
|
3
|
-
"version": "20.48.1-alpha.
|
|
3
|
+
"version": "20.48.1-alpha.9+bdf72ad09b",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"vitest": "3.2.4"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@uniformdev/canvas-react": "20.48.1-alpha.
|
|
103
|
-
"@uniformdev/next-app-router-client": "20.48.1-alpha.
|
|
104
|
-
"@uniformdev/next-app-router-shared": "20.48.1-alpha.
|
|
105
|
-
"@uniformdev/redirect": "20.48.1-alpha.
|
|
106
|
-
"@uniformdev/richtext": "20.48.1-alpha.
|
|
107
|
-
"@uniformdev/webhooks": "20.48.1-alpha.
|
|
102
|
+
"@uniformdev/canvas-react": "20.48.1-alpha.9+bdf72ad09b",
|
|
103
|
+
"@uniformdev/next-app-router-client": "20.48.1-alpha.9+bdf72ad09b",
|
|
104
|
+
"@uniformdev/next-app-router-shared": "20.48.1-alpha.9+bdf72ad09b",
|
|
105
|
+
"@uniformdev/redirect": "20.48.1-alpha.9+bdf72ad09b",
|
|
106
|
+
"@uniformdev/richtext": "20.48.1-alpha.9+bdf72ad09b",
|
|
107
|
+
"@uniformdev/webhooks": "20.48.1-alpha.9+bdf72ad09b",
|
|
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": "bdf72ad09b56d20c096d6a64d5c329ed57967b56"
|
|
125
125
|
}
|