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

Updating package-lock.json #5158

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

d2l-github-action-tokens[bot]
Copy link
Contributor

@d2l-github-action-tokens d2l-github-action-tokens bot commented Nov 18, 2024

Automatic update of the package-lock.json file.

Dependency Changes
Package Old Version New Version
@brightspace-ui/intl 3.19.1 3.20.1
@brightspace-ui/lms-context-provider 1.11.0 1.12.0
@brightspace-ui/stylelint-config > @stylelint/postcss-css-in-js > @babel/core > @babel/helper-compilation-targets > browserslist > electron-to-chromium 1.5.62 1.5.63
@brightspace-ui/testing > @brightspace-ui/intl 3.19.1 3.20.1
@brightspace-ui/testing > @web/test-runner-commands > @web/test-runner-core > @types/co-body > @types/node 22.9.0 22.9.1
@brightspace-ui/testing > @web/test-runner-playwright > playwright 1.48.2 1.49.0
@brightspace-ui/testing > @web/test-runner-playwright > playwright > playwright-core 1.48.2 1.49.0
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > chrome-launcher > @types/node 22.9.0 22.9.1
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > extract-zip > @types/yauzl > @types/node 22.9.0 22.9.1
@brightspace-ui/testing > d2l-test-reporting > playwright-core 1.48.2 1.49.0
@brightspace-ui/testing > glob > foreground-child > cross-spawn 7.0.5 7.0.6
@brightspace-ui/testing > rollup 4.27.2 4.27.3
@rollup/plugin-dynamic-import-vars > @rollup/pluginutils > rollup 4.27.2 4.27.3
@rollup/plugin-dynamic-import-vars > magic-string 0.30.12 0.30.13
@rollup/plugin-dynamic-import-vars > rollup 4.27.2 4.27.3
@rollup/plugin-node-resolve > rollup 4.27.2 4.27.3
@rollup/plugin-replace > magic-string 0.30.12 0.30.13
@rollup/plugin-replace > rollup 4.27.2 4.27.3
@web/dev-server > @web/dev-server-core > @types/koa > @types/accepts > @types/node 22.9.0 22.9.1
@web/dev-server > @web/dev-server-core > @types/koa > @types/cookies > @types/connect > @types/node 22.9.0 22.9.1
@web/dev-server > @web/dev-server-core > @types/koa > @types/cookies > @types/express > @types/body-parser > @types/node 22.9.0 22.9.1
@web/dev-server > @web/dev-server-core > @types/koa > @types/cookies > @types/express > @types/express-serve-static-core > @types/node 22.9.0 22.9.1
@web/dev-server > @web/dev-server-core > @types/koa > @types/cookies > @types/express > @types/express-serve-static-core > @types/send > @types/node 22.9.0 22.9.1
@web/dev-server > @web/dev-server-core > @types/koa > @types/cookies > @types/express > @types/serve-static > @types/node 22.9.0 22.9.1
@web/dev-server > @web/dev-server-core > @types/koa > @types/cookies > @types/node 22.9.0 22.9.1
@web/dev-server > @web/dev-server-core > @types/koa > @types/node 22.9.0 22.9.1
@web/dev-server > @web/dev-server-core > @types/ws > @types/node 22.9.0 22.9.1
@web/dev-server > @web/dev-server-rollup > rollup 4.27.2 4.27.3
@web/dev-server > internal-ip > default-gateway > execa > cross-spawn 7.0.5 7.0.6
eslint > cross-spawn 7.0.5 7.0.6
eslint > file-entry-cache > flat-cache > flatted 3.3.1 3.3.2
rollup-plugin-copy > @types/fs-extra > @types/node 22.9.0 22.9.1
rollup-plugin-copy > globby > @types/glob > @types/node 22.9.0 22.9.1
rollup-plugin-delete > rollup 4.27.2 4.27.3
rollup 4.27.2 4.27.3
rollup > @rollup/rollup-android-arm-eabi 4.27.2 4.27.3
rollup > @rollup/rollup-android-arm64 4.27.2 4.27.3
rollup > @rollup/rollup-darwin-arm64 4.27.2 4.27.3
rollup > @rollup/rollup-darwin-x64 4.27.2 4.27.3
rollup > @rollup/rollup-freebsd-arm64 4.27.2 4.27.3
rollup > @rollup/rollup-freebsd-x64 4.27.2 4.27.3
rollup > @rollup/rollup-linux-arm-gnueabihf 4.27.2 4.27.3
rollup > @rollup/rollup-linux-arm-musleabihf 4.27.2 4.27.3
rollup > @rollup/rollup-linux-arm64-gnu 4.27.2 4.27.3
rollup > @rollup/rollup-linux-arm64-musl 4.27.2 4.27.3
rollup > @rollup/rollup-linux-powerpc64le-gnu 4.27.2 4.27.3
rollup > @rollup/rollup-linux-riscv64-gnu 4.27.2 4.27.3
rollup > @rollup/rollup-linux-s390x-gnu 4.27.2 4.27.3
rollup > @rollup/rollup-linux-x64-gnu 4.27.2 4.27.3
rollup > @rollup/rollup-linux-x64-musl 4.27.2 4.27.3
rollup > @rollup/rollup-win32-arm64-msvc 4.27.2 4.27.3
rollup > @rollup/rollup-win32-ia32-msvc 4.27.2 4.27.3
rollup > @rollup/rollup-win32-x64-msvc 4.27.2 4.27.3
sass > immutable 5.0.2 5.0.3
stylelint > file-entry-cache > flat-cache > flatted 3.3.1 3.3.2
(REMOVED) @brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > agent-base > debug 4.3.7 N/A
(REMOVED) @brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > http-proxy-agent > agent-base 7.1.1 N/A
(REMOVED) @brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > http-proxy-agent > debug 4.3.7 N/A
(REMOVED) @brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > https-proxy-agent > agent-base 7.1.1 N/A
(REMOVED) @brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > https-proxy-agent > debug 4.3.7 N/A
(REMOVED) @brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > socks-proxy-agent > agent-base 7.1.1 N/A
(REMOVED) @brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > socks-proxy-agent > debug 4.3.7 N/A
(REMOVED) @brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > socks-proxy-agent > socks 2.8.3 N/A

