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

Move deprecated components to deprecated folder #1881

Merged
merged 7 commits into from
Feb 24, 2022

Conversation

pksjce
Copy link
Collaborator

@pksjce pksjce commented Feb 22, 2022

Describe your changes here.
Create a deprecated folder and move all existing deprecated components there.
Setup exports subpaths as well

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@pksjce pksjce requested review from a team and jfuchs February 22, 2022 12:17
@changeset-bot
Copy link

changeset-bot bot commented Feb 22, 2022

🦋 Changeset detected

Latest commit: 7200501

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

This PR includes changesets to release 1 package
Name Type
@primer/react 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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 22, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 58.72 KB (-6.48% 🔽)
dist/browser.umd.js 59.1 KB (-6.46% 🔽)

@@ -0,0 +1,5 @@
---
"@primer/react": patch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change to major here?

} from '../Dropdown'
export {default as FormGroup} from '../FormGroup'
export type {FormGroupProps, FormGroupLabelProps} from '../FormGroup'
export {default as SelectMenu} from '../SelectMenu'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think you're missing the props for SelectMenu, which are still in root index.ts

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@rezrah
Copy link
Contributor

rezrah commented Feb 22, 2022

Thanks for raising this @pksjce. Here's some initial feedback.

  • I expect Docs will fail to build due to the webpack alias being incorrect for the @primer/components dependency in @primer/gatsby-theme-doctocat. It will need to be changed in gatsby-config.js here.
    • It would have been easier if we could pass multiple alias paths, but this webpack 5 feature doesn't seem to be supported in gatsby-plugin-alias-imports plugin. Probably some other options worth exploring. cc. @colebemis
  • There are a few scattered references to Flex and other deprecated components in Getting Started pages. Can we remove these too please?
  • To avoid overlap with other PRs, can we limit scope of this PR to be:
    • Enabling the deprecated bundle
    • Optionally - adding only one or two components like Flex that are already marked as deprecated?
    • E.g. Shall we leave FormGroup to @mperrotti to handle as part of his deprecation issues? Easier to potentially roll them back together as they are related.

