Skip to content

Commit 5d88274

Browse files
Merge branch 'main' into release
2 parents 4282dd2 + 6f11c00 commit 5d88274

File tree

15 files changed

+4513
-2192
lines changed

15 files changed

+4513
-2192
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest]
18-
node: [18]
18+
node: [22]
1919

2020
steps:
2121
- uses: actions/checkout@v4
22-
- run: corepack enable
22+
2323
- uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node }}
26-
cache: pnpm
26+
27+
- run: npm install --global corepack@latest
28+
29+
- run: corepack enable
2730

2831
- name: 📦 Install dependencies
2932
run: pnpm install

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- run: corepack enable
1817
- uses: actions/setup-node@v4
1918
with:
20-
node-version: '18'
19+
node-version: '22'
2120
cache: pnpm
21+
- run: npm install --global corepack@latest
22+
- run: corepack enable
23+
2224
# Pick your own package manager and build script
2325
- run: pnpm install
2426
- run: pnpm dev:generate --preset=github-pages

docs/content/2.usage/1.component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Works nicely with the [NuxtIcon](https://github.com/nuxt-modules/icon) module, i
174174

175175
## Styling
176176

177-
The `<SocialShare>` component comes unstyled by default, only providing some minimal flex properties to correctly align icon and label, to allow for easy integration in any kind of UI. This behavoir can be easily overridden by using the `:styled="true"` prop.
177+
The `<SocialShare>` component comes unstyled by default, only providing some minimal flex properties to correctly align icon and label, to allow for easy integration in any kind of UI. This behavior can be easily overridden by using the `:styled="true"` prop.
178178

179179
Both the styled and unstyled versions can be further customized, mainly by working directly with its CSS. In addition to the CSS classes shown above, each button also has a *local* `--color-brand` CSS variable, that can be used to customize each instance.
180180

docs/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
"generate": "nuxt generate"
99
},
1010
"dependencies": {
11-
"@iconify-json/lucide": "^1.2.23",
12-
"@iconify-json/simple-icons": "^1.2.20",
11+
"@iconify-json/lucide": "^1.2.35",
12+
"@iconify-json/simple-icons": "^1.2.31",
1313
"@nuxt/content": "^2.13.4",
14-
"@nuxt/fonts": "^0.10.3",
14+
"@nuxt/fonts": "^0.11.1",
1515
"@nuxt/image": "^1.9.0",
1616
"@nuxt/ui-pro": "^1.7.0",
1717
"@nuxtjs/seo": "2.0.3",
1818
"nuxt": "^3.15.2",
19-
"posthog-js": "^1.207.0"
19+
"posthog-js": "^1.235.0"
2020
},
2121
"devDependencies": {
2222
"@nuxthq/studio": "^2.2.1",
23-
"vue-tsc": "^2.2.0"
23+
"vue-tsc": "^2.2.8"
2424
}
2525
}

package.json

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@
1919
},
2020
"exports": {
2121
".": {
22-
"types": "./dist/types.d.ts",
23-
"import": "./dist/module.mjs",
24-
"require": "./dist/module.cjs"
22+
"types": "./dist/types.d.mts",
23+
"import": "./dist/module.mjs"
2524
}
2625
},
27-
"main": "./dist/module.cjs",
28-
"types": "./dist/types.d.ts",
26+
"main": "./dist/module.mjs",
27+
"types": "./dist/types.d.mts",
2928
"files": [
3029
"dist"
3130
],
@@ -48,26 +47,26 @@
4847
"prepare": "husky"
4948
},
5049
"dependencies": {
51-
"@nuxt/kit": "^3.15.2",
50+
"@nuxt/kit": "^3.16.2",
5251
"defu": "^6.1.4"
5352
},
5453
"devDependencies": {
55-
"@commitlint/cli": "^19.6.1",
56-
"@commitlint/config-conventional": "^19.6.0",
57-
"@nuxt/devtools": "2.0.0-beta.2",
58-
"@nuxt/eslint-config": "^0.7.5",
59-
"@nuxt/module-builder": "^0.8.4",
60-
"@nuxt/schema": "^3.15.2",
61-
"@nuxt/test-utils": "^3.15.4",
54+
"@commitlint/cli": "^19.8.0",
55+
"@commitlint/config-conventional": "^19.8.0",
56+
"@nuxt/devtools": "2.3.2",
57+
"@nuxt/eslint-config": "^1.3.0",
58+
"@nuxt/module-builder": "^1.0.1",
59+
"@nuxt/schema": "^3.16.2",
60+
"@nuxt/test-utils": "^3.17.2",
6261
"@release-it/conventional-changelog": "^10.0.0",
63-
"@stefanobartoletti/eslint-config": "^3.0.9",
64-
"@types/node": "^22.10.7",
65-
"changelogen": "^0.5.7",
66-
"eslint": "^9.18.0",
62+
"@stefanobartoletti/eslint-config": "^4.0.1",
63+
"@types/node": "^22.14.0",
64+
"changelogen": "^0.6.1",
65+
"eslint": "^9.24.0",
6766
"husky": "^9.1.7",
68-
"nuxt": "^3.15.2",
69-
"release-it": "^18.1.1",
70-
"typescript": "~5.6",
71-
"vitest": "^3.0.1"
67+
"nuxt": "^3.16.2",
68+
"release-it": "^18.1.2",
69+
"typescript": "~5.8.3",
70+
"vitest": "^3.1.1"
7271
}
7372
}

