Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace redundant useManagedState with Vue's defineModel #2529

Merged
merged 14 commits into from
Jan 21, 2025

Conversation

JoCa96
Copy link
Collaborator

@JoCa96 JoCa96 commented Jan 16, 2025

The changes are mostly internal, but the typings were of OnyxSelect have changed:

  • The modelValue now infers a specific subtype of SelectOptionValue and the options values must match.
  • withSearch: Filtering of the options will not automatically disabled anymore when searchTerm is bound. Instead noFilter must be set.
  • removed Arrayable type, imported from vitest, as it was an internal type. Replaced with our own type with the same name.
  • removed redundant MaybeReactiveSource type, as it is now covered by Vue's MaybeRefOrGetter type

Copy link

changeset-bot bot commented Jan 16, 2025

🦋 Changeset detected

Latest commit: 6d29d4c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@sit-onyx/headless Patch
sit-onyx Major
demo-app Patch
playground Patch
@sit-onyx/chartjs-plugin Major
@sit-onyx/nuxt Major
@sit-onyx/vitepress-theme Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoCa96 JoCa96 force-pushed the joca96/remove-managed-state branch 3 times, most recently from 42ee9e0 to 7deab1a Compare January 16, 2025 10:36
@JoCa96 JoCa96 changed the title replaced managed state with defineModel chore: replace redundant useManagedState with Vue's defineModel Jan 16, 2025
@JoCa96 JoCa96 marked this pull request as ready for review January 16, 2025 12:32
@JoCa96 JoCa96 requested a review from a team as a code owner January 16, 2025 12:32
@larsrickert larsrickert self-assigned this Jan 17, 2025
@JoCa96 JoCa96 force-pushed the joca96/remove-managed-state branch from a77be86 to 77d2951 Compare January 17, 2025 08:03
@JoCa96 JoCa96 requested a review from larsrickert January 17, 2025 08:18
@JoCa96 JoCa96 force-pushed the joca96/remove-managed-state branch from 6138353 to 21148a0 Compare January 17, 2025 12:04
@JoCa96 JoCa96 requested a review from larsrickert January 17, 2025 12:05
@JoCa96 JoCa96 force-pushed the joca96/remove-managed-state branch from 21148a0 to 725f854 Compare January 21, 2025 14:15
@JoCa96 JoCa96 enabled auto-merge January 21, 2025 14:20
@JoCa96 JoCa96 added this pull request to the merge queue Jan 21, 2025
Merged via the queue into main with commit ece5641 Jan 21, 2025
20 checks passed
@JoCa96 JoCa96 deleted the joca96/remove-managed-state branch January 21, 2025 15:17
JoCa96 added a commit that referenced this pull request Jan 30, 2025
The changes are mostly internal, but the typings were of `OnyxSelect`
have changed:

- The `modelValue` now infers a specific subtype of `SelectOptionValue`
and the `options` values must match.
- `withSearch`: Filtering of the options will not automatically disabled
anymore when `searchTerm` is bound. Instead `noFilter` must be set.
- removed `Arrayable` type, imported from `vitest`, as it was an
internal type. Replaced with our own type with the same name.
- removed redundant `MaybeReactiveSource` type, as it is now covered by
Vue's `MaybeRefOrGetter` type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants