@malloy-publisher/sdk 0.0.1
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/.eslintrc +36 -0
- package/.prettierrc +4 -0
- package/README.md +1 -0
- package/openapitools.json +7 -0
- package/package.json +63 -0
- package/src/assets/img/spinner.svg +43 -0
- package/src/client/.openapi-generator/FILES +9 -0
- package/src/client/.openapi-generator/VERSION +1 -0
- package/src/client/.openapi-generator-ignore +23 -0
- package/src/client/api.ts +1170 -0
- package/src/client/base.ts +86 -0
- package/src/client/common.ts +150 -0
- package/src/client/configuration.ts +110 -0
- package/src/client/git_push.sh +57 -0
- package/src/client/index.ts +18 -0
- package/src/components/DOMElement/DOMElement.tsx +19 -0
- package/src/components/DOMElement/index.ts +1 -0
- package/src/components/Model/Model.tsx +110 -0
- package/src/components/Model/ModelCell.tsx +175 -0
- package/src/components/Model/index.ts +1 -0
- package/src/components/Notebook/Notebook.tsx +82 -0
- package/src/components/Notebook/NotebookCell.tsx +194 -0
- package/src/components/Notebook/index.ts +1 -0
- package/src/components/Package/Config.tsx +99 -0
- package/src/components/Package/Databases.tsx +75 -0
- package/src/components/Package/FileTreeView.tsx +224 -0
- package/src/components/Package/Models.tsx +77 -0
- package/src/components/Package/Package.tsx +78 -0
- package/src/components/Package/index.ts +1 -0
- package/src/components/Project/About.tsx +56 -0
- package/src/components/Project/Packages.tsx +105 -0
- package/src/components/Project/Project.tsx +26 -0
- package/src/components/Project/index.ts +1 -0
- package/src/components/QueryResult/QueryResult.tsx +84 -0
- package/src/components/QueryResult/index.ts +1 -0
- package/src/components/RenderedResult/RenderedResult.tsx +38 -0
- package/src/components/highlighter.ts +649 -0
- package/src/components/index.ts +5 -0
- package/src/components/styles.ts +21 -0
- package/src/index.ts +1 -0
- package/src/react-app-env.d.ts +73 -0
- package/tsconfig.json +34 -0
- package/vite.config.ts +31 -0
package/.eslintrc
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Specify the environments where the code will run
|
|
3
|
+
"env": {
|
|
4
|
+
"jest": true, // Enable Jest for testing
|
|
5
|
+
"browser": true // Enable browser environment
|
|
6
|
+
},
|
|
7
|
+
|
|
8
|
+
// Stop ESLint from searching for configuration in parent folders
|
|
9
|
+
"root": true,
|
|
10
|
+
|
|
11
|
+
// Specify the parser for TypeScript (using @typescript-eslint/parser)
|
|
12
|
+
"parser": "@typescript-eslint/parser", // Leverages TS ESTree to lint TypeScript
|
|
13
|
+
|
|
14
|
+
// Add additional rules and configuration options
|
|
15
|
+
"plugins": ["@typescript-eslint"],
|
|
16
|
+
|
|
17
|
+
// Extend various ESLint configurations and plugins
|
|
18
|
+
"extends": [
|
|
19
|
+
"eslint:recommended", // ESLint recommended rules
|
|
20
|
+
"plugin:react/recommended", // React recommended rules
|
|
21
|
+
"plugin:@typescript-eslint/recommended", // TypeScript recommended rules
|
|
22
|
+
"plugin:@typescript-eslint/eslint-recommended", // ESLint overrides for TypeScript
|
|
23
|
+
"prettier", // Prettier rules
|
|
24
|
+
"plugin:prettier/recommended", // Prettier plugin integration
|
|
25
|
+
"plugin:react-hooks/recommended", // Recommended rules for React hooks
|
|
26
|
+
"plugin:storybook/recommended" // Recommended rules for Storybook
|
|
27
|
+
],
|
|
28
|
+
"settings": {
|
|
29
|
+
"react": {
|
|
30
|
+
"version": "detect"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"rules": {
|
|
34
|
+
"react/react-in-jsx-scope": "off",
|
|
35
|
+
}
|
|
36
|
+
}
|
package/.prettierrc
ADDED
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Pathways SDK
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@malloy-publisher/sdk",
|
|
3
|
+
"description": "Malloy Publisher SDK",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
|
+
"module": "dist/index.es.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc && vite build --mode ${NODE_ENV:=development}",
|
|
11
|
+
"clean": "rm -rf ./dist && rm -rf ./node_modules && rm -f package-lock.json",
|
|
12
|
+
"lint": "eslint ./src --ext .ts,.tsx --ignore-path .gitignore --fix",
|
|
13
|
+
"format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
|
|
14
|
+
"analyze": "vite-bundle-visualizer",
|
|
15
|
+
"generate-api-types": "openapi-generator-cli generate -i ../../api-doc.yaml -g typescript-axios -o src/client/"
|
|
16
|
+
},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"react": "^18.3.1",
|
|
19
|
+
"react-dom": "^18.3.0",
|
|
20
|
+
"@emotion/react": "^11.13.3",
|
|
21
|
+
"@emotion/styled": "^11.13.0"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@malloydata/malloy": "^0.0.206",
|
|
25
|
+
"@malloydata/render": "^0.0.206",
|
|
26
|
+
"@mui/icons-material": "^6.0.1",
|
|
27
|
+
"@mui/material": "^6.0.1",
|
|
28
|
+
"@mui/x-tree-view": "^7.16.0",
|
|
29
|
+
"@react-spring/web": "^9.7.4",
|
|
30
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
31
|
+
"axios": "^1.7.7",
|
|
32
|
+
"markdown-to-jsx": "^7.5.0",
|
|
33
|
+
"mdast-comment-marker": "^2.1.2",
|
|
34
|
+
"typescript": "4.7.4",
|
|
35
|
+
"unified": "^11.0.5",
|
|
36
|
+
"vite": "^5.3.5",
|
|
37
|
+
"vite-plugin-dts": "^4.0.0",
|
|
38
|
+
"vite-plugin-svgr": "^4.2.0",
|
|
39
|
+
"@tanstack/react-query": "^5.59.16"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@openapitools/openapi-generator-cli": "^2.13.5",
|
|
43
|
+
"@types/react": "^18.3.1",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^8.0.1",
|
|
45
|
+
"@typescript-eslint/parser": "^8.0.1",
|
|
46
|
+
"eslint": "^8.57.0",
|
|
47
|
+
"eslint-config-prettier": "^9.1.0",
|
|
48
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
49
|
+
"eslint-plugin-react": "^7.35.0",
|
|
50
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
51
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
52
|
+
"openapi-typescript": "^6.7.6",
|
|
53
|
+
"prettier": "^3.3.3",
|
|
54
|
+
"shiki": "^1.16.3",
|
|
55
|
+
"styled-components": "^6.1.12",
|
|
56
|
+
"typescript": "^5.5.4",
|
|
57
|
+
"vite-bundle-visualizer": "^1.2.1"
|
|
58
|
+
},
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public",
|
|
61
|
+
"tag": "latest"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="25px"
|
|
3
|
+
height="25px"
|
|
4
|
+
viewBox="0 0 15 15"
|
|
5
|
+
version="1.1"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
8
|
+
>
|
|
9
|
+
<title>malloy-icon-status-progress</title>
|
|
10
|
+
<defs>
|
|
11
|
+
<circle id="path-1" cx="7.5" cy="7.5" r="7.5"></circle>
|
|
12
|
+
<mask
|
|
13
|
+
id="mask-2"
|
|
14
|
+
maskContentUnits="userSpaceOnUse"
|
|
15
|
+
maskUnits="objectBoundingBox"
|
|
16
|
+
x="0"
|
|
17
|
+
y="0"
|
|
18
|
+
width="15"
|
|
19
|
+
height="15"
|
|
20
|
+
fill="white"
|
|
21
|
+
>
|
|
22
|
+
<use xlinkHref="#path-1"></use>
|
|
23
|
+
</mask>
|
|
24
|
+
</defs>
|
|
25
|
+
<g
|
|
26
|
+
id="malloy-icon-status-progress"
|
|
27
|
+
stroke="none"
|
|
28
|
+
strokeWidth="1"
|
|
29
|
+
fill="none"
|
|
30
|
+
fillRule="evenodd"
|
|
31
|
+
strokeDasharray="16"
|
|
32
|
+
>
|
|
33
|
+
<use
|
|
34
|
+
id="Oval-Copy-3"
|
|
35
|
+
stroke="#4285F4"
|
|
36
|
+
class="primarystroke"
|
|
37
|
+
mask="url(#mask-2)"
|
|
38
|
+
strokeWidth="3"
|
|
39
|
+
transform="translate(7.500000, 7.500000) rotate(-240.000000) translate(-7.500000, -7.500000) "
|
|
40
|
+
xlinkHref="#path-1"
|
|
41
|
+
></use>
|
|
42
|
+
</g>
|
|
43
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7.8.0
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|