@purview-dev/astroc4 1.0.0-prerelease.4 → 1.0.0-prerelease.6

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.
@@ -0,0 +1,27 @@
1
+ import type { AstroIntegration } from 'astro';
2
+ import { LikeC4VitePlugin } from 'likec4/vite-plugin';
3
+ /** Scoped because npm refuses the unscoped `astroc4` as too similar to `astro`. */
4
+ export declare const PACKAGE_NAME = "@purview-dev/astroc4";
5
+ export interface LikeC4IntegrationOptions {
6
+ /**
7
+ * Passed through to `LikeC4VitePlugin`. Setting `workspace` or
8
+ * `languageServices` takes project discovery over, and `projects` is ignored.
9
+ */
10
+ vitePlugin?: Parameters<typeof LikeC4VitePlugin>[0];
11
+ /**
12
+ * Named LikeC4 projects, compiled alongside those discovered under the site
13
+ * root: `{ architecture: '../../docs/architecture/likec4' }`. Folders are
14
+ * relative to the site root or absolute.
15
+ */
16
+ projects?: Record<string, string>;
17
+ /** Render ```likec4 fences in .md and .mdx pages as diagrams. Defaults to `true`. */
18
+ fences?: boolean;
19
+ }
20
+ /**
21
+ * The `optimizeDeps.include` entries the site still lacks. Only missing ones:
22
+ * Vite's `mergeConfig` concatenates arrays. Unresolvable ones are skipped, since
23
+ * naming a package Vite cannot find breaks the optimizer.
24
+ */
25
+ export declare function missingOptimizedDependencies(include: unknown, root: string): string[];
26
+ export declare function likec4Integration({ vitePlugin, projects, fences, }?: LikeC4IntegrationOptions): AstroIntegration;
27
+ export default likec4Integration;