@builder.io/sdk-qwik 0.1.14 → 0.1.16

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.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",
@@ -28,7 +28,7 @@
28
28
  "release:dev": "yarn run build && npm version prerelease && npm publish --tag dev"
29
29
  },
30
30
  "devDependencies": {
31
- "@builder.io/qwik": "^0.16.2",
31
+ "@builder.io/qwik": "^0.100.0",
32
32
  "@types/node": "latest",
33
33
  "typescript": "^4",
34
34
  "vite": "^3.0.4"
@@ -1,6 +1,6 @@
1
- import type { BuilderBlock } from "../../types/builder-block";
2
- import type { SizeName } from "../../constants/device-sizes";
3
- import type { Dictionary } from "../../types/typescript";
1
+ import { SizeName } from "../../constants/device-sizes";
2
+ import { BuilderBlock } from "../../types/builder-block";
3
+ import { Dictionary } from "../../types/typescript";
4
4
  type Column = {
5
5
  blocks: BuilderBlock[];
6
6
  width?: number;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import type { BuilderBlock } from "../../types/builder-block.js";
1
+ import { BuilderBlock } from "../../types/builder-block.js";
2
+ import { JSX } from "@builder.io/mitosis/jsx-runtime";
3
3
  export interface ImageProps {
4
4
  className?: string;
5
5
  image: string;
@@ -1,5 +1,5 @@
1
- import type { BuilderContent } from "../../types/builder-content.js";
2
- import type { BuilderBlock } from "../../types/builder-block.js";
1
+ import { BuilderBlock } from "../../types/builder-block.js";
2
+ import { BuilderContent } from "../../types/builder-content.js";
3
3
  export interface SymbolInfo {
4
4
  model?: string;
5
5
  entry?: string;
@@ -1,5 +1,5 @@
1
- import type { BuilderContextInterface } from "../../context/types.js";
2
- import type { BuilderBlock } from "../../types/builder-block.js";
1
+ import { BuilderContextInterface } from "../../context/types.js";
2
+ import { BuilderBlock } from "../../types/builder-block.js";
3
3
  export type BlockStylesProps = {
4
4
  block: BuilderBlock;
5
5
  context: BuilderContextInterface;
@@ -1,5 +1,5 @@
1
- import type { BuilderContextInterface } from "../../context/types.js";
2
- import type { BuilderBlock } from "../../types/builder-block.js";
1
+ import { BuilderContextInterface } from "../../context/types.js";
2
+ import { BuilderBlock } from "../../types/builder-block.js";
3
3
  export type RenderBlockProps = {
4
4
  block: BuilderBlock;
5
5
  context: BuilderContextInterface;
@@ -23,6 +23,7 @@ export declare const renderComponentProps: (props: any, state: any) => {
23
23
  componentOptions: any;
24
24
  context: {
25
25
  apiKey: any;
26
+ apiVersion: any;
26
27
  state: any;
27
28
  content: any;
28
29
  context: any;
@@ -35,6 +36,7 @@ export declare const childrenWithoutParentComponent: (props: any, state: any) =>
35
36
  export declare const repeatItemData: (props: any, state: any) => import("./types.js").RepeatData[] | undefined;
36
37
  export declare const childrenContext: (props: any, state: any) => {
37
38
  apiKey: any;
39
+ apiVersion: any;
38
40
  state: any;
39
41
  content: any;
40
42
  context: any;
@@ -1,5 +1,5 @@
1
- import type { BuilderBlock } from "../../types/builder-block.js";
2
- import type { BuilderContextInterface } from "../../context/types.js";
1
+ import { BuilderContextInterface } from "../../context/types.js";
2
+ import { BuilderBlock } from "../../types/builder-block.js";
3
3
  type ComponentOptions = {
4
4
  [index: string]: any;
5
5
  attributes?: {
@@ -1,5 +1,5 @@
1
- import type { BuilderContextInterface } from "../../context/types.js";
2
- import type { BuilderBlock } from "../../types/builder-block";
1
+ import { BuilderContextInterface } from "../../context/types.js";
2
+ import { BuilderBlock } from "../../types/builder-block";
3
3
  type Props = {
4
4
  block: BuilderBlock;
5
5
  repeatContext: BuilderContextInterface;
@@ -1,4 +1,4 @@
1
- import type { BuilderBlock } from "../types/builder-block.js";
1
+ import { BuilderBlock } from "../types/builder-block.js";
2
2
  export type RenderBlockProps = {
3
3
  blocks?: BuilderBlock[];
4
4
  parent?: string;
@@ -1,4 +1,4 @@
1
- import type { CustomFont } from "./render-styles.helpers";
1
+ import { CustomFont } from "./render-styles.helpers";
2
2
  interface Props {
3
3
  cssCode?: string;
4
4
  customFonts?: CustomFont[];
@@ -1,6 +1,6 @@
1
- import type { BuilderRenderState } from "../../context/types.js";
2
- import type { Breakpoints, BuilderContent } from "../../types/builder-content.js";
3
- import type { RenderContentProps } from "./render-content.types.js";
1
+ import { BuilderRenderState } from "../../context/types.js";
2
+ import { Breakpoints, BuilderContent } from "../../types/builder-content.js";
3
+ import { RenderContentProps } from "./render-content.types.js";
4
4
  export declare const mergeNewContent: (props: any, state: any, elementRef: any, newContent: BuilderContent) => void;
5
5
  export declare const setBreakpoints: (props: any, state: any, elementRef: any, breakpoints: Breakpoints) => void;
6
6
  export declare const setContextState: (props: any, state: any, elementRef: any, newState: BuilderRenderState) => void;
@@ -1,2 +1,2 @@
1
- declare const _default: import("@builder.io/qwik").Context<any>;
1
+ declare const _default: import("@builder.io/qwik").ContextId<any>;
2
2
  export default _default;
@@ -14,7 +14,7 @@ export interface BuilderContextInterface {
14
14
  state: BuilderRenderState;
15
15
  setState?: (state: BuilderRenderState) => void;
16
16
  apiKey: string | null;
17
- apiVersion?: ApiVersion;
17
+ apiVersion: ApiVersion | undefined;
18
18
  registeredComponents: RegisteredComponents;
19
19
  inheritedStyles: Record<string, unknown>;
20
20
  }
@@ -1,11 +1,11 @@
1
1
  import type { BuilderContent } from '../../types/builder-content.js';
2
2
  import type { GetContentOptions } from './types.js';
3
3
  export declare function getContent(options: GetContentOptions): Promise<BuilderContent | null>;
4
- /**
5
- * TO-DO: Handle error responses.
6
- */
7
- interface ContentResponse {
4
+ type ContentResponse = {
8
5
  results: BuilderContent[];
9
- }
6
+ } | {
7
+ status: number;
8
+ message: string;
9
+ };
10
10
  export declare function getAllContent(options: GetContentOptions): Promise<ContentResponse>;
11
11
  export {};
@@ -1,2 +1,4 @@
1
- /// <reference types="@types/node" />
2
- export declare function getGlobalThis(): typeof global;
1
+ /// <reference types="node" />
2
+ type Global = typeof global | typeof window | typeof self | typeof globalThis;
3
+ export declare function getGlobalThis(): Global;
4
+ export {};