Skip to content

Conversation

@d2l-github-action-tokens
Copy link
Contributor

@d2l-github-action-tokens d2l-github-action-tokens bot commented Sep 6, 2024

Automatic update of the package-lock.json file.

Dependency Changes
Package Old Version New Version
@brightspace-ui/stylelint-config > @stylelint/postcss-css-in-js > @babel/core > @babel/helper-compilation-targets > browserslist > caniuse-lite 1.0.30001657 1.0.30001660
@brightspace-ui/stylelint-config > @stylelint/postcss-css-in-js > @babel/core > @babel/helper-compilation-targets > browserslist > electron-to-chromium 1.5.14 1.5.18
@brightspace-ui/stylelint-config > @stylelint/postcss-css-in-js > @babel/core > @babel/traverse > debug 4.3.6 4.3.7
@brightspace-ui/stylelint-config > @stylelint/postcss-css-in-js > @babel/core > debug 4.3.6 4.3.7
@brightspace-ui/testing 1.23.0 1.24.1
@brightspace-ui/testing > @web/rollup-plugin-html > html-minifier-terser > terser 5.31.6 5.32.0
@brightspace-ui/testing > @web/test-runner-playwright > playwright 1.46.1 1.47.0
@brightspace-ui/testing > @web/test-runner-playwright > playwright > playwright-core 1.46.1 1.47.0
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > debug 4.3.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > extract-zip > debug 4.3.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > agent-base > debug 4.3.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > debug 4.3.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > http-proxy-agent > debug 4.3.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > https-proxy-agent > debug 4.3.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > agent-base > debug 4.3.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > debug 4.3.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > pac-proxy-agent > get-uri > debug 4.3.6 4.3.7
@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.6 4.3.7
@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.6 4.3.7
@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.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > @puppeteer/browsers > proxy-agent > socks-proxy-agent > debug 4.3.6 4.3.7
@brightspace-ui/testing > @web/test-runner > @web/test-runner-chrome > puppeteer-core > debug 4.3.6 4.3.7
@brightspace-ui/testing > d2l-test-reporting 4.0.4 4.0.6
@brightspace-ui/testing > d2l-test-reporting > mocha > debug 4.3.6 4.3.7
@brightspace-ui/testing > d2l-test-reporting > playwright-core 1.46.1 1.47.0
@brightspace-ui/testing > glob > jackspeak > @isaacs/cliui > string-width > strip-ansi > ansi-regex 6.0.1 6.1.0
@brightspace-ui/testing > glob > jackspeak > @isaacs/cliui > strip-ansi > ansi-regex 6.0.1 6.1.0
@brightspace-ui/testing > glob > jackspeak > @isaacs/cliui > wrap-ansi > strip-ansi > ansi-regex 6.0.1 6.1.0
@brightspace-ui/testing > glob > path-scurry > lru-cache 11.0.0 11.0.1
@web/dev-server > @web/dev-server-core > koa-send > debug 4.3.6 4.3.7
@web/dev-server > @web/dev-server-core > koa-static > debug > ms 2.1.2 2.1.3
@web/dev-server > @web/dev-server-core > koa > debug 4.3.6 4.3.7
@web/dev-server > portfinder > debug > ms 2.1.2 2.1.3
eslint-config-brightspace > eslint-plugin-import > debug > ms 2.1.2 2.1.3
eslint-config-brightspace > eslint-plugin-import > eslint-import-resolver-node > debug > ms 2.1.2 2.1.3
eslint-config-brightspace > eslint-plugin-import > eslint-module-utils 2.9.0 2.11.0
eslint-config-brightspace > eslint-plugin-import > eslint-module-utils > debug > ms 2.1.2 2.1.3
eslint-config-brightspace > eslint-plugin-lit 1.14.0 1.15.0
eslint > @eslint/eslintrc > debug 4.3.6 4.3.7
eslint > @humanwhocodes/config-array > debug 4.3.6 4.3.7
eslint > debug 4.3.6 4.3.7
eslint > debug > ms 2.1.2 2.1.3
messageformat-validator 2.6.6 2.6.7
node-sass > make-fetch-happen > agentkeepalive > humanize-ms > ms 2.1.2 2.1.3
node-sass > make-fetch-happen > http-proxy-agent > agent-base > debug 4.3.6 4.3.7
node-sass > make-fetch-happen > http-proxy-agent > debug 4.3.6 4.3.7
node-sass > make-fetch-happen > https-proxy-agent > debug 4.3.6 4.3.7
node-sass > make-fetch-happen > socks-proxy-agent > debug 4.3.6 4.3.7
node-sass > node-gyp > make-fetch-happen > http-proxy-agent > debug 4.3.6 4.3.7
node-sass > node-gyp > make-fetch-happen > socks-proxy-agent > debug 4.3.6 4.3.7
rollup-plugin-delete 2.0.0 2.1.0
(NEW) rollup-plugin-delete > rollup N/A 4.21.2
stylelint > css-tree > source-map-js 1.2.0 1.2.1
stylelint > debug 4.3.6 4.3.7
stylelint > postcss > source-map-js 1.2.0 1.2.1
stylelint > strip-ansi > ansi-regex 6.0.1 6.1.0

