@ramme-io/shared 3.6.0 → 3.7.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/index.cjs +13 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +13 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -855,6 +855,16 @@ var AppDocumentSchema = import_zod6.z.object({
|
|
|
855
855
|
* block off the glass. Older firmware draws from the top.
|
|
856
856
|
*/
|
|
857
857
|
valign: import_zod6.z.enum(["start", "center"]).optional(),
|
|
858
|
+
/**
|
|
859
|
+
* Where the blocks sit across the screen as a whole. `center` makes a column
|
|
860
|
+
* as wide as the widest block and centres that column, so left-aligned lines
|
|
861
|
+
* stay aligned with each other and the group sits in the middle — rather
|
|
862
|
+
* than every line hugging the left edge with the right half empty. Widths
|
|
863
|
+
* are the board's (see `pack`); a block with no width of its own, like an
|
|
864
|
+
* equal-celled row or a bar, fills the screen and leaves nothing to centre.
|
|
865
|
+
* Older firmware draws from the left.
|
|
866
|
+
*/
|
|
867
|
+
halign: import_zod6.z.enum(["start", "center"]).optional(),
|
|
858
868
|
/** Named so bindings can refer to them. */
|
|
859
869
|
sources: import_zod6.z.record(AppSourceSchema).default({}),
|
|
860
870
|
blocks: import_zod6.z.array(AppBlockSchema).min(1).max(12)
|
|
@@ -1579,7 +1589,9 @@ BLOCKS \u2014 up to 12, drawn top to bottom. Each is one of:
|
|
|
1579
1589
|
A row splits the width into equal cells. Add "pack": true and each child takes
|
|
1580
1590
|
only its own width, "gap" apart \u2014 a number with its icon right beside it, or
|
|
1581
1591
|
"H 68\xB0 L 56\xB0" as one line. Put "valign": "center" at the top level of the
|
|
1582
|
-
document to centre the blocks on the screen rather than start at the top
|
|
1592
|
+
document to centre the blocks on the screen rather than start at the top, and
|
|
1593
|
+
"halign": "center" to centre them across it \u2014 the lines keep their own
|
|
1594
|
+
alignment inside a column as wide as the widest, and the column is centred.
|
|
1583
1595
|
|
|
1584
1596
|
AN ICON is the sky drawn in outline: "sun", "partly", "cloud", "fog", "rain",
|
|
1585
1597
|
"snow" or "storm". Bind its value to a weather source's "icon" field so it
|
package/dist/index.d.cts
CHANGED
|
@@ -13983,6 +13983,16 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
13983
13983
|
* block off the glass. Older firmware draws from the top.
|
|
13984
13984
|
*/
|
|
13985
13985
|
valign: z.ZodOptional<z.ZodEnum<["start", "center"]>>;
|
|
13986
|
+
/**
|
|
13987
|
+
* Where the blocks sit across the screen as a whole. `center` makes a column
|
|
13988
|
+
* as wide as the widest block and centres that column, so left-aligned lines
|
|
13989
|
+
* stay aligned with each other and the group sits in the middle — rather
|
|
13990
|
+
* than every line hugging the left edge with the right half empty. Widths
|
|
13991
|
+
* are the board's (see `pack`); a block with no width of its own, like an
|
|
13992
|
+
* equal-celled row or a bar, fills the screen and leaves nothing to centre.
|
|
13993
|
+
* Older firmware draws from the left.
|
|
13994
|
+
*/
|
|
13995
|
+
halign: z.ZodOptional<z.ZodEnum<["start", "center"]>>;
|
|
13986
13996
|
/** Named so bindings can refer to them. */
|
|
13987
13997
|
sources: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
13988
13998
|
kind: z.ZodLiteral<"weather">;
|
|
@@ -19290,6 +19300,7 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
19290
19300
|
}>;
|
|
19291
19301
|
author?: string | undefined;
|
|
19292
19302
|
valign?: "start" | "center" | undefined;
|
|
19303
|
+
halign?: "start" | "center" | undefined;
|
|
19293
19304
|
}, {
|
|
19294
19305
|
id: string;
|
|
19295
19306
|
name: string;
|
|
@@ -19964,6 +19975,7 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
19964
19975
|
background?: string | undefined;
|
|
19965
19976
|
screen?: unknown;
|
|
19966
19977
|
valign?: "start" | "center" | undefined;
|
|
19978
|
+
halign?: "start" | "center" | undefined;
|
|
19967
19979
|
sources?: Record<string, {
|
|
19968
19980
|
kind: "weather";
|
|
19969
19981
|
latitude: number;
|
|
@@ -20682,6 +20694,7 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
20682
20694
|
}>;
|
|
20683
20695
|
author?: string | undefined;
|
|
20684
20696
|
valign?: "start" | "center" | undefined;
|
|
20697
|
+
halign?: "start" | "center" | undefined;
|
|
20685
20698
|
}, {
|
|
20686
20699
|
id: string;
|
|
20687
20700
|
name: string;
|
|
@@ -21356,6 +21369,7 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
21356
21369
|
background?: string | undefined;
|
|
21357
21370
|
screen?: unknown;
|
|
21358
21371
|
valign?: "start" | "center" | undefined;
|
|
21372
|
+
halign?: "start" | "center" | undefined;
|
|
21359
21373
|
sources?: Record<string, {
|
|
21360
21374
|
kind: "weather";
|
|
21361
21375
|
latitude: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -13983,6 +13983,16 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
13983
13983
|
* block off the glass. Older firmware draws from the top.
|
|
13984
13984
|
*/
|
|
13985
13985
|
valign: z.ZodOptional<z.ZodEnum<["start", "center"]>>;
|
|
13986
|
+
/**
|
|
13987
|
+
* Where the blocks sit across the screen as a whole. `center` makes a column
|
|
13988
|
+
* as wide as the widest block and centres that column, so left-aligned lines
|
|
13989
|
+
* stay aligned with each other and the group sits in the middle — rather
|
|
13990
|
+
* than every line hugging the left edge with the right half empty. Widths
|
|
13991
|
+
* are the board's (see `pack`); a block with no width of its own, like an
|
|
13992
|
+
* equal-celled row or a bar, fills the screen and leaves nothing to centre.
|
|
13993
|
+
* Older firmware draws from the left.
|
|
13994
|
+
*/
|
|
13995
|
+
halign: z.ZodOptional<z.ZodEnum<["start", "center"]>>;
|
|
13986
13996
|
/** Named so bindings can refer to them. */
|
|
13987
13997
|
sources: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
13988
13998
|
kind: z.ZodLiteral<"weather">;
|
|
@@ -19290,6 +19300,7 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
19290
19300
|
}>;
|
|
19291
19301
|
author?: string | undefined;
|
|
19292
19302
|
valign?: "start" | "center" | undefined;
|
|
19303
|
+
halign?: "start" | "center" | undefined;
|
|
19293
19304
|
}, {
|
|
19294
19305
|
id: string;
|
|
19295
19306
|
name: string;
|
|
@@ -19964,6 +19975,7 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
19964
19975
|
background?: string | undefined;
|
|
19965
19976
|
screen?: unknown;
|
|
19966
19977
|
valign?: "start" | "center" | undefined;
|
|
19978
|
+
halign?: "start" | "center" | undefined;
|
|
19967
19979
|
sources?: Record<string, {
|
|
19968
19980
|
kind: "weather";
|
|
19969
19981
|
latitude: number;
|
|
@@ -20682,6 +20694,7 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
20682
20694
|
}>;
|
|
20683
20695
|
author?: string | undefined;
|
|
20684
20696
|
valign?: "start" | "center" | undefined;
|
|
20697
|
+
halign?: "start" | "center" | undefined;
|
|
20685
20698
|
}, {
|
|
20686
20699
|
id: string;
|
|
20687
20700
|
name: string;
|
|
@@ -21356,6 +21369,7 @@ declare const AppDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
21356
21369
|
background?: string | undefined;
|
|
21357
21370
|
screen?: unknown;
|
|
21358
21371
|
valign?: "start" | "center" | undefined;
|
|
21372
|
+
halign?: "start" | "center" | undefined;
|
|
21359
21373
|
sources?: Record<string, {
|
|
21360
21374
|
kind: "weather";
|
|
21361
21375
|
latitude: number;
|
package/dist/index.js
CHANGED
|
@@ -651,6 +651,16 @@ var AppDocumentSchema = z6.object({
|
|
|
651
651
|
* block off the glass. Older firmware draws from the top.
|
|
652
652
|
*/
|
|
653
653
|
valign: z6.enum(["start", "center"]).optional(),
|
|
654
|
+
/**
|
|
655
|
+
* Where the blocks sit across the screen as a whole. `center` makes a column
|
|
656
|
+
* as wide as the widest block and centres that column, so left-aligned lines
|
|
657
|
+
* stay aligned with each other and the group sits in the middle — rather
|
|
658
|
+
* than every line hugging the left edge with the right half empty. Widths
|
|
659
|
+
* are the board's (see `pack`); a block with no width of its own, like an
|
|
660
|
+
* equal-celled row or a bar, fills the screen and leaves nothing to centre.
|
|
661
|
+
* Older firmware draws from the left.
|
|
662
|
+
*/
|
|
663
|
+
halign: z6.enum(["start", "center"]).optional(),
|
|
654
664
|
/** Named so bindings can refer to them. */
|
|
655
665
|
sources: z6.record(AppSourceSchema).default({}),
|
|
656
666
|
blocks: z6.array(AppBlockSchema).min(1).max(12)
|
|
@@ -1375,7 +1385,9 @@ BLOCKS \u2014 up to 12, drawn top to bottom. Each is one of:
|
|
|
1375
1385
|
A row splits the width into equal cells. Add "pack": true and each child takes
|
|
1376
1386
|
only its own width, "gap" apart \u2014 a number with its icon right beside it, or
|
|
1377
1387
|
"H 68\xB0 L 56\xB0" as one line. Put "valign": "center" at the top level of the
|
|
1378
|
-
document to centre the blocks on the screen rather than start at the top
|
|
1388
|
+
document to centre the blocks on the screen rather than start at the top, and
|
|
1389
|
+
"halign": "center" to centre them across it \u2014 the lines keep their own
|
|
1390
|
+
alignment inside a column as wide as the widest, and the column is centred.
|
|
1379
1391
|
|
|
1380
1392
|
AN ICON is the sky drawn in outline: "sun", "partly", "cloud", "fog", "rain",
|
|
1381
1393
|
"snow" or "storm". Bind its value to a weather source's "icon" field so it
|