@builder.io/sdk-qwik 0.17.3 → 0.17.7

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 (79) hide show
  1. package/lib/browser/blocks/columns/columns.qwik.cjs +5 -5
  2. package/lib/browser/blocks/columns/columns.qwik.mjs +5 -5
  3. package/lib/browser/blocks/form/form/form.qwik.cjs +6 -32
  4. package/lib/browser/blocks/form/form/form.qwik.mjs +7 -33
  5. package/lib/browser/blocks/image/image.qwik.cjs +0 -2
  6. package/lib/browser/blocks/image/image.qwik.mjs +1 -3
  7. package/lib/browser/blocks/video/video.qwik.cjs +0 -1
  8. package/lib/browser/blocks/video/video.qwik.mjs +0 -1
  9. package/lib/browser/components/blocks/blocks-wrapper.qwik.cjs +2 -1
  10. package/lib/browser/components/blocks/blocks-wrapper.qwik.mjs +2 -1
  11. package/lib/browser/constants/builder-registered-components.qwik.cjs +6 -0
  12. package/lib/browser/constants/builder-registered-components.qwik.mjs +6 -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/helpers/canTrack.qwik.cjs +6 -1
  16. package/lib/browser/helpers/canTrack.qwik.mjs +6 -1
  17. package/lib/browser/helpers/user-attributes.qwik.cjs +50 -0
  18. package/lib/browser/helpers/user-attributes.qwik.mjs +50 -0
  19. package/lib/browser/index.qwik.cjs +2 -0
  20. package/lib/browser/index.qwik.mjs +2 -0
  21. package/lib/browser/scripts/init-editing.qwik.cjs +2 -1
  22. package/lib/browser/scripts/init-editing.qwik.mjs +2 -1
  23. package/lib/edge/blocks/columns/columns.qwik.cjs +5 -5
  24. package/lib/edge/blocks/columns/columns.qwik.mjs +5 -5
  25. package/lib/edge/blocks/form/form/form.qwik.cjs +6 -32
  26. package/lib/edge/blocks/form/form/form.qwik.mjs +7 -33
  27. package/lib/edge/blocks/image/image.qwik.cjs +0 -2
  28. package/lib/edge/blocks/image/image.qwik.mjs +1 -3
  29. package/lib/edge/blocks/video/video.qwik.cjs +0 -1
  30. package/lib/edge/blocks/video/video.qwik.mjs +0 -1
  31. package/lib/edge/components/blocks/blocks-wrapper.qwik.cjs +2 -1
  32. package/lib/edge/components/blocks/blocks-wrapper.qwik.mjs +2 -1
  33. package/lib/edge/constants/builder-registered-components.qwik.cjs +7 -0
  34. package/lib/edge/constants/builder-registered-components.qwik.mjs +7 -0
  35. package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
  36. package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
  37. package/lib/edge/helpers/canTrack.qwik.cjs +6 -1
  38. package/lib/edge/helpers/canTrack.qwik.mjs +6 -1
  39. package/lib/edge/helpers/user-attributes.qwik.cjs +50 -0
  40. package/lib/edge/helpers/user-attributes.qwik.mjs +50 -0
  41. package/lib/edge/index.qwik.cjs +2 -0
  42. package/lib/edge/index.qwik.mjs +2 -0
  43. package/lib/edge/scripts/init-editing.qwik.cjs +2 -1
  44. package/lib/edge/scripts/init-editing.qwik.mjs +2 -1
  45. package/lib/node/blocks/columns/columns.qwik.cjs +5 -5
  46. package/lib/node/blocks/columns/columns.qwik.mjs +5 -5
  47. package/lib/node/blocks/form/form/form.qwik.cjs +6 -32
  48. package/lib/node/blocks/form/form/form.qwik.mjs +7 -33
  49. package/lib/node/blocks/image/image.qwik.cjs +0 -2
  50. package/lib/node/blocks/image/image.qwik.mjs +1 -3
  51. package/lib/node/blocks/video/video.qwik.cjs +0 -1
  52. package/lib/node/blocks/video/video.qwik.mjs +0 -1
  53. package/lib/node/components/blocks/blocks-wrapper.qwik.cjs +2 -1
  54. package/lib/node/components/blocks/blocks-wrapper.qwik.mjs +2 -1
  55. package/lib/node/constants/builder-registered-components.qwik.cjs +7 -0
  56. package/lib/node/constants/builder-registered-components.qwik.mjs +7 -0
  57. package/lib/node/constants/sdk-version.qwik.cjs +1 -1
  58. package/lib/node/constants/sdk-version.qwik.mjs +1 -1
  59. package/lib/node/helpers/canTrack.qwik.cjs +6 -1
  60. package/lib/node/helpers/canTrack.qwik.mjs +6 -1
  61. package/lib/node/helpers/user-attributes.qwik.cjs +50 -0
  62. package/lib/node/helpers/user-attributes.qwik.mjs +50 -0
  63. package/lib/node/index.qwik.cjs +2 -0
  64. package/lib/node/index.qwik.mjs +2 -0
  65. package/lib/node/scripts/init-editing.qwik.cjs +2 -1
  66. package/lib/node/scripts/init-editing.qwik.mjs +2 -1
  67. package/package.json +2 -2
  68. package/types/src/blocks/form/form/form.d.ts +1 -0
  69. package/types/src/blocks/personalization-container/component-info.d.ts +2 -0
  70. package/types/src/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
  71. package/types/src/blocks/personalization-container/helpers.d.ts +27 -0
  72. package/types/src/blocks/personalization-container/index.d.ts +1 -0
  73. package/types/src/blocks/personalization-container/personalization-container.d.ts +3 -0
  74. package/types/src/blocks/personalization-container/personalization-container.types.d.ts +14 -0
  75. package/types/src/constants/sdk-version.d.ts +1 -1
  76. package/types/src/helpers/user-attributes.d.ts +17 -0
  77. package/types/src/index-helpers/blocks-exports.d.ts +1 -0
  78. package/types/src/types/components.d.ts +2 -2
  79. package/types/src/types/input.d.ts +1 -0
