@builder.io/sdk-qwik 0.0.23 → 0.0.25

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 (35) hide show
  1. package/lib/index.qwik.cjs +187 -128
  2. package/lib/index.qwik.mjs +188 -129
  3. package/package.json +1 -1
  4. package/types/blocks/columns/columns.d.ts +3 -4
  5. package/types/blocks/image/image.d.ts +1 -1
  6. package/types/blocks/symbol/symbol.d.ts +2 -2
  7. package/types/components/render-block/block-styles.d.ts +2 -2
  8. package/types/components/render-block/render-block.d.ts +4 -470
  9. package/types/components/render-block/render-component.d.ts +2 -2
  10. package/types/components/render-block/types.d.ts +2 -2
  11. package/types/components/render-blocks.d.ts +2 -1
  12. package/types/components/render-content/render-content.d.ts +2 -2
  13. package/types/context/types.d.ts +3 -3
  14. package/types/functions/get-block-actions-handler.d.ts +1 -1
  15. package/types/functions/get-block-actions.d.ts +1 -1
  16. package/types/functions/get-block-component-options.d.ts +1 -1
  17. package/types/functions/get-block-properties.d.ts +1 -1
  18. package/types/functions/get-block-styles.d.ts +2 -468
  19. package/types/functions/get-block-tag.d.ts +1 -1
  20. package/types/functions/get-content/ab-testing.d.ts +5 -3
  21. package/types/functions/get-content/index.d.ts +1 -1
  22. package/types/functions/get-content/types.d.ts +7 -2
  23. package/types/functions/get-processed-block.d.ts +1 -1
  24. package/types/functions/register-component.d.ts +1 -1
  25. package/types/functions/register.d.ts +2 -2
  26. package/types/functions/sanitize-styles.d.ts +1 -1
  27. package/types/functions/track.d.ts +1 -1
  28. package/types/functions/transform-block.d.ts +1 -1
  29. package/types/helpers/ab-tests.d.ts +8 -0
  30. package/types/helpers/cookie.d.ts +9 -3
  31. package/types/helpers/localStorage.d.ts +3 -4
  32. package/types/helpers/sessionId.d.ts +3 -4
  33. package/types/helpers/visitorId.d.ts +3 -5
  34. package/types/types/builder-content.d.ts +1 -1
  35. package/types/types/typescript.d.ts +1 -0
