@builder.io/sdk-qwik 0.16.21 → 0.16.22

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 (33) 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/tabs/tabs.qwik.cjs +4 -4
  6. package/lib/browser/blocks/tabs/tabs.qwik.mjs +4 -4
  7. package/lib/browser/components/blocks/blocks-wrapper.qwik.cjs +26 -14
  8. package/lib/browser/components/blocks/blocks-wrapper.qwik.mjs +26 -14
  9. package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
  10. package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
  11. package/lib/edge/blocks/accordion/accordion.qwik.cjs +4 -2
  12. package/lib/edge/blocks/accordion/accordion.qwik.mjs +4 -2
  13. package/lib/edge/blocks/columns/columns.qwik.cjs +1 -1
  14. package/lib/edge/blocks/columns/columns.qwik.mjs +1 -1
  15. package/lib/edge/blocks/tabs/tabs.qwik.cjs +4 -4
  16. package/lib/edge/blocks/tabs/tabs.qwik.mjs +4 -4
  17. package/lib/edge/components/blocks/blocks-wrapper.qwik.cjs +26 -14
  18. package/lib/edge/components/blocks/blocks-wrapper.qwik.mjs +26 -14
  19. package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
  20. package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
  21. package/lib/node/blocks/accordion/accordion.qwik.cjs +4 -2
  22. package/lib/node/blocks/accordion/accordion.qwik.mjs +4 -2
  23. package/lib/node/blocks/columns/columns.qwik.cjs +1 -1
  24. package/lib/node/blocks/columns/columns.qwik.mjs +1 -1
  25. package/lib/node/blocks/tabs/tabs.qwik.cjs +4 -4
  26. package/lib/node/blocks/tabs/tabs.qwik.mjs +4 -4
  27. package/lib/node/components/blocks/blocks-wrapper.qwik.cjs +26 -14
  28. package/lib/node/components/blocks/blocks-wrapper.qwik.mjs +26 -14
  29. package/lib/node/constants/sdk-version.qwik.cjs +1 -1
  30. package/lib/node/constants/sdk-version.qwik.mjs +1 -1
  31. package/package.json +1 -1
  32. package/types/src/components/blocks/blocks-wrapper.d.ts +2 -2
  33. package/types/src/constants/sdk-version.d.ts +1 -1
@@ -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
  },
@@ -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"'),
@@ -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.22";
4
4
  exports.SDK_VERSION = SDK_VERSION;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "0.16.21";
1
+ const SDK_VERSION = "0.16.22";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
@@ -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
  },
@@ -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"'),
@@ -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.22";
4
4
  exports.SDK_VERSION = SDK_VERSION;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "0.16.21";
1
+ const SDK_VERSION = "0.16.22";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
@@ -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
  },
@@ -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"'),
@@ -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.22";
4
4
  exports.SDK_VERSION = SDK_VERSION;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "0.16.21";
1
+ const SDK_VERSION = "0.16.22";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.16.21",
3
+ "version": "0.16.22",
4
4
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,8 +15,8 @@ export type BlocksWrapperProps = {
15
15
  children?: any;
16
16
  classNameProp?: string;
17
17
  };
18
- export declare const onClick: (props: any, state: any, className: any, blocksWrapperRef: any) => void;
19
- export declare const onMouseEnter: (props: any, state: any, className: any, blocksWrapperRef: any) => void;
18
+ export declare const onClick: (props: any, state: any, className: any, dataPath: any, blocksWrapperRef: any) => void;
19
+ export declare const onMouseEnter: (props: any, state: any, className: any, dataPath: any, blocksWrapperRef: any) => void;
20
20
  export declare const BlocksWrapper: import("@builder.io/qwik").Component<BlocksWrapperProps>;
21
21
  export default BlocksWrapper;
22
22
  export declare const STYLES = "\n.props-blocks-wrapper-BlocksWrapper {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.16.21";
1
+ export declare const SDK_VERSION = "0.16.22";