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

Version Packages #819

Merged
merged 1 commit into from
Sep 5, 2023
Merged

Version Packages #819

merged 1 commit into from
Sep 5, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 27, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@zag-js/[email protected]

Minor Changes

  • #826
    224cbbb0 Thanks
    @segunadebayo! - > Breaking Changes 💥

    Redesign select and combobox API to allow passing value as string and collection

    Prior to this change, Zag computes the label and value from the DOM element. While this worked, it makes it
    challenging to manage complex objects that don't match the label and value convention.

    // Create the collection
    const collection = select.collection({
      items: [],
      itemToString(item) {
        return item.label
      },
      itemToValue(item) {
        return item.value
      },
    })
    
    // Pass the collection to the select machine
    const [state, send] = useMachine(
      select.machine({
        collection,
        id: useId(),
      }),
    )

Patch Changes

@zag-js/[email protected]

Minor Changes

Patch Changes

@zag-js/[email protected]

Minor Changes

  • #826
    224cbbb0 Thanks
    @segunadebayo! - > Breaking Changes 💥

    Redesign select and combobox API to allow passing value as string and collection

    Prior to this change, Zag computes the label and value from the DOM element. While this worked, it makes it
    challenging to manage complex objects that don't match the label and value convention.

    // Create the collection
    const collection = select.collection({
      items: [],
      itemToString(item) {
        return item.label
      },
      itemToValue(item) {
        return item.value
      },
    })
    
    // Pass the collection to the select machine
    const [state, send] = useMachine(
      select.machine({
        collection,
        id: useId(),
      }),
    )

Patch Changes

@zag-js/[email protected]

Minor Changes

Patch Changes

@zag-js/[email protected]

Minor Changes

  • 8be96a5e Thanks
    @cschroeter! - - Optimize onFocus and onChange type declaration.
    • Remove onDelete from type defintion.

Patch Changes

@zag-js/[email protected]

Minor Changes

  • #826
    224cbbb0 Thanks
    @segunadebayo! - > Breaking Changes 💥

    Redesign select and combobox API to allow passing value as string and collection

    Prior to this change, Zag computes the label and value from the DOM element. While this worked, it makes it
    challenging to manage complex objects that don't match the label and value convention.

    // Create the collection
    const collection = select.collection({
      items: [],
      itemToString(item) {
        return item.label
      },
      itemToValue(item) {
        return item.value
      },
    })
    
    // Pass the collection to the select machine
    const [state, send] = useMachine(
      select.machine({
        collection,
        id: useId(),
      }),
    )

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

Patch Changes

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@zag-js/[email protected]

@vercel
Copy link

vercel bot commented Aug 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
zag-nextjs ✅ Ready (Inspect) Visit Preview Sep 5, 2023 5:34pm
zag-solid ✅ Ready (Inspect) Visit Preview Sep 5, 2023 5:34pm
zag-vue ✅ Ready (Inspect) Visit Preview Sep 5, 2023 5:34pm
zag-website ✅ Ready (Inspect) Visit Preview Sep 5, 2023 5:34pm

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.

1 participant