playground/assets/css/tailwind.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@import 'tailwindcss';
2+
@plugin "daisyui";
3+
4+
pre {
5+
@apply bg-slate-600 text-white rounded-md p-4 whitespace-pre-wrap;
6+
}
7+
8+
@utility container {
9+
margin-inline: auto;
10+
padding-inline: 2rem;
11+
}

playground/components/SiteFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<footer class="navbar bg-base-200">
3-
<div class="container">
3+
<div class="container flex">
44
<div class="flex flex-row gap-8 mx-auto">
55
<SocialShare
66
v-for="network in ['facebook', 'x', 'linkedin', 'email']"

playground/components/SiteHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<header class="navbar bg-base-200">
3-
<div class="container">
3+
<div class="container flex">
44
<h1 class="font-bold text-xl">Nuxt Social Share</h1>
55

66
<ul class="ml-auto">

playground/nuxt.config.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
import tailwindcss from '@tailwindcss/vite'
2+
13
export default defineNuxtConfig({
24
modules: [
35
'../src/module',
4-
'@nuxtjs/tailwindcss',
56
],
67

7-
socialShare: {
8-
// styled: true,
9-
// label: false,
10-
// icon: false,
11-
baseUrl: 'https://stefanobartoletti.github.io/nuxt-social-share/',
8+
css: [
9+
'./assets/css/tailwind.css',
10+
],
11+
12+
vite: {
13+
plugins: [
14+
tailwindcss(),
15+
],
1216
},
1317

1418
devtools: { enabled: true },

playground/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
"generate": "nuxi generate"
99
},
1010
"dependencies": {
11-
"@nuxtjs/tailwindcss": "^6.13.1",
12-
"daisyui": "^4.12.23",
13-
"nuxt": "^3.15.2"
11+
"@tailwindcss/vite": "^4.1.3",
12+
"daisyui": "^5.0.17",
13+
"nuxt": "^3.16.2",
14+
"tailwindcss": "^4.1.3"
1415
}
1516
}

playground/pages/composable.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,4 @@ const getFacebook = useSocialShare({ network: 'facebook' })
4141
border-radius: 0;
4242
}
4343
}
44-
45-
pre {
46-
@apply bg-slate-600 text-white rounded-md p-4 whitespace-pre-wrap;
47-
}
4844
</style>

playground/pages/index.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,4 @@ const instances = [
8484
border-radius: 0;
8585
}
8686
}
87-
88-
pre {
89-
@apply bg-slate-600 text-white rounded-md p-4 whitespace-pre-wrap;
90-
}
9187
</style>

playground/pages/urls.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,4 @@ testNetworks.forEach((el) => {
5353
border-radius: 0;
5454
}
5555
}
56-
57-
pre {
58-
@apply bg-slate-600 text-white rounded-md p-4 whitespace-pre-wrap;
59-
}
6056
</style>

playground/tailwind.config.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)