@vscode/markdown-editor 0.0.2-89 → 0.0.2-90

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.
@@ -121,6 +121,7 @@ declare class PhysicalIframe implements IDisposable {
121
121
  private readonly _frameRoot;
122
122
  private readonly _scriptNonce;
123
123
  private readonly _themeCss;
124
+ private readonly _iframeBootstrapUrl;
124
125
  readonly iframe: HTMLIFrameElement;
125
126
  editor: VirtualizedIframeEmbeddedEditor | undefined;
126
127
  readonly pool: PhysicalIframePool;
@@ -130,7 +131,7 @@ declare class PhysicalIframe implements IDisposable {
130
131
  private _reportedHeight;
131
132
  private _disposed;
132
133
  private readonly _onWindowMessage;
133
- constructor(pool: PhysicalIframePool, _descriptor: ResolvedIframeEmbeddedEditor, _hostTransport: IframeEmbeddedEditorHostTransport | undefined, frameLayer: HTMLElement, _frameRoot: HTMLElement, _scriptNonce: string | undefined, _themeCss: string | (() => string) | undefined);
134
+ constructor(pool: PhysicalIframePool, _descriptor: ResolvedIframeEmbeddedEditor, _hostTransport: IframeEmbeddedEditorHostTransport | undefined, frameLayer: HTMLElement, _frameRoot: HTMLElement, _scriptNonce: string | undefined, _themeCss: string | (() => string) | undefined, _iframeBootstrapUrl: string | undefined);
134
135
  bind(editor: VirtualizedIframeEmbeddedEditor): void;
135
136
  unbind(): void;
136
137
  layout(editor: VirtualizedIframeEmbeddedEditor): void;
@@ -7236,24 +7236,25 @@ class Nl {
7236
7236
  this._frameLayer,
7237
7237
  this._frameRoot,
7238
7238
  this._scriptNonce,
7239
- this._themeCss
7239
+ this._themeCss,
7240
+ this._iframeBootstrapUrl
7240
7241
  );
7241
7242
  return this._frames.add(n), n;
7242
7243
  }
7243
7244
  }
7244
7245
  class Cl {
7245
- constructor(t, n, r, o, i, s, c) {
7246
- this._descriptor = n, this._hostTransport = r, this._frameRoot = i, this._scriptNonce = s, this._themeCss = c, this.pool = t;
7247
- const a = document.createElement("iframe");
7248
- a.setAttribute("sandbox", Jr(n.sandbox)), a.setAttribute("allow", n.sandbox?.clipboardWrite ? "clipboard-write" : ""), a.style.width = "100%", a.style.border = "none", a.style.display = "block", a.style.position = "absolute", a.style.pointerEvents = "auto", a.style.background = "transparent", a.style.height = `${n.initialHeight ?? 120}px`, t.park(a), a.addEventListener("blur", () => {
7249
- const u = this.editor;
7250
- u && !u.visible && this.pool.release(u);
7251
- }), this.iframe = a, this._onWindowMessage = (u) => {
7252
- if (u.source !== a.contentWindow)
7246
+ constructor(t, n, r, o, i, s, c, a) {
7247
+ this._descriptor = n, this._hostTransport = r, this._frameRoot = i, this._scriptNonce = s, this._themeCss = c, this._iframeBootstrapUrl = a, this.pool = t;
7248
+ const u = document.createElement("iframe");
7249
+ u.setAttribute("sandbox", Jr(n.sandbox)), u.setAttribute("allow", n.sandbox?.clipboardWrite ? "clipboard-write" : ""), u.style.width = "100%", u.style.border = "none", u.style.display = "block", u.style.position = "absolute", u.style.pointerEvents = "auto", u.style.background = "transparent", u.style.height = `${n.initialHeight ?? 120}px`, t.park(u), u.addEventListener("blur", () => {
7250
+ const d = this.editor;
7251
+ d && !d.visible && this.pool.release(d);
7252
+ }), this.iframe = u, this._onWindowMessage = (d) => {
7253
+ if (d.source !== u.contentWindow)
7253
7254
  return;
7254
- const d = u.data;
7255
- d?.type !== Xe || typeof d.height != "number" || !Number.isFinite(d.height) || this._applyReportedHeight(d.height);
7256
- }, window.addEventListener("message", this._onWindowMessage), o.appendChild(a), queueMicrotask(() => this._setup());
7255
+ const l = d.data;
7256
+ l?.type !== Xe || typeof l.height != "number" || !Number.isFinite(l.height) || this._applyReportedHeight(l.height);
7257
+ }, window.addEventListener("message", this._onWindowMessage), o.appendChild(u), queueMicrotask(() => this._setup());
7257
7258
  }
7258
7259
  iframe;
7259
7260
  editor;