@amplifyup/sdk 0.1.16 → 0.1.18
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.d.mts +1 -1
- package/dist/AmplifyRenderer.d.ts +1 -1
- package/dist/AmplifyRenderer.js +361 -46
- package/dist/AmplifyRenderer.js.map +1 -1
- package/dist/AmplifyRenderer.mjs +361 -46
- package/dist/AmplifyRenderer.mjs.map +1 -1
- package/dist/index.d.mts +27 -7
- package/dist/index.d.ts +27 -7
- package/dist/index.js +336 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +336 -47
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +361 -46
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +361 -46
- package/dist/react.mjs.map +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/{types-B2Swk8BW.d.mts → types-Cy5aWQ5c.d.mts} +4 -0
- package/dist/{types-B2Swk8BW.d.ts → types-Cy5aWQ5c.d.ts} +4 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CDPAdapter, A as AmplifyUpConfig, E as EventProperties, I as IdentifyTraits, a as AmplifyUpTarget, b as EventTrackingConfig$1 } from './types-
|
|
2
|
-
export { P as PageConfig, Z as ZoneConfig, i as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, c as resolveAmplifyUpUrls } from './types-
|
|
1
|
+
import { C as CDPAdapter, A as AmplifyUpConfig, E as EventProperties, I as IdentifyTraits, a as AmplifyUpTarget, b as EventTrackingConfig$1 } from './types-Cy5aWQ5c.mjs';
|
|
2
|
+
export { P as PageConfig, Z as ZoneConfig, i as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, c as resolveAmplifyUpUrls } from './types-Cy5aWQ5c.mjs';
|
|
3
3
|
export { i as isComposerPreview, a as isPreviewRequest } from './preview-BMrIgUvp.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -18,6 +18,8 @@ interface EventTrackingConfig {
|
|
|
18
18
|
description?: string;
|
|
19
19
|
properties?: string[];
|
|
20
20
|
enabled?: boolean;
|
|
21
|
+
componentId?: string | null;
|
|
22
|
+
componentName?: string | null;
|
|
21
23
|
}
|
|
22
24
|
declare class AmplifyUpSDK {
|
|
23
25
|
private adapter;
|
|
@@ -54,6 +56,9 @@ declare class AmplifyUpSDK {
|
|
|
54
56
|
private attachedEventListeners;
|
|
55
57
|
private trackingIntervals;
|
|
56
58
|
private trackingCleanup;
|
|
59
|
+
private componentViewObservers;
|
|
60
|
+
private componentViewSeen;
|
|
61
|
+
private pageEngagementActive;
|
|
57
62
|
constructor(adapter?: CDPAdapter);
|
|
58
63
|
/**
|
|
59
64
|
* Detect if we're running in visual editor mode
|
|
@@ -83,6 +88,17 @@ declare class AmplifyUpSDK {
|
|
|
83
88
|
* Clear all tracking intervals and event listeners
|
|
84
89
|
*/
|
|
85
90
|
private clearTrackingIntervals;
|
|
91
|
+
/** Current page path for engagement attribution. */
|
|
92
|
+
private currentPath;
|
|
93
|
+
/**
|
|
94
|
+
* Automatic page-level Scroll Depth + Time on Page (dwell heartbeat).
|
|
95
|
+
*/
|
|
96
|
+
private setupPageEngagement;
|
|
97
|
+
/**
|
|
98
|
+
* Automatic Component View when component hosts enter the viewport.
|
|
99
|
+
*/
|
|
100
|
+
setupComponentViewTracking(): void;
|
|
101
|
+
private cleanupComponentViewTracking;
|
|
86
102
|
/**
|
|
87
103
|
* Track a page view
|
|
88
104
|
*/
|
|
@@ -203,7 +219,11 @@ declare class AmplifyUpSDK {
|
|
|
203
219
|
*/
|
|
204
220
|
private setupViewTracking;
|
|
205
221
|
/**
|
|
206
|
-
*
|
|
222
|
+
* Detach listeners/observers without clearing the saved event config.
|
|
223
|
+
*/
|
|
224
|
+
private detachEventListeners;
|
|
225
|
+
/**
|
|
226
|
+
* Clean up all attached event listeners and clear config
|
|
207
227
|
*/
|
|
208
228
|
cleanupEventTracking(): void;
|
|
209
229
|
/**
|
|
@@ -248,6 +268,8 @@ declare class AmplifyUpSDK {
|
|
|
248
268
|
/** Document-level drag/drop for cross-iframe drags from Composer sidebar. */
|
|
249
269
|
private setupComposerDragDrop;
|
|
250
270
|
private teardownComposerDragDrop;
|
|
271
|
+
private clearComposerSelection;
|
|
272
|
+
private markComposerSelection;
|
|
251
273
|
/** Visual outlines for Composer (direct iframe path — no preview-frame proxy). */
|
|
252
274
|
private injectComposerHighlightStyles;
|
|
253
275
|
/**
|
|
@@ -258,9 +280,6 @@ declare class AmplifyUpSDK {
|
|
|
258
280
|
* Disable component highlighting
|
|
259
281
|
*/
|
|
260
282
|
private disableHighlighting;
|
|
261
|
-
/**
|
|
262
|
-
* Build component hierarchy for ancestor selection
|
|
263
|
-
*/
|
|
264
283
|
private buildComponentHierarchy;
|
|
265
284
|
/**
|
|
266
285
|
* Send selection message to orchestrator (includes element bounds for overlay positioning).
|
|
@@ -314,6 +333,7 @@ declare const fetchPageConfig: (route: string, preview?: boolean) => Promise<any
|
|
|
314
333
|
declare const setupEventTracking: (config: EventTrackingConfig$1[]) => void;
|
|
315
334
|
declare const cleanupEventTracking: () => void;
|
|
316
335
|
declare const refreshEventTracking: () => void;
|
|
336
|
+
declare const setupComponentViewTracking: () => void;
|
|
317
337
|
declare const getDiagnostics: () => {
|
|
318
338
|
initialized: boolean;
|
|
319
339
|
instanceId: string;
|
|
@@ -349,4 +369,4 @@ declare const verifyAWSConnection: () => {
|
|
|
349
369
|
|
|
350
370
|
declare const _default: AmplifyUpSDK;
|
|
351
371
|
|
|
352
|
-
export { AmplifyUpConfig, AmplifyUpSDK, AmplifyUpTarget, CDPAdapter, EventProperties, EventTrackingConfig$1 as EventTrackingConfig, IdentifyTraits, buildLayoutProviderUrl, buildPageRenderUrl, cleanupEventTracking, _default as default, fetchPageConfig, getDiagnostics, getInstanceId, getOrchestratorUrl, getSDK, getStatus, getTarget, getTrackingId, getUserId, identify, init, page, refreshEventTracking, reset, setupEventTracking, testTracking, track, trackClick, trackContentEngagement, trackContentView, trackFormFieldInteraction, trackFormSubmit, verifyAWSConnection };
|
|
372
|
+
export { AmplifyUpConfig, AmplifyUpSDK, AmplifyUpTarget, CDPAdapter, EventProperties, EventTrackingConfig$1 as EventTrackingConfig, IdentifyTraits, buildLayoutProviderUrl, buildPageRenderUrl, cleanupEventTracking, _default as default, fetchPageConfig, getDiagnostics, getInstanceId, getOrchestratorUrl, getSDK, getStatus, getTarget, getTrackingId, getUserId, identify, init, page, refreshEventTracking, reset, setupComponentViewTracking, setupEventTracking, testTracking, track, trackClick, trackContentEngagement, trackContentView, trackFormFieldInteraction, trackFormSubmit, verifyAWSConnection };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CDPAdapter, A as AmplifyUpConfig, E as EventProperties, I as IdentifyTraits, a as AmplifyUpTarget, b as EventTrackingConfig$1 } from './types-
|
|
2
|
-
export { P as PageConfig, Z as ZoneConfig, i as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, c as resolveAmplifyUpUrls } from './types-
|
|
1
|
+
import { C as CDPAdapter, A as AmplifyUpConfig, E as EventProperties, I as IdentifyTraits, a as AmplifyUpTarget, b as EventTrackingConfig$1 } from './types-Cy5aWQ5c.js';
|
|
2
|
+
export { P as PageConfig, Z as ZoneConfig, i as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, c as resolveAmplifyUpUrls } from './types-Cy5aWQ5c.js';
|
|
3
3
|
export { i as isComposerPreview, a as isPreviewRequest } from './preview-BMrIgUvp.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -18,6 +18,8 @@ interface EventTrackingConfig {
|
|
|
18
18
|
description?: string;
|
|
19
19
|
properties?: string[];
|
|
20
20
|
enabled?: boolean;
|
|
21
|
+
componentId?: string | null;
|
|
22
|
+
componentName?: string | null;
|
|
21
23
|
}
|
|
22
24
|
declare class AmplifyUpSDK {
|
|
23
25
|
private adapter;
|
|
@@ -54,6 +56,9 @@ declare class AmplifyUpSDK {
|
|
|
54
56
|
private attachedEventListeners;
|
|
55
57
|
private trackingIntervals;
|
|
56
58
|
private trackingCleanup;
|
|
59
|
+
private componentViewObservers;
|
|
60
|
+
private componentViewSeen;
|
|
61
|
+
private pageEngagementActive;
|
|
57
62
|
constructor(adapter?: CDPAdapter);
|
|
58
63
|
/**
|
|
59
64
|
* Detect if we're running in visual editor mode
|
|
@@ -83,6 +88,17 @@ declare class AmplifyUpSDK {
|
|
|
83
88
|
* Clear all tracking intervals and event listeners
|
|
84
89
|
*/
|
|
85
90
|
private clearTrackingIntervals;
|
|
91
|
+
/** Current page path for engagement attribution. */
|
|
92
|
+
private currentPath;
|
|
93
|
+
/**
|
|
94
|
+
* Automatic page-level Scroll Depth + Time on Page (dwell heartbeat).
|
|
95
|
+
*/
|
|
96
|
+
private setupPageEngagement;
|
|
97
|
+
/**
|
|
98
|
+
* Automatic Component View when component hosts enter the viewport.
|
|
99
|
+
*/
|
|
100
|
+
setupComponentViewTracking(): void;
|
|
101
|
+
private cleanupComponentViewTracking;
|
|
86
102
|
/**
|
|
87
103
|
* Track a page view
|
|
88
104
|
*/
|
|
@@ -203,7 +219,11 @@ declare class AmplifyUpSDK {
|
|
|
203
219
|
*/
|
|
204
220
|
private setupViewTracking;
|
|
205
221
|
/**
|
|
206
|
-
*
|
|
222
|
+
* Detach listeners/observers without clearing the saved event config.
|
|
223
|
+
*/
|
|
224
|
+
private detachEventListeners;
|
|
225
|
+
/**
|
|
226
|
+
* Clean up all attached event listeners and clear config
|
|
207
227
|
*/
|
|
208
228
|
cleanupEventTracking(): void;
|
|
209
229
|
/**
|
|
@@ -248,6 +268,8 @@ declare class AmplifyUpSDK {
|
|
|
248
268
|
/** Document-level drag/drop for cross-iframe drags from Composer sidebar. */
|
|
249
269
|
private setupComposerDragDrop;
|
|
250
270
|
private teardownComposerDragDrop;
|
|
271
|
+
private clearComposerSelection;
|
|
272
|
+
private markComposerSelection;
|
|
251
273
|
/** Visual outlines for Composer (direct iframe path — no preview-frame proxy). */
|
|
252
274
|
private injectComposerHighlightStyles;
|
|
253
275
|
/**
|
|
@@ -258,9 +280,6 @@ declare class AmplifyUpSDK {
|
|
|
258
280
|
* Disable component highlighting
|
|
259
281
|
*/
|
|
260
282
|
private disableHighlighting;
|
|
261
|
-
/**
|
|
262
|
-
* Build component hierarchy for ancestor selection
|
|
263
|
-
*/
|
|
264
283
|
private buildComponentHierarchy;
|
|
265
284
|
/**
|
|
266
285
|
* Send selection message to orchestrator (includes element bounds for overlay positioning).
|
|
@@ -314,6 +333,7 @@ declare const fetchPageConfig: (route: string, preview?: boolean) => Promise<any
|
|
|
314
333
|
declare const setupEventTracking: (config: EventTrackingConfig$1[]) => void;
|
|
315
334
|
declare const cleanupEventTracking: () => void;
|
|
316
335
|
declare const refreshEventTracking: () => void;
|
|
336
|
+
declare const setupComponentViewTracking: () => void;
|
|
317
337
|
declare const getDiagnostics: () => {
|
|
318
338
|
initialized: boolean;
|
|
319
339
|
instanceId: string;
|
|
@@ -349,4 +369,4 @@ declare const verifyAWSConnection: () => {
|
|
|
349
369
|
|
|
350
370
|
declare const _default: AmplifyUpSDK;
|
|
351
371
|
|
|
352
|
-
export { AmplifyUpConfig, AmplifyUpSDK, AmplifyUpTarget, CDPAdapter, EventProperties, EventTrackingConfig$1 as EventTrackingConfig, IdentifyTraits, buildLayoutProviderUrl, buildPageRenderUrl, cleanupEventTracking, _default as default, fetchPageConfig, getDiagnostics, getInstanceId, getOrchestratorUrl, getSDK, getStatus, getTarget, getTrackingId, getUserId, identify, init, page, refreshEventTracking, reset, setupEventTracking, testTracking, track, trackClick, trackContentEngagement, trackContentView, trackFormFieldInteraction, trackFormSubmit, verifyAWSConnection };
|
|
372
|
+
export { AmplifyUpConfig, AmplifyUpSDK, AmplifyUpTarget, CDPAdapter, EventProperties, EventTrackingConfig$1 as EventTrackingConfig, IdentifyTraits, buildLayoutProviderUrl, buildPageRenderUrl, cleanupEventTracking, _default as default, fetchPageConfig, getDiagnostics, getInstanceId, getOrchestratorUrl, getSDK, getStatus, getTarget, getTrackingId, getUserId, identify, init, page, refreshEventTracking, reset, setupComponentViewTracking, setupEventTracking, testTracking, track, trackClick, trackContentEngagement, trackContentView, trackFormFieldInteraction, trackFormSubmit, verifyAWSConnection };
|