@amplifyup/sdk 0.1.77 → 0.1.79
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/README.md +93 -28
- package/dist/AmplifyRenderer-BNWBrFQN.d.ts +47 -0
- package/dist/AmplifyRenderer-CPUr9Bkc.d.mts +47 -0
- package/dist/AmplifyRenderer.d.mts +4 -40
- package/dist/AmplifyRenderer.d.ts +4 -40
- package/dist/AmplifyRenderer.js +119 -17
- package/dist/AmplifyRenderer.js.map +1 -1
- package/dist/AmplifyRenderer.mjs +119 -17
- package/dist/AmplifyRenderer.mjs.map +1 -1
- package/dist/cli.d.mts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +266 -0
- package/dist/cli.js.map +1 -0
- package/dist/cli.mjs +260 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/config.d.mts +18 -0
- package/dist/config.d.ts +18 -0
- package/dist/config.js +10 -0
- package/dist/config.js.map +1 -0
- package/dist/config.mjs +8 -0
- package/dist/config.mjs.map +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/dist/next.d.mts +9 -0
- package/dist/next.d.ts +9 -0
- package/dist/next.js +259 -0
- package/dist/next.js.map +1 -0
- package/dist/next.mjs +253 -0
- package/dist/next.mjs.map +1 -0
- package/dist/query-DYjs4LQQ.d.mts +262 -0
- package/dist/query-Xo9cy-2F.d.ts +262 -0
- package/dist/react.d.mts +19 -21
- package/dist/react.d.ts +19 -21
- package/dist/react.js +1488 -1336
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +1488 -1337
- package/dist/react.mjs.map +1 -1
- package/dist/server.d.mts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/{types-D4TSd2Yt.d.mts → types-ffQNIQCK.d.mts} +1 -102
- package/dist/{types-D4TSd2Yt.d.ts → types-ffQNIQCK.d.ts} +1 -102
- package/package.json +17 -2
- package/dist/query-B23UsNIv.d.ts +0 -161
- package/dist/query-CV8x3oQT.d.mts +0 -161
package/dist/index.mjs
CHANGED
|
@@ -155,6 +155,7 @@ var AWSAdapter = class {
|
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
157
|
const trackingId = eventData?.trackingId || this.config?.trackingId;
|
|
158
|
+
const debug = this.config?.debug;
|
|
158
159
|
const query = trackingId ? `?tid=${encodeURIComponent(trackingId)}` : "";
|
|
159
160
|
const url = `${this.apiGatewayUrl}${endpoint}${query}`;
|
|
160
161
|
try {
|
|
@@ -169,15 +170,15 @@ var AWSAdapter = class {
|
|
|
169
170
|
keepalive: true
|
|
170
171
|
});
|
|
171
172
|
if (!response.ok) {
|
|
172
|
-
if (
|
|
173
|
+
if (debug) {
|
|
173
174
|
console.warn(`AmplifyUp SDK: Event tracking failed: ${response.status} ${response.statusText}`);
|
|
174
175
|
}
|
|
175
|
-
} else if (
|
|
176
|
+
} else if (debug) {
|
|
176
177
|
const result = await response.json().catch(() => ({}));
|
|
177
178
|
console.log("AmplifyUp SDK: Event tracked", result);
|
|
178
179
|
}
|
|
179
180
|
} catch (error) {
|
|
180
|
-
if (
|
|
181
|
+
if (debug) {
|
|
181
182
|
console.error("AmplifyUp SDK: Event tracking error:", error);
|
|
182
183
|
}
|
|
183
184
|
}
|
|
@@ -3816,8 +3817,8 @@ var verifyAWSConnection = () => {
|
|
|
3816
3817
|
console.log("Full details:", result);
|
|
3817
3818
|
return result;
|
|
3818
3819
|
};
|
|
3819
|
-
var
|
|
3820
|
+
var src_default = getSDK();
|
|
3820
3821
|
|
|
3821
|
-
export { AMPLIFYUP_EDITOR_ROUTE, ANON_COOKIE_NAME, AmplifyUpSDK, DWELL_ACTIVITY_IDLE_MS, EdgeResolveError, QueryContentError, SESSION_COOKIE_NAME, SESSION_IDLE_GAP_MS, SelectVariantsError, buildLayoutProviderUrl, buildPageRenderUrl, cleanupEventTracking,
|
|
3822
|
+
export { AMPLIFYUP_EDITOR_ROUTE, ANON_COOKIE_NAME, AmplifyUpSDK, DWELL_ACTIVITY_IDLE_MS, EdgeResolveError, QueryContentError, SESSION_COOKIE_NAME, SESSION_IDLE_GAP_MS, SelectVariantsError, buildLayoutProviderUrl, buildPageRenderUrl, cleanupEventTracking, src_default as default, fetchContent, fetchEdgeQuery, fetchEdgeResolve, fetchEdgeSelect, fetchPageConfig, getDiagnostics, getInstanceId2 as getInstanceId, getOrchestratorUrl, getSDK, getSessionId2 as getSessionId, getStatus, getTarget, getTrackingId, getUserId2 as getUserId, identify, init, isAmplifyUpEditorRoute, isAmplifyUpTarget, isComposerPreview, isPreviewRequest, isWorkingContentRequest, mapResolvedToPageConfig, nextPageSpec, normalizeAmplifyUpTarget, normalizeRoute, page, queryContent, refreshEventTracking, reset, resolveAmplifyUpTarget, resolveAmplifyUpUrls, routeChange, searchSpec, selectVariants, setProfileFields, setupComponentViewTracking, setupEventTracking, testTracking, track, trackClick, trackContentEngagement, trackContentView, trackFormFieldInteraction, trackFormSubmit, verifyAWSConnection };
|
|
3822
3823
|
//# sourceMappingURL=index.mjs.map
|
|
3823
3824
|
//# sourceMappingURL=index.mjs.map
|