@mica-js/editor 0.11.0 → 0.12.0

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.
@@ -588,6 +588,13 @@ export declare interface IFusedSimulationService {
588
588
  reset(): Promise<void>;
589
589
  /** Releases the models and keeps the captured package bytes for the next load. */
590
590
  dispose(): Promise<void>;
591
+ /**
592
+ * Drops cached program artifacts so the next resolution asks the host again.
593
+ *
594
+ * `projectId` omitted means every project; with a `fingerprint`, entries whose cached artifact
595
+ * already carries that fingerprint are kept.
596
+ */
597
+ invalidatePrograms(projectId?: string, fingerprint?: string): Promise<void>;
591
598
  call(instanceId: string, method: string, params: Value): Promise<Value>;
592
599
  getState(): IFusedSessionState;
593
600
  onDidChangeState(listener: (state: IFusedSessionState) => void): () => void;
@@ -1,3 +1,3 @@
1
1
  import { c as toWireFailure, i as isFusedBridgeError, n as FusedBridgeError, o as mapWireFailure, r as fromWireFailure, t as FUSED_WIRE_FAILURE } from "./wire-BDHL5Aj9.js";
2
- import { _ as fusedModelSinkService, a as createFusedRuntime, c as createModelEventRouter, d as createHostPackageGateway, f as packageLockKey, g as fusedModelChannelService, h as fusedHostResourceService, i as startFusedSimulationGuest, l as createFusedDisplay, m as fusedHostPackageService, n as startFusedDisplayGuest, o as createHostModelRouter, p as fusedDisplayService, r as createViewSession, s as channelKey, t as loadFusedWorkerFactories, u as connectFusedWorkbench, v as fusedSimulationService } from "./runtime-DtM7aYdB.js";
2
+ import { _ as fusedModelSinkService, a as createFusedRuntime, c as createModelEventRouter, d as createHostPackageGateway, f as packageLockKey, g as fusedModelChannelService, h as fusedHostResourceService, i as startFusedSimulationGuest, l as createFusedDisplay, m as fusedHostPackageService, n as startFusedDisplayGuest, o as createHostModelRouter, p as fusedDisplayService, r as createViewSession, s as channelKey, t as loadFusedWorkerFactories, u as connectFusedWorkbench, v as fusedSimulationService } from "./runtime-hyeAcSP7.js";
3
3
  export { FUSED_WIRE_FAILURE, FusedBridgeError, channelKey, connectFusedWorkbench, createFusedDisplay, createFusedRuntime, createHostModelRouter, createHostPackageGateway, createModelEventRouter, createViewSession, fromWireFailure, fusedDisplayService, fusedHostPackageService, fusedHostResourceService, fusedModelChannelService, fusedModelSinkService, fusedSimulationService, isFusedBridgeError, loadFusedWorkerFactories, mapWireFailure, packageLockKey, startFusedDisplayGuest, startFusedSimulationGuest, toWireFailure };
package/dist/fused.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as planPolylineSegmentDrag, n as orthogonalWaypoints, t as extendWirePath } from "./wire-JZIiIOI0.js";
2
2
  import { Q as isHtmlViewError, _ as resolveTheme, a as createHtmlViewHost, f as WORKBENCH_DARK_COLORS, g as readCanvasTheme, h as normalizeTheme, m as WORKBENCH_THEME_CSS_VARIABLES, p as WORKBENCH_LIGHT_COLORS, v as themeStyle } from "./html-HXwZq1my.js";
3
- import { a as createFusedRuntime } from "./runtime-DtM7aYdB.js";
3
+ import { a as createFusedRuntime } from "./runtime-hyeAcSP7.js";
4
4
  import { DisposableStore, Emitter } from "@mica-js/core/lifecycle";
5
5
  import { projectOnSegment } from "@mica-js/document/schematic";
6
6
  import { timePs } from "@mica-js/core";
@@ -6361,7 +6361,7 @@ async function createWorkbench(options) {
6361
6361
  const mount = globalThis.document.createElement("div");
6362
6362
  mount.style.cssText = "width:100%;height:100%;min-height:0;min-width:0;";
6363
6363
  const environment = globalThis.document.createElement("div");
6364
- environment.hidden = true;
6364
+ environment.style.position = "fixed";
6365
6365
  const root = createRoot(mount);
6366
6366
  let registry;
6367
6367
  let state = computeState();