@sqlrooms/room-config 0.26.0-rc.3 → 0.26.0-rc.5
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/BaseRoomConfig.d.ts
CHANGED
|
@@ -3,12 +3,6 @@ export declare const DEFAULT_ROOM_TITLE = "Untitled room";
|
|
|
3
3
|
export declare const BaseRoomConfig: z.ZodObject<{
|
|
4
4
|
title: z.ZodDefault<z.ZodString>;
|
|
5
5
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
-
layout: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
-
type: z.ZodLiteral<"mosaic">;
|
|
8
|
-
nodes: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodType<import("@sqlrooms/layout-config").MosaicLayoutParent, unknown, z.core.$ZodTypeInternals<import("@sqlrooms/layout-config").MosaicLayoutParent, unknown>>]>>;
|
|
9
|
-
pinned: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
-
fixed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
-
}, z.core.$strip>], "type">>;
|
|
12
6
|
dataSources: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
7
|
tableName: z.ZodString;
|
|
14
8
|
type: z.ZodLiteral<"file">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseRoomConfig.d.ts","sourceRoot":"","sources":["../src/BaseRoomConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"BaseRoomConfig.d.ts","sourceRoot":"","sources":["../src/BaseRoomConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASO,CAAC;AAEnC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,wBAAgB,2BAA2B,IAAI,cAAc,CAK5D"}
|
package/dist/BaseRoomConfig.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DataSource } from './DataSource';
|
|
3
|
-
import { DEFAULT_MOSAIC_LAYOUT, LayoutConfig } from '@sqlrooms/layout-config';
|
|
4
3
|
export const DEFAULT_ROOM_TITLE = 'Untitled room';
|
|
5
4
|
export const BaseRoomConfig = z
|
|
6
5
|
.object({
|
|
7
6
|
title: z.string().default(DEFAULT_ROOM_TITLE).describe('Room title.'),
|
|
8
7
|
description: z.string().nullable().optional().describe('Room description.'),
|
|
9
|
-
layout: LayoutConfig.default(DEFAULT_MOSAIC_LAYOUT).describe('Layout specifies how views are arranged on the screen.'),
|
|
10
8
|
dataSources: z
|
|
11
9
|
.array(DataSource)
|
|
12
10
|
.default([])
|
|
@@ -16,7 +14,6 @@ export const BaseRoomConfig = z
|
|
|
16
14
|
export function createDefaultBaseRoomConfig() {
|
|
17
15
|
return {
|
|
18
16
|
title: DEFAULT_ROOM_TITLE,
|
|
19
|
-
layout: DEFAULT_MOSAIC_LAYOUT,
|
|
20
17
|
dataSources: [],
|
|
21
18
|
};
|
|
22
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseRoomConfig.js","sourceRoot":"","sources":["../src/BaseRoomConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseRoomConfig.js","sourceRoot":"","sources":["../src/BaseRoomConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAGxC,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;IACrE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC3E,WAAW,EAAE,CAAC;SACX,KAAK,CAAC,UAAU,CAAC;SACjB,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,8DAA8D,CAAC;CAC5E,CAAC;KACD,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAInC,MAAM,UAAU,2BAA2B;IACzC,OAAO;QACL,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,EAAE;KAChB,CAAC;AACJ,CAAC","sourcesContent":["import {z} from 'zod';\nimport {DataSource} from './DataSource';\nimport {DEFAULT_MOSAIC_LAYOUT, LayoutConfig} from '@sqlrooms/layout-config';\n\nexport const DEFAULT_ROOM_TITLE = 'Untitled room';\n\nexport const BaseRoomConfig = z\n .object({\n title: z.string().default(DEFAULT_ROOM_TITLE).describe('Room title.'),\n description: z.string().nullable().optional().describe('Room description.'),\n dataSources: z\n .array(DataSource)\n .default([])\n .describe('Data sources. Each data source must have a unique tableName.'),\n })\n .describe('Room configuration.');\n\nexport type BaseRoomConfig = z.infer<typeof BaseRoomConfig>;\n\nexport function createDefaultBaseRoomConfig(): BaseRoomConfig {\n return {\n title: DEFAULT_ROOM_TITLE,\n dataSources: [],\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlrooms/room-config",
|
|
3
|
-
"version": "0.26.0-rc.
|
|
3
|
+
"version": "0.26.0-rc.5",
|
|
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
|
-
"@sqlrooms/layout-config": "0.26.0-rc.
|
|
21
|
+
"@sqlrooms/layout-config": "0.26.0-rc.5",
|
|
22
22
|
"zod": "^4.1.8"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"typecheck": "tsc --noEmit",
|
|
33
33
|
"typedoc": "typedoc"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "dc1c3b765718c8748aa11cce3cc83f907d3e5963"
|
|
36
36
|
}
|