@@ -1,468 +1,2 @@
1
- import { BuilderBlock } from '../types/builder-block.js';
2
- export declare function getBlockStyles(block: BuilderBlock): {
3
- [x: number]: string | undefined;
4
- accentColor?: string | undefined;
5
- alignContent?: string | undefined;
6
- alignItems?: string | undefined;
7
- alignSelf?: string | undefined;
8
- alignmentBaseline?: string | undefined;
9
- all?: string | undefined;
10
- animation?: string | undefined;
11
- animationDelay?: string | undefined;
12
- animationDirection?: string | undefined;
13
- animationDuration?: string | undefined;
14
- animationFillMode?: string | undefined;
15
- animationIterationCount?: string | undefined;
16
- animationName?: string | undefined;
17
- animationPlayState?: string | undefined;
18
- animationTimingFunction?: string | undefined;
19
- appearance?: string | undefined;
20
- aspectRatio?: string | undefined;
21
- backfaceVisibility?: string | undefined;
22
- background?: string | undefined;
23
- backgroundAttachment?: string | undefined;
24
- backgroundBlendMode?: string | undefined;
25
- backgroundClip?: string | undefined;
26
- backgroundColor?: string | undefined;
27
- backgroundImage?: string | undefined;
28
- backgroundOrigin?: string | undefined;
29
- backgroundPosition?: string | undefined;
30
- backgroundPositionX?: string | undefined;
31
- backgroundPositionY?: string | undefined;
32
- backgroundRepeat?: string | undefined;
33
- backgroundSize?: string | undefined;
34
- baselineShift?: string | undefined;
35
- blockSize?: string | undefined;
36
- border?: string | undefined;
37
- borderBlock?: string | undefined;
38
- borderBlockColor?: string | undefined;
39
- borderBlockEnd?: string | undefined;
40
- borderBlockEndColor?: string | undefined;
41
- borderBlockEndStyle?: string | undefined;
42
- borderBlockEndWidth?: string | undefined;
43
- borderBlockStart?: string | undefined;
44
- borderBlockStartColor?: string | undefined;
45
- borderBlockStartStyle?: string | undefined;
46
- borderBlockStartWidth?: string | undefined;
47
- borderBlockStyle?: string | undefined;
48
- borderBlockWidth?: string | undefined;
49
- borderBottom?: string | undefined;
50
- borderBottomColor?: string | undefined;
51
- borderBottomLeftRadius?: string | undefined;
52
- borderBottomRightRadius?: string | undefined;
53
- borderBottomStyle?: string | undefined;
54
- borderBottomWidth?: string | undefined;
55
- borderCollapse?: string | undefined;
56
- borderColor?: string | undefined;
57
- borderEndEndRadius?: string | undefined;
58
- borderEndStartRadius?: string | undefined;
59
- borderImage?: string | undefined;
60
- borderImageOutset?: string | undefined;
61
- borderImageRepeat?: string | undefined;
62
- borderImageSlice?: string | undefined;
63
- borderImageSource?: string | undefined;
64
- borderImageWidth?: string | undefined;
65
- borderInline?: string | undefined;
66
- borderInlineColor?: string | undefined;
67
- borderInlineEnd?: string | undefined;
68
- borderInlineEndColor?: string | undefined;
69
- borderInlineEndStyle?: string | undefined;
70
- borderInlineEndWidth?: string | undefined;
71
- borderInlineStart?: string | undefined;
72
- borderInlineStartColor?: string | undefined;
73
- borderInlineStartStyle?: string | undefined;
74
- borderInlineStartWidth?: string | undefined;
75
- borderInlineStyle?: string | undefined;
76
- borderInlineWidth?: string | undefined;
77
- borderLeft?: string | undefined;
78
- borderLeftColor?: string | undefined;
79
- borderLeftStyle?: string | undefined;
80
- borderLeftWidth?: string | undefined;
81
- borderRadius?: string | undefined;
82
- borderRight?: string | undefined;
83
- borderRightColor?: string | undefined;
84
- borderRightStyle?: string | undefined;
85
- borderRightWidth?: string | undefined;
86
- borderSpacing?: string | undefined;
87
- borderStartEndRadius?: string | undefined;
88
- borderStartStartRadius?: string | undefined;
89
- borderStyle?: string | undefined;
90
- borderTop?: string | undefined;
91
- borderTopColor?: string | undefined;
92
- borderTopLeftRadius?: string | undefined;
93
- borderTopRightRadius?: string | undefined;
94
- borderTopStyle?: string | undefined;
95
- borderTopWidth?: string | undefined;
96
- borderWidth?: string | undefined;
97
- bottom?: string | undefined;
98
- boxShadow?: string | undefined;
99
- boxSizing?: string | undefined;
100
- breakAfter?: string | undefined;
101
- breakBefore?: string | undefined;
102
- breakInside?: string | undefined;
103
- captionSide?: string | undefined;
104
- caretColor?: string | undefined;
105
- clear?: string | undefined;
106
- clip?: string | undefined;
107
- clipPath?: string | undefined;
108
- clipRule?: string | undefined;
109
- color?: string | undefined;
110
- colorInterpolation?: string | undefined;
111
- colorInterpolationFilters?: string | undefined;
112
- colorScheme?: string | undefined;
113
- columnCount?: string | undefined;
114
- columnFill?: string | undefined;
115
- columnGap?: string | undefined;
116
- columnRule?: string | undefined;
117
- columnRuleColor?: string | undefined;
118
- columnRuleStyle?: string | undefined;
119
- columnRuleWidth?: string | undefined;
120
- columnSpan?: string | undefined;
121
- columnWidth?: string | undefined;
122
- columns?: string | undefined;
123
- contain?: string | undefined;
124
- content?: string | undefined;
125
- counterIncrement?: string | undefined;
126
- counterReset?: string | undefined;
127
- counterSet?: string | undefined;
128
- cssFloat?: string | undefined;
129
- cssText?: string | undefined;
130
- cursor?: string | undefined;
131
- direction?: string | undefined;
132
- display?: string | undefined;
133
- dominantBaseline?: string | undefined;
134
- emptyCells?: string | undefined;
135
- fill?: string | undefined;
136
- fillOpacity?: string | undefined;
137
- fillRule?: string | undefined;
138
- filter?: string | undefined;
139
- flex?: string | undefined;
140
- flexBasis?: string | undefined;
141
- flexDirection?: string | undefined;
142
- flexFlow?: string | undefined;
143
- flexGrow?: string | undefined;
144
- flexShrink?: string | undefined;
145
- flexWrap?: string | undefined;
146
- float?: string | undefined;
147
- floodColor?: string | undefined;
148
- floodOpacity?: string | undefined;
149
- font?: string | undefined;
150
- fontFamily?: string | undefined;
151
- fontFeatureSettings?: string | undefined;
152
- fontKerning?: string | undefined;
153
- fontOpticalSizing?: string | undefined;
154
- fontSize?: string | undefined;
155
- fontSizeAdjust?: string | undefined;
156
- fontStretch?: string | undefined;
157
- fontStyle?: string | undefined;
158
- fontSynthesis?: string | undefined;
159
- fontVariant?: string | undefined;
160
- fontVariantAlternates?: string | undefined;
161
- fontVariantCaps?: string | undefined;
162
- fontVariantEastAsian?: string | undefined;
163
- fontVariantLigatures?: string | undefined;
164
- fontVariantNumeric?: string | undefined;
165
- fontVariantPosition?: string | undefined;
166
- fontVariationSettings?: string | undefined;
167
- fontWeight?: string | undefined;
168
- gap?: string | undefined;
169
- grid?: string | undefined;
170
- gridArea?: string | undefined;
171
- gridAutoColumns?: string | undefined;
172
- gridAutoFlow?: string | undefined;
173
- gridAutoRows?: string | undefined;
174
- gridColumn?: string | undefined;
175
- gridColumnEnd?: string | undefined;
176
- gridColumnGap?: string | undefined;
177
- gridColumnStart?: string | undefined;
178
- gridGap?: string | undefined;
179
- gridRow?: string | undefined;
180
- gridRowEnd?: string | undefined;
181
- gridRowGap?: string | undefined;
182
- gridRowStart?: string | undefined;
183
- gridTemplate?: string | undefined;
184
- gridTemplateAreas?: string | undefined;
185
- gridTemplateColumns?: string | undefined;
186
- gridTemplateRows?: string | undefined;
187
- height?: string | undefined;
188
- hyphens?: string | undefined;
189
- imageOrientation?: string | undefined;
190
- imageRendering?: string | undefined;
191
- inlineSize?: string | undefined;
192
- inset?: string | undefined;
193
- insetBlock?: string | undefined;
194
- insetBlockEnd?: string | undefined;
195
- insetBlockStart?: string | undefined;
196
- insetInline?: string | undefined;
197
- insetInlineEnd?: string | undefined;
198
- insetInlineStart?: string | undefined;
199
- isolation?: string | undefined;
200
- justifyContent?: string | undefined;
201
- justifyItems?: string | undefined;
202
- justifySelf?: string | undefined;
203
- left?: string | undefined;
204
- length?: number | undefined;
205
- letterSpacing?: string | undefined;
206
- lightingColor?: string | undefined;
207
- lineBreak?: string | undefined;
208
- lineHeight?: string | undefined;
209
- listStyle?: string | undefined;
210
- listStyleImage?: string | undefined;
211
- listStylePosition?: string | undefined;
212
- listStyleType?: string | undefined;
213
- margin?: string | undefined;
214
- marginBlock?: string | undefined;
215
- marginBlockEnd?: string | undefined;
216
- marginBlockStart?: string | undefined;
217
- marginBottom?: string | undefined;
218
- marginInline?: string | undefined;
219
- marginInlineEnd?: string | undefined;
220
- marginInlineStart?: string | undefined;
221
- marginLeft?: string | undefined;
222
- marginRight?: string | undefined;
223
- marginTop?: string | undefined;
224
- marker?: string | undefined;
225
- markerEnd?: string | undefined;
226
- markerMid?: string | undefined;
227
- markerStart?: string | undefined;
228
- mask?: string | undefined;
229
- maskClip?: string | undefined;
230
- maskComposite?: string | undefined;
231
- maskImage?: string | undefined;
232
- maskMode?: string | undefined;
233
- maskOrigin?: string | undefined;
234
- maskPosition?: string | undefined;
235
- maskRepeat?: string | undefined;
236
- maskSize?: string | undefined;
237
- maskType?: string | undefined;
238
- maxBlockSize?: string | undefined;
239
- maxHeight?: string | undefined;
240
- maxInlineSize?: string | undefined;
241
- maxWidth?: string | undefined;
242
- minBlockSize?: string | undefined;
243
- minHeight?: string | undefined;
244
- minInlineSize?: string | undefined;
245
- minWidth?: string | undefined;
246
- mixBlendMode?: string | undefined;
247
- objectFit?: string | undefined;
248
- objectPosition?: string | undefined;
249
- offset?: string | undefined;
250
- offsetDistance?: string | undefined;
251
- offsetPath?: string | undefined;
252
- offsetRotate?: string | undefined;
253
- opacity?: string | undefined;
254
- order?: string | undefined;
255
- orphans?: string | undefined;
256
- outline?: string | undefined;
257
- outlineColor?: string | undefined;
258
- outlineOffset?: string | undefined;
259
- outlineStyle?: string | undefined;
260
- outlineWidth?: string | undefined;
261
- overflow?: string | undefined;
262
- overflowAnchor?: string | undefined;
263
- overflowWrap?: string | undefined;
264
- overflowX?: string | undefined;
265
- overflowY?: string | undefined;
266
- overscrollBehavior?: string | undefined;
267
- overscrollBehaviorBlock?: string | undefined;
268
- overscrollBehaviorInline?: string | undefined;
269
- overscrollBehaviorX?: string | undefined;
270
- overscrollBehaviorY?: string | undefined;
271
- padding?: string | undefined;
272
- paddingBlock?: string | undefined;
273
- paddingBlockEnd?: string | undefined;
274
- paddingBlockStart?: string | undefined;
275
- paddingBottom?: string | undefined;
276
- paddingInline?: string | undefined;
277
- paddingInlineEnd?: string | undefined;
278
- paddingInlineStart?: string | undefined;
279
- paddingLeft?: string | undefined;
280
- paddingRight?: string | undefined;
281
- paddingTop?: string | undefined;
282
- pageBreakAfter?: string | undefined;
283
- pageBreakBefore?: string | undefined;
284
- pageBreakInside?: string | undefined;
285
- paintOrder?: string | undefined;
286
- parentRule?: CSSRule | null | undefined;
287
- perspective?: string | undefined;
288
- perspectiveOrigin?: string | undefined;
289
- placeContent?: string | undefined;
290
- placeItems?: string | undefined;
291
- placeSelf?: string | undefined;
292
- pointerEvents?: string | undefined;
293
- position?: string | undefined;
294
- printColorAdjust?: string | undefined;
295
- quotes?: string | undefined;
296
- resize?: string | undefined;
297
- right?: string | undefined;
298
- rotate?: string | undefined;
299
- rowGap?: string | undefined;
300
- rubyPosition?: string | undefined;
301
- scale?: string | undefined;
302
- scrollBehavior?: string | undefined;
303
- scrollMargin?: string | undefined;
304
- scrollMarginBlock?: string | undefined;
305
- scrollMarginBlockEnd?: string | undefined;
306
- scrollMarginBlockStart?: string | undefined;
307
- scrollMarginBottom?: string | undefined;
308
- scrollMarginInline?: string | undefined;
309
- scrollMarginInlineEnd?: string | undefined;
310
- scrollMarginInlineStart?: string | undefined;
311
- scrollMarginLeft?: string | undefined;
312
- scrollMarginRight?: string | undefined;
313
- scrollMarginTop?: string | undefined;
314
- scrollPadding?: string | undefined;
315
- scrollPaddingBlock?: string | undefined;
316
- scrollPaddingBlockEnd?: string | undefined;
317
- scrollPaddingBlockStart?: string | undefined;
318
- scrollPaddingBottom?: string | undefined;
319
- scrollPaddingInline?: string | undefined;
320
- scrollPaddingInlineEnd?: string | undefined;
321
- scrollPaddingInlineStart?: string | undefined;
322
- scrollPaddingLeft?: string | undefined;
323
- scrollPaddingRight?: string | undefined;
324
- scrollPaddingTop?: string | undefined;
325
- scrollSnapAlign?: string | undefined;
326
- scrollSnapStop?: string | undefined;
327
- scrollSnapType?: string | undefined;
328
- scrollbarGutter?: string | undefined;
329
- shapeImageThreshold?: string | undefined;
330
- shapeMargin?: string | undefined;
331
- shapeOutside?: string | undefined;
332
- shapeRendering?: string | undefined;
333
- stopColor?: string | undefined;
334
- stopOpacity?: string | undefined;
335
- stroke?: string | undefined;
336
- strokeDasharray?: string | undefined;
337
- strokeDashoffset?: string | undefined;
338
- strokeLinecap?: string | undefined;
339
- strokeLinejoin?: string | undefined;
340
- strokeMiterlimit?: string | undefined;
341
- strokeOpacity?: string | undefined;
342
- strokeWidth?: string | undefined;
343
- tabSize?: string | undefined;
344
- tableLayout?: string | undefined;
345
- textAlign?: string | undefined;
346
- textAlignLast?: string | undefined;
347
- textAnchor?: string | undefined;
348
- textCombineUpright?: string | undefined;
349
- textDecoration?: string | undefined;
350
- textDecorationColor?: string | undefined;
351
- textDecorationLine?: string | undefined;
352
- textDecorationSkipInk?: string | undefined;
353
- textDecorationStyle?: string | undefined;
354
- textDecorationThickness?: string | undefined;
355
- textEmphasis?: string | undefined;
356
- textEmphasisColor?: string | undefined;
357
- textEmphasisPosition?: string | undefined;
358
- textEmphasisStyle?: string | undefined;
359
- textIndent?: string | undefined;
360
- textOrientation?: string | undefined;
361
- textOverflow?: string | undefined;
362
- textRendering?: string | undefined;
363
- textShadow?: string | undefined;
364
- textTransform?: string | undefined;
365
- textUnderlineOffset?: string | undefined;
366
- textUnderlinePosition?: string | undefined;
367
- top?: string | undefined;
368
- touchAction?: string | undefined;
369
- transform?: string | undefined;
370
- transformBox?: string | undefined;
371
- transformOrigin?: string | undefined;
372
- transformStyle?: string | undefined;
373
- transition?: string | undefined;
374
- transitionDelay?: string | undefined;
375
- transitionDuration?: string | undefined;
376
- transitionProperty?: string | undefined;
377
- transitionTimingFunction?: string | undefined;
378
- translate?: string | undefined;
379
- unicodeBidi?: string | undefined;
380
- userSelect?: string | undefined;
381
- verticalAlign?: string | undefined;
382
- visibility?: string | undefined;
383
- webkitAlignContent?: string | undefined;
384
- webkitAlignItems?: string | undefined;
385
- webkitAlignSelf?: string | undefined;
386
- webkitAnimation?: string | undefined;
387
- webkitAnimationDelay?: string | undefined;
388
- webkitAnimationDirection?: string | undefined;
389
- webkitAnimationDuration?: string | undefined;
390
- webkitAnimationFillMode?: string | undefined;
391
- webkitAnimationIterationCount?: string | undefined;
392
- webkitAnimationName?: string | undefined;
393
- webkitAnimationPlayState?: string | undefined;
394
- webkitAnimationTimingFunction?: string | undefined;
395
- webkitAppearance?: string | undefined;
396
- webkitBackfaceVisibility?: string | undefined;
397
- webkitBackgroundClip?: string | undefined;
398
- webkitBackgroundOrigin?: string | undefined;
399
- webkitBackgroundSize?: string | undefined;
400
- webkitBorderBottomLeftRadius?: string | undefined;
401
- webkitBorderBottomRightRadius?: string | undefined;
402
- webkitBorderRadius?: string | undefined;
403
- webkitBorderTopLeftRadius?: string | undefined;
404
- webkitBorderTopRightRadius?: string | undefined;
405
- webkitBoxAlign?: string | undefined;
406
- webkitBoxFlex?: string | undefined;
407
- webkitBoxOrdinalGroup?: string | undefined;
408
- webkitBoxOrient?: string | undefined;
409
- webkitBoxPack?: string | undefined;
410
- webkitBoxShadow?: string | undefined;
411
- webkitBoxSizing?: string | undefined;
412
- webkitFilter?: string | undefined;
413
- webkitFlex?: string | undefined;
414
- webkitFlexBasis?: string | undefined;
415
- webkitFlexDirection?: string | undefined;
416
- webkitFlexFlow?: string | undefined;
417
- webkitFlexGrow?: string | undefined;
418
- webkitFlexShrink?: string | undefined;
419
- webkitFlexWrap?: string | undefined;
420
- webkitJustifyContent?: string | undefined;
421
- webkitLineClamp?: string | undefined;
422
- webkitMask?: string | undefined;
423
- webkitMaskBoxImage?: string | undefined;
424
- webkitMaskBoxImageOutset?: string | undefined;
425
- webkitMaskBoxImageRepeat?: string | undefined;
426
- webkitMaskBoxImageSlice?: string | undefined;
427
- webkitMaskBoxImageSource?: string | undefined;
428
- webkitMaskBoxImageWidth?: string | undefined;
429
- webkitMaskClip?: string | undefined;
430
- webkitMaskComposite?: string | undefined;
431
- webkitMaskImage?: string | undefined;
432
- webkitMaskOrigin?: string | undefined;
433
- webkitMaskPosition?: string | undefined;
434
- webkitMaskRepeat?: string | undefined;
435
- webkitMaskSize?: string | undefined;
436
- webkitOrder?: string | undefined;
437
- webkitPerspective?: string | undefined;
438
- webkitPerspectiveOrigin?: string | undefined;
439
- webkitTextFillColor?: string | undefined;
440
- webkitTextSizeAdjust?: string | undefined;
441
- webkitTextStroke?: string | undefined;
442
- webkitTextStrokeColor?: string | undefined;
443
- webkitTextStrokeWidth?: string | undefined;
444
- webkitTransform?: string | undefined;
445
- webkitTransformOrigin?: string | undefined;
446
- webkitTransformStyle?: string | undefined;
447
- webkitTransition?: string | undefined;
448
- webkitTransitionDelay?: string | undefined;
449
- webkitTransitionDuration?: string | undefined;
450
- webkitTransitionProperty?: string | undefined;
451
- webkitTransitionTimingFunction?: string | undefined;
452
- webkitUserSelect?: string | undefined;
453
- whiteSpace?: string | undefined;
454
- widows?: string | undefined;
455
- width?: string | undefined;
456
- willChange?: string | undefined;
457
- wordBreak?: string | undefined;
458
- wordSpacing?: string | undefined;
459
- wordWrap?: string | undefined;
460
- writingMode?: string | undefined;
461
- zIndex?: string | undefined;
462
- getPropertyPriority?: ((property: string) => string) | undefined;
463
- getPropertyValue?: ((property: string) => string) | undefined;
464
- item?: ((index: number) => string) | undefined;
465
- removeProperty?: ((property: string) => string) | undefined;
466
- setProperty?: ((property: string, value: string | null, priority?: string | undefined) => void) | undefined;
467
- [Symbol.iterator]?: (() => IterableIterator<string>) | undefined;
468
- };
1
+ import type { BuilderBlock } from '../types/builder-block.js';
2
+ export declare function getBlockStyles(block: BuilderBlock): Partial<CSSStyleDeclaration>;
@@ -1,3 +1,3 @@
1
- import { BuilderBlock } from '../types/builder-block.js';
1
+ import type { BuilderBlock } from '../types/builder-block.js';
2
2
  export declare type TagName = string;
