cascivo 0.7.2 → 0.8.1

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.
@@ -140,7 +140,7 @@ function detectPackageManager(cwd = process.cwd(), opts = {}) {
140
140
  const envPm = env.CASCIVO_PACKAGE_MANAGER;
141
141
  if (isPackageManager(envPm)) return envPm;
142
142
  const uaPm = pmFromUserAgent(env.npm_config_user_agent);
143
- if (uaPm) return uaPm;
143
+ if (uaPm && !opts.preferLockfileOverUserAgent) return uaPm;
144
144
  let current = cwd;
145
145
  for (;;) {
146
146
  for (const [file, pm] of PM_LOCKFILES) if (existsSync(join(current, file))) return pm;
@@ -151,7 +151,7 @@ function detectPackageManager(cwd = process.cwd(), opts = {}) {
151
151
  if (parent === current) break;
152
152
  current = parent;
153
153
  }
154
- return "npm";
154
+ return uaPm ?? "npm";
155
155
  }
156
156
  /**
157
157
  * Pin every `@cascivo/*` package to an explicit version specifier.
@@ -191,4 +191,4 @@ function installHint(pm, packages, opts = {}) {
191
191
  //#endregion
192
192
  export { detectPackageManager as a, isPackageManager as c, config_exports as i, loadConfig as l, DEFAULT_CONFIG as n, installCommand as o, THEMES as r, installHint as s, CASCIVO_HOST as t, __exportAll as u };
193
193
 
194
- //# sourceMappingURL=config-D7ddWN_9.mjs.map
194
+ //# sourceMappingURL=config-C8D_CmKI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-C8D_CmKI.mjs","names":[],"sources":["../src/utils/config.ts"],"sourcesContent":["import { existsSync, readFileSync } from 'node:fs'\nimport { dirname, join } from 'node:path'\nimport { pathToFileURL } from 'node:url'\n\n/**\n * Canonical (and only) host for hosted cascivo artifacts (registry.json, per-item\n * r/<name>.json, marketplace.json, /llms/*, /context/*). The legacy docs.cascivo.com\n * subdomain is retired and 301s here. Keep in sync with CASCIVO_HOST in packages/mcp.\n */\nexport const CASCIVO_HOST = 'https://cascivo.com'\n\n/** All first-party themes shipped by @cascivo/themes (selectable via data-theme). */\nexport const THEMES = [\n 'light',\n 'dark',\n 'warm',\n 'flat',\n 'minimal',\n 'midnight',\n 'pastel',\n 'brutalist',\n 'corporate',\n 'terminal',\n 'cyberpunk',\n 'arcade',\n] as const\n\nexport type ThemeName = (typeof THEMES)[number]\n\nexport type RegistryNamespaceConfig =\n | string\n | { url: string; headers?: Record<string, string>; params?: Record<string, string> }\n\nexport interface CascadeConfig {\n /** URL of the registry.json index. */\n registry: string\n /** Directory (relative to project root) where components are written. */\n outputDir: string\n /** Default theme imported by `cascade init`. */\n theme: ThemeName\n /** Namespace → registry URL template (with {name} placeholder) or auth config. */\n registries?: Record<string, RegistryNamespaceConfig>\n /** Whether to copy test files (*.contract.test.tsx) when adding components. */\n tests?: boolean\n}\n\nexport const DEFAULT_CONFIG: CascadeConfig = {\n // Canonical hosted registry index (served from the landing site, documented in\n // llms.txt). Prefer this over a branch's GitHub raw URL, which 404s for\n // unauthenticated/private-repo requests and breaks `cascivo list`/`add`.\n registry: `${CASCIVO_HOST}/registry.json`,\n outputDir: 'src/components/ui',\n theme: 'light',\n}\n\nconst CONFIG_FILES = ['cascivo.config.ts', 'cascivo.config.js', 'cascivo.config.mjs']\n\n/** Apply defaults over a (possibly partial) user config object. */\nexport function resolveConfig(partial: Partial<CascadeConfig> | null | undefined): CascadeConfig {\n return { ...DEFAULT_CONFIG, ...partial }\n}\n\n/** Let env vars override config — used by the MCP server to pass `outputDir`. */\nexport function applyEnvOverrides(\n config: CascadeConfig,\n env: NodeJS.ProcessEnv = process.env,\n): CascadeConfig {\n return {\n ...config,\n ...(env.CASCIVO_REGISTRY ? { registry: env.CASCIVO_REGISTRY } : {}),\n ...(env.CASCIVO_OUTPUT_DIR ? { outputDir: env.CASCIVO_OUTPUT_DIR } : {}),\n }\n}\n\n/**\n * Locate and load `cascivo.config.{ts,js,mjs}` from `cwd`. Falls back to the\n * default config when no file is found or the file cannot be loaded. Env vars\n * (`CASCIVO_REGISTRY`, `CASCIVO_OUTPUT_DIR`) take precedence.\n */\nexport async function loadConfig(cwd: string = process.cwd()): Promise<CascadeConfig> {\n for (const file of CONFIG_FILES) {\n const path = join(cwd, file)\n if (!existsSync(path)) continue\n try {\n const mod = (await import(pathToFileURL(path).href)) as {\n default?: Partial<CascadeConfig>\n }\n return applyEnvOverrides(resolveConfig(mod.default ?? (mod as Partial<CascadeConfig>)))\n } catch {\n // Unloadable config (e.g. unsupported TS syntax) — fall back to defaults.\n return applyEnvOverrides(resolveConfig(null))\n }\n }\n return applyEnvOverrides(resolveConfig(null))\n}\n\nexport type PackageManager = 'pnpm' | 'yarn' | 'npm' | 'bun'\n\n/** Narrow an arbitrary string to a known PackageManager. */\nexport function isPackageManager(value: string | undefined): value is PackageManager {\n return value === 'pnpm' || value === 'yarn' || value === 'npm' || value === 'bun'\n}\n\n/**\n * Lock files in probe order. `bun.lock` (bun ≥ 1.2 text lockfile) sits beside the\n * legacy binary `bun.lockb`; `package-lock.json` is npm's marker so a walk that\n * reaches an npm workspace root still resolves to npm rather than the default.\n */\nconst PM_LOCKFILES: readonly [string, PackageManager][] = [\n ['pnpm-lock.yaml', 'pnpm'],\n ['yarn.lock', 'yarn'],\n ['bun.lockb', 'bun'],\n ['bun.lock', 'bun'],\n ['package-lock.json', 'npm'],\n]\n\n/** The package manager that invoked this process, from `npm_config_user_agent`. */\nfunction pmFromUserAgent(ua: string | undefined): PackageManager | undefined {\n if (!ua) return undefined\n const name = ua.split('/')[0]\n return isPackageManager(name) ? name : undefined\n}\n\n/** The `packageManager` corepack field of a package.json, if it names a known PM. */\nfunction pmFromPackageJson(dir: string): PackageManager | undefined {\n try {\n const pkg = JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8')) as {\n packageManager?: string\n }\n const name = pkg.packageManager?.split('@')[0]\n return isPackageManager(name) ? name : undefined\n } catch {\n return undefined\n }\n}\n\n/**\n * Detect the package manager in use. Precedence, highest first:\n * 1. explicit override (the `--package-manager`/`--pm` flag)\n * 2. `CASCIVO_PACKAGE_MANAGER` env var\n * 3. `npm_config_user_agent` (the PM that spawned the CLI, e.g. `pnpm dlx`)\n * 4. an upward walk from `cwd` for a lock file or `packageManager` field —\n * this is what makes detection work inside a workspace, where the lock\n * file lives at the repo root, not in the app subdirectory the user runs\n * the CLI from. The walk stops after a directory containing `.git`.\n * 5. default `npm`.\n */\nexport function detectPackageManager(\n cwd: string = process.cwd(),\n opts: {\n override?: string\n env?: NodeJS.ProcessEnv\n /**\n * Let a lock file found by walking up from `cwd` outrank `npm_config_user_agent`.\n *\n * For `init`/`add`, which run *inside* an existing project, the user agent is the right\n * first signal: it is the tool the developer just invoked. For `create` it is the wrong\n * one. `npx cascivo create` always reports a `npm/…` agent regardless of what the\n * surrounding workspace uses, and it short-circuited before the walk-up ever ran — so a\n * 2026-08-14 adopter scaffolding into a pnpm workspace with a root `pnpm-lock.yaml` was\n * told to run `npm install`. Where the new project LANDS is a stronger signal than which\n * launcher started the CLI.\n */\n preferLockfileOverUserAgent?: boolean\n } = {},\n): PackageManager {\n const env = opts.env ?? process.env\n\n if (isPackageManager(opts.override)) return opts.override\n\n const envPm = env.CASCIVO_PACKAGE_MANAGER\n if (isPackageManager(envPm)) return envPm\n\n const uaPm = pmFromUserAgent(env.npm_config_user_agent)\n if (uaPm && !opts.preferLockfileOverUserAgent) return uaPm\n\n let current = cwd\n for (;;) {\n for (const [file, pm] of PM_LOCKFILES) {\n if (existsSync(join(current, file))) return pm\n }\n const fromField = pmFromPackageJson(current)\n if (fromField) return fromField\n // A `.git` directory marks the repo root — do not walk past it.\n if (existsSync(join(current, '.git'))) break\n const parent = dirname(current)\n if (parent === current) break\n current = parent\n }\n\n // No lock file anywhere up the tree: fall back to the launcher, which for a brand-new\n // project in an empty directory is the only signal there is.\n return uaPm ?? 'npm'\n}\n\n/**\n * Pin every `@cascivo/*` package to an explicit version specifier.\n *\n * A bare name lets the package manager reuse whatever it already has resolvable. In a pnpm\n * workspace a sibling package's lockfile entry won and `@cascivo/i18n` resolved to **0.2.14**\n * while latest was **0.16.0** — then cascivo warned the adopter about the version it had\n * just installed itself. `add name@latest` (or the registry's known floor) makes the intent\n * explicit instead of leaving it to resolution order.\n *\n * Non-cascivo packages (`@preact/signals-react`) keep their bare name: their version is the\n * app's business, and cascivo has no floor to assert.\n */\nexport function pinSpecifier(pkg: string, floors: Record<string, string> = {}): string {\n if (!pkg.startsWith('@cascivo/') && pkg !== 'cascivo') return pkg\n if (pkg.includes('@', 1)) return pkg // already carries an explicit version\n const floor = floors[pkg]\n // `>=x.y.z` is not an installable specifier on its own; widen it to a range the package\n // manager understands, so a known floor is honoured rather than silently ignored.\n if (floor?.startsWith('>=')) return `${pkg}@${floor.slice(2)} - x`\n return `${pkg}@latest`\n}\n\n/** The install subcommand each package manager uses to add dependencies. */\nexport function installCommand(\n pm: PackageManager,\n packages: string[],\n opts: { dev?: boolean; floors?: Record<string, string>; pin?: string } = {},\n): [string, string[]] {\n const verb = pm === 'npm' ? 'install' : 'add'\n const devFlag = opts.dev ? [pm === 'npm' ? '--save-dev' : '-D'] : []\n const specs = packages.map((p) =>\n opts.pin && (p.startsWith('@cascivo/') || p === 'cascivo')\n ? `${p}@${opts.pin}`\n : pinSpecifier(p, opts.floors ?? {}),\n )\n return [pm, [verb, ...devFlag, ...specs]]\n}\n\n/** Human-readable install command a user can copy-paste, e.g. `pnpm add -D cascivo`. */\nexport function installHint(\n pm: PackageManager,\n packages: string[],\n opts: { dev?: boolean } = {},\n): string {\n const [cmd, args] = installCommand(pm, packages, opts)\n return `${cmd} ${args.join(' ')}`\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAa,eAAe;;AAG5B,MAAa,SAAS;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAqBA,MAAa,iBAAgC;CAI3C,UAAU,GAAG,aAAa;CAC1B,WAAW;CACX,OAAO;AACT;AAEA,MAAM,eAAe;CAAC;CAAqB;CAAqB;AAAoB;;AAGp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1B,KAAK,QAAQ,EAAE,WAAW,WAAW,KAAK,MAAM,aAC5C,GAAG,EAAE,GAAG,KAAK,QACb,aAAa,GAAG,KAAK,UAAU,CAAC,CAAC,CACvC;CACA,OAAO,CAAC,IAAI;EAAC;EAAM,GAAG;EAAS,GAAG;CAAK,CAAC;AAC1C;;AAGA,SAAgB,YACd,IACA,UACA,OAA0B,CAAC,GACnB;CACR,MAAM,CAAC,KAAK,QAAQ,eAAe,IAAI,UAAU,IAAI;CACrD,OAAO,GAAG,IAAI,GAAG,KAAK,KAAK,GAAG;AAChC"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.16.1",
2
+ "version": "0.17.1",
3
3
  "tokens": [
4
4
  { "name": "--cascivo-gray-0", "resolvedDefault": "oklch(1 0 0)" },
5
5
  { "name": "--cascivo-gray-50", "resolvedDefault": "oklch(0.985 0.002 264)" },
@@ -510,7 +510,8 @@
510
510
  { "name": "footer", "type": "ReactNode", "required": false },
511
511
  { "name": "open", "type": "boolean", "required": false },
512
512
  { "name": "defaultOpen", "type": "boolean", "required": false },
513
- { "name": "onOpenChange", "type": "(open: boolean) => void", "required": false }
513
+ { "name": "onOpenChange", "type": "(open: boolean) => void", "required": false },
514
+ { "name": "padding", "type": "SpaceStep | 'none'", "required": false }
514
515
  ]
515
516
  },
516
517
  {
@@ -695,7 +696,8 @@
695
696
  {
696
697
  "name": "CodeSnippet",
697
698
  "props": [
698
- { "name": "code", "type": "string", "required": true },
699
+ { "name": "code", "type": "string", "required": false },
700
+ { "name": "children", "type": "string", "required": false },
699
701
  { "name": "variant", "type": "'inline' | 'single' | 'multi'", "required": false },
700
702
  { "name": "language", "type": "'bash' | 'css' | 'js' | 'ts'", "required": false },
701
703
  { "name": "terminal", "type": "boolean", "required": false },
@@ -2141,8 +2143,8 @@
2141
2143
  {
2142
2144
  "name": "PageHeader",
2143
2145
  "props": [
2144
- { "name": "title", "type": "string", "required": true },
2145
- { "name": "description", "type": "string", "required": false },
2146
+ { "name": "title", "type": "ReactNode", "required": true },
2147
+ { "name": "description", "type": "ReactNode", "required": false },
2146
2148
  { "name": "breadcrumb", "type": "ReactNode", "required": false },
2147
2149
  { "name": "actions", "type": "ReactNode", "required": false },
2148
2150
  { "name": "className", "type": "string", "required": false }
@@ -2253,7 +2255,17 @@
2253
2255
  "type": "boolean | { method?: 'lttb' | 'minmax'; threshold?: number }",
2254
2256
  "required": false
2255
2257
  },
2256
- { "name": "toolbox", "type": "boolean | ToolboxOptions", "required": false }
2258
+ { "name": "toolbox", "type": "boolean | ToolboxOptions", "required": false },
2259
+ {
2260
+ "name": "format",
2261
+ "type": "(value: number | string | Date) => string",
2262
+ "required": false
2263
+ },
2264
+ {
2265
+ "name": "secondAxis",
2266
+ "type": "{ label?: string; format?: (value: number) => string }",
2267
+ "required": false
2268
+ }
2257
2269
  ]
2258
2270
  },
2259
2271
  {
@@ -2287,7 +2299,8 @@
2287
2299
  },
2288
2300
  { "name": "onSelect", "type": "(point: ChartPoint) => void", "required": false },
2289
2301
  { "name": "fill", "type": "'solid' | 'gradient' | 'pattern'", "required": false },
2290
- { "name": "patternKind", "type": "'dots' | 'lines' | 'cross'", "required": false }
2302
+ { "name": "patternKind", "type": "'dots' | 'lines' | 'cross'", "required": false },
2303
+ { "name": "format", "type": "(value: number | string | Date) => string", "required": false }
2291
2304
  ]
2292
2305
  },
2293
2306
  {
@@ -2303,7 +2316,8 @@
2303
2316
  { "name": "width", "type": "number", "required": false },
2304
2317
  { "name": "height", "type": "number", "required": false },
2305
2318
  { "name": "className", "type": "string", "required": false },
2306
- { "name": "plain", "type": "boolean", "required": false }
2319
+ { "name": "plain", "type": "boolean", "required": false },
2320
+ { "name": "format", "type": "(value: number | string | Date) => string", "required": false }
2307
2321
  ]
2308
2322
  },
