Skip to content

Commit 4e85fbe

Browse files
committed
Merge branch 'trunk' into update/plans-page-copy
2 parents a9ecec8 + 283e507 commit 4e85fbe

File tree

692 files changed

+10268
-8376
lines changed

Some content is hidden

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

692 files changed

+10268
-8376
lines changed

.storybook/main.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ const storybookConfig = storybookDefaultConfig( {
1212
} );
1313

1414
const configData = { ...sharedConfig, ...devConfig };
15-
storybookConfig.previewHead = ( head ) => `
16-
${ head }
17-
<script>
18-
window.configData = ${ JSON.stringify( configData ) };
19-
window.__i18n_text_domain__ = 'default';
20-
</script>
21-
`;
2215

23-
module.exports = { ...storybookConfig };
16+
module.exports = {
17+
...storybookConfig,
18+
19+
preview: {
20+
head: ( head ) => `
21+
${ head }
22+
<script>
23+
window.configData = ${ JSON.stringify( configData ) };
24+
window.__i18n_text_domain__ = 'default';
25+
</script>
26+
`,
27+
},
28+
};

.stylelintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"no-invalid-position-at-import-rule": null,
2626
"declaration-property-unit-allowed-list": [
2727
{
28-
"/^font-size$|^font$/": [ "rem" ],
2928
"line-height": [ "px" ],
3029
"/radius$/": [ "px", "%" ]
3130
},

apps/blaze-dashboard/src/styles/wp-admin.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
width: auto;
4444
background: var(--studio-white);
4545
color: var(--color-text);
46-
font-size: 13px; /* stylelint-disable-line declaration-property-unit-allowed-list */
46+
font-size: 13px;
4747
margin-left: 20px;
4848
margin-bottom: 2px;
4949

@@ -60,13 +60,13 @@
6060
h2,
6161
h3 {
6262
color: var(--studio-gray-90);
63-
font-size: 1.3em; /* stylelint-disable-line declaration-property-unit-allowed-list */
63+
font-size: 1.3em;
6464
margin: 1em 0;
6565
font-weight: 600;
6666
}
6767

6868
p {
69-
font-size: 13px; /* stylelint-disable-line declaration-property-unit-allowed-list */
69+
font-size: 13px;
7070
line-height: 1.5;
7171
margin: 0.5em 0;
7272
padding: 2px;

apps/help-center/webpack.config.js

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,16 @@ const GenerateChunksMapPlugin = require( '../../build-tools/webpack/generate-chu
88

99
const isDevelopment = process.env.NODE_ENV !== 'production';
1010

11-
/* Arguments to this function replicate webpack's so this config can be used on the command line,
12-
* with individual options overridden by command line args.
13-
* @see {@link https://webpack.js.org/configuration/configuration-types/#exporting-a-function}
14-
* @see {@link https://webpack.js.org/api/cli/}
15-
* @param {Object} env environment options
16-
* @param {string} env.source plugin slugs, comma separated list
17-
* @param {Object} argv options map
18-
* @param {string} argv.entry entry path
19-
* @returns {Object} webpack config
20-
*/
21-
function getWebpackConfig( env = { source: '' }, argv = {} ) {
22-
env.WP = true;
23-
const outputPath = path.join( __dirname, 'dist' );
11+
function getIndividualConfig( options = {} ) {
12+
const { name, env, argv, injectPolyfill = true } = options;
2413

14+
const outputPath = path.join( __dirname, 'dist' );
2515
const webpackConfig = getBaseWebpackConfig( env, argv );
2616

2717
return {
2818
...webpackConfig,
2919
mode: isDevelopment ? 'development' : 'production',
30-
entry: {
31-
'help-center-gutenberg': path.join( __dirname, 'help-center-gutenberg.js' ),
32-
'help-center-wp-admin': path.join( __dirname, 'help-center-wp-admin.js' ),
33-
'help-center-gutenberg-disconnected': path.join(
34-
__dirname,
35-
'help-center-gutenberg-disconnected.js'
36-
),
37-
'help-center-wp-admin-disconnected': path.join(
38-
__dirname,
39-
'help-center-wp-admin-disconnected.js'
40-
),
41-
},
20+
entry: { [ name ]: path.join( __dirname, `${ name }.js` ) },
4221
output: {
4322
...webpackConfig.output,
4423
path: outputPath,
@@ -62,7 +41,7 @@ function getWebpackConfig( env = { source: '' }, argv = {} ) {
6241
output: path.resolve( './dist/chunks-map.json' ),
6342
} ),
6443
new DependencyExtractionWebpackPlugin( {
65-
injectPolyfill: true,
44+
injectPolyfill,
6645
outputFilename: '[name].asset.json',
6746
outputFormat: 'json',
6847
requestToExternal( request ) {
@@ -87,4 +66,30 @@ function getWebpackConfig( env = { source: '' }, argv = {} ) {
8766
};
8867
}
8968

69+
/* Arguments to this function replicate webpack's so this config can be used on the command line,
70+
* with individual options overridden by command line args.
71+
* @see {@link https://webpack.js.org/configuration/configuration-types/#exporting-a-function}
72+
* @see {@link https://webpack.js.org/api/cli/}
73+
* @param {Object} env environment options
74+
* @param {string} env.source plugin slugs, comma separated list
75+
* @param {Object} argv options map
76+
* @param {string} argv.entry entry path
77+
* @returns {Object} webpack config
78+
*/
79+
function getWebpackConfig( env = { source: '' }, argv = {} ) {
80+
env.WP = true;
81+
82+
return [
83+
getIndividualConfig( { env, argv, name: 'help-center-gutenberg' } ),
84+
getIndividualConfig( { env, argv, name: 'help-center-wp-admin' } ),
85+
getIndividualConfig( { env, argv, name: 'help-center-gutenberg-disconnected' } ),
86+
getIndividualConfig( {
87+
env,
88+
argv,
89+
injectPolyfill: false,
90+
name: 'help-center-wp-admin-disconnected',
91+
} ),
92+
];
93+
}
94+
9095
module.exports = getWebpackConfig;

apps/notifications/src/panel/boot/stylesheets/actions.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
padding-right: 52px;
2222
min-height: 37px;
2323
width: 100%;
24-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
2524
font-size: 14px;
2625
font-family: inherit;
2726
transition: border 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
@@ -41,7 +40,6 @@
4140
right: 25px;
4241
text-transform: uppercase;
4342
font-weight: 600;
44-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
4543
font-size: 12px;
4644
}
4745
button.active {
@@ -68,7 +66,6 @@
6866
box-sizing: border-box;
6967
cursor: pointer;
7068
display: inline-block;
71-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
7269
font-size: 12px;
7370
max-width: 25%;
7471
padding: 0 18px;
@@ -128,7 +125,6 @@
128125
}
129126

130127
.wpnc__gridicon {
131-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
132128
font-size: 24px;
133129
}
134130

apps/notifications/src/panel/boot/stylesheets/block-user.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ div.wpnc__user {
1212
}
1313

1414
p {
15-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
1615
font-size: 0.85em;
1716
margin: 0;
1817
}

apps/notifications/src/panel/boot/stylesheets/main.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ $with-sidebar-min-page-width: 1114px;
261261
background: var(--color-surface);
262262
border: 1px solid var(--color-neutral-light);
263263
border-right: none;
264-
font-size: 13px; /* stylelint-disable-line declaration-property-unit-allowed-list */
264+
font-size: 13px;
265265
height: 26px;
266266
cursor: pointer;
267267
user-select: none; // Makes text unselectable
@@ -378,12 +378,12 @@ $with-sidebar-min-page-width: 1114px;
378378
transform: translateY(-50%);
379379

380380
h2 {
381-
font: 400 21px/24px $sans; /* stylelint-disable-line declaration-property-unit-allowed-list */
381+
font: 400 21px/24px $sans;
382382
margin-bottom: 4px;
383383
}
384384

385385
p {
386-
font: 400 16px/24px $sans; /* stylelint-disable-line declaration-property-unit-allowed-list */
386+
font: 400 16px/24px $sans;
387387
}
388388
}
389389

@@ -403,7 +403,7 @@ $with-sidebar-min-page-width: 1114px;
403403
bottom: 0;
404404
overflow: hidden;
405405
&:not(.is-note-open) {
406-
box-shadow: -3px 1px 10px -2px rgba(var(--color-neutral-70-rgb), 0.075);
406+
box-shadow: -3px 1px 10px -2px color-mix(in srgb, var(--color-neutral-70) 7.5%, transparent);
407407
}
408408
}
409409

@@ -454,7 +454,7 @@ $with-sidebar-min-page-width: 1114px;
454454
}
455455

456456
.unread {
457-
background: rgba(var(--color-primary-rgb), 0.1); // rgba is used to meet AA contrast standard
457+
background: color-mix(in srgb, var(--color-primary) 10%, transparent); // rgba is used to meet AA contrast standard
458458
}
459459

460460
.wpnc__traffic_surge .wpnc__note-icon img {
@@ -616,7 +616,7 @@ $with-sidebar-min-page-width: 1114px;
616616
height: 100%;
617617
left: 0;
618618
right: 0;
619-
box-shadow: -3px 1px 10px -2px rgba(var(--color-neutral-70-rgb), 0.075);
619+
box-shadow: -3px 1px 10px -2px color-mix(in srgb, var(--color-neutral-70) 7.5%, transparent);
620620

621621
@media only screen and (min-width: 480px) {
622622
border-left: 1px solid var(--color-neutral-0);
@@ -681,7 +681,7 @@ $with-sidebar-min-page-width: 1114px;
681681
.wpnc__comment .wpnc__user p.wpnc__excerpt {
682682
color: var(--color-secondary);
683683
max-height: 1.5em;
684-
font-size: 14px; /* stylelint-disable-line declaration-property-unit-allowed-list */
684+
font-size: 14px;
685685
}
686686

687687
.wpnc__reply {
@@ -714,7 +714,7 @@ $with-sidebar-min-page-width: 1114px;
714714
}
715715

716716
.wpnc__note-icon .wpnc__gridicon {
717-
font-size: 2em; /* stylelint-disable-line declaration-property-unit-allowed-list */
717+
font-size: 2em;
718718
background-color: var(--color-neutral-10);
719719
border-color: var(--color-neutral-10);
720720
}
@@ -812,7 +812,7 @@ $with-sidebar-min-page-width: 1114px;
812812

813813
code {
814814
font-family: $code;
815-
font-size: 90%; /* stylelint-disable-line declaration-property-unit-allowed-list */
815+
font-size: 90%;
816816
color: var(--color-neutral-50);
817817
background: var(--color-neutral-0);
818818
border: 1px solid var(--color-neutral-10);

apps/notifications/src/panel/boot/stylesheets/note-common.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ div.wpnc__note-actions {
3535
clip: auto !important;
3636
color: #21759b;
3737
display: block;
38-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
3938
font-size: 14px;
4039
font-weight: bold;
4140
height: auto;

apps/notifications/src/panel/boot/stylesheets/shared/buttons.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
text-decoration: none;
2222
vertical-align: top;
2323
box-sizing: border-box;
24-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
2524
font-size: 14px;
2625
line-height: 21px;
2726
border-radius: 4px;
@@ -57,7 +56,6 @@
5756
&.is-compact {
5857
padding: 7px;
5958
color: var(--color-neutral-40);
60-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
6159
font-size: 11px;
6260
line-height: 1;
6361
text-transform: uppercase;

apps/notifications/src/panel/boot/stylesheets/shared/forms.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
padding: 7px 14px;
44
width: 100%;
55
color: var(--color-neutral-70);
6-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
76
font-size: 16px;
87
line-height: 1.5;
98
border: 1px solid var(--color-neutral-10);

apps/notifications/src/panel/boot/stylesheets/shared/reset.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
border: 0;
5858
margin: 0;
5959
font-family: inherit;
60-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
6160
font-size: 100%;
6261
font-style: inherit;
6362
font-weight: inherit;

apps/notifications/src/panel/suggestions/styles.scss

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $selected-color: var(--color-primary);
88
$img-size: 24px;
99
$img-border-radius: 50%;
1010
$border-radius: 3px;
11-
$box-shadow: 0 5px 6px rgba(var(--color-neutral-10-rgb), 0.5);
11+
$box-shadow: 0 5px 6px color-mix(in srgb, var(--color-neutral-10) 50%, transparent);
1212

1313
.wpnc__suggestions {
1414
position: relative;
@@ -38,7 +38,6 @@ $box-shadow: 0 5px 6px rgba(var(--color-neutral-10-rgb), 0.5);
3838
border-bottom: 1px solid $light-border-color;
3939
cursor: pointer;
4040
line-height: $img-size;
41-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
4241
font-size: 14px;
4342
height: $img-size;
4443
overflow: hidden;
@@ -55,7 +54,7 @@ $box-shadow: 0 5px 6px rgba(var(--color-neutral-10-rgb), 0.5);
5554

5655
strong {
5756
font-weight: 400;
58-
background: rgba(var(--color-primary-light-rgb), 0.25);
57+
background: color-mix(in srgb, var(--color-primary-light) 25%, transparent);
5958
}
6059

6160
.wpnc__username {
@@ -67,7 +66,6 @@ $box-shadow: 0 5px 6px rgba(var(--color-neutral-10-rgb), 0.5);
6766
}
6867

6968
small {
70-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
7169
font-size: 11px;
7270
font-weight: 400;
7371
float: right;
@@ -83,7 +81,7 @@ $box-shadow: 0 5px 6px rgba(var(--color-neutral-10-rgb), 0.5);
8381
strong,
8482
.username strong {
8583
color: var(--color-text-inverted);
86-
background: rgba(var(--color-primary-light-rgb), 0.45);
84+
background: color-mix(in srgb, var(--color-primary-light) 45%, transparent);
8785
}
8886

8987
small {

apps/o2-blocks/src/github-issue-template/style.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
.wp-block-a8c-github-template__icon {
2222
background: none;
2323
color: var(--color-text-inverted);
24-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
2524
font-size: 26px;
2625
top: calc(50% - 23px);
2726

apps/o2-blocks/src/p2-autocomplete/editor.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
text-overflow: ellipsis;
2626
text-align: right;
2727
padding-right: 8px;
28-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
2928
font-size: 0.8em;
3029
flex-grow: 1;
3130
}

apps/o2-blocks/src/project-status/editor.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
margin-bottom: 10px;
2323

2424
.wp-block-project-status__title {
25-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
2625
font-size: 13px;
2726
font-weight: bold;
2827
font-family:
@@ -39,7 +38,6 @@
3938
}
4039

4140
.wp-block-project-status__counts {
42-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
4341
font-size: 13px;
4442
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
4543
}
@@ -54,7 +52,6 @@
5452
border-radius: 4px;
5553
padding: 0 20px;
5654
text-align: right;
57-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
5855
font-size: 13px;
5956
margin: 16px 0;
6057
margin-left: auto;
@@ -66,7 +63,6 @@
6663
border: 1px solid #222;
6764
border-radius: 4px;
6865
padding: 0 20px;
69-
/* stylelint-disable-next-line declaration-property-unit-allowed-list */
7066
font-size: 13px;
7167
margin: 16px 0;
7268
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

0 commit comments

Comments
 (0)