@sqlrooms/layout-config 0.26.0-rc.2 → 0.26.0-rc.3

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.
@@ -1,23 +1,25 @@
1
1
  import { z } from 'zod';
2
2
  /** Main view room panel key */
3
3
  export declare const MAIN_VIEW = "main";
4
- export declare const LayoutTypes: z.ZodEnum<["mosaic"]>;
4
+ export declare const LayoutTypes: z.ZodEnum<{
5
+ mosaic: "mosaic";
6
+ }>;
5
7
  export type LayoutTypes = z.infer<typeof MosaicLayoutDirection>;
6
8
  /** @deprecated Use createDefaultMosaicLayout instead */
7
9
  export declare const DEFAULT_MOSAIC_LAYOUT: MosaicLayoutConfig;
8
10
  export declare function createDefaultMosaicLayout(): MosaicLayoutConfig;
9
- export declare const MosaicLayoutDirection: z.ZodEnum<["row", "column"]>;
11
+ export declare const MosaicLayoutDirection: z.ZodEnum<{
12
+ row: "row";
13
+ column: "column";
14
+ }>;
10
15
  export type MosaicLayoutDirection = z.infer<typeof MosaicLayoutDirection>;
11
16
  declare const BaseMosaicLayoutParent: z.ZodObject<{
12
- direction: z.ZodEnum<["row", "column"]>;
17
+ direction: z.ZodEnum<{
18
+ row: "row";
19
+ column: "column";
20
+ }>;
13
21
  splitPercentage: z.ZodOptional<z.ZodNumber>;
14
- }, "strip", z.ZodTypeAny, {
15
- direction: "row" | "column";
16
- splitPercentage?: number | undefined;
17
- }, {
18
- direction: "row" | "column";
19
- splitPercentage?: number | undefined;
20
- }>;
22
+ }, z.core.$strip>;
21
23
  export declare const MosaicLayoutParent: z.ZodType<MosaicLayoutParent>;
22
24
  export type MosaicLayoutParent = z.infer<typeof BaseMosaicLayoutParent> & {
23
25
  first: MosaicLayoutNode;
@@ -27,40 +29,20 @@ export declare function isMosaicLayoutParent(node: MosaicLayoutNode | null | und
27
29
  export declare const MosaicLayoutNodeKey: z.ZodString;
28
30
  export type MosaicLayoutNodeKey = z.infer<typeof MosaicLayoutNodeKey>;
29
31
  export type MosaicLayoutNode = z.infer<typeof MosaicLayoutNode>;
30
- export declare const MosaicLayoutNode: z.ZodUnion<[z.ZodString, z.ZodType<MosaicLayoutParent, z.ZodTypeDef, MosaicLayoutParent>]>;
32
+ export declare const MosaicLayoutNode: z.ZodUnion<readonly [z.ZodString, z.ZodType<MosaicLayoutParent, unknown, z.core.$ZodTypeInternals<MosaicLayoutParent, unknown>>]>;
31
33
  export declare const MosaicLayoutConfig: z.ZodObject<{
32
34
  type: z.ZodLiteral<"mosaic">;
33
- nodes: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodType<MosaicLayoutParent, z.ZodTypeDef, MosaicLayoutParent>]>>;
34
- pinned: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
- fixed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
36
- }, "strip", z.ZodTypeAny, {
37
- type: "mosaic";
38
- nodes: string | MosaicLayoutParent | null;
39
- pinned?: string[] | undefined;
40
- fixed?: string[] | undefined;
41
- }, {
42
- type: "mosaic";
43
- nodes: string | MosaicLayoutParent | null;
44
- pinned?: string[] | undefined;
45
- fixed?: string[] | undefined;
46
- }>;
35
+ nodes: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodType<MosaicLayoutParent, unknown, z.core.$ZodTypeInternals<MosaicLayoutParent, unknown>>]>>;
36
+ pinned: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ fixed: z.ZodOptional<z.ZodArray<z.ZodString>>;
38
+ }, z.core.$strip>;
47
39
  export type MosaicLayoutConfig = z.infer<typeof MosaicLayoutConfig>;
48
- export declare const LayoutConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
40
+ export declare const LayoutConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
49
41
  type: z.ZodLiteral<"mosaic">;
50
- nodes: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodType<MosaicLayoutParent, z.ZodTypeDef, MosaicLayoutParent>]>>;
51
- pinned: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
- fixed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
53
- }, "strip", z.ZodTypeAny, {
54
- type: "mosaic";
55
- nodes: string | MosaicLayoutParent | null;
56
- pinned?: string[] | undefined;
57
- fixed?: string[] | undefined;
58
- }, {
59
- type: "mosaic";
60
- nodes: string | MosaicLayoutParent | null;
61
- pinned?: string[] | undefined;
62
- fixed?: string[] | undefined;
63
- }>]>;
42
+ nodes: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodType<MosaicLayoutParent, unknown, z.core.$ZodTypeInternals<MosaicLayoutParent, unknown>>]>>;
43
+ pinned: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
+ fixed: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ }, z.core.$strip>], "type">;
64
46
  export type LayoutConfig = z.infer<typeof LayoutConfig>;
65
47
  export {};
66
48
  //# sourceMappingURL=LayoutConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutConfig.d.ts","sourceRoot":"","sources":["../src/LayoutConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,+BAA+B;AAC/B,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,eAAO,MAAM,WAAW,uBAAqB,CAAC;AAC9C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEhE,wDAAwD;AACxD,eAAO,MAAM,qBAAqB,EAAE,kBAGnC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,kBAAkB,CAK9D;AAED,eAAO,MAAM,qBAAqB,8BAA4B,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,QAAA,MAAM,sBAAsB;;;;;;;;;EAG1B,CAAC;AAGH,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAA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D;AAED,eAAO,MAAM,qBAAqB;;;EAA4B,CAAC;AAC/D,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,QAAA,MAAM,sBAAsB;;;;;;iBAG1B,CAAC;AAGH,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAIzD,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,GAAG;IACxE,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,GACxC,IAAI,IAAI,kBAAkB,CAE5B;AAED,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAC9C,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,eAAO,MAAM,gBAAgB,mIAG3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,YAAY;;;;;2BAAqD,CAAC;AAC/E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sqlrooms/layout-config",
3
- "version": "0.26.0-rc.2",
3
+ "version": "0.26.0-rc.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "zod": "^3.25.76"
21
+ "zod": "^4.1.8"
22
22
  },
23
23
  "scripts": {
24
24
  "dev": "tsc -w",
@@ -27,5 +27,5 @@
27
27
  "typecheck": "tsc --noEmit",
28
28
  "typedoc": "typedoc"
29
29
  },
30
- "gitHead": "86e1f2915278944e6bec6b19ab8ac16dc094cbb9"
30
+ "gitHead": "536764b2aa924e5bb6650fe0bc674113179ff444"
31
31
  }