2309
2323
  {
@@ -2321,7 +2335,12 @@
2321
2335
  { "name": "tooltip", "type": "boolean", "required": false },
2322
2336
  { "name": "className", "type": "string", "required": false },
2323
2337
  { "name": "plain", "type": "boolean", "required": false },
2324
- { "name": "glyph", "type": "GlyphShape | ((d, seriesId) => GlyphShape)", "required": false }
2338
+ {
2339
+ "name": "glyph",
2340
+ "type": "GlyphShape | ((d, seriesId) => GlyphShape)",
2341
+ "required": false
2342
+ },
2343
+ { "name": "format", "type": "(value: number | string | Date) => string", "required": false }
2325
2344
  ]
2326
2345
  },
2327
2346
  {
@@ -2374,7 +2393,8 @@
2374
2393
  { "name": "dataZoom", "type": "boolean", "required": false },
2375
2394
  { "name": "zoom", "type": "boolean", "required": false },
2376
2395
  { "name": "syncId", "type": "string", "required": false },
2377
- { "name": "tooltipMode", "type": "'item' | 'axis'", "required": false }
2396
+ { "name": "tooltipMode", "type": "'item' | 'axis'", "required": false },
2397
+ { "name": "format", "type": "(value: number | string | Date) => string", "required": false }
2378
2398
  ]