@@ -168,11 +168,6 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
168
168
  get parent() {
169
169
  return props.builderBlock.id;
170
170
  },
171
- get styleProp() {
172
- return {
173
- flexGrow: "1"
174
- };
175
- },
176
171
  get context() {
177
172
  return props.builderContext;
178
173
  },
@@ -183,6 +178,11 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
183
178
  return props.builderLinkComponent;
184
179
  },
185
180
  blocks: deopt.deoptSignal(column.blocks),
181
+ get styleProp() {
182
+ return {
183
+ flexGrow: "1"
184
+ };
185
+ },
186
186
  [qwik._IMMUTABLE]: {
187
187
  context: qwik._fnSignal((p0) => p0.builderContext, [
188
188
  props
@@ -166,11 +166,6 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
166
166
  get parent() {
167
167
  return props.builderBlock.id;
168
168
  },
169
- get styleProp() {
170
- return {
171
- flexGrow: "1"
172
- };
173
- },
174
169
  get context() {
175
170
  return props.builderContext;
176
171
  },
@@ -181,6 +176,11 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
181
176
  return props.builderLinkComponent;
182
177
  },
183
178
  blocks: deoptSignal(column.blocks),
179
+ get styleProp() {
180
+ return {
181
+ flexGrow: "1"
182
+ };
183
+ },
184
184
  [_IMMUTABLE]: {
185
185
  context: _fnSignal((p0) => p0.builderContext, [
186
186
  props
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const qwik = require("@builder.io/qwik");
4
- const block = require("../../../components/block/block.qwik.cjs");
5
4
  const blocks = require("../../../components/blocks/blocks.qwik.cjs");
6
5
  const getEnv = require("../../../functions/get-env.qwik.cjs");
7
6
  const get = require("../../../functions/get.qwik.cjs");
@@ -172,7 +171,6 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
172
171
  }
173
172
  };
174
173
  const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
175
- var _a;
176
174
  qwik._jsxBranch();
177
175
  qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES, "FormComponent_component_useStylesScoped_SVdPvm0do3s"));
178
176
  const formRef = qwik.useSignal();
@@ -188,31 +186,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
188
186
  ref: formRef,
189
187
  ...props.attributes,
190
188
  children: [
191
- props.builderBlock && props.builderBlock.children ? (((_a = props.builderBlock) == null ? void 0 : _a.children) || []).map((block$1, idx) => {
192
- return /* @__PURE__ */ qwik._jsxC(block.Block, {
193
- block: block$1,
194
- get context() {
195
- return props.builderContext;
196
- },
197
- get registeredComponents() {
198
- return props.builderComponents;
199
- },
200
- get linkComponent() {
201
- return props.builderLinkComponent;
202
- },
203
- [qwik._IMMUTABLE]: {
204
- context: qwik._fnSignal((p0) => p0.builderContext, [
205
- props
206
- ], "p0.builderContext"),
207
- linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
208
- props
209
- ], "p0.builderLinkComponent"),
210
- registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
211
- props
212
- ], "p0.builderComponents")
213
- }
214
- }, 3, `form-block-${idx}`);
215
- }) : null,
189
+ /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "0n_0"),
216
190
  submissionState(props, state) === "error" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
