@finos/legend-lego 1.0.5 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,6 +15,5 @@
15
15
  */
16
16
  export declare function setupPureLanguageService(options?: {
17
17
  extraKeywords?: string[] | undefined;
18
- extraParserKeywords?: string[] | undefined;
19
18
  }): void;
20
19
  //# sourceMappingURL=PureLanguageService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PureLanguageService.d.ts","sourceRoot":"","sources":["../../src/code-editor/PureLanguageService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiaH,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE;IACjD,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CAC5C,GAAG,IAAI,CAaP"}
1
+ {"version":3,"file":"PureLanguageService.d.ts","sourceRoot":"","sources":["../../src/code-editor/PureLanguageService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqYH,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE;IACjD,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CACtC,GAAG,IAAI,CAUP"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /* eslint-disable prefer-named-capture-group */
17
- import { PARSER_SECTION_MARKER, PURE_ELEMENT_NAME, PURE_CONNECTION_NAME, PURE_PARSER, } from '@finos/legend-graph';
17
+ import { PURE_ELEMENT_NAME, PURE_CONNECTION_NAME } from '@finos/legend-graph';
18
18
  import { languages as monacoLanguagesAPI } from 'monaco-editor';
19
19
  import { PURE_GRAMMAR_TOKEN } from './PureLanguage.js';
20
20
  import { CODE_EDITOR_LANGUAGE } from './CodeEditorUtils.js';
@@ -72,7 +72,7 @@ const configuration = {
72
72
  * See https://github.com/microsoft/monaco-editor#faq
73
73
  * See https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide
74
74
  */
75
- const generateLanguageMonarch = (extraKeywords, extraParsers) =>
75
+ const generateLanguageMonarch = (extraKeywords) =>
76
76
  // TODO: complete syntax-highlighter for core features like constraint, derived properties, etc.
77
77
  // TODO: add syntax highlighting for modules/plugins (come up with a plugin mechanism to do this).
78
78
  ({
@@ -160,20 +160,6 @@ const generateLanguageMonarch = (extraKeywords, extraParsers) =>
160
160
  '>>',
161
161
  ],
162
162
  languageStructs: ['import', 'native'],
163
- parsers: [
164
- PURE_PARSER.PURE,
165
- PURE_PARSER.CONNECTION,
166
- PURE_PARSER.RUNTIME,
167
- PURE_PARSER.MAPPING,
168
- PURE_PARSER.SERVICE,
169
- PURE_PARSER.FLATDATA,
170
- PURE_PARSER.RELATIONAL,
171
- PURE_PARSER.GENERATION_SPECIFICATION,
172
- PURE_PARSER.FILE_GENERATION_SPECIFICATION,
173
- PURE_PARSER.DATA,
174
- ]
175
- .concat(extraParsers)
176
- .map((parser) => `${PARSER_SECTION_MARKER}${parser}`),
177
163
  // common regular expressions to be used in tokenizer
178
164
  identifier: /[a-zA-Z_$][\w$]*/,
179
165
  symbols: /[=><!~?:&|+\-*/^%#@]+/,
@@ -213,12 +199,7 @@ const generateLanguageMonarch = (extraKeywords, extraParsers) =>
213
199
  [
214
200
  // NOTE: any leading whitespace to the section header is considered invalid syntax
215
201
  /^\s*###[\w]+/,
216
- {
217
- cases: {
218
- '@parsers': PURE_GRAMMAR_TOKEN.PARSER,
219
- '@default': PURE_GRAMMAR_TOKEN.INVALID,
220
- },
221
- },
202
+ PURE_GRAMMAR_TOKEN.PARSER,
222
203
  ],
223
204
  // identifiers and keywords
224
205
  [
@@ -387,6 +368,6 @@ const generateLanguageMonarch = (extraKeywords, extraParsers) =>
387
368
  export function setupPureLanguageService(options) {
388
369
  monacoLanguagesAPI.register({ id: CODE_EDITOR_LANGUAGE.PURE });
389
370
  monacoLanguagesAPI.setLanguageConfiguration(CODE_EDITOR_LANGUAGE.PURE, configuration);
390
- monacoLanguagesAPI.setMonarchTokensProvider(CODE_EDITOR_LANGUAGE.PURE, generateLanguageMonarch(options?.extraKeywords ?? [], options?.extraParserKeywords ?? []));
371
+ monacoLanguagesAPI.setMonarchTokensProvider(CODE_EDITOR_LANGUAGE.PURE, generateLanguageMonarch(options?.extraKeywords ?? []));
391
372
  }
392
373
  //# sourceMappingURL=PureLanguageService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PureLanguageService.js","sourceRoot":"","sources":["../../src/code-editor/PureLanguageService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,+CAA+C;AAC/C,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;GAEG;AACH,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAE3C,6FAA6F;AAC7F,iFAAiF;AACjF,MAAM,aAAa,GAA6C;IAC9D,mGAAmG;IACnG,WAAW,EACT,iGAAiG;IACnG,QAAQ,EAAE;QACR,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;KAC3B;IACD,QAAQ,EAAE;QACR,CAAC,GAAG,EAAE,GAAG,CAAC;QACV,CAAC,GAAG,EAAE,GAAG,CAAC;QACV,CAAC,GAAG,EAAE,GAAG,CAAC;KACX;IACD,gBAAgB,EAAE;QAChB,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;QACzB,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;QACzB,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;QACzB,EAAE,IAAI,EAAE,GAA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C,GAAG,EAAE,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC;SACzC;QAED,UAAU,EAAE;YACV,CAAC,UAAU,EAAE,kBAAkB,CAAC,MAAM,CAAC;YACvC;gBACE,kBAAkB;gBAClB;oBACE,kBAAkB,CAAC,MAAM;oBACzB,GAAG,kBAAkB,CAAC,MAAM,SAAS;oBACrC,kBAAkB,CAAC,MAAM;iBAC1B;aACF;YACD,CAAC,GAAG,EAAE,GAAG,kBAAkB,CAAC,MAAM,UAAU,CAAC;SAC9C;KACF;CACsC,CAAA,CAAC;AAE5C,MAAM,UAAU,wBAAwB,CAAC,OAGxC;IACC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,IAAI,EAAE,CAAC,CAAC;IAC/D,kBAAkB,CAAC,wBAAwB,CACzC,oBAAoB,CAAC,IAAI,EACzB,aAAa,CACd,CAAC;IACF,kBAAkB,CAAC,wBAAwB,CACzC,oBAAoB,CAAC,IAAI,EACzB,uBAAuB,CACrB,OAAO,EAAE,aAAa,IAAI,EAAE,EAC5B,OAAO,EAAE,mBAAmB,IAAI,EAAE,CACnC,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"PureLanguageService.js","sourceRoot":"","sources":["../../src/code-editor/PureLanguageService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,+CAA+C;AAC/C,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;GAEG;AACH,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAE3C,6FAA6F;AAC7F,iFAAiF;AACjF,MAAM,aAAa,GAA6C;IAC9D,mGAAmG;IACnG,WA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AAkB,CAAC,MAAM,EAAE,MAAM,CAAC;SACzC;QAED,UAAU,EAAE;YACV,CAAC,UAAU,EAAE,kBAAkB,CAAC,MAAM,CAAC;YACvC;gBACE,kBAAkB;gBAClB;oBACE,kBAAkB,CAAC,MAAM;oBACzB,GAAG,kBAAkB,CAAC,MAAM,SAAS;oBACrC,kBAAkB,CAAC,MAAM;iBAC1B;aACF;YACD,CAAC,GAAG,EAAE,GAAG,kBAAkB,CAAC,MAAM,UAAU,CAAC;SAC9C;KACF;CACsC,CAAA,CAAC;AAE5C,MAAM,UAAU,wBAAwB,CAAC,OAExC;IACC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,IAAI,EAAE,CAAC,CAAC;IAC/D,kBAAkB,CAAC,wBAAwB,CACzC,oBAAoB,CAAC,IAAI,EACzB,aAAa,CACd,CAAC;IACF,kBAAkB,CAAC,wBAAwB,CACzC,oBAAoB,CAAC,IAAI,EACzB,uBAAuB,CAAC,OAAO,EAAE,aAAa,IAAI,EAAE,CAAC,CACtD,CAAC;AACJ,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-lego v1.0.5
1
+ /** @license @finos/legend-lego v1.0.7
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- @import"@ag-grid-community/styles/ag-grid.css";@import"@ag-grid-community/styles/ag-theme-balham.css";.fuzzy-search__advanced-config__panel{width:100%;background:var(--color-dark-grey-250)}.fuzzy-search__advanced-config__panel__header__label{display:flex;align-items:center;font-weight:500;color:var(--color-light-grey-50);background:var(--color-dark-grey-300);padding:0 1rem;line-height:2rem;font-size:1.2rem;cursor:default;user-select:none}.tab-manager{display:flex;flex:1;overflow:hidden;height:100%}.tab-manager__content{width:calc(100% - 2.8rem);display:flex;overflow-x:overlay}.tab-manager__tab{display:flex;align-items:center;cursor:pointer;color:var(--color-light-grey-400);background:var(--color-dark-grey-80);border-right:.1rem solid var(--color-dark-grey-50)}.tab-manager__tab--active{color:var(--color-light-grey-100);background:var(--color-dark-grey-50)}.tab-manager__tab--dragged{filter:opacity(0.7)}.tab-manager__tab__content{display:flex;align-items:center;height:100%;width:100%}.tab-manager__tab__label{height:100%;color:inherit;padding:0 .5rem 0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-manager__tab__close-btn{visibility:hidden;display:flex;align-items:center}.tab-manager__tab__close-btn svg{color:var(--color-light-grey-200);font-size:1.2rem;margin-right:1rem}.tab-manager__tab--active .tab-manager__tab__close-btn,.tab-manager__tab:hover .tab-manager__tab__close-btn{visibility:visible}.tab-manager__tab--active .tab-manager__tab__close-btn svg,.tab-manager__tab:hover .tab-manager__tab__close-btn svg{color:var(--color-light-grey-100)}.tab-manager__tab__dnd__placeholder{text-align:left;margin:0;padding:0 .5rem;background:var(--color-dark-grey-100)}.tab-manager__menu{min-width:15rem;max-width:30rem;height:100%;padding:0}.tab-manager__menu__toggler{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;color:var(--color-light-grey-400);border-left:.1rem solid var(--color-dark-grey-50);height:100%;width:2.8rem}.tab-manager__menu__item{justify-content:space-between}.tab-manager__menu__item--active,.tab-manager__menu__item:not([disabled]):hover{background:var(--color-dark-grey-250)}.tab-manager__menu__item__label{text-align:left;white-space:nowrap;font-size:1.3rem;overflow:hidden;text-overflow:ellipsis}.tab-manager__menu__item__close-btn{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;padding:.4rem;margin-left:.6rem;flex-direction:end}.tab-manager__menu__item__close-btn svg{width:1.2rem;height:1.2rem}.activity-bar__item .activity-bar__item__experimental-badge{display:flex;align-items:center;justify-content:center;position:absolute;top:.6rem;right:.6rem;height:1.6rem;width:1.6rem;border-radius:50%;background:var(--color-mauve-50);border:.1rem solid var(--color-dark-grey-280)}.activity-bar__item .activity-bar__item__experimental-badge svg{font-size:1.2rem;color:var(--color-dark-grey-280)}.documentation-link{display:inline-flex;align-self:center;color:var(--color-dark-grey-500);cursor:pointer}.documentation-link--inline{margin-left:.5rem}.documentation-preview{display:flex;background:var(--color-dark-grey-85);border:.1rem solid var(--color-dark-grey-280);border-radius:.2rem}.documentation-preview__text{padding:1rem;width:calc(100% - 3rem);color:var(--color-light-grey-400);line-height:2rem}.documentation-preview__hint{display:flex;justify-content:center;padding:1rem 0;width:3rem}.monaco-editor *{font-size:1.4rem}.monaco-editor--small-font *{font-size:1.2rem}.code-editor__container{height:100%;width:100%;position:relative;background:var(--color-dark-grey-50)}.code-editor__body{height:100%;width:100%;position:absolute;top:0;left:0;overflow:hidden}.code-editor__container--padding{border-radius:.2rem}.code-editor__container--padding .code-editor__body{border-radius:.2rem}.packageable-element-option-label{display:flex;align-items:center}.packageable-element-option-label__tag{display:flex;align-items:center;color:var(--color-dark-grey-500);background:var(--color-light-grey-50);border:.1rem solid var(--color-light-grey-180);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label__name{display:flex;align-items:center;height:1.8rem}.packageable-element-option-label__type{margin:-1rem .8rem -1rem -1.2rem;height:3.2rem;padding-left:.5rem;background:rgba(0,0,0,0)}.packageable-element-option-label__type--system{background:var(--color-system)}.packageable-element-option-label__type--generated{background:var(--color-generated)}.packageable-element-option-label__type--dependency{background:var(--color-dependency)}.packageable-element-option-label--dark{display:flex;align-items:center;display:flex}.packageable-element-option-label--dark__tag{display:flex;align-items:center;color:var(--color-dark-grey-250);background:var(--color-dark-grey-400);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label--dark__name{display:flex;align-items:center;height:1.8rem}/*# sourceMappingURL=index.css.map */
17
+ @import"@ag-grid-community/styles/ag-grid.css";@import"@ag-grid-community/styles/ag-theme-balham.css";.fuzzy-search__advanced-config__panel{width:100%;background:var(--color-dark-grey-250)}.fuzzy-search__advanced-config__panel__header__label{display:flex;align-items:center;font-weight:500;color:var(--color-light-grey-50);background:var(--color-dark-grey-300);padding:0 1rem;line-height:2rem;font-size:1.2rem;cursor:default;user-select:none}.tab-manager{display:flex;flex:1;overflow:hidden;height:100%}.tab-manager__content{width:calc(100% - 2.8rem);display:flex;overflow-x:overlay}.tab-manager__tab{display:flex;align-items:center;cursor:pointer;color:var(--color-light-grey-400);background:var(--color-dark-grey-80);border-right:.1rem solid var(--color-dark-grey-50)}.tab-manager__tab--active{color:var(--color-light-grey-100);background:var(--color-dark-grey-50)}.tab-manager__tab--dragged{filter:opacity(0.7)}.tab-manager__tab__content{display:flex;align-items:center;height:100%;width:100%}.tab-manager__tab__label{height:100%;color:inherit;padding:0 .5rem 0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-manager__tab__close-btn{visibility:hidden;display:flex;align-items:center}.tab-manager__tab__close-btn svg{color:var(--color-light-grey-200);font-size:1.2rem;margin-right:1rem}.tab-manager__tab--active .tab-manager__tab__close-btn,.tab-manager__tab:hover .tab-manager__tab__close-btn{visibility:visible}.tab-manager__tab--active .tab-manager__tab__close-btn svg,.tab-manager__tab:hover .tab-manager__tab__close-btn svg{color:var(--color-light-grey-100)}.tab-manager__tab__dnd__placeholder{text-align:left;margin:0;padding:0 .5rem;background:var(--color-dark-grey-100)}.tab-manager__menu{min-width:15rem;max-width:30rem;height:100%;padding:0}.tab-manager__menu__toggler{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;color:var(--color-light-grey-400);border-left:.1rem solid var(--color-dark-grey-50);height:100%;width:2.8rem}.tab-manager__menu__item{justify-content:space-between}.tab-manager__menu__item--active,.tab-manager__menu__item:not([disabled]):hover{background:var(--color-dark-grey-250)}.tab-manager__menu__item__label{text-align:left;white-space:nowrap;font-size:1.3rem;overflow:hidden;text-overflow:ellipsis}.tab-manager__menu__item__close-btn{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;padding:.4rem;margin-left:.6rem;flex-direction:end}.tab-manager__menu__item__close-btn svg{width:1.2rem;height:1.2rem}.activity-bar__item .activity-bar__item__experimental-badge{display:flex;align-items:center;justify-content:center;position:absolute;top:.6rem;right:.6rem;height:1.6rem;width:1.6rem;border-radius:50%;background:var(--color-mauve-50);border:.1rem solid var(--color-dark-grey-280)}.activity-bar__item .activity-bar__item__experimental-badge svg{font-size:1.2rem;color:var(--color-dark-grey-280)}.documentation-link{display:inline-flex;align-self:center;color:var(--color-dark-grey-500);cursor:pointer}.documentation-link--inline{margin-left:.5rem}.documentation-link:hover{color:var(--color-light-grey-400)}.documentation-preview{display:flex;background:var(--color-dark-grey-85);border:.1rem solid var(--color-dark-grey-280);border-radius:.2rem}.documentation-preview__text{padding:1rem;width:calc(100% - 3rem);color:var(--color-light-grey-400);line-height:2rem}.documentation-preview__hint{display:flex;justify-content:center;padding:1rem 0;width:3rem}.monaco-editor *{font-size:1.4rem}.monaco-editor--small-font *{font-size:1.2rem}.code-editor__container{height:100%;width:100%;position:relative;background:var(--color-dark-grey-50)}.code-editor__body{height:100%;width:100%;position:absolute;top:0;left:0;overflow:hidden}.code-editor__container--padding{border-radius:.2rem}.code-editor__container--padding .code-editor__body{border-radius:.2rem}.packageable-element-option-label{display:flex;align-items:center}.packageable-element-option-label__tag{display:flex;align-items:center;color:var(--color-dark-grey-500);background:var(--color-light-grey-50);border:.1rem solid var(--color-light-grey-180);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label__name{display:flex;align-items:center;height:1.8rem}.packageable-element-option-label__type{margin:-1rem .8rem -1rem -1.2rem;height:3.2rem;padding-left:.5rem;background:rgba(0,0,0,0)}.packageable-element-option-label__type--system{background:var(--color-system)}.packageable-element-option-label__type--generated{background:var(--color-generated)}.packageable-element-option-label__type--dependency{background:var(--color-dependency)}.packageable-element-option-label--dark{display:flex;align-items:center;display:flex}.packageable-element-option-label--dark__tag{display:flex;align-items:center;color:var(--color-dark-grey-250);background:var(--color-dark-grey-400);margin-left:1rem;border-radius:.2rem;font-size:1rem;padding:0 .5rem;height:1.6rem;font-weight:500}.packageable-element-option-label--dark__name{display:flex;align-items:center;height:1.8rem}/*# sourceMappingURL=index.css.map */
package/lib/index.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../style/_data-grid.scss","../style/application/_fuzzy-search.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/application/_tab-manager.scss","../style/application/_activity-bar.scss","../style/application/_documentation-link.scss","../style/reset/_monaco-editor.scss","../style/_code-editor.scss","../style/graph-editor/_packageable-element-option-label.scss"],"names":[],"mappings":"AAgBQ,+CACA,uDCCR,sCACE,WACA,sCAEA,qDCQA,aACA,mBDNE,gBACA,iCACA,sCACA,eACA,iBACA,iBACA,eACA,iBEdJ,aACE,aACA,OACA,gBACA,YAEA,sBACE,0BACA,aACA,mBAGF,+BDCA,mBCEE,eACA,kCACA,qCACA,mDAEA,0BACE,kCACA,qCAGF,2BACE,oBAGF,2BDjBF,aACA,mBCmBI,YACA,WAGF,yBACE,YACA,cACA,uBACA,mBACA,gBACA,uBAGF,6BACE,kBDlCJ,aACA,mBCqCI,iCACE,kCACA,iBACA,kBAIJ,4GAEE,mBAEA,oHACE,kCAIJ,oCACE,gBACA,SACA,gBACA,sCAIJ,mBACE,gBACA,gBACA,YACA,UAEA,4BD1EF,aACA,mBACA,uBA2BA,YACA,cCgDI,kCACA,kDACA,YACA,aAGF,yBACE,8BAEA,gFAEE,sCAIJ,gCACE,gBACA,mBACA,iBACA,gBACA,uBAGF,oCDrGF,aACA,mBACA,uBA2BA,YACA,cC2EI,cACA,kBACA,mBAEA,wCACE,aACA,cCpHN,4DFKA,aACA,mBACA,uBEJE,kBACA,UACA,YACA,cACA,aACA,kBACA,iCACA,8CAEA,gEACE,iBACA,iCCfN,oBACE,oBACA,kBACA,iCACA,eAEA,4BACE,kBAIJ,uBACE,aACA,qCACA,8CACA,oBAEA,6BACE,aACA,wBACA,kCACA,iBAGF,6BHPA,aACA,uBGSE,eACA,WC9BJ,iBACE,iBAGF,6BACE,iBCJA,wBACE,YACA,WACA,kBACA,qCAGF,mBACE,YACA,WACA,kBACA,MACA,OACA,gBAGF,iCACE,oBAGF,oDACE,oBCpBJ,kCNYE,aACA,mBMVA,uCNSA,aACA,mBMPE,iCACA,sCACA,+CACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,wCNLA,aACA,mBMOE,cAIJ,wCACE,iCACA,cACA,mBACA,yBAEA,gDACE,+BAGF,mDACE,kCAGF,oDACE,mCAIJ,wCN/BE,aACA,mBMiCA,aAEA,6CNpCA,aACA,mBMsCE,iCACA,sCACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,8CNjDA,aACA,mBMmDE","file":"index.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../style/_data-grid.scss","../style/application/_fuzzy-search.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/application/_tab-manager.scss","../style/application/_activity-bar.scss","../style/application/_documentation-link.scss","../style/reset/_monaco-editor.scss","../style/_code-editor.scss","../style/graph-editor/_packageable-element-option-label.scss"],"names":[],"mappings":"AAgBQ,+CACA,uDCCR,sCACE,WACA,sCAEA,qDCQA,aACA,mBDNE,gBACA,iCACA,sCACA,eACA,iBACA,iBACA,eACA,iBEdJ,aACE,aACA,OACA,gBACA,YAEA,sBACE,0BACA,aACA,mBAGF,+BDCA,mBCEE,eACA,kCACA,qCACA,mDAEA,0BACE,kCACA,qCAGF,2BACE,oBAGF,2BDjBF,aACA,mBCmBI,YACA,WAGF,yBACE,YACA,cACA,uBACA,mBACA,gBACA,uBAGF,6BACE,kBDlCJ,aACA,mBCqCI,iCACE,kCACA,iBACA,kBAIJ,4GAEE,mBAEA,oHACE,kCAIJ,oCACE,gBACA,SACA,gBACA,sCAIJ,mBACE,gBACA,gBACA,YACA,UAEA,4BD1EF,aACA,mBACA,uBA2BA,YACA,cCgDI,kCACA,kDACA,YACA,aAGF,yBACE,8BAEA,gFAEE,sCAIJ,gCACE,gBACA,mBACA,iBACA,gBACA,uBAGF,oCDrGF,aACA,mBACA,uBA2BA,YACA,cC2EI,cACA,kBACA,mBAEA,wCACE,aACA,cCpHN,4DFKA,aACA,mBACA,uBEJE,kBACA,UACA,YACA,cACA,aACA,kBACA,iCACA,8CAEA,gEACE,iBACA,iCCfN,oBACE,oBACA,kBACA,iCACA,eAEA,4BACE,kBAIJ,0BACE,kCAGF,uBACE,aACA,qCACA,8CACA,oBAEA,6BACE,aACA,wBACA,kCACA,iBAGF,6BHXA,aACA,uBGaE,eACA,WClCJ,iBACE,iBAGF,6BACE,iBCJA,wBACE,YACA,WACA,kBACA,qCAGF,mBACE,YACA,WACA,kBACA,MACA,OACA,gBAGF,iCACE,oBAGF,oDACE,oBCpBJ,kCNYE,aACA,mBMVA,uCNSA,aACA,mBMPE,iCACA,sCACA,+CACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,wCNLA,aACA,mBMOE,cAIJ,wCACE,iCACA,cACA,mBACA,yBAEA,gDACE,+BAGF,mDACE,kCAGF,oDACE,mCAIJ,wCN/BE,aACA,mBMiCA,aAEA,6CNpCA,aACA,mBMsCE,iCACA,sCACA,iBACA,oBACA,eACA,gBACA,cACA,gBAGF,8CNjDA,aACA,mBMmDE","file":"index.css"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-lego",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Legend shared advanced application components and building blocks",
5
5
  "keywords": [
6
6
  "legend",
@@ -51,10 +51,10 @@
51
51
  "@ag-grid-community/core": "29.3.4",
52
52
  "@ag-grid-community/react": "29.3.4",
53
53
  "@ag-grid-community/styles": "29.3.4",
54
- "@finos/legend-application": "15.0.12",
55
- "@finos/legend-art": "7.0.13",
56
- "@finos/legend-graph": "28.1.7",
57
- "@finos/legend-shared": "10.0.5",
54
+ "@finos/legend-application": "15.0.14",
55
+ "@finos/legend-art": "7.0.15",
56
+ "@finos/legend-graph": "29.0.0",
57
+ "@finos/legend-shared": "10.0.6",
58
58
  "@types/css-font-loading-module": "0.0.8",
59
59
  "@types/react": "18.2.6",
60
60
  "@types/react-dom": "18.2.4",
@@ -66,7 +66,7 @@
66
66
  "react-dom": "18.2.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@finos/legend-dev-utils": "2.0.60",
69
+ "@finos/legend-dev-utils": "2.0.61",
70
70
  "@jest/globals": "29.5.0",
71
71
  "cross-env": "7.0.3",
72
72
  "eslint": "8.40.0",
@@ -15,12 +15,7 @@
15
15
  */
16
16
 
17
17
  /* eslint-disable prefer-named-capture-group */
18
- import {
19
- PARSER_SECTION_MARKER,
20
- PURE_ELEMENT_NAME,
21
- PURE_CONNECTION_NAME,
22
- PURE_PARSER,
23
- } from '@finos/legend-graph';
18
+ import { PURE_ELEMENT_NAME, PURE_CONNECTION_NAME } from '@finos/legend-graph';
24
19
  import { languages as monacoLanguagesAPI } from 'monaco-editor';
25
20
  import { PURE_GRAMMAR_TOKEN } from './PureLanguage.js';
26
21
  import { CODE_EDITOR_LANGUAGE } from './CodeEditorUtils.js';
@@ -84,7 +79,6 @@ const configuration: monacoLanguagesAPI.LanguageConfiguration = {
84
79
  */
85
80
  const generateLanguageMonarch = (
86
81
  extraKeywords: string[],
87
- extraParsers: string[],
88
82
  ): monacoLanguagesAPI.IMonarchLanguage =>
89
83
  // TODO: complete syntax-highlighter for core features like constraint, derived properties, etc.
90
84
  // TODO: add syntax highlighting for modules/plugins (come up with a plugin mechanism to do this).
@@ -177,23 +171,6 @@ const generateLanguageMonarch = (
177
171
 
178
172
  languageStructs: ['import', 'native'],
179
173
 
180
- parsers: (
181
- [
182
- PURE_PARSER.PURE,
183
- PURE_PARSER.CONNECTION,
184
- PURE_PARSER.RUNTIME,
185
- PURE_PARSER.MAPPING,
186
- PURE_PARSER.SERVICE,
187
- PURE_PARSER.FLATDATA,
188
- PURE_PARSER.RELATIONAL,
189
- PURE_PARSER.GENERATION_SPECIFICATION,
190
- PURE_PARSER.FILE_GENERATION_SPECIFICATION,
191
- PURE_PARSER.DATA,
192
- ] as string[]
193
- )
194
- .concat(extraParsers)
195
- .map((parser) => `${PARSER_SECTION_MARKER}${parser}`),
196
-
197
174
  // common regular expressions to be used in tokenizer
198
175
  identifier: /[a-zA-Z_$][\w$]*/,
199
176
  symbols: /[=><!~?:&|+\-*/^%#@]+/,
@@ -237,12 +214,7 @@ const generateLanguageMonarch = (
237
214
  [
238
215
  // NOTE: any leading whitespace to the section header is considered invalid syntax
239
216
  /^\s*###[\w]+/,
240
- {
241
- cases: {
242
- '@parsers': PURE_GRAMMAR_TOKEN.PARSER,
243
- '@default': PURE_GRAMMAR_TOKEN.INVALID,
244
- },
245
- },
217
+ PURE_GRAMMAR_TOKEN.PARSER,
246
218
  ],
247
219
 
248
220
  // identifiers and keywords
@@ -431,7 +403,6 @@ const generateLanguageMonarch = (
431
403
 
432
404
  export function setupPureLanguageService(options?: {
433
405
  extraKeywords?: string[] | undefined;
434
- extraParserKeywords?: string[] | undefined;
435
406
  }): void {
436
407
  monacoLanguagesAPI.register({ id: CODE_EDITOR_LANGUAGE.PURE });
437
408
  monacoLanguagesAPI.setLanguageConfiguration(
@@ -440,9 +411,6 @@ export function setupPureLanguageService(options?: {
440
411
  );
441
412
  monacoLanguagesAPI.setMonarchTokensProvider(
442
413
  CODE_EDITOR_LANGUAGE.PURE,
443
- generateLanguageMonarch(
444
- options?.extraKeywords ?? [],
445
- options?.extraParserKeywords ?? [],
446
- ),
414
+ generateLanguageMonarch(options?.extraKeywords ?? []),
447
415
  );
448
416
  }