3
3
  export declare function getBlockTag(block: BuilderBlock): TagName;
@@ -1,3 +1,5 @@
1
- import { GetContentOptions } from './types.js';
2
- import { BuilderContent } from '../../types/builder-content.js';
3
- export declare const handleABTesting: (item: BuilderContent, testGroups: NonNullable<GetContentOptions['testGroups']>) => void;
1
+ import type { BuilderContent } from '../../types/builder-content.js';
2
+ import type { CanTrack } from '../../types/can-track.js';
3
+ export declare const handleABTesting: ({ item, canTrack, }: {
4
+ item: BuilderContent;
5
+ } & CanTrack) => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { BuilderContent } from '../../types/builder-content.js';
1
+ import type { BuilderContent } from '../../types/builder-content.js';
2
2
  export declare type GetContentOptions = import('./types.js').GetContentOptions;
3
3
  export declare function getContent(options: GetContentOptions): Promise<BuilderContent | null>;
4
4
  export declare const generateContentUrl: (options: GetContentOptions) => URL;
@@ -3,8 +3,6 @@ export interface GetContentOptions {
3
3
  model: string;
4
4
  /** Your public API key */
5
5
  apiKey: string;
6
- /** A/B test groups the current visitor is in. Key is the content ID, value is the variation ID */
7
- testGroups?: Record<string, string> | null;
8
6
  /** Number of items to fetch. Default is 1 */
9
7
  limit?: number;
10
8
  /** User attributes to target on, such as { urlPath: '/foo', device: 'mobile', ...etc } */
@@ -23,4 +21,11 @@ export interface GetContentOptions {
23
21
  * If set to `false`, it will render the entire content tree eagerly.
24
22
  */
25
23
  noTraverse?: boolean;
24
+ /**
25
+ * If set to `false`, it will not use cookies to target content. Therefore, A/B Testing will be disabled and
26
+ * only the default variation will be returned to every user.
27
+ *
28
+ * Defaults to `true`.
29
+ */
30
+ canTrack?: boolean;
26
31
  }
@@ -1,5 +1,5 @@
1
1
  import type { BuilderContextInterface } from '../context/types.js';
2
- import { BuilderBlock } from '../types/builder-block.js';
2
+ import type { BuilderBlock } from '../types/builder-block.js';
3
3
  export declare function getProcessedBlock({ block, context, shouldEvaluateBindings, state, }: {
4
4
  block: BuilderBlock;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { RegisteredComponent } from '../context/types.js';
1
+ import type { RegisteredComponent } from '../context/types.js';
2
2
  import type { ComponentInfo } from '../types/components.js';
3
3
  /**
4
4
  * @deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.
@@ -1,5 +1,5 @@
1
- import { BuilderBlock } from '../types/builder-block.js';
2
- import { DeepPartial } from '../types/deep-partial.js';
1
+ import type { BuilderBlock } from '../types/builder-block.js';
2
+ import type { DeepPartial } from '../types/deep-partial.js';
3
3
  export interface InsertMenuItem {
4
4
  name: string;
5
5
  icon?: string;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * No-op function, sanitize on a per-framework basis by overriding.
3
3
  */
4
- export declare const sanitizeBlockStyles: (_styles: Partial<CSSStyleDeclaration>) => void;
4
+ export declare const sanitizeBlockStyles: (styles: Partial<CSSStyleDeclaration>) => Partial<CSSStyleDeclaration>;
@@ -1,4 +1,4 @@
1
- import { CanTrack } from '../types/can-track.js';
1
+ import type { CanTrack } from '../types/can-track.js';
2
2
  interface Event {
3
3
  type: 'click' | 'impression';
4
4
  data: {
@@ -1,2 +1,2 @@
1
- import { BuilderBlock } from '../types/builder-block.js';
1
+ import type { BuilderBlock } from '../types/builder-block.js';
2
2
  export declare function transformBlock(block: BuilderBlock): BuilderBlock;
@@ -0,0 +1,8 @@
1
+ import type { CanTrack } from '../types/can-track.js';
2
+ export declare const getContentVariationCookie: ({ contentId, canTrack, }: {
3
+ contentId: string;
4
+ } & CanTrack) => Promise<string | undefined>;
5
+ export declare const setContentVariationCookie: ({ contentId, canTrack, value, }: {
6
+ contentId: string;
7
+ value: string;
8
+ } & CanTrack) => Promise<undefined>;
@@ -1,9 +1,15 @@
1
- import { CanTrack } from '../types/can-track.js';
1
+ import type { CanTrack } from '../types/can-track.js';
2
+ /**
3
+ * NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
4
+ */
2
5
  export declare const getCookie: ({ name, canTrack, }: {
3
6
  name: string;
4
- } & CanTrack) => string | undefined;
7
+ } & CanTrack) => Promise<string | undefined>;
8
+ /**
9
+ * NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
10
+ */
5
11
  export declare const setCookie: ({ name, value, expires, canTrack, }: {
6
12
  name: string;
7
13
  value: string;
8
14
  expires?: Date | undefined;
9
- } & CanTrack) => undefined;
15
+ } & CanTrack) => Promise<undefined>;
@@ -1,9 +1,8 @@
1
+ import type { CanTrack } from '../types/can-track.js';
1
2
  export declare const getLocalStorageItem: ({ key, canTrack, }: {
2
3
  key: string;
3
- canTrack: boolean;
4
- }) => string | null | undefined;
4
+ } & CanTrack) => string | null | undefined;
5
5
  export declare const setLocalStorageItem: ({ key, canTrack, value, }: {
6
6
  key: string;
7
7
  value: string;
8
- canTrack: boolean;
9
- }) => void;
8
+ } & CanTrack) => void;
@@ -1,7 +1,6 @@
1
- import { CanTrack } from '../types/can-track.js';
2
- export declare const getSessionId: ({ canTrack }: CanTrack) => string | undefined;
1
+ import type { CanTrack } from '../types/can-track.js';
2
+ export declare const getSessionId: ({ canTrack }: CanTrack) => Promise<string | undefined>;
3
3
  export declare const createSessionId: () => string;
