typebulb 0.9.2 → 0.9.4
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/README.md +7 -2
- package/dist/index.js +105 -112
- package/dist/render.d.ts +9 -0
- package/dist/render.js +51 -26
- package/dist/servers.d.ts +44 -2
- package/dist/servers.js +1 -1
- package/package.json +1 -1
package/dist/render.d.ts
CHANGED
|
@@ -28,3 +28,12 @@ export interface BulbFrameOptions {
|
|
|
28
28
|
* `allow-scripts` sandbox policy and the host<->embed protocol (auto-height +
|
|
29
29
|
* runtime-error forwarding). Rejects if the bulb can't compile. */
|
|
30
30
|
export declare function createBulbFrame(source: string, opts?: BulbFrameOptions): Promise<HTMLIFrameElement>
|
|
31
|
+
|
|
32
|
+
/** The bulb's `name:` from its leading frontmatter, or undefined if absent. */
|
|
33
|
+
export declare function bulbName(source: string): string | undefined
|
|
34
|
+
|
|
35
|
+
/** A filesystem-safe slug from the bulb's name; 'bulb' when unnamed. */
|
|
36
|
+
export declare function slugifyBulbName(source: string): string
|
|
37
|
+
|
|
38
|
+
/** The source with its leading `---` frontmatter block stripped. */
|
|
39
|
+
export declare function stripFrontmatter(source: string): string
|