@builder.io/sdk-qwik 0.16.21 → 0.16.23

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.
Files changed (58) hide show
  1. package/lib/browser/blocks/accordion/accordion.qwik.cjs +4 -2
  2. package/lib/browser/blocks/accordion/accordion.qwik.mjs +4 -2
  3. package/lib/browser/blocks/columns/columns.qwik.cjs +1 -1
  4. package/lib/browser/blocks/columns/columns.qwik.mjs +1 -1
  5. package/lib/browser/blocks/form/form/form.qwik.cjs +4 -1
  6. package/lib/browser/blocks/form/form/form.qwik.mjs +4 -1
  7. package/lib/browser/blocks/tabs/tabs.qwik.cjs +4 -4
  8. package/lib/browser/blocks/tabs/tabs.qwik.mjs +4 -4
  9. package/lib/browser/components/blocks/blocks-wrapper.qwik.cjs +26 -14
  10. package/lib/browser/components/blocks/blocks-wrapper.qwik.mjs +26 -14
  11. package/lib/browser/components/content/components/enable-editor.qwik.cjs +2 -0
  12. package/lib/browser/components/content/components/enable-editor.qwik.mjs +2 -0
  13. package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
  14. package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
  15. package/lib/browser/functions/log-fetch.qwik.cjs +11 -0
  16. package/lib/browser/functions/log-fetch.qwik.mjs +11 -0
  17. package/lib/browser/functions/track/index.qwik.cjs +4 -1
  18. package/lib/browser/functions/track/index.qwik.mjs +4 -1
  19. package/lib/edge/blocks/accordion/accordion.qwik.cjs +4 -2
  20. package/lib/edge/blocks/accordion/accordion.qwik.mjs +4 -2
  21. package/lib/edge/blocks/columns/columns.qwik.cjs +1 -1
  22. package/lib/edge/blocks/columns/columns.qwik.mjs +1 -1
  23. package/lib/edge/blocks/form/form/form.qwik.cjs +4 -1
  24. package/lib/edge/blocks/form/form/form.qwik.mjs +4 -1
  25. package/lib/edge/blocks/tabs/tabs.qwik.cjs +4 -4
  26. package/lib/edge/blocks/tabs/tabs.qwik.mjs +4 -4
  27. package/lib/edge/components/blocks/blocks-wrapper.qwik.cjs +26 -14
  28. package/lib/edge/components/blocks/blocks-wrapper.qwik.mjs +26 -14
  29. package/lib/edge/components/content/components/enable-editor.qwik.cjs +2 -0
  30. package/lib/edge/components/content/components/enable-editor.qwik.mjs +2 -0
  31. package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
  32. package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
  33. package/lib/edge/functions/log-fetch.qwik.cjs +11 -0
  34. package/lib/edge/functions/log-fetch.qwik.mjs +11 -0
  35. package/lib/edge/functions/track/index.qwik.cjs +4 -1
  36. package/lib/edge/functions/track/index.qwik.mjs +4 -1
  37. package/lib/node/blocks/accordion/accordion.qwik.cjs +4 -2
  38. package/lib/node/blocks/accordion/accordion.qwik.mjs +4 -2
  39. package/lib/node/blocks/columns/columns.qwik.cjs +1 -1
  40. package/lib/node/blocks/columns/columns.qwik.mjs +1 -1
  41. package/lib/node/blocks/form/form/form.qwik.cjs +4 -1
  42. package/lib/node/blocks/form/form/form.qwik.mjs +4 -1
  43. package/lib/node/blocks/tabs/tabs.qwik.cjs +4 -4
  44. package/lib/node/blocks/tabs/tabs.qwik.mjs +4 -4
  45. package/lib/node/components/blocks/blocks-wrapper.qwik.cjs +26 -14
  46. package/lib/node/components/blocks/blocks-wrapper.qwik.mjs +26 -14
  47. package/lib/node/components/content/components/enable-editor.qwik.cjs +2 -0
  48. package/lib/node/components/content/components/enable-editor.qwik.mjs +2 -0
  49. package/lib/node/constants/sdk-version.qwik.cjs +1 -1
  50. package/lib/node/constants/sdk-version.qwik.mjs +1 -1
  51. package/lib/node/functions/log-fetch.qwik.cjs +11 -0
  52. package/lib/node/functions/log-fetch.qwik.mjs +11 -0
  53. package/lib/node/functions/track/index.qwik.cjs +4 -1
  54. package/lib/node/functions/track/index.qwik.mjs +4 -1
  55. package/package.json +1 -1
  56. package/types/src/components/blocks/blocks-wrapper.d.ts +2 -2
  57. package/types/src/constants/sdk-version.d.ts +1 -1
  58. package/types/src/functions/log-fetch.d.ts +1 -0
@@ -129,8 +129,10 @@ const Accordion = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlined
129
129
  ]),
130
130
  style: {
131
131
  ...accordionTitleStyles.value,
132
- width: props.grid ? props.gridRowWidth : void 0,
133
- order: openGridItemOrder.value !== null ? helpers.convertOrderNumberToString(index) : helpers.convertOrderNumberToString(index + 1)
132
+ ...props.grid && {
133
+ width: props.gridRowWidth,
134
+ order: openGridItemOrder.value !== null ? helpers.convertOrderNumberToString(index) : helpers.convertOrderNumberToString(index + 1)
135
+ }
134
136
  }
135
137
  }, null, /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
136
138
  get blocks() {
@@ -127,8 +127,10 @@ const Accordion = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props
127
127
  ]),
128
128
  style: {
129
129
  ...accordionTitleStyles.value,
130
- width: props.grid ? props.gridRowWidth : void 0,
131
- order: openGridItemOrder.value !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
130
+ ...props.grid && {
131
+ width: props.gridRowWidth,
132
+ order: openGridItemOrder.value !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
133
+ }
132
134
  }
133
135
  }, null, /* @__PURE__ */ _jsxC(Blocks, {
134
136
  get blocks() {
@@ -164,7 +164,7 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
164
164
  actionAttributes: {},
165
165
  attributes: getAttributes(props, state, gutterSize, cols, stackAt, flexDir, column, index),
166
166
  children: /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
167
- path: `component.options.columns.${index}.blocks`,
167
+ path: `columns.${index}.blocks`,
168
168
  get parent() {
169
169
  return props.builderBlock.id;
170
170
  },
@@ -162,7 +162,7 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
162
162
  actionAttributes: {},
163
163
  attributes: getAttributes(props, state, gutterSize, cols, stackAt, flexDir, column, index),
164
164
  children: /* @__PURE__ */ _jsxC(Blocks, {
165
- path: `component.options.columns.${index}.blocks`,
165
+ path: `columns.${index}.blocks`,
166
166
  get parent() {
167
167
  return props.builderBlock.id;
168
168
  },
@@ -6,6 +6,7 @@ const blocks = require("../../../components/blocks/blocks.qwik.cjs");
6
6
  const getEnv = require("../../../functions/get-env.qwik.cjs");
7
7
  const get = require("../../../functions/get.qwik.cjs");
8
8
  const isEditing = require("../../../functions/is-editing.qwik.cjs");
9
+ const logFetch = require("../../../functions/log-fetch.qwik.cjs");
9
10
  const set = require("../../../functions/set.qwik.cjs");
10
11
  const mergeNewRootState = function mergeNewRootState2(props, state, formRef, newData) {
11
12
  var _a, _b;
@@ -100,7 +101,9 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
100
101
  }
101
102
  state.formState = "sending";
102
103
  const formUrl = `${getEnv.getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${props.builderContext.apiKey}&to=${btoa(props.sendSubmissionsToEmail || "")}&name=${encodeURIComponent(props.name || "")}`;
103
- fetch(props.sendSubmissionsTo === "email" ? formUrl : props.action, {
104
+ const url = props.sendSubmissionsTo === "email" ? formUrl : props.action;
105
+ logFetch.logFetch(url);
106
+ fetch(url, {
104
107
  body,
105
108
  headers,
106
109
  method: props.method || "post"
@@ -4,6 +4,7 @@ import { Blocks } from "../../../components/blocks/blocks.qwik.mjs";
4
4
  import { getEnv } from "../../../functions/get-env.qwik.mjs";
5
5
  import { get } from "../../../functions/get.qwik.mjs";
6
6
  import { isEditing } from "../../../functions/is-editing.qwik.mjs";
7
+ import { logFetch } from "../../../functions/log-fetch.qwik.mjs";
7
8
  import { set } from "../../../functions/set.qwik.mjs";
8
9
  const mergeNewRootState = function mergeNewRootState2(props, state, formRef, newData) {
9
10
  var _a, _b;
@@ -98,7 +99,9 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
98
99
  }
99
100
  state.formState = "sending";
100
101
  const formUrl = `${getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${props.builderContext.apiKey}&to=${btoa(props.sendSubmissionsToEmail || "")}&name=${encodeURIComponent(props.name || "")}`;
101
- fetch(props.sendSubmissionsTo === "email" ? formUrl : props.action, {
102
+ const url = props.sendSubmissionsTo === "email" ? formUrl : props.action;
103
+ logFetch(url);
104
+ fetch(url, {
102
105
  body,
103
106
  headers,
104
107
  method: props.method || "post"
@@ -45,7 +45,7 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
45
45
  get parent() {
46
46
  return props.builderBlock.id;
47
47
  },
48
- path: `component.options.tabs.${index}.label`,
48
+ path: `tabs.${index}.label`,
49
49
  get blocks() {
50
50
  return tab.label;
51
51
  },
@@ -80,7 +80,7 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
80
80
  return props.builderBlock.id;
81
81
  },
82
82
  get path() {
83
- return `component.options.tabs.${state.activeTab}.content`;
83
+ return `tabs.${state.activeTab}.content`;
84
84
  },
85
85
  blocks: activeTabContent(props, state, state.activeTab),
86
86
  get context() {
@@ -102,9 +102,9 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
102
102
  parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
103
103
  props
104
104
  ], "p0.builderBlock.id"),
105
- path: qwik._fnSignal((p0) => `component.options.tabs.${p0.activeTab}.content`, [
105
+ path: qwik._fnSignal((p0) => `tabs.${p0.activeTab}.content`, [
106
106
  state
107
- ], "`component.options.tabs.${p0.activeTab}.content`"),
107
+ ], "`tabs.${p0.activeTab}.content`"),
108
108
  registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
109
109
  props
110
110
  ], "p0.builderComponents")
@@ -43,7 +43,7 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
43
43
  get parent() {
44
44
  return props.builderBlock.id;
45
45
  },
46
- path: `component.options.tabs.${index}.label`,
46
+ path: `tabs.${index}.label`,
47
47
  get blocks() {
48
48
  return tab.label;
49
49
  },
@@ -78,7 +78,7 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
78
78
  return props.builderBlock.id;
79
79
  },
80
80
  get path() {
81
- return `component.options.tabs.${state.activeTab}.content`;
81
+ return `tabs.${state.activeTab}.content`;
82
82
  },
83
83
  blocks: activeTabContent(props, state, state.activeTab),
84
84
  get context() {
@@ -100,9 +100,9 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
100
100
  parent: _fnSignal((p0) => p0.builderBlock.id, [
101
101
  props
102
102
  ], "p0.builderBlock.id"),
103
- path: _fnSignal((p0) => `component.options.tabs.${p0.activeTab}.content`, [
103
+ path: _fnSignal((p0) => `tabs.${p0.activeTab}.content`, [
104
104
  state
105
- ], "`component.options.tabs.${p0.activeTab}.content`"),
105
+ ], "`tabs.${p0.activeTab}.content`"),
106
106
  registeredComponents: _fnSignal((p0) => p0.builderComponents, [
107
107
  props
108
108
  ], "p0.builderComponents")
@@ -2,25 +2,25 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const qwik = require("@builder.io/qwik");
4
4
  const isEditing = require("../../functions/is-editing.qwik.cjs");
5
- const onClick = function onClick2(props, state, className, blocksWrapperRef) {
5
+ const onClick = function onClick2(props, state, className, dataPath, blocksWrapperRef) {
6
6
  var _a, _b;
7
7
  if (isEditing.isEditing() && !((_a = props.blocks) == null ? void 0 : _a.length))
8
8
  (_b = window.parent) == null ? void 0 : _b.postMessage({
9
9
  type: "builder.clickEmptyBlocks",
10
10
  data: {
11
11
  parentElementId: props.parent,
12
- dataPath: props.path
12
+ dataPath: dataPath.value
13
13
  }
14
14
  }, "*");
15
15
  };
16
- const onMouseEnter = function onMouseEnter2(props, state, className, blocksWrapperRef) {
16
+ const onMouseEnter = function onMouseEnter2(props, state, className, dataPath, blocksWrapperRef) {
17
17
  var _a, _b;
18
18
  if (isEditing.isEditing() && !((_a = props.blocks) == null ? void 0 : _a.length))
19
19
  (_b = window.parent) == null ? void 0 : _b.postMessage({
20
20
  type: "builder.hoverEmptyBlocks",
21
21
  data: {
22
22
  parentElementId: props.parent,
23
- dataPath: props.path
23
+ dataPath: dataPath.value
24
24
  }
25
25
  }, "*");
26
26
  };
@@ -37,6 +37,15 @@ const BlocksWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
37
37
  }, "BlocksWrapper_component_className_useComputed_J5SSSH2Xf08", [
38
38
  props
39
39
  ]));
40
+ const dataPath = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
41
+ const [props2] = qwik.useLexicalScope();
42
+ if (!props2.path)
43
+ return void 0;
44
+ const pathPrefix = "component.options.";
45
+ return props2.path.startsWith(pathPrefix) ? props2.path : `${pathPrefix}${props2.path || ""}`;
46
+ }, "BlocksWrapper_component_dataPath_useComputed_csBNeJbWH7k", [
47
+ props
48
+ ]));
40
49
  const blocksWrapperRef = qwik.useSignal();
41
50
  const state = {};
42
51
  qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
@@ -47,7 +56,7 @@ const BlocksWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
47
56
  return className.value + " props-blocks-wrapper-BlocksWrapper";
48
57
  },
49
58
  get "builder-path"() {
50
- return props.path;
59
+ return dataPath.value;
51
60
  },
52
61
  get "builder-parent-id"() {
53
62
  return props.parent;
@@ -56,29 +65,32 @@ const BlocksWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
56
65
  return props.styleProp;
57
66
  },
58
67
  onClick$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
59
- const [blocksWrapperRef2, className2, props2, state2] = qwik.useLexicalScope();
60
- return onClick(props2);
68
+ const [blocksWrapperRef2, className2, dataPath2, props2, state2] = qwik.useLexicalScope();
69
+ return onClick(props2, state2, className2, dataPath2);
61
70
  }, "BlocksWrapper_component_onClick_ufezvOupQrM", [
62
71
  blocksWrapperRef,
63
72
  className,
73
+ dataPath,
64
74
  props,
65
75
  state
66
76
  ]),
67
77
  onKeyPress$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
68
- const [blocksWrapperRef2, className2, props2, state2] = qwik.useLexicalScope();
69
- return onClick(props2);
78
+ const [blocksWrapperRef2, className2, dataPath2, props2, state2] = qwik.useLexicalScope();
79
+ return onClick(props2, state2, className2, dataPath2);
70
80
  }, "BlocksWrapper_component_onKeyPress_9bz8vCQc3kg", [
71
81
  blocksWrapperRef,
72
82
  className,
83
+ dataPath,
73
84
  props,
74
85
  state
75
86
  ]),
76
87
  onMouseEnter$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
77
- const [blocksWrapperRef2, className2, props2, state2] = qwik.useLexicalScope();
78
- return onMouseEnter(props2);
88
+ const [blocksWrapperRef2, className2, dataPath2, props2, state2] = qwik.useLexicalScope();
89
+ return onMouseEnter(props2, state2, className2, dataPath2);
79
90
  }, "BlocksWrapper_component_onMouseEnter_j4FJjnLtraQ", [
80
91
  blocksWrapperRef,
81
92
  className,
93
+ dataPath,
82
94
  props,
83
95
  state
84
96
  ]),
@@ -88,9 +100,9 @@ const BlocksWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
88
100
  "builder-parent-id": qwik._fnSignal((p0) => p0.parent, [
89
101
  props
90
102
  ], "p0.parent"),
91
- "builder-path": qwik._fnSignal((p0) => p0.path, [
92
- props
93
- ], "p0.path"),
103
+ "builder-path": qwik._fnSignal((p0) => p0.value, [
104
+ dataPath
105
+ ], "p0.value"),
94
106
  class: qwik._fnSignal((p0) => p0.value + " props-blocks-wrapper-BlocksWrapper", [
95
107
  className
96
108
  ], 'p0.value+" props-blocks-wrapper-BlocksWrapper"'),
@@ -1,24 +1,24 @@
1
1
  import { componentQrl, inlinedQrl, useStylesScopedQrl, useComputedQrl, useLexicalScope, useSignal, useVisibleTaskQrl, _jsxC, Slot, _IMMUTABLE, _fnSignal } from "@builder.io/qwik";
2
2
  import { isEditing } from "../../functions/is-editing.qwik.mjs";
3
- const onClick = function onClick2(props, state, className, blocksWrapperRef) {
3
+ const onClick = function onClick2(props, state, className, dataPath, blocksWrapperRef) {
4
4
  var _a, _b;
5
5
  if (isEditing() && !((_a = props.blocks) == null ? void 0 : _a.length))
6
6
  (_b = window.parent) == null ? void 0 : _b.postMessage({
7
7
  type: "builder.clickEmptyBlocks",
8
8
  data: {
9
9
  parentElementId: props.parent,
10
- dataPath: props.path
10
+ dataPath: dataPath.value
11
11
  }
12
12
  }, "*");
13
13
  };
14
- const onMouseEnter = function onMouseEnter2(props, state, className, blocksWrapperRef) {
14
+ const onMouseEnter = function onMouseEnter2(props, state, className, dataPath, blocksWrapperRef) {
15
15
  var _a, _b;
16
16
  if (isEditing() && !((_a = props.blocks) == null ? void 0 : _a.length))
17
17
  (_b = window.parent) == null ? void 0 : _b.postMessage({
18
18
  type: "builder.hoverEmptyBlocks",
19
19
  data: {
20
20
  parentElementId: props.parent,
21
- dataPath: props.path
21
+ dataPath: dataPath.value
22
22
  }
23
23
  }, "*");
24
24
  };
@@ -35,6 +35,15 @@ const BlocksWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
35
35
  }, "BlocksWrapper_component_className_useComputed_J5SSSH2Xf08", [
36
36
  props
37
37
  ]));
