@malloydata/malloy-explorer 0.0.294-dev250630221944 → 0.0.295-dev250710213205
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/.gitmodules +3 -0
- package/@flowtypes/components/MalloyExplorerProvider.flow.js +2 -5
- package/README.md +7 -0
- package/dist/cjs/index.cjs +111 -77
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +112 -78
- package/dist/esm/index.js.map +1 -1
- package/dist/malloy-explorer.css +2 -0
- package/dist/types/components/MalloyExplorerProvider.d.ts +2 -4
- package/dist/types/components/QueryPanel/AddMenu/ValueList.d.ts +2 -1
- package/dist/types/components/ResultPanel/ResultDisplay.d.ts +0 -4
- package/dist/types/contexts/QueryEditorContext.d.ts +2 -4
- package/package.json +8 -6
- package/vite.config.mts +5 -0
package/dist/malloy-explorer.css
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
.mlym9y5t7{--mlynfhokh:block}
|
|
36
36
|
.mly28fmrt{--mlynfhokh:none}
|
|
37
37
|
.mly1bo1i26{--mlyri8z08:0}
|
|
38
|
+
.mly1ae5hkt{--mlyvpnzvp:block}
|
|
38
39
|
.mly11ogjb6{--mlyvpnzvp:none}
|
|
39
40
|
.mlyf8wvcd{--mlyvygx4q:var(--mly1css67u)}
|
|
40
41
|
.mlyrtwgpv{--mlyvygx4q:var(--mly1fea1fg)}
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
.mly1u5txqc:hover{--mly1by112x:.3}
|
|
54
55
|
.mly1x0xcia:hover{--mlynfhokh:block}
|
|
55
56
|
.mly1fzkygm:hover{--mlyri8z08:.3}
|
|
57
|
+
.mly1g9of4s:hover{--mlyvpnzvp:block}
|
|
56
58
|
.mly157rht3:hover{--mlyvpnzvp:inline-flex}
|
|
57
59
|
}
|
|
58
60
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
3
|
+
import type { DrillData } from '@malloydata/render';
|
|
3
4
|
import { SearchValueMapResult } from '../contexts/QueryEditorContext';
|
|
4
5
|
export interface MalloyExplorerProviderProps {
|
|
5
6
|
source: Malloy.SourceInfo;
|
|
@@ -9,9 +10,6 @@ export interface MalloyExplorerProviderProps {
|
|
|
9
10
|
onFocusedNestViewPathChange: (path: string[]) => void;
|
|
10
11
|
children: ReactNode | ReactNode[];
|
|
11
12
|
topValues?: SearchValueMapResult[];
|
|
12
|
-
onDrill?: ({ stableQuery, stableDrillClauses
|
|
13
|
-
stableQuery: Malloy.Query | undefined;
|
|
14
|
-
stableDrillClauses: Malloy.DrillOperation[] | undefined;
|
|
15
|
-
}) => void;
|
|
13
|
+
onDrill?: ({ stableQuery, stableDrillClauses }: DrillData) => void;
|
|
16
14
|
}
|
|
17
15
|
export declare function MalloyExplorerProvider({ source, query, onQueryChange, focusedNestViewPath, onFocusedNestViewPathChange, children, topValues, onDrill, }: MalloyExplorerProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,8 +9,9 @@ export interface FieldListProps {
|
|
|
9
9
|
ref?: React.RefObject<HTMLDivElement | null>;
|
|
10
10
|
customStyle?: StyleXStyles;
|
|
11
11
|
showPath?: boolean;
|
|
12
|
+
hideNoMatchMessage?: boolean;
|
|
12
13
|
}
|
|
13
|
-
export declare function ValueList({ onClick, search, filter, fieldPath, ref, customStyle, showPath, }: FieldListProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function ValueList({ onClick, search, filter, fieldPath, ref, customStyle, showPath, hideNoMatchMessage, }: FieldListProps): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export interface ValueProps {
|
|
15
16
|
value: SearchIndexResult;
|
|
16
17
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
2
2
|
import { SubmittedQuery } from './SubmittedQuery';
|
|
3
|
-
export interface DrillData {
|
|
4
|
-
stableQuery: Malloy.Query | undefined;
|
|
5
|
-
stableDrillClauses: Malloy.DrillOperation[] | undefined;
|
|
6
|
-
}
|
|
7
3
|
export interface ResultDisplayProps {
|
|
8
4
|
source: Malloy.SourceInfo;
|
|
9
5
|
query: SubmittedQuery;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as Malloy from '@malloydata/malloy-interfaces';
|
|
3
3
|
import { ASTQuery } from '@malloydata/malloy-query-builder';
|
|
4
|
+
import type { DrillData } from '@malloydata/render';
|
|
4
5
|
export interface SearchValueMapResult {
|
|
5
6
|
fieldName: string;
|
|
6
7
|
cardinality: number;
|
|
@@ -17,10 +18,7 @@ export interface QueryEditorContextProps {
|
|
|
17
18
|
/** Provide to allow editing of the query */
|
|
18
19
|
setQuery?: (query: Malloy.Query | undefined) => void;
|
|
19
20
|
topValues?: SearchValueMapResult[];
|
|
20
|
-
onDrill?: ({ stableQuery, stableDrillClauses
|
|
21
|
-
stableQuery: Malloy.Query | undefined;
|
|
22
|
-
stableDrillClauses: Malloy.DrillOperation[] | undefined;
|
|
23
|
-
}) => void;
|
|
21
|
+
onDrill?: ({ stableQuery, stableDrillClauses }: DrillData) => void;
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* QueryEditorContext enables query editing by providing the setQuery
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/malloy-explorer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.295-dev250710213205",
|
|
4
4
|
"description": "Malloy visual query builder",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -82,6 +82,8 @@
|
|
|
82
82
|
"@babel/preset-typescript": "^7.27.1",
|
|
83
83
|
"@eslint/compat": "^1.2.7",
|
|
84
84
|
"@eslint/js": "^9.21.0",
|
|
85
|
+
"@malloydata/db-duckdb": "^0.0.295",
|
|
86
|
+
"@malloydata/malloy": "^0.0.295",
|
|
85
87
|
"@rollup/plugin-replace": "^6.0.2",
|
|
86
88
|
"@stylexjs/eslint-plugin": "^0.11.1",
|
|
87
89
|
"@stylexjs/postcss-plugin": "^0.11.1",
|
|
@@ -113,11 +115,11 @@
|
|
|
113
115
|
"vite-plugin-svgr": "^4.3.0"
|
|
114
116
|
},
|
|
115
117
|
"peerDependencies": {
|
|
116
|
-
"@malloydata/malloy-filter": ">=0.0.
|
|
117
|
-
"@malloydata/malloy-interfaces": ">=0.0.
|
|
118
|
-
"@malloydata/malloy-query-builder": ">=0.0.
|
|
119
|
-
"@malloydata/malloy-tag": ">=0.0.
|
|
120
|
-
"@malloydata/render": ">=0.0.
|
|
118
|
+
"@malloydata/malloy-filter": ">=0.0.295",
|
|
119
|
+
"@malloydata/malloy-interfaces": ">=0.0.295",
|
|
120
|
+
"@malloydata/malloy-query-builder": ">=0.0.295",
|
|
121
|
+
"@malloydata/malloy-tag": ">=0.0.295",
|
|
122
|
+
"@malloydata/render": ">=0.0.295",
|
|
121
123
|
"react": ">=19.0.0",
|
|
122
124
|
"react-dom": ">=19.0.0"
|
|
123
125
|
}
|
package/vite.config.mts
CHANGED
|
@@ -33,6 +33,8 @@ export default defineConfig({
|
|
|
33
33
|
'react',
|
|
34
34
|
'react-dom',
|
|
35
35
|
'react/jsx-runtime',
|
|
36
|
+
'@malloydata/db-duckdb/wasm',
|
|
37
|
+
'@malloydata/malloy',
|
|
36
38
|
'@malloydata/malloy-tag',
|
|
37
39
|
'@malloydata/malloy-filter',
|
|
38
40
|
'@malloydata/malloy-interfaces',
|
|
@@ -54,11 +56,14 @@ export default defineConfig({
|
|
|
54
56
|
optimizeDeps: {
|
|
55
57
|
force: true,
|
|
56
58
|
include: [
|
|
59
|
+
'@malloydata/db-duckdb/wasm',
|
|
57
60
|
'@malloydata/render',
|
|
61
|
+
'@malloydata/malloy',
|
|
58
62
|
'@malloydata/malloy-tag',
|
|
59
63
|
'@malloydata/malloy-filter',
|
|
60
64
|
'@malloydata/malloy-interfaces',
|
|
61
65
|
'@malloydata/malloy-query-builder',
|
|
62
66
|
],
|
|
67
|
+
exclude: ['@mapbox/node-pre-gyp'],
|
|
63
68
|
},
|
|
64
69
|
});
|