@flexbe/sdk 0.2.15 → 0.2.17
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/dist/types/types/pages.d.ts +86 -78
- package/package.json +1 -1
|
@@ -132,19 +132,38 @@ export interface BulkDeleteResponse {
|
|
|
132
132
|
deleted: number[];
|
|
133
133
|
errors: BulkDeleteError[];
|
|
134
134
|
}
|
|
135
|
+
type HexColor = `#${string}`;
|
|
136
|
+
type RGBColor = `rgb(${string})`;
|
|
137
|
+
type RGBAColor = `rgba(${string})`;
|
|
138
|
+
type HSLColor = `hsl(${string})`;
|
|
139
|
+
type HSLAColor = `hsla(${string})`;
|
|
140
|
+
type CSSLinearGradient = `linear-gradient(${string})`;
|
|
141
|
+
type CSSRadialGradient = `radial-gradient(${string})`;
|
|
142
|
+
type CSSColor = HexColor | RGBColor | RGBAColor | HSLColor | HSLAColor | string;
|
|
143
|
+
type ColorContrast = 'dark' | 'light';
|
|
144
|
+
export interface ImageObj {
|
|
145
|
+
id: number;
|
|
146
|
+
ext: string;
|
|
147
|
+
name?: string;
|
|
148
|
+
average?: string;
|
|
149
|
+
preview?: string;
|
|
150
|
+
width?: number;
|
|
151
|
+
height?: number;
|
|
152
|
+
proportion?: number;
|
|
153
|
+
border?: 'none' | 'transparent' | 'mixed' | string;
|
|
154
|
+
animated?: boolean;
|
|
155
|
+
transparent?: number;
|
|
156
|
+
}
|
|
157
|
+
export interface PageBackgroundStyles {
|
|
158
|
+
backgroundColor: CSSColor | CSSLinearGradient | CSSRadialGradient;
|
|
159
|
+
backgroundFixed: boolean;
|
|
160
|
+
backgroundRepeat: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
|
161
|
+
backgroundPosition: string;
|
|
162
|
+
backgroundSize: 'cover' | 'contain' | 'auto';
|
|
163
|
+
contrast: ColorContrast;
|
|
164
|
+
}
|
|
135
165
|
export interface PageBackground {
|
|
136
|
-
image:
|
|
137
|
-
id: number;
|
|
138
|
-
ext: string;
|
|
139
|
-
average: string;
|
|
140
|
-
preview: string;
|
|
141
|
-
width: number;
|
|
142
|
-
height: number;
|
|
143
|
-
proportion: number;
|
|
144
|
-
border: string;
|
|
145
|
-
animated: boolean;
|
|
146
|
-
transparent: number;
|
|
147
|
-
} | null;
|
|
166
|
+
image: ImageObj | null;
|
|
148
167
|
styles: {
|
|
149
168
|
backgroundRepeat: string;
|
|
150
169
|
backgroundPosition: string;
|
|
@@ -169,57 +188,50 @@ export interface PageGrid {
|
|
|
169
188
|
gap: string;
|
|
170
189
|
};
|
|
171
190
|
}
|
|
172
|
-
export interface
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
colors: {
|
|
217
|
-
light: string;
|
|
218
|
-
dark: string;
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
subsets: string[];
|
|
222
|
-
}>;
|
|
191
|
+
export interface TextStyleItem {
|
|
192
|
+
uid: string;
|
|
193
|
+
id: string;
|
|
194
|
+
title: string;
|
|
195
|
+
protected?: boolean;
|
|
196
|
+
source?: 'project' | 'page';
|
|
197
|
+
style: TextStyleProperties;
|
|
198
|
+
mobile?: Pick<TextStyleProperties, 'size' | 'weight' | 'line_height' | 'letter_spacing'>;
|
|
199
|
+
}
|
|
200
|
+
export interface TextStyleProperties {
|
|
201
|
+
fontId?: string;
|
|
202
|
+
family?: string;
|
|
203
|
+
size: 'inherit' | number | string;
|
|
204
|
+
weight: 'inherit' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
205
|
+
line_height: 'inherit' | number;
|
|
206
|
+
letter_spacing: 'inherit' | number | string;
|
|
207
|
+
registry?: 'inherit' | 'none' | 'capitalize' | 'uppercase' | 'lowercase';
|
|
208
|
+
decoration_italic?: 'inherit' | 'italic' | 'normal' | false;
|
|
209
|
+
color?: 'auto' | CSSColor;
|
|
210
|
+
contrast?: 'light' | 'dark';
|
|
211
|
+
}
|
|
212
|
+
export interface FontFamilyItem {
|
|
213
|
+
id?: string;
|
|
214
|
+
name: string;
|
|
215
|
+
source: 'user' | 'google' | 'system';
|
|
216
|
+
subsets?: string[];
|
|
217
|
+
variants: FontVariant[];
|
|
218
|
+
}
|
|
219
|
+
export type UploadedFont = {
|
|
220
|
+
id: string;
|
|
221
|
+
name: string;
|
|
222
|
+
variants?: FontVariant[];
|
|
223
|
+
};
|
|
224
|
+
export interface FontVariant {
|
|
225
|
+
fileName?: string;
|
|
226
|
+
fileExt?: string;
|
|
227
|
+
format?: string;
|
|
228
|
+
weight: number;
|
|
229
|
+
style: 'normal' | 'italic';
|
|
230
|
+
}
|
|
231
|
+
export interface StylesDataRaw {
|
|
232
|
+
uploadedFonts?: UploadedFont[];
|
|
233
|
+
siteTextStyles: TextStyleItem[];
|
|
234
|
+
pageTextStyles?: TextStyleItem[];
|
|
223
235
|
}
|
|
224
236
|
export interface PageBlock {
|
|
225
237
|
update_time: number;
|
|
@@ -254,7 +266,6 @@ export interface PageWidget {
|
|
|
254
266
|
export interface PageABTest {
|
|
255
267
|
a: string;
|
|
256
268
|
b: string;
|
|
257
|
-
current: 'a' | 'b';
|
|
258
269
|
is_active: number;
|
|
259
270
|
id: number;
|
|
260
271
|
}
|
|
@@ -266,17 +277,7 @@ export interface PageModal {
|
|
|
266
277
|
template_id: string;
|
|
267
278
|
mod_id: string;
|
|
268
279
|
p_id: number;
|
|
269
|
-
screenshot:
|
|
270
|
-
id: number;
|
|
271
|
-
ext: string;
|
|
272
|
-
average: string;
|
|
273
|
-
preview: string;
|
|
274
|
-
width: number;
|
|
275
|
-
height: number;
|
|
276
|
-
proportion: number;
|
|
277
|
-
animated: boolean;
|
|
278
|
-
transparent: number;
|
|
279
|
-
};
|
|
280
|
+
screenshot: ImageObj | null;
|
|
280
281
|
}
|
|
281
282
|
export interface PageContent {
|
|
282
283
|
blocks: PageBlock[];
|
|
@@ -284,8 +285,15 @@ export interface PageContent {
|
|
|
284
285
|
elements: PageElement[];
|
|
285
286
|
widgets: PageWidget[];
|
|
286
287
|
codes: string[];
|
|
287
|
-
|
|
288
|
-
|
|
288
|
+
settings: {
|
|
289
|
+
background?: PageBackground;
|
|
290
|
+
textStyles?: TextStyleItem[];
|
|
291
|
+
responsive?: string | boolean;
|
|
292
|
+
} | null;
|
|
289
293
|
abtests: PageABTest[];
|
|
290
|
-
|
|
294
|
+
assets: {
|
|
295
|
+
images: number[];
|
|
296
|
+
files: string[];
|
|
297
|
+
};
|
|
291
298
|
}
|
|
299
|
+
export {};
|