typebulb 0.9.1 → 0.9.3

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/render.d.ts CHANGED
@@ -12,8 +12,10 @@ export declare function renderBulb(source: string, opts?: { theme?: 'light' | 'd
12
12
  export interface BulbFrameOptions {
13
13
  /** Force light/dark. Omit to inherit the host's `data-theme` automatically. */
14
14
  theme?: 'light' | 'dark'
15
- /** Floor for auto-height; the frame grows past it but never shrinks below. Default 320. */
16
- minHeight?: number
15
+ /** Height shown before the embed reports its content height, and the height a
16
+ * full-bleed (`height:100%`) bulb settles at. Flow content settles above OR below
17
+ * this to its true height. Default 320. */
18
+ initialHeight?: number
17
19
  /** Ceiling for auto-height; bounds an absurd height from a buggy/hostile embed. Default 100000. */
18
20
  maxHeight?: number
19
21
  /** Called with a message when the embed throws at runtime (post-mount). */
@@ -26,3 +28,12 @@ export interface BulbFrameOptions {
26
28
  * `allow-scripts` sandbox policy and the host<->embed protocol (auto-height +
27
29
  * runtime-error forwarding). Rejects if the bulb can't compile. */
28
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