@builder.io/sdk-qwik 0.0.27 → 0.0.29
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 +1 -1
- package/types/blocks/avatar/avatar.d.ts +267 -0
- package/types/blocks/avatar/avatar.model.d.ts +19 -0
- package/types/blocks/util.d.ts +4 -1
- package/types/components/render-block/render-block.d.ts +3 -5
- package/types/components/render-content/builder-editing.d.ts +2 -0
- package/types/components/render-inlined-styles.d.ts +1 -1
- package/types/constants/device-sizes.d.ts +12 -1
- package/types/functions/get-block-styles.d.ts +1 -5
- package/types/functions/get-content/types.d.ts +4 -0
- package/types/functions/mark-mutable.d.ts +2 -2
- package/types/index.d.ts +3 -1
- package/types/types/builder-content.d.ts +7 -0
- package/lib/index.qwik.cjs +0 -2684
- package/lib/index.qwik.mjs +0 -2684
package/package.json
CHANGED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
export declare const avatarService: any;
|
|
2
|
+
export declare const Avatar: import("@builder.io/qwik").Component<any>;
|
|
3
|
+
export default Avatar;
|
|
4
|
+
export declare const COMPONENT: {
|
|
5
|
+
"@type": string;
|
|
6
|
+
children: {
|
|
7
|
+
"@type": string;
|
|
8
|
+
bindings: {
|
|
9
|
+
when: {
|
|
10
|
+
code: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
children: ({
|
|
14
|
+
"@type": string;
|
|
15
|
+
bindings: {
|
|
16
|
+
class?: undefined;
|
|
17
|
+
title?: undefined;
|
|
18
|
+
};
|
|
19
|
+
children: never[];
|
|
20
|
+
meta: {};
|
|
21
|
+
name: string;
|
|
22
|
+
properties: {
|
|
23
|
+
_text: string;
|
|
24
|
+
};
|
|
25
|
+
scope: {};
|
|
26
|
+
} | {
|
|
27
|
+
"@type": string;
|
|
28
|
+
bindings: {
|
|
29
|
+
class: {
|
|
30
|
+
code: string;
|
|
31
|
+
};
|
|
32
|
+
title: {
|
|
33
|
+
code: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
children: ({
|
|
37
|
+
"@type": string;
|
|
38
|
+
bindings: {
|
|
39
|
+
when?: undefined;
|
|
40
|
+
};
|
|
41
|
+
children: never[];
|
|
42
|
+
meta: {};
|
|
43
|
+
name: string;
|
|
44
|
+
properties: {
|
|
45
|
+
_text: string;
|
|
46
|
+
};
|
|
47
|
+
scope: {};
|
|
48
|
+
} | {
|
|
49
|
+
"@type": string;
|
|
50
|
+
bindings: {
|
|
51
|
+
when: {
|
|
52
|
+
code: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
children: ({
|
|
56
|
+
"@type": string;
|
|
57
|
+
bindings: {
|
|
58
|
+
class?: undefined;
|
|
59
|
+
style?: undefined;
|
|
60
|
+
};
|
|
61
|
+
children: never[];
|
|
62
|
+
meta: {};
|
|
63
|
+
name: string;
|
|
64
|
+
properties: {
|
|
65
|
+
_text: string;
|
|
66
|
+
};
|
|
67
|
+
scope: {};
|
|
68
|
+
} | {
|
|
69
|
+
"@type": string;
|
|
70
|
+
bindings: {
|
|
71
|
+
class: {
|
|
72
|
+
code: string;
|
|
73
|
+
};
|
|
74
|
+
style: {
|
|
75
|
+
code: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
children: ({
|
|
79
|
+
"@type": string;
|
|
80
|
+
bindings: {
|
|
81
|
+
when?: undefined;
|
|
82
|
+
};
|
|
83
|
+
children: never[];
|
|
84
|
+
meta: {};
|
|
85
|
+
name: string;
|
|
86
|
+
properties: {
|
|
87
|
+
_text: string;
|
|
88
|
+
};
|
|
89
|
+
scope: {};
|
|
90
|
+
} | {
|
|
91
|
+
"@type": string;
|
|
92
|
+
bindings: {
|
|
93
|
+
when: {
|
|
94
|
+
code: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
children: ({
|
|
98
|
+
"@type": string;
|
|
99
|
+
bindings: {
|
|
100
|
+
alt?: undefined;
|
|
101
|
+
src?: undefined;
|
|
102
|
+
};
|
|
103
|
+
children: never[];
|
|
104
|
+
meta: {};
|
|
105
|
+
name: string;
|
|
106
|
+
properties: {
|
|
107
|
+
_text: string;
|
|
108
|
+
class?: undefined;
|
|
109
|
+
};
|
|
110
|
+
scope: {};
|
|
111
|
+
} | {
|
|
112
|
+
"@type": string;
|
|
113
|
+
bindings: {
|
|
114
|
+
alt: {
|
|
115
|
+
code: string;
|
|
116
|
+
};
|
|
117
|
+
src: {
|
|
118
|
+
code: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
children: never[];
|
|
122
|
+
meta: {};
|
|
123
|
+
name: string;
|
|
124
|
+
properties: {
|
|
125
|
+
class: string;
|
|
126
|
+
_text?: undefined;
|
|
127
|
+
};
|
|
128
|
+
scope: {};
|
|
129
|
+
})[];
|
|
130
|
+
meta: {};
|
|
131
|
+
name: string;
|
|
132
|
+
properties: {
|
|
133
|
+
_text?: undefined;
|
|
134
|
+
};
|
|
135
|
+
scope: {};
|
|
136
|
+
} | {
|
|
137
|
+
"@type": string;
|
|
138
|
+
bindings: {
|
|
139
|
+
when: {
|
|
140
|
+
code: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
children: ({
|
|
144
|
+
"@type": string;
|
|
145
|
+
bindings: {};
|
|
146
|
+
children: never[];
|
|
147
|
+
meta: {};
|
|
148
|
+
name: string;
|
|
149
|
+
properties: {
|
|
150
|
+
_text: string;
|
|
151
|
+
};
|
|
152
|
+
scope: {};
|
|
153
|
+
} | {
|
|
154
|
+
"@type": string;
|
|
155
|
+
bindings: {};
|
|
156
|
+
children: {
|
|
157
|
+
"@type": string;
|
|
158
|
+
bindings: {
|
|
159
|
+
_text: {
|
|
160
|
+
code: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
children: never[];
|
|
164
|
+
meta: {};
|
|
165
|
+
name: string;
|
|
166
|
+
properties: {};
|
|
167
|
+
scope: {};
|
|
168
|
+
}[];
|
|
169
|
+
meta: {};
|
|
170
|
+
name: string;
|
|
171
|
+
properties: {
|
|
172
|
+
_text?: undefined;
|
|
173
|
+
};
|
|
174
|
+
scope: {};
|
|
175
|
+
})[];
|
|
176
|
+
meta: {};
|
|
177
|
+
name: string;
|
|
178
|
+
properties: {
|
|
179
|
+
_text?: undefined;
|
|
180
|
+
};
|
|
181
|
+
scope: {};
|
|
182
|
+
})[];
|
|
183
|
+
meta: {};
|
|
184
|
+
name: string;
|
|
185
|
+
properties: {
|
|
186
|
+
_text?: undefined;
|
|
187
|
+
};
|
|
188
|
+
scope: {};
|
|
189
|
+
})[];
|
|
190
|
+
meta: {};
|
|
191
|
+
name: string;
|
|
192
|
+
properties: {
|
|
193
|
+
_text?: undefined;
|
|
194
|
+
};
|
|
195
|
+
scope: {};
|
|
196
|
+
})[];
|
|
197
|
+
meta: {};
|
|
198
|
+
name: string;
|
|
199
|
+
properties: {
|
|
200
|
+
_text?: undefined;
|
|
201
|
+
};
|
|
202
|
+
scope: {};
|
|
203
|
+
})[];
|
|
204
|
+
meta: {};
|
|
205
|
+
name: string;
|
|
206
|
+
properties: {};
|
|
207
|
+
scope: {};
|
|
208
|
+
}[];
|
|
209
|
+
context: {
|
|
210
|
+
get: {};
|
|
211
|
+
set: {};
|
|
212
|
+
};
|
|
213
|
+
exports: {
|
|
214
|
+
avatarService: {
|
|
215
|
+
code: string;
|
|
216
|
+
isFunction: boolean;
|
|
217
|
+
usedInLocal: boolean;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
hooks: {
|
|
221
|
+
onMount: {
|
|
222
|
+
code: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
imports: {
|
|
226
|
+
imports: {};
|
|
227
|
+
path: string;
|
|
228
|
+
}[];
|
|
229
|
+
inputs: never[];
|
|
230
|
+
meta: {
|
|
231
|
+
useMetadata: {
|
|
232
|
+
isAttachedToShadowDom: boolean;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
name: string;
|
|
236
|
+
propsTypeRef: string;
|
|
237
|
+
refs: {};
|
|
238
|
+
state: {
|
|
239
|
+
classes: {
|
|
240
|
+
code: {
|
|
241
|
+
base: string;
|
|
242
|
+
container: string;
|
|
243
|
+
};
|
|
244
|
+
type: string;
|
|
245
|
+
};
|
|
246
|
+
initials: {
|
|
247
|
+
code: null;
|
|
248
|
+
type: string;
|
|
249
|
+
};
|
|
250
|
+
loaded: {
|
|
251
|
+
code: boolean;
|
|
252
|
+
type: string;
|
|
253
|
+
};
|
|
254
|
+
source: {
|
|
255
|
+
code: null;
|
|
256
|
+
type: string;
|
|
257
|
+
};
|
|
258
|
+
styles: {
|
|
259
|
+
code: {
|
|
260
|
+
container: null;
|
|
261
|
+
};
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
subComponents: never[];
|
|
266
|
+
types: string[];
|
|
267
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseProps, BaseState, CSS, Dynamic, Variant } from '~/models';
|
|
2
|
+
export declare type AvatarProps = {
|
|
3
|
+
variant?: Dynamic<Variant>;
|
|
4
|
+
name?: string;
|
|
5
|
+
unavatar?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
} & BaseProps;
|
|
9
|
+
export declare type AvatarState = {
|
|
10
|
+
classes: {
|
|
11
|
+
base: string;
|
|
12
|
+
container: string;
|
|
13
|
+
};
|
|
14
|
+
styles: {
|
|
15
|
+
container: CSS;
|
|
16
|
+
};
|
|
17
|
+
initials: string;
|
|
18
|
+
source: string;
|
|
19
|
+
} & BaseState;
|
package/types/blocks/util.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare type RenderBlockProps = {
|
|
|
7
7
|
context: BuilderContextInterface;
|
|
8
8
|
};
|
|
9
9
|
export declare const component: (props: any, state: any) => any;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const tag: (props: any, state: any) => string;
|
|
11
11
|
export declare const useBlock: (props: any, state: any) => any;
|
|
12
12
|
export declare const attributes: (props: any, state: any) => {
|
|
13
13
|
style?: CSSStyleDeclaration | Record<string, string | undefined> | undefined;
|
|
@@ -28,7 +28,7 @@ export declare const renderComponentProps: (props: any, state: any) => {
|
|
|
28
28
|
inheritedStyles: Partial<CSSStyleDeclaration>;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const useChildren: (props: any, state: any) => any;
|
|
32
32
|
export declare const childrenWithoutParentComponent: (props: any, state: any) => any;
|
|
33
33
|
export declare const repeatItemData: (props: any, state: any) => RepeatData[] | undefined;
|
|
34
34
|
export declare const inheritedTextStyles: (props: any, state: any) => Partial<CSSStyleDeclaration>;
|
|
@@ -40,9 +40,7 @@ export declare const childrenContext: (props: any, state: any) => {
|
|
|
40
40
|
registeredComponents: any;
|
|
41
41
|
inheritedStyles: Partial<CSSStyleDeclaration>;
|
|
42
42
|
};
|
|
43
|
-
export declare const renderComponentTag: (props: any, state: any) => (
|
|
44
|
-
key?: any;
|
|
45
|
-
}) => import("@builder.io/qwik/jsx-runtime").JSX.Element) | import("@builder.io/qwik").Component<RenderComponentProps> | "RenderComponent";
|
|
43
|
+
export declare const renderComponentTag: (props: any, state: any) => import("@builder.io/qwik").Component<RenderComponentProps> | "RenderComponent";
|
|
46
44
|
export declare const RenderBlock: (props: RenderBlockProps & {
|
|
47
45
|
key?: any;
|
|
48
46
|
}) => import("@builder.io/qwik/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ interface Props {
|
|
|
2
2
|
styles: string;
|
|
3
3
|
}
|
|
4
4
|
export declare const injectedStyleScript: (props: any, state: any) => string;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const tag: (props: any, state: any) => string;
|
|
6
6
|
export declare const RenderInlinedStyles: (props: Props & {
|
|
7
7
|
key?: any;
|
|
8
8
|
}) => import("@builder.io/qwik/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
export declare type SizeName = 'large' | 'medium' | 'small';
|
|
2
|
-
|
|
2
|
+
interface Size {
|
|
3
|
+
min: number;
|
|
4
|
+
default: number;
|
|
5
|
+
max: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const getMaxWidthQueryForSize: (size: SizeName, sizeValues?: Record<SizeName, Size>) => string;
|
|
8
|
+
interface Breakpoints {
|
|
9
|
+
small?: number;
|
|
10
|
+
medium?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const getSizesForBreakpoints: ({ small, medium }: Breakpoints) => Record<SizeName, Size>;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
1
|
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
-
export declare function getBlockStyles(
|
|
4
|
-
block: BuilderBlock;
|
|
5
|
-
context: BuilderContextInterface;
|
|
6
|
-
}): Partial<CSSStyleDeclaration>;
|
|
2
|
+
export declare function getBlockStyles(block: BuilderBlock): Partial<CSSStyleDeclaration>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function markMutable<T>(value: T): T;
|
|
2
|
-
export declare function markPropsMutable<T>(props: T): T;
|
|
1
|
+
export declare function markMutable<T = any>(value: T): T;
|
|
2
|
+
export declare function markPropsMutable<T = any>(props: T): T;
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './index-helpers/top-of-file.js';
|
|
2
2
|
import './scripts/init-editing.js';
|
|
3
3
|
export * from './index-helpers/blocks-exports.js';
|
|
4
4
|
export * from './functions/is-editing.js';
|
|
@@ -9,3 +9,5 @@ export * from './functions/set-editor-settings.js';
|
|
|
9
9
|
export * from './functions/get-content/index.js';
|
|
10
10
|
export * from './functions/get-builder-search-params/index.js';
|
|
11
11
|
export { track } from './functions/track';
|
|
12
|
+
export type { RegisteredComponent } from './context/types';
|
|
13
|
+
export type { ComponentInfo } from './types/components';
|
|
@@ -18,6 +18,13 @@ export interface BuilderContentVariation {
|
|
|
18
18
|
name?: string;
|
|
19
19
|
testRatio?: number;
|
|
20
20
|
id?: string;
|
|
21
|
+
meta?: {
|
|
22
|
+
breakpoints?: {
|
|
23
|
+
small: number;
|
|
24
|
+
medium: number;
|
|
25
|
+
};
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
21
28
|
}
|
|
22
29
|
export interface BuilderContent extends BuilderContentVariation {
|
|
23
30
|
'@version'?: number;
|