@sqlrooms/sql-editor-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.
@@ -1,14 +1,13 @@
1
1
  import { z } from 'zod';
2
2
  export declare const SqlEditorSliceConfig: z.ZodObject<{
3
- sqlEditor: z.ZodObject<{
4
- queries: z.ZodArray<z.ZodObject<{
5
- id: z.ZodString;
6
- name: z.ZodString;
7
- query: z.ZodString;
8
- }, z.core.$strip>>;
9
- selectedQueryId: z.ZodDefault<z.ZodString>;
10
- lastExecutedQuery: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strip>;
3
+ queries: z.ZodArray<z.ZodObject<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ query: z.ZodString;
7
+ }, z.core.$strip>>;
8
+ selectedQueryId: z.ZodDefault<z.ZodString>;
9
+ lastExecutedQuery: z.ZodOptional<z.ZodString>;
10
+ closedTabIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
12
11
  }, z.core.$strip>;
13
12
  export type SqlEditorSliceConfig = z.infer<typeof SqlEditorSliceConfig>;
14
13
  export declare function createDefaultSqlEditorConfig(): SqlEditorSliceConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"SqlEditorSliceConfig.d.ts","sourceRoot":"","sources":["../src/SqlEditorSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAe/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,wBAAgB,4BAA4B,IAAI,oBAAoB,CAOnE"}
1
+ {"version":3,"file":"SqlEditorSliceConfig.d.ts","sourceRoot":"","sources":["../src/SqlEditorSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,oBAAoB;;;;;;;;;iBAiB/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,wBAAgB,4BAA4B,IAAI,oBAAoB,CAMnE"}
@@ -1,25 +1,26 @@
1
1
  import { z } from 'zod';
2
2
  // Saved state (persisted)
3
3
  export const SqlEditorSliceConfig = z.object({
4
- sqlEditor: z.object({
5
- queries: z.array(z.object({
6
- id: z.string().describe('Query identifier.'),
7
- name: z.string().describe('Query name.'),
8
- query: z.string().describe('SQL query to execute.'),
9
- })),
10
- selectedQueryId: z
11
- .string()
12
- .default('default')
13
- .describe('The id of the currently selected query.'),
14
- lastExecutedQuery: z.string().optional().describe('Last executed query'),
15
- }),
4
+ queries: z.array(z.object({
5
+ id: z.string().describe('Query identifier.'),
6
+ name: z.string().describe('Query name.'),
7
+ query: z.string().describe('SQL query to execute.'),
8
+ })),
9
+ selectedQueryId: z
10
+ .string()
11
+ .default('default')
12
+ .describe('The id of the currently selected query.'),
13
+ lastExecutedQuery: z.string().optional().describe('Last executed query'),
14
+ closedTabIds: z
15
+ .array(z.string())
16
+ .default([])
17
+ .describe('List of closed tab ids'),
16
18
  });
17
19
  export function createDefaultSqlEditorConfig() {
18
20
  return {
19
- sqlEditor: {
20
- queries: [{ id: 'default', name: 'Untitled', query: '' }],
21
- selectedQueryId: 'default',
22
- },
21
+ queries: [{ id: 'default', name: 'SQL', query: '' }],
22
+ selectedQueryId: 'default',
23
+ closedTabIds: [],
23
24
  };
24
25
  }
25
26
  //# sourceMappingURL=SqlEditorSliceConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SqlEditorSliceConfig.js","sourceRoot":"","sources":["../src/SqlEditorSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,0BAA0B;AAC1B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC;YACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;YACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;SACpD,CAAC,CACH;QACD,eAAe,EAAE,CAAC;aACf,MAAM,EAAE;aACR,OAAO,CAAC,SAAS,CAAC;aAClB,QAAQ,CAAC,yCAAyC,CAAC;QACtD,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;KACzE,CAAC;CACH,CAAC,CAAC;AAGH,MAAM,UAAU,4BAA4B;IAC1C,OAAO;QACL,SAAS,EAAE;YACT,OAAO,EAAE,CAAC,EAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,EAAC,CAAC;YACvD,eAAe,EAAE,SAAS;SAC3B;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {z} from 'zod';\n\n// Saved state (persisted)\nexport const SqlEditorSliceConfig = z.object({\n sqlEditor: z.object({\n queries: z.array(\n z.object({\n id: z.string().describe('Query identifier.'),\n name: z.string().describe('Query name.'),\n query: z.string().describe('SQL query to execute.'),\n }),\n ),\n selectedQueryId: z\n .string()\n .default('default')\n .describe('The id of the currently selected query.'),\n lastExecutedQuery: z.string().optional().describe('Last executed query'),\n }),\n});\nexport type SqlEditorSliceConfig = z.infer<typeof SqlEditorSliceConfig>;\n\nexport function createDefaultSqlEditorConfig(): SqlEditorSliceConfig {\n return {\n sqlEditor: {\n queries: [{id: 'default', name: 'Untitled', query: ''}],\n selectedQueryId: 'default',\n },\n };\n}\n"]}
1
+ {"version":3,"file":"SqlEditorSliceConfig.js","sourceRoot":"","sources":["../src/SqlEditorSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,0BAA0B;AAC1B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;QAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;QACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;KACpD,CAAC,CACH;IACD,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,OAAO,CAAC,SAAS,CAAC;SAClB,QAAQ,CAAC,yCAAyC,CAAC;IACtD,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACxE,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC,CAAC;AAGH,MAAM,UAAU,4BAA4B;IAC1C,OAAO;QACL,OAAO,EAAE,CAAC,EAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAC,CAAC;QAClD,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,EAAE;KACjB,CAAC;AACJ,CAAC","sourcesContent":["import {z} from 'zod';\n\n// Saved state (persisted)\nexport const SqlEditorSliceConfig = z.object({\n queries: z.array(\n z.object({\n id: z.string().describe('Query identifier.'),\n name: z.string().describe('Query name.'),\n query: z.string().describe('SQL query to execute.'),\n }),\n ),\n selectedQueryId: z\n .string()\n .default('default')\n .describe('The id of the currently selected query.'),\n lastExecutedQuery: z.string().optional().describe('Last executed query'),\n closedTabIds: z\n .array(z.string())\n .default([])\n .describe('List of closed tab ids'),\n});\nexport type SqlEditorSliceConfig = z.infer<typeof SqlEditorSliceConfig>;\n\nexport function createDefaultSqlEditorConfig(): SqlEditorSliceConfig {\n return {\n queries: [{id: 'default', name: 'SQL', query: ''}],\n selectedQueryId: 'default',\n closedTabIds: [],\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sqlrooms/sql-editor-config",
3
- "version": "0.26.0-rc.3",
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",
@@ -27,5 +27,5 @@
27
27
  "typecheck": "tsc --noEmit",
28
28
  "typedoc": "typedoc"
29
29
  },
30
- "gitHead": "536764b2aa924e5bb6650fe0bc674113179ff444"
30
+ "gitHead": "dc1c3b765718c8748aa11cce3cc83f907d3e5963"
31
31
  }