@zerops/web-components 0.0.1 → 0.2.0
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/README.md +31 -0
- package/chunks/{browser-DeGg1Z-r.js → browser-CUhuh3a-.js} +65 -65
- package/chunks/custom-icons-Bw6Z3FPe.js +1532 -0
- package/chunks/recipe-fetch-D2IpKMVr.js +14961 -0
- package/network-diagram.d.ts +34 -0
- package/network-diagram.js +1744 -0
- package/package.json +5 -1
- package/recipe-card.js +9335 -1
- package/recipes/zerops-showcase.json +1 -1
- package/chunks/register-C5_R6XU0.js +0 -24212
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Importing this module registers the <zerops-network-diagram> custom element.
|
|
3
|
+
*/
|
|
4
|
+
export interface ZeropsNetworkDiagramElement extends HTMLElement {
|
|
5
|
+
/** Catalog slug — the element fetches the recipe from the public API. */
|
|
6
|
+
slug: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Pre-captured raw recipe (see the package's recipes/*.json) — renders
|
|
9
|
+
* with no API call and wins over `slug`. Accepts the object or a JSON
|
|
10
|
+
* string.
|
|
11
|
+
*/
|
|
12
|
+
recipeData: object | string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Environment key to draw (e.g. 'highly-available-production', 'stage').
|
|
15
|
+
* Falls back to the recipe's default environment when the key is absent.
|
|
16
|
+
* Default: 'highly-available-production'.
|
|
17
|
+
*/
|
|
18
|
+
environment: string;
|
|
19
|
+
/**
|
|
20
|
+
* Project-core rendering. 'auto' (default) derives it from the drawn
|
|
21
|
+
* environment's core service — HA cores render the full serious
|
|
22
|
+
* infrastructure (ctrl/stats/logger + L7), non-HA cores render the
|
|
23
|
+
* combined lightweight node. 'lightweight'/'serious' force a mode.
|
|
24
|
+
*/
|
|
25
|
+
mode: 'auto' | 'lightweight' | 'serious';
|
|
26
|
+
/** Public API origin. Default: https://api.zerops.io */
|
|
27
|
+
apiBase: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
'zerops-network-diagram': ZeropsNetworkDiagramElement;
|
|
33
|
+
}
|
|
34
|
+
}
|