@observablehq/notebook-kit 1.5.1 → 1.5.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/package.json
CHANGED
|
@@ -58,7 +58,7 @@ export interface FileInfo {
|
|
|
58
58
|
lastModified?: number;
|
|
59
59
|
size?: number;
|
|
60
60
|
}
|
|
61
|
-
export declare function registerFile(name: string, info: FileInfo, base?: string | URL): FileAttachmentImpl | undefined;
|
|
61
|
+
export declare function registerFile(name: string, info: FileInfo | null, base?: string | URL): FileAttachmentImpl | undefined;
|
|
62
62
|
export declare abstract class AbstractFile implements FileAttachment {
|
|
63
63
|
name: string;
|
|
64
64
|
mimeType: string;
|
|
@@ -2,6 +2,12 @@ import { Icon } from "https://cdn.jsdelivr.net/npm/leaflet/+esm";
|
|
|
2
2
|
export * from "https://cdn.jsdelivr.net/npm/leaflet/+esm";
|
|
3
3
|
Icon.Default.imagePath = "https://cdn.jsdelivr.net/npm/leaflet/dist/images/";
|
|
4
4
|
const link = document.createElement("link");
|
|
5
|
-
link.href = "https://cdn.jsdelivr.net/npm/leaflet/dist/leaflet.css";
|
|
6
5
|
link.rel = "stylesheet";
|
|
6
|
+
link.type = "text/css";
|
|
7
|
+
link.href = "https://cdn.jsdelivr.net/npm/leaflet/dist/leaflet.css";
|
|
8
|
+
const loaded = new Promise((resolve, reject) => {
|
|
9
|
+
link.onload = resolve;
|
|
10
|
+
link.onerror = reject;
|
|
11
|
+
});
|
|
7
12
|
document.head.appendChild(link);
|
|
13
|
+
await loaded;
|