38
+ const dataPath = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
39
+ const [props2] = useLexicalScope();
40
+ if (!props2.path)
41
+ return void 0;
42
+ const pathPrefix = "component.options.";
43
+ return props2.path.startsWith(pathPrefix) ? props2.path : `${pathPrefix}${props2.path || ""}`;
44
+ }, "BlocksWrapper_component_dataPath_useComputed_csBNeJbWH7k", [
45
+ props
46
+ ]));
38
47
  const blocksWrapperRef = useSignal();
39
48
  const state = {};
40
49
  useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
@@ -45,7 +54,7 @@ const BlocksWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
45
54
  return className.value + " props-blocks-wrapper-BlocksWrapper";
46
55
  },
47
56
  get "builder-path"() {
48
- return props.path;
57
+ return dataPath.value;
49
58
  },
50
59
  get "builder-parent-id"() {
51
60
  return props.parent;
@@ -54,29 +63,32 @@ const BlocksWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
54
63
  return props.styleProp;
55
64
  },
56
65
  onClick$: /* @__PURE__ */ inlinedQrl((event) => {
57
- const [blocksWrapperRef2, className2, props2, state2] = useLexicalScope();
58
- return onClick(props2);
66
+ const [blocksWrapperRef2, className2, dataPath2, props2, state2] = useLexicalScope();
67
+ return onClick(props2, state2, className2, dataPath2);
59
68
  }, "BlocksWrapper_component_onClick_ufezvOupQrM", [
60
69
  blocksWrapperRef,
61
70
  className,
71
+ dataPath,
62
72
  props,
63
73
  state
64
74
  ]),
65
75
  onKeyPress$: /* @__PURE__ */ inlinedQrl((event) => {
66
- const [blocksWrapperRef2, className2, props2, state2] = useLexicalScope();
67
- return onClick(props2);
76
+ const [blocksWrapperRef2, className2, dataPath2, props2, state2] = useLexicalScope();
77
+ return onClick(props2, state2, className2, dataPath2);
68
78
  }, "BlocksWrapper_component_onKeyPress_9bz8vCQc3kg", [
69
79
  blocksWrapperRef,
70
80
  className,
81
+ dataPath,
71
82
  props,
72
83
  state
73
84
  ]),
74
85
  onMouseEnter$: /* @__PURE__ */ inlinedQrl((event) => {
75
- const [blocksWrapperRef2, className2, props2, state2] = useLexicalScope();
76
- return onMouseEnter(props2);
86
+ const [blocksWrapperRef2, className2, dataPath2, props2, state2] = useLexicalScope();
87
+ return onMouseEnter(props2, state2, className2, dataPath2);
77
88
  }, "BlocksWrapper_component_onMouseEnter_j4FJjnLtraQ", [
78
89
  blocksWrapperRef,
79
90
  className,
91
+ dataPath,
80
92
  props,
81
93
  state
82
94
  ]),
@@ -86,9 +98,9 @@ const BlocksWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
86
98
  "builder-parent-id": _fnSignal((p0) => p0.parent, [
87
99
  props
88
100
  ], "p0.parent"),
89
- "builder-path": _fnSignal((p0) => p0.path, [
90
- props
91
- ], "p0.path"),
101
+ "builder-path": _fnSignal((p0) => p0.value, [
102
+ dataPath
103
+ ], "p0.value"),
92
104
  class: _fnSignal((p0) => p0.value + " props-blocks-wrapper-BlocksWrapper", [
93
105
  className
94
106
  ], 'p0.value+" props-blocks-wrapper-BlocksWrapper"'),
@@ -9,6 +9,7 @@ const index = require("../../../functions/get-content/index.qwik.cjs");
9
9
  const isBrowser = require("../../../functions/is-browser.qwik.cjs");
10
10
  const isEditing = require("../../../functions/is-editing.qwik.cjs");
11
11
  const isPreviewing = require("../../../functions/is-previewing.qwik.cjs");
12
+ const logFetch = require("../../../functions/log-fetch.qwik.cjs");
12
13
  const registerComponent = require("../../../functions/register-component.qwik.cjs");
13
14
  const index$1 = require("../../../functions/track/index.qwik.cjs");
14
15
  const interaction = require("../../../functions/track/interaction.qwik.cjs");
@@ -108,6 +109,7 @@ const runHttpRequests = function runHttpRequests2(props, state, showContentProps
108
109
  rootState: props.builderContextSignal.rootState,
109
110
  rootSetState: props.builderContextSignal.rootSetState
110
111
  })));
112
+ logFetch.logFetch(evaluatedUrl);
111
113
  fetch(evaluatedUrl).then((response) => response.json()).then((json) => {
112
114
  mergeNewRootState(props, state, showContentProps, elementRef, {
113
115
  [key]: json
@@ -7,6 +7,7 @@ import { fetchOneEntry } from "../../../functions/get-content/index.qwik.mjs";
7
7
  import { isBrowser } from "../../../functions/is-browser.qwik.mjs";
8
8
  import { isEditing } from "../../../functions/is-editing.qwik.mjs";
9
9
  import { isPreviewing } from "../../../functions/is-previewing.qwik.mjs";
10
+ import { logFetch } from "../../../functions/log-fetch.qwik.mjs";
10
11
  import { createRegisterComponentMessage } from "../../../functions/register-component.qwik.mjs";
11
12
  import { _track } from "../../../functions/track/index.qwik.mjs";
12
13
  import { getInteractionPropertiesForEvent } from "../../../functions/track/interaction.qwik.mjs";
@@ -106,6 +107,7 @@ const runHttpRequests = function runHttpRequests2(props, state, showContentProps
106
107
  rootState: props.builderContextSignal.rootState,
107
108
  rootSetState: props.builderContextSignal.rootSetState
108
109
  })));
110
+ logFetch(evaluatedUrl);
109
111
  fetch(evaluatedUrl).then((response) => response.json()).then((json) => {
110
112
  mergeNewRootState(props, state, showContentProps, elementRef, {
111
113
  [key]: json
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const SDK_VERSION = "0.16.21";
3
+ const SDK_VERSION = "0.16.23";
4
4
  exports.SDK_VERSION = SDK_VERSION;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "0.16.21";
1
+ const SDK_VERSION = "0.16.23";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const logger = require("../helpers/logger.qwik.cjs");
4
+ function logFetch(url) {
5
+ var _a;
6
+ if (typeof process !== "undefined" && ((_a = process.env) == null ? void 0 : _a.DEBUG)) {
7
+ if (String(process.env.DEBUG) == "true")
8
+ logger.logger.log(url);
9
+ }
10
+ }
11
+ exports.logFetch = logFetch;
@@ -0,0 +1,11 @@
1
+ import { logger } from "../helpers/logger.qwik.mjs";
2
+ function logFetch(url) {
3
+ var _a;
4
+ if (typeof process !== "undefined" && ((_a = process.env) == null ? void 0 : _a.DEBUG)) {
5
+ if (String(process.env.DEBUG) == "true")
6
+ logger.log(url);
7
+ }
8
+ }
9
+ export {
10
+ logFetch
11
+ };
@@ -7,6 +7,7 @@ const sessionId = require("../../helpers/sessionId.qwik.cjs");
7
7
  const visitorId = require("../../helpers/visitorId.qwik.cjs");
8
8
  const isBrowser = require("../is-browser.qwik.cjs");
9
9
  const isEditing = require("../is-editing.qwik.cjs");
10
+ const logFetch = require("../log-fetch.qwik.cjs");
10
11
  const helpers = require("./helpers.qwik.cjs");
11
12
  const getTrackingEventData = async ({ canTrack }) => {
12
13
  if (!canTrack)
@@ -52,7 +53,9 @@ async function _track({ apiHost, ...eventProps }) {
52
53
  if (!(isBrowser.isBrowser() || target.TARGET === "reactNative"))
53
54
  return;
54
55
  const baseUrl = apiHost || "https://cdn.builder.io";
55
- return fetch(`${baseUrl}/api/v1/track`, {
56
+ const url = `${baseUrl}/api/v1/track`;
57
+ logFetch.logFetch(url);
58
+ return fetch(url, {
56
59
  method: "POST",
57
60
  body: JSON.stringify({
58
61
  events: [
@@ -5,6 +5,7 @@ import { getSessionId } from "../../helpers/sessionId.qwik.mjs";
5
5
  import { getVisitorId } from "../../helpers/visitorId.qwik.mjs";
6
6
  import { isBrowser } from "../is-browser.qwik.mjs";
7
7
  import { isEditing } from "../is-editing.qwik.mjs";
8
+ import { logFetch } from "../log-fetch.qwik.mjs";
8
9
  import { getUserAttributes } from "./helpers.qwik.mjs";
9
10
  const getTrackingEventData = async ({ canTrack }) => {
10
11
  if (!canTrack)
@@ -50,7 +51,9 @@ async function _track({ apiHost, ...eventProps }) {
50
51
  if (!(isBrowser() || TARGET === "reactNative"))
51
52
  return;
52
53
  const baseUrl = apiHost || "https://cdn.builder.io";
53
- return fetch(`${baseUrl}/api/v1/track`, {
54
+ const url = `${baseUrl}/api/v1/track`;
55
+ logFetch(url);
56
+ return fetch(url, {
54
57
  method: "POST",
55
58
  body: JSON.stringify({
56
59
  events: [
@@ -129,8 +129,10 @@ const Accordion = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlined
129
129
  ]),
130
130
  style: {
131
131
  ...accordionTitleStyles.value,
132
- width: props.grid ? props.gridRowWidth : void 0,
133
- order: openGridItemOrder.value !== null ? helpers.convertOrderNumberToString(index) : helpers.convertOrderNumberToString(index + 1)
132
+ ...props.grid && {
133
+ width: props.gridRowWidth,
134
+ order: openGridItemOrder.value !== null ? helpers.convertOrderNumberToString(index) : helpers.convertOrderNumberToString(index + 1)
135
+ }
134
136
  }
135
137
  }, null, /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
136
138
  get blocks() {
@@ -127,8 +127,10 @@ const Accordion = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props
127
127
  ]),
128
128
  style: {
129
129
  ...accordionTitleStyles.value,
130
- width: props.grid ? props.gridRowWidth : void 0,
131
- order: openGridItemOrder.value !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
130
+ ...props.grid && {
131
+ width: props.gridRowWidth,
132
+ order: openGridItemOrder.value !== null ? convertOrderNumberToString(index) : convertOrderNumberToString(index + 1)
133
+ }
132
134
  }
133
135
  }, null, /* @__PURE__ */ _jsxC(Blocks, {
134
136
  get blocks() {
@@ -164,7 +164,7 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
164
164
  actionAttributes: {},
165
165
  attributes: getAttributes(props, state, gutterSize, cols, stackAt, flexDir, column, index),
166
166
  children: /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
167
- path: `component.options.columns.${index}.blocks`,
167
+ path: `columns.${index}.blocks`,
168
168
  get parent() {
169
169
  return props.builderBlock.id;
170
170
  },
@@ -162,7 +162,7 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
162
162
  actionAttributes: {},
163
163
  attributes: getAttributes(props, state, gutterSize, cols, stackAt, flexDir, column, index),
164
164
  children: /* @__PURE__ */ _jsxC(Blocks, {
165
- path: `component.options.columns.${index}.blocks`,
165
+ path: `columns.${index}.blocks`,
166
166
  get parent() {
167
167
  return props.builderBlock.id;
168
168
  },
@@ -6,6 +6,7 @@ const blocks = require("../../../components/blocks/blocks.qwik.cjs");
6
6
  const getEnv = require("../../../functions/get-env.qwik.cjs");
7
7
  const get = require("../../../functions/get.qwik.cjs");
8
8
  const isEditing = require("../../../functions/is-editing.qwik.cjs");
9
+ const logFetch = require("../../../functions/log-fetch.qwik.cjs");
9
10
  const set = require("../../../functions/set.qwik.cjs");
10
11
  const mergeNewRootState = function mergeNewRootState2(props, state, formRef, newData) {
11
12
  var _a, _b;
@@ -100,7 +101,9 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
100
101
  }
101
102
  state.formState = "sending";
102
103
  const formUrl = `${getEnv.getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${props.builderContext.apiKey}&to=${btoa(props.sendSubmissionsToEmail || "")}&name=${encodeURIComponent(props.name || "")}`;
103
- fetch(props.sendSubmissionsTo === "email" ? formUrl : props.action, {
104
+ const url = props.sendSubmissionsTo === "email" ? formUrl : props.action;
105
+ logFetch.logFetch(url);
106
+ fetch(url, {
104
107
  body,
105
108
  headers,
106
109
  method: props.method || "post"
@@ -4,6 +4,7 @@ import { Blocks } from "../../../components/blocks/blocks.qwik.mjs";
4
4
  import { getEnv } from "../../../functions/get-env.qwik.mjs";
5
5
  import { get } from "../../../functions/get.qwik.mjs";
6
6
  import { isEditing } from "../../../functions/is-editing.qwik.mjs";
7
+ import { logFetch } from "../../../functions/log-fetch.qwik.mjs";
7
8
  import { set } from "../../../functions/set.qwik.mjs";
8
9
  const mergeNewRootState = function mergeNewRootState2(props, state, formRef, newData) {
9
10
  var _a, _b;
@@ -98,7 +99,9 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
98
99
  }
99
100
  state.formState = "sending";
100
101
  const formUrl = `${getEnv() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${props.builderContext.apiKey}&to=${btoa(props.sendSubmissionsToEmail || "")}&name=${encodeURIComponent(props.name || "")}`;
101
- fetch(props.sendSubmissionsTo === "email" ? formUrl : props.action, {
102
+ const url = props.sendSubmissionsTo === "email" ? formUrl : props.action;
103
+ logFetch(url);
104
+ fetch(url, {
102
105
  body,
103
106
  headers,
104
107
  method: props.method || "post"
@@ -45,7 +45,7 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
45
45
  get parent() {
46
46
  return props.builderBlock.id;
47
47
  },
48
- path: `component.options.tabs.${index}.label`,
48
+ path: `tabs.${index}.label`,
49
49
  get blocks() {
50
50
  return tab.label;
51
51
  },
@@ -80,7 +80,7 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
80
80
  return props.builderBlock.id;
81
81
  },
82
82
  get path() {
83
- return `component.options.tabs.${state.activeTab}.content`;
83
+ return `tabs.${state.activeTab}.content`;
84
84
  },
85
85
  blocks: activeTabContent(props, state, state.activeTab),
86
86
  get context() {
@@ -102,9 +102,9 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
102
102
  parent: qwik._fnSignal((p0) => p0.builderBlock.id, [
103
103
  props
104
104
  ], "p0.builderBlock.id"),
105
- path: qwik._fnSignal((p0) => `component.options.tabs.${p0.activeTab}.content`, [
105
+ path: qwik._fnSignal((p0) => `tabs.${p0.activeTab}.content`, [
106
106
  state
107
- ], "`component.options.tabs.${p0.activeTab}.content`"),
107
+ ], "`tabs.${p0.activeTab}.content`"),
108
108
  registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
109
109
  props
110
110
  ], "p0.builderComponents")
@@ -43,7 +43,7 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
43
43
  get parent() {
44
44
  return props.builderBlock.id;
45
45
  },
46
- path: `component.options.tabs.${index}.label`,
46
+ path: `tabs.${index}.label`,
47
47
  get blocks() {
48
48
  return tab.label;
49
49
  },
@@ -78,7 +78,7 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
78
78
  return props.builderBlock.id;
79
79
  },
80
80
  get path() {
81
- return `component.options.tabs.${state.activeTab}.content`;
81
+ return `tabs.${state.activeTab}.content`;
82
82
  },
83
83
  blocks: activeTabContent(props, state, state.activeTab),
84
84
  get context() {
@@ -100,9 +100,9 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
100
100
  parent: _fnSignal((p0) => p0.builderBlock.id, [
101
101
  props
102
102
  ], "p0.builderBlock.id"),
103
- path: _fnSignal((p0) => `component.options.tabs.${p0.activeTab}.content`, [
103
+ path: _fnSignal((p0) => `tabs.${p0.activeTab}.content`, [
104
104
  state
105
- ], "`component.options.tabs.${p0.activeTab}.content`"),
105
+ ], "`tabs.${p0.activeTab}.content`"),
106
106
  registeredComponents: _fnSignal((p0) => p0.builderComponents, [
107
107
  props
108
108
  ], "p0.builderComponents")