@eclipse-lyra/core 0.7.5 → 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.
@@ -1,6 +1,6 @@
1
1
  import { l as rootContext, h as contributionRegistry, b as TOPIC_CONTRIBUTEIONS_CHANGED, w as watchSignal, p as partDirtySignal, d as activePartSignal, c as activeEditorSignal, i as createLogger, e as activeSelectionSignal, f as activeTasksSignal, t as toastError, m as toastInfo, o as registerLogHandler, q as unregisterLogHandler, L as LyraWidget, r as registerAll, u as uiContext, n as toastWarning } from "./icon-DN6fp0dg.js";
2
2
  import { html, css, nothing, render } from "lit";
3
- import { n as appSettings, l as TOPIC_SETTINGS_CHANGED, t as persistenceService, E as EDITOR_AREA_MAIN, c as LyraPart, q as extensionRegistry, H as HIDE_DOT_RESOURCE, o as confirmDialog, g as TOOLBAR_BOTTOM_CENTER, v as taskService, b as LyraElement, w as TOPIC_EXTENSIONS_CHANGED, m as appLoaderService, u as promptDialog, p as esmShService, D as DIALOG_CONTRIBUTION_TARGET, x as CLOSE_BUTTON, y as dialogService, d as SIDEBAR_MAIN, h as TOOLBAR_BOTTOM_END, k as TOOLBAR_MAIN_RIGHT, f as SYSTEM_VIEWS, z as constants, L as LyraContainer, i as TOOLBAR_MAIN, j as TOOLBAR_MAIN_CENTER, T as TOOLBAR_BOTTOM, e as SIDEBAR_MAIN_BOTTOM, P as PANEL_BOTTOM, S as SIDEBAR_AUXILIARY } from "./resizable-grid-BRH3MyZK.js";
3
+ import { n as appSettings, l as TOPIC_SETTINGS_CHANGED, t as persistenceService, E as EDITOR_AREA_MAIN, c as LyraPart, q as extensionRegistry, H as HIDE_DOT_RESOURCE, o as confirmDialog, g as TOOLBAR_BOTTOM_CENTER, v as taskService, b as LyraElement, w as TOPIC_EXTENSIONS_CHANGED, m as appLoaderService, u as promptDialog, p as esmShService, D as DIALOG_CONTRIBUTION_TARGET, x as CLOSE_BUTTON, y as dialogService, d as SIDEBAR_MAIN, h as TOOLBAR_BOTTOM_END, k as TOOLBAR_MAIN_RIGHT, f as SYSTEM_VIEWS, z as constants, L as LyraContainer, i as TOOLBAR_MAIN, j as TOOLBAR_MAIN_CENTER, T as TOOLBAR_BOTTOM, e as SIDEBAR_MAIN_BOTTOM, P as PANEL_BOTTOM, S as SIDEBAR_AUXILIARY } from "./resizable-grid-BP9wOk_x.js";
4
4
  import { signal } from "@lit-labs/signals";
5
5
  import { subscribe, publish } from "./core/events.js";
6
6
  import "./externals/webawesome.js";
@@ -1500,10 +1500,10 @@ class EditorRegistry {
1500
1500
  if (!editorInput) {
1501
1501
  return;
1502
1502
  }
1503
- if (!("widgetFactory" in editorInput)) {
1503
+ if (!("component" in editorInput)) {
1504
1504
  editorInput = await this.handleInput(editorInput, preferredEditorId);
1505
1505
  }
1506
- if (!editorInput || !("widgetFactory" in editorInput)) {
1506
+ if (!editorInput || !("component" in editorInput)) {
1507
1507
  return;
1508
1508
  }
1509
1509
  const editorId = editorInput.editorId ?? preferredEditorId;
@@ -1515,7 +1515,7 @@ class EditorRegistry {
1515
1515
  icon: editorInput.icon,
1516
1516
  closable: true,
1517
1517
  noOverflow: editorInput.noOverflow,
1518
- component: editorInput.widgetFactory
1518
+ component: editorInput.component
1519
1519
  });
1520
1520
  }
1521
1521
  async openTab(tabContribution) {
@@ -2251,7 +2251,7 @@ var __decorateClass$7 = (decorators, target, key, kind) => {
2251
2251
  };
2252
2252
  const t$4 = i18n("tasks");
2253
2253
  contributionRegistry.registerContribution(TOOLBAR_BOTTOM_CENTER, {
2254
- html: "<lyra-tasks></lyra-tasks>"
2254
+ component: "<lyra-tasks></lyra-tasks>"
2255
2255
  });
2256
2256
  let progressDialogContainer = null;
2257
2257
  function getProgressDialogContainer() {
@@ -2489,7 +2489,7 @@ var __decorateClass$6 = (decorators, target, key, kind) => {
2489
2489
  };
2490
2490
  const t$3 = i18n("partname");
2491
2491
  contributionRegistry.registerContribution(TOOLBAR_BOTTOM_CENTER, {
2492
- html: "<lyra-part-name></lyra-part-name>"
2492
+ component: "<lyra-part-name></lyra-part-name>"
2493
2493
  });
2494
2494
  let LyraPartName = class extends LyraElement {
2495
2495
  doBeforeUI() {
@@ -3957,15 +3957,15 @@ contributionRegistry.registerContribution(TOOLBAR_BOTTOM_END, {
3957
3957
  });
3958
3958
  contributionRegistry.registerContribution(TOOLBAR_BOTTOM_END, {
3959
3959
  label: `Fast Views`,
3960
- html: `<lyra-fastviews target="system.fastviews-bottomend" icon="bolt" title="Fast Views"></lyra-fastviews>`
3960
+ component: `<lyra-fastviews target="system.fastviews-bottomend" icon="bolt" title="Fast Views"></lyra-fastviews>`
3961
3961
  });
3962
3962
  contributionRegistry.registerContribution(TOOLBAR_BOTTOM_END, {
3963
3963
  label: "Language",
3964
- html: () => html`<lyra-language-selector></lyra-language-selector>`
3964
+ component: () => html`<lyra-language-selector></lyra-language-selector>`
3965
3965
  });
3966
3966
  contributionRegistry.registerContribution(TOOLBAR_MAIN_RIGHT, {
3967
3967
  label: "App Switcher",
3968
- html: () => html`<lyra-app-switcher></lyra-app-switcher>`
3968
+ component: () => html`<lyra-app-switcher></lyra-app-switcher>`
3969
3969
  });
3970
3970
  const logger = createLogger("MarketplaceCatalogContributions");
3971
3971
  logger.debug("Marketplace catalog URLs are set by the app host via applyAppHostConfig()");
@@ -4608,7 +4608,7 @@ registerAll({
4608
4608
  icon: "puzzle-piece",
4609
4609
  state: {},
4610
4610
  noOverflow: true,
4611
- widgetFactory: () => html`<lyra-extensions></lyra-extensions>`
4611
+ component: () => html`<lyra-extensions></lyra-extensions>`
4612
4612
  };
4613
4613
  editorRegistry.loadEditor(editorInput, "extensions-editor").then();
4614
4614
  }
@@ -4904,4 +4904,4 @@ export {
4904
4904
  treeNodeComparator as t,
4905
4905
  workspaceService as w
4906
4906
  };
4907
- //# sourceMappingURL=standard-layout-BSGa06lP.js.map
4907
+ //# sourceMappingURL=standard-layout-Efok-voU.js.map