code0-tech / pictor

Base UI components for code0 applications
Other
3 stars 0 forks source link

Update dependency @ariakit/react to ^0.4.9 #186

Closed renovate[bot] closed 2 months ago

renovate[bot] commented 2 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@ariakit/react (source) ^0.4.8 -> ^0.4.9 age adoption passing confidence

Release Notes

ariakit/ariakit (@​ariakit/react) ### [`v0.4.9`](https://togithub.com/ariakit/ariakit/blob/HEAD/packages/ariakit-react/CHANGELOG.md#049) [Compare Source](https://togithub.com/ariakit/ariakit/compare/@ariakit/react@0.4.8...@ariakit/react@0.4.9) ##### New `useStoreState` hook The [`useStoreState`](https://ariakit.org/reference/use-store-state) hook is now part of the public API. Previously used internally by dynamic `useState` hooks from Ariakit store objects, it is now available in the `@ariakit/react` package to ensure compatibility with the new React Compiler. The following snippets are equivalent: ```js const combobox = useComboboxStore(); const value = combobox.useState("value"); ``` ```js const combobox = useComboboxStore(); const value = useStoreState(combobox, "value"); ``` Besides working better with the new React Compiler, [`useStoreState`](https://ariakit.org/reference/use-store-state) is more flexible than `store.useState` as it accepts a store that is `null` or `undefined`, in which case the returned value will be `undefined`. This is useful when you're reading a store from a context that may not always be available: ```js const combobox = useComboboxContext(); const value = useStoreState(combobox, "value"); ``` ##### New `ComboboxValue` component A [`ComboboxValue`](https://ariakit.org/reference/combobox-value) component is now available. This *value* component displays the current value of the combobox input without rendering any DOM elements or taking any HTML props. You can optionally pass a function as a child returning any React node based on the current value: ```jsx {(value) => `Current value: ${value}`} ``` ##### `aria-selected` on composite items Composite items like [`ComboboxItem`](https://ariakit.org/reference/combobox-item) no longer have the `aria-selected` attribute automatically set when focused. This attribute was previously used to address an old bug in Google Chrome, but it's no longer needed. Now, it's only set when the item is actually selected, such as in a select widget or a multi-selectable combobox. This change shouldn't affect most users since the `aria-selected` attribute is not part of the public API and is not recommended as a [CSS selector](https://ariakit.org/guide/styling#css-selectors) (use [`[data-active-item]`](https://ariakit.org/guide/styling#data-active-item) instead). However, if you have snapshot tests, you may need to update them. ##### Other updates - Added [`userValue`](https://ariakit.org/reference/combobox-item-value#uservalue) prop to [`ComboboxItemValue`](https://ariakit.org/reference/combobox-item-value). - Improved JSDocs. - Updated dependencies: `@ariakit/react-core@0.4.9`

Configuration

šŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

šŸš¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.

ā™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

šŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

github-actions[bot] commented 2 months ago

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/pictor/-/pipelines/1419824602

Status: Passed \ Duration: 4 minutes

Job summaries

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/7620984737/artifacts/dist/index.html

storybook:build

Storybook available at https://code0-tech.gitlab.io/-/development/pictor/-/jobs/7620972272/artifacts/storybook-static/index.html