@malloydata/malloy-explorer 0.0.257-dev250410160631

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.
Files changed (158) hide show
  1. package/.editorconfig +8 -0
  2. package/.github/workflows/prerelease.yaml +28 -0
  3. package/.github/workflows/test.yaml +26 -0
  4. package/.node-version +1 -0
  5. package/.prettierrc.js +8 -0
  6. package/.vscode/extensions.json +6 -0
  7. package/@flowtypes/components/MalloyExplorerProvider.flow.js +13 -0
  8. package/@flowtypes/components/QueryPanel/QueryActionBar.flow.js +10 -0
  9. package/@flowtypes/components/QueryPanel/QueryEditor.flow.js +9 -0
  10. package/@flowtypes/components/ResultPanel/ResultPanel.flow.js +14 -0
  11. package/@flowtypes/components/ResultPanel/SubmittedQuery.flow.js +32 -0
  12. package/@flowtypes/components/SourcePanel/SourcePanel.flow.js +9 -0
  13. package/@flowtypes/contexts/ExplorerPanelsContext.flow.js +6 -0
  14. package/@flowtypes/index.flow.js +18 -0
  15. package/CONTRIBUTING.md +44 -0
  16. package/LICENSE +9 -0
  17. package/README.md +23 -0
  18. package/babel.config.mjs +35 -0
  19. package/dist/cjs/index.cjs +30740 -0
  20. package/dist/cjs/index.cjs.map +1 -0
  21. package/dist/esm/index.js +30723 -0
  22. package/dist/esm/index.js.map +1 -0
  23. package/dist/malloy-explorer.css +422 -0
  24. package/dist/types/components/ErrorElement.d.ts +18 -0
  25. package/dist/types/components/FieldHoverCard.d.ts +13 -0
  26. package/dist/types/components/FieldToken.d.ts +19 -0
  27. package/dist/types/components/Label.d.ts +5 -0
  28. package/dist/types/components/MalloyExplorerProvider.d.ts +11 -0
  29. package/dist/types/components/QueryPanel/AddMenu/AddAggregate.d.ts +6 -0
  30. package/dist/types/components/QueryPanel/AddMenu/AddEmptyNest.d.ts +6 -0
  31. package/dist/types/components/QueryPanel/AddMenu/AddFieldItem.d.ts +15 -0
  32. package/dist/types/components/QueryPanel/AddMenu/AddGroupBy.d.ts +6 -0
  33. package/dist/types/components/QueryPanel/AddMenu/AddItem.d.ts +9 -0
  34. package/dist/types/components/QueryPanel/AddMenu/AddLimit.d.ts +6 -0
  35. package/dist/types/components/QueryPanel/AddMenu/AddMenu.d.ts +6 -0
  36. package/dist/types/components/QueryPanel/AddMenu/AddOrderBy.d.ts +6 -0
  37. package/dist/types/components/QueryPanel/AddMenu/AddView.d.ts +7 -0
  38. package/dist/types/components/QueryPanel/AddMenu/AddWhere.d.ts +6 -0
  39. package/dist/types/components/QueryPanel/AddMenu/FieldList.d.ts +11 -0
  40. package/dist/types/components/QueryPanel/AddMenu/FieldMenu.d.ts +10 -0
  41. package/dist/types/components/QueryPanel/AddMenu/ValueList.d.ts +10 -0
  42. package/dist/types/components/QueryPanel/AddMenu/colors.stylex.d.ts +7 -0
  43. package/dist/types/components/QueryPanel/AddMenu/hooks/useSearch.d.ts +10 -0
  44. package/dist/types/components/QueryPanel/AddMenu/styles.d.ts +34 -0
  45. package/dist/types/components/QueryPanel/FieldHover.d.ts +10 -0
  46. package/dist/types/components/QueryPanel/LiteralValueEditor.d.ts +9 -0
  47. package/dist/types/components/QueryPanel/Operations.d.ts +6 -0
  48. package/dist/types/components/QueryPanel/Parameters.d.ts +8 -0
  49. package/dist/types/components/QueryPanel/Query.d.ts +8 -0
  50. package/dist/types/components/QueryPanel/QueryActionBar.d.ts +11 -0
  51. package/dist/types/components/QueryPanel/QueryEditor.d.ts +15 -0
  52. package/dist/types/components/QueryPanel/QueryPanel.d.ts +10 -0
  53. package/dist/types/components/QueryPanel/Source.d.ts +8 -0
  54. package/dist/types/components/QueryPanel/View.d.ts +6 -0
  55. package/dist/types/components/QueryPanel/ViewDefinition.d.ts +6 -0
  56. package/dist/types/components/QueryPanel/Visualization.d.ts +7 -0
  57. package/dist/types/components/QueryPanel/VisualizationIcon.d.ts +5 -0
  58. package/dist/types/components/QueryPanel/index.d.ts +3 -0
  59. package/dist/types/components/QueryPanel/operations/AggregateOperations.d.ts +7 -0
  60. package/dist/types/components/QueryPanel/operations/ClearButton.d.ts +4 -0
  61. package/dist/types/components/QueryPanel/operations/GroupByOperations.d.ts +7 -0
  62. package/dist/types/components/QueryPanel/operations/LimitOperation.d.ts +7 -0
  63. package/dist/types/components/QueryPanel/operations/NestOperation.d.ts +7 -0
  64. package/dist/types/components/QueryPanel/operations/OperationActionTitle.d.ts +12 -0
  65. package/dist/types/components/QueryPanel/operations/OrderByOperations.d.ts +7 -0
  66. package/dist/types/components/QueryPanel/operations/WhereOperations.d.ts +7 -0
  67. package/dist/types/components/QueryPanel/operations/hover.stylex.d.ts +17 -0
  68. package/dist/types/components/ResultPanel/BookmarkedView.d.ts +7 -0
  69. package/dist/types/components/ResultPanel/EmptyQueryDisplay.d.ts +6 -0
  70. package/dist/types/components/ResultPanel/ResultDisplay.d.ts +6 -0
  71. package/dist/types/components/ResultPanel/ResultPanel.d.ts +14 -0
  72. package/dist/types/components/ResultPanel/SubmittedQuery.d.ts +28 -0
  73. package/dist/types/components/ResultPanel/ViewAttributeTable.d.ts +9 -0
  74. package/dist/types/components/ResultPanel/Visualization.d.ts +5 -0
  75. package/dist/types/components/ResultPanel/index.d.ts +1 -0
  76. package/dist/types/components/SourcePanel/AddFieldDropdownMenu.d.ts +13 -0
  77. package/dist/types/components/SourcePanel/FieldGroupList.d.ts +10 -0
  78. package/dist/types/components/SourcePanel/FieldTokenWithActions.d.ts +7 -0
  79. package/dist/types/components/SourcePanel/NestFieldDropdownMenu.d.ts +12 -0
  80. package/dist/types/components/SourcePanel/OperationDropdownMenuItems.d.ts +10 -0
  81. package/dist/types/components/SourcePanel/SearchResultList.d.ts +8 -0
  82. package/dist/types/components/SourcePanel/SourcePanel.d.ts +7 -0
  83. package/dist/types/components/SourcePanel/field-token.stylex.d.ts +3 -0
  84. package/dist/types/components/SourcePanel/hooks/useNestOperations.d.ts +9 -0
  85. package/dist/types/components/SourcePanel/hooks/useOperations.d.ts +8 -0
  86. package/dist/types/components/SourcePanel/index.d.ts +1 -0
  87. package/dist/types/components/SourcePanel/utils.d.ts +24 -0
  88. package/dist/types/components/TopValuesTable.d.ts +7 -0
  89. package/dist/types/components/filters/BooleanFilterToken.d.ts +11 -0
  90. package/dist/types/components/filters/DateTimeFilterToken.d.ts +12 -0
  91. package/dist/types/components/filters/NumberFilterToken.d.ts +13 -0
  92. package/dist/types/components/filters/PillInput.d.ts +18 -0
  93. package/dist/types/components/filters/StringFilterToken.d.ts +14 -0
  94. package/dist/types/components/filters/index.d.ts +0 -0
  95. package/dist/types/components/hooks/useClickOutside.d.ts +1 -0
  96. package/dist/types/components/primitives/Badge.d.ts +37 -0
  97. package/dist/types/components/primitives/BadgeForField.d.ts +6 -0
  98. package/dist/types/components/primitives/Banner.d.ts +36 -0
  99. package/dist/types/components/primitives/Button.d.ts +92 -0
  100. package/dist/types/components/primitives/Card.d.ts +12 -0
  101. package/dist/types/components/primitives/CodeBlock.d.ts +26 -0
  102. package/dist/types/components/primitives/CollapsibleListItem.d.ts +16 -0
  103. package/dist/types/components/primitives/CollapsiblePanel.d.ts +13 -0
  104. package/dist/types/components/primitives/DOMElement.d.ts +5 -0
  105. package/dist/types/components/primitives/DatePicker.d.ts +9 -0
  106. package/dist/types/components/primitives/Divider.d.ts +24 -0
  107. package/dist/types/components/primitives/DropdownMenu.d.ts +33 -0
  108. package/dist/types/components/primitives/ErrorIcon.d.ts +8 -0
  109. package/dist/types/components/primitives/Icon.d.ts +57 -0
  110. package/dist/types/components/primitives/List.d.ts +9 -0
  111. package/dist/types/components/primitives/ListItem.d.ts +21 -0
  112. package/dist/types/components/primitives/NumberInput.d.ts +10 -0
  113. package/dist/types/components/primitives/Popover.d.ts +19 -0
  114. package/dist/types/components/primitives/ResizeBar.d.ts +7 -0
  115. package/dist/types/components/primitives/ScrollableArea.d.ts +9 -0
  116. package/dist/types/components/primitives/SelectDropdown.d.ts +31 -0
  117. package/dist/types/components/primitives/Spinner.d.ts +22 -0
  118. package/dist/types/components/primitives/TextInput.d.ts +54 -0
  119. package/dist/types/components/primitives/badge.stylex.d.ts +6 -0
  120. package/dist/types/components/primitives/button.stylex.d.ts +6 -0
  121. package/dist/types/components/primitives/colors.stylex.d.ts +39 -0
  122. package/dist/types/components/primitives/dropdown-menu.stylex.d.ts +9 -0
  123. package/dist/types/components/primitives/index.d.ts +22 -0
  124. package/dist/types/components/primitives/scrollable-area.stylex.d.ts +6 -0
  125. package/dist/types/components/primitives/styles.d.ts +74 -0
  126. package/dist/types/components/primitives/syntax_highlighting/malloyGrammar.d.ts +279 -0
  127. package/dist/types/components/primitives/syntax_highlighting/syntaxHighlighter.d.ts +6 -0
  128. package/dist/types/components/primitives/syntax_highlighting/transformers/lineNumberTransformer.d.ts +3 -0
  129. package/dist/types/components/primitives/syntax_highlighting/transformers/lineSpacingTransformer.d.ts +8 -0
  130. package/dist/types/components/primitives/syntax_highlighting/transformers/transformers.d.ts +8 -0
  131. package/dist/types/components/primitives/tokens/EditableToken.d.ts +50 -0
  132. package/dist/types/components/primitives/tokens/SelectorToken.d.ts +18 -0
  133. package/dist/types/components/primitives/tokens/Token.d.ts +49 -0
  134. package/dist/types/components/primitives/tokens/TokenGroup.d.ts +21 -0
  135. package/dist/types/components/primitives/tokens/styles.d.ts +45 -0
  136. package/dist/types/components/primitives/tokens/token.stylex.d.ts +6 -0
  137. package/dist/types/components/primitives/tokens/types.d.ts +5 -0
  138. package/dist/types/components/primitives/utils/icon.d.ts +388 -0
  139. package/dist/types/components/styles.d.ts +66 -0
  140. package/dist/types/components/utils/fields.d.ts +9 -0
  141. package/dist/types/components/utils/icon.d.ts +7 -0
  142. package/dist/types/components/utils/renderer.d.ts +6 -0
  143. package/dist/types/components/utils/segment.d.ts +6 -0
  144. package/dist/types/contexts/ExplorerPanelsContext.d.ts +11 -0
  145. package/dist/types/contexts/QueryEditorContext.d.ts +25 -0
  146. package/dist/types/hooks/useQueryBuilder.d.ts +3 -0
  147. package/dist/types/index.d.ts +8 -0
  148. package/dist/types/types/error.d.ts +8 -0
  149. package/eslint.config.mjs +156 -0
  150. package/index.html +19 -0
  151. package/package.json +109 -0
  152. package/postcss.config.mjs +20 -0
  153. package/scripts/env.d.ts +3 -0
  154. package/scripts/gen_flow.ts +38 -0
  155. package/scripts/malloy-packages.ts +17 -0
  156. package/scripts/tsconfig.json +8 -0
  157. package/tsconfig.json +16 -0
  158. package/vite.config.mts +65 -0
