cablefyi-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
+ * cablefyi-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 CableFYI */
14
+ 'cablefyi'?: 'entity' | 'compare' | 'glossary' | 'search' | 'faq' | 'connector' | 'standard' | 'compatibility' | 'speed-bar';
15
+ /** Entity slug (e.g. "cables") */
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": "cablefyi-embed",
3
+ "version": "1.0.0",
4
+ "description": "Embed CableFYI widgets — cable specs, connector cards, standard comparisons, compatibility checker. 151 cables. 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
+ "cable",
15
+ "connector",
16
+ "usb",
17
+ "hdmi",
18
+ "thunderbolt",
19
+ "usb-c",
20
+ "standard",
21
+ "compatibility",
22
+ "embed",
23
+ "widget",
24
+ "cablefyi",
25
+ "cablefyi.com",
26
+ "shadow-dom",
27
+ "zero-dependencies",
28
+ "fyipedia",
29
+ "networkfyi"
30
+ ],
31
+ "homepage": "https://widget.cablefyi.com",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/fyipedia/cablefyi-embed"
35
+ },
36
+ "bugs": {
37
+ "url": "https://github.com/fyipedia/cablefyi-embed/issues"
38
+ },
39
+ "license": "MIT",
40
+ "author": "FYIPedia <dev@fyipedia.com>",
41
+ "publishConfig": {
42
+ "access": "public"
43
+ }
44
+ }