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

Throwaway: merge content editing with toolbar anchoring #65844

Closed
wants to merge 49 commits into from

Conversation

draganescu
Copy link
Contributor

@draganescu draganescu commented Oct 2, 2024

Merges #65702 and #65627 for testing.

youknowriad and others added 30 commits October 1, 2024 12:19
* ToggleGroupControl: Fix arrow key navigation in RTL

* Add changelog

Co-authored-by: mirka <[email protected]>
Co-authored-by: tyxla <[email protected]>
* Tweak sizing and overflow behavior of TabList.

* Add size and overflow playground story.

* Add "scroll into view" behavior to selected tabs.

* fit-content only on horizontal orientation

* Reduce specificity of `fit-content` to make it easier to override.

* centered label only when orientation is horizontal

* Remove unused file.

* Fix inspector controls tabs.

* Fix font library modal tabs.

* Fix style-book tabs.

* fix typo

* Add changelog entry.

* fix emotion being weird ugh

* Prevent unwanted focusable container in Firefox.

* Add fade effect.

* Fix IntersectionObserver logic.

* Feature detect IntersectionObserver to prevent tests from failing.

* Add a bit of tolerance for scroll state detection.

* Fix vertical indicator.

* Better handling of vertical overflow.

* Add a bit of scroll margin for better "scroll into view" experience.

* Horizontal fade should only happen on horizontal direction.

* Adjust for offset parent scroll state in `getElementOffsetRect`.

* Better "scroll into view" positioning heuristics ("nearest").

* Invert use of before and after to remove z-index and fix related issues.

* Make vertical indicator light blue as discussed.

* Undo most overrides in pattern/media vertical tabs.

* Clean up outdated styles previously needed for label wrapping.

* Revert vertical indicator changes and some indicator patterns/media tabs styles

* Revert vertical indicator bug fix

* Add changelog entry

* Remove outdated style.

* Address feedback

* Fix scroll bug

* Improve automatic tab scrolling behavior.

* Tweaks to prevent unit test failure and minor cleanup.

* Undo unnecessary changes.

* Improved story

* Fix scroll jumping bug.

* Scroll to active tab instead of selected (support `selectOnMove=false`).

* Fix minor visual glitch with overflow fade out indicators.

* Misc tweaks

* Fix.

* Fix changelog

* Fix changelog but it's actually true

* Fix changelog

* Make Story Book tabs nicer.

* Temp fix for scrollbar issue in Style Book tabs.

* Fix scroll bug and clean up a little.

* Simplify and clean up a bit more.

* Fix merge issues.

* Fix merge issues again.

* Make inserter patterns/media changes more minimal

* Fix outdated comment

* Fix another typo in comment.

* Minor cleanup.

* Fix bad automatic merge.

* ugh, fix again

Co-authored-by: DaniGuardiola <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: afercia <[email protected]>
* Update tools menus:
- Write / Design order
- Change description copy

* update tools help text

---------

Co-authored-by: mtias <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: provenself <[email protected]>
Removes code related to showing/hiding inserters on hover.
* Try use select and dispatch instead of registry

* Fix `setValues`

* Open `useBlockBindingsUtils`

* Open registration APIs

* Restrict `getFieldsList` API

* Update `useBlockBindingsUtils` docs

* Update register/unregister bindings docs

* Simplify API functions examples

Co-authored-by: Greg Ziółkowski <[email protected]>

* Update docs

* Update comments

---------

Co-authored-by: Carlos Bravo <[email protected]>
Co-authored-by: Greg Ziółkowski <[email protected]>

Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: gziolo <[email protected]>
* List view: fix miscolored icons

* Add forced-colors media query

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
* Update block-filters.md

Added description for `blocks.getBlockAttributes` filter

* Modified example and provided additional info

* modified example and provided additional info

Explained the parameters accepted by the filter callback function.

* modified example and provided additional info

Fixed parameter names.

* Update docs/reference-guides/filters/block-filters.md

Thanks

Co-authored-by: Sunil Prajapati <[email protected]>

* Update docs/reference-guides/filters/block-filters.md

thanks for fix

Co-authored-by: Sunil Prajapati <[email protected]>

* Update docs/reference-guides/filters/block-filters.md

thanks for fix

Co-authored-by: Sunil Prajapati <[email protected]>

* Update docs/reference-guides/filters/block-filters.md

thanks for fix

Co-authored-by: Sunil Prajapati <[email protected]>

* Update docs/reference-guides/filters/block-filters.md

thanks for fix

Co-authored-by: Sunil Prajapati <[email protected]>

* Update docs/reference-guides/filters/block-filters.md

Thanks for the suggestion.
Not aware of the format since it's my first time.

Co-authored-by: Sunil Prajapati <[email protected]>

---------

Co-authored-by: davy440 <[email protected]>
Co-authored-by: akasunil <[email protected]>
Co-authored-by: draganescu <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: ajlende <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
* Fix in Skip to selected block

* Fix in Tool selector

* Fix in URLInputButton

* Fix in URLInput

* Remove dead code in FlexLayoutVerticalAlignmentControl

Co-authored-by: mirka <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
* Navigator: use stable export instead of experimental export

