@isopodlabs/vscode_utils 0.2.1 → 0.2.2
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/jsx-runtime.d.ts +1 -3
- package/dist/jsx-runtime.js +2 -7
- package/package.json +1 -1
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -54,10 +54,8 @@ export declare function CSP({ csp, ...others }: {
|
|
|
54
54
|
img?: Source;
|
|
55
55
|
media?: Source;
|
|
56
56
|
}): JSX.Element;
|
|
57
|
-
export declare const extensionUri: vscode.Uri;
|
|
58
|
-
export declare function webviewUri(webview: vscode.Webview, name: string): vscode.Uri;
|
|
59
57
|
export declare function ImportMap(props: {
|
|
60
|
-
map: Record<string,
|
|
58
|
+
map: Record<string, vscode.Uri>;
|
|
61
59
|
webview: vscode.Webview;
|
|
62
60
|
}): JSX.Element;
|
|
63
61
|
export {};
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.Hash = exports.codicons = exports.JSX = void 0;
|
|
37
37
|
exports.jsx = jsx;
|
|
38
38
|
exports.jsxs = jsxs;
|
|
39
39
|
exports.jsxFrag = jsxFrag;
|
|
@@ -43,7 +43,6 @@ exports.iconAttributes = iconAttributes;
|
|
|
43
43
|
exports.Label = Label;
|
|
44
44
|
exports.Nonce = Nonce;
|
|
45
45
|
exports.CSP = CSP;
|
|
46
|
-
exports.webviewUri = webviewUri;
|
|
47
46
|
exports.ImportMap = ImportMap;
|
|
48
47
|
const jsx_runtime_1 = require("./jsx-runtime");
|
|
49
48
|
/** @jsxImportSource . */
|
|
@@ -616,10 +615,6 @@ function CSP({ csp, ...others }) {
|
|
|
616
615
|
${Object.entries(others).map(([k, v]) => `${k}-src ${v};`)}
|
|
617
616
|
` });
|
|
618
617
|
}
|
|
619
|
-
exports.extensionUri = vscode.Uri.file(__dirname);
|
|
620
|
-
function webviewUri(webview, name) {
|
|
621
|
-
return webview.asWebviewUri(vscode.Uri.joinPath(exports.extensionUri, name));
|
|
622
|
-
}
|
|
623
618
|
function ImportMap(props) {
|
|
624
|
-
return (0, jsx_runtime_1.jsx)("script", { type: "importmap", children: `{ "imports": { ${Object.entries(props.map).map(([k, v]) => `"${k}": "${
|
|
619
|
+
return (0, jsx_runtime_1.jsx)("script", { type: "importmap", children: `{ "imports": { ${Object.entries(props.map).map(([k, v]) => `"${k}": "${props.webview.asWebviewUri(v)}"`).join(',')} } }` });
|
|
625
620
|
}
|