@gitbook/api 0.145.0 → 0.146.0
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/client.d.ts +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/spec/openapi.json +11 -0
- package/spec/openapi.yaml +9 -0
package/dist/client.d.ts
CHANGED
|
@@ -878,6 +878,8 @@ export type DocumentTableImageRecord = ContentRefFile | ContentRefURL | {
|
|
|
878
878
|
ref: ContentRefFile | ContentRefURL;
|
|
879
879
|
/** Object fit for image display in card views */
|
|
880
880
|
objectFit?: CardsImageObjectFit;
|
|
881
|
+
/** Alternative text for the cover image */
|
|
882
|
+
alt?: string;
|
|
881
883
|
};
|
|
882
884
|
export interface DocumentTableRecord {
|
|
883
885
|
orderIndex: string;
|
|
@@ -1532,6 +1534,13 @@ export interface RevisionPageDocumentCover {
|
|
|
1532
1534
|
* @default 0
|
|
1533
1535
|
*/
|
|
1534
1536
|
yPos: number;
|
|
1537
|
+
/**
|
|
1538
|
+
* Height of the cover image in pixels.
|
|
1539
|
+
* @min 10
|
|
1540
|
+
* @max 700
|
|
1541
|
+
* @default 240
|
|
1542
|
+
*/
|
|
1543
|
+
height?: number;
|
|
1535
1544
|
}
|
|
1536
1545
|
export type VariableValue = string | number | boolean;
|
|
1537
1546
|
export type Variables = Record<string, VariableValue>;
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -20202,6 +20202,10 @@
|
|
|
20202
20202
|
},
|
|
20203
20203
|
"objectFit": {
|
|
20204
20204
|
"$ref": "#/components/schemas/CardsImageObjectFit"
|
|
20205
|
+
},
|
|
20206
|
+
"alt": {
|
|
20207
|
+
"type": "string",
|
|
20208
|
+
"description": "Alternative text for the cover image"
|
|
20205
20209
|
}
|
|
20206
20210
|
},
|
|
20207
20211
|
"required": [
|
|
@@ -23441,6 +23445,13 @@
|
|
|
23441
23445
|
"description": "Vertical position of the cover image.",
|
|
23442
23446
|
"type": "number",
|
|
23443
23447
|
"default": 0
|
|
23448
|
+
},
|
|
23449
|
+
"height": {
|
|
23450
|
+
"description": "Height of the cover image in pixels.",
|
|
23451
|
+
"type": "number",
|
|
23452
|
+
"minimum": 10,
|
|
23453
|
+
"maximum": 700,
|
|
23454
|
+
"default": 240
|
|
23444
23455
|
}
|
|
23445
23456
|
},
|
|
23446
23457
|
"required": [
|
package/spec/openapi.yaml
CHANGED
|
@@ -11894,6 +11894,9 @@ components:
|
|
|
11894
11894
|
- $ref: "#/components/schemas/ContentRefURL"
|
|
11895
11895
|
objectFit:
|
|
11896
11896
|
$ref: "#/components/schemas/CardsImageObjectFit"
|
|
11897
|
+
alt:
|
|
11898
|
+
type: string
|
|
11899
|
+
description: Alternative text for the cover image
|
|
11897
11900
|
required:
|
|
11898
11901
|
- ref
|
|
11899
11902
|
DocumentTableRecord:
|
|
@@ -13848,6 +13851,12 @@ components:
|
|
|
13848
13851
|
description: Vertical position of the cover image.
|
|
13849
13852
|
type: number
|
|
13850
13853
|
default: 0
|
|
13854
|
+
height:
|
|
13855
|
+
description: Height of the cover image in pixels.
|
|
13856
|
+
type: number
|
|
13857
|
+
minimum: 10
|
|
13858
|
+
maximum: 700
|
|
13859
|
+
default: 240
|
|
13851
13860
|
required:
|
|
13852
13861
|
- yPos
|
|
13853
13862
|
VariableValue:
|