@builder.io/sdk-svelte 0.5.6 → 0.5.8
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/package/--package.json +1 -1
- package/package/CHANGELOG.md +8 -0
- package/package/components/content/components/enable-editor.svelte +2 -1
- package/package/constants/sdk-version.d.ts +1 -1
- package/package/constants/sdk-version.js +1 -1
- package/package/functions/register-component.js +1 -1
- package/package.json +1 -1
- package/src/components/content/components/enable-editor.svelte +2 -1
- package/src/constants/sdk-version.ts +1 -1
- package/src/functions/register-component.ts +1 -1
package/package/--package.json
CHANGED
package/package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,7 @@ import { logger } from "../../../helpers/logger.js";
|
|
|
15
15
|
import { fetchOneEntry } from "../../../functions/get-content/index.js";
|
|
16
16
|
import { isPreviewing } from "../../../functions/is-previewing.js";
|
|
17
17
|
import "../../../helpers/preview-lru-cache/set.js";
|
|
18
|
+
import { fastClone } from "../../../functions/fast-clone.js";
|
|
18
19
|
export let canTrack;
|
|
19
20
|
export let builderContextSignal;
|
|
20
21
|
export let model;
|
|
@@ -150,7 +151,7 @@ function emitStateUpdate() {
|
|
|
150
151
|
if (isEditing()) {
|
|
151
152
|
window.dispatchEvent(new CustomEvent("builder:component:stateChange", {
|
|
152
153
|
detail: {
|
|
153
|
-
state: $builderContextSignal.rootState,
|
|
154
|
+
state: fastClone($builderContextSignal.rootState),
|
|
154
155
|
ref: {
|
|
155
156
|
name: model,
|
|
156
157
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.8";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.5.
|
|
1
|
+
export const SDK_VERSION = "0.5.8";
|
|
@@ -16,7 +16,7 @@ export function registerComponent(component, info) {
|
|
|
16
16
|
}
|
|
17
17
|
export const createRegisterComponentMessage = (info) => ({
|
|
18
18
|
type: 'builder.registerComponent',
|
|
19
|
-
data: info
|
|
19
|
+
data: serializeComponentInfo(info)
|
|
20
20
|
});
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
22
22
|
const serializeFn = (fnValue) => {
|
package/package.json
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
import { isPreviewing } from "../../../functions/is-previewing.js";
|
|
37
37
|
import type { BuilderContent } from "../../../types/builder-content.js";
|
|
38
38
|
import { postPreviewContent } from "../../../helpers/preview-lru-cache/set.js";
|
|
39
|
+
import { fastClone } from "../../../functions/fast-clone.js";
|
|
39
40
|
import type { Writable } from "svelte/store";
|
|
40
41
|
|
|
41
42
|
export let canTrack: BuilderEditorProps["canTrack"];
|
|
@@ -185,7 +186,7 @@
|
|
|
185
186
|
"builder:component:stateChange",
|
|
186
187
|
{
|
|
187
188
|
detail: {
|
|
188
|
-
state: $builderContextSignal.rootState,
|
|
189
|
+
state: fastClone($builderContextSignal.rootState),
|
|
189
190
|
ref: {
|
|
190
191
|
name: model,
|
|
191
192
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.5.
|
|
1
|
+
export const SDK_VERSION = "0.5.8"
|
|
@@ -21,7 +21,7 @@ export function registerComponent(component: any, info: ComponentInfo): void {
|
|
|
21
21
|
}
|
|
22
22
|
export const createRegisterComponentMessage = (info: ComponentInfo) => ({
|
|
23
23
|
type: 'builder.registerComponent',
|
|
24
|
-
data: info
|
|
24
|
+
data: serializeComponentInfo(info)
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
// eslint-disable-next-line @typescript-eslint/ban-types
|