2379
2399
  },
2380
2400
  {
@@ -2390,7 +2410,16 @@
2390
2410
  { "name": "tooltip", "type": "boolean", "required": false },
2391
2411
  { "name": "className", "type": "string", "required": false },
2392
2412
  { "name": "plain", "type": "boolean", "required": false },
2393
- { "name": "annotations", "type": "Annotation[]", "required": false }
2413
+ { "name": "annotations", "type": "Annotation[]", "required": false },
2414
+ { "name": "barsLabel", "type": "string", "required": false },
2415
+ {
2416
+ "name": "format",
2417
+ "type": "(value: number | string | Date) => string",
2418
+ "required": false
2419
+ },
2420
+ { "name": "legend", "type": "boolean", "required": false },
2421
+ { "name": "lineLabel", "type": "string", "required": false },
2422
+ { "name": "xLabelEvery", "type": "number", "required": false }
2394
2423
  ]
2395
2424
  },
2396
2425
  {
@@ -2436,7 +2465,8 @@
2436
2465
  { "name": "className", "type": "string", "required": false },
2437
2466
  { "name": "plain", "type": "boolean", "required": false },
2438
2467
  { "name": "visualMap", "type": "VisualMapOptions", "required": false },
2439
- { "name": "toolbox", "type": "boolean | ToolboxOptions", "required": false }
2468
+ { "name": "toolbox", "type": "boolean | ToolboxOptions", "required": false },
2469
+ { "name": "format", "type": "(value: number | string | Date) => string", "required": false }
2440
2470
  ]