@d2l-github-action-tokens d2l-github-action-tokens bot enabled auto-merge (squash) November 18, 2024 17:28
Copy link
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-5158/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

@d2l-github-action-tokens d2l-github-action-tokens bot force-pushed the ghworkflow/package_lock_auto_update branch 2 times, most recently from 7732602 to 7babf84 Compare November 19, 2024 12:45
@dlockhart dlockhart requested a review from a team as a code owner November 19, 2024 18:26
@@ -628,7 +628,7 @@ export const DropdownContentMixin = superclass => class extends LocalizeCoreElem

// DE44538: wait for dropdown content to fully render,
// otherwise this.getContentContainer() can return null.
await this.updateComplete;
await this.__waitForContentContainer();
Copy link
Member

Choose a reason for hiding this comment

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

@dbatiste @margaree FYI on the changes in here.

This first one wasn't causing vdiffs to fail, but it was causing a lot of errors in the console because this.getContentContainer() was returning null and the code below was assuming that it wasn't. Clearly based on this comment this was a problem in the past, but I'm guessing waiting for updateComplete is no longer enough.

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder why that element would not be rendered by the time updateComplete is fulfilled.

e.preventDefault();
await this._waitForItems();
Copy link
Member

Choose a reason for hiding this comment

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

I was seeing consistent vdiff results where it wasn't focusing on the first item in the menu when the time input was opened. I tracked this down to the menu bailing on its focus code because there weren't any items and it therefore couldn't determine where to move focus. That's because time inputs don't render their menu items until the menu is first opened as a performance thing.

So this change sets this._dropdownFirstOpened to true which will cause a re-render and the items to be rendered. It then waits for them to be present in the DOM, and only then does it set opened which will cause another re-render and the menu code will take over to place focus.

@@ -167,7 +167,8 @@ describe('d2l-input-date-time', () => {
it('open time', async() => {
const elem = await fixture(basicFixture);
const textInput = elem.shadowRoot.querySelector('d2l-input-time').shadowRoot.querySelector('input');
await sendKeysElem(textInput, 'press', 'Enter');
sendKeysElem(textInput, 'press', 'Enter');
await oneEvent(elem, 'd2l-dropdown-open');
Copy link
Member

Choose a reason for hiding this comment

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

It needs to wait longer now.

@dlockhart dlockhart force-pushed the ghworkflow/package_lock_auto_update branch from cda31ce to 0f24d88 Compare November 19, 2024 21:15
@dlockhart
Copy link
Member

The line-wrapping diffs are expected (Chrome now matches Firefox and Safari) but I'll spend some more time investigating the other stuff. It could be a repercussion of delaying dropdown opening a bit so things have resized.

@@ -49,11 +49,11 @@ function addSpaceListener() {
if (spaceListenerAdded) return;
spaceListenerAdded = true;
document.addEventListener('keydown', e => {
if (e.keyCode !== 32) return;
if (e.key !== ' ') return;
Copy link
Member

Choose a reason for hiding this comment

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

My IDE was giving me warnings since keyCode is deprecated. This is functionally equivalent.

@@ -617,7 +618,7 @@ class Filter extends FocusMixin(LocalizeCoreElement(RtlMixin(LitElement))) {
return html`
<d2l-list-item
id="${itemId}"
@d2l-list-item-selected="${ifDefined(item.additionalContent ? this._handleListItemSelelcted : undefined)}"
@d2l-list-item-selected="${item.additionalContent ? this._handleListItemSelected : undefined}"
Copy link
Member

Choose a reason for hiding this comment

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

Wrapping this in ifDefined does nothing since that's just for attributes. Also fixing typo in the handler name.

_handleListItemSelelcted() {
if (hasDisplayedKeyboardTooltip || !spacePressed) return;
this._displayKeyboardTooltip = true;
hasDisplayedKeyboardTooltip = true;
Copy link
Member

Choose a reason for hiding this comment

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

We were getting really consistent failures (~90% of the time) where the tooltip which is tied to the list item would position itself before the expand/collapse area had finished opening. This captures whether spacebar was pressed (because we lose that information after) but moves the displaying of the tooltip up into the event handler for expand/collapse.

@dlockhart dlockhart force-pushed the ghworkflow/package_lock_auto_update branch from b132e40 to 3bff7b8 Compare November 20, 2024 20:47
@dlockhart dlockhart force-pushed the ghworkflow/package_lock_auto_update branch from 3868c87 to a6dc099 Compare November 21, 2024 15:24
@dlockhart dlockhart force-pushed the ghworkflow/package_lock_auto_update branch from a6dc099 to faff273 Compare November 21, 2024 15:26
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.

2 participants