@amplifyup/sdk 0.2.2 → 0.2.3

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.mjs CHANGED
@@ -889,7 +889,8 @@ function layoutProviderCacheKey(opts) {
889
889
  opts.preview ? "1" : "0",
890
890
  opts.working ? "1" : "0",
891
891
  opts.zoneId || "",
892
- opts.compositionId || ""
892
+ opts.compositionId || "",
893
+ opts.layoutId || ""
893
894
  ].join("|");
894
895
  }
895
896
  function getSettledLayoutProvider(key) {
@@ -2324,6 +2325,8 @@ Available Console Commands:
2324
2325
  const compositionId = pageSearch.get("compositionId");
2325
2326
  if (zoneId) params.set("zoneId", zoneId);
2326
2327
  if (compositionId) params.set("compositionId", compositionId);
2328
+ const layoutId = pageSearch.get("layoutId");
2329
+ if (layoutId) params.set("layoutId", layoutId);
2327
2330
  }
2328
2331
  }
2329
2332
  if (isOnOrchestratorOrigin) {
@@ -2344,7 +2347,8 @@ Available Console Commands:
2344
2347
  preview,
2345
2348
  working: pageSearch ? isWorkingContentRequest(pageSearch) : false,
2346
2349
  zoneId: pageSearch?.get("zoneId"),
2347
- compositionId: pageSearch?.get("compositionId")
2350
+ compositionId: pageSearch?.get("compositionId"),
2351
+ layoutId: pageSearch?.get("layoutId")
2348
2352
  });
2349
2353
  return dedupeLayoutProviderFetch(cacheKey, async () => {
2350
2354
  const startedAt = Date.now();