@builder.io/sdk-qwik 0.14.0 → 0.14.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.
@@ -56,10 +56,6 @@ const getClassPropName = () => {
56
56
  };
57
57
  const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
58
58
  return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
59
- get TagName() {
60
- return props.link ? props.builderLinkComponent || "a" : "button";
61
- },
62
- actionAttributes: {},
63
59
  attributes: {
64
60
  ...props.attributes,
65
61
  [getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
@@ -71,6 +67,10 @@ const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
71
67
  role: "button"
72
68
  }
73
69
  },
70
+ get TagName() {
71
+ return props.link ? props.builderLinkComponent || "a" : "button";
72
+ },
73
+ actionAttributes: {},
74
74
  children: qwik._fnSignal((p0) => p0.text, [
75
75
  props
76
76
  ], "p0.text"),
@@ -4350,7 +4350,7 @@ function isFromTrustedHost(trustedHosts, e) {
4350
4350
  const url = new URL(e.origin), hostname = url.hostname;
4351
4351
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4352
4352
  }
4353
- const SDK_VERSION = "0.14.0";
4353
+ const SDK_VERSION = "0.14.1";
4354
4354
  const registry = {};
4355
4355
  function register(type, info) {
4356
4356
  let typeList = registry[type];
@@ -54,10 +54,6 @@ const getClassPropName = () => {
54
54
  };
55
55
  const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
56
56
  return /* @__PURE__ */ _jsxC(DynamicRenderer, {
57
- get TagName() {
58
- return props.link ? props.builderLinkComponent || "a" : "button";
59
- },
60
- actionAttributes: {},
61
57
  attributes: {
62
58
  ...props.attributes,
63
59
  [getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
@@ -69,6 +65,10 @@ const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
69
65
  role: "button"
70
66
  }
71
67
  },
68
+ get TagName() {
69
+ return props.link ? props.builderLinkComponent || "a" : "button";
70
+ },
71
+ actionAttributes: {},
72
72
  children: _fnSignal((p0) => p0.text, [
73
73
  props
74
74
  ], "p0.text"),
@@ -4348,7 +4348,7 @@ function isFromTrustedHost(trustedHosts, e) {
4348
4348
  const url = new URL(e.origin), hostname = url.hostname;
4349
4349
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4350
4350
  }
4351
- const SDK_VERSION = "0.14.0";
4351
+ const SDK_VERSION = "0.14.1";
4352
4352
  const registry = {};
4353
4353
  function register(type, info) {
4354
4354
  let typeList = registry[type];
@@ -56,10 +56,6 @@ const getClassPropName = () => {
56
56
  };
57
57
  const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
58
58
  return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
59
- get TagName() {
60
- return props.link ? props.builderLinkComponent || "a" : "button";
61
- },
62
- actionAttributes: {},
63
59
  attributes: {
64
60
  ...props.attributes,
65
61
  [getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
@@ -71,6 +67,10 @@ const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
71
67
  role: "button"
72
68
  }
73
69
  },
70
+ get TagName() {
71
+ return props.link ? props.builderLinkComponent || "a" : "button";
72
+ },
73
+ actionAttributes: {},
74
74
  children: qwik._fnSignal((p0) => p0.text, [
75
75
  props
76
76
  ], "p0.text"),
@@ -7581,7 +7581,7 @@ function isFromTrustedHost(trustedHosts, e) {
7581
7581
  const url = new URL(e.origin), hostname = url.hostname;
7582
7582
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
7583
7583
  }
7584
- const SDK_VERSION = "0.14.0";
7584
+ const SDK_VERSION = "0.14.1";
7585
7585
  const registry = {};
7586
7586
  function register(type, info) {
7587
7587
  let typeList = registry[type];
@@ -54,10 +54,6 @@ const getClassPropName = () => {
54
54
  };
55
55
  const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
56
56
  return /* @__PURE__ */ _jsxC(DynamicRenderer, {
57
- get TagName() {
58
- return props.link ? props.builderLinkComponent || "a" : "button";
59
- },
60
- actionAttributes: {},
61
57
  attributes: {
62
58
  ...props.attributes,
63
59
  [getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
@@ -69,6 +65,10 @@ const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
69
65
  role: "button"
70
66
  }
71
67
  },
68
+ get TagName() {
69
+ return props.link ? props.builderLinkComponent || "a" : "button";
70
+ },
71
+ actionAttributes: {},
72
72
  children: _fnSignal((p0) => p0.text, [
73
73
  props
74
74
  ], "p0.text"),
@@ -7579,7 +7579,7 @@ function isFromTrustedHost(trustedHosts, e) {
7579
7579
  const url = new URL(e.origin), hostname = url.hostname;
7580
7580
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
7581
7581
  }
7582
- const SDK_VERSION = "0.14.0";
7582
+ const SDK_VERSION = "0.14.1";
7583
7583
  const registry = {};
7584
7584
  function register(type, info) {
7585
7585
  let typeList = registry[type];
@@ -58,10 +58,6 @@ const getClassPropName = () => {
58
58
  };
59
59
  const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
60
60
  return /* @__PURE__ */ qwik._jsxC(DynamicRenderer, {
61
- get TagName() {
62
- return props.link ? props.builderLinkComponent || "a" : "button";
63
- },
64
- actionAttributes: {},
65
61
  attributes: {
66
62
  ...props.attributes,
67
63
  [getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
@@ -73,6 +69,10 @@ const Button = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl
73
69
  role: "button"
74
70
  }
75
71
  },
72
+ get TagName() {
73
+ return props.link ? props.builderLinkComponent || "a" : "button";
74
+ },
75
+ actionAttributes: {},
76
76
  children: qwik._fnSignal((p0) => p0.text, [
77
77
  props
78
78
  ], "p0.text"),
@@ -226,7 +226,6 @@ const set = (obj, _path, value) => {
226
226
  path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
227
227
  return obj;
228
228
  };
229
- const ivm = nodeEvaluate.safeDynamicRequire("isolated-vm");
230
229
  const getSyncValName = (key) => `bldr_${key}_sync`;
231
230
  const BUILDER_SET_STATE_NAME = "BUILDER_SET_STATE";
232
231
  const INJECTED_IVM_GLOBAL = "BUILDER_IVM";
@@ -276,12 +275,14 @@ output;
276
275
  `;
277
276
  };
278
277
  const getIsolateContext = () => {
278
+ const ivm = nodeEvaluate.safeDynamicRequire("isolated-vm");
279
279
  const isolate = new ivm.Isolate({
280
280
  memoryLimit: 128
281
281
  });
282
282
  return isolate.createContextSync();
283
283
  };
284
284
  const runInNode = ({ code, builder, context, event, localState, rootSetState, rootState }) => {
285
+ const ivm = nodeEvaluate.safeDynamicRequire("isolated-vm");
285
286
  const state = fastClone({
286
287
  ...rootState,
287
288
  ...localState
@@ -4451,7 +4452,7 @@ function isFromTrustedHost(trustedHosts, e) {
4451
4452
  const url = new URL(e.origin), hostname = url.hostname;
4452
4453
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4453
4454
  }
4454
- const SDK_VERSION = "0.14.0";
4455
+ const SDK_VERSION = "0.14.1";
4455
4456
  const registry = {};
4456
4457
  function register(type, info) {
4457
4458
  let typeList = registry[type];
@@ -56,10 +56,6 @@ const getClassPropName = () => {
56
56
  };
57
57
  const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
58
58
  return /* @__PURE__ */ _jsxC(DynamicRenderer, {
59
- get TagName() {
60
- return props.link ? props.builderLinkComponent || "a" : "button";
61
- },
62
- actionAttributes: {},
63
59
  attributes: {
64
60
  ...props.attributes,
65
61
  [getClassPropName()]: `${props.link ? "" : "builder-button"} ${props.attributes[getClassPropName()] || ""}`,
@@ -71,6 +67,10 @@ const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =
71
67
  role: "button"
72
68
  }
73
69
  },
70
+ get TagName() {
71
+ return props.link ? props.builderLinkComponent || "a" : "button";
72
+ },
73
+ actionAttributes: {},
74
74
  children: _fnSignal((p0) => p0.text, [
75
75
  props
76
76
  ], "p0.text"),
@@ -224,7 +224,6 @@ const set = (obj, _path, value) => {
224
224
  path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
225
225
  return obj;
226
226
  };
227
- const ivm = safeDynamicRequire("isolated-vm");
228
227
  const getSyncValName = (key) => `bldr_${key}_sync`;
229
228
  const BUILDER_SET_STATE_NAME = "BUILDER_SET_STATE";
230
229
  const INJECTED_IVM_GLOBAL = "BUILDER_IVM";
@@ -274,12 +273,14 @@ output;
274
273
  `;
275
274
  };
276
275
  const getIsolateContext = () => {
276
+ const ivm = safeDynamicRequire("isolated-vm");
277
277
  const isolate = new ivm.Isolate({
278
278
  memoryLimit: 128
279
279
  });
280
280
  return isolate.createContextSync();
281
281
  };
282
282
  const runInNode = ({ code, builder, context, event, localState, rootSetState, rootState }) => {
283
+ const ivm = safeDynamicRequire("isolated-vm");
283
284
  const state = fastClone({
284
285
  ...rootState,
285
286
  ...localState
@@ -4449,7 +4450,7 @@ function isFromTrustedHost(trustedHosts, e) {
4449
4450
  const url = new URL(e.origin), hostname = url.hostname;
4450
4451
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4451
4452
  }
4452
- const SDK_VERSION = "0.14.0";
4453
+ const SDK_VERSION = "0.14.1";
4453
4454
  const registry = {};
4454
4455
  function register(type, info) {
4455
4456
  let typeList = registry[type];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.0";
1
+ export declare const SDK_VERSION = "0.14.1";