@sqlrooms/sql-editor 0.0.1 → 0.0.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,12 +1,12 @@
1
1
  import { SqlQueryDataSource } from '@sqlrooms/project-config';
2
2
  import { FC } from 'react';
3
- export type Props = {
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<Props>;
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,EACL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAC,EAAE,EAAc,MAAM,OAAO,CAAC;AAgBtC,MAAM,MAAM,KAAK,GAAG;IAClB,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,KAAK,CA0G/B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
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"}
@@ -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
- interface Props {
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,UAAU,KAAK;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsBxC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
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
- interface Props {
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,UAAU,KAAK;IACb,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;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwDxC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
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: {
@@ -1,15 +1,35 @@
1
1
  import { SqlEditorConfig } from '@sqlrooms/project-config';
2
2
  import React from 'react';
3
- import { Props as CreateTableModalProps } from './CreateTableModal';
4
- export type Props = {
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
- declare const SqlEditor: React.FC<Props>;
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
@@ -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,EACvB,KAAK,IAAI,qBAAqB,EAC/B,MAAM,oBAAoB,CAAC;AAO5B,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,eAAe,EAAE,eAAe,CAAC;IACjC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qBAAqB,EAAE,qBAAqB,CAAC,uBAAuB,CAAC,CAAC;CACvE,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAib9B,CAAC;AAEF,eAAe,SAAS,CAAC"}
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();
@@ -1,5 +1,34 @@
1
1
  import React from 'react';
2
- import { Props } from './SqlEditor';
3
- declare const SqlEditorModal: React.FC<Props>;
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,KAAK,EAAC,MAAM,aAAa,CAAC;AAE7C,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAenC,CAAC;AAEF,eAAe,cAAc,CAAC"}
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"}
@@ -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 }) })] })] }));
@@ -1,12 +1,12 @@
1
1
  import type { FC } from 'react';
2
- type Props = {
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: (name: string) => void;
7
+ onSelect: OnSelectCallback;
7
8
  onChange?: () => void;
8
- renderTableButton?: (tableName: string, onSelect: Props['onSelect']) => React.ReactNode;
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
@@ -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,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAClB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,KACxB,KAAK,CAAC,SAAS,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,KAAK,CA+BzB,CAAC;AAEF,OAAO,EAAC,UAAU,EAAC,CAAC"}
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
@@ -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;AACvC,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,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,7 +1,16 @@
1
1
  {
2
2
  "name": "@sqlrooms/sql-editor",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
+ "author": "Ilya Boyandin <ilya@boyandin.me>",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/sqlrooms/sqlrooms.git"
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
5
14
  "publishConfig": {
6
15
  "access": "public"
7
16
  },
@@ -12,16 +21,17 @@
12
21
  "scripts": {
13
22
  "dev": "tsc -w",
14
23
  "build": "tsc",
15
- "lint": "eslint ."
24
+ "lint": "eslint .",
25
+ "typedoc": "typedoc"
16
26
  },
17
27
  "dependencies": {
18
28
  "@hookform/resolvers": "^3.10.0",
19
- "@sqlrooms/data-table": "0.0.1",
20
- "@sqlrooms/duckdb": "0.0.1",
21
- "@sqlrooms/layout": "0.0.1",
22
- "@sqlrooms/project-config": "0.0.1",
23
- "@sqlrooms/ui": "0.0.1",
24
- "@sqlrooms/utils": "0.0.1",
29
+ "@sqlrooms/data-table": "0.0.3",
30
+ "@sqlrooms/duckdb": "0.0.3",
31
+ "@sqlrooms/layout": "0.0.3",
32
+ "@sqlrooms/project-config": "0.0.3",
33
+ "@sqlrooms/ui": "0.0.3",
34
+ "@sqlrooms/utils": "0.0.3",
25
35
  "apache-arrow": "^18.1.0",
26
36
  "d3-dsv": "^3.0.1",
27
37
  "file-saver": "^2.0.5",
@@ -37,5 +47,5 @@
37
47
  "@types/react": "^18.2.48",
38
48
  "@types/react-dom": "^18.2.18"
39
49
  },
40
- "gitHead": "5d8893a604a91d109dc5b5f80b4a3e937b4cf520"
50
+ "gitHead": "4269a3efdb5a903cb2498c126e9c36683b3bbae0"
41
51
  }
package/CHANGELOG.md DELETED
@@ -1,14 +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](https://github.com/ilyabo/sqlrooms/compare/v0.0.1-alpha.0...v0.0.1) (2025-01-30)
7
-
8
- **Note:** Version bump only for package @sqlrooms/sql-editor
9
-
10
- ## 0.0.1-alpha.0 (2025-01-30)
11
-
12
- **Note:** Version bump only for package @sqlrooms/sql-editor
13
-
14
- **Note:** Version bump only for package @sqlrooms/sql-editor