@eclipse-lyra/extension-monaco-editor 0.0.0 → 0.7.6

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/dist/index.js CHANGED
@@ -176,7 +176,7 @@ extensionRegistry.registerExtension({
176
176
  id: pkg.name,
177
177
  name: t("EXT_MONACO_NAME"),
178
178
  description: t("EXT_MONACO_DESC"),
179
- loader: () => import("./monaco-editor-extension-BxJuxau2.js"),
179
+ loader: () => import("./monaco-editor-extension-CgNLqM8q.js"),
180
180
  icon: "file-pen"
181
181
  });
182
182
  export {
@@ -18,9 +18,9 @@ editorRegistry.registerEditorInputHandler({
18
18
  noOverflow: false,
19
19
  state: {}
20
20
  };
21
- editorInput.widgetFactory = () => html`
21
+ editorInput.component = () => html`
22
22
  <lyra-monaco-editor .input=${editorInput}></lyra-monaco-editor>`;
23
23
  return editorInput;
24
24
  }
25
25
  });
26
- //# sourceMappingURL=monaco-editor-extension-BxJuxau2.js.map
26
+ //# sourceMappingURL=monaco-editor-extension-CgNLqM8q.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"monaco-editor-extension-BxJuxau2.js","sources":["../src/monaco-editor-extension.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { EditorInput, editorRegistry, File } from \"@eclipse-lyra/core\";\n\nimport \"./monaco-widget\";\n\neditorRegistry.registerEditorInputHandler({\n editorId: \"system.monaco-editor\",\n label: \"Code\",\n icon: \"file-pen\",\n lazyInit: async () => {\n await import('./monaco-editor');\n },\n canHandle: (input: unknown) =>\n input instanceof File && !input.getName().toLowerCase().endsWith(\".py\"),\n handle: async (input: File) => {\n const editorInput = {\n title: input.getName(),\n data: input,\n key: input.getName(),\n icon: \"file-pen\",\n noOverflow: false,\n state: {},\n } as EditorInput\n editorInput.widgetFactory = () => html`\n <lyra-monaco-editor .input=${editorInput}></lyra-monaco-editor>`\n return editorInput;\n }\n})\n"],"names":[],"mappings":";;;AAKA,eAAe,2BAA2B;AAAA,EACtC,UAAU;AAAA,EACV,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,YAAY;AAClB,UAAM,OAAO,6BAAiB;AAAA,EAClC;AAAA,EACA,WAAW,CAAC,UACR,iBAAiB,QAAQ,CAAC,MAAM,UAAU,cAAc,SAAS,KAAK;AAAA,EAC1E,QAAQ,OAAO,UAAgB;AAC3B,UAAM,cAAc;AAAA,MAChB,OAAO,MAAM,QAAA;AAAA,MACb,MAAM;AAAA,MACN,KAAK,MAAM,QAAA;AAAA,MACX,MAAM;AAAA,MACN,YAAY;AAAA,MACZ,OAAO,CAAA;AAAA,IAAC;AAEZ,gBAAY,gBAAgB,MAAM;AAAA,yCACD,WAAW;AAC5C,WAAO;AAAA,EACX;AACJ,CAAC;"}
1
+ {"version":3,"file":"monaco-editor-extension-CgNLqM8q.js","sources":["../src/monaco-editor-extension.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { EditorInput, editorRegistry, File } from \"@eclipse-lyra/core\";\n\nimport \"./monaco-widget\";\n\neditorRegistry.registerEditorInputHandler({\n editorId: \"system.monaco-editor\",\n label: \"Code\",\n icon: \"file-pen\",\n lazyInit: async () => {\n await import('./monaco-editor');\n },\n canHandle: (input: unknown) =>\n input instanceof File && !input.getName().toLowerCase().endsWith(\".py\"),\n handle: async (input: File) => {\n const editorInput = {\n title: input.getName(),\n data: input,\n key: input.getName(),\n icon: \"file-pen\",\n noOverflow: false,\n state: {},\n } as EditorInput\n editorInput.component = () => html`\n <lyra-monaco-editor .input=${editorInput}></lyra-monaco-editor>`\n return editorInput;\n }\n})\n"],"names":[],"mappings":";;;AAKA,eAAe,2BAA2B;AAAA,EACtC,UAAU;AAAA,EACV,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,YAAY;AAClB,UAAM,OAAO,6BAAiB;AAAA,EAClC;AAAA,EACA,WAAW,CAAC,UACR,iBAAiB,QAAQ,CAAC,MAAM,UAAU,cAAc,SAAS,KAAK;AAAA,EAC1E,QAAQ,OAAO,UAAgB;AAC3B,UAAM,cAAc;AAAA,MAChB,OAAO,MAAM,QAAA;AAAA,MACb,MAAM;AAAA,MACN,KAAK,MAAM,QAAA;AAAA,MACX,MAAM;AAAA,MACN,YAAY;AAAA,MACZ,OAAO,CAAA;AAAA,IAAC;AAEZ,gBAAY,YAAY,MAAM;AAAA,yCACG,WAAW;AAC5C,WAAO;AAAA,EACX;AACJ,CAAC;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-lyra/extension-monaco-editor",
3
- "version": "0.0.0",
3
+ "version": "0.7.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
@@ -25,5 +25,9 @@
25
25
  ],
26
26
  "scripts": {
27
27
  "build": "vite build"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/eclipse-lyra/core"
28
32
  }
29
33
  }