statuscodefyi-embed 1.0.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.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * statuscodefyi-embed — TypeScript declarations
3
+ *
4
+ * The embed script is self-executing. Simply import it to activate widgets.
5
+ * All configuration is provided via data-* attributes on DOM elements.
6
+ */
7
+
8
+ export {};
9
+
10
+ declare global {
11
+ interface HTMLElement {
12
+ dataset: DOMStringMap & {
13
+ /** Widget type for StatusCodeFYI */
14
+ 'statuscodefyi'?: 'entity' | 'compare' | 'glossary' | 'search' | 'faq' | 'protocol' | 'scenario' | 'status-badge';
15
+ /** Entity slug (e.g. "codes") */
16
+ slug?: string;
17
+ /** Visual theme */
18
+ theme?: 'light' | 'dark' | 'sepia' | 'auto';
19
+ /** Widget design style */
20
+ styleVariant?: 'modern' | 'clean';
21
+ /** Widget size */
22
+ size?: 'default' | 'compact' | 'large';
23
+ /** Search box placeholder text */
24
+ placeholder?: string;
25
+ };
26
+ }
27
+ }
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "statuscodefyi-embed",
3
+ "version": "1.0.0",
4
+ "description": "Embed StatusCodeFYI widgets — HTTP/SMTP/gRPC status code cards, protocol details, error scenarios. Zero dependencies, Shadow DOM, 4 themes.",
5
+ "main": "dist/embed.min.js",
6
+ "module": "dist/embed.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist/",
10
+ "README.md",
11
+ "LICENSE"
12
+ ],
13
+ "keywords": [
14
+ "http",
15
+ "status-code",
16
+ "error-code",
17
+ "smtp",
18
+ "grpc",
19
+ "protocol",
20
+ "404",
21
+ "500",
22
+ "embed",
23
+ "widget",
24
+ "statuscodefyi",
25
+ "statuscodefyi.com",
26
+ "shadow-dom",
27
+ "zero-dependencies",
28
+ "fyipedia",
29
+ "networkfyi"
30
+ ],
31
+ "homepage": "https://widget.statuscodefyi.com",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/fyipedia/statuscodefyi-embed"
35
+ },
36
+ "bugs": {
37
+ "url": "https://github.com/fyipedia/statuscodefyi-embed/issues"
38
+ },
39
+ "license": "MIT",
40
+ "author": "FYIPedia <dev@fyipedia.com>",
41
+ "publishConfig": {
42
+ "access": "public"
43
+ }
44
+ }