@finos/legend-lego 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { PARSER_SECTION_MARKER, PURE_PARSER } from '@finos/legend-graph';
17
- import { getNullableFirstElement, guaranteeNonNullable, hasWhiteSpace, } from '@finos/legend-shared';
17
+ import { getNullableFirstEntry, guaranteeNonNullable, hasWhiteSpace, } from '@finos/legend-shared';
18
18
  import { languages as monacoLanguagesAPI, } from 'monaco-editor';
19
19
  export const getParserKeywordSuggestions = (position, model, suggestions) => {
20
20
  const results = [];
@@ -231,7 +231,7 @@ export const isTokenOneOf = (token, baseTokens, exact = false) => {
231
231
  if (exact) {
232
232
  return baseTokens.map((baseToken) => `${baseToken}.pure`).includes(token);
233
233
  }
234
- const baseToken = guaranteeNonNullable(getNullableFirstElement(token.split('.')));
234
+ const baseToken = guaranteeNonNullable(getNullableFirstEntry(token.split('.')));
235
235
  return baseTokens.includes(baseToken);
236
236
  };
237
237
  //# sourceMappingURL=PureLanguageCodeEditorSupport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PureLanguageCodeEditorSupport.js","sourceRoot":"","sources":["../../src/code-editor/PureLanguageCodeEditorSupport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,SAAS,IAAI,kBAAkB,GAEhC,MAAM,eAAe,CAAC;AAmDvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,QAAmB,EACnB,KAAiC,EACjC,WAAwC,EACH,EAAE;IACvC,MAAM,OAAO,GAAwC,EAAE,CAAC;IACxD,MAAM,WAAW,GAAG,KAAK,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAEzD,iCAAiC;IACjC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,EACJ,EAAE;IACX,IAAI,KAAK,EAAE;QACT,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC3E;IACD,MAAM,SAAS,GAAG,oBAAoB,CACpC,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CACxC,CAAC;IACF,OAAO,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AACxC,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-lego v0.1.7
1
+ /** @license @finos/legend-lego v0.1.9
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": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Legend shared advanced application components and building blocks",
5
5
  "keywords": [
6
6
  "legend",
@@ -47,14 +47,14 @@
47
47
  "test:watch": "jest --watch"
48
48
  },
49
49
  "dependencies": {
50
- "@ag-grid-community/client-side-row-model": "29.2.0",
51
- "@ag-grid-community/core": "29.2.0",
52
- "@ag-grid-community/react": "29.2.0",
53
- "@ag-grid-community/styles": "29.2.0",
54
- "@finos/legend-application": "15.0.1",
55
- "@finos/legend-art": "7.0.2",
56
- "@finos/legend-graph": "28.0.2",
57
- "@finos/legend-shared": "9.0.0",
50
+ "@ag-grid-community/client-side-row-model": "29.3.0",
51
+ "@ag-grid-community/core": "29.3.0",
52
+ "@ag-grid-community/react": "29.3.0",
53
+ "@ag-grid-community/styles": "29.3.0",
54
+ "@finos/legend-application": "15.0.3",
55
+ "@finos/legend-art": "7.0.4",
56
+ "@finos/legend-graph": "28.1.0",
57
+ "@finos/legend-shared": "10.0.1",
58
58
  "@types/css-font-loading-module": "0.0.8",
59
59
  "@types/react": "18.0.37",
60
60
  "@types/react-dom": "18.0.11",
@@ -66,7 +66,7 @@
66
66
  "react-dom": "18.2.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@finos/legend-dev-utils": "2.0.54",
69
+ "@finos/legend-dev-utils": "2.0.55",
70
70
  "@jest/globals": "29.5.0",
71
71
  "cross-env": "7.0.3",
72
72
  "eslint": "8.38.0",
@@ -17,7 +17,7 @@
17
17
  import type { DocumentationEntry } from '@finos/legend-application';
18
18
  import { PARSER_SECTION_MARKER, PURE_PARSER } from '@finos/legend-graph';
19
19
  import {
20
- getNullableFirstElement,
20
+ getNullableFirstEntry,
21
21
  guaranteeNonNullable,
22
22
  hasWhiteSpace,
23
23
  } from '@finos/legend-shared';
@@ -332,7 +332,7 @@ export const isTokenOneOf = (
332
332
  return baseTokens.map((baseToken) => `${baseToken}.pure`).includes(token);
333
333
  }
334
334
  const baseToken = guaranteeNonNullable(
335
- getNullableFirstElement(token.split('.')),
335
+ getNullableFirstEntry(token.split('.')),
336
336
  );
337
337
  return baseTokens.includes(baseToken);
338
338
  };