2441
2471
  },
2442
2472
  {
@@ -2450,7 +2480,8 @@
2450
2480
  { "name": "width", "type": "number", "required": false },
2451
2481
  { "name": "height", "type": "number", "required": false },
2452
2482
  { "name": "className", "type": "string", "required": false },
2453
- { "name": "plain", "type": "boolean", "required": false }
2483
+ { "name": "plain", "type": "boolean", "required": false },
2484
+ { "name": "format", "type": "(value: number | string | Date) => string", "required": false }
2454
2485
  ]
2455
2486
  },
2456
2487
  {
@@ -2535,6 +2566,11 @@
2535
2566
  "name": "onAfterDraw",
2536
2567
  "type": "(ctx: { width: number; height: number }) => ReactNode",
2537
2568
  "required": false
2569
+ },
2570
+ {
2571
+ "name": "secondAxis",
2572
+ "type": "{ label?: string; format?: (value: number) => string }",
2573
+ "required": false
2538
2574
  }
2539
2575
  ]
2540
2576
  },
@@ -2576,7 +2612,8 @@
2576
2612
  "type": "boolean | { format?: (v: number) => string; position?: string }",
2577
2613
  "required": false
2578
2614
  },
2579
- { "name": "onSelect", "type": "(point: ChartPoint) => void", "required": false }
2615
+ { "name": "onSelect", "type": "(point: ChartPoint) => void", "required": false },
2616
+ { "name": "tooltip", "type": "boolean", "required": false }
2580
2617
  ]