4
4
  export declare const setSessionId: ({ id, canTrack, }: {
5
5
  id: string;
6
- canTrack: boolean;
7
- }) => undefined;
6
+ } & CanTrack) => Promise<undefined>;
@@ -1,8 +1,6 @@
1
- export declare const getVisitorId: ({ canTrack }: {
2
- canTrack: boolean;
3
- }) => string | undefined;
1
+ import type { CanTrack } from '../types/can-track.js';
2
+ export declare const getVisitorId: ({ canTrack }: CanTrack) => string | undefined;
4
3
  export declare const createVisitorId: () => string;
5
4
  export declare const setVisitorId: ({ id, canTrack, }: {
6
5
  id: string;
7
- canTrack: boolean;
8
- }) => void;
6
+ } & CanTrack) => void;
@@ -1,4 +1,4 @@
1
- import { BuilderBlock } from './builder-block.js';
1
+ import type { BuilderBlock } from './builder-block.js';
2
2
  declare type Input = any;
3
3
  export interface BuilderContentVariation {
4
4
  data?: {
@@ -2,3 +2,4 @@ export declare type Nullable<T> = T | null | undefined;
2
2
  export declare type Dictionary<T> = {
3
3
  [key: string]: T;
4
4
  };
5
+ export declare type Overwrite<T, U> = keyof U extends keyof T ? Pick<T, Exclude<keyof T, keyof U>> & U : never;