@finos/legend-lego 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"CodeDiffView.d.ts","sourceRoot":"","sources":["../../src/code-editor/CodeDiffView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAeH,OAAO,EACL,oBAAoB,EAGrB,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,YAAY,WACf;IACN,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzB;;CA8CF,CAAC;AAaF,eAAO,MAAM,YAAY,WACf;IACN,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;CAWF,CAAC"}
1
+ {"version":3,"file":"CodeDiffView.d.ts","sourceRoot":"","sources":["../../src/code-editor/CodeDiffView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAeH,OAAO,EACL,oBAAoB,EAGrB,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,YAAY,WACf;IACN,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzB;;CAiDF,CAAC;AAaF,eAAO,MAAM,YAAY,WACf;IACN,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;CAWF,CAAC"}
@@ -33,7 +33,10 @@ export const CodeDiffView = observer((props) => {
33
33
  const element = editorRef.current;
34
34
  const _editor = monacoEditorAPI.createDiffEditor(element, {
35
35
  ...getBaseCodeEditorOptions(),
36
- theme: CODE_EDITOR_THEME.DEFAULT_DARK,
36
+ theme: applicationStore.layoutService
37
+ .TEMPORARY__isLightColorThemeEnabled
38
+ ? CODE_EDITOR_THEME.BUILT_IN__VSCODE_LIGHT
39
+ : CODE_EDITOR_THEME.DEFAULT_DARK,
37
40
  readOnly: true,
38
41
  });
39
42
  setEditor(_editor);
@@ -1 +1 @@
1
- {"version":3,"file":"CodeDiffView.js","sourceRoot":"","sources":["../../src/code-editor/CodeDiffView.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,QAAQ,EACR,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAClC,CAAC,KAIA,EAAE,EAAE;IACH,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GACvB,QAAQ,EAAyC,CAAC;IACpD,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC/C,MAAM,YAAY,GAAG,IAAI,IAAI,EAAE,CAAC;IAChC,MAAM,YAAY,GAAG,EAAE,IAAI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v1.1.5
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-lego",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Legend shared advanced application components and building blocks",
5
5
  "keywords": [
6
6
  "legend",
@@ -51,12 +51,12 @@
51
51
  "@ag-grid-community/core": "30.0.2",
52
52
  "@ag-grid-community/react": "30.0.2",
53
53
  "@ag-grid-community/styles": "30.0.2",
54
- "@finos/legend-application": "15.0.27",
55
- "@finos/legend-art": "7.0.27",
56
- "@finos/legend-graph": "30.0.12",
57
- "@finos/legend-shared": "10.0.15",
54
+ "@finos/legend-application": "15.0.28",
55
+ "@finos/legend-art": "7.0.28",
56
+ "@finos/legend-graph": "30.0.13",
57
+ "@finos/legend-shared": "10.0.16",
58
58
  "@types/css-font-loading-module": "0.0.8",
59
- "@types/react": "18.2.13",
59
+ "@types/react": "18.2.14",
60
60
  "@types/react-dom": "18.2.6",
61
61
  "mobx": "6.9.0",
62
62
  "mobx-react-lite": "3.4.3",
@@ -66,15 +66,15 @@
66
66
  "react-dom": "18.2.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@finos/legend-dev-utils": "2.0.70",
69
+ "@finos/legend-dev-utils": "2.0.71",
70
70
  "@jest/globals": "29.5.0",
71
71
  "cross-env": "7.0.3",
72
- "eslint": "8.43.0",
72
+ "eslint": "8.44.0",
73
73
  "jest": "29.5.0",
74
74
  "npm-run-all": "4.1.5",
75
75
  "rimraf": "5.0.1",
76
76
  "sass": "1.63.6",
77
- "typescript": "5.1.3"
77
+ "typescript": "5.1.6"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "react": "^18.0.0"
@@ -53,7 +53,10 @@ export const CodeDiffView = observer(
53
53
  const element = editorRef.current;
54
54
  const _editor = monacoEditorAPI.createDiffEditor(element, {
55
55
  ...getBaseCodeEditorOptions(),
56
- theme: CODE_EDITOR_THEME.DEFAULT_DARK,
56
+ theme: applicationStore.layoutService
57
+ .TEMPORARY__isLightColorThemeEnabled
58
+ ? CODE_EDITOR_THEME.BUILT_IN__VSCODE_LIGHT
59
+ : CODE_EDITOR_THEME.DEFAULT_DARK,
57
60
  readOnly: true,
58
61
  });
59
62
  setEditor(_editor);