@malloydata/malloy-explorer 0.0.299-dev250804170242 → 0.0.304-dev250814203415
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/@flowtypes/components/CodeEditor/CodeEditor.flow.js +9 -0
- package/@flowtypes/components/CodeEditor/CodeEditorContext.flow.js +15 -0
- package/@flowtypes/components/CodeEditor/index.flow.js +4 -0
- package/@flowtypes/components/MalloyExplorerProvider.flow.js +3 -3
- package/@flowtypes/components/QueryPanel/QueryPanel.flow.js +1 -0
- package/@flowtypes/components/ResultPanel/ResultPanel.flow.js +2 -2
- package/@flowtypes/components/ResultPanel/SubmittedQuery.flow.js +1 -1
- package/@flowtypes/components/SourcePanel/SourcePanel.flow.js +1 -1
- package/@flowtypes/index.flow.js +2 -0
- package/dist/cjs/index.cjs +22430 -2718
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +22427 -2720
- package/dist/esm/index.js.map +1 -1
- package/dist/malloy-explorer.css +8 -2
- package/dist/types/components/CodeEditor/CodeEditor.d.ts +7 -0
- package/dist/types/components/CodeEditor/CodeEditorContext.d.ts +14 -0
- package/dist/types/components/CodeEditor/index.d.ts +4 -0
- package/dist/types/components/CodeEditor/lsp/code_actions.d.ts +2 -0
- package/dist/types/components/CodeEditor/lsp/completion_docs.d.ts +5 -0
- package/dist/types/components/CodeEditor/lsp/completions.d.ts +2 -0
- package/dist/types/components/CodeEditor/lsp/definitions.d.ts +2 -0
- package/dist/types/components/CodeEditor/lsp/diagnostics.d.ts +2 -0
- package/dist/types/components/CodeEditor/lsp/hover.d.ts +2 -0
- package/dist/types/components/CodeEditor/lsp/index.d.ts +7 -0
- package/dist/types/components/CodeEditor/lsp/stub_compile.d.ts +15 -0
- package/dist/types/components/CodeEditor/lsp/symbols.d.ts +2 -0
- package/dist/types/components/CodeEditor/lsp/utils.d.ts +9 -0
- package/dist/types/components/CodeEditor/monaco/index.d.ts +0 -0
- package/dist/types/components/CodeEditor/monaco/monaco.d.ts +2 -0
- package/dist/types/components/CodeEditor/monaco/monaco_shim.d.ts +3 -0
- package/dist/types/components/CodeEditor/monaco/monaco_worker.d.ts +1 -0
- package/dist/types/components/MalloyExplorerProvider.d.ts +10 -3
- package/dist/types/components/QueryPanel/QueryActionBar.d.ts +2 -1
- package/dist/types/components/QueryPanel/QueryPanel.d.ts +2 -1
- package/dist/types/components/ResultPanel/DownloadButton.d.ts +6 -0
- package/dist/types/components/ResultPanel/ResultPanel.d.ts +2 -2
- package/dist/types/components/ResultPanel/SubmittedQuery.d.ts +1 -1
- package/dist/types/components/SourcePanel/FieldGroupList.d.ts +4 -2
- package/dist/types/components/SourcePanel/FieldTokenWithCopy.d.ts +7 -0
- package/dist/types/components/SourcePanel/SearchResultList.d.ts +4 -2
- package/dist/types/components/SourcePanel/SourcePanel.d.ts +1 -1
- package/dist/types/components/primitives/syntax_highlighting/syntaxHighlighter.d.ts +2 -0
- package/dist/types/components/primitives/utils/icon.d.ts +12 -0
- package/dist/types/components/utils/download.d.ts +44 -0
- package/dist/types/components/utils/download.spec.d.ts +1 -0
- package/dist/types/contexts/QueryEditorContext.d.ts +5 -4
- package/dist/types/hooks/useQueryBuilder.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/{jest.config.ts → jest.config.cjs} +7 -1
- package/package.json +12 -9
- package/scripts/gen_flow.ts +3 -0
- package/.editorconfig +0 -8
- package/.github/workflows/prerelease.yaml +0 -28
- package/.github/workflows/test.yaml +0 -26
- package/.gitmodules +0 -3
- package/.node-version +0 -1
- package/.prettierrc.js +0 -8
- package/.vscode/extensions.json +0 -6
- package/babel.config.cjs +0 -49
- package/eslint.config.mjs +0 -150
- package/index.html +0 -19
- package/postcss.config.mjs +0 -20
- package/vite.config.mts +0 -69
package/babel.config.cjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
module.exports = {
|
|
11
|
-
presets: [
|
|
12
|
-
['@babel/preset-typescript'],
|
|
13
|
-
['@babel/preset-react', {runtime: 'automatic'}],
|
|
14
|
-
],
|
|
15
|
-
plugins: [
|
|
16
|
-
['@babel/plugin-syntax-typescript', {isTSX: true}],
|
|
17
|
-
[
|
|
18
|
-
'@stylexjs/babel-plugin',
|
|
19
|
-
{
|
|
20
|
-
dev: process.env.NODE_ENV === 'development',
|
|
21
|
-
runtimeInjection: false,
|
|
22
|
-
genConditionalClasses: true,
|
|
23
|
-
treeshakeCompensation: true,
|
|
24
|
-
unstable_moduleResolution: {
|
|
25
|
-
type: 'commonJS',
|
|
26
|
-
rootDir: __dirname,
|
|
27
|
-
},
|
|
28
|
-
classNamePrefix: process.env.NODE_ENV === 'development' ? 'x' : 'mly',
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
],
|
|
32
|
-
env: {
|
|
33
|
-
test: {
|
|
34
|
-
presets: ['@babel/preset-env'],
|
|
35
|
-
plugins: [
|
|
36
|
-
[
|
|
37
|
-
'@stylexjs/babel-plugin',
|
|
38
|
-
{
|
|
39
|
-
runtimeInjection: false,
|
|
40
|
-
unstable_moduleResolution: {
|
|
41
|
-
type: 'commonJS',
|
|
42
|
-
rootDir: __dirname,
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
};
|
package/eslint.config.mjs
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import {fixupConfigRules, fixupPluginRules} from '@eslint/compat';
|
|
2
|
-
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
3
|
-
import stylexEslint from '@stylexjs/eslint-plugin';
|
|
4
|
-
import jest from 'eslint-plugin-jest';
|
|
5
|
-
import prettier from 'eslint-plugin-prettier';
|
|
6
|
-
import react from 'eslint-plugin-react';
|
|
7
|
-
import reactHooks from 'eslint-plugin-react-hooks';
|
|
8
|
-
import tsParser from '@typescript-eslint/parser';
|
|
9
|
-
import globals, {fileURLToPath} from 'node:url';
|
|
10
|
-
import path from 'node:path';
|
|
11
|
-
import js from '@eslint/js';
|
|
12
|
-
import {FlatCompat} from '@eslint/eslintrc';
|
|
13
|
-
|
|
14
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
15
|
-
const __dirname = path.dirname(__filename);
|
|
16
|
-
const compat = new FlatCompat({
|
|
17
|
-
baseDirectory: __dirname,
|
|
18
|
-
recommendedConfig: js.configs.recommended,
|
|
19
|
-
allConfig: js.configs.all,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export default [
|
|
23
|
-
{
|
|
24
|
-
ignores: [
|
|
25
|
-
'**/*.d.ts',
|
|
26
|
-
'**/@flowtypes',
|
|
27
|
-
'**/flow',
|
|
28
|
-
'**/node_modules/',
|
|
29
|
-
'**/dist/',
|
|
30
|
-
'**/build/',
|
|
31
|
-
'**/malloy-samples/',
|
|
32
|
-
'babel.config.cjs',
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
...fixupConfigRules(
|
|
36
|
-
compat.extends(
|
|
37
|
-
'eslint:recommended',
|
|
38
|
-
'plugin:@typescript-eslint/eslint-recommended',
|
|
39
|
-
'plugin:@typescript-eslint/recommended',
|
|
40
|
-
'prettier',
|
|
41
|
-
'plugin:jest/recommended',
|
|
42
|
-
'plugin:prettier/recommended',
|
|
43
|
-
'plugin:react/recommended',
|
|
44
|
-
'plugin:react-hooks/recommended'
|
|
45
|
-
)
|
|
46
|
-
),
|
|
47
|
-
{
|
|
48
|
-
plugins: {
|
|
49
|
-
'@typescript-eslint': fixupPluginRules(typescriptEslint),
|
|
50
|
-
jest: fixupPluginRules(jest),
|
|
51
|
-
prettier: fixupPluginRules(prettier),
|
|
52
|
-
'@stylexjs': fixupPluginRules(stylexEslint),
|
|
53
|
-
react: fixupPluginRules(react),
|
|
54
|
-
'react-hooks': fixupPluginRules(reactHooks),
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
settings: {
|
|
58
|
-
react: {
|
|
59
|
-
version: 'detect',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
rules: {
|
|
64
|
-
'array-callback-return': 'error',
|
|
65
|
-
'consistent-return': 'error',
|
|
66
|
-
|
|
67
|
-
'no-console': [
|
|
68
|
-
'error',
|
|
69
|
-
{
|
|
70
|
-
allow: ['debug', 'info', 'warn', 'error'],
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
|
|
74
|
-
'prettier/prettier': 'error',
|
|
75
|
-
'sort-keys': 'off',
|
|
76
|
-
'no-duplicate-imports': 'error',
|
|
77
|
-
|
|
78
|
-
'no-restricted-imports': [
|
|
79
|
-
'error',
|
|
80
|
-
{
|
|
81
|
-
patterns: ['@malloydata/malloy/src/*'],
|
|
82
|
-
|
|
83
|
-
paths: [
|
|
84
|
-
{
|
|
85
|
-
name: 'lodash',
|
|
86
|
-
message: 'Import [module] from lodash/[module] instead',
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
|
|
92
|
-
'no-throw-literal': 'error',
|
|
93
|
-
|
|
94
|
-
'@typescript-eslint/consistent-type-imports': 'off',
|
|
95
|
-
'@typescript-eslint/no-empty-function': 'off',
|
|
96
|
-
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
97
|
-
|
|
98
|
-
'@typescript-eslint/no-unused-vars': [
|
|
99
|
-
'error',
|
|
100
|
-
{
|
|
101
|
-
argsIgnorePattern: '^_',
|
|
102
|
-
varsIgnorePattern: '^_',
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
|
|
106
|
-
'@typescript-eslint/parameter-properties': [
|
|
107
|
-
'error',
|
|
108
|
-
{
|
|
109
|
-
prefer: 'parameter-property',
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
files: ['**/*.tsx?'],
|
|
116
|
-
|
|
117
|
-
languageOptions: {
|
|
118
|
-
parser: tsParser,
|
|
119
|
-
ecmaVersion: 5,
|
|
120
|
-
sourceType: 'script',
|
|
121
|
-
|
|
122
|
-
parserOptions: {
|
|
123
|
-
warnOnUnsupportedTypeScriptVersion: false,
|
|
124
|
-
project: ['./tsconfig.json'],
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
rules: {
|
|
129
|
-
'@typescript-eslint/no-floating-promises': 'error',
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
files: ['scripts/**'],
|
|
134
|
-
|
|
135
|
-
rules: {
|
|
136
|
-
'node/no-unpublished-import': 'off',
|
|
137
|
-
'no-console': 'off',
|
|
138
|
-
'no-process-exit': 'off',
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
files: ['**/*.spec.tsx?'],
|
|
143
|
-
|
|
144
|
-
languageOptions: {
|
|
145
|
-
globals: {
|
|
146
|
-
...globals.jest,
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
];
|
package/index.html
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>Malloy Explorer Dev</title>
|
|
5
|
-
</head>
|
|
6
|
-
<body>
|
|
7
|
-
<div>
|
|
8
|
-
<ul>
|
|
9
|
-
<li><a href="/dev/explorer.html">Malloy Explorer</a></li>
|
|
10
|
-
<ul>
|
|
11
|
-
<li><a href="/dev/source.html">Source Panel</a></li>
|
|
12
|
-
<li><a href="/dev/query.html">Query Panel</a></li>
|
|
13
|
-
<li><a href="/dev/result.html">Result Panel</a></li>
|
|
14
|
-
<li><a href="/dev/primitives.html">Primitive Components</a></li>
|
|
15
|
-
</ul>
|
|
16
|
-
</ul>
|
|
17
|
-
</div>
|
|
18
|
-
</body>
|
|
19
|
-
</html>
|
package/postcss.config.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import babelConfig from './babel.config.cjs';
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
plugins: {
|
|
14
|
-
'@stylexjs/postcss-plugin': {
|
|
15
|
-
include: ['src/**/*.{js,jsx,ts,tsx}'],
|
|
16
|
-
useCSSLayers: true,
|
|
17
|
-
babelConfig,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
package/vite.config.mts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import {defineConfig} from 'vite';
|
|
2
|
-
import {resolve} from 'path';
|
|
3
|
-
|
|
4
|
-
import replace from '@rollup/plugin-replace';
|
|
5
|
-
import react from '@vitejs/plugin-react';
|
|
6
|
-
import svgr from 'vite-plugin-svgr';
|
|
7
|
-
import babelConfig from './babel.config.cjs';
|
|
8
|
-
|
|
9
|
-
export default defineConfig({
|
|
10
|
-
plugins: [
|
|
11
|
-
svgr(),
|
|
12
|
-
react({babel: babelConfig}),
|
|
13
|
-
replace({
|
|
14
|
-
'Object.defineProperty(exports, "__esModule", { value: true });':
|
|
15
|
-
'Object.defineProperty(typeof exports !== \'undefined\' ? exports : {}, "__esModule", { value: true });',
|
|
16
|
-
delimiters: ['\n', '\n'],
|
|
17
|
-
preventAssignment: true,
|
|
18
|
-
}),
|
|
19
|
-
],
|
|
20
|
-
build: {
|
|
21
|
-
lib: {
|
|
22
|
-
entry: resolve(__dirname, 'src/index.ts'),
|
|
23
|
-
formats: ['es', 'cjs'],
|
|
24
|
-
fileName: format => {
|
|
25
|
-
if (format === 'cjs') return 'cjs/[name].cjs';
|
|
26
|
-
return 'esm/[name].js';
|
|
27
|
-
},
|
|
28
|
-
name: 'index',
|
|
29
|
-
},
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
preserveSymlinks: true,
|
|
32
|
-
external: [
|
|
33
|
-
'react',
|
|
34
|
-
'react-dom',
|
|
35
|
-
'react/jsx-runtime',
|
|
36
|
-
'@malloydata/db-duckdb/wasm',
|
|
37
|
-
'@malloydata/malloy',
|
|
38
|
-
'@malloydata/malloy-tag',
|
|
39
|
-
'@malloydata/malloy-filter',
|
|
40
|
-
'@malloydata/malloy-interfaces',
|
|
41
|
-
'@malloydata/malloy-query-builder',
|
|
42
|
-
'@malloydata/render',
|
|
43
|
-
],
|
|
44
|
-
output: {
|
|
45
|
-
manualChunks: _id => {
|
|
46
|
-
return 'index';
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
minify: false,
|
|
51
|
-
sourcemap: true,
|
|
52
|
-
},
|
|
53
|
-
define: {
|
|
54
|
-
'process.env': {},
|
|
55
|
-
},
|
|
56
|
-
optimizeDeps: {
|
|
57
|
-
force: true,
|
|
58
|
-
include: [
|
|
59
|
-
'@malloydata/db-duckdb/wasm',
|
|
60
|
-
'@malloydata/render',
|
|
61
|
-
'@malloydata/malloy',
|
|
62
|
-
'@malloydata/malloy-tag',
|
|
63
|
-
'@malloydata/malloy-filter',
|
|
64
|
-
'@malloydata/malloy-interfaces',
|
|
65
|
-
'@malloydata/malloy-query-builder',
|
|
66
|
-
],
|
|
67
|
-
exclude: ['@mapbox/node-pre-gyp'],
|
|
68
|
-
},
|
|
69
|
-
});
|