@bettercms-ai/sdk 1.13.0 → 1.13.1
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.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -833,6 +833,7 @@ async function getManagedLayout(client, opts) {
|
|
|
833
833
|
const query = new URLSearchParams();
|
|
834
834
|
if (opts?.scope) query.set("scope", opts.scope);
|
|
835
835
|
if (opts?.pageId) query.set("pageId", opts.pageId);
|
|
836
|
+
if (opts?.copy) query.set("preview", opts.copy);
|
|
836
837
|
const result = await client.fetchJSON(
|
|
837
838
|
client.url(`/management/layout${query.size ? `?${query}` : ""}`),
|
|
838
839
|
opts?.projectId ? { headers: { "X-BCMS-Project": opts.projectId } } : void 0
|