@sqlrooms/sql-editor 0.0.1-alpha.0 → 0.0.2
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/CreateTableModal.d.ts +2 -2
- package/dist/CreateTableModal.d.ts.map +1 -1
- package/dist/CreateTableModal.js +1 -1
- package/dist/DeleteSqlQueryModal.d.ts +2 -3
- package/dist/DeleteSqlQueryModal.d.ts.map +1 -1
- package/dist/RenameSqlQueryModal.d.ts +2 -3
- package/dist/RenameSqlQueryModal.d.ts.map +1 -1
- package/dist/RenameSqlQueryModal.js +1 -1
- package/dist/SqlEditor.d.ts +23 -3
- package/dist/SqlEditor.d.ts.map +1 -1
- package/dist/SqlEditor.js +13 -0
- package/dist/SqlEditorModal.d.ts +31 -2
- package/dist/SqlEditorModal.d.ts.map +1 -1
- package/dist/SqlEditorModal.js +29 -0
- package/dist/TablesList.d.ts +5 -5
- package/dist/TablesList.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +14 -10
- package/CHANGELOG.md +0 -10
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SqlQueryDataSource } from '@sqlrooms/project-config';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
export type
|
|
3
|
+
export type CreateTableModalProps = {
|
|
4
4
|
query: string;
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
editDataSource?: SqlQueryDataSource;
|
|
8
8
|
onAddOrUpdateSqlQuery: (tableName: string, query: string, oldTableName?: string) => Promise<void>;
|
|
9
9
|
};
|
|
10
|
-
declare const CreateTableModal: FC<
|
|
10
|
+
declare const CreateTableModal: FC<CreateTableModalProps>;
|
|
11
11
|
export default CreateTableModal;
|
|
12
12
|
//# sourceMappingURL=CreateTableModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateTableModal.d.ts","sourceRoot":"","sources":["../src/CreateTableModal.tsx"],"names":[],"mappings":"AAoBA,OAAO,
|
|
1
|
+
{"version":3,"file":"CreateTableModal.d.ts","sourceRoot":"","sources":["../src/CreateTableModal.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAC,kBAAkB,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,EAAE,EAAc,MAAM,OAAO,CAAC;AAkBtC,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,qBAAqB,EAAE,CACrB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,MAAM,KAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA0G/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/CreateTableModal.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Form, FormControl, FormField, FormItem, FormLabel, FormMessage, Input, Textarea, Alert, AlertDescription, } from '@sqlrooms/ui';
|
|
3
3
|
import { DuckQueryError } from '@sqlrooms/duckdb';
|
|
4
|
-
import { VALID_TABLE_OR_COLUMN_REGEX, } from '@sqlrooms/project-config';
|
|
5
4
|
import { useCallback } from 'react';
|
|
6
5
|
import { useForm } from 'react-hook-form';
|
|
7
6
|
import * as z from 'zod';
|
|
8
7
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
8
|
+
const VALID_TABLE_OR_COLUMN_REGEX = /^[a-zA-Z_][a-zA-Z0-9_]{0,62}$/;
|
|
9
9
|
const formSchema = z.object({
|
|
10
10
|
tableName: z
|
|
11
11
|
.string()
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
declare const DeleteSqlQueryModal: React.FC<{
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
onConfirm: () => void;
|
|
6
|
-
}
|
|
7
|
-
declare const DeleteSqlQueryModal: React.FC<Props>;
|
|
6
|
+
}>;
|
|
8
7
|
export default DeleteSqlQueryModal;
|
|
9
8
|
//# sourceMappingURL=DeleteSqlQueryModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteSqlQueryModal.d.ts","sourceRoot":"","sources":["../src/DeleteSqlQueryModal.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,
|
|
1
|
+
{"version":3,"file":"DeleteSqlQueryModal.d.ts","sourceRoot":"","sources":["../src/DeleteSqlQueryModal.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAsBA,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
declare const RenameSqlQueryModal: React.FC<{
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
initialName: string;
|
|
6
6
|
onRename: (newName: string) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const RenameSqlQueryModal: React.FC<Props>;
|
|
7
|
+
}>;
|
|
9
8
|
export default RenameSqlQueryModal;
|
|
10
9
|
//# sourceMappingURL=RenameSqlQueryModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenameSqlQueryModal.d.ts","sourceRoot":"","sources":["../src/RenameSqlQueryModal.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,
|
|
1
|
+
{"version":3,"file":"RenameSqlQueryModal.d.ts","sourceRoot":"","sources":["../src/RenameSqlQueryModal.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAmDA,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { zodResolver } from '@hookform/resolvers/zod';
|
|
|
6
6
|
const formSchema = z.object({
|
|
7
7
|
queryName: z.string().min(1, 'Query name is required'),
|
|
8
8
|
});
|
|
9
|
-
const RenameSqlQueryModal = ({ isOpen, onClose, initialName, onRename
|
|
9
|
+
const RenameSqlQueryModal = ({ isOpen, onClose, initialName, onRename }) => {
|
|
10
10
|
const form = useForm({
|
|
11
11
|
resolver: zodResolver(formSchema),
|
|
12
12
|
defaultValues: {
|
package/dist/SqlEditor.d.ts
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import { SqlEditorConfig } from '@sqlrooms/project-config';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
3
|
+
import { CreateTableModalProps } from './CreateTableModal';
|
|
4
|
+
export type SqlEditorProps = {
|
|
5
|
+
/** The database schema to use for queries. Defaults to 'main' */
|
|
5
6
|
schema?: string;
|
|
7
|
+
/** Whether the SQL editor is currently visible */
|
|
6
8
|
isOpen: boolean;
|
|
9
|
+
/** Optional component to render SQL documentation in the side panel */
|
|
7
10
|
documentationPanel?: React.ReactNode;
|
|
11
|
+
/** Configuration object containing queries and selected query state */
|
|
8
12
|
sqlEditorConfig: SqlEditorConfig;
|
|
13
|
+
/** Callback fired when the SQL editor configuration changes */
|
|
9
14
|
onChange: (config: SqlEditorConfig) => void;
|
|
15
|
+
/** Callback fired when the SQL editor should be closed */
|
|
10
16
|
onClose: () => void;
|
|
17
|
+
/** Callback fired when a new table should be created from query results */
|
|
11
18
|
onAddOrUpdateSqlQuery: CreateTableModalProps['onAddOrUpdateSqlQuery'];
|
|
12
19
|
};
|
|
13
|
-
|
|
20
|
+
/**
|
|
21
|
+
* A full-featured SQL editor component with query execution, table management, and results visualization.
|
|
22
|
+
*
|
|
23
|
+
* Features:
|
|
24
|
+
* - Multiple query tabs with save/rename/delete functionality
|
|
25
|
+
* - Query execution with results displayed in a data table
|
|
26
|
+
* - Table browser showing available tables in the schema
|
|
27
|
+
* - Export results to CSV
|
|
28
|
+
* - Create new tables from query results
|
|
29
|
+
* - Optional SQL documentation panel
|
|
30
|
+
* - Keyboard shortcuts (Cmd/Ctrl + Enter to run queries)
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
declare const SqlEditor: React.FC<SqlEditorProps>;
|
|
14
34
|
export default SqlEditor;
|
|
15
35
|
//# sourceMappingURL=SqlEditor.d.ts.map
|
package/dist/SqlEditor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqlEditor.d.ts","sourceRoot":"","sources":["../src/SqlEditor.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AA4BzD,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAyB,
|
|
1
|
+
{"version":3,"file":"SqlEditor.d.ts","sourceRoot":"","sources":["../src/SqlEditor.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AA4BzD,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAyB,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAO3E,MAAM,MAAM,cAAc,GAAG;IAC3B,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,kDAAkD;IAClD,MAAM,EAAE,OAAO,CAAC;IAEhB,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAErC,uEAAuE;IACvE,eAAe,EAAE,eAAe,CAAC;IAEjC,+DAA+D;IAC/D,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAE5C,0DAA0D;IAC1D,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,2EAA2E;IAC3E,qBAAqB,EAAE,qBAAqB,CAAC,uBAAuB,CAAC,CAAC;CACvE,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAibvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/SqlEditor.js
CHANGED
|
@@ -12,6 +12,19 @@ import DeleteSqlQueryModal from './DeleteSqlQueryModal';
|
|
|
12
12
|
import RenameSqlQueryModal from './RenameSqlQueryModal';
|
|
13
13
|
import { TablesList } from './TablesList';
|
|
14
14
|
const DEFAULT_QUERY = '';
|
|
15
|
+
/**
|
|
16
|
+
* A full-featured SQL editor component with query execution, table management, and results visualization.
|
|
17
|
+
*
|
|
18
|
+
* Features:
|
|
19
|
+
* - Multiple query tabs with save/rename/delete functionality
|
|
20
|
+
* - Query execution with results displayed in a data table
|
|
21
|
+
* - Table browser showing available tables in the schema
|
|
22
|
+
* - Export results to CSV
|
|
23
|
+
* - Create new tables from query results
|
|
24
|
+
* - Optional SQL documentation panel
|
|
25
|
+
* - Keyboard shortcuts (Cmd/Ctrl + Enter to run queries)
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
15
28
|
const SqlEditor = (props) => {
|
|
16
29
|
const { schema = 'main', documentationPanel, onAddOrUpdateSqlQuery, sqlEditorConfig, onChange, } = props;
|
|
17
30
|
const duckConn = useDuckDb();
|
package/dist/SqlEditorModal.d.ts
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { SqlEditorProps } from './SqlEditor';
|
|
3
|
+
/**
|
|
4
|
+
* A modal wrapper for the SQL Editor component that provides a full-screen dialog interface.
|
|
5
|
+
*
|
|
6
|
+
* This component wraps the main SqlEditor component in a modal dialog, making it suitable for
|
|
7
|
+
* overlay/popup usage scenarios. It inherits all props from SqlEditorProps and handles the
|
|
8
|
+
* modal-specific behavior.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <SqlEditorModal
|
|
13
|
+
* isOpen={true}
|
|
14
|
+
* onClose={() => setIsOpen(false)}
|
|
15
|
+
* sqlEditorConfig={config}
|
|
16
|
+
* onChange={handleConfigChange}
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link SqlEditor} for detailed documentation of all available props
|
|
21
|
+
*
|
|
22
|
+
* @props {@link SqlEditorProps}
|
|
23
|
+
* The component accepts all props from SqlEditorProps:
|
|
24
|
+
* - `isOpen` - Whether the SQL editor modal is currently visible
|
|
25
|
+
* - `onClose` - Callback fired when the modal should be closed
|
|
26
|
+
* - `sqlEditorConfig` - Configuration object containing queries and selected query state
|
|
27
|
+
* - `onChange` - Callback fired when the SQL editor configuration changes
|
|
28
|
+
* - `schema` - Optional database schema to use for queries (defaults to 'main')
|
|
29
|
+
* - `documentationPanel` - Optional component to render SQL documentation in the side panel
|
|
30
|
+
* - `onAddOrUpdateSqlQuery` - Callback fired when a new table should be created from query results
|
|
31
|
+
*/
|
|
32
|
+
declare const SqlEditorModal: React.FC<SqlEditorProps>;
|
|
4
33
|
export default SqlEditorModal;
|
|
5
34
|
//# sourceMappingURL=SqlEditorModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SqlEditorModal.d.ts","sourceRoot":"","sources":["../src/SqlEditorModal.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAkB,EAAC,
|
|
1
|
+
{"version":3,"file":"SqlEditorModal.d.ts","sourceRoot":"","sources":["../src/SqlEditorModal.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAiB,MAAM,OAAO,CAAC;AACtC,OAAkB,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAe5C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/SqlEditorModal.js
CHANGED
|
@@ -4,6 +4,35 @@ import { SpinnerPane } from '@sqlrooms/ui';
|
|
|
4
4
|
import { Dialog, DialogContent, DialogHeader, DialogOverlay, DialogTitle, } from '@sqlrooms/ui';
|
|
5
5
|
import { Suspense } from 'react';
|
|
6
6
|
import SqlEditor from './SqlEditor';
|
|
7
|
+
/**
|
|
8
|
+
* A modal wrapper for the SQL Editor component that provides a full-screen dialog interface.
|
|
9
|
+
*
|
|
10
|
+
* This component wraps the main SqlEditor component in a modal dialog, making it suitable for
|
|
11
|
+
* overlay/popup usage scenarios. It inherits all props from SqlEditorProps and handles the
|
|
12
|
+
* modal-specific behavior.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <SqlEditorModal
|
|
17
|
+
* isOpen={true}
|
|
18
|
+
* onClose={() => setIsOpen(false)}
|
|
19
|
+
* sqlEditorConfig={config}
|
|
20
|
+
* onChange={handleConfigChange}
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @see {@link SqlEditor} for detailed documentation of all available props
|
|
25
|
+
*
|
|
26
|
+
* @props {@link SqlEditorProps}
|
|
27
|
+
* The component accepts all props from SqlEditorProps:
|
|
28
|
+
* - `isOpen` - Whether the SQL editor modal is currently visible
|
|
29
|
+
* - `onClose` - Callback fired when the modal should be closed
|
|
30
|
+
* - `sqlEditorConfig` - Configuration object containing queries and selected query state
|
|
31
|
+
* - `onChange` - Callback fired when the SQL editor configuration changes
|
|
32
|
+
* - `schema` - Optional database schema to use for queries (defaults to 'main')
|
|
33
|
+
* - `documentationPanel` - Optional component to render SQL documentation in the side panel
|
|
34
|
+
* - `onAddOrUpdateSqlQuery` - Callback fired when a new table should be created from query results
|
|
35
|
+
*/
|
|
7
36
|
const SqlEditorModal = (props) => {
|
|
8
37
|
const { isOpen, onClose } = props;
|
|
9
38
|
return (_jsxs(Dialog, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: [_jsx(DialogOverlay, { className: "bg-background/80" }), _jsxs(DialogContent, { className: "max-w-[100vw] max-h-[100vh] w-[100vw] h-[100vh] p-3", children: [_jsx(DialogHeader, { className: "sr-only", children: _jsx(DialogTitle, { children: "SQL Editor" }) }), _jsx(Suspense, { fallback: _jsx(SpinnerPane, { h: "100%" }), children: _jsx(SqlEditor, { ...props }) })] })] }));
|
package/dist/TablesList.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
type
|
|
2
|
+
type OnSelectCallback = (name: string) => void;
|
|
3
|
+
declare const TablesList: FC<{
|
|
3
4
|
schema: string;
|
|
4
5
|
tableNames: string[];
|
|
5
6
|
selectedTable?: string;
|
|
6
|
-
onSelect:
|
|
7
|
+
onSelect: OnSelectCallback;
|
|
7
8
|
onChange?: () => void;
|
|
8
|
-
renderTableButton?: (tableName: string, onSelect:
|
|
9
|
-
}
|
|
10
|
-
declare const TablesList: FC<Props>;
|
|
9
|
+
renderTableButton?: (tableName: string, onSelect: OnSelectCallback) => React.ReactNode;
|
|
10
|
+
}>;
|
|
11
11
|
export { TablesList };
|
|
12
12
|
//# sourceMappingURL=TablesList.d.ts.map
|
package/dist/TablesList.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TablesList.d.ts","sourceRoot":"","sources":["../src/TablesList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAE9B,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"TablesList.d.ts","sourceRoot":"","sources":["../src/TablesList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAE9B,KAAK,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAE/C,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAClB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,gBAAgB,KACvB,KAAK,CAAC,SAAS,CAAC;CACtB,CA+BA,CAAC;AAEF,OAAO,EAAC,UAAU,EAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as CreateTableModal } from './CreateTableModal';
|
|
2
2
|
export { default as SqlEditor } from './SqlEditor';
|
|
3
|
-
export type { Props } from './SqlEditor';
|
|
3
|
+
export type { SqlEditorProps as Props } from './SqlEditor';
|
|
4
4
|
export { default as SqlEditorModal } from './SqlEditorModal';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC;AACjD,YAAY,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC;AACjD,YAAY,EAAC,cAAc,IAAI,KAAK,EAAC,MAAM,aAAa,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlrooms/sql-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": false,
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
5
8
|
"publishConfig": {
|
|
6
9
|
"access": "public"
|
|
7
10
|
},
|
|
8
11
|
"main": "dist/index.js",
|
|
9
|
-
"types": "
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
10
13
|
"module": "dist/index.js",
|
|
11
14
|
"type": "module",
|
|
12
15
|
"scripts": {
|
|
13
16
|
"dev": "tsc -w",
|
|
14
17
|
"build": "tsc",
|
|
15
|
-
"lint": "eslint ."
|
|
18
|
+
"lint": "eslint .",
|
|
19
|
+
"typedoc": "typedoc"
|
|
16
20
|
},
|
|
17
21
|
"dependencies": {
|
|
18
22
|
"@hookform/resolvers": "^3.10.0",
|
|
19
|
-
"@sqlrooms/data-table": "0.0.
|
|
20
|
-
"@sqlrooms/duckdb": "0.0.
|
|
21
|
-
"@sqlrooms/layout": "0.0.
|
|
22
|
-
"@sqlrooms/project-config": "0.0.
|
|
23
|
-
"@sqlrooms/ui": "0.0.
|
|
24
|
-
"@sqlrooms/utils": "0.0.
|
|
23
|
+
"@sqlrooms/data-table": "0.0.2",
|
|
24
|
+
"@sqlrooms/duckdb": "0.0.2",
|
|
25
|
+
"@sqlrooms/layout": "0.0.2",
|
|
26
|
+
"@sqlrooms/project-config": "0.0.2",
|
|
27
|
+
"@sqlrooms/ui": "0.0.2",
|
|
28
|
+
"@sqlrooms/utils": "0.0.2",
|
|
25
29
|
"apache-arrow": "^18.1.0",
|
|
26
30
|
"d3-dsv": "^3.0.1",
|
|
27
31
|
"file-saver": "^2.0.5",
|
|
@@ -37,5 +41,5 @@
|
|
|
37
41
|
"@types/react": "^18.2.48",
|
|
38
42
|
"@types/react-dom": "^18.2.18"
|
|
39
43
|
},
|
|
40
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "32da0b35fe906bdcef42274624d069cc49425a74"
|
|
41
45
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## 0.0.1-alpha.0 (2025-01-30)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @sqlrooms/sql-editor
|
|
9
|
-
|
|
10
|
-
**Note:** Version bump only for package @sqlrooms/sql-editor
|