@await-widget/runtime 0.0.50 → 0.0.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@await-widget/runtime",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "TypeScript declarations for Await widgets.",
5
5
  "license": "MIT",
6
6
  "author": "Maundy",
package/types/model.d.ts CHANGED
@@ -438,6 +438,7 @@ type TextRenderLayout = {
438
438
  fontWidth?: number;
439
439
  lineHeight?: number;
440
440
  lineSpacing?: number;
441
+ paragraphHeadIndent?: number;
441
442
  tracking?: number;
442
443
  kerning?: number;
443
444
  horizontalAlignment?: TextAlignment;
@@ -468,6 +469,7 @@ type TextRenderRequest = {
468
469
  type TextRenderLine = {
469
470
  range: [start: number, end: number];
470
471
  baseline: number;
472
+ indent?: number;
471
473
  };
472
474
 
473
475
  type TextRenderInput = TextRenderLayout & {
package/types/prop.d.ts CHANGED
@@ -15,14 +15,16 @@ type HStackValue = {
15
15
  };
16
16
 
17
17
  type FlowValue = {
18
- /** Default 0. */
18
+ /** Default 0. Minimum item spacing when justified is enabled. */
19
19
  spacing?: number;
20
20
  /** Default 0. */
21
21
  rowSpacing?: number;
22
22
  /** Vertical alignment for items within each row. */
23
23
  alignment?: VerticalAlignment;
24
- /** Horizontal alignment for each row when its contents do not fill the available width. */
24
+ /** Horizontal alignment for each row. Single-item rows use this alignment even when justified is enabled. */
25
25
  rowAlignment?: 'leading' | 'center' | 'trailing';
26
+ /** Spreads rows with multiple items edge-to-edge. Default false. */
27
+ justified?: boolean;
26
28
  };
27
29
 
28
30
  type ZStackValue = {