@draftably/markdown 0.2.2 → 0.2.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/mermaid.js CHANGED
@@ -61,7 +61,7 @@ async function S() {
61
61
  globalThis.fetch = async () => {
62
62
  throw Error("Mermaid resource loading is disabled.");
63
63
  };
64
- const { JSDOM: i } = await import("jsdom"), { createMermaidFlowParser: s, makePlainLabel: e } = await import("./chunks/mermaid-facade-BoLWBerE.js"), { importMermaidFlow: t } = await import("./chunks/mermaid-importer-BHKoojYC.js"), r = new i("<!doctype html><html><body></body></html>", {
64
+ const { JSDOM: i } = await import("jsdom"), { createMermaidFlowParser: s, makePlainLabel: e } = await import("./chunks/mermaid-facade-BoLWBerE.js"), { importMermaidFlow: t } = await import("./chunks/mermaid-importer-DcseMRou.js"), r = new i("<!doctype html><html><body></body></html>", {
65
65
  url: "https://import.invalid/"
66
66
  });
67
67
  Object.assign(globalThis, {
@@ -9,7 +9,7 @@ import type { Footnote } from './footnote';
9
9
  import type { Note } from './note';
10
10
  import { type FontRole, type TypeProfile } from './fonts';
11
11
  import type { FileConfig } from './link';
12
- export type ThemeId = 'drafting' | 'fieldnotes' | 'signal' | 'ink' | 'blueprint';
12
+ export type ThemeId = 'drafting' | 'fieldnotes' | 'signal' | 'ink' | 'blueprint' | 'drafting-dark';
13
13
  export declare const THEME_IDS: ThemeId[];
14
14
  export declare const DEFAULT_THEME: ThemeId;
15
15
  /** Shade stops. Lower numbers are lighter and higher numbers darker, in every theme. */
@@ -154,6 +154,13 @@ interface Preset {
154
154
  hues?: Partial<Record<string, [number, number]>>;
155
155
  }
156
156
  export declare const PRESETS: Record<ThemeId, Preset>;
157
+ /**
158
+ * The appearance to draw on a page of this scheme. The default theme follows the page, with or
159
+ * without a `theme drafting` line and its size and font overrides: dark draws it as
160
+ * `drafting-dark`. Another named theme, a `theme-color` line or a color override on the `theme`
161
+ * line keeps the file's colors on every page.
162
+ */
163
+ export declare function forScheme(appearance: DiagramAppearance, dark: boolean): DiagramAppearance;
157
164
  /** `a` moved toward `b` by `t` (0–1), in sRGB. */
158
165
  export declare function mixColors(a: string, b: string, t: number): string;
159
166
  export declare function contrast(a: string, b: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftably/markdown",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Build static SVG diagram assets from Markdown draft fences.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "jsdom": "26.1.0",
37
37
  "mermaid": "12.2.0",
38
- "@draftably/runtime": "0.4.0"
38
+ "@draftably/runtime": "0.5.0"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=22.21.0"