@builder.io/sdk-qwik 0.5.7 → 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.
@@ -5784,7 +5784,7 @@ const getDefaultRegisteredComponents = () => [
5784
5784
  const components = [];
5785
5785
  const createRegisterComponentMessage = (info) => ({
5786
5786
  type: "builder.registerComponent",
5787
- data: info
5787
+ data: serializeComponentInfo(info)
5788
5788
  });
5789
5789
  const serializeFn = (fnValue) => {
5790
5790
  const fnStr = fnValue.toString().trim();
@@ -6338,7 +6338,7 @@ const getInteractionPropertiesForEvent = (event) => {
6338
6338
  }
6339
6339
  };
6340
6340
  };
6341
- const SDK_VERSION = "0.5.7";
6341
+ const SDK_VERSION = "0.5.8";
6342
6342
  const registry = {};
6343
6343
  function register(type, info) {
6344
6344
  let typeList = registry[type];
@@ -6588,7 +6588,7 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
6588
6588
  if (isEditing())
6589
6589
  window.dispatchEvent(new CustomEvent("builder:component:stateChange", {
6590
6590
  detail: {
6591
- state: props.builderContextSignal.rootState,
6591
+ state: fastClone(props.builderContextSignal.rootState),
6592
6592
  ref: {
6593
6593
  name: props.model
6594
6594
  }
@@ -5782,7 +5782,7 @@ const getDefaultRegisteredComponents = () => [
5782
5782
  const components = [];
5783
5783
  const createRegisterComponentMessage = (info) => ({
5784
5784
  type: "builder.registerComponent",
5785
- data: info
5785
+ data: serializeComponentInfo(info)
5786
5786
  });
5787
5787
  const serializeFn = (fnValue) => {
5788
5788
  const fnStr = fnValue.toString().trim();
@@ -6336,7 +6336,7 @@ const getInteractionPropertiesForEvent = (event) => {
6336
6336
  }
6337
6337
  };
6338
6338
  };
6339
- const SDK_VERSION = "0.5.7";
6339
+ const SDK_VERSION = "0.5.8";
6340
6340
  const registry = {};
6341
6341
  function register(type, info) {
6342
6342
  let typeList = registry[type];
@@ -6586,7 +6586,7 @@ const emitStateUpdate = function emitStateUpdate2(props, state, elementRef) {
6586
6586
  if (isEditing())
6587
6587
  window.dispatchEvent(new CustomEvent("builder:component:stateChange", {
6588
6588
  detail: {
6589
- state: props.builderContextSignal.rootState,
6589
+ state: fastClone(props.builderContextSignal.rootState),
6590
6590
  ref: {
6591
6591
  name: props.model
6592
6592
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.5.7";
1
+ export declare const SDK_VERSION = "0.5.8";