* More clear export of useNavigator

---

Co-authored-by: ciampo <[email protected]>
Co-authored-by: mirka <[email protected]>
* Temp disable test

* Sounds good.

Co-authored-by: Aki Hamano <[email protected]>

---------

Co-authored-by: Aki Hamano <[email protected]>
* Export without experimental prefix

* Update README

* Move Storybook stories and add redirect

* Add changelog entries

* Fix changelog.

* Fix changelog (for real?)

* Fix changelog

* Apply feedback.

* Fix changelog

* Remove alpha story.

* README fix.

* Fix default in README

* Fix changelog

* Remove `showDropdownHeader` prop and the header itself.

* Added `showDropdownHeader` as deprecated.

* Remove deprecation warning

* Add ignores to jsdocs.

Co-authored-by: DaniGuardiola <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: mirka <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: ciampo <[email protected]>
* Refactor utils and switch Tabs indicator animation to `transform`.

* docs tweak

* Update packages/components/src/tabs/styles.ts

Co-authored-by: Marco Ciampini <[email protected]>

* Add RTL support.

* Addressed @ciampo's comments.

* Correct for antialiasing rounding.

* Make antialiasing adjustment optional.

* Use larger base value and revert antialiasing adjustment code.

* DRY RTL

* Remove RTL story (redundant since Storybook has a dynamic setting to test RTL).

* Fix bug.

* Fix bug (for real this time).

* Add changelog entry.

* De-cleverfy code.

* Sync useResizeObserver with #64943 and make useTrackElementOffsetRect resilient.

* Deduplicate utility and clean up.

* Minor Tabs code improvement.

* Replace framer motion animation with faster CSS animation.

* DRY antialiasing factor.

* Changelogs.

* Various improvements, fixes, and feedback addressed.

* Simplify.

* Simplify using derived state.

* Add similar useOnValueUpdate detail to Tabs.

* Fix skipping animation.

* Add similar detail to Tabs animation.

* Fix setState depth issue.

* Fix unit test error.

* Add changelog entries

* Fix changelog

* Update test snapshot.

* Depends less on React.

* Switch to layout effect for `useOnValueUpdate`

* Switched to transform strategy.

* Fix resizing bug.

* Transition border-radius too.

* Undo Tabs changes (no longer relevant).

* DRY animation code.

* Avoid useless re-runs in effect.

* Rename `activeElement` -> `selectedElement` for clarity.

* Rename `--indicator-` -> `--selected-` for accuracy.

* Minor tweak.

* Add safe defaults to CSS custom properties.

* Tweak `useSubelementAnimation`.

* Fix parent missing when there's no selected option.

* Update snapshots

* Add docs to utility.

* Added note about border-radius.

---------

Co-authored-by: Marco Ciampini <[email protected]>
Co-authored-by: DaniGuardiola <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: mirka <[email protected]>
…5809)

This reverts commit 8477a61.

Co-authored-by: peterwilsoncc <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
#65804)

Co-authored-by: DaniGuardiola <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: ramonjd <[email protected]>
* Add tag to `useBlockBindingsUtils`

* Add since tag to the registration functions

Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: gziolo <[email protected]>
Co-authored-by: colorful-tones <[email protected]>
* only show resize controls in normal rendering mode

* get block editing mode from hook not prop - misread code elsewhere

Co-authored-by: draganescu <[email protected]>
Co-authored-by: getdave <[email protected]>
Co-authored-by: MaggieCabrera <[email protected]>
Co-authored-by: scruffian <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: t-hamano <[email protected]>
* Avoid errors when the fontSize is not available

* remove goBack

* Update packages/edit-site/src/components/global-styles/font-sizes/font-size.js

---

Co-authored-by: matiasbenedetto <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: firoz2456 <[email protected]>
Co-authored-by: nith53 <[email protected]>
Co-authored-by: benniledl <[email protected]>
getdave and others added 19 commits October 2, 2024 22:39
Co-authored-by: getdave <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: richtabor <[email protected]>
* Fix: Shadow/Font size preset panel crashes the editor

* Refactor logic

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: ramonjd <[email protected]>
* Navigator: mark experimental exports as deprecated

* CHANGELOG

* Update JSDocs deprecation alternatives suggestions

---

Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
* Updated intro to the package

* removed examples and demos

* update README.md

* Query Loop reference

* fixed typo

* Wording improved

* Interactivity API: Update and expand on the interactivity-router docs

* Update the inline HTML in the callout

---------

Co-authored-by: Michal Czaplinski <[email protected]>
* Composite: fix legacy implementation passing store prop

* Simplify code

* Improve comment

* Apply same fix to the top level Composite too

* CHANGELOG

---

Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
Co-authored-by: louwie17 <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: gigitux <[email protected]>
Co-authored-by: oandregal <[email protected]>
Co-authored-by: jameskoster <[email protected]>
* Customize widgets, edit post: refactor Button usages to new component sizing

* Update snapshots

* Switch to compact size in the customize widgets welcome guide

* Remove unused classnames, update snapshots

---

Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
@draganescu draganescu closed this Oct 4, 2024
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.