@builder.io/sdk-svelte 4.0.5 → 4.0.6

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.
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.0.5";
1
+ export declare const SDK_VERSION = "4.0.6";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.0.5";
1
+ export const SDK_VERSION = "4.0.6";
@@ -31,7 +31,7 @@ export const generateContentUrl = (options) => {
31
31
  }
32
32
  if (enrich)
33
33
  url.searchParams.set('enrich', String(enrich));
34
- url.searchParams.set('omit', omit || 'meta.componentsUsed');
34
+ url.searchParams.set('omit', omit ?? 'meta.componentsUsed');
35
35
  if (fields) {
36
36
  url.searchParams.set('fields', fields);
37
37
  }
@@ -1,7 +1,6 @@
1
1
  import type { BuilderContent } from '../../types/builder-content';
2
- export declare function postPreviewContent({ key, value }: {
2
+ export declare function postPreviewContent(_opts: {
3
3
  key: string;
4
4
  value: BuilderContent;
5
- }): Promise<{
6
- [x: string]: BuilderContent;
7
- }>;
5
+ url: string;
6
+ }): Promise<null>;
@@ -1,5 +1,3 @@
1
- export async function postPreviewContent({ key, value }) {
2
- return {
3
- [key]: value
4
- };
1
+ export async function postPreviewContent(_opts) {
2
+ return null;
5
3
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.0.5";
1
+ export declare const SDK_VERSION = "4.0.6";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.0.5";
1
+ export const SDK_VERSION = "4.0.6";
@@ -31,7 +31,7 @@ export const generateContentUrl = (options) => {
31
31
  }
32
32
  if (enrich)
33
33
  url.searchParams.set('enrich', String(enrich));
34
- url.searchParams.set('omit', omit || 'meta.componentsUsed');
34
+ url.searchParams.set('omit', omit ?? 'meta.componentsUsed');
35
35
  if (fields) {
36
36
  url.searchParams.set('fields', fields);
37
37
  }
@@ -1,7 +1,6 @@
1
1
  import type { BuilderContent } from '../../types/builder-content';
2
- export declare function postPreviewContent({ key, value }: {
2
+ export declare function postPreviewContent(_opts: {
3
3
  key: string;
4
4
  value: BuilderContent;
5
- }): Promise<{
6
- [x: string]: BuilderContent;
7
- }>;
5
+ url: string;
6
+ }): Promise<null>;
@@ -1,5 +1,3 @@
1
- export async function postPreviewContent({ key, value }) {
2
- return {
3
- [key]: value
4
- };
1
+ export async function postPreviewContent(_opts) {
2
+ return null;
5
3
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.0.5";
1
+ export declare const SDK_VERSION = "4.0.6";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.0.5";
1
+ export const SDK_VERSION = "4.0.6";
@@ -31,7 +31,7 @@ export const generateContentUrl = (options) => {
31
31
  }
32
32
  if (enrich)
33
33
  url.searchParams.set('enrich', String(enrich));
34
- url.searchParams.set('omit', omit || 'meta.componentsUsed');
34
+ url.searchParams.set('omit', omit ?? 'meta.componentsUsed');
35
35
  if (fields) {
36
36
  url.searchParams.set('fields', fields);
37
37
  }
@@ -1,7 +1,6 @@
1
1
  import type { BuilderContent } from '../../types/builder-content';
2
- export declare function postPreviewContent({ key, value }: {
2
+ export declare function postPreviewContent(_opts: {
3
3
  key: string;
4
4
  value: BuilderContent;
5
- }): Promise<{
6
- [x: string]: BuilderContent;
7
- }>;
5
+ url: string;
6
+ }): Promise<null>;
@@ -1,5 +1,3 @@
1
- export async function postPreviewContent({ key, value }) {
2
- return {
3
- [key]: value
4
- };
1
+ export async function postPreviewContent(_opts) {
2
+ return null;
5
3
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-svelte",
3
3
  "description": "Builder.io SDK for Svelte",
4
- "version": "4.0.5",
4
+ "version": "4.0.6",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "lib",
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.0.5"
1
+ export const SDK_VERSION = "4.0.6"
@@ -49,7 +49,7 @@ export const generateContentUrl = (options: GetContentOptions): URL => {
49
49
  };
50
50
  }
51
51
  if (enrich) url.searchParams.set('enrich', String(enrich));
52
- url.searchParams.set('omit', omit || 'meta.componentsUsed');
52
+ url.searchParams.set('omit', omit ?? 'meta.componentsUsed');
53
53
  if (fields) {
54
54
  url.searchParams.set('fields', fields);
55
55
  }
@@ -1,12 +1,8 @@
1
1
  import type { BuilderContent } from '../../types/builder-content';
2
- export async function postPreviewContent({
3
- key,
4
- value
5
- }: {
2
+ export async function postPreviewContent(_opts: {
6
3
  key: string;
7
4
  value: BuilderContent;
5
+ url: string;
8
6
  }) {
9
- return {
10
- [key]: value
11
- };
7
+ return null;
12
8
  }