@i-dot-ai-npm/component-library-frontend 0.0.8 → 0.0.9

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.
Files changed (2) hide show
  1. package/package.json +5 -2
  2. package/src/index.d.ts +7 -0
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@i-dot-ai-npm/component-library-frontend",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "i.AI GOV.UK design-system override layer (SCSS + JS). Layered on top of govuk-frontend.",
5
5
  "type": "module",
6
6
  "exports": {
7
- ".": "./src/index.js",
7
+ ".": {
8
+ "types": "./src/index.d.ts",
9
+ "default": "./src/index.js"
10
+ },
8
11
  "./scss": "./src/index.scss",
9
12
  "./css": "./dist/i-ai-design-system.min.css",
10
13
  "./min.js": "./dist/i-ai-design-system.min.js"
package/src/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ // Type declarations for the i.AI Design System behaviour layer.
2
+
3
+ /**
4
+ * Progressive enhancement for i.AI components. Call after govuk-frontend's
5
+ * `initAll()`.
6
+ */
7
+ export function initAllIAIDesignSystem(): void;