vinofyi-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.
- package/LICENSE +21 -0
- package/README.md +173 -0
- package/dist/embed.esm.js +1723 -0
- package/dist/embed.min.js +840 -0
- package/dist/index.d.ts +27 -0
- package/package.json +43 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vinofyi-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 VinoFYI */
|
|
14
|
+
'vinofyi'?: 'recipe' | 'compare' | 'glossary' | 'faq' | 'guide' | 'ingredient' | 'pairing' | 'search';
|
|
15
|
+
/** Entity slug (e.g. "wines") */
|
|
16
|
+
slug?: string;
|
|
17
|
+
/** Visual theme */
|
|
18
|
+
theme?: 'light' | 'dark' | 'sepia' | 'auto';
|
|
19
|
+
/** Widget design style */
|
|
20
|
+
style?: 'modern' | 'classic';
|
|
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,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vinofyi-embed",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Embed VinoFYI wine widgets — grape varieties, regions, food pairings, tasting notes. 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
|
+
"wine",
|
|
15
|
+
"vino",
|
|
16
|
+
"grape",
|
|
17
|
+
"sommelier",
|
|
18
|
+
"pairing",
|
|
19
|
+
"vineyard",
|
|
20
|
+
"region",
|
|
21
|
+
"embed",
|
|
22
|
+
"widget",
|
|
23
|
+
"vinofyi",
|
|
24
|
+
"vinofyi.com",
|
|
25
|
+
"shadow-dom",
|
|
26
|
+
"zero-dependencies",
|
|
27
|
+
"fyipedia",
|
|
28
|
+
"drinkfyi"
|
|
29
|
+
],
|
|
30
|
+
"homepage": "https://widget.vinofyi.com",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/fyipedia/vinofyi-embed"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/fyipedia/vinofyi-embed/issues"
|
|
37
|
+
},
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"author": "FYIPedia <dev@fyipedia.com>",
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
}
|
|
43
|
+
}
|