@finos/legend-extension-assortment 0.0.5

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 (62) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/lib/__lib__/studio/DSL_SnowflakeApp_LegendStudioCodeSnippet.d.ts +18 -0
  4. package/lib/__lib__/studio/DSL_SnowflakeApp_LegendStudioCodeSnippet.d.ts.map +1 -0
  5. package/lib/__lib__/studio/DSL_SnowflakeApp_LegendStudioCodeSnippet.js +27 -0
  6. package/lib/__lib__/studio/DSL_SnowflakeApp_LegendStudioCodeSnippet.js.map +1 -0
  7. package/lib/components/studio/Assortment_LegendStudioApplicationPreset.d.ts +20 -0
  8. package/lib/components/studio/Assortment_LegendStudioApplicationPreset.d.ts.map +1 -0
  9. package/lib/components/studio/Assortment_LegendStudioApplicationPreset.js +27 -0
  10. package/lib/components/studio/Assortment_LegendStudioApplicationPreset.js.map +1 -0
  11. package/lib/components/studio/DSL_SnowflakeApp_LegendStudioApplicationPlugin.d.ts +24 -0
  12. package/lib/components/studio/DSL_SnowflakeApp_LegendStudioApplicationPlugin.d.ts.map +1 -0
  13. package/lib/components/studio/DSL_SnowflakeApp_LegendStudioApplicationPlugin.js +52 -0
  14. package/lib/components/studio/DSL_SnowflakeApp_LegendStudioApplicationPlugin.js.map +1 -0
  15. package/lib/components/studio/index.d.ts +17 -0
  16. package/lib/components/studio/index.d.ts.map +1 -0
  17. package/lib/components/studio/index.js +17 -0
  18. package/lib/components/studio/index.js.map +1 -0
  19. package/lib/graph-manager/Assortment_GraphManagerPreset.d.ts +20 -0
  20. package/lib/graph-manager/Assortment_GraphManagerPreset.d.ts.map +1 -0
  21. package/lib/graph-manager/Assortment_GraphManagerPreset.js +34 -0
  22. package/lib/graph-manager/Assortment_GraphManagerPreset.js.map +1 -0
  23. package/lib/graph-manager/FMT_GraphQL_PureGraphManagerPlugin.d.ts +21 -0
  24. package/lib/graph-manager/FMT_GraphQL_PureGraphManagerPlugin.d.ts.map +1 -0
  25. package/lib/graph-manager/FMT_GraphQL_PureGraphManagerPlugin.js +29 -0
  26. package/lib/graph-manager/FMT_GraphQL_PureGraphManagerPlugin.js.map +1 -0
  27. package/lib/graph-manager/FMT_JSONSchema_PureGraphManagerPlugin.d.ts +21 -0
  28. package/lib/graph-manager/FMT_JSONSchema_PureGraphManagerPlugin.d.ts.map +1 -0
  29. package/lib/graph-manager/FMT_JSONSchema_PureGraphManagerPlugin.js +35 -0
  30. package/lib/graph-manager/FMT_JSONSchema_PureGraphManagerPlugin.js.map +1 -0
  31. package/lib/graph-manager/index.d.ts +17 -0
  32. package/lib/graph-manager/index.d.ts.map +1 -0
  33. package/lib/graph-manager/index.js +17 -0
  34. package/lib/graph-manager/index.js.map +1 -0
  35. package/lib/graph-manager/protocol/pure/FMT_GraphQL_PureProtocolProcessorPlugin.d.ts +22 -0
  36. package/lib/graph-manager/protocol/pure/FMT_GraphQL_PureProtocolProcessorPlugin.d.ts.map +1 -0
  37. package/lib/graph-manager/protocol/pure/FMT_GraphQL_PureProtocolProcessorPlugin.js +27 -0
  38. package/lib/graph-manager/protocol/pure/FMT_GraphQL_PureProtocolProcessorPlugin.js.map +1 -0
  39. package/lib/graph-manager/protocol/pure/FMT_JSONSchema_PureProtocolProcessorPlugin.d.ts +22 -0
  40. package/lib/graph-manager/protocol/pure/FMT_JSONSchema_PureProtocolProcessorPlugin.d.ts.map +1 -0
  41. package/lib/graph-manager/protocol/pure/FMT_JSONSchema_PureProtocolProcessorPlugin.js +27 -0
  42. package/lib/graph-manager/protocol/pure/FMT_JSONSchema_PureProtocolProcessorPlugin.js.map +1 -0
  43. package/lib/graph-manager/protocol/pure/v1/V1_FMT_GraphQL_SystemModels.json +10 -0
  44. package/lib/graph-manager/protocol/pure/v1/V1_FMT_JSONSchema_SystemModels.json +39 -0
  45. package/lib/index.css +17 -0
  46. package/lib/index.css.map +1 -0
  47. package/lib/package.json +83 -0
  48. package/package.json +83 -0
  49. package/src/__lib__/studio/DSL_SnowflakeApp_LegendStudioCodeSnippet.ts +28 -0
  50. package/src/components/studio/Assortment_LegendStudioApplicationPreset.ts +28 -0
  51. package/src/components/studio/DSL_SnowflakeApp_LegendStudioApplicationPlugin.tsx +98 -0
  52. package/src/components/studio/index.ts +17 -0
  53. package/src/graph-manager/Assortment_GraphManagerPreset.ts +35 -0
  54. package/src/graph-manager/FMT_GraphQL_PureGraphManagerPlugin.ts +34 -0
  55. package/src/graph-manager/FMT_JSONSchema_PureGraphManagerPlugin.ts +40 -0
  56. package/src/graph-manager/index.ts +17 -0
  57. package/src/graph-manager/protocol/pure/FMT_GraphQL_PureProtocolProcessorPlugin.ts +36 -0
  58. package/src/graph-manager/protocol/pure/FMT_JSONSchema_PureProtocolProcessorPlugin.ts +36 -0
  59. package/src/graph-manager/protocol/pure/v1/V1_FMT_GraphQL_SystemModels.json +10 -0
  60. package/src/graph-manager/protocol/pure/v1/V1_FMT_JSONSchema_SystemModels.json +39 -0
  61. package/tsconfig.json +57 -0
  62. package/tsconfig.package.json +37 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FMT_JSONSchema_PureGraphManagerPlugin.js","sourceRoot":"","sources":["../../src/graph-manager/FMT_JSONSchema_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,MAAM,OAAO,qCAAsC,SAAQ,sBAAsB;IAC/E;QACE,KAAK,CACH,WAAW,CAAC,UAAU,CAAC,yCAAyC,EAChE,WAAW,CAAC,OAAO,CACpB,CAAC;IACJ,CAAC;IAEQ,gCAAgC;QACvC,OAAO;YACL,yEAAyE;YACzE,0CAA0C;YAC1C,qFAAqF;YACrF,6CAA6C;YAC7C,+FAA+F;YAC/F,6CAA6C;YAC7C,kEAAkE;YAClE,gDAAgD;SACjD,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './Assortment_GraphManagerPreset.js';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graph-manager/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './Assortment_GraphManagerPreset.js';
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/graph-manager/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { PlainObject } from '@finos/legend-shared';
17
+ import { type V1_PureModelContextData, PureProtocolProcessorPlugin } from '@finos/legend-graph';
18
+ export declare class FMT_GraphQL_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
19
+ constructor();
20
+ V1_getExtraSystemModels(): PlainObject<V1_PureModelContextData>[];
21
+ }
22
+ //# sourceMappingURL=FMT_GraphQL_PureProtocolProcessorPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FMT_GraphQL_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/graph-manager/protocol/pure/FMT_GraphQL_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EACL,KAAK,uBAAuB,EAC5B,2BAA2B,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,uCAAwC,SAAQ,2BAA2B;;IAQ7E,uBAAuB,IAAI,WAAW,CAAC,uBAAuB,CAAC,EAAE;CAG3E"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import packageJson from '../../../../package.json';
17
+ import V1_SYSTEM_MODELS from './v1/V1_FMT_GraphQL_SystemModels.json';
18
+ import { PureProtocolProcessorPlugin, } from '@finos/legend-graph';
19
+ export class FMT_GraphQL_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
20
+ constructor() {
21
+ super(packageJson.extensions.format_graphql_pureProtocolProcessorPlugin, packageJson.version);
22
+ }
23
+ V1_getExtraSystemModels() {
24
+ return [V1_SYSTEM_MODELS];
25
+ }
26
+ }
27
+ //# sourceMappingURL=FMT_GraphQL_PureProtocolProcessorPlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FMT_GraphQL_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/graph-manager/protocol/pure/FMT_GraphQL_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD,OAAO,gBAAgB,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAEL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAO,uCAAwC,SAAQ,2BAA2B;IACtF;QACE,KAAK,CACH,WAAW,CAAC,UAAU,CAAC,0CAA0C,EACjE,WAAW,CAAC,OAAO,CACpB,CAAC;IACJ,CAAC;IAEQ,uBAAuB;QAC9B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC5B,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { PlainObject } from '@finos/legend-shared';
17
+ import { type V1_PureModelContextData, PureProtocolProcessorPlugin } from '@finos/legend-graph';
18
+ export declare class FMT_JSONSchema_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
19
+ constructor();
20
+ V1_getExtraSystemModels(): PlainObject<V1_PureModelContextData>[];
21
+ }
22
+ //# sourceMappingURL=FMT_JSONSchema_PureProtocolProcessorPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FMT_JSONSchema_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/graph-manager/protocol/pure/FMT_JSONSchema_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EACL,KAAK,uBAAuB,EAC5B,2BAA2B,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,0CAA2C,SAAQ,2BAA2B;;IAQhF,uBAAuB,IAAI,WAAW,CAAC,uBAAuB,CAAC,EAAE;CAG3E"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import packageJson from '../../../../package.json';
17
+ import V1_SYSTEM_MODELS from './v1/V1_FMT_JSONSchema_SystemModels.json';
18
+ import { PureProtocolProcessorPlugin, } from '@finos/legend-graph';
19
+ export class FMT_JSONSchema_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
20
+ constructor() {
21
+ super(packageJson.extensions.format_json_schema_pureProtocolProcessorPlugin, packageJson.version);
22
+ }
23
+ V1_getExtraSystemModels() {
24
+ return [V1_SYSTEM_MODELS];
25
+ }
26
+ }
27
+ //# sourceMappingURL=FMT_JSONSchema_PureProtocolProcessorPlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FMT_JSONSchema_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/graph-manager/protocol/pure/FMT_JSONSchema_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD,OAAO,gBAAgB,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAEL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAO,0CAA2C,SAAQ,2BAA2B;IACzF;QACE,KAAK,CACH,WAAW,CAAC,UAAU,CAAC,8CAA8C,EACrE,WAAW,CAAC,OAAO,CACpB,CAAC;IACJ,CAAC;IAEQ,uBAAuB;QAC9B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC5B,CAAC;CACF"}
@@ -0,0 +1,10 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "stereotypes": ["Query", "Mutation", "Subscription"],
5
+ "package": "meta::external::query::graphQL::binding",
6
+ "_type": "profile",
7
+ "name": "GraphQL"
8
+ }
9
+ ]
10
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "stereotypes": [
5
+ "int64",
6
+ "int32",
7
+ "byte",
8
+ "double",
9
+ "binary",
10
+ "array",
11
+ "null",
12
+ "object"
13
+ ],
14
+ "package": "meta::json::schema",
15
+ "_type": "profile",
16
+ "name": "JSONSchemaTypeExtension"
17
+ },
18
+ {
19
+ "tags": ["javaType", "javaInterface"],
20
+ "package": "meta::json::schema",
21
+ "_type": "profile",
22
+ "name": "JSONSchemaJavaExtension"
23
+ },
24
+ {
25
+ "stereotypes": ["discriminatorProperty"],
26
+ "tags": ["discriminatorName"],
27
+ "package": "meta::json::schema",
28
+ "_type": "profile",
29
+ "name": "JSONSchemaOpenAPIExtension"
30
+ },
31
+ {
32
+ "stereotypes": ["noAdditionalProperties", "readOnly", "writeOnly"],
33
+ "package": "meta::json::schema",
34
+ "_type": "profile",
35
+ "name": "JSONSchemaGeneration",
36
+ "tags": ["defaultValue", "name", "example", "title"]
37
+ }
38
+ ]
39
+ }
package/lib/index.css ADDED
@@ -0,0 +1,17 @@
1
+ /** @license @finos/legend-extension-assortment v0.0.5
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ .icon__snowflake-app{color:var(--color-light-blue-20);font-size:1.7rem}/*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":["../style/index.scss"],"names":[],"mappings":"AAkBA,qBACE,iCACA","file":"index.css"}
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@finos/legend-extension-assortment",
3
+ "version": "0.0.5",
4
+ "description": "An assortment of Legend extensions",
5
+ "keywords": [
6
+ "legend",
7
+ "legend-extension"
8
+ ],
9
+ "homepage": "https://github.com/finos/legend-studio/tree/master/packages/legend-extension-assortment",
10
+ "bugs": {
11
+ "url": "https://github.com/finos/legend-studio/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/finos/legend-studio.git",
16
+ "directory": "packages/legend-extension-assortment"
17
+ },
18
+ "license": "Apache-2.0",
19
+ "sideEffects": false,
20
+ "type": "module",
21
+ "exports": {
22
+ "./graph": "./lib/graph-manager/index.js",
23
+ "./application-studio": "./lib/components/studio/index.js",
24
+ "./lib/index.css": "./lib/index.css"
25
+ },
26
+ "module": "lib/index.js",
27
+ "types": "lib/index.d.ts",
28
+ "scripts": {
29
+ "build": "yarn clean && yarn build:sass && yarn build:ts",
30
+ "build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
31
+ "build:ts": "tsc --project ./tsconfig.build.json",
32
+ "clean": "npm-run-all clean:cache clean:lib",
33
+ "clean:cache": "rimraf \"build\"",
34
+ "clean:lib": "rimraf \"lib\"",
35
+ "dev": "npm-run-all --parallel dev:sass dev:ts",
36
+ "dev:sass": "sass style:lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
37
+ "dev:ts": "tsc --watch --preserveWatchOutput",
38
+ "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
39
+ "publish:prepare": "node ../../scripts/release/preparePublishContent.js",
40
+ "publish:snapshot": "node ../../scripts/release/publishDevSnapshot.js",
41
+ "test": "jest",
42
+ "test:watch": "jest --watch"
43
+ },
44
+ "dependencies": {
45
+ "@finos/legend-application": "workspace:*",
46
+ "@finos/legend-application-studio": "workspace:*",
47
+ "@finos/legend-art": "workspace:*",
48
+ "@finos/legend-graph": "workspace:*",
49
+ "@finos/legend-lego": "workspace:*",
50
+ "@finos/legend-shared": "workspace:*",
51
+ "@types/react": "18.2.7",
52
+ "mobx": "6.9.0",
53
+ "mobx-react-lite": "3.4.3",
54
+ "react": "18.2.0",
55
+ "serializr": "3.0.2"
56
+ },
57
+ "devDependencies": {
58
+ "@finos/legend-dev-utils": "workspace:*",
59
+ "@jest/globals": "29.5.0",
60
+ "cross-env": "7.0.3",
61
+ "eslint": "8.41.0",
62
+ "jest": "29.5.0",
63
+ "npm-run-all": "4.1.5",
64
+ "rimraf": "5.0.1",
65
+ "sass": "1.62.1",
66
+ "typescript": "5.0.4"
67
+ },
68
+ "peerDependencies": {
69
+ "react": "^18.0.0"
70
+ },
71
+ "publishConfig": {
72
+ "directory": "build/publishContent"
73
+ },
74
+ "extensions": {
75
+ "graphManagerPreset": "@finos/legend-graph-manager-preset-assortment",
76
+ "applicationStudioPreset": "@finos/legend-application-studio-preset-assortment",
77
+ "dsl_snowflake_app_applicationStudioPlugin": "@finos/legend-application-studio-plugin-dsl-snowflake-app",
78
+ "format_graphql_pureProtocolProcessorPlugin": "@finos/legend-pure-protocol-processor-plugin-format-graphql",
79
+ "format_graphql_pureGraphManagerPlugin": "@finos/legend-pure-graph-manager-plugin-format-graphql",
80
+ "format_json_schema_pureProtocolProcessorPlugin": "@finos/legend-pure-protocol-processor-plugin-format-json-schema",
81
+ "format_json_schema_pureGraphManagerPlugin": "@finos/legend-pure-graph-manager-plugin-format-json-schema"
82
+ }
83
+ }
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@finos/legend-extension-assortment",
3
+ "version": "0.0.5",
4
+ "description": "An assortment of Legend extensions",
5
+ "keywords": [
6
+ "legend",
7
+ "legend-extension"
8
+ ],
9
+ "homepage": "https://github.com/finos/legend-studio/tree/master/packages/legend-extension-assortment",
10
+ "bugs": {
11
+ "url": "https://github.com/finos/legend-studio/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/finos/legend-studio.git",
16
+ "directory": "packages/legend-extension-assortment"
17
+ },
18
+ "license": "Apache-2.0",
19
+ "sideEffects": false,
20
+ "type": "module",
21
+ "exports": {
22
+ "./graph": "./lib/graph-manager/index.js",
23
+ "./application-studio": "./lib/components/studio/index.js",
24
+ "./lib/index.css": "./lib/index.css"
25
+ },
26
+ "module": "lib/index.js",
27
+ "types": "lib/index.d.ts",
28
+ "scripts": {
29
+ "build": "yarn clean && yarn build:sass && yarn build:ts",
30
+ "build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
31
+ "build:ts": "tsc --project ./tsconfig.build.json",
32
+ "clean": "npm-run-all clean:cache clean:lib",
33
+ "clean:cache": "rimraf \"build\"",
34
+ "clean:lib": "rimraf \"lib\"",
35
+ "dev": "npm-run-all --parallel dev:sass dev:ts",
36
+ "dev:sass": "sass style:lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
37
+ "dev:ts": "tsc --watch --preserveWatchOutput",
38
+ "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
39
+ "publish:prepare": "node ../../scripts/release/preparePublishContent.js",
40
+ "publish:snapshot": "node ../../scripts/release/publishDevSnapshot.js",
41
+ "test": "jest",
42
+ "test:watch": "jest --watch"
43
+ },
44
+ "dependencies": {
45
+ "@finos/legend-application": "15.0.17",
46
+ "@finos/legend-application-studio": "26.1.2",
47
+ "@finos/legend-art": "7.0.18",
48
+ "@finos/legend-graph": "30.0.0",
49
+ "@finos/legend-lego": "1.0.13",
50
+ "@finos/legend-shared": "10.0.9",
51
+ "@types/react": "18.2.7",
52
+ "mobx": "6.9.0",
53
+ "mobx-react-lite": "3.4.3",
54
+ "react": "18.2.0",
55
+ "serializr": "3.0.2"
56
+ },
57
+ "devDependencies": {
58
+ "@finos/legend-dev-utils": "2.0.64",
59
+ "@jest/globals": "29.5.0",
60
+ "cross-env": "7.0.3",
61
+ "eslint": "8.41.0",
62
+ "jest": "29.5.0",
63
+ "npm-run-all": "4.1.5",
64
+ "rimraf": "5.0.1",
65
+ "sass": "1.62.1",
66
+ "typescript": "5.0.4"
67
+ },
68
+ "peerDependencies": {
69
+ "react": "^18.0.0"
70
+ },
71
+ "publishConfig": {
72
+ "directory": "build/publishContent"
73
+ },
74
+ "extensions": {
75
+ "graphManagerPreset": "@finos/legend-graph-manager-preset-assortment",
76
+ "applicationStudioPreset": "@finos/legend-application-studio-preset-assortment",
77
+ "dsl_snowflake_app_applicationStudioPlugin": "@finos/legend-application-studio-plugin-dsl-snowflake-app",
78
+ "format_graphql_pureProtocolProcessorPlugin": "@finos/legend-pure-protocol-processor-plugin-format-graphql",
79
+ "format_graphql_pureGraphManagerPlugin": "@finos/legend-pure-graph-manager-plugin-format-graphql",
80
+ "format_json_schema_pureProtocolProcessorPlugin": "@finos/legend-pure-protocol-processor-plugin-format-json-schema",
81
+ "format_json_schema_pureGraphManagerPlugin": "@finos/legend-pure-graph-manager-plugin-format-json-schema"
82
+ }
83
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export const PLAIN_TEXT_SNIPPET = `Text \${1:model::NewText}
18
+ {
19
+ content: '\${2:}';
20
+ }`;
21
+
22
+ export const SNOWFLAKE_APP_CODE_SNIPPET = `SnowflakeApp \${1:model::NewSnowflakeApp}
23
+ {
24
+ applicationName : '\${2:MySnowflakeApplication}';
25
+ function : \${3:someFunction():TabularDataSet[1]};
26
+ // owner : 'anonymous';
27
+ // description : 'This is my application';
28
+ }`;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import packageJson from '../../../package.json';
18
+ import { AbstractPreset } from '@finos/legend-shared';
19
+ import { DSL_SnowflakeApp_LegendStudioApplicationPlugin } from './DSL_SnowflakeApp_LegendStudioApplicationPlugin.js';
20
+
21
+ export class Assortment_LegendStudioApplicationPreset extends AbstractPreset {
22
+ constructor() {
23
+ super(packageJson.extensions.applicationStudioPreset, packageJson.version, [
24
+ // Snowflake App
25
+ new DSL_SnowflakeApp_LegendStudioApplicationPlugin(),
26
+ ]);
27
+ }
28
+ }
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import type { PureGrammarTextSuggestion } from '@finos/legend-lego/code-editor';
18
+ import packageJson from '../../../package.json';
19
+ import {
20
+ LegendStudioApplicationPlugin,
21
+ type DSL_LegendStudioApplicationPlugin_Extension,
22
+ type EditorStore,
23
+ type PureGrammarParserElementSnippetSuggestionsGetter,
24
+ type PureGrammarParserKeywordSuggestionGetter,
25
+ type ElementIconGetter,
26
+ } from '@finos/legend-application-studio';
27
+ import { SNOWFLAKE_APP_CODE_SNIPPET } from '../../__lib__/studio/DSL_SnowflakeApp_LegendStudioCodeSnippet.js';
28
+ import {
29
+ INTERNAL__UnknownFunctionActivator,
30
+ type PackageableElement,
31
+ } from '@finos/legend-graph';
32
+ import { Snowflake_BrandIcon } from '@finos/legend-art';
33
+
34
+ const PURE_GRAMMAR_SNOWFLAKE_APP_PARSER_NAME = 'Snowflake';
35
+ const PURE_GRAMMAR_SNOWFLAKE_APP_ELEMENT_TYPE_LABEL = 'SnowflakeApp';
36
+
37
+ export class DSL_SnowflakeApp_LegendStudioApplicationPlugin
38
+ extends LegendStudioApplicationPlugin
39
+ implements DSL_LegendStudioApplicationPlugin_Extension
40
+ {
41
+ constructor() {
42
+ super(
43
+ packageJson.extensions.dsl_snowflake_app_applicationStudioPlugin,
44
+ packageJson.version,
45
+ );
46
+ }
47
+
48
+ getExtraElementIconGetters(): ElementIconGetter[] {
49
+ return [
50
+ (
51
+ type: string,
52
+ element: PackageableElement | undefined,
53
+ ): React.ReactNode | undefined => {
54
+ // NOTE: this is temporary until we fully support snowflake app element
55
+ if (
56
+ element instanceof INTERNAL__UnknownFunctionActivator &&
57
+ element.content._type === 'snowflakeApp'
58
+ ) {
59
+ return <Snowflake_BrandIcon className="icon__snowflake-app" />;
60
+ }
61
+ return undefined;
62
+ },
63
+ ];
64
+ }
65
+
66
+ getExtraPureGrammarKeywords(): string[] {
67
+ return [PURE_GRAMMAR_SNOWFLAKE_APP_ELEMENT_TYPE_LABEL];
68
+ }
69
+
70
+ getExtraPureGrammarParserKeywordSuggestionGetters(): PureGrammarParserKeywordSuggestionGetter[] {
71
+ return [
72
+ (editorStore: EditorStore): PureGrammarTextSuggestion[] => [
73
+ {
74
+ text: PURE_GRAMMAR_SNOWFLAKE_APP_PARSER_NAME,
75
+ description: `(dsl)`,
76
+ insertText: PURE_GRAMMAR_SNOWFLAKE_APP_PARSER_NAME,
77
+ },
78
+ ],
79
+ ];
80
+ }
81
+
82
+ getExtraPureGrammarParserElementSnippetSuggestionsGetters(): PureGrammarParserElementSnippetSuggestionsGetter[] {
83
+ return [
84
+ (
85
+ editorStore: EditorStore,
86
+ parserKeyword: string,
87
+ ): PureGrammarTextSuggestion[] | undefined =>
88
+ parserKeyword === PURE_GRAMMAR_SNOWFLAKE_APP_PARSER_NAME
89
+ ? [
90
+ {
91
+ text: PURE_GRAMMAR_SNOWFLAKE_APP_ELEMENT_TYPE_LABEL,
92
+ insertText: SNOWFLAKE_APP_CODE_SNIPPET,
93
+ },
94
+ ]
95
+ : undefined,
96
+ ];
97
+ }
98
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export { Assortment_LegendStudioApplicationPreset } from './Assortment_LegendStudioApplicationPreset.js';
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import packageJson from '../../package.json';
18
+ import { AbstractPreset } from '@finos/legend-shared';
19
+ import { FMT_GraphQL_PureGraphManagerPlugin } from './FMT_GraphQL_PureGraphManagerPlugin.js';
20
+ import { FMT_GraphQL_PureProtocolProcessorPlugin } from './protocol/pure/FMT_GraphQL_PureProtocolProcessorPlugin.js';
21
+ import { FMT_JSONSchema_PureGraphManagerPlugin } from './FMT_JSONSchema_PureGraphManagerPlugin.js';
22
+ import { FMT_JSONSchema_PureProtocolProcessorPlugin } from './protocol/pure/FMT_JSONSchema_PureProtocolProcessorPlugin.js';
23
+
24
+ export class Assortment_GraphManagerPreset extends AbstractPreset {
25
+ constructor() {
26
+ super(packageJson.extensions.graphManagerPreset, packageJson.version, [
27
+ // Graph QL
28
+ new FMT_GraphQL_PureGraphManagerPlugin(),
29
+ new FMT_GraphQL_PureProtocolProcessorPlugin(),
30
+ // JSON Schema
31
+ new FMT_JSONSchema_PureGraphManagerPlugin(),
32
+ new FMT_JSONSchema_PureProtocolProcessorPlugin(),
33
+ ]);
34
+ }
35
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { PureGraphManagerPlugin } from '@finos/legend-graph';
18
+ import packageJson from '../../package.json';
19
+
20
+ export class FMT_GraphQL_PureGraphManagerPlugin extends PureGraphManagerPlugin {
21
+ constructor() {
22
+ super(
23
+ packageJson.extensions.format_graphql_pureGraphManagerPlugin,
24
+ packageJson.version,
25
+ );
26
+ }
27
+
28
+ override getExtraExposedSystemElementPath(): string[] {
29
+ return [
30
+ // Provides stereotypes for GraphQL queries
31
+ 'meta::external::query::graphQL::binding::GraphQL',
32
+ ];
33
+ }
34
+ }