diff --git a/CHANGELOG.md b/CHANGELOG.md index c494a761..5464cf4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Added + +- **ScrollAnimation:** add a `withScrollAnimationDebug` decorator ([#494](https://github.com/studiometa/ui/pull/494)) + +### Changed + +- **ScrollAnimation:** refactor components into `ScrollAnimationTimeline` and `ScrollAnimationTarget` ([#441](https://github.com/studiometa/ui/issues/441) [#494](https://github.com/studiometa/ui/pull/494), [a5d0e29](https://github.com/studiometa/ui/commit/a5d0e29)) + ## [v1.7.0](https://github.com/studiometa/ui/compare/1.6.0..1.7.0) (2025-11-11) ### Added diff --git a/CLAUDE.md b/CLAUDE.md index 89d9d949..5916beb6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,5 +1,10 @@ # @studiometa/ui packages +## Commit messages + +- Use English for commit messages +- Use simple verb-first sentences (e.g., "Add...", "Fix...", "Refactor...") + ## Project structure - Monorepo managed by NPM with packages in the `./packages` folder diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..0b50296a --- /dev/null +++ b/codecov.yml @@ -0,0 +1,26 @@ +coverage: + status: + project: + default: + target: auto + threshold: 1% + informational: true + patch: + default: + target: auto + threshold: 1% + informational: true + +comment: + layout: "diff, flags, files" + behavior: default + require_changes: false + require_base: false + require_head: true + +ignore: + - "packages/docs/**" + - "packages/tests/**" + - "**/node_modules/**" + - "**/*.spec.ts" + - "**/*.test.ts" diff --git a/packages/docs/.vitepress/config.ts b/packages/docs/.vitepress/config.ts index b6f67cc4..9292d0dc 100644 --- a/packages/docs/.vitepress/config.ts +++ b/packages/docs/.vitepress/config.ts @@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs'; import { basename, dirname } from 'node:path'; import { defineConfig } from 'vitepress'; import { transformerTwoslash } from '@shikijs/vitepress-twoslash'; -import { withLeadingSlash, withLeadingCharacters } from '@studiometa/js-toolkit/utils'; +import { withLeadingSlash } from '@studiometa/js-toolkit/utils'; import glob from 'fast-glob'; import pkg from '../package.json' with { type: 'json' }; @@ -78,7 +78,10 @@ export default defineConfig({ }, { text: `v${pkg.version}`, - items: [{ text: 'Release Notes', link: 'https://github.com/studiometa/ui/releases' }], + items: [ + { text: 'Release Notes', link: 'https://github.com/studiometa/ui/releases' }, + { text: 'Migration guides', link: '/migration-guides/' }, + ], }, ], sidebar: { diff --git a/packages/docs/components/Action/index.md b/packages/docs/components/Action/index.md index e48300df..9dcc9698 100644 --- a/packages/docs/components/Action/index.md +++ b/packages/docs/components/Action/index.md @@ -72,7 +72,6 @@ And specify an additional selector to filter the targeted components: - ### Simple usage with the `Target` component The `Target` component is a companion of the `Action` component that can be used to easily target other DOM elements without creating specific component. diff --git a/packages/docs/components/Action/js-api.md b/packages/docs/components/Action/js-api.md index 97ac8138..fda961cd 100644 --- a/packages/docs/components/Action/js-api.md +++ b/packages/docs/components/Action/js-api.md @@ -24,6 +24,7 @@ Use this option to change the event that will trigger the [effect callback](#eff Modifiers can be chained with a `.` as separator: + ```html {3} + ``` + #### Multiple targets + ```html {3} - + ``` + #### Reduce the list of target with a selector In the following example, the effect callback will only be triggered on the `Foo` component with the `foo` id. -```html {3,9} + +```html {3,7} -
- ... -
- -
- ... -
-``` +
...
+
...
+``` + ### `effect` @@ -135,6 +127,7 @@ The `effect` option must be used to define a small piece of JavaScript that will The effect can also define an arrow function which will be executed as well. The following examples are similar: + ```html {3,9}