@podlite/schema 0.0.22 → 0.0.23

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Upcoming
4
4
 
5
+ ## 0.0.23
6
+
7
+ - added alignment for column contents
8
+
5
9
  ## 0.0.21
6
10
 
7
11
  - improve caption element
package/esm/types.d.ts CHANGED
@@ -332,6 +332,7 @@ export interface BlockHead extends Block {
332
332
  export interface BlockTable extends Omit<Block, 'content'> {
333
333
  name: 'table';
334
334
  content: Array<TableHead | TableSeparator | TableRow | BlankLine>;
335
+ align?: ('left' | 'center' | 'right' | null)[];
335
336
  text?: string;
336
337
  }
337
338
  export interface TableCell {
package/lib/types.d.ts CHANGED
@@ -332,6 +332,7 @@ export interface BlockHead extends Block {
332
332
  export interface BlockTable extends Omit<Block, 'content'> {
333
333
  name: 'table';
334
334
  content: Array<TableHead | TableSeparator | TableRow | BlankLine>;
335
+ align?: ('left' | 'center' | 'right' | null)[];
335
336
  text?: string;
336
337
  }
337
338
  export interface TableCell {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podlite/schema",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "AST tools for Podlite markup language",
5
5
  "main": "lib/index.js",
6
6
  "license": "MIT",
@@ -1399,6 +1399,24 @@
1399
1399
  ]
1400
1400
  }
1401
1401
  },
1402
+ "align": {
1403
+ "type": "array",
1404
+ "items": {
1405
+ "anyOf": [
1406
+ {
1407
+ "enum": [
1408
+ "center",
1409
+ "left",
1410
+ "right"
1411
+ ],
1412
+ "type": "string"
1413
+ },
1414
+ {
1415
+ "type": "null"
1416
+ }
1417
+ ]
1418
+ }
1419
+ },
1402
1420
  "text": {
1403
1421
  "type": "string"
1404
1422
  },
@@ -1399,6 +1399,24 @@
1399
1399
  ]
1400
1400
  }
1401
1401
  },
1402
+ "align": {
1403
+ "type": "array",
1404
+ "items": {
1405
+ "anyOf": [
1406
+ {
1407
+ "enum": [
1408
+ "center",
1409
+ "left",
1410
+ "right"
1411
+ ],
1412
+ "type": "string"
1413
+ },
1414
+ {
1415
+ "type": "null"
1416
+ }
1417
+ ]
1418
+ }
1419
+ },
1402
1420
  "text": {
1403
1421
  "type": "string"
1404
1422
  },