2581
2618
  },
2582
2619
  {
@@ -2671,7 +2708,8 @@
2671
2708
  },
2672
2709
  { "name": "renderer", "type": "'svg' | 'canvas' | 'auto'", "required": false },
2673
2710
  { "name": "visualMap", "type": "VisualMapOptions", "required": false },
2674
- { "name": "toolbox", "type": "boolean | ToolboxOptions", "required": false }
2711
+ { "name": "toolbox", "type": "boolean | ToolboxOptions", "required": false },
2712
+ { "name": "format", "type": "(value: number | string | Date) => string", "required": false }
2675
2713
  ]
2676
2714
  },
2677
2715
  {
@@ -2700,7 +2738,8 @@
2700
2738
  { "name": "legend", "type": "boolean", "required": false },
2701
2739
  { "name": "tooltip", "type": "boolean", "required": false },
2702
2740
  { "name": "className", "type": "string", "required": false },
2703
- { "name": "plain", "type": "boolean", "required": false }
2741
+ { "name": "plain", "type": "boolean", "required": false },
2742
+ { "name": "format", "type": "(value: number | string | Date) => string", "required": false }
2704
2743
  ]
2705
2744
  },
2706
2745
  {
@@ -2759,7 +2798,8 @@
2759
2798
  },
2760
2799
  { "name": "commands", "type": "SlashCommand[]", "required": false },
2761
2800
  { "name": "ref", "type": "Ref<CodeEditorHandle>", "required": false },
2762
- { "name": "className", "type": "string", "required": false }
2801
+ { "name": "className", "type": "string", "required": false },
2802
+ { "name": "virtualize", "type": "boolean", "required": false }
2763
2803
  ]
2764
2804
  },
2765
2805
  {
@@ -2771,7 +2811,9 @@
2771
2811
  { "name": "wrap", "type": "boolean", "required": false },
2772
2812
  { "name": "tabSize", "type": "number", "required": false },
2773
2813
  { "name": "label", "type": "string", "required": false },
2774
- { "name": "className", "type": "string", "required": false }
2814
+ { "name": "className", "type": "string", "required": false },
2815
+ { "name": "gutterRef", "type": "Ref<HTMLDivElement>", "required": false },
2816
+ { "name": "preRef", "type": "Ref<HTMLPreElement>", "required": false }
2775
2817
  ]
2776
2818
  },
2777
2819
  {
@@ -2851,7 +2893,15 @@
2851
2893
  "required": false
2852
2894
  },
2853
2895
  { "name": "interactive", "type": "boolean", "required": false },
2854
- { "name": "className", "type": "string", "required": false }
2896
+ { "name": "className", "type": "string", "required": false },
2897
+ {
2898
+ "name": "activeDirection",
2899
+ "type": "'forward' | 'reverse' | undefined",
2900
+ "required": false
2901
+ },
2902
+ { "name": "activeEdgeId", "type": "string | undefined", "required": false },
2903
+ { "name": "maxZoom", "type": "number", "required": false },
2904
+ { "name": "minZoom", "type": "number", "required": false }
2855
2905
  ]