217
191
  path: "errorMessage",
218
192
  get blocks() {
@@ -230,7 +204,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
230
204
  ], "p0.builderContext"),
231
205
  path: qwik._IMMUTABLE
232
206
  }
233
- }, 3, "0n_0") : null,
207
+ }, 3, "0n_1") : null,
234
208
  submissionState(props, state) === "sending" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
235
209
  path: "sendingMessage",
236
210
  get blocks() {
@@ -248,10 +222,10 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
248
222
  ], "p0.builderContext"),
249
223
  path: qwik._IMMUTABLE
250
224
  }
251
- }, 3, "0n_1") : null,
225
+ }, 3, "0n_2") : null,
252
226
  submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ qwik._jsxQ("pre", null, {
253
227
  class: "builder-form-error-text pre-FormComponent"
254
- }, JSON.stringify(state.responseData, null, 2), 1, "0n_2") : null,
228
+ }, JSON.stringify(state.responseData, null, 2), 1, "0n_3") : null,
255
229
  submissionState(props, state) === "success" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
256
230
  path: "successMessage",
257
231
  get blocks() {
@@ -269,7 +243,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
269
243
  ], "p0.builderContext"),
270
244
  path: qwik._IMMUTABLE
271
245
  }
272
- }, 3, "0n_3") : null
246
+ }, 3, "0n_4") : null
273
247
  ],
274
248
  onSubmit$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
275
249
  const [formRef2, props2, state2] = qwik.useLexicalScope();
@@ -290,7 +264,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
290
264
  validate: qwik._fnSignal((p0) => p0.validate, [
291
265
  props
292
266
  ], "p0.validate")
293
- }, 0, "0n_4");
267
+ }, 0, "0n_5");
294
268
  }, "FormComponent_component_dk5c15Rvsfg"));
