@amplifyup/sdk 0.1.45 → 0.1.47

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/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { P as PageConfig, C as ContentSource, A as AmplifyContentMeta, E as EventTrackingConfig$1, a as PageDataSnapshot, b as CDPAdapter, c as AmplifyUpConfig, d as EventProperties, e as AmplifyPageContextInput, f as AttachedPageEventContext, I as IdentifyInput, g as IdentifyTraits, h as ProfileFieldsInput, i as AmplifyUpTarget } from './types-NdLzHxZo.mjs';
2
- export { Z as ZoneConfig, k as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, j as resolveAmplifyUpUrls } from './types-NdLzHxZo.mjs';
1
+ import { P as PageConfig, C as ContentSource, A as AmplifyContentMeta, E as EventTrackingConfig$1, a as PageDataSnapshot, b as CDPAdapter, c as AmplifyUpConfig, d as EventProperties, e as AmplifyPageContextInput, f as AttachedPageEventContext, I as IdentifyInput, g as IdentifyTraits, h as ProfileFieldsInput, i as AmplifyUpTarget } from './types-DpTzUg1C.mjs';
2
+ export { Z as ZoneConfig, k as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, j as resolveAmplifyUpUrls } from './types-DpTzUg1C.mjs';
3
3
  export { i as isComposerPreview, a as isPreviewRequest, b as isWorkingContentRequest } from './preview-_vHmzRen.mjs';
4
4
  export { A as AMPLIFYUP_EDITOR_ROUTE, i as isAmplifyUpEditorRoute } from './reservedRoutes-aGgViBDM.mjs';
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-2-zPPrMI.mjs';
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-CWFb7rSm.mjs';
6
6
 
7
7
  /**
8
8
  * Storage utilities for instance ID and user ID
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { P as PageConfig, C as ContentSource, A as AmplifyContentMeta, E as EventTrackingConfig$1, a as PageDataSnapshot, b as CDPAdapter, c as AmplifyUpConfig, d as EventProperties, e as AmplifyPageContextInput, f as AttachedPageEventContext, I as IdentifyInput, g as IdentifyTraits, h as ProfileFieldsInput, i as AmplifyUpTarget } from './types-NdLzHxZo.js';
2
- export { Z as ZoneConfig, k as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, j as resolveAmplifyUpUrls } from './types-NdLzHxZo.js';
1
+ import { P as PageConfig, C as ContentSource, A as AmplifyContentMeta, E as EventTrackingConfig$1, a as PageDataSnapshot, b as CDPAdapter, c as AmplifyUpConfig, d as EventProperties, e as AmplifyPageContextInput, f as AttachedPageEventContext, I as IdentifyInput, g as IdentifyTraits, h as ProfileFieldsInput, i as AmplifyUpTarget } from './types-DpTzUg1C.js';
2
+ export { Z as ZoneConfig, k as isAmplifyUpTarget, n as normalizeAmplifyUpTarget, r as resolveAmplifyUpTarget, j as resolveAmplifyUpUrls } from './types-DpTzUg1C.js';
3
3
  export { i as isComposerPreview, a as isPreviewRequest, b as isWorkingContentRequest } from './preview-_vHmzRen.js';
4
4
  export { A as AMPLIFYUP_EDITOR_ROUTE, i as isAmplifyUpEditorRoute } from './reservedRoutes-aGgViBDM.js';
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-CFpvzSZT.js';
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-L7zSmLFX.js';
6
6
 
7
7
  /**
8
8
  * Storage utilities for instance ID and user ID
package/dist/index.js CHANGED
@@ -475,6 +475,10 @@ function applyPageContext(input, opts) {
475
475
  log.warn(`AmplifyUp: unknown resource field "${k}" dropped`);
476
476
  continue;
477
477
  }
478
+ if (def.passThrough) {
479
+ if (v != null) fields[k] = v;
480
+ continue;
481
+ }
478
482
  const coerced = coerceField(def, v, log);
479
483
  if (coerced !== void 0) fields[k] = coerced;
480
484
  }
@@ -2920,17 +2924,29 @@ Available Console Commands:
2920
2924
  '[data-slot-id="main"], [data-amplifyup-slot="main"] {',
2921
2925
  " min-height: 50vh !important;",
2922
2926
  "}",
2923
- /* Single empty-state hint — Slot React label uses .amplifyup-slot-placeholder */
2927
+ /* Empty-slot CTA — Slot / AmplifyPageContent EmptySlotHint */
2924
2928
  ".amplifyup-slot-placeholder {",
2925
2929
  " display: flex !important;",
2930
+ " flex-direction: column !important;",
2926
2931
  " align-items: center !important;",
2927
2932
  " justify-content: center !important;",
2933
+ " gap: 12px !important;",
2928
2934
  " min-height: inherit !important;",
2929
- " color: rgba(34, 197, 94, 0.75) !important;",
2930
- " font-size: 14px !important;",
2931
- " font-weight: 500 !important;",
2935
+ " color: rgba(22, 163, 74, 0.85) !important;",
2936
+ " font-size: 15px !important;",
2937
+ " font-weight: 600 !important;",
2932
2938
  " pointer-events: none !important;",
2933
2939
  " text-align: center !important;",
2940
+ " box-sizing: border-box !important;",
2941
+ "}",
2942
+ ".amplifyup-slot-placeholder-icon {",
2943
+ " color: inherit !important;",
2944
+ "}",
2945
+ ".amplifyup-slot-placeholder-label {",
2946
+ " color: inherit !important;",
2947
+ "}",
2948
+ ".amplifyup-slot-label {",
2949
+ " pointer-events: none !important;",
2934
2950
  "}",
2935
2951
  "[data-slot-id].amplifyup-slot-hover, [data-amplifyup-slot].amplifyup-slot-hover {",
2936
2952
  " outline-color: rgba(34, 197, 94, 1) !important;",