@builder.io/sdk-qwik 0.2.3 → 0.3.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",
@@ -34,6 +34,6 @@
34
34
  "vite": "^3.0.4"
35
35
  },
36
36
  "peerDependencies": {
37
- "@builder.io/qwik": ">=0.13.3"
37
+ "@builder.io/qwik": ">=1.0.0"
38
38
  }
39
39
  }
@@ -1,3 +0,0 @@
1
- import type { RenderComponentProps } from "./render-component";
2
- export declare const RenderComponentWithContext: import("@builder.io/qwik").Component<RenderComponentProps>;
3
- export default RenderComponentWithContext;
@@ -1,6 +0,0 @@
1
- type VariantData = {
2
- id: string;
3
- testRatio?: number;
4
- };
5
- export declare const getVariantsScriptString: (variants: VariantData[], contentId: string) => string;
6
- export {};
@@ -1,3 +0,0 @@
1
- import { RenderContentProps } from "../render-content/render-content.types";
2
- export declare const RenderContentVariants: import("@builder.io/qwik").Component<RenderContentProps>;
3
- export default RenderContentVariants;
@@ -1 +0,0 @@
1
- export declare const convertStyleObject: (obj: Partial<CSSStyleDeclaration>) => Partial<CSSStyleDeclaration>;
@@ -1,6 +0,0 @@
1
- import type { BuilderContextInterface } from '../context/types.js';
2
- import type { BuilderBlock } from '../types/builder-block.js';
3
- export declare function getBlockStyles({ block, context, }: {
4
- block: BuilderBlock;
5
- context: BuilderContextInterface;
6
- }): Partial<CSSStyleDeclaration>;
@@ -1,3 +0,0 @@
1
- import type { BuilderBlock } from '../types/builder-block.js';
2
- export type TagName = string;
3
- export declare function getBlockTag(block: BuilderBlock): TagName;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export declare function markMutable<T>(value: T): T;
2
- export declare function markPropsMutable<T>(props: T): T;
@@ -1,4 +0,0 @@
1
- /**
2
- * No-op function, sanitize on a per-framework basis by overriding.
3
- */
4
- export declare const sanitizeBlockStyles: (styles: Partial<CSSStyleDeclaration>) => Partial<CSSStyleDeclaration>;
@@ -1,56 +0,0 @@
1
- import type { CanTrack } from '../types/can-track.js';
2
- interface Event {
3
- /**
4
- * The type of your event.
5
- *
6
- * Examples: `click`, `conversion`, `pageview`, `impression`
7
- */
8
- type: string;
9
- data: {
10
- /**
11
- * (Optional) The content's ID. Useful if this event pertains to a specific piece of content.
12
- */
13
- contentId?: string;
14
- /**
15
- * This is the ID of the space that the content belongs to.
16
- */
17
- ownerId: string;
18
- /**
19
- * Stringified JSON object containing any additional metadata you want to track.
20
- */
21
- metadata?: string;
22
- /**
23
- * Session ID of the user. This is provided by the SDK by checking session storage.
24
- */
25
- sessionId: string | undefined;
26
- /**
27
- * Visitor ID of the user. This is provided by the SDK by checking cookies.
28
- */
29
- visitorId: string | undefined;
30
- /**
31
- * (Optional) If running an A/B test, the ID of the variation that the user is in.
32
- */
33
- variationId?: string;
34
- [index: string]: any;
35
- };
36
- }
37
- declare type EventProperties = Pick<Event, 'type'> & Pick<Event['data'], 'contentId' | 'variationId'> & {
38
- /**
39
- * Your organization's API key.
40
- */
41
- apiKey: Event['data']['ownerId'];
42
- /**
43
- * (Optional) metadata that you want to provide with your event.
44
- */
45
- metadata?: {
46
- [index: string]: any;
47
- };
48
- /**
49
- * (Optional) Any additional (non-metadata) properties to add to the event.
50
- */
51
- [index: string]: any;
52
- };
53
- export declare type EventProps = EventProperties & CanTrack;
54
- export declare function _track(eventProps: EventProps): Promise<void | Response>;
55
- export declare const track: (args: EventProperties) => Promise<void | Response>;
56
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- declare const ON_MOUNT_CODE: "\n Object.values(props.customComponents).forEach((registeredComponent) => {\n sendComponentToVisualEditor(registeredComponent);\n });\n";
2
- declare const REACT_CODE: string;
3
- declare const VUE_CODE: string;
4
- declare const SVELTE_CODE: string;
5
- declare const SOLIDJS_CODE: string;
6
- declare const QWIK_CODE: string;