@vscode/markdown-editor 0.0.2-52 → 0.0.2-54
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.d.ts +4 -1
- package/dist/index.js +510 -506
- package/dist/index.js.map +1 -1
- package/dist/web-editors.d.ts +0 -32
- package/dist/web-editors.js +899 -1009
- package/dist/web-editors.js.map +1 -1
- package/package.json +8 -4
package/dist/web-editors.d.ts
CHANGED
|
@@ -20,12 +20,6 @@ export declare type CodeBlockEditorSelector = {
|
|
|
20
20
|
readonly languagePrefix: string;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* Build an {@link IEmbeddedCodeEditorFactory} that renders matching code blocks
|
|
25
|
-
* with the sample web editor embedded in an iframe.
|
|
26
|
-
*/
|
|
27
|
-
export declare function createIframeEmbeddedEditorFactory(options: IframeEmbeddedEditorOptions): IEmbeddedCodeEditorFactory;
|
|
28
|
-
|
|
29
23
|
/**
|
|
30
24
|
* A live editor embedded in place of a fenced code block's *rendered* form.
|
|
31
25
|
*
|
|
@@ -77,32 +71,6 @@ declare interface IEmbeddedCodeEditorFactory {
|
|
|
77
71
|
create(language: string, initialContent: string): IEmbeddedCodeEditor | undefined;
|
|
78
72
|
}
|
|
79
73
|
|
|
80
|
-
declare interface IframeEmbeddedEditorBaseOptions {
|
|
81
|
-
/** Decide whether this factory handles `language`. */
|
|
82
|
-
readonly handlesLanguage: (language: string) => boolean;
|
|
83
|
-
/** Content representation used by the guest. Default `text`. */
|
|
84
|
-
readonly contentType?: ContentType;
|
|
85
|
-
/** Nonce applied to author and host-injected scripts for an inherited parent CSP. */
|
|
86
|
-
readonly scriptNonce?: string;
|
|
87
|
-
/** Theme CSS injected into the iframe `<head>` (e.g. `--vscode-*` variables). */
|
|
88
|
-
readonly themeCss?: string | (() => string);
|
|
89
|
-
/**
|
|
90
|
-
* Optional synchronous height (px) reserved from content before the guest
|
|
91
|
-
* measures itself. Return `undefined` to let the guest size the frame.
|
|
92
|
-
*/
|
|
93
|
-
readonly estimateHeight?: (content: string) => number | undefined;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export declare type IframeEmbeddedEditorOptions = IframeEmbeddedEditorBaseOptions & ({
|
|
97
|
-
/** Self-contained HTML document loaded into the sandboxed iframe. */
|
|
98
|
-
readonly html: string;
|
|
99
|
-
readonly bundleJs?: never;
|
|
100
|
-
} | {
|
|
101
|
-
/** @deprecated Use `html`. Retained for the sample fixture. */
|
|
102
|
-
readonly bundleJs: string;
|
|
103
|
-
readonly html?: never;
|
|
104
|
-
});
|
|
105
|
-
|
|
106
74
|
export declare interface IframeEmbeddedEditorProvider extends CodeBlockEditorProviderDefinition {
|
|
107
75
|
readonly resolve: (language: string) => Promise<ResolvedIframeEmbeddedEditor | undefined>;
|
|
108
76
|
}
|