2856
2906
  },
2857
2907
  {
@@ -2894,7 +2944,12 @@
2894
2944
  { "name": "selected", "type": "boolean", "required": false },
2895
2945
  { "name": "markerStart", "type": "boolean", "required": false },
2896
2946
  { "name": "markerEnd", "type": "boolean", "required": false },
2897
- { "name": "className", "type": "string", "required": false }
2947
+ { "name": "className", "type": "string", "required": false },
2948
+ { "name": "active", "type": "boolean | undefined", "required": false },
2949
+ { "name": "direction", "type": "'forward' | 'reverse' | undefined", "required": false },
2950
+ { "name": "id", "type": "string", "required": false },
2951
+ { "name": "sourcePosition", "type": "HandlePosition | undefined", "required": false },
2952
+ { "name": "targetPosition", "type": "HandlePosition | undefined", "required": false }
2898
2953
  ]
2899
2954
  },
2900
2955
  {
@@ -2922,7 +2977,9 @@
2922
2977
  "required": false
2923
2978
  },
2924
2979
  { "name": "onViewportChange", "type": "(viewport: Viewport) => void", "required": false },
2925
- { "name": "className", "type": "string", "required": false }
2980
+ { "name": "className", "type": "string", "required": false },
2981
+ { "name": "label", "type": "string | undefined", "required": false },
2982
+ { "name": "nodeColor", "type": "string | undefined", "required": false }
2926
2983
  ]
2927
2984
  },
2928
2985
  {
@@ -2938,7 +2995,8 @@
2938
2995
  { "name": "interactive", "type": "boolean", "required": false },
2939
2996
  { "name": "onSelect", "type": "(id: string) => void", "required": false },
2940
2997
  { "name": "children", "type": "ReactNode", "required": false },
2941
- { "name": "className", "type": "string", "required": false }
2998
+ { "name": "className", "type": "string", "required": false },
2999
+ { "name": "onMeasure", "type": "(size: NodeSize) => void", "required": false }
2942
3000
  ]
2943
3001
  },
2944
3002
  {
@@ -2968,7 +3026,10 @@
2968
3026
  { "name": "controls", "type": "boolean", "required": false },
2969
3027
  { "name": "autoPlay", "type": "boolean", "required": false },
2970
3028
  { "name": "interactive", "type": "boolean", "required": false },
2971
- { "name": "className", "type": "string", "required": false }
3029
+ { "name": "className", "type": "string", "required": false },
3030
+ { "name": "background", "type": "boolean", "required": false },
3031
+ { "name": "clock", "type": "StoryClock", "required": false },
3032
+ { "name": "labels", "type": "FlowStoryLabels", "required": false }
2972
3033
  ]
2973
3034
  },
2974
3035
  {
@@ -2982,7 +3043,11 @@
2982
3043
  { "name": "panOnDrag", "type": "boolean", "required": false },
2983
3044
  { "name": "zoomOnScroll", "type": "boolean", "required": false },
2984
3045
  { "name": "fitView", "type": "boolean", "required": false },
2985
- { "name": "className", "type": "string", "required": false }
3046
+ { "name": "className", "type": "string", "required": false },
3047
+ { "name": "chrome", "type": "ReactNode", "required": false },
3048
+ { "name": "controller", "type": "UseViewportReturn", "required": false },
3049
+ { "name": "defaultViewport", "type": "Viewport", "required": false },
3050
+ { "name": "flow", "type": "FlowStore", "required": false }
2986
3051
  ]
2987
3052
  }
2988
3053
  ],