@yoast/ai-insights-client 1.0.1 → 1.1.1

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 @@
1
+ export {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yoast/ai-insights-client",
3
3
  "private": false,
4
- "version": "1.0.1",
4
+ "version": "1.1.1",
5
5
  "type": "module",
6
6
  "description": "A React component library for AI-powered brand analysis and insights",
7
7
  "keywords": [
@@ -13,7 +13,20 @@
13
13
  ],
14
14
  "author": "Yoast",
15
15
  "license": "MIT",
16
- "main": "./dist/index.js",
16
+ "main": "./dist/ai-insights-client.cjs.js",
17
+ "module": "./dist/ai-insights-client.es.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/ai-insights-client.es.js",
23
+ "require": "./dist/ai-insights-client.cjs.js"
24
+ },
25
+ "./dist/*.css": {
26
+ "import": "./dist/*.css",
27
+ "require": "./dist/*.css"
28
+ }
29
+ },
17
30
  "files": [
18
31
  "dist"
19
32
  ],
@@ -21,22 +34,39 @@
21
34
  "dev": "vite",
22
35
  "clean": "rm -rf dist/*",
23
36
  "ts:watch": "tsc --noEmit --watch --preserveWatchOutput",
24
- "build": "yarn clean && tsc -b",
37
+ "build": "yarn clean && vite build",
38
+ "buildtsc": "yarn clean && tsc -b",
25
39
  "buildvite": "yarn clean && vite build",
26
40
  "build:analyze": "npm run build && npx vite-bundle-analyzer dist",
27
41
  "build:types": "tsc -p tsconfig.lib.json",
28
- "build:lib": "yarn build:types && vite build",
42
+ "build:lib": "yarn build",
29
43
  "lint": "eslint .",
30
44
  "preview": "vite preview",
31
45
  "analyze:ui-lib": "node scripts/generate-ui-lib-types.js",
32
- "prebuild": "yarn orval:prod",
33
- "prepublishOnly": "yarn build:lib",
34
- "orval:prod": "API=https://ai-insights-api.vercel.app yarn orval"
46
+ "prepublishOnly": "yarn build",
47
+ "orval:dev": "API=http://localhost:8000 yarn orval",
48
+ "orval:prod": "API=https://ai-insights-api.vercel.app yarn orval",
49
+ "refreshpush": "yarn buildvite; yalc push; docker restart myyoast-client;"
35
50
  },
36
51
  "peerDependencies": {
37
52
  "@yoast/ui-library": "^4.0.0",
38
53
  "react": "^18.0.0",
39
- "react-dom": "^18.0.0"
54
+ "react-dom": "^18.0.0",
55
+ "styled-components": "^5.0.0 || ^6.0.0"
56
+ },
57
+ "peerDependenciesMeta": {
58
+ "@yoast/ui-library": {
59
+ "optional": false
60
+ },
61
+ "react": {
62
+ "optional": false
63
+ },
64
+ "react-dom": {
65
+ "optional": false
66
+ },
67
+ "styled-components": {
68
+ "optional": false
69
+ }
40
70
  },
41
71
  "dependencies": {
42
72
  "@headlessui/react": "^2.2.7",
@@ -50,14 +80,17 @@
50
80
  "date-fns": "^4.1.0",
51
81
  "react-chartjs-2": "^5.3.0",
52
82
  "react-router-dom": "^7.6.3",
53
- "styled-components": "^6.1.19",
54
83
  "tailwindcss": "^3.4.17",
55
84
  "web-vitals": "^5.1.0"
56
85
  },
57
86
  "devDependencies": {
87
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
88
+ "@babel/plugin-proposal-private-methods": "^7.18.6",
89
+ "@babel/preset-env": "^7.28.3",
58
90
  "@eslint/js": "^9.30.1",
59
91
  "@tailwindcss/nesting": "^0.0.0-insiders.565cd3e",
60
92
  "@tanstack/eslint-plugin-query": "^5.81.2",
93
+ "@tanstack/react-query": "^5.82.0",
61
94
  "@tanstack/react-query-devtools": "^5.83.0",
62
95
  "@types/prop-types": "^15.7.15",
63
96
  "@types/react": "^19.1.8",
@@ -67,6 +100,7 @@
67
100
  "@yoast/ui-library": "^4.2.0",
68
101
  "autoprefixer": "^10.4.21",
69
102
  "babel-plugin-styled-components": "^2.1.4",
103
+ "classnames": "^2.5.1",
70
104
  "eslint": "^9.30.1",
71
105
  "eslint-config-prettier": "^10.1.5",
72
106
  "eslint-plugin-import": "^2.32.0",
@@ -79,14 +113,16 @@
79
113
  "prettier": "^3.6.2",
80
114
  "prettier-plugin-tailwindcss": "^0.6.14",
81
115
  "prop-types": "^15.8.1",
82
- "react": "^18.2.0",
83
- "react-dom": "^18.2.0",
116
+ "react": "18.2.0",
117
+ "react-dom": "18.2.0",
84
118
  "sass": "^1.89.2",
85
119
  "sass-embedded": "^1.89.2",
120
+ "styled-components": "^6.1.19",
86
121
  "terser": "^5.43.1",
87
122
  "typescript": "~5.8.3",
88
123
  "typescript-eslint": "^8.35.1",
89
- "vite": "^7.0.3"
124
+ "vite": "^7.0.3",
125
+ "vite-plugin-dts": "^4.5.4"
90
126
  },
91
127
  "resolutions": {
92
128
  "styled-components": "^5"