@d2l-github-action-tokens d2l-github-action-tokens bot enabled auto-merge (squash) September 6, 2024 12:43
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2024

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-4957/

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 from ae9bb7c to 6e691a2 Compare September 9, 2024 12:44
@GZolla GZolla requested a review from a team as a code owner September 9, 2024 16:04
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
<div style=${styleMap(slotStyles)}><slot></slot></div>
`;

if (!this._titleId) this._titleId = getUniqueId();
Copy link
Member

Choose a reason for hiding this comment

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

I think we should just set this._titleId = getUniqueId() in the constructor. We do this already in a bunch of places, and it would avoid needing to do it in willUpdate.


willUpdate(changedProperties) {
super.willUpdate(changedProperties);
this._width = Math.max(1170, this.width);
Copy link
Member

Choose a reason for hiding this comment

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

Wondering if this should be:

if (changedProperties.has('width')) {
	this._width = Math.max(1170, this.width);
}

'd2l-footer-no-content': !this._hasFooterContent
};

if (!this._textId && this.describeContent) this._textId = getUniqueId();
Copy link
Member

Choose a reason for hiding this comment

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

Again, I think we should just always set this._textId in the constructor to avoid this situation. In this case, we'd be setting it sometimes when we don't need it (i.e. if this.describeContent is false), but it's cheap to generate an ID even if it doesn't get used.


willUpdate(changedProperties) {
super.willUpdate(changedProperties);
this.style.maxWidth = this.inputTextWidth;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
this.style.maxWidth = this.inputTextWidth;
if (changedProperties.has('_hiddenContentWidth')) {
this.style.maxWidth = this.inputTextWidth;
}

Comment on lines 396 to 397
const inputTextWidth = `calc(${this._hiddenContentWidth} + 1.5rem + 3px)`; // text and icon width + left & right padding + border width + 1
this.style.maxWidth = inputTextWidth;
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I'd probably just merge these lines.

Suggested change
const inputTextWidth = `calc(${this._hiddenContentWidth} + 1.5rem + 3px)`; // text and icon width + left & right padding + border width + 1
this.style.maxWidth = inputTextWidth;
this.style.maxWidth = `calc(${this._hiddenContentWidth} + 1.5rem + 3px)`; // text and icon width + left & right padding + border width + 1;

'd2l-link-small': this.type === 'small',
'd2l-skeletize': true
};
const widthSkeletonSize = `d2l-skeletize-${this.width}`;
Copy link
Member

Choose a reason for hiding this comment

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

Interesting... so the new linting rules hated just referencing this.something in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

My theory is that there is an error in some regex, any reference to this on the left-hand side of an assignment will break the rule. Which makes sense to prevent assigning properties on render(), but not so much when using it as an object key.

@d2l-github-action-tokens d2l-github-action-tokens bot force-pushed the ghworkflow/package_lock_auto_update branch from 9164c99 to ea3b117 Compare September 10, 2024 12:44
Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

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

Looks good! And then if Danny's proposal makes it through, we can revert some of this.

@d2l-github-release-tokens
Copy link

🎉 This PR is included in version 3.37.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants