Skip to content

Commit aaa1614

Browse files
authored
Merge pull request #3379 from vuestorefront/v2-release/3.3.0
chore: release 3.3.0
2 parents 2c28dc9 + 3c5b5fa commit aaa1614

21 files changed

Lines changed: 18163 additions & 5916 deletions

File tree

.changeset/config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"@storefront-ui/preview-next",
1212
"@storefront-ui/preview-nuxt",
1313
"@storefront-ui/preview-shared",
14-
"@storefront-ui/docs",
1514
"@storefront-ui/example-style",
1615
"@storefront-ui/tests",
1716
"@storefront-ui/vue-test",

.changeset/nuxt4-support.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@storefront-ui/nuxt": minor
3+
---
4+
5+
Add Nuxt 4 support while maintaining backward compatibility with Nuxt 3

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
run: cd apps/test/vue; yarn generate-coverage
156156
- name: SonarCloud Scan
157157
if: ${{ env.SONAR_TOKEN_VUE }}
158-
uses: SonarSource/sonarqube-scan-action@v5
158+
uses: SonarSource/sonarqube-scan-action@v6
159159
with:
160160
projectBaseDir: packages/sfui/frameworks/vue
161161
env:
@@ -190,7 +190,7 @@ jobs:
190190
run: cd apps/test/react; yarn generate-coverage
191191
- name: SonarCloud Scan
192192
if: ${{ env.SONAR_TOKEN_REACT }}
193-
uses: SonarSource/sonarqube-scan-action@v5
193+
uses: SonarSource/sonarqube-scan-action@v6
194194
with:
195195
projectBaseDir: packages/sfui/frameworks/react
196196
env:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.11.1
1+
22.14.0
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const { execSync } = require('node:child_process');
2+
const { resolve, join } = require('node:path');
3+
4+
const pluginName = 'plugin-install-docs-deps';
5+
const projectRoot = resolve(__dirname, '..', '..');
6+
7+
module.exports = {
8+
name: pluginName,
9+
factory: () => ({
10+
hooks: {
11+
afterAllInstalled(_, context) {
12+
if (context?.report?.configuration?.projectCwd === projectRoot) {
13+
try {
14+
execSync('yarn install', { cwd: join(projectRoot, 'apps', 'docs', 'components'), stdio: 'inherit' });
15+
} catch (error) {
16+
console.error('Failed to run yarn install in apps/docs/components:', error);
17+
process.exit(1);
18+
}
19+
}
20+
},
21+
},
22+
}),
23+
};

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ nodeLinker: node-modules
33
plugins:
44
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
55
spec: '@yarnpkg/plugin-workspace-tools'
6+
- path: .yarn/plugins/plugin-install-docs-deps.js
67

78
yarnPath: .yarn/releases/yarn-3.8.7.cjs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ In addition, Storefront UI fits perfectly complex UI setups where one library is
6262
- **Typography** package simplifying usage of 3rd party fonts
6363
- **Figma** file with pixel-perfect representation of SFUI components based on tailwind properties
6464

65-
<a href="https://www.figma.com/file/Q7Nr1NvjPdcGVhykkfDg2k/Storefront-UI-%7C-Design-Kit-v2.5-(public)?type=design&node-id=22913-91045&mode=design"><img src="./_readme/figma_included.png"></a>
65+
<a href="https://www.figma.com/design/ZxaUFeSq1XYvR8v8eqTrJU/SFUI-2-%7C-Design-Kit-v2.7--public-?node-id=22913-91045&p=f&t=Y3eoI5dyw6cRAzVk-0"><img src="./_readme/figma_included.png"></a>
6666

6767
## Contributing
6868

apps/docs/components/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Yarn
2+
.yarn/*
3+
*/.yarn
4+
!.yarn/patches
5+
!.yarn/plugins
6+
!.yarn/releases
7+
!.yarn/sdks

.yarn/patches/sf-docs-base-npm-1.3.2-2dba5f0f27.patch renamed to apps/docs/components/.yarn/patches/sf-docs-base-npm-1.3.2-2dba5f0f27.patch

File renamed without changes.

apps/docs/components/content/_hooks/usePagination.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,12 @@ function CustomPagination() {
165165
<script lang="ts" setup>
166166
import { usePagination, SfIconChevronRight, SfIconChevronLeft, SfButton } from '@storefront-ui/vue';
167167
168+
const totalItems = ref(150);
169+
168170
const { totalPages, pages, selectedPage, startPage, endPage, next, prev, setPage, maxVisiblePages } = usePagination({
169-
totalItems: 150
171+
totalItems,
172+
// initially shown page
173+
currentPage: 2,
170174
});
171175
</script>
172176
@@ -299,10 +303,18 @@ Listed parameters should be passed as object.
299303

300304
| Name | Type | Default value | Description |
301305
| --------- | --------------------- | ------------- | ------------------------------------------- |
306+
::react-only
302307
| totalItems\* | `number` | | total number of items to be be displayed |
303308
| currentPage | `number` | `1` | current active page |
304309
| pageSize | `number` | `10` | number of items per page |
305-
| maxPages | `number` | `1` | maximum number of pages to display** |
310+
| maxPages | `number` | `1` | maximum number of page links to display** |
311+
::
312+
::vue-only
313+
| totalItems\* | `MaybeRefOrGetter<number>` | | total number of items to be be displayed |
314+
| currentPage | `MaybeRefOrGetter<number>` | `1` | current active page |
315+
| pageSize | `MaybeRefOrGetter<number>` | `10` | number of items per page |
316+
| maxPages | `MaybeRefOrGetter<number>` | `1` | maximum number of page links to display** |
317+
::
306318

307319
There is an additional page displayed when the default number (`1`) is passed. When the current number is `1` then page `2` and the last pages are visible. When the penultimate page is the current one then pages `1` and the last one are visible.
308320

@@ -312,8 +324,8 @@ There is an additional page displayed when the default number (`1`) is passed. W
312324
| Name | Type | Default value | Description |
313325
| --------- | -------------- | ------------- | ------------------------------------------- |
314326
| totalPages | `number` | | total number of pages |
315-
| maxVisiblePages | `number` | | total number of pages |
316-
| itemsPerPage | `number` | | total number of pages |
327+
| maxVisiblePages | `number` | | maximum number of visible pages |
328+
| itemsPerPage | `number` | | total number of items per page |
317329
| pages | `number[]` | | array of displayed pages |
318330
| selectedPage | `number` | | current page |
319331
| endPage | `number` | | number of the last page from displayed pages |

0 commit comments

Comments
 (0)