@diagrammo/dgmo 0.8.17 → 0.8.18

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/index.d.cts CHANGED
@@ -2189,8 +2189,8 @@ declare function parseAndLayoutInfra(content: string): {
2189
2189
  layout: InfraLayoutResult;
2190
2190
  };
2191
2191
 
2192
- /** Calendar units: d (days), w (weeks), m (months), q (quarters), y (years), h (hours), min (minutes). bd = business days. */
2193
- type DurationUnit = 'd' | 'bd' | 'w' | 'm' | 'q' | 'y' | 'h' | 'min';
2192
+ /** Calendar units: d (days), w (weeks), m (months), q (quarters), y (years), h (hours), min (minutes). bd = business days. s = sprints. */
2193
+ type DurationUnit = 'd' | 'bd' | 'w' | 'm' | 'q' | 'y' | 'h' | 'min' | 's';
2194
2194
  interface Duration {
2195
2195
  amount: number;
2196
2196
  unit: DurationUnit;
@@ -2280,6 +2280,10 @@ interface GanttOptions {
2280
2280
  /** Line numbers for option/block keywords — maps key to source line */
2281
2281
  optionLineNumbers: Record<string, number>;
2282
2282
  holidaysLineNumber: number | null;
2283
+ sprintLength: Duration | null;
2284
+ sprintNumber: number | null;
2285
+ sprintStart: string | null;
2286
+ sprintMode: 'auto' | 'explicit' | null;
2283
2287
  }
2284
2288
  interface ParsedGantt {
2285
2289
  nodes: GanttNode[];
@@ -2311,6 +2315,11 @@ interface ResolvedGroup {
2311
2315
  lineNumber: number;
2312
2316
  depth: number;
2313
2317
  }
2318
+ interface ResolvedSprint {
2319
+ number: number;
2320
+ startDate: Date;
2321
+ endDate: Date;
2322
+ }
2314
2323
  interface ResolvedSchedule {
2315
2324
  tasks: ResolvedTask[];
2316
2325
  groups: ResolvedGroup[];
@@ -2320,6 +2329,7 @@ interface ResolvedSchedule {
2320
2329
  tagGroups: TagGroup[];
2321
2330
  eras: GanttEra[];
2322
2331
  markers: GanttMarker[];
2332
+ sprints: ResolvedSprint[];
2323
2333
  options: GanttOptions;
2324
2334
  diagnostics: DgmoError[];
2325
2335
  error: string | null;
@@ -2542,7 +2552,7 @@ declare function isRecognizedColorName(name: string): boolean;
2542
2552
  /**
2543
2553
  * Resolves a recognized color name to its hex value for the active palette
2544
2554
  * (falling back to the built-in Nord defaults). Returns `null` for any
2545
- * unrecognized input — including hex codes, CSS keywords like `black`,
2555
+ * unrecognized input — including hex codes, CSS keywords like `pink`,
2546
2556
  * and typos. Callers MUST treat `null` as a parse error and emit a
2547
2557
  * diagnostic; do not silently fall back to the raw input.
2548
2558
  */
package/dist/index.d.ts CHANGED
@@ -2189,8 +2189,8 @@ declare function parseAndLayoutInfra(content: string): {
2189
2189
  layout: InfraLayoutResult;
2190
2190
  };
2191
2191
 
2192
- /** Calendar units: d (days), w (weeks), m (months), q (quarters), y (years), h (hours), min (minutes). bd = business days. */
2193
- type DurationUnit = 'd' | 'bd' | 'w' | 'm' | 'q' | 'y' | 'h' | 'min';
2192
+ /** Calendar units: d (days), w (weeks), m (months), q (quarters), y (years), h (hours), min (minutes). bd = business days. s = sprints. */
2193
+ type DurationUnit = 'd' | 'bd' | 'w' | 'm' | 'q' | 'y' | 'h' | 'min' | 's';
2194
2194
  interface Duration {
2195
2195
  amount: number;
2196
2196
  unit: DurationUnit;
@@ -2280,6 +2280,10 @@ interface GanttOptions {
2280
2280
  /** Line numbers for option/block keywords — maps key to source line */
2281
2281
  optionLineNumbers: Record<string, number>;
2282
2282
  holidaysLineNumber: number | null;
2283
+ sprintLength: Duration | null;
2284
+ sprintNumber: number | null;
2285
+ sprintStart: string | null;
2286
+ sprintMode: 'auto' | 'explicit' | null;
2283
2287
  }
2284
2288
  interface ParsedGantt {
2285
2289
  nodes: GanttNode[];
@@ -2311,6 +2315,11 @@ interface ResolvedGroup {
2311
2315
  lineNumber: number;
2312
2316
  depth: number;
2313
2317
  }
2318
+ interface ResolvedSprint {
2319
+ number: number;
2320
+ startDate: Date;
2321
+ endDate: Date;
2322
+ }
2314
2323
  interface ResolvedSchedule {
2315
2324
  tasks: ResolvedTask[];
2316
2325
  groups: ResolvedGroup[];
@@ -2320,6 +2329,7 @@ interface ResolvedSchedule {
2320
2329
  tagGroups: TagGroup[];
2321
2330
  eras: GanttEra[];
2322
2331
  markers: GanttMarker[];
2332
+ sprints: ResolvedSprint[];
2323
2333
  options: GanttOptions;
2324
2334
  diagnostics: DgmoError[];
2325
2335
  error: string | null;
@@ -2542,7 +2552,7 @@ declare function isRecognizedColorName(name: string): boolean;
2542
2552
  /**
2543
2553
  * Resolves a recognized color name to its hex value for the active palette
2544
2554
  * (falling back to the built-in Nord defaults). Returns `null` for any
2545
- * unrecognized input — including hex codes, CSS keywords like `black`,
2555
+ * unrecognized input — including hex codes, CSS keywords like `pink`,
2546
2556
  * and typos. Callers MUST treat `null` as a parse error and emit a
2547
2557
  * diagnostic; do not silently fall back to the raw input.
2548
2558
  */