feature(react-utilities): implements new slot methods (slot and assertSlots)#28373
Merged
bsunderhus merged 9 commits intoAug 4, 2023
Conversation
Collaborator
📊 Bundle size reportUnchanged fixtures
|
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 597 | 638 | 5000 | Possible regression |
| Field | mount | 1042 | 1155 | 5000 | Possible regression |
| SpinButton | mount | 1356 | 1485 | 5000 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 597 | 638 | 5000 | Possible regression |
| Button | mount | 289 | 292 | 5000 | |
| Field | mount | 1042 | 1155 | 5000 | Possible regression |
| FluentProvider | mount | 645 | 672 | 5000 | |
| FluentProviderWithTheme | mount | 77 | 82 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 63 | 60 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 75 | 70 | 10 | |
| InfoButton | mount | 11 | 11 | 5000 | |
| MakeStyles | mount | 850 | 838 | 50000 | |
| Persona | mount | 1643 | 1806 | 5000 | |
| SpinButton | mount | 1356 | 1485 | 5000 | Possible regression |
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
4 times, most recently
from
June 29, 2023 11:59
2758bd0 to
0d16b36
Compare
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b3e7f76:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 192666b54cb365f4c958f46c3e097b597ebd94fc (build) |
Collaborator
🕵 fluentuiv9 No visual regressions between this PR and main |
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
from
June 29, 2023 13:14
0d16b36 to
5ed7da9
Compare
slot and assertSlots)
bsunderhus
marked this pull request as ready for review
June 30, 2023 06:22
layershifter
reviewed
Jul 4, 2023
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
3 times, most recently
from
July 5, 2023 12:31
ca99c36 to
cbd2133
Compare
layershifter
reviewed
Jul 7, 2023
layershifter
reviewed
Jul 7, 2023
layershifter
approved these changes
Jul 7, 2023
behowell
reviewed
Jul 12, 2023
behowell
left a comment
Contributor
There was a problem hiding this comment.
Looks good! I had a few comments that might require bigger code changes to address. I apologize my review took so long, but I hope it's possible to make these changes in this PR, since this is a core API that will be difficult to change later.
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
2 times, most recently
from
July 17, 2023 13:22
4221735 to
2e51245
Compare
fabricteam
reviewed
Jul 20, 2023
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
2 times, most recently
from
July 20, 2023 11:32
a0ba9f6 to
b1aab1b
Compare
Collaborator
🕵 fluentuiv9 No visual regressions between this PR and main |
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
from
July 20, 2023 12:11
b1aab1b to
67c0066
Compare
…9dcc83f7b.json Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
…2ab27fe.json Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
+ removes re-declaring a slot as an option for slot method
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
from
August 3, 2023 10:46
67c0066 to
e9196d5
Compare
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
from
August 3, 2023 11:04
e9196d5 to
5727097
Compare
layershifter
reviewed
Aug 3, 2023
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
from
August 3, 2023 19:47
5727097 to
c08574f
Compare
bsunderhus
force-pushed
the
react-utilities/feature--implements-slot-method
branch
from
August 3, 2023 19:47
c08574f to
b3e7f76
Compare
marcosmoura
added a commit
to marcosmoura/fluentui
that referenced
this pull request
Aug 7, 2023
* master: chore(cxe-prg): migrate to new slot API (microsoft#28752) chore(teams-prg): migrate to new slot API (microsoft#28751) chore: re-export slot and assertSlots methods (microsoft#28755) Docs(react-tree): Improve docs and stories (microsoft#28741) feat: implements nested tree selection (microsoft#28668) applying package updates applying package updates feature(react-utilities): implements new slot methods (`slot` and `assertSlots`) (microsoft#28373) fix(TimePicker): Selection now works in locales that don't use "am"/"pm" in their time format (microsoft#28469) bugfix: ensures controlled state works properly + (microsoft#28665) feat(tokens): Add status color tokens (microsoft#28006) feat(tokens): Add colorBrandStroke2Contrast and colorNeutralStrokeAlpha2 (microsoft#28638) Made BreadcrumbButton consistent with Item and Link (microsoft#28672)
marcosmoura
added a commit
to marcosmoura/fluentui
that referenced
this pull request
Aug 7, 2023
* master: chore(cxe-prg): migrate to new slot API (microsoft#28752) chore(teams-prg): migrate to new slot API (microsoft#28751) chore: re-export slot and assertSlots methods (microsoft#28755) Docs(react-tree): Improve docs and stories (microsoft#28741) feat: implements nested tree selection (microsoft#28668) applying package updates applying package updates feature(react-utilities): implements new slot methods (`slot` and `assertSlots`) (microsoft#28373) fix(TimePicker): Selection now works in locales that don't use "am"/"pm" in their time format (microsoft#28469) bugfix: ensures controlled state works properly + (microsoft#28665) feat(tokens): Add status color tokens (microsoft#28006) feat(tokens): Add colorBrandStroke2Contrast and colorNeutralStrokeAlpha2 (microsoft#28638) Made BreadcrumbButton consistent with Item and Link (microsoft#28672) fix(EventListener): do not use `defaultProps` (microsoft#28725)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR implements the next steps on slot API as discussed on previous RFC's and issues on this topic.
Modifications
slotnamespace that provides all methods to help create a slotassertSlotsmethod to ensure the state provided by a state hook is following proper new mechanisms@fluentui/react-jsx-runtimeto properly support previous and new methods of slot creation accordinglyresolveShorthandto do exactly the same thing asslotdoesRelated Issue(s)