Skip to content

Commit ff6f5e1

Browse files
Merge branch 'WordPress:trunk' into trunk
2 parents 58dddf5 + be5ce8a commit ff6f5e1

File tree

358 files changed

+2702
-1622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+2702
-1622
lines changed

.eslintrc.js

-23
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,6 @@
44
const glob = require( 'glob' ).sync;
55
const { join } = require( 'path' );
66

7-
/**
8-
* Internal dependencies
9-
*/
10-
const { version } = require( './package' );
11-
12-
/**
13-
* Regular expression string matching a SemVer string with equal major/minor to
14-
* the current package version. Used in identifying deprecations.
15-
*
16-
* @type {string}
17-
*/
18-
const majorMinorRegExp =
19-
version.replace( /\.\d+$/, '' ).replace( /[\\^$.*+?()[\]{}|]/g, '\\$&' ) +
20-
'(\\.\\d+)?';
21-
227
/**
238
* The list of patterns matching files used only for development purposes.
249
*
@@ -92,14 +77,6 @@ const restrictedSyntax = [
9277
'ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]',
9378
message: 'Path access on WordPress dependencies is not allowed.',
9479
},
95-
{
96-
selector:
97-
'CallExpression[callee.name="deprecated"] Property[key.name="version"][value.value=/' +
98-
majorMinorRegExp +
99-
'/]',
100-
message:
101-
'Deprecated functions must be removed before releasing this version.',
102-
},
10380
{
10481
selector:
10582
'CallExpression[callee.object.name="page"][callee.property.name="waitFor"]',

.github/workflows/rnmobile-ios-runner.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
3030

31-
- uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0
31+
- uses: ruby/setup-ruby@7a6302104fbeea3c6aaa43b1b91e08f7d6623279 # v1.209.0
3232
with:
3333
# `.ruby-version` file location
3434
working-directory: packages/react-native-editor/ios

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ results
1919
/test/e2e/artifacts
2020
/perf-envs
2121
/composer.lock
22+
/ts-traces
2223

2324
# The /.cache folder is needed for phpcs to cache results between runs, while other .cache folders must be ignored
2425
# It is not possible to re-include a file if a parent directory of that file is excluded

backport-changelog/6.8/8123.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
https://github.com/WordPress/wordpress-develop/pull/8123
2+
3+
* https://github.com/WordPress/gutenberg/pull/68549
4+
* https://github.com/WordPress/gutenberg/pull/68745

bin/generate-gutenberg-php.php

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
/**
1616
* Prints `define` statements for the production version of `gutenberg.php`
1717
* (the plugin entry point).
18+
*
19+
* @global string $plugin_version The version number of the plugin.
1820
*/
1921
function print_production_defines() {
2022
global $plugin_version;

changelog.txt

+207-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,212 @@
11
== Changelog ==
22

3-
= 20.0.0-rc.1 =
3+
= 20.1.0-rc.1 =
44

55

6+
## Changelog
7+
8+
### Enhancements
9+
10+
- ESLint: Improve regex for valid-sprintf rule to handle '%%'. ([68270](https://github.com/WordPress/gutenberg/pull/68270))
11+
- Simplify `sprintf` translation for percentage widths. ([68587](https://github.com/WordPress/gutenberg/pull/68587))
12+
13+
#### Block Library
14+
- Archive Title Block: Refactor settings panel to use ToolsPanel. ([67915](https://github.com/WordPress/gutenberg/pull/67915))
15+
- Author Name: Refactor settings panel to use ToolsPanel. ([67953](https://github.com/WordPress/gutenberg/pull/67953))
16+
- Block Editor: Move state logic inside 'BlockRenameModal'. ([68560](https://github.com/WordPress/gutenberg/pull/68560))
17+
- Details: Add allowedBlocks attributes. ([68489](https://github.com/WordPress/gutenberg/pull/68489))
18+
- Navigation: Add clearable option to color picker in `navigation` block. ([68454](https://github.com/WordPress/gutenberg/pull/68454))
19+
- Navigation: Surface `menu name` in the `List View` next to the `Navigation block`. ([68446](https://github.com/WordPress/gutenberg/pull/68446))
20+
- Page List: Added color support. ([66430](https://github.com/WordPress/gutenberg/pull/66430))
21+
- Query: Refactor settings panel to use ToolsPanel. ([68008](https://github.com/WordPress/gutenberg/pull/68008))
22+
- Social links block: Add Clear button for color option. ([68564](https://github.com/WordPress/gutenberg/pull/68564))
23+
- Table of Contents Block: Refactor settings panel to use ToolsPanel. ([67964](https://github.com/WordPress/gutenberg/pull/67964))
24+
25+
#### Design Tools
26+
- Post Comment Link: Show Border Controls By Default. ([68506](https://github.com/WordPress/gutenberg/pull/68506))
27+
- Query Total: Show Border Controls By Default. ([68507](https://github.com/WordPress/gutenberg/pull/68507))
28+
29+
#### List View
30+
- Use badge component for block anchors. ([68566](https://github.com/WordPress/gutenberg/pull/68566))
31+
32+
#### Template Editor
33+
- Editor: New default rendering mode for editor via post type supports. ([68549](https://github.com/WordPress/gutenberg/pull/68549))
34+
35+
#### Document Settings
36+
- Change "Swap" to "Replace" for Template Action. ([68234](https://github.com/WordPress/gutenberg/pull/68234))
37+
38+
#### DataViews
39+
- Add: Media field changing ui to Dataviews and content preview field to posts and pages. ([67278](https://github.com/WordPress/gutenberg/pull/67278))
40+
41+
42+
### Bug Fixes
43+
44+
- Core Data: Check post-type support before requesting autosaves. ([68680](https://github.com/WordPress/gutenberg/pull/68680))
45+
- Fix text direction for URL and email fields in block editor for RTL languages. ([68188](https://github.com/WordPress/gutenberg/pull/68188))
46+
- Try: Fix end-to-end tests 'visitSiteEditor' helper. ([68534](https://github.com/WordPress/gutenberg/pull/68534))
47+
48+
#### Block Library
49+
- Details block: Remove auto-close behaviour. ([67766](https://github.com/WordPress/gutenberg/pull/67766))
50+
- Fix File block resize glitches. ([68372](https://github.com/WordPress/gutenberg/pull/68372))
51+
- Navigation Link UI: Remove onClose from onSelectBlock. ([67760](https://github.com/WordPress/gutenberg/pull/67760))
52+
- Post Featured Image: Adds control to clear the the overlay color. ([68525](https://github.com/WordPress/gutenberg/pull/68525))
53+
- Site Logo: Prevent uploading multiple images via drag and drop. ([68618](https://github.com/WordPress/gutenberg/pull/68618))
54+
- Social Links: Don't prepend URL fragments. ([68655](https://github.com/WordPress/gutenberg/pull/68655))
55+
- i18n: Make example label for Comments Pagination Next block translatable. ([68373](https://github.com/WordPress/gutenberg/pull/68373))
56+
- i18n: Make example translatable in comments-pagination-previous. ([68374](https://github.com/WordPress/gutenberg/pull/68374))
57+
58+
#### Components
59+
- Duotone: Fix scrollbars displayed on Duotone Control. ([67187](https://github.com/WordPress/gutenberg/pull/67187))
60+
- Fix SCSS Media Query Compilation Issue in Storybook. ([68464](https://github.com/WordPress/gutenberg/pull/68464))
61+
- Fix icon condition for Badge. ([68588](https://github.com/WordPress/gutenberg/pull/68588))
62+
- Restore Non-Themed Text Colors for `optimizeReadabilityFor`. ([68472](https://github.com/WordPress/gutenberg/pull/68472))
63+
- StoryBook: Fix error that could occur when loading compiled CSS. ([68526](https://github.com/WordPress/gutenberg/pull/68526))
64+
65+
#### Site Editor
66+
- Classic theme preview: Remove admin-bar class name. ([68519](https://github.com/WordPress/gutenberg/pull/68519))
67+
- Fix: Site Editor Template part is missing an icon in the sidebar. ([68653](https://github.com/WordPress/gutenberg/pull/68653))
68+
- Navigation: Fix typo in `history.navigation's` function call. ([68623](https://github.com/WordPress/gutenberg/pull/68623))
69+
70+
#### Block Editor
71+
- Differentiate 'Copy' and 'Copy styles' snackbar confirmation messages. ([68167](https://github.com/WordPress/gutenberg/pull/68167))
72+
- Refactor: Separate input form styles to a dedicated stylesheet. ([68501](https://github.com/WordPress/gutenberg/pull/68501))
73+
- Update percentage strings to be translatable. ([66323](https://github.com/WordPress/gutenberg/pull/66323))
74+
75+
#### npm Packages
76+
- Fix irregular workspace version numbers. ([68467](https://github.com/WordPress/gutenberg/pull/68467))
77+
- Packages: Fix published * workspace dependencies. ([68240](https://github.com/WordPress/gutenberg/pull/68240))
78+
79+
#### Post Editor
80+
- Inline Commenting: Avoid querying comments when the experiment is disabled. ([68632](https://github.com/WordPress/gutenberg/pull/68632))
81+
82+
#### Colors
83+
- Color Gradients: Adjust `max-width` for color gradient swatch to accommodate `reset` button size. ([68626](https://github.com/WordPress/gutenberg/pull/68626))
84+
85+
#### Block Directory
86+
- Fix : Block Inserter Search Infinity Spinner. ([68600](https://github.com/WordPress/gutenberg/pull/68600))
87+
88+
#### Interactivity API
89+
- iAPI: Fix the logic path that merges plain objects. ([68579](https://github.com/WordPress/gutenberg/pull/68579))
90+
91+
92+
### Accessibility
93+
94+
- Nux: Standardize reduced motion handling using media queries. ([68423](https://github.com/WordPress/gutenberg/pull/68423))
95+
96+
#### Block Library
97+
- Fix Inconsistent Labels for Lightbox Feature. ([68261](https://github.com/WordPress/gutenberg/pull/68261))
98+
- Site Logo: Prevent focus loss when updating media from the sidebar. ([68621](https://github.com/WordPress/gutenberg/pull/68621))
99+
- Standardize reduced motion handling with media queries. ([68315](https://github.com/WordPress/gutenberg/pull/68315))
100+
101+
#### Components
102+
- Fix usage of tooltip in the Circular option picker. ([68602](https://github.com/WordPress/gutenberg/pull/68602))
103+
104+
#### Post Editor
105+
- Edit Post: Standardize reduced motion handling using media queries. ([68426](https://github.com/WordPress/gutenberg/pull/68426))
106+
107+
#### Widgets Editor
108+
- Customize Widgets: Standardize reduced motion handling using media queries. ([68425](https://github.com/WordPress/gutenberg/pull/68425))
109+
110+
#### Block Editor
111+
- Remove unnecessary CSS order property for the contrast checker in the Color hook. ([68055](https://github.com/WordPress/gutenberg/pull/68055))
112+
113+
#### DataViews
114+
- Remove label from dataview checkbox. ([67868](https://github.com/WordPress/gutenberg/pull/67868))
115+
116+
117+
### Performance
118+
119+
- Add npm script to profile TypeScript builds. ([68533](https://github.com/WordPress/gutenberg/pull/68533))
120+
121+
#### Post Editor
122+
- Editor: Update data selector in 'PostPreviewButton'. ([68678](https://github.com/WordPress/gutenberg/pull/68678))
123+
124+
125+
### Documentation
126+
127+
- Storybook: Add UnitControl story. ([67346](https://github.com/WordPress/gutenberg/pull/67346))
128+
- Add BlockIcon Storybook stories. ([67186](https://github.com/WordPress/gutenberg/pull/67186))
129+
- Added Global Documentation in inline documentation. ([68613](https://github.com/WordPress/gutenberg/pull/68613))
130+
- Block Card: Remove storybook for internal BlockCard component. ([68556](https://github.com/WordPress/gutenberg/pull/68556))
131+
- BlockInspector: Add showNoBlockSelectedMessage prop documentation. ([68444](https://github.com/WordPress/gutenberg/pull/68444))
132+
- Docs: Interactivity API - missing styles in the sample code. ([66253](https://github.com/WordPress/gutenberg/pull/66253))
133+
- Menu: Auto-generate README. ([68249](https://github.com/WordPress/gutenberg/pull/68249))
134+
- StoryBook: Add Story for ResolutionTool. ([68292](https://github.com/WordPress/gutenberg/pull/68292))
135+
- Storybook: Add TabbedSidebar stories and improve documentation. ([68118](https://github.com/WordPress/gutenberg/pull/68118))
136+
- Tabs: Remove unnecessary stories. ([68463](https://github.com/WordPress/gutenberg/pull/68463))
137+
- Updated Inline Document order. ([68650](https://github.com/WordPress/gutenberg/pull/68650))
138+
- Updated Small Typo in Feature-flags.md file. ([68612](https://github.com/WordPress/gutenberg/pull/68612))
139+
- Updated Typo in Document file. ([68477](https://github.com/WordPress/gutenberg/pull/68477))
140+
- docs: Fix type syntax in `_gutenberg_add_block_template_plugin_attribute()`. ([68391](https://github.com/WordPress/gutenberg/pull/68391))
141+
142+
143+
### Code Quality
144+
145+
- Data Views: Standardize reduced motion handling using media queries. ([68422](https://github.com/WordPress/gutenberg/pull/68422))
146+
- Fix typos. ([67304](https://github.com/WordPress/gutenberg/pull/67304))
147+
- [core-data] Document and add types for dynamic actions and selectors. ([67668](https://github.com/WordPress/gutenberg/pull/67668))
148+
- docs: Fix param name in `gutenberg_add_can_update_block_bindings_editor_setting()`. ([68390](https://github.com/WordPress/gutenberg/pull/68390))
149+
- docs: Fix return type on `gutenberg_register_block_module_id()`. ([68393](https://github.com/WordPress/gutenberg/pull/68393))
150+
151+
#### Block Library
152+
- Query Loop: Remove unused styles. ([68615](https://github.com/WordPress/gutenberg/pull/68615))
153+
- Site Logo: Remove unused argument for 'mediaUpload' function. ([68617](https://github.com/WordPress/gutenberg/pull/68617))
154+
155+
#### Global Styles
156+
- Remove unused prop for 'BackgroundImageControls'. ([68616](https://github.com/WordPress/gutenberg/pull/68616))
157+
158+
#### Post Editor
159+
- Document Outline: Use block client ID as unique 'key'. ([68502](https://github.com/WordPress/gutenberg/pull/68502))
160+
161+
#### Block Editor
162+
- BlockInspector: Remove unused 'showNoBlockSelectedMessage' prop. ([68487](https://github.com/WordPress/gutenberg/pull/68487))
163+
164+
#### Widgets Editor
165+
- Edit Widgets and Base Styles: Standardize reduced motion handling using media queries. ([68427](https://github.com/WordPress/gutenberg/pull/68427))
166+
167+
#### Components
168+
- Standardize reduced motion handling using media queries. ([68421](https://github.com/WordPress/gutenberg/pull/68421))
169+
170+
#### Block Directory
171+
- Standardize reduced motion handling using media queries #68419. ([68420](https://github.com/WordPress/gutenberg/pull/68420))
172+
173+
#### Site Editor
174+
- Edit Site: Add tsconfig.json validation for package. ([67406](https://github.com/WordPress/gutenberg/pull/67406))
175+
176+
177+
### Tools
178+
179+
#### Testing
180+
- Check Storybook build on CI for PRs. ([68466](https://github.com/WordPress/gutenberg/pull/68466))
181+
- Fix flaky DataViews list arraow nav end-to-end tests. ([68503](https://github.com/WordPress/gutenberg/pull/68503))
182+
- Fix flaky navigation-frontend-interactivity end-to-end tests. ([68667](https://github.com/WordPress/gutenberg/pull/68667))
183+
- Site Editor: Fix "Quick Edit Mode" end-to-end tests. ([68484](https://github.com/WordPress/gutenberg/pull/68484))
184+
- Upgrade Playwright to v1.49. ([68504](https://github.com/WordPress/gutenberg/pull/68504))
185+
186+
#### Build Tooling
187+
- Plugin: Remove ESLint rule for deprecated functions. ([68590](https://github.com/WordPress/gutenberg/pull/68590))
188+
189+
190+
## First-time contributors
191+
192+
The following PRs were merged by first-time contributors:
193+
194+
- @AhmarZaidi: Update percentage strings to be translatable. ([66323](https://github.com/WordPress/gutenberg/pull/66323))
195+
- @benazeer-ben: Page List: Added color support. ([66430](https://github.com/WordPress/gutenberg/pull/66430))
196+
- @himanipanchal: Updated Typo in Document file. ([68477](https://github.com/WordPress/gutenberg/pull/68477))
197+
- @im3dabasia: Storybook: Add UnitControl story. ([67346](https://github.com/WordPress/gutenberg/pull/67346))
198+
- @szepeviktor: Fix typos. ([67304](https://github.com/WordPress/gutenberg/pull/67304))
199+
200+
201+
## Contributors
202+
203+
The following contributors merged PRs in this release:
204+
205+
@afercia @AhmarZaidi @atachibana @benazeer-ben @carolinan @ciampo @dhananjaykuber @ellatrix @geriux @himanipanchal @himanshupathak95 @im3dabasia @Infinite-Null @jeryj @jorgefilipecosta @juanfra @justlevine @karthick-murugan @luisherranz @Mamaduka @manzoorwanijk @mirka @ramonjd @SainathPoojary @shail-mehta @shimotmk @sirreal @stokesman @Sukhendu2002 @szepeviktor @t-hamano @vipul0425 @Vrishabhsk @yogeshbhutkar
206+
207+
208+
= 20.0.0 =
209+
6210
## Changelog
7211

8212
### Features
@@ -453,6 +657,8 @@ The following contributors merged PRs in this release:
453657
@aaronrobertshaw @afercia @akasunil @benazeer-ben @bph @Chrico @ciampo @d-alleyne @DAreRodz @dhruvikpatel18 @draganescu @ellatrix @fabiankaegy @fushar @getdave @gigitux @gziolo @hbhalodia @himanshupathak95 @im3dabasia @Infinite-Null @jameskoster @jasmussen @jeryj @jorgefilipecosta @jsnajdr @juanfra @justlevine @karthick-murugan @kmanijak @louwie17 @Lovor01 @Mamaduka @manzoorwanijk @matiasbenedetto @Mayank-Tripathi32 @mayurprajapatii @mcsf @michalczaplinski @mikachan @mirka @ntsekouras @oandregal @ockham @PARTHVATALIYA @prasadkarmalkar @ramonjd @rilwis @rinkalpagdar @Rishit30G @rohitmathur-7 @SainathPoojary @sarthaknagoshe2002 @SH4LIN @shail-mehta @shimotmk @sirreal @stokesman @Sukhendu2002 @swissspidy @t-hamano @talldan @tellthemachines @timse201 @tyxla @up1512001 @vampdroid @Vrishabhsk @yogeshbhutkar @youknowriad
454658

455659

660+
661+
456662
= 19.9.0 =
457663

458664
## Changelog

docs/how-to-guides/feature-flags.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if ( globalThis.IS_GUTENBERG_PLUGIN ) {
5454

5555
```js
5656
if ( true ) {
57-
// Wepack has replaced `globalThis.IS_GUTENBERG_PLUGIN` with `true`
57+
// Webpack has replaced `globalThis.IS_GUTENBERG_PLUGIN` with `true`
5858
pluginOnlyFeature();
5959
}
6060
```

docs/reference-guides/core-blocks.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Hide and show additional content. ([Source](https://github.com/WordPress/gutenbe
255255
- **Name:** core/details
256256
- **Category:** text
257257
- **Supports:** align (full, wide), anchor, color (background, gradients, link, text), interactivity (clientNavigation), layout (~~allowEditing~~), spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
258-
- **Attributes:** allowedBlocks, showContent, summary
258+
- **Attributes:** allowedBlocks, name, showContent, summary
259259

260260
## Embed
261261

@@ -418,7 +418,7 @@ An organized collection of items displayed in a specific order. ([Source](https:
418418
- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
419419
- **Attributes:** ordered, placeholder, reversed, start, type, values
420420

421-
## List item
421+
## List Item
422422

423423
An individual item within a list. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/list-item))
424424

@@ -534,7 +534,7 @@ Start with the basic building block of all narrative. ([Source](https://github.c
534534
- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), splitting, typography (fontSize, lineHeight), ~~className~~
535535
- **Attributes:** align, content, direction, dropCap, placeholder
536536

537-
## Pattern placeholder
537+
## Pattern Placeholder
538538

539539
Show a block pattern. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/pattern))
540540

@@ -616,7 +616,7 @@ Displays the contents of a post or page. ([Source](https://github.com/WordPress/
616616

617617
- **Name:** core/post-content
618618
- **Category:** theme
619-
- **Supports:** align (full, wide), background (backgroundImage, backgroundSize), color (background, gradients, link, text), dimensions (minHeight), layout, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
619+
- **Supports:** align (full, wide), background (backgroundImage, backgroundSize), color (background, gradients, heading, link, text), dimensions (minHeight), layout, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
620620

621621
## Date
622622

@@ -672,7 +672,7 @@ Post terms. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages
672672
- **Supports:** color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
673673
- **Attributes:** prefix, separator, suffix, term, textAlign
674674

675-
## Time To Read
675+
## Time to Read
676676

677677
Show minutes required to finish reading the post. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/post-time-to-read))
678678

@@ -718,7 +718,7 @@ An advanced block that allows displaying post types based on different query par
718718
- **Supports:** align (full, wide), interactivity, layout, ~~html~~
719719
- **Attributes:** enhancedPagination, namespace, query, queryId, tagName
720720

721-
## No results
721+
## No Results
722722

723723
Contains the block elements used to render content when no query results are found. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/query-no-results))
724724

docs/reference-guides/interactivity-api/core-concepts/the-reactive-and-declarative-mindset.md

+18
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ Take, for example, this interactive block with two buttons and a paragraph:
2828
<p id="status-paragraph" class="inactive" hidden>this is inactive</p>
2929
</div>
3030

31+
<style>
32+
.active {
33+
color: green;
34+
}
35+
.inactive {
36+
color: red;
37+
}
38+
</style>
39+
3140
<script>
3241
const showHideBtn = document.getElementById( 'show-hide-btn' );
3342
const activateBtn = document.getElementById( 'activate-btn' );
@@ -101,6 +110,15 @@ The declarative approach simplifies the process by focusing on _what_ should hap
101110
this is inactive
102111
</p>
103112
</div>
113+
114+
<style>
115+
.active {
116+
color: green;
117+
}
118+
.inactive {
119+
color: red;
120+
}
121+
</style>
104122
```
105123

106124
```js

0 commit comments

Comments
 (0)