295
269
  const STYLES = `
296
270
  .pre-FormComponent {
@@ -1,5 +1,4 @@
1
- import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useSignal, useStore, _jsxS, _jsxC, _IMMUTABLE, _fnSignal, _jsxQ, useLexicalScope } from "@builder.io/qwik";
2
- import { Block } from "../../../components/block/block.qwik.mjs";
1
+ import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useSignal, useStore, _jsxS, _jsxC, Slot, _IMMUTABLE, _fnSignal, _jsxQ, useLexicalScope } from "@builder.io/qwik";
3
2
  import { Blocks } from "../../../components/blocks/blocks.qwik.mjs";
4
3
  import { getEnv } from "../../../functions/get-env.qwik.mjs";
5
4
  import { get } from "../../../functions/get.qwik.mjs";
@@ -170,7 +169,6 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
170
169
  }
171
170
  };
172
171
  const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
173
- var _a;
174
172
  _jsxBranch();
175
173
  useStylesScopedQrl(/* @__PURE__ */ inlinedQrl(STYLES, "FormComponent_component_useStylesScoped_SVdPvm0do3s"));
176
174
  const formRef = useSignal();
@@ -186,31 +184,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
186
184
  ref: formRef,
187
185
  ...props.attributes,
188
186
  children: [
189
- props.builderBlock && props.builderBlock.children ? (((_a = props.builderBlock) == null ? void 0 : _a.children) || []).map((block, idx) => {
190
- return /* @__PURE__ */ _jsxC(Block, {
191
- block,
192
- get context() {
193
- return props.builderContext;
194
- },
195
- get registeredComponents() {
196
- return props.builderComponents;
197
- },
198
- get linkComponent() {
199
- return props.builderLinkComponent;
200
- },
201
- [_IMMUTABLE]: {
202
- context: _fnSignal((p0) => p0.builderContext, [
203
- props
204
- ], "p0.builderContext"),
205
- linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
206
- props
207
- ], "p0.builderLinkComponent"),
208
- registeredComponents: _fnSignal((p0) => p0.builderComponents, [
209
- props
210
- ], "p0.builderComponents")
211
- }
212
- }, 3, `form-block-${idx}`);
213
- }) : null,
187
+ /* @__PURE__ */ _jsxC(Slot, null, 3, "0n_0"),
214
188
  submissionState(props, state) === "error" ? /* @__PURE__ */ _jsxC(Blocks, {
215
189
  path: "errorMessage",
216
190
  get blocks() {
@@ -228,7 +202,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
228
202
  ], "p0.builderContext"),
229
203
  path: _IMMUTABLE
230
204
  }
231
- }, 3, "0n_0") : null,
205
+ }, 3, "0n_1") : null,
232
206
  submissionState(props, state) === "sending" ? /* @__PURE__ */ _jsxC(Blocks, {
233
207
  path: "sendingMessage",
234
208
  get blocks() {
@@ -246,10 +220,10 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
246
220
  ], "p0.builderContext"),
247
221
  path: _IMMUTABLE
248
222
  }
249
- }, 3, "0n_1") : null,
223
+ }, 3, "0n_2") : null,
250
224
  submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ _jsxQ("pre", null, {
251
225
  class: "builder-form-error-text pre-FormComponent"
252
- }, JSON.stringify(state.responseData, null, 2), 1, "0n_2") : null,
226
+ }, JSON.stringify(state.responseData, null, 2), 1, "0n_3") : null,
253
227
  submissionState(props, state) === "success" ? /* @__PURE__ */ _jsxC(Blocks, {
254
228
  path: "successMessage",
255
229
  get blocks() {
@@ -267,7 +241,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
267
241
  ], "p0.builderContext"),
268
242
  path: _IMMUTABLE
269
243
  }
270
- }, 3, "0n_3") : null
244
+ }, 3, "0n_4") : null
271
245
  ],
272
246
  onSubmit$: /* @__PURE__ */ inlinedQrl((event) => {
273
247
  const [formRef2, props2, state2] = useLexicalScope();
@@ -288,7 +262,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
288
262
  validate: _fnSignal((p0) => p0.validate, [
289
263
  props
290
264
  ], "p0.validate")
291
- }, 0, "0n_4");
265
+ }, 0, "0n_5");
292
266
  }, "FormComponent_component_dk5c15Rvsfg"));
293
267
  const STYLES = `
294
268
  .pre-FormComponent {
@@ -53,8 +53,6 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
53
53
  }, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
54
54
  props
55
55
  ]));