package.json Outdated
@@ -67,7 +74,7 @@
"npm": ">=7"
},
"dependencies": {
"@primer/behaviors": "1.1.0",
"@primer/behaviors": "1.0.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol not sure how that happened. i did pull the latest next branch.

@mperrotti
Copy link
Contributor

Shall we leave FormGroup to @mperrotti to handle as part of his deprecation issues? Easier to potentially roll them back together as they are related.

@rezrah - do you want me to push commits to this PR? or open a new one?

@rezrah
Copy link
Contributor

rezrah commented Feb 23, 2022

deprecation issues? Easier to potentially roll them back together as they are related.

@rezrah - do you want me to push commits to this PR? or open a new one?

Easier to roll back if you could open a new one please. Get feedback on that, and when it's ready to go, merge it into next/v35 branch. Would that work for you?

export type {GridProps} from '../Grid'
export {default as Position, Absolute, Fixed, Relative, Sticky} from '../Position'
export type {PositionProps, AbsoluteProps, FixedProps, RelativeProps, StickyProps} from '../Position'
export {default as Dialog} from '../Dialog'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to deprecate Dialog, as there isn't technically a Dialog2 component yet. I'm not actually sure what's going on with this tbh, but it seems like Dialog2 is just a docs-specific alias for Dialog. So maybe this was deprecated mistakenly?

cc. @colebemis do you have any historical context on Dialog/Dialog2?

Copy link
Member

@siddharthkp siddharthkp Feb 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! This one gets to live! There is no Dialog1 or Dialog2, there is only Dialog in our codebase which is referred to as Dialog2 in the docs 😓

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: @pksjce - we've confirmed that this is a hangover from a previous deprecation.

We need to do some additional triage into this, so for the time being can we please remove Dialog altogether from this PR?

* example: import {FormGroup} from '@primer/react/deprecated
*/

export {default as BorderBox} from '../BorderBox'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we intentionally importing these from src instead of moving them to src/deprecated/?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well we don't have all the draft component in a separate folder, so I kept it the same for deprecated

"@primer/react": major
---

Move deprecated components to deprecated folder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A TODO for later @pksjce, we'll need to put more specific breaking change release notes for the components that have moved in this PR.

@@ -51,6 +52,7 @@ export default function resolveScope(metastring) {
...doctocatComponents,
...primerComponents,
...(metastring.includes('drafts') ? drafts : {}),
...deprecated,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, why is deprecated different to drafts in that we aren't checking metadata like the preceding line?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it needs to be conditional, otherwise deprecated components will override components with the same name and you will always see deprecated components in scope

...
...primerComponents, // has Button, ActionMenu
...
...deprecated // also has Button, ActionMenu

@@ -51,6 +52,7 @@ export default function resolveScope(metastring) {
...doctocatComponents,
...primerComponents,
...(metastring.includes('drafts') ? drafts : {}),
...deprecated,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
...deprecated,
...(metastring.includes('deprecated') ? deprecated : {}),

Copy link
Contributor

@rezrah rezrah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @pksjce

Few things we'll need to do in follow-up PRs:

  • SelectMenu should have a @deprecated JSDoc annotation

  • Dropdown will need docs updated to remove the 'Use DropdownMenu instead` line. Or @siddharthkp - do you want to do this bit in your PRs?

  • We'll need to update the changeset to mention each component that's deprecated, and provide the migration guides there.

@rezrah rezrah merged commit 8cd1243 into next/v35.0.0 Feb 24, 2022
@rezrah rezrah deleted the pk/deprecated-components branch February 24, 2022 12:29
mperrotti pushed a commit that referenced this pull request Feb 24, 2022
* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>
@primer-css primer-css mentioned this pull request Feb 24, 2022
mperrotti pushed a commit that referenced this pull request Feb 25, 2022
* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>
mperrotti pushed a commit that referenced this pull request Feb 25, 2022
* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>
mperrotti pushed a commit that referenced this pull request Feb 25, 2022
* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>
mperrotti pushed a commit that referenced this pull request Feb 25, 2022
* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>
pksjce added a commit that referenced this pull request Feb 28, 2022
* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>
colebemis added a commit that referenced this pull request Mar 9, 2022
* prepare integration branch

* Move deprecated components to deprecated folder (#1881)

* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>

* Prefix component with types exported from ActionList2 and ActionMenu2 (#1883)

* prefix component name to types

* add changeset

* Update .changeset/actionlist2-actionmenu2-prefix-types.md

Co-authored-by: Cole Bemis <colebemis@github.com>

Co-authored-by: Cole Bemis <colebemis@github.com>

* Export PageLayout from main bundle (#1882)

* Export PageLayout from main bundle

* Create odd-apes-guess.md

* Add PageLayout to sidenav

* Update .changeset/odd-apes-guess.md

Co-authored-by: Rez <rezrah@github.com>

* Update PageLayout docs

Co-authored-by: Rez <rezrah@github.com>

* Update release notes and add deprecation notices for SelectMenu and Dropdown (#1887)

* chore: add deprecation notices for SelectMenu and Dropdown

* fix: deprecated metadata scope in docs

* docs: update release notes for Flex and BorderBox

* docs: update release notes for Position

* chore: add deprecated scope to jsx snippets

* chore: add release notes for Dropdown deprecation

* chore: add Grid release notes

* update release notes

* Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2  (#1895)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* Revert "Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2  (#1895)" (#1896)

This reverts commit f366604.

* Deprecate ActionList v1 & Promote drafts/ActionList v2 (#1893)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* changelog oopsie

* fix docs copy

* Add @deprecated on deprecated/ActionList

* oopsie on the link

* PR feedback on deprecation message

* Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2 (#1897)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* reorder deprecated components alphabetically

* Update deprecation message

* Fix missing icon that only broke on this PR for some reason

* Deprecate DropdownMenu v1 + Remove DropdownMenu v2 (#1898)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* reorder deprecated components alphabetically

* Update deprecation message

* Fix missing icon that only broke on this PR for some reason

* Deprecate DropdownMenu

* Use deprecated Dropdown for theme switcher

* Delete drafts/DropdownMenu2

* Add changelog

* remove debug statement :)

* Fix code examples in changeset (#1901)

* Update .changeset/deprecate-actionlistv1-promote-actionlistv2.md

* Add linebreaks to changesets

* Button deprecation (#1908)

* Move old button to deprecated

* Move Button2 to main bundle

* Add migration docs

* More changes from the checklist

* More deprecation

* Update tests

* Add deprecated details

* Create many-roses-hammer.md

* Update .changeset/many-roses-hammer.md

Co-authored-by: Rez <rezrah@github.com>

* Update many-roses-hammer.md

* Update many-roses-hammer.md

* Update many-roses-hammer.md

Co-authored-by: Rez <rezrah@github.com>

* Deprecate components replaced by FormControl (#1888)

* moves InputField to deprecated package

* adds jsdoc comments for deprecation

* adds changeset

* fixes bad autoformatting in changeset

* fixes import path in test file

* addresses PR feedback

* fixes FormGroup import in test

* addresses PR feedback

* moves tests to depreacted directory

* removes docs header image

* fixes bad formatting in changelog markdown

* Revert "fix merge conflicts with main"

This reverts commit 363bb07, reversing
changes made to f94dcd3.

* Deprecate ChoiceFieldset and ChoiceInputField (#1900)

* deprecates ChoiceFieldset and ChoiceInputField

* update import paths in tests

* addresses more PR feedback

* fixes bad imports in docs

* updates outdated story and test

* moves components to deprecated directory

* fixes broken docs pages

* fixes bad formatting in changelog markdown

* minor tweaks

* moves deprecated notation for ChoiceInputField

* Deprecate legacy Label component (#1889)

* moves Label to deprecated bundle

* graduates Label2 to main bundle

* cleanup

* adds changeset

* fixes tests

* update legacy label snapshots

* Update .changeset/heavy-points-marry.md

Co-authored-by: Rez <rezrah@github.com>

* Update docs/content/Label.mdx

Co-authored-by: Rez <rezrah@github.com>

* addresses pr feedback

* adds Label back to sidebar

* updates tests, removes docs header image

* removes docs header image

* fixes tests

* resets changed test

Co-authored-by: Rez <rezrah@github.com>

* Move remaining deprecated components to src/deprecated (#1917)

* Move deprecated components to src/deprecated

* Fix imports for tests

* Various fixes for v35 (#1916)

* chore: ad-hoc fixes for next-major branch

* fix #1912 docs error

* docs: remove reference to system props

* Create changeset-for-1917.md (#1919)

* Add align prop on ActionMenu.Overlay to pass through to AnchoredOverlay (#1921)

* Allow ActionMenu.Overlay to pass through align prop to AnchoredOverlay

* Add align prop to docs

* Fix AnchoredOverlay docs

* add changeset

* ActionMenu.Button: Fix spacing between text and caret (#1922)

* Fix spacing between Text and caret for ActionMenu.Button

* Improve changelog

* fix margin after design review

* unrelated change

* Update ActionMenu docs (#1931)

* Button: Update active styles + use them for aria-expanded (#1915)

* Add aria-expanded styles for Button

* update default button active styles

* update snapshot for button

* Create healthy-dots-chew.md

* fix broken test following main merging conflict resolution

* Fixes for v35 (#1934)

* fix ActioMenu story

* backfill missing exports in root index

* fix package-lock

* add changeset

* v35: Remove type aliases for ActionList (#1937)

* Replace aliases for ActionList types

* export types for LinkItem

* update selection types

* Next major changeset edits (#1939)

* Remove unnecessary changesets

* Edit changesets

* Fixes for v35 (#1938)

* add missing root exports

* fix invalid export

* add missing fragments to changesets (#1940)

* Update changeset examples (#1941)

* Fix table in changeset

* Add missing comma

* Fix grid changeset

* Update button changeset

Co-authored-by: Reza Rahman <rezrah@github.com>
Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
Co-authored-by: Pavithra Kodmad <pksjce@github.com>
Co-authored-by: Mike Perrotti <mperrotti@github.com>
pksjce added a commit that referenced this pull request Mar 10, 2022
* prepare integration branch

* Move deprecated components to deprecated folder (#1881)

* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>

* Prefix component with types exported from ActionList2 and ActionMenu2 (#1883)

* prefix component name to types

* add changeset

* Update .changeset/actionlist2-actionmenu2-prefix-types.md

Co-authored-by: Cole Bemis <colebemis@github.com>

Co-authored-by: Cole Bemis <colebemis@github.com>

* Export PageLayout from main bundle (#1882)

* Export PageLayout from main bundle

* Create odd-apes-guess.md

* Add PageLayout to sidenav

* Update .changeset/odd-apes-guess.md

Co-authored-by: Rez <rezrah@github.com>

* Update PageLayout docs

Co-authored-by: Rez <rezrah@github.com>

* Update release notes and add deprecation notices for SelectMenu and Dropdown (#1887)

* chore: add deprecation notices for SelectMenu and Dropdown

* fix: deprecated metadata scope in docs

* docs: update release notes for Flex and BorderBox

* docs: update release notes for Position

* chore: add deprecated scope to jsx snippets

* chore: add release notes for Dropdown deprecation

* chore: add Grid release notes

* update release notes

* Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2  (#1895)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* Revert "Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2  (#1895)" (#1896)

This reverts commit f366604.

* Deprecate ActionList v1 & Promote drafts/ActionList v2 (#1893)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* changelog oopsie

* fix docs copy

* Add @deprecated on deprecated/ActionList

* oopsie on the link

* PR feedback on deprecation message

* Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2 (#1897)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* reorder deprecated components alphabetically

* Update deprecation message

* Fix missing icon that only broke on this PR for some reason

* Deprecate DropdownMenu v1 + Remove DropdownMenu v2 (#1898)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* reorder deprecated components alphabetically

* Update deprecation message

* Fix missing icon that only broke on this PR for some reason

* Deprecate DropdownMenu

* Use deprecated Dropdown for theme switcher

* Delete drafts/DropdownMenu2

* Add changelog

* remove debug statement :)

* Fix code examples in changeset (#1901)

* Update .changeset/deprecate-actionlistv1-promote-actionlistv2.md

* Add linebreaks to changesets

* Button deprecation (#1908)

* Move old button to deprecated

* Move Button2 to main bundle

* Add migration docs

* More changes from the checklist

* More deprecation

* Update tests

* Add deprecated details

* Create many-roses-hammer.md

* Update .changeset/many-roses-hammer.md

Co-authored-by: Rez <rezrah@github.com>

* Update many-roses-hammer.md

* Update many-roses-hammer.md

* Update many-roses-hammer.md

Co-authored-by: Rez <rezrah@github.com>

* Deprecate components replaced by FormControl (#1888)

* moves InputField to deprecated package

* adds jsdoc comments for deprecation

* adds changeset

* fixes bad autoformatting in changeset

* fixes import path in test file

* addresses PR feedback

* fixes FormGroup import in test

* addresses PR feedback

* moves tests to depreacted directory

* removes docs header image

* fixes bad formatting in changelog markdown

* Revert "fix merge conflicts with main"

This reverts commit 363bb07, reversing
changes made to f94dcd3.

* Deprecate ChoiceFieldset and ChoiceInputField (#1900)

* deprecates ChoiceFieldset and ChoiceInputField

* update import paths in tests

* addresses more PR feedback

* fixes bad imports in docs

* updates outdated story and test

* moves components to deprecated directory

* fixes broken docs pages

* fixes bad formatting in changelog markdown

* minor tweaks

* moves deprecated notation for ChoiceInputField

* Deprecate legacy Label component (#1889)

* moves Label to deprecated bundle

* graduates Label2 to main bundle

* cleanup

* adds changeset

* fixes tests

* update legacy label snapshots

* Update .changeset/heavy-points-marry.md

Co-authored-by: Rez <rezrah@github.com>

* Update docs/content/Label.mdx

Co-authored-by: Rez <rezrah@github.com>

* addresses pr feedback

* adds Label back to sidebar

* updates tests, removes docs header image

* removes docs header image

* fixes tests

* resets changed test

Co-authored-by: Rez <rezrah@github.com>

* Move remaining deprecated components to src/deprecated (#1917)

* Move deprecated components to src/deprecated

* Fix imports for tests

* Various fixes for v35 (#1916)

* chore: ad-hoc fixes for next-major branch

* fix #1912 docs error

* docs: remove reference to system props

* Create changeset-for-1917.md (#1919)

* Add align prop on ActionMenu.Overlay to pass through to AnchoredOverlay (#1921)

* Allow ActionMenu.Overlay to pass through align prop to AnchoredOverlay

* Add align prop to docs

* Fix AnchoredOverlay docs

* add changeset

* ActionMenu.Button: Fix spacing between text and caret (#1922)

* Fix spacing between Text and caret for ActionMenu.Button

* Improve changelog

* fix margin after design review

* unrelated change

* Update ActionMenu docs (#1931)

* Button: Update active styles + use them for aria-expanded (#1915)

* Add aria-expanded styles for Button

* update default button active styles

* update snapshot for button

* Create healthy-dots-chew.md

* fix broken test following main merging conflict resolution

* Fixes for v35 (#1934)

* fix ActioMenu story

* backfill missing exports in root index

* fix package-lock

* add changeset

* v35: Remove type aliases for ActionList (#1937)

* Replace aliases for ActionList types

* export types for LinkItem

* update selection types

* Next major changeset edits (#1939)

* Remove unnecessary changesets

* Edit changesets

* Fixes for v35 (#1938)

* add missing root exports

* fix invalid export

* add missing fragments to changesets (#1940)

* Update changeset examples (#1941)

* Fix table in changeset

* Add missing comma

* Fix grid changeset

* Update button changeset

Co-authored-by: Reza Rahman <rezrah@github.com>
Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
Co-authored-by: Pavithra Kodmad <pksjce@github.com>
Co-authored-by: Mike Perrotti <mperrotti@github.com>
mperrotti added a commit that referenced this pull request Mar 16, 2022
* prepare integration branch

* Move deprecated components to deprecated folder (#1881)

* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>

* Prefix component with types exported from ActionList2 and ActionMenu2 (#1883)

* prefix component name to types

* add changeset

* Update .changeset/actionlist2-actionmenu2-prefix-types.md

Co-authored-by: Cole Bemis <colebemis@github.com>

Co-authored-by: Cole Bemis <colebemis@github.com>

* Export PageLayout from main bundle (#1882)

* Export PageLayout from main bundle

* Create odd-apes-guess.md

* Add PageLayout to sidenav

* Update .changeset/odd-apes-guess.md

Co-authored-by: Rez <rezrah@github.com>

* Update PageLayout docs

Co-authored-by: Rez <rezrah@github.com>

* Update release notes and add deprecation notices for SelectMenu and Dropdown (#1887)

* chore: add deprecation notices for SelectMenu and Dropdown

* fix: deprecated metadata scope in docs

* docs: update release notes for Flex and BorderBox

* docs: update release notes for Position

* chore: add deprecated scope to jsx snippets

* chore: add release notes for Dropdown deprecation

* chore: add Grid release notes

* update release notes

* Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2  (#1895)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* Revert "Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2  (#1895)" (#1896)

This reverts commit f366604.

* Deprecate ActionList v1 & Promote drafts/ActionList v2 (#1893)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* changelog oopsie

* fix docs copy

* Add @deprecated on deprecated/ActionList

* oopsie on the link

* PR feedback on deprecation message

* Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2 (#1897)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* reorder deprecated components alphabetically

* Update deprecation message

* Fix missing icon that only broke on this PR for some reason

* Deprecate DropdownMenu v1 + Remove DropdownMenu v2 (#1898)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* reorder deprecated components alphabetically

* Update deprecation message

* Fix missing icon that only broke on this PR for some reason

* Deprecate DropdownMenu

* Use deprecated Dropdown for theme switcher

* Delete drafts/DropdownMenu2

* Add changelog

* remove debug statement :)

* Fix code examples in changeset (#1901)

* Update .changeset/deprecate-actionlistv1-promote-actionlistv2.md

* Add linebreaks to changesets

* Button deprecation (#1908)

* Move old button to deprecated

* Move Button2 to main bundle

* Add migration docs

* More changes from the checklist

* More deprecation

* Update tests

* Add deprecated details

* Create many-roses-hammer.md

* Update .changeset/many-roses-hammer.md

Co-authored-by: Rez <rezrah@github.com>

* Update many-roses-hammer.md

* Update many-roses-hammer.md

* Update many-roses-hammer.md

Co-authored-by: Rez <rezrah@github.com>

* Deprecate components replaced by FormControl (#1888)

* moves InputField to deprecated package

* adds jsdoc comments for deprecation

* adds changeset

* fixes bad autoformatting in changeset

* fixes import path in test file

* addresses PR feedback

* fixes FormGroup import in test

* addresses PR feedback

* moves tests to depreacted directory

* removes docs header image

* fixes bad formatting in changelog markdown

* Revert "fix merge conflicts with main"

This reverts commit 363bb07, reversing
changes made to f94dcd3.

* Deprecate ChoiceFieldset and ChoiceInputField (#1900)

* deprecates ChoiceFieldset and ChoiceInputField

* update import paths in tests

* addresses more PR feedback

* fixes bad imports in docs

* updates outdated story and test

* moves components to deprecated directory

* fixes broken docs pages

* fixes bad formatting in changelog markdown

* minor tweaks

* moves deprecated notation for ChoiceInputField

* Deprecate legacy Label component (#1889)

* moves Label to deprecated bundle

* graduates Label2 to main bundle

* cleanup

* adds changeset

* fixes tests

* update legacy label snapshots

* Update .changeset/heavy-points-marry.md

Co-authored-by: Rez <rezrah@github.com>

* Update docs/content/Label.mdx

Co-authored-by: Rez <rezrah@github.com>

* addresses pr feedback

* adds Label back to sidebar

* updates tests, removes docs header image

* removes docs header image

* fixes tests

* resets changed test

Co-authored-by: Rez <rezrah@github.com>

* Move remaining deprecated components to src/deprecated (#1917)

* Move deprecated components to src/deprecated

* Fix imports for tests

* Various fixes for v35 (#1916)

* chore: ad-hoc fixes for next-major branch

* fix #1912 docs error

* docs: remove reference to system props

* Create changeset-for-1917.md (#1919)

* Add align prop on ActionMenu.Overlay to pass through to AnchoredOverlay (#1921)

* Allow ActionMenu.Overlay to pass through align prop to AnchoredOverlay

* Add align prop to docs

* Fix AnchoredOverlay docs

* add changeset

* ActionMenu.Button: Fix spacing between text and caret (#1922)

* Fix spacing between Text and caret for ActionMenu.Button

* Improve changelog

* fix margin after design review

* unrelated change

* Update ActionMenu docs (#1931)

* Button: Update active styles + use them for aria-expanded (#1915)

* Add aria-expanded styles for Button

* update default button active styles

* update snapshot for button

* Create healthy-dots-chew.md

* fix broken test following main merging conflict resolution

* Fixes for v35 (#1934)

* fix ActioMenu story

* backfill missing exports in root index

* fix package-lock

* add changeset

* v35: Remove type aliases for ActionList (#1937)

* Replace aliases for ActionList types

* export types for LinkItem

* update selection types

* Next major changeset edits (#1939)

* Remove unnecessary changesets

* Edit changesets

* Fixes for v35 (#1938)

* add missing root exports

* fix invalid export

* add missing fragments to changesets (#1940)

* Update changeset examples (#1941)

* Fix table in changeset

* Add missing comma

* Fix grid changeset

* Update button changeset

* rms deprecated components and layout tweaks

* updates snaps

* adds changeset

* Update title and componentId of deprecated components

* Add missing component ids

* Remove link button docs

* Update dialog props

* Update nav.yml

* Update live code scope

Co-authored-by: Reza Rahman <rezrah@github.com>
Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
Co-authored-by: Cole Bemis <colebemis@github.com>
Co-authored-by: Pavithra Kodmad <pksjce@github.com>
pksjce added a commit that referenced this pull request Mar 17, 2022
* prepare integration branch

* Move deprecated components to deprecated folder (#1881)

* prepare integration branch

* Move deprecated components to deprecated folder

* Add subpath exports for deprecated

* Fix up the docs

* Remove dialog and formgroup components

* Fix up all the tests

* Create smooth-cameras-prove.md

Co-authored-by: Reza Rahman <rezrah@github.com>

* Prefix component with types exported from ActionList2 and ActionMenu2 (#1883)

* prefix component name to types

* add changeset

* Update .changeset/actionlist2-actionmenu2-prefix-types.md

Co-authored-by: Cole Bemis <colebemis@github.com>

Co-authored-by: Cole Bemis <colebemis@github.com>

* Export PageLayout from main bundle (#1882)

* Export PageLayout from main bundle

* Create odd-apes-guess.md

* Add PageLayout to sidenav

* Update .changeset/odd-apes-guess.md

Co-authored-by: Rez <rezrah@github.com>

* Update PageLayout docs

Co-authored-by: Rez <rezrah@github.com>

* Update release notes and add deprecation notices for SelectMenu and Dropdown (#1887)

* chore: add deprecation notices for SelectMenu and Dropdown

* fix: deprecated metadata scope in docs

* docs: update release notes for Flex and BorderBox

* docs: update release notes for Position

* chore: add deprecated scope to jsx snippets

* chore: add release notes for Dropdown deprecation

* chore: add Grid release notes

* update release notes

* Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2  (#1895)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* Revert "Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2  (#1895)" (#1896)

This reverts commit f366604.

* Deprecate ActionList v1 & Promote drafts/ActionList v2 (#1893)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* changelog oopsie

* fix docs copy

* Add @deprecated on deprecated/ActionList

* oopsie on the link

* PR feedback on deprecation message

* Deprecate ActionMenu v1 & Promote drafts/ActionMenu v2 (#1897)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* reorder deprecated components alphabetically

* Update deprecation message

* Fix missing icon that only broke on this PR for some reason

* Deprecate DropdownMenu v1 + Remove DropdownMenu v2 (#1898)

* Deprecate ActionList v1

* Promote drafts/ActionList2 to main/ActionList

* Add changelog

* Undo package-lock change

* update ActionList import for Menu2 docs

* Deprecate ActionMenu - part 1

* Deprecate ActionMenu - part 2

* Promote drafts/ActionMenu2 to main/ActionMenu

* Add changelog

* Add @deprecated on deprecated/ActionMenu

* docs fixed!

* reorder deprecated components alphabetically

* Update deprecation message

* Fix missing icon that only broke on this PR for some reason

* Deprecate DropdownMenu

* Use deprecated Dropdown for theme switcher

* Delete drafts/DropdownMenu2

* Add changelog

* remove debug statement :)

* Fix code examples in changeset (#1901)

* Update .changeset/deprecate-actionlistv1-promote-actionlistv2.md

* Add linebreaks to changesets

* Button deprecation (#1908)

* Move old button to deprecated

* Move Button2 to main bundle

* Add migration docs

* More changes from the checklist

* More deprecation

* Update tests

* Add deprecated details

* Create many-roses-hammer.md

* Update .changeset/many-roses-hammer.md

Co-authored-by: Rez <rezrah@github.com>

* Update many-roses-hammer.md

* Update many-roses-hammer.md

* Update many-roses-hammer.md

Co-authored-by: Rez <rezrah@github.com>

* Deprecate components replaced by FormControl (#1888)

* moves InputField to deprecated package

* adds jsdoc comments for deprecation

* adds changeset

* fixes bad autoformatting in changeset

* fixes import path in test file

* addresses PR feedback

* fixes FormGroup import in test

* addresses PR feedback

* moves tests to depreacted directory

* removes docs header image

* fixes bad formatting in changelog markdown

* Revert "fix merge conflicts with main"

This reverts commit 363bb07, reversing
changes made to f94dcd3.

* Deprecate ChoiceFieldset and ChoiceInputField (#1900)

* deprecates ChoiceFieldset and ChoiceInputField

* update import paths in tests

* addresses more PR feedback

* fixes bad imports in docs

* updates outdated story and test

* moves components to deprecated directory

* fixes broken docs pages

* fixes bad formatting in changelog markdown

* minor tweaks

* moves deprecated notation for ChoiceInputField

* Deprecate legacy Label component (#1889)

* moves Label to deprecated bundle

* graduates Label2 to main bundle

* cleanup

* adds changeset

* fixes tests

* update legacy label snapshots

* Update .changeset/heavy-points-marry.md

Co-authored-by: Rez <rezrah@github.com>

* Update docs/content/Label.mdx

Co-authored-by: Rez <rezrah@github.com>

* addresses pr feedback

* adds Label back to sidebar

* updates tests, removes docs header image

* removes docs header image

* fixes tests

* resets changed test

Co-authored-by: Rez <rezrah@github.com>

* Move remaining deprecated components to src/deprecated (#1917)

* Move deprecated components to src/deprecated

* Fix imports for tests

* Various fixes for v35 (#1916)

* chore: ad-hoc fixes for next-major branch

* fix #1912 docs error

* docs: remove reference to system props

* Create changeset-for-1917.md (#1919)

* Add align prop on ActionMenu.Overlay to pass through to AnchoredOverlay (#1921)

* Allow ActionMenu.Overlay to pass through align prop to AnchoredOverlay

* Add align prop to docs

* Fix AnchoredOverlay docs

* add changeset

* ActionMenu.Button: Fix spacing between text and caret (#1922)

* Fix spacing between Text and caret for ActionMenu.Button

* Improve changelog

* fix margin after design review

* unrelated change

* Update ActionMenu docs (#1931)

* Button: Update active styles + use them for aria-expanded (#1915)

* Add aria-expanded styles for Button

* update default button active styles

* update snapshot for button

* Create healthy-dots-chew.md

* fix broken test following main merging conflict resolution

* Fixes for v35 (#1934)

* fix ActioMenu story

* backfill missing exports in root index

* fix package-lock

* add changeset

* v35: Remove type aliases for ActionList (#1937)

* Replace aliases for ActionList types

* export types for LinkItem

* update selection types

* Next major changeset edits (#1939)

* Remove unnecessary changesets

* Edit changesets

* Fixes for v35 (#1938)

* add missing root exports

* fix invalid export

* add missing fragments to changesets (#1940)

* Update changeset examples (#1941)

* Fix table in changeset

* Add missing comma

* Fix grid changeset

* Update button changeset

* rms deprecated components and layout tweaks

* updates snaps

* adds changeset

* Update title and componentId of deprecated components

* Add missing component ids

* Remove link button docs

* Update dialog props

* Update nav.yml

* Update live code scope

Co-authored-by: Reza Rahman <rezrah@github.com>
Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
Co-authored-by: Cole Bemis <colebemis@github.com>
Co-authored-by: Pavithra Kodmad <pksjce@github.com>
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.

None yet

4 participants