@amplifyup/sdk 0.1.1 → 0.1.2

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/server.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- import { P as PageConfig } from './types-B9nHG2Cl.mjs';
1
+ import { a as AmplifyUpTarget, P as PageConfig } from './types-Xv9P55Dj.mjs';
2
+ export { r as resolveAmplifyUpTarget, c as resolveAmplifyUpUrls } from './types-Xv9P55Dj.mjs';
2
3
 
3
4
  /**
4
5
  * Server-side utilities for AmplifyUp SDK
@@ -14,8 +15,11 @@ import { P as PageConfig } from './types-B9nHG2Cl.mjs';
14
15
  * @param route - The route path (e.g., '/', '/about')
15
16
  * @param trackingId - The site tracking ID
16
17
  * @param preview - Whether to include draft views (default: false)
18
+ * @param options - Optional target override (otherwise uses NEXT_PUBLIC_AMPLIFYUP_TARGET)
17
19
  * @returns Page configuration or null if not found
18
20
  */
19
- declare function fetchPageConfigServer(route: string, trackingId: string, preview?: boolean): Promise<PageConfig | null>;
21
+ declare function fetchPageConfigServer(route: string, trackingId: string, preview?: boolean, options?: {
22
+ target?: AmplifyUpTarget;
23
+ }): Promise<PageConfig | null>;
20
24
 
21
25
  export { fetchPageConfigServer };
package/dist/server.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { P as PageConfig } from './types-B9nHG2Cl.js';
1
+ import { a as AmplifyUpTarget, P as PageConfig } from './types-Xv9P55Dj.js';
2
+ export { r as resolveAmplifyUpTarget, c as resolveAmplifyUpUrls } from './types-Xv9P55Dj.js';
2
3
 
3
4
  /**
4
5
  * Server-side utilities for AmplifyUp SDK
@@ -14,8 +15,11 @@ import { P as PageConfig } from './types-B9nHG2Cl.js';
14
15
  * @param route - The route path (e.g., '/', '/about')
15
16
  * @param trackingId - The site tracking ID
16
17
  * @param preview - Whether to include draft views (default: false)
18
+ * @param options - Optional target override (otherwise uses NEXT_PUBLIC_AMPLIFYUP_TARGET)
17
19
  * @returns Page configuration or null if not found
18
20
  */
19
- declare function fetchPageConfigServer(route: string, trackingId: string, preview?: boolean): Promise<PageConfig | null>;
21
+ declare function fetchPageConfigServer(route: string, trackingId: string, preview?: boolean, options?: {
22
+ target?: AmplifyUpTarget;
23
+ }): Promise<PageConfig | null>;
20
24
 
21
25
  export { fetchPageConfigServer };