@prokodo/ui 0.0.55 → 0.1.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/README.md +116 -7
- package/dist/components/image/Image.client.js +39 -0
- package/dist/components/image/Image.js +8 -30
- package/dist/components/image/Image.lazy.js +16 -0
- package/dist/components/image/Image.server.js +88 -0
- package/dist/components/link/Link.client.js +4 -1
- package/dist/components/link/Link.server.js +14 -2
- package/dist/constants/project.js +1 -1
- package/dist/helpers/createIsland.js +11 -20
- package/dist/helpers/runtime.client.js +15 -0
- package/dist/index.js +4 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/image/Image.client.d.ts +4 -0
- package/dist/types/components/image/Image.d.ts +3 -2
- package/dist/types/components/image/Image.lazy.d.ts +5 -0
- package/dist/types/components/image/Image.server.d.ts +4 -0
- package/dist/types/components/link/Link.server.d.ts +1 -1
- package/dist/types/helpers/runtime.client.d.ts +15 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/ui.css +50 -130
- package/package.json +37 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prokodo/ui",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "UI components for production-grade Next.js + Headless CMS (Strapi, Contentful, Headless WordPress) websites by prokodo – built for Core Web Vitals & SEO.",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
"types": "./dist/types/helpers/createLazyWrapper.d.ts",
|
|
21
21
|
"import": "./dist/helpers/createLazyWrapper.js"
|
|
22
22
|
},
|
|
23
|
+
"./runtime": {
|
|
24
|
+
"types": "./dist/types/helpers/runtime.client.d.ts",
|
|
25
|
+
"import": "./dist/helpers/runtime.client.js"
|
|
26
|
+
},
|
|
23
27
|
"./accordion": {
|
|
24
28
|
"import": "./dist/components/accordion/index.js",
|
|
25
29
|
"types": "./dist/types/components/accordion/index.d.ts"
|
|
@@ -205,6 +209,26 @@
|
|
|
205
209
|
"bugs": {
|
|
206
210
|
"url": "https://github.com/prokodo-agency/ui/issues"
|
|
207
211
|
},
|
|
212
|
+
"scripts": {
|
|
213
|
+
"dev": "PK_ENABLE_DEBUG_LOGS=true vite",
|
|
214
|
+
"build": "vite build && pnpm build:types && node tools/update-exports.mjs",
|
|
215
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
216
|
+
"typecheck": "tsc --project tsconfig.typecheck.json",
|
|
217
|
+
"test": "NODE_ENV=test jest --coverage --verbose && pnpm format && pnpm lint && pnpm typecheck",
|
|
218
|
+
"test:watch": "NODE_ENV=test jest --watch",
|
|
219
|
+
"test:ci": "NODE_ENV=test jest --runInBand --ci",
|
|
220
|
+
"fix": "pnpm format:fix && pnpm lint:fix",
|
|
221
|
+
"lint": "eslint 'src/**/*.{ts,tsx}' --cache --cache-location .eslintcache",
|
|
222
|
+
"lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix --cache --cache-location .eslintcache",
|
|
223
|
+
"format": "prettier --check .",
|
|
224
|
+
"format:fix": "prettier --write .",
|
|
225
|
+
"storybook": "storybook dev -p 6006",
|
|
226
|
+
"storybook:build": "storybook build && echo 'ui.prokodo.com' > storybook-static/CNAME",
|
|
227
|
+
"storybook:deploy": "gh-pages -d storybook-static",
|
|
228
|
+
"export-icons": "tsx tools/export-icons.ts",
|
|
229
|
+
"prepare": "husky",
|
|
230
|
+
"release": "pnpm build && pnpm changeset && pnpm changeset version && pnpm install && git add . && git commit -m 'ci: version bump' && git tag v$(node -p \"require('./package.json').version\") && git push && git push --tags"
|
|
231
|
+
},
|
|
208
232
|
"dependencies": {
|
|
209
233
|
"@googlemaps/js-api-loader": "^1.16.6",
|
|
210
234
|
"@lottiefiles/dotlottie-react": "^0.7.2",
|
|
@@ -226,6 +250,7 @@
|
|
|
226
250
|
"@babel/preset-typescript": "^7.27.1",
|
|
227
251
|
"@changesets/cli": "^2.29.4",
|
|
228
252
|
"@chromatic-com/storybook": "^3",
|
|
253
|
+
"@csstools/css-color-parser": "^3.1.0",
|
|
229
254
|
"@eslint/compat": "^1.2.0",
|
|
230
255
|
"@jest/globals": "^29.7.0",
|
|
231
256
|
"@jest/types": "^29.6.3",
|
|
@@ -246,8 +271,8 @@
|
|
|
246
271
|
"@types/hast": "^3.0.4",
|
|
247
272
|
"@types/jest": "^29.5.13",
|
|
248
273
|
"@types/node": "^22.15.21",
|
|
249
|
-
"@types/react": "19.
|
|
250
|
-
"@types/react-dom": "19.
|
|
274
|
+
"@types/react": "19.2.2",
|
|
275
|
+
"@types/react-dom": "19.2.2",
|
|
251
276
|
"@typescript-eslint/eslint-plugin": "^8.8.1",
|
|
252
277
|
"@typescript-eslint/parser": "^8.8.1",
|
|
253
278
|
"@vitejs/plugin-react": "^4.5.0",
|
|
@@ -281,8 +306,8 @@
|
|
|
281
306
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
282
307
|
"postcss-preset-env": "^10.0.2",
|
|
283
308
|
"prettier": "^3.3.3",
|
|
284
|
-
"react": "19.
|
|
285
|
-
"react-dom": "19.
|
|
309
|
+
"react": "19.2.0",
|
|
310
|
+
"react-dom": "19.2.0",
|
|
286
311
|
"rollup-plugin-visualizer": "^5.9.0",
|
|
287
312
|
"sass": "^1.86.3",
|
|
288
313
|
"storybook": "8.2.9",
|
|
@@ -323,32 +348,17 @@
|
|
|
323
348
|
"README.md",
|
|
324
349
|
"LICENSE"
|
|
325
350
|
],
|
|
326
|
-
"author":
|
|
351
|
+
"author": {
|
|
352
|
+
"name": "prokodo",
|
|
353
|
+
"email": "info@prokodo.com",
|
|
354
|
+
"url": "https://www.prokodo.com/en/next-js-agency/?utm_source=npm&utm_medium=author&utm_campaign=prokodo_ui"
|
|
355
|
+
},
|
|
327
356
|
"license": "BUSL-1.1",
|
|
328
357
|
"funding": {
|
|
329
358
|
"type": "other",
|
|
330
|
-
"url": "https://www.prokodo.com/
|
|
359
|
+
"url": "https://www.prokodo.com/en/next-js-agency/?utm_source=npm&utm_medium=funding&utm_campaign=prokodo_ui"
|
|
331
360
|
},
|
|
332
361
|
"publishConfig": {
|
|
333
362
|
"access": "public"
|
|
334
|
-
},
|
|
335
|
-
"scripts": {
|
|
336
|
-
"dev": "PK_ENABLE_DEBUG_LOGS=true vite",
|
|
337
|
-
"build": "vite build && pnpm build:types && node tools/update-exports.mjs",
|
|
338
|
-
"build:types": "tsc --project tsconfig.build.json",
|
|
339
|
-
"typecheck": "tsc --project tsconfig.typecheck.json",
|
|
340
|
-
"test": "NODE_ENV=test jest --coverage --verbose && pnpm format && pnpm lint && pnpm typecheck",
|
|
341
|
-
"test:watch": "NODE_ENV=test jest --watch",
|
|
342
|
-
"test:ci": "NODE_ENV=test jest --runInBand --ci",
|
|
343
|
-
"fix": "pnpm format:fix && pnpm lint:fix",
|
|
344
|
-
"lint": "eslint 'src/**/*.{ts,tsx}' --cache --cache-location .eslintcache",
|
|
345
|
-
"lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix --cache --cache-location .eslintcache",
|
|
346
|
-
"format": "prettier --check .",
|
|
347
|
-
"format:fix": "prettier --write .",
|
|
348
|
-
"storybook": "storybook dev -p 6006",
|
|
349
|
-
"storybook:build": "storybook build && echo 'ui.prokodo.com' > storybook-static/CNAME",
|
|
350
|
-
"storybook:deploy": "gh-pages -d storybook-static",
|
|
351
|
-
"export-icons": "tsx tools/export-icons.ts",
|
|
352
|
-
"release": "pnpm build && pnpm changeset && pnpm changeset version && pnpm install && git add . && git commit -m 'ci: version bump' && git tag v$(node -p \"require('./package.json').version\") && git push && git push --tags"
|
|
353
363
|
}
|
|
354
|
-
}
|
|
364
|
+
}
|