@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 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
@@ -283,7 +283,7 @@ module.exports = __toCommonJS(src_exports);
283
283
 
284
284
  // package.json
285
285
  var name = "@gitbook/api";
286
- var version = "0.145.0";
286
+ var version = "0.146.0";
287
287
 
288
288
  // src/client.ts
289
289
  var import_event_iterator = __toESM(require_node(), 1);
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.145.0";
175
+ var version = "0.146.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.145.0",
7
+ "version": "0.146.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
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: