@amplifyup/sdk 0.1.42 → 0.1.43
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/AmplifyRenderer.js +9 -2
- package/dist/AmplifyRenderer.js.map +1 -1
- package/dist/AmplifyRenderer.mjs +9 -2
- package/dist/AmplifyRenderer.mjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -3
- package/dist/index.mjs.map +1 -1
- package/dist/middleware.d.mts +1 -0
- package/dist/middleware.d.ts +1 -0
- package/dist/middleware.js +10 -0
- package/dist/middleware.js.map +1 -1
- package/dist/middleware.mjs +10 -1
- package/dist/middleware.mjs.map +1 -1
- package/dist/react.d.mts +1 -0
- package/dist/react.d.ts +1 -0
- package/dist/react.js +20 -2
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +20 -2
- package/dist/react.mjs.map +1 -1
- package/dist/reservedRoutes-aGgViBDM.d.mts +8 -0
- package/dist/reservedRoutes-aGgViBDM.d.ts +8 -0
- package/dist/server.d.mts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +19 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +18 -1
- package/dist/server.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { P as PageConfig, C as ContentSource, A as AmplifyContentMeta, E as EventTrackingConfig$1, a as CDPAdapter, b as AmplifyUpConfig, c as EventProperties, I as IdentifyInput, d as IdentifyTraits, e as ProfileFieldsInput, f as AmplifyUpTarget } from './types-DUP8Lb7R.mjs';
|
|
2
2
|
export { Z as ZoneConfig, i as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, g as resolveAmplifyUpUrls } from './types-DUP8Lb7R.mjs';
|
|
3
3
|
export { i as isComposerPreview, a as isPreviewRequest, b as isWorkingContentRequest } from './preview-_vHmzRen.mjs';
|
|
4
|
+
export { A as AMPLIFYUP_EDITOR_ROUTE, i as isAmplifyUpEditorRoute } from './reservedRoutes-aGgViBDM.mjs';
|
|
4
5
|
export { g as FetchEdgeQueryOptions, F as FetchEdgeSelectOptions, Q as QueryContentError, e as QueryContentOptions, k as QueryFilter, l as QueryFilterOp, i as QueryPagination, h as QueryResult, m as QuerySort, j as QuerySpec, S as SelectVariantsError, a as SelectVariantsOptions, b as SelectVariantsResult, c as fetchEdgeQuery, f as fetchEdgeSelect, n as nextPageSpec, q as queryContent, d as searchSpec, s as selectVariants } from './query-CraXKhi7.mjs';
|
|
5
6
|
|
|
6
7
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { P as PageConfig, C as ContentSource, A as AmplifyContentMeta, E as EventTrackingConfig$1, a as CDPAdapter, b as AmplifyUpConfig, c as EventProperties, I as IdentifyInput, d as IdentifyTraits, e as ProfileFieldsInput, f as AmplifyUpTarget } from './types-DUP8Lb7R.js';
|
|
2
2
|
export { Z as ZoneConfig, i as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, g as resolveAmplifyUpUrls } from './types-DUP8Lb7R.js';
|
|
3
3
|
export { i as isComposerPreview, a as isPreviewRequest, b as isWorkingContentRequest } from './preview-_vHmzRen.js';
|
|
4
|
+
export { A as AMPLIFYUP_EDITOR_ROUTE, i as isAmplifyUpEditorRoute } from './reservedRoutes-aGgViBDM.js';
|
|
4
5
|
export { g as FetchEdgeQueryOptions, F as FetchEdgeSelectOptions, Q as QueryContentError, e as QueryContentOptions, k as QueryFilter, l as QueryFilterOp, i as QueryPagination, h as QueryResult, m as QuerySort, j as QuerySpec, S as SelectVariantsError, a as SelectVariantsOptions, b as SelectVariantsResult, c as fetchEdgeQuery, f as fetchEdgeSelect, n as nextPageSpec, q as queryContent, d as searchSpec, s as selectVariants } from './query-BMsorj0k.js';
|
|
5
6
|
|
|
6
7
|
/**
|
package/dist/index.js
CHANGED
|
@@ -398,6 +398,12 @@ function isComposerPreview() {
|
|
|
398
398
|
return false;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
// src/reservedRoutes.ts
|
|
402
|
+
var AMPLIFYUP_EDITOR_ROUTE = "/__amplifyup/editor";
|
|
403
|
+
function isAmplifyUpEditorRoute(pathname) {
|
|
404
|
+
return pathname === AMPLIFYUP_EDITOR_ROUTE || pathname.startsWith(`${AMPLIFYUP_EDITOR_ROUTE}/`);
|
|
405
|
+
}
|
|
406
|
+
|
|
401
407
|
// src/edge/normalizeRoute.ts
|
|
402
408
|
function normalizeRoute(route) {
|
|
403
409
|
let path = String(route || "").trim();
|
|
@@ -1697,8 +1703,15 @@ Available Console Commands:
|
|
|
1697
1703
|
});
|
|
1698
1704
|
if (preview) {
|
|
1699
1705
|
params.set("preview", "true");
|
|
1700
|
-
if (typeof window !== "undefined"
|
|
1701
|
-
|
|
1706
|
+
if (typeof window !== "undefined") {
|
|
1707
|
+
const pageSearch = new URLSearchParams(window.location.search);
|
|
1708
|
+
if (isWorkingContentRequest(pageSearch)) {
|
|
1709
|
+
params.set("working", "true");
|
|
1710
|
+
}
|
|
1711
|
+
const zoneId = pageSearch.get("zoneId");
|
|
1712
|
+
const compositionId = pageSearch.get("compositionId");
|
|
1713
|
+
if (zoneId) params.set("zoneId", zoneId);
|
|
1714
|
+
if (compositionId) params.set("compositionId", compositionId);
|
|
1702
1715
|
}
|
|
1703
1716
|
}
|
|
1704
1717
|
if (isOnOrchestratorOrigin) {
|
|
@@ -3086,6 +3099,7 @@ var verifyAWSConnection = () => {
|
|
|
3086
3099
|
};
|
|
3087
3100
|
var index_default = getSDK();
|
|
3088
3101
|
|
|
3102
|
+
exports.AMPLIFYUP_EDITOR_ROUTE = AMPLIFYUP_EDITOR_ROUTE;
|
|
3089
3103
|
exports.ANON_COOKIE_NAME = ANON_COOKIE_NAME;
|
|
3090
3104
|
exports.AmplifyUpSDK = AmplifyUpSDK;
|
|
3091
3105
|
exports.DWELL_ACTIVITY_IDLE_MS = DWELL_ACTIVITY_IDLE_MS;
|
|
@@ -3114,6 +3128,7 @@ exports.getTrackingId = getTrackingId;
|
|
|
3114
3128
|
exports.getUserId = getUserId2;
|
|
3115
3129
|
exports.identify = identify;
|
|
3116
3130
|
exports.init = init;
|
|
3131
|
+
exports.isAmplifyUpEditorRoute = isAmplifyUpEditorRoute;
|
|
3117
3132
|
exports.isAmplifyUpTarget = isAmplifyUpTarget;
|
|
3118
3133
|
exports.isComposerPreview = isComposerPreview;
|
|
3119
3134
|
exports.isPreviewRequest = isPreviewRequest;
|