@sqlrooms/vega 0.29.0-rc.0 → 0.29.0-rc.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/VegaChartActions.js +1 -1
- package/dist/VegaChartActions.js.map +1 -1
- package/dist/VegaChartTool.d.ts +47 -26
- package/dist/VegaChartTool.d.ts.map +1 -1
- package/dist/VegaChartTool.js +61 -35
- package/dist/VegaChartTool.js.map +1 -1
- package/dist/VegaChartToolResult.d.ts +8 -20
- package/dist/VegaChartToolResult.d.ts.map +1 -1
- package/dist/VegaChartToolResult.js +8 -34
- package/dist/VegaChartToolResult.js.map +1 -1
- package/dist/VegaEditAction.d.ts +4 -9
- package/dist/VegaEditAction.d.ts.map +1 -1
- package/dist/VegaEditAction.js +9 -12
- package/dist/VegaEditAction.js.map +1 -1
- package/dist/VegaLiteArrowChart.d.ts.map +1 -1
- package/dist/VegaLiteArrowChart.js +1 -0
- package/dist/VegaLiteArrowChart.js.map +1 -1
- package/dist/VegaLiteChart.d.ts +44 -0
- package/dist/VegaLiteChart.d.ts.map +1 -0
- package/dist/VegaLiteChart.js +134 -0
- package/dist/VegaLiteChart.js.map +1 -0
- package/dist/VegaLiteSqlChart.js +1 -1
- package/dist/VegaLiteSqlChart.js.map +1 -1
- package/dist/editor/VegaCodeMirrorEditor.d.ts +15 -0
- package/dist/editor/VegaCodeMirrorEditor.d.ts.map +1 -0
- package/dist/editor/VegaCodeMirrorEditor.js +23 -0
- package/dist/editor/VegaCodeMirrorEditor.js.map +1 -0
- package/dist/editor/VegaMonacoEditor.d.ts +5 -0
- package/dist/editor/VegaMonacoEditor.d.ts.map +1 -1
- package/dist/editor/VegaMonacoEditor.js +2 -0
- package/dist/editor/VegaMonacoEditor.js.map +1 -1
- package/dist/editor/VegaSpecEditorPanel.d.ts.map +1 -1
- package/dist/editor/VegaSpecEditorPanel.js +11 -7
- package/dist/editor/VegaSpecEditorPanel.js.map +1 -1
- package/dist/editor/VegaSqlEditorPanel.d.ts +1 -1
- package/dist/editor/VegaSqlEditorPanel.d.ts.map +1 -1
- package/dist/editor/VegaSqlEditorPanel.js +9 -10
- package/dist/editor/VegaSqlEditorPanel.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -10
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export { VegaChartToolResult as VegaChartToolResult } from './VegaChartToolResult';
|
|
6
6
|
export type { VisualizationSpec } from 'vega-embed';
|
|
7
|
-
export {
|
|
8
|
-
export
|
|
7
|
+
export type { SignalListenerHandler, SignalValue } from 'vega';
|
|
8
|
+
export { createVegaChartTool, createSqlValidator, VegaChartToolParameters, DEFAULT_VEGA_CHART_DESCRIPTION, } from './VegaChartTool';
|
|
9
|
+
export type { VegaChartToolOptions, VegaChartToolOutput } from './VegaChartTool';
|
|
9
10
|
/**
|
|
10
11
|
* Composable Vega-Lite chart component with editing capabilities.
|
|
11
12
|
*
|
|
@@ -45,7 +46,9 @@ export declare const VegaLiteChart: import("react").FC<Omit<import("./VegaLiteAr
|
|
|
45
46
|
SqlEditor: import("react").FC<import("./editor/VegaSqlEditorPanel").VegaSqlEditorPanelProps>;
|
|
46
47
|
Actions: import("react").FC<import("./editor/VegaChartEditorActions").VegaChartEditorActionsProps>;
|
|
47
48
|
};
|
|
49
|
+
/** @deprecated Use VegaCodeMirrorEditor instead */
|
|
48
50
|
export { VegaMonacoEditor } from './editor/VegaMonacoEditor';
|
|
51
|
+
export { VegaCodeMirrorEditor } from './editor/VegaCodeMirrorEditor';
|
|
49
52
|
export { useVegaChartEditor } from './editor/useVegaChartEditor';
|
|
50
53
|
export { useVegaEditorContext } from './editor/VegaEditorContext';
|
|
51
54
|
export type { EditorMode, OnSpecChange, OnSqlChange, UseVegaChartEditorOptions, UseVegaChartEditorReturn, VegaEditorActions, VegaEditorContextValue, VegaEditorState, } from './editor/types';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,EAAC,mBAAmB,IAAI,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AACjF,YAAY,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,YAAY,EAAC,qBAAqB,EAAE,WAAW,EAAC,MAAM,MAAM,CAAC;AAE7D,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAC,oBAAoB,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAUxB,CAAC;AAGH,mDAAmD;AACnD,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAC,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAC,oBAAoB,EAAC,MAAM,4BAA4B,CAAC;AAGhE,YAAY,EACV,UAAU,EACV,YAAY,EACZ,WAAW,EACX,yBAAyB,EACzB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAG9D,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,YAAY,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,YAAY,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,YAAY,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { VegaSpecEditorPanel } from './editor/VegaSpecEditorPanel';
|
|
|
10
10
|
import { VegaSqlEditorPanel } from './editor/VegaSqlEditorPanel';
|
|
11
11
|
import { VegaChartEditorActions } from './editor/VegaChartEditorActions';
|
|
12
12
|
export { VegaChartToolResult as VegaChartToolResult } from './VegaChartToolResult';
|
|
13
|
-
export { createVegaChartTool, VegaChartToolParameters, DEFAULT_VEGA_CHART_DESCRIPTION, } from './VegaChartTool';
|
|
13
|
+
export { createVegaChartTool, createSqlValidator, VegaChartToolParameters, DEFAULT_VEGA_CHART_DESCRIPTION, } from './VegaChartTool';
|
|
14
14
|
/**
|
|
15
15
|
* Composable Vega-Lite chart component with editing capabilities.
|
|
16
16
|
*
|
|
@@ -45,7 +45,9 @@ export const VegaLiteChart = Object.assign(VegaLiteSqlChart, {
|
|
|
45
45
|
Actions: VegaChartEditorActions,
|
|
46
46
|
});
|
|
47
47
|
// Export editor components and hooks for advanced use
|
|
48
|
+
/** @deprecated Use VegaCodeMirrorEditor instead */
|
|
48
49
|
export { VegaMonacoEditor } from './editor/VegaMonacoEditor';
|
|
50
|
+
export { VegaCodeMirrorEditor } from './editor/VegaCodeMirrorEditor';
|
|
49
51
|
export { useVegaChartEditor } from './editor/useVegaChartEditor';
|
|
50
52
|
export { useVegaEditorContext } from './editor/VegaEditorContext';
|
|
51
53
|
// Export schema utilities
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAC,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAC,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAC,mBAAmB,IAAI,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAIjF,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,iBAAiB,CAAC;AAIzB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE;IAC3D,0BAA0B;IAC1B,QAAQ,EAAE,gBAAgB;IAC1B,UAAU,EAAE,kBAAkB;IAC9B,6BAA6B;IAC7B,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,gBAAgB;IACvB,UAAU,EAAE,mBAAmB;IAC/B,SAAS,EAAE,kBAAkB;IAC7B,OAAO,EAAE,sBAAsB;CAChC,CAAC,CAAC;AAEH,sDAAsD;AACtD,mDAAmD;AACnD,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAC,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAC,oBAAoB,EAAC,MAAM,4BAA4B,CAAC;AAchE,0BAA0B;AAC1B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,mDAAmD;AACnD,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAGvD,2BAA2B;AAC3B,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC","sourcesContent":["/**\n * {@include ../README.md}\n * @packageDocumentation\n */\n\nimport {VegaLiteSqlChart} from './VegaLiteSqlChart';\nimport {VegaLiteArrowChart} from './VegaLiteArrowChart';\nimport {VegaChartContainer} from './editor/VegaChartContainer';\nimport {VegaChartDisplay} from './editor/VegaChartDisplay';\nimport {VegaSpecEditorPanel} from './editor/VegaSpecEditorPanel';\nimport {VegaSqlEditorPanel} from './editor/VegaSqlEditorPanel';\nimport {VegaChartEditorActions} from './editor/VegaChartEditorActions';\nexport {VegaChartToolResult as VegaChartToolResult} from './VegaChartToolResult';\nexport type {VisualizationSpec} from 'vega-embed';\nexport type {SignalListenerHandler, SignalValue} from 'vega';\n\nexport {\n createVegaChartTool,\n createSqlValidator,\n VegaChartToolParameters,\n DEFAULT_VEGA_CHART_DESCRIPTION,\n} from './VegaChartTool';\n\nexport type {VegaChartToolOptions, VegaChartToolOutput} from './VegaChartTool';\n\n/**\n * Composable Vega-Lite chart component with editing capabilities.\n *\n * @example\n * ```tsx\n * // Compound component pattern\n * <VegaLiteChart.Container\n * spec={mySpec}\n * sqlQuery={myQuery}\n * editable={true}\n * onSpecChange={(spec) => saveSpec(spec)}\n * >\n * <VegaLiteChart.Chart />\n * <VegaLiteChart.SpecEditor />\n * <VegaLiteChart.SqlEditor />\n * <VegaLiteChart.Actions />\n * </VegaLiteChart.Container>\n *\n * // Simple usage (legacy)\n * <VegaLiteChart spec={mySpec} sqlQuery={myQuery} />\n * ```\n */\nexport const VegaLiteChart = Object.assign(VegaLiteSqlChart, {\n // Legacy chart components\n SqlChart: VegaLiteSqlChart,\n ArrowChart: VegaLiteArrowChart,\n // Compound editor components\n Container: VegaChartContainer,\n Chart: VegaChartDisplay,\n SpecEditor: VegaSpecEditorPanel,\n SqlEditor: VegaSqlEditorPanel,\n Actions: VegaChartEditorActions,\n});\n\n// Export editor components and hooks for advanced use\n/** @deprecated Use VegaCodeMirrorEditor instead */\nexport {VegaMonacoEditor} from './editor/VegaMonacoEditor';\nexport {VegaCodeMirrorEditor} from './editor/VegaCodeMirrorEditor';\nexport {useVegaChartEditor} from './editor/useVegaChartEditor';\nexport {useVegaEditorContext} from './editor/VegaEditorContext';\n\n// Export editor types\nexport type {\n EditorMode,\n OnSpecChange,\n OnSqlChange,\n UseVegaChartEditorOptions,\n UseVegaChartEditorReturn,\n VegaEditorActions,\n VegaEditorContextValue,\n VegaEditorState,\n} from './editor/types';\n\n// Export schema utilities\nexport {\n loadVegaLiteSchema,\n getCachedVegaLiteSchema,\n preloadVegaLiteSchema,\n} from './schema/vegaLiteSchema';\n\n// Export chart context and hook for custom actions\nexport {useVegaChartContext} from './VegaChartContext';\nexport type {VegaChartContextValue} from './VegaChartContext';\n\n// Export action components\nexport {VegaExportAction} from './VegaExportAction';\nexport type {VegaExportActionProps} from './VegaExportAction';\nexport {VegaEditAction} from './VegaEditAction';\nexport type {VegaEditActionProps} from './VegaEditAction';\nexport {VegaChartActions} from './VegaChartActions';\nexport type {VegaChartActionsProps} from './VegaChartActions';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlrooms/vega",
|
|
3
|
-
"version": "0.29.0-rc.
|
|
3
|
+
"version": "0.29.0-rc.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/sqlrooms/sqlrooms.git"
|
|
13
|
+
"url": "git+https://github.com/sqlrooms/sqlrooms.git"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
@@ -19,13 +19,14 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@
|
|
23
|
-
"@sqlrooms/
|
|
24
|
-
"@sqlrooms/duckdb": "0.29.0-rc.
|
|
25
|
-
"@sqlrooms/monaco-editor": "0.29.0-rc.
|
|
26
|
-
"@sqlrooms/sql-editor": "0.29.0-rc.
|
|
27
|
-
"@sqlrooms/ui": "0.29.0-rc.
|
|
28
|
-
"@sqlrooms/utils": "0.29.0-rc.
|
|
22
|
+
"@sqlrooms/ai": "0.29.0-rc.2",
|
|
23
|
+
"@sqlrooms/codemirror": "0.29.0-rc.2",
|
|
24
|
+
"@sqlrooms/duckdb": "0.29.0-rc.2",
|
|
25
|
+
"@sqlrooms/monaco-editor": "0.29.0-rc.2",
|
|
26
|
+
"@sqlrooms/sql-editor": "0.29.0-rc.2",
|
|
27
|
+
"@sqlrooms/ui": "0.29.0-rc.2",
|
|
28
|
+
"@sqlrooms/utils": "0.29.0-rc.2",
|
|
29
|
+
"ai": "^6.0.154",
|
|
29
30
|
"lucide-react": "^0.556.0",
|
|
30
31
|
"react-vega": "^8.0.0",
|
|
31
32
|
"vega": "^6.2.0",
|
|
@@ -48,5 +49,5 @@
|
|
|
48
49
|
"typecheck": "tsc --noEmit",
|
|
49
50
|
"typedoc": "typedoc"
|
|
50
51
|
},
|
|
51
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "5d511631992c1af8852ea79ced488867aad4a555"
|
|
52
53
|
}
|