@flexbe/sdk 0.2.44 → 0.2.45
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 +16 -1
- package/package.json +66 -66
|
@@ -20,6 +20,11 @@ export interface Screenshot {
|
|
|
20
20
|
ext: string;
|
|
21
21
|
url: string | null;
|
|
22
22
|
}
|
|
23
|
+
export interface PageSchemaMarkup {
|
|
24
|
+
data: unknown;
|
|
25
|
+
updatedAt: string | null;
|
|
26
|
+
genProducts?: boolean;
|
|
27
|
+
}
|
|
23
28
|
export interface PageMeta {
|
|
24
29
|
title: string | null;
|
|
25
30
|
description: string | null;
|
|
@@ -28,6 +33,7 @@ export interface PageMeta {
|
|
|
28
33
|
ogTitle: string | null;
|
|
29
34
|
ogDescription: string | null;
|
|
30
35
|
noindex: boolean;
|
|
36
|
+
schemaMarkup?: PageSchemaMarkup | null;
|
|
31
37
|
}
|
|
32
38
|
export declare enum PageType {
|
|
33
39
|
PAGE = "page",
|
|
@@ -333,7 +339,13 @@ export interface PageVersionItem {
|
|
|
333
339
|
export interface PageVersionListResponse {
|
|
334
340
|
list: PageVersionItem[];
|
|
335
341
|
}
|
|
342
|
+
/** Layout page settings (background, responsive) — stored in version `data.data` */
|
|
343
|
+
export interface PageLayoutData {
|
|
344
|
+
background?: PageBackground;
|
|
345
|
+
responsive?: 'auto' | false;
|
|
346
|
+
}
|
|
336
347
|
export interface PageDataStructure {
|
|
348
|
+
id?: string;
|
|
337
349
|
is: string;
|
|
338
350
|
template_id: string;
|
|
339
351
|
blocks: PageBlock[];
|
|
@@ -342,8 +354,11 @@ export interface PageDataStructure {
|
|
|
342
354
|
abtests?: PageABTest[];
|
|
343
355
|
codes?: string[];
|
|
344
356
|
textStyles?: TextStyleItem[];
|
|
357
|
+
data?: PageLayoutData;
|
|
358
|
+
/** @deprecated Use `data.background` */
|
|
345
359
|
background?: PageBackground;
|
|
346
|
-
|
|
360
|
+
/** @deprecated Use `data.responsive` */
|
|
361
|
+
responsive?: 'auto' | false | boolean;
|
|
347
362
|
}
|
|
348
363
|
export interface PageVersionDataResponse extends PageVersionItem {
|
|
349
364
|
data: PageDataStructure;
|
package/package.json
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
2
|
+
"name": "@flexbe/sdk",
|
|
3
|
+
"version": "0.2.45",
|
|
4
|
+
"description": "TypeScript SDK for Flexbe API",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"browser": "dist/browser/index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/esm/index.js",
|
|
12
|
+
"require": "./dist/cjs/index.js",
|
|
13
|
+
"types": "./dist/types/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "bun run build:esm && bun run build:cjs && bun run build:browser",
|
|
18
|
+
"build:esm": "tsc -p tsconfig.esm.json",
|
|
19
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
20
|
+
"build:browser": "tsc -p tsconfig.browser.json",
|
|
21
|
+
"dev": "tsc -p tsconfig.esm.json --watch",
|
|
22
|
+
"test": "dotenv -e test/.env.test jest",
|
|
23
|
+
"lint": "eslint src --ext .ts --fix",
|
|
24
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
25
|
+
"prepare": "bun run build",
|
|
26
|
+
"prepublishOnly": "bun run lint",
|
|
27
|
+
"version": "changeset && changeset version",
|
|
28
|
+
"release": "changeset publish"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"flexbe",
|
|
32
|
+
"sdk",
|
|
33
|
+
"typescript",
|
|
34
|
+
"api-client"
|
|
35
|
+
],
|
|
36
|
+
"author": "Flexbe",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/flexbe/sdk-ts.git"
|
|
41
|
+
},
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/flexbe/sdk-ts/issues"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/flexbe/sdk-ts#readme",
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@changesets/cli": "^2.29.7",
|
|
48
|
+
"@flexbe/eslint-config": "^1.0.11",
|
|
49
|
+
"@types/jest": "^30.0.0",
|
|
50
|
+
"@types/node": "^24.3.1",
|
|
51
|
+
"dotenv-cli": "^10.0.0",
|
|
52
|
+
"eslint": "^9.35.0",
|
|
53
|
+
"jest": "^30.1.3",
|
|
54
|
+
"ts-jest": "^29.4.1",
|
|
55
|
+
"typescript": "~5.9.2"
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"dist",
|
|
59
|
+
"README.md"
|
|
60
|
+
],
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=20.0.0"
|
|
63
|
+
},
|
|
64
|
+
"publishConfig": {
|
|
65
|
+
"access": "public"
|
|
66
|
+
},
|
|
67
|
+
"packageManager": "bun@1.2.21"
|
|
68
68
|
}
|