@amplifyup/sdk 0.1.29 → 0.1.30

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/react.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { ReactNode } from 'react';
3
- import { P as PageConfig, b as AmplifyUpConfig, C as ContentSource, A as AmplifyContentMeta } from './types-BxpG9Gsy.mjs';
4
- export { Z as ZoneConfig } from './types-BxpG9Gsy.mjs';
3
+ import { P as PageConfig, b as AmplifyUpConfig, C as ContentSource, A as AmplifyContentMeta } from './types-6qEnwLda.mjs';
4
+ export { Z as ZoneConfig } from './types-6qEnwLda.mjs';
5
5
  export { AmplifyRenderer } from './AmplifyRenderer.mjs';
6
6
  export { i as isComposerPreview, a as isPreviewRequest } from './preview-BMrIgUvp.mjs';
7
7
  export { fetchPageConfigServer } from './server.mjs';
package/dist/react.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { ReactNode } from 'react';
3
- import { P as PageConfig, b as AmplifyUpConfig, C as ContentSource, A as AmplifyContentMeta } from './types-BxpG9Gsy.js';
4
- export { Z as ZoneConfig } from './types-BxpG9Gsy.js';
3
+ import { P as PageConfig, b as AmplifyUpConfig, C as ContentSource, A as AmplifyContentMeta } from './types-6qEnwLda.js';
4
+ export { Z as ZoneConfig } from './types-6qEnwLda.js';
5
5
  export { AmplifyRenderer } from './AmplifyRenderer.js';
6
6
  export { i as isComposerPreview, a as isPreviewRequest } from './preview-BMrIgUvp.js';
7
7
  export { fetchPageConfigServer } from './server.js';
package/dist/react.js CHANGED
@@ -442,7 +442,8 @@ function mapResolvedToPageConfig(payload) {
442
442
  meta: {
443
443
  // Stash edge meta for diagnostics (not visitor-facing)
444
444
  description: payload.meta?.degraded ? "degraded" : void 0
445
- }
445
+ },
446
+ ...payload.eventTracking && payload.eventTracking.length > 0 ? { eventTracking: payload.eventTracking } : {}
446
447
  };
447
448
  }
448
449
  function collectDegraded(payload) {
@@ -3310,7 +3311,7 @@ function AmplifyRenderer({
3310
3311
  window.clearTimeout(t1);
3311
3312
  window.clearTimeout(t2);
3312
3313
  };
3313
- }, [pageConfig?.id]);
3314
+ }, [pageConfig?.id, pageConfig?.eventTracking]);
3314
3315
  react.useEffect(() => {
3315
3316
  if (!pageConfig) return;
3316
3317
  const t = window.setTimeout(() => {