package/.editorconfig ADDED
@@ -0,0 +1,8 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ insert_final_newline = true
@@ -0,0 +1,28 @@
1
+ name: npmjs.com Pre-release
2
+
3
+ on: [workflow_dispatch]
4
+
5
+ jobs:
6
+ test:
7
+ uses: './.github/workflows/test.yaml'
8
+
9
+ npm-prerelease:
10
+ needs:
11
+ - test
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - name: Use Node.js
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: 20.x
19
+ - name: npm install, build, and publish
20
+ run: |
21
+ npm ci --loglevel error
22
+ PRERELEASE=$(date +%y%m%d%H%M%S)
23
+ VERSION=$(jq -r .version ./package.json)-dev$PRERELEASE
24
+ npm version --no-git-tag-version $VERSION
25
+ npm publish --access=public
26
+ env:
27
+ CI: true
28
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,26 @@
1
+ name: Test
2
+
3
+ on:
4
+ workflow_call:
5
+ pull_request:
6
+ push:
7
+ branches:
8
+ - main
9
+
10
+ jobs:
11
+ test-all:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - name: Use Node.js
17
+ uses: actions/setup-node@v4
18
+ with:
19
+ node-version: 20.x
20
+ - name: Install
21
+ run: npm ci --loglevel error
22
+ - name: Build and Test
23
+ run: |
24
+ npm run build
25
+ npm run lint
26
+ # npm run test
package/.node-version ADDED
@@ -0,0 +1 @@
1
+ 20.18.1
package/.prettierrc.js ADDED
@@ -0,0 +1,8 @@
1
+ // eslint-disable-next-line no-undef
2
+ module.exports = {
3
+ arrowParens: 'avoid',
4
+ bracketSpacing: false,
5
+ semi: true,
6
+ singleQuote: true,
7
+ trailingComma: 'es5',
8
+ };
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "esbenp.prettier-vscode"
5
+ ]
6
+ }
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from "react";
2
+ import * as Malloy from "@malloydata/malloy-interfaces";
3
+ import { SearchValueMapResult } from "../contexts/QueryEditorContext";
4
+ declare export interface MalloyExplorerProviderProps {
5
+ source: Malloy.SourceInfo;
6
+ query?: Malloy.Query;
7
+ setQuery?: (query: Malloy.Query | void) => void;
8
+ children: ReactNode | ReactNode[];
9
+ topValues?: SearchValueMapResult[];
10
+ }
11
+ declare export function MalloyExplorerProvider(
12
+ $$param0$: MalloyExplorerProviderProps,
13
+ ): $Exports<"react/jsx-runtime">["JSX"]["Element"];
@@ -0,0 +1,10 @@
1
+ import * as Malloy from "@malloydata/malloy-interfaces";
2
+ declare export interface QueryActionBarProps {
3
+ source: Malloy.SourceInfo;
4
+ query?: Malloy.Query;
5
+ clearQuery: () => void;
6
+ runQuery: (source: Malloy.SourceInfo, query: Malloy.Query) => void;
7
+ }
8
+ declare export function QueryActionBar(
9
+ $$param0$: QueryActionBarProps,
10
+ ): $Exports<"react/jsx-runtime">["JSX"]["Element"];
@@ -0,0 +1,9 @@
1
+ import * as Malloy from "@malloydata/malloy-interfaces";
2
+ declare export interface QueryEditorProps {
3
+ source: Malloy.SourceInfo;
4
+ query?: Malloy.Query;
5
+ setQuery?: (query: Malloy.Query | void) => void;
6
+ }
7
+ declare export function QueryEditor(
8
+ $$param0$: QueryEditorProps,
9
+ ): $Exports<"react/jsx-runtime">["JSX"]["Element"] | null;
@@ -0,0 +1,14 @@
1
+ import * as Malloy from "@malloydata/malloy-interfaces";
2
+ import { SubmittedQuery } from "./SubmittedQuery";
3
+ type ResultPanelOptions = { showRawQuery: boolean, ... };
4
+ declare export interface ResultPanelProps {
5
+ source: Malloy.SourceInfo;
6
+ draftQuery?: Malloy.Query;
7
+ setDraftQuery: (query: Malloy.Query) => void;
8
+ submittedQuery?: SubmittedQuery;
9
+ options?: ResultPanelOptions;
10
+ }
11
+ declare export default function ResultPanel(
12
+ $$param0$: ResultPanelProps,
13
+ ): $Exports<"react/jsx-runtime">["JSX"]["Element"];
14
+ declare export {};
@@ -0,0 +1,32 @@
1
+ import * as Malloy from "@malloydata/malloy-interfaces";
2
+ import { ExplorerError } from "../../types/error";
3
+ declare export const EXECUTION_STATES: {
4
+ compiling: string,
5
+ running: string,
6
+ finished: string,
7
+ canceled: string,
8
+ ...
9
+ };
10
+ export type QueryExecutionState = keyof typeof EXECUTION_STATES;
11
+ export type SubmittedQuery = {
12
+ query: Malloy.Query,
13
+ executionState: QueryExecutionState,
14
+ queryResolutionStartMillis: number,
15
+ onCancel: () => void,
16
+ response?: QueryResponse,
17
+ ...
18
+ };
19
+ export type RunStats = {
20
+ compileTime: number,
21
+ runTime: number,
22
+ rowsProcessed: number,
23
+ peakMemory: number,
24
+ queryId: string,
25
+ ...
26
+ };
27
+ export type QueryResponse = {
28
+ error?: ExplorerError,
29
+ result?: Malloy.Result,
30
+ runStats?: RunStats,
31
+ ...
32
+ };
@@ -0,0 +1,9 @@
1
+ import * as Malloy from "@malloydata/malloy-interfaces";
2
+ declare export interface SourcePanelProps {
3
+ source: Malloy.SourceInfo;
4
+ query?: Malloy.Query;
5
+ setQuery: (query: Malloy.Query | void) => void;
6
+ }
7
+ declare export function SourcePanel(
8
+ $$param0$: SourcePanelProps,
9
+ ): $Exports<"react/jsx-runtime">["JSX"]["Element"] | null;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare export interface ExplorerPanelsContextProps {
3
+ isSourcePanelOpen: boolean;
4
+ setIsSourcePanelOpen?: (isOpen: boolean) => void;
5
+ }
6
+ declare export const ExplorerPanelsContext: React.Context<ExplorerPanelsContextProps>;
@@ -0,0 +1,18 @@
1
+ import "./stylex.css";
2
+ declare export { MalloyExplorerProvider } from "./components/MalloyExplorerProvider";
3
+ declare export {
4
+ QueryActionBar,
5
+ QueryEditor,
6
+ QueryPanel,
7
+ } from "./components/QueryPanel";
8
+ declare export { ResultPanel } from "./components/ResultPanel";
9
+ declare export {
10
+ EXECUTION_STATES,
11
+ QueryExecutionState,
12
+ QueryResponse,
13
+ RunStats,
14
+ SubmittedQuery,
15
+ } from "./components/ResultPanel/SubmittedQuery";
16
+ declare export { SourcePanel } from "./components/SourcePanel";
17
+ declare export { ResizeBar } from "./components/primitives";
18
+ declare export { ExplorerPanelsContext } from "./contexts/ExplorerPanelsContext";
@@ -0,0 +1,44 @@
1
+ ## Project Committers
2
+
3
+ Our committers are the following GitHub accounts:
4
+
5
+ lloydtabb
6
+ mtoy-googly-moogly
7
+ carlineng
8
+ christopherswenson
9
+ nachoarreola
10
+ skokenes
11
+ whscullin
12
+
13
+ ## Developer Certificate of Origin
14
+
15
+ All new inbound code contributions must also be accompanied by a Developer
16
+ Certificate of Origin (http://developercertificate.org) sign-off in the source
17
+ code system that is submitted through a TSC-approved contribution process which
18
+ will bind the authorized contributor and, if not self-employed, their employer
19
+ to the applicable license.
20
+
21
+ Contributors sign-off that they adhere to these requirements by adding a
22
+ Signed-off-by line to commit messages.
23
+
24
+ Git has a -s command line option to append this automatically to your commit
25
+ message, for example:
26
+
27
+ ```
28
+ $ git commit -s -m 'This is my commit message'
29
+ ```
30
+
31
+ ## Code Reviews
32
+
33
+ All submissions, including submissions by project members, require review. We
34
+ use GitHub pull requests for this purpose. Consult
35
+ [GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
36
+ information on using pull requests.
37
+
38
+ All pull requests must pass tests. Outside contributors should contact the Malloy
39
+ team via the`#developing` channel on the [Malloy Slack](https://malloydata.github.io/slack).
40
+
41
+ ## Code of Conduct
42
+
43
+ This project follows
44
+ [The Linux Foundation's Code of Conduct](https://lfprojects.org/policies/code-of-conduct/).
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Meta Platforms, Inc. and affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the " Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # Development directions
2
+
3
+ - Install required packages
4
+
5
+ ```
6
+ npm install
7
+ ```
8
+
9
+ - To test, run the vite developer tool
10
+
11
+ ```
12
+ npm run dev
13
+ ```
14
+
15
+ - Open http://localhost:5173/
16
+
17
+ ## Running against a local version of Malloy
18
+
19
+ 1. Run `npm run malloy-build-and-link` once and whenever you need to pull in changes
20
+ 2. If you need to pull in changes of `@malloydata/malloy-render`, then navigate to the `malloy` direcory and build it using `npm run build` first.
21
+ 3. If you make changes to Malloy that are required by the explorer, then merge those into main, and that will trigger an automatic developer release of Malloy.
22
+ 4. Once that release completes, run `npm run malloy-update` to update dependencies to that release. This will break the link to your local version of Malloy, so if you want to resume local development, re-run `npm run malloy-link`
23
+ 5. To manually unlink without updating, you may run `npm run malloy-unlink`
@@ -0,0 +1,35 @@
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 * as process from 'process';
11
+ import * as path from 'path';
12
+ import {fileURLToPath} from 'url';
13
+
14
+ const __filename = fileURLToPath(import.meta.url);
15
+ const __dirname = path.dirname(__filename);
16
+
17
+ export default {
18
+ presets: [['@babel/preset-react', {runtime: 'automatic'}]],
19
+ plugins: [
20
+ ['@babel/plugin-syntax-typescript', {isTSX: true}],
21
+ [
22
+ '@stylexjs/babel-plugin',
23
+ {
24
+ dev: process.env.NODE_ENV === 'development',
25
+ runtimeInjection: false,
26
+ genConditionalClasses: true,
27
+ treeshakeCompensation: true,
28
+ unstable_moduleResolution: {
29
+ type: 'commonJS',
30
+ rootDir: __dirname,
31
+ },
32
+ },
33
+ ],
34
+ ],
35
+ };