@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/README.md +57 -0
- package/lib/index.qwik.cjs +453 -434
- package/lib/index.qwik.mjs +455 -436
- package/package.json +2 -2
- package/types/blocks/columns/columns.d.ts +3 -3
- package/types/blocks/image/image.d.ts +2 -2
- package/types/blocks/symbol/symbol.d.ts +2 -2
- package/types/components/render-block/block-styles.d.ts +2 -2
- package/types/components/render-block/render-block.d.ts +4 -2
- package/types/components/render-block/render-component.d.ts +2 -2
- package/types/components/render-block/render-repeated-block.d.ts +2 -2
- package/types/components/render-blocks.d.ts +1 -1
- package/types/components/render-content/components/render-styles.d.ts +1 -1
- package/types/components/render-content/render-content.d.ts +3 -3
- package/types/context/builder.context.d.ts +1 -1
- package/types/context/types.d.ts +1 -1
- package/types/functions/get-content/index.d.ts +5 -5
- package/types/functions/get-global-this.d.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-qwik",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
-
|
|
2
|
-
import
|
|
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
|
|
2
|
-
import
|
|
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
|
|
2
|
-
import
|
|
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
|
|
2
|
-
import
|
|
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
|
|
2
|
-
import
|
|
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
|
|
2
|
-
import
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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").
|
|
1
|
+
declare const _default: import("@builder.io/qwik").ContextId<any>;
|
|
2
2
|
export default _default;
|
package/types/context/types.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface BuilderContextInterface {
|
|
|
14
14
|
state: BuilderRenderState;
|
|
15
15
|
setState?: (state: BuilderRenderState) => void;
|
|
16
16
|
apiKey: string | null;
|
|
17
|
-
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="
|
|
2
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
type Global = typeof global | typeof window | typeof self | typeof globalThis;
|
|
3
|
+
export declare function getGlobalThis(): Global;
|
|
4
|
+
export {};
|