@camstack/types 1.2.453 → 1.2.454
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 +6 -0
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/dist/remote/remote-config.d.ts +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.454] - 2026-10-31
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Remote layout groups accept an optional size and hideTitle for dividers
|
|
15
|
+
|
|
10
16
|
## [1.2.453] - 2026-10-30
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/dist/index.js
CHANGED
|
@@ -67713,7 +67713,14 @@ var RemoteLayoutGroupSchema = zod.z.object({
|
|
|
67713
67713
|
col: zod.z.number().int().min(0).max(24),
|
|
67714
67714
|
rowSpan: zod.z.number().int().min(1).max(24),
|
|
67715
67715
|
colSpan: zod.z.number().int().min(1).max(24),
|
|
67716
|
-
title: zod.z.string().min(1).max(40).optional()
|
|
67716
|
+
title: zod.z.string().min(1).max(40).optional(),
|
|
67717
|
+
/**
|
|
67718
|
+
* How much room a divider takes: `compact` (the default) is a slim rule,
|
|
67719
|
+
* `normal` a full grid row. Other frames ignore it.
|
|
67720
|
+
*/
|
|
67721
|
+
size: zod.z.enum(["compact", "normal"]).optional(),
|
|
67722
|
+
/** Keep the title in the layout but draw only the rule. */
|
|
67723
|
+
hideTitle: zod.z.boolean().optional()
|
|
67717
67724
|
});
|
|
67718
67725
|
function rectsOverlap(a, b) {
|
|
67719
67726
|
return a.row < b.row + b.rowSpan && b.row < a.row + a.rowSpan && a.col < b.col + b.colSpan && b.col < a.col + a.colSpan;
|
package/dist/index.mjs
CHANGED
|
@@ -67712,7 +67712,14 @@ var RemoteLayoutGroupSchema = z.object({
|
|
|
67712
67712
|
col: z.number().int().min(0).max(24),
|
|
67713
67713
|
rowSpan: z.number().int().min(1).max(24),
|
|
67714
67714
|
colSpan: z.number().int().min(1).max(24),
|
|
67715
|
-
title: z.string().min(1).max(40).optional()
|
|
67715
|
+
title: z.string().min(1).max(40).optional(),
|
|
67716
|
+
/**
|
|
67717
|
+
* How much room a divider takes: `compact` (the default) is a slim rule,
|
|
67718
|
+
* `normal` a full grid row. Other frames ignore it.
|
|
67719
|
+
*/
|
|
67720
|
+
size: z.enum(["compact", "normal"]).optional(),
|
|
67721
|
+
/** Keep the title in the layout but draw only the rule. */
|
|
67722
|
+
hideTitle: z.boolean().optional()
|
|
67716
67723
|
});
|
|
67717
67724
|
function rectsOverlap(a, b) {
|
|
67718
67725
|
return a.row < b.row + b.rowSpan && b.row < a.row + a.rowSpan && a.col < b.col + b.colSpan && b.col < a.col + a.colSpan;
|
|
@@ -176,6 +176,11 @@ export declare const RemoteLayoutGroupSchema: z.ZodObject<{
|
|
|
176
176
|
rowSpan: z.ZodNumber;
|
|
177
177
|
colSpan: z.ZodNumber;
|
|
178
178
|
title: z.ZodOptional<z.ZodString>;
|
|
179
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
compact: "compact";
|
|
181
|
+
normal: "normal";
|
|
182
|
+
}>>;
|
|
183
|
+
hideTitle: z.ZodOptional<z.ZodBoolean>;
|
|
179
184
|
}, z.core.$strip>;
|
|
180
185
|
export type RemoteLayoutGroup = z.infer<typeof RemoteLayoutGroupSchema>;
|
|
181
186
|
export interface LayoutRect {
|
|
@@ -232,6 +237,11 @@ export declare const RemoteLayoutPayloadSchema: z.ZodObject<{
|
|
|
232
237
|
rowSpan: z.ZodNumber;
|
|
233
238
|
colSpan: z.ZodNumber;
|
|
234
239
|
title: z.ZodOptional<z.ZodString>;
|
|
240
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
compact: "compact";
|
|
242
|
+
normal: "normal";
|
|
243
|
+
}>>;
|
|
244
|
+
hideTitle: z.ZodOptional<z.ZodBoolean>;
|
|
235
245
|
}, z.core.$strip>>>;
|
|
236
246
|
}, z.core.$strip>;
|
|
237
247
|
export type RemoteLayoutPayload = z.infer<typeof RemoteLayoutPayloadSchema>;
|