56
- qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
57
- }, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
58
56
  return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
59
57
  children: [
60
58
  /* @__PURE__ */ qwik._jsxQ("picture", null, null, [
@@ -1,4 +1,4 @@
1
- import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useComputedQrl, useLexicalScope, useVisibleTaskQrl, _jsxC, Fragment, _jsxQ, _fnSignal, Slot } from "@builder.io/qwik";
1
+ import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useComputedQrl, useLexicalScope, _jsxC, Fragment, _jsxQ, _fnSignal, Slot } from "@builder.io/qwik";
2
2
  import { getSrcSet } from "./image.helpers.qwik.mjs";
3
3
  const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
4
4
  var _a, _b, _c, _d, _e, _f;
@@ -51,8 +51,6 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
51
51
  }, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
52
52
  props
53
53
  ]));
54
- useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
55
- }, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
56
54
  return /* @__PURE__ */ _jsxC(Fragment, {
57
55
  children: [
58
56
  /* @__PURE__ */ _jsxQ("picture", null, null, [
@@ -55,7 +55,6 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
55
55
  objectPosition: props.position,
56
56
  // Hack to get object fit to work as expected and
57
57
  // not have the video overflow
58
- zIndex: 2,
59
58
  borderRadius: "1px",
60
59
  ...props.aspectRatio ? {
61
60
  position: "absolute"
@@ -53,7 +53,6 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
53
53
  objectPosition: props.position,
54
54
  // Hack to get object fit to work as expected and
55
55
  // not have the video overflow
56
- zIndex: 2,
57
56
  borderRadius: "1px",
58
57
  ...props.aspectRatio ? {
59
58
  position: "absolute"
@@ -41,8 +41,9 @@ const BlocksWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
41
41
  const [props2] = qwik.useLexicalScope();
42
42
  if (!props2.path)
43
43
  return void 0;
44
+ const thisPrefix = "this.";
44
45
  const pathPrefix = "component.options.";
45
- return props2.path.startsWith(pathPrefix) ? props2.path : `${pathPrefix}${props2.path || ""}`;
46
+ return props2.path.startsWith(thisPrefix) ? props2.path.replace(thisPrefix, "") : props2.path.startsWith(pathPrefix) ? props2.path : `${pathPrefix}${props2.path || ""}`;
46
47
  }, "BlocksWrapper_component_dataPath_useComputed_csBNeJbWH7k", [
47
48
  props
48
49
  ]));
@@ -39,8 +39,9 @@ const BlocksWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
39
39
  const [props2] = useLexicalScope();
40
40
  if (!props2.path)
41
41
  return void 0;
42
+ const thisPrefix = "this.";
42
43
  const pathPrefix = "component.options.";
43
- return props2.path.startsWith(pathPrefix) ? props2.path : `${pathPrefix}${props2.path || ""}`;
44
+ return props2.path.startsWith(thisPrefix) ? props2.path.replace(thisPrefix, "") : props2.path.startsWith(pathPrefix) ? props2.path : `${pathPrefix}${props2.path || ""}`;
44
45
  }, "BlocksWrapper_component_dataPath_useComputed_csBNeJbWH7k", [
45
46
  props
46
47
  ]));
@@ -10,6 +10,11 @@ const componentInfo$2 = require("../blocks/fragment/component-info.qwik.cjs");
10
10
  const fragment = require("../blocks/fragment/fragment.qwik.cjs");
11
11
  const componentInfo$3 = require("../blocks/image/component-info.qwik.cjs");
12
12
  const image = require("../blocks/image/image.qwik.cjs");
13
+ require("@builder.io/qwik");
14
+ require("@builder.io/qwik/jsx-runtime");
15
+ require("../context/builder.context.qwik.cjs");
16
+ require("../context/components.context.qwik.cjs");
17
+ require("@builder.io/qwik/build");
13
18
  const componentInfo$4 = require("../blocks/section/component-info.qwik.cjs");
14
19
  const section = require("../blocks/section/section.qwik.cjs");
15
20
  const componentInfo$5 = require("../blocks/slot/component-info.qwik.cjs");
@@ -54,6 +59,7 @@ const getDefaultRegisteredComponents = () => [
54
59
  component: text.Text,
55
60
  ...componentInfo$7.componentInfo
56
61
  },
62
+ ...[],
57
63
  ...[
58
64
  {
59
65
  component: tabs.Tabs,
@@ -8,6 +8,11 @@ import { componentInfo as componentInfo$2 } from "../blocks/fragment/component-i
8
8
  import { FragmentComponent } from "../blocks/fragment/fragment.qwik.mjs";
9
9
  import { componentInfo as componentInfo$3 } from "../blocks/image/component-info.qwik.mjs";
10
10
  import { Image } from "../blocks/image/image.qwik.mjs";
11
+ import "@builder.io/qwik";
12
+ import "@builder.io/qwik/jsx-runtime";
13
+ import "../context/builder.context.qwik.mjs";
14
+ import "../context/components.context.qwik.mjs";
15
+ import "@builder.io/qwik/build";
11
16
  import { componentInfo as componentInfo$4 } from "../blocks/section/component-info.qwik.mjs";
12
17
  import { SectionComponent } from "../blocks/section/section.qwik.mjs";
13
18
  import { componentInfo as componentInfo$5 } from "../blocks/slot/component-info.qwik.mjs";
@@ -52,6 +57,7 @@ const getDefaultRegisteredComponents = () => [
52
57
  component: Text,
53
58
  ...componentInfo$7
54
59
  },
60
+ ...[],
55
61
  ...[
56
62
  {
57
63
  component: Tabs,
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const SDK_VERSION = "0.17.3";
3
+ const SDK_VERSION = "0.17.7";
4
4
  exports.SDK_VERSION = SDK_VERSION;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "0.17.3";
1
+ const SDK_VERSION = "0.17.7";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const nullable = require("./nullable.qwik.cjs");
4
- const getDefaultCanTrack = (canTrack) => nullable.checkIsDefined(canTrack) ? canTrack : true;
4
+ const userAttributes = require("./user-attributes.qwik.cjs");
5
+ const getDefaultCanTrack = (canTrack) => {
6
+ const result = nullable.checkIsDefined(canTrack) ? canTrack : true;
7
+ userAttributes.userAttributesService.setCanTrack(result);
8
+ return result;
9
+ };
5
10
  exports.getDefaultCanTrack = getDefaultCanTrack;
@@ -1,5 +1,10 @@
1
1
  import { checkIsDefined } from "./nullable.qwik.mjs";
2
- const getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
2
+ import { userAttributesService } from "./user-attributes.qwik.mjs";
3
+ const getDefaultCanTrack = (canTrack) => {
4
+ const result = checkIsDefined(canTrack) ? canTrack : true;
5
+ userAttributesService.setCanTrack(result);
6
+ return result;
7
+ };
3
8
  export {
4
9
  getDefaultCanTrack
5
10
  };
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const isBrowser = require("../functions/is-browser.qwik.cjs");
4
+ const cookie = require("./cookie.qwik.cjs");
5
+ const USER_ATTRIBUTES_COOKIE_NAME = "builder.userAttributes";
6
+ function createUserAttributesService() {
7
+ let canTrack = true;
8
+ const subscribers = /* @__PURE__ */ new Set();
9
+ return {
10
+ setUserAttributes(newAttrs) {
11
+ if (!isBrowser.isBrowser())
12
+ return;
13
+ const userAttributes = {
14
+ ...this.getUserAttributes(),
15
+ ...newAttrs
16
+ };
17
+ cookie.setCookie({
18
+ name: USER_ATTRIBUTES_COOKIE_NAME,
19
+ value: JSON.stringify(userAttributes),
20
+ canTrack
21
+ });
22
+ subscribers.forEach((callback) => callback(userAttributes));
23
+ },
24
+ getUserAttributes() {
25
+ if (!isBrowser.isBrowser())
26
+ return {};
27
+ return JSON.parse(cookie.getCookieSync({
28
+ name: USER_ATTRIBUTES_COOKIE_NAME,
29
+ canTrack
30
+ }) || "{}");
31
+ },
32
+ subscribeOnUserAttributesChange(callback) {
33
+ subscribers.add(callback);
34
+ return () => {
35
+ subscribers.delete(callback);
36
+ };
37
+ },
38
+ setCanTrack(value) {
39
+ canTrack = value;
40
+ }
41
+ };
42
+ }
43
+ const userAttributesService = createUserAttributesService();
44
+ const setClientUserAttributes = (attributes) => {
45
+ userAttributesService.setUserAttributes(attributes);
46
+ };
47
+ exports.USER_ATTRIBUTES_COOKIE_NAME = USER_ATTRIBUTES_COOKIE_NAME;
48
+ exports.createUserAttributesService = createUserAttributesService;
49
+ exports.setClientUserAttributes = setClientUserAttributes;
50
+ exports.userAttributesService = userAttributesService;
@@ -0,0 +1,50 @@
1
+ import { isBrowser } from "../functions/is-browser.qwik.mjs";
2
+ import { setCookie, getCookieSync } from "./cookie.qwik.mjs";
3
+ const USER_ATTRIBUTES_COOKIE_NAME = "builder.userAttributes";
4
+ function createUserAttributesService() {
5
+ let canTrack = true;
6
+ const subscribers = /* @__PURE__ */ new Set();
7
+ return {
8
+ setUserAttributes(newAttrs) {
9
+ if (!isBrowser())
10
+ return;
11
+ const userAttributes = {
12
+ ...this.getUserAttributes(),
13
+ ...newAttrs
14
+ };
15
+ setCookie({
16
+ name: USER_ATTRIBUTES_COOKIE_NAME,
17
+ value: JSON.stringify(userAttributes),
18
+ canTrack
19
+ });
20
+ subscribers.forEach((callback) => callback(userAttributes));
21
+ },
22
+ getUserAttributes() {
23
+ if (!isBrowser())
24
+ return {};
25
+ return JSON.parse(getCookieSync({
26
+ name: USER_ATTRIBUTES_COOKIE_NAME,
27
+ canTrack
28
+ }) || "{}");
29
+ },
30
+ subscribeOnUserAttributesChange(callback) {
31
+ subscribers.add(callback);
32
+ return () => {
33
+ subscribers.delete(callback);
34
+ };
35
+ },
36
+ setCanTrack(value) {
37
+ canTrack = value;
38
+ }
39
+ };
40
+ }
41
+ const userAttributesService = createUserAttributesService();
42
+ const setClientUserAttributes = (attributes) => {
43
+ userAttributesService.setUserAttributes(attributes);
44
+ };
45
+ export {
46
+ USER_ATTRIBUTES_COOKIE_NAME,
47
+ createUserAttributesService,
48
+ setClientUserAttributes,
49
+ userAttributesService
50
+ };
@@ -11,6 +11,7 @@ const video = require("./blocks/video/video.qwik.cjs");
11
11
  const blocks = require("./components/blocks/blocks.qwik.cjs");
12
12
  const contentVariants = require("./components/content-variants/content-variants.qwik.cjs");
13
13
  const builder_context = require("./context/builder.context.qwik.cjs");
14
+ const userAttributes = require("./helpers/user-attributes.qwik.cjs");
14
15
  const isEditing = require("./functions/is-editing.qwik.cjs");
15
16
  const isPreviewing = require("./functions/is-previewing.qwik.cjs");
16
17
  const registerComponent = require("./functions/register-component.qwik.cjs");
@@ -32,6 +33,7 @@ exports.Video = video.Video;
32
33
  exports.Blocks = blocks.Blocks;
33
34
  exports.Content = contentVariants.ContentVariants;
34
35
  exports.BuilderContext = builder_context;
36
+ exports.setClientUserAttributes = userAttributes.setClientUserAttributes;
35
37
  exports.isEditing = isEditing.isEditing;
36
38
  exports.isPreviewing = isPreviewing.isPreviewing;
37
39
  exports.createRegisterComponentMessage = registerComponent.createRegisterComponentMessage;
@@ -9,6 +9,7 @@ import { Video } from "./blocks/video/video.qwik.mjs";
9
9
  import { Blocks } from "./components/blocks/blocks.qwik.mjs";
10
10
  import { ContentVariants } from "./components/content-variants/content-variants.qwik.mjs";
11
11
  import { default as default2 } from "./context/builder.context.qwik.mjs";
12
+ import { setClientUserAttributes } from "./helpers/user-attributes.qwik.mjs";
12
13
  import { isEditing } from "./functions/is-editing.qwik.mjs";
13
14
  import { isPreviewing } from "./functions/is-previewing.qwik.mjs";
14
15
  import { createRegisterComponentMessage } from "./functions/register-component.qwik.mjs";
@@ -40,6 +41,7 @@ export {
40
41
  isEditing,
41
42
  isPreviewing,
42
43
  register,
44
+ setClientUserAttributes,
43
45
  setEditorSettings,
44
46
  subscribeToEditor,
45
47
  track
@@ -55,7 +55,8 @@ const setupBrowserForEditing = (options = {}) => {
55
55
  // Supports builder-model="..." attribute which is needed to
56
56
  // scope our '+ add block' button styling
57
57
  supportsAddBlockScoping: true,
58
- supportsCustomBreakpoints: true
58
+ supportsCustomBreakpoints: true,
59
+ blockLevelPersonalization: true
59
60
  }
60
61
  }, "*");
61
62
  (_b = window.parent) == null ? void 0 : _b.postMessage({
@@ -53,7 +53,8 @@ const setupBrowserForEditing = (options = {}) => {
53
53
  // Supports builder-model="..." attribute which is needed to
54
54
  // scope our '+ add block' button styling
55
55
  supportsAddBlockScoping: true,
56
- supportsCustomBreakpoints: true
56
+ supportsCustomBreakpoints: true,
57
+ blockLevelPersonalization: true
57
58
  }
58
59
  }, "*");
59
60
  (_b = window.parent) == null ? void 0 : _b.postMessage({
@@ -168,11 +168,6 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
168
168
  get parent() {
169
169
  return props.builderBlock.id;
170
170
  },
171
- get styleProp() {
172
- return {
173
- flexGrow: "1"
174
- };
175
- },
176
171
  get context() {
177
172
  return props.builderContext;
178
173
  },
@@ -183,6 +178,11 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
183
178
  return props.builderLinkComponent;
184
179
  },
185
180
  blocks: deopt.deoptSignal(column.blocks),
181
+ get styleProp() {
182
+ return {
183
+ flexGrow: "1"
184
+ };
185
+ },
186
186
  [qwik._IMMUTABLE]: {
187
187
  context: qwik._fnSignal((p0) => p0.builderContext, [
188
188
  props
@@ -166,11 +166,6 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
166
166
  get parent() {
167
167
  return props.builderBlock.id;
168
168
  },
169
- get styleProp() {
170
- return {
171
- flexGrow: "1"
172
- };
173
- },
174
169
  get context() {
175
170
  return props.builderContext;
176
171
  },
@@ -181,6 +176,11 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
181
176
  return props.builderLinkComponent;
182
177
  },
183
178
  blocks: deoptSignal(column.blocks),
179
+ get styleProp() {
180
+ return {
181
+ flexGrow: "1"
182
+ };
183
+ },
184
184
  [_IMMUTABLE]: {
185
185
  context: _fnSignal((p0) => p0.builderContext, [
186
186
  props