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

build: bump dependencies #733

Merged
merged 12 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Environment variables available to all steps in the job to ensure provenance of the build
permissions:
contents: read
id-token: write

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
provenance=true
legacy-peer-deps=true
5,707 changes: 2,680 additions & 3,027 deletions package-lock.json

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,77 +59,77 @@
"lit": "^2.8.0"
},
"devDependencies": {
"@babel/core": "7.23.0",
"@lerna-lite/cli": "2.6.0",
"@lerna-lite/exec": "2.6.0",
"@lerna-lite/publish": "2.6.0",
"@lerna-lite/run": "2.6.0",
"@lerna-lite/version": "2.6.0",
"@babel/core": "7.23.9",
"@lerna-lite/cli": "3.2.1",
"@lerna-lite/exec": "3.2.1",
"@lerna-lite/publish": "3.2.1",
"@lerna-lite/run": "3.2.1",
"@lerna-lite/version": "3.2.1",
"@open-wc/testing": "4.0.0",
"@rollup/plugin-node-resolve": "15.2.3",
"@storybook/addon-a11y": "7.6.7",
"@storybook/addon-actions": "7.6.7",
"@storybook/addon-essentials": "7.6.7",
"@storybook/addon-links": "7.6.7",
"@storybook/blocks": "7.6.7",
"@storybook/web-components": "7.6.7",
"@storybook/web-components-vite": "7.6.7",
"@storybook/addon-a11y": "^7.6.12",
"@storybook/addon-actions": "^7.6.12",
"@storybook/addon-essentials": "^7.6.12",
"@storybook/addon-links": "^7.6.12",
"@storybook/blocks": "^7.6.12",
"@storybook/web-components": "^7.6.12",
"@storybook/web-components-vite": "^7.6.12",
"@types/chai": "4.3.5",
"@typescript-eslint/eslint-plugin": "6.6.0",
"@typescript-eslint/parser": "6.0.0",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@web/dev-server-esbuild": "0.4.3",
"@web/test-runner": "0.17.0",
"@web/test-runner-playwright": "0.11.0",
"autoprefixer": "10.4.14",
"autoprefixer": "10.4.17",
"babel-loader": "9.1.3",
"chromatic": "6.20.0",
"element-internals-polyfill": "1.3.5",
"chromatic": "10.7.1",
"element-internals-polyfill": "1.3.10",
"esbuild": "0.20.0",
"eslint": "8.45.0",
"eslint-config-prettier": "9.0.0",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-html": "7.1.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-lit": "1.9.1",
"eslint-plugin-lit-a11y": "4.1.1",
"eslint-plugin-local-rules": "2.0.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-lit": "1.11.0",
"eslint-plugin-lit-a11y": "4.1.2",
"eslint-plugin-local-rules": "2.0.1",
"eslint-plugin-storybook": "0.6.15",
"eslint-plugin-wc": "2.0.4",
"github-markdown-css": "5.3.0",
"github-markdown-css": "5.5.1",
"glob": "8.1.0",
"husky": "8.0.3",
"lint-staged": "13.2.3",
"lint-staged": "15.2.2",
"npm-check-updates": "16.10.16",
"plop": "3.1.2",
"postcss": "8.4.31",
"postcss": "8.4.34",
"postcss-advanced-variables": "3.0.1",
"postcss-cli": "10.1.0",
"postcss-cli": "11.0.0",
"postcss-color-function": "4.1.0",
"postcss-custom-properties": "13.3.2",
"postcss-custom-properties": "13.3.4",
"postcss-jsx": "0.36.4",
"postcss-load-config": "5.0.2",
"postcss-syntax": "0.36.2",
"postcss-url": "10.1.3",
"postcss-values-parser": "6.0.2",
"prettier": "2.8.8",
"prettier": "3.2.5",
"raw-loader": "4.0.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-markdown": "8.0.7",
"react-syntax-highlighter": "15.5.0",
"remark-gfm": "3.0.1",
"rimraf": "5.0.1",
"rimraf": "5.0.5",
"rollup": "4.9.6",
"rollup-plugin-esbuild": "6.1.0",
"rollup-plugin-esbuild": "6.1.1",
"rollup-plugin-import-css": "3.4.0",
"rollup-plugin-minify-html-literals": "1.2.6",
"rollup-plugin-postcss": "4.0.2",
"storybook": "7.6.7",
"storybook": "^7.6.12",
"tsc-files": "1.1.4",
"turbo": "1.11.3",
"turbo": "1.12.2",
"typescript": "5.2.2",
"vite": "5.0.12",
"vite-tsconfig-paths": "4.2.0",
"vite-tsconfig-paths": "4.3.1",
"web-component-analyzer": "2.0.0"
},
"workspaces": [
Expand Down
10 changes: 5 additions & 5 deletions packages/uui-action-bar/lib/uui-action-bar.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const AAAOverview: StoryFn = props => html`
look="${props.look}"
color="${props.color}">
<uui-icon name="${el}"></uui-icon>
</uui-button>`
</uui-button>`,
)}
</uui-action-bar>
</uui-icon-registry-essential>
Expand All @@ -71,7 +71,7 @@ export const Single = () => {
<uui-icon name="delete"></uui-icon>
</uui-button>
</uui-action-bar>
</div> `
</div> `,
)}
</uui-icon-registry-essential>
`;
Expand All @@ -97,12 +97,12 @@ export const LooksAndColors = () => {
.look="${look as any}"
.color="${color as any}">
<uui-icon name="${el}"></uui-icon>
</uui-button>`
</uui-button>`,
)}
</uui-action-bar>
`
`,
)}
</div> `
</div> `,
)}
</uui-icon-registry-essential>
`;
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-avatar-group/lib/uui-avatar-group.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('UuiAvatarGroup Limit', async () => {
<uui-avatar name="First Last"></uui-avatar>
<uui-avatar name="First Last"></uui-avatar>
<uui-avatar name="First Last"></uui-avatar>
</uui-avatar-group>`
</uui-avatar-group>`,
);
});

Expand All @@ -76,7 +76,7 @@ describe('UuiAvatarGroup Limit', async () => {
html` <uui-avatar-group>
<uui-avatar name="First Last"></uui-avatar>
<uui-avatar name="First Last"></uui-avatar>
</uui-avatar-group>`
</uui-avatar-group>`,
);

const small = avatarGroup.shadowRoot!.querySelector('small');
Expand Down
10 changes: 5 additions & 5 deletions packages/uui-avatar/lib/uui-avatar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ describe('UuiAvatar', () => {

it('renders an image when imgSrc is set', async () => {
const avatar = await fixture(
html`<uui-avatar img-src="${avatarSrc}" name="My Avatar"></uui-avatar>`
html`<uui-avatar img-src="${avatarSrc}" name="My Avatar"></uui-avatar>`,
);
expect(avatar).shadowDom.to.equal(
`<img alt="MA" src="${avatarSrc}" srcset="" title="My Avatar" /><slot></<slot>`
`<img alt="MA" src="${avatarSrc}" srcset="" title="My Avatar" /><slot></<slot>`,
);
});

it('renders an image with alt text when imgSrc and text is set', async () => {
const avatar = await fixture(
html`<uui-avatar img-src="${avatarSrc}" name="alt text"></uui-avatar>`
html`<uui-avatar img-src="${avatarSrc}" name="alt text"></uui-avatar>`,
);
expect(avatar).shadowDom.to.equal(
`<img alt="AT" src="${avatarSrc}" srcset="" title="alt text" /><slot></<slot>`
`<img alt="AT" src="${avatarSrc}" srcset="" title="alt text" /><slot></<slot>`,
);
});

Expand All @@ -66,7 +66,7 @@ describe('UuiAvatar', () => {

it('shows the first and last initial when text is used and there is no image', async () => {
const avatar = await fixture(
html`<uui-avatar name="First Second Last"></uui-avatar>`
html`<uui-avatar name="First Second Last"></uui-avatar>`,
);
expect(avatar).shadowDom.to.equal('FL<slot></<slot>');
});
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-badge/lib/uui-badge.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ export const LooksAndColors: Story = () => html`
>${uppercaseFirstLetter(look)}</uui-badge
>
</div>
`
`,
)}
</div>
`
`,
)}
`;
2 changes: 1 addition & 1 deletion packages/uui-base/lib/animations/uui-pulse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export const UUIHorizontalPulseKeyframes = css`
`;

export const UUIHorizontalPulseAnimationValue = unsafeCSS(
'pulse 0.8s ease-in-out infinite both'
'pulse 0.8s ease-in-out infinite both',
);
2 changes: 1 addition & 1 deletion packages/uui-base/lib/animations/uui-shake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ export const UUIHorizontalShakeKeyframes = css`
`;

export const UUIHorizontalShakeAnimationValue = unsafeCSS(
'uui-horizontal-shake 600ms ease backwards'
'uui-horizontal-shake 600ms ease backwards',
);
2 changes: 1 addition & 1 deletion packages/uui-base/lib/events/UUIEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

export class UUIEvent<
DetailType extends Record<string, any> = Record<string, any>,
EventTargetType extends EventTarget | null = EventTarget | null
EventTargetType extends EventTarget | null = EventTarget | null,
> extends Event {
readonly detail: DetailType;
readonly target!: EventTargetType;
Expand Down
2 changes: 1 addition & 1 deletion packages/uui-base/lib/mixins/ActiveMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

type Constructor<T = {}> = new (...args: any[]) => T;

export declare class ActiveMixinInterface {

Check warning on line 6 in packages/uui-base/lib/mixins/ActiveMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
active: boolean;
}

Expand All @@ -14,9 +14,9 @@
* @mixin
*/
export const ActiveMixin = <T extends Constructor<LitElement>>(
superClass: T
superClass: T,
) => {
class ActiveMixinClass extends superClass {

Check warning on line 19 in packages/uui-base/lib/mixins/ActiveMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
/**
* Set this boolean to true for then the related composition is sorted.
* @type {boolean}
Expand Down
18 changes: 9 additions & 9 deletions packages/uui-base/lib/mixins/FormControlMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
type NativeFormControlElement = HTMLInputElement; // Eventually use a specific interface or list multiple options like appending these types: ... | HTMLTextAreaElement | HTMLSelectElement

// TODO: make it possible to define FormDataEntryValue type.
export declare abstract class FormControlMixinInterface extends LitElement {

Check warning on line 11 in packages/uui-base/lib/mixins/FormControlMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
formAssociated: boolean;
get value(): FormDataEntryValue | FormData;
set value(newValue: FormDataEntryValue | FormData);
Expand All @@ -25,7 +25,7 @@
protected addValidator: (
flagKey: FlagTypes,
getMessageMethod: () => String,
checkMethod: () => boolean
checkMethod: () => boolean,
) => void;
protected addFormControlElement(element: NativeFormControlElement): void;
pristine: boolean;
Expand Down Expand Up @@ -66,9 +66,9 @@
* @mixin
*/
export const FormControlMixin = <T extends Constructor<LitElement>>(
superClass: T
superClass: T,
) => {
abstract class FormControlMixinClass extends superClass {

Check warning on line 71 in packages/uui-base/lib/mixins/FormControlMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
/**
* This is a static class field indicating that the element is can be used inside a native form and participate in its events.
* It may require a polyfill, check support here https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals.
Expand Down Expand Up @@ -163,12 +163,12 @@
this.addValidator(
'valueMissing',
() => this.requiredMessage,
() => this.hasAttribute('required') && this.hasValue() === false
() => this.hasAttribute('required') && this.hasValue() === false,
);
this.addValidator(
'customError',
() => this.errorMessage,
() => this.error
() => this.error,
);

this.addEventListener('blur', () => {
Expand Down Expand Up @@ -222,7 +222,7 @@
protected addValidator(
flagKey: FlagTypes,
getMessageMethod: () => String,
checkMethod: () => boolean
checkMethod: () => boolean,
): Validator {
const obj = {
flagKey: flagKey,
Expand Down Expand Up @@ -266,7 +266,7 @@
this._customValidityObject = this.addValidator(
'customError',
(): string => message,
() => true
() => true,
);
}

Expand All @@ -284,7 +284,7 @@
this._internals.setValidity(
(this as any)._validityState,
formCtrlEl.validationMessage,
formCtrlEl
formCtrlEl,
);
}
}
Expand All @@ -297,7 +297,7 @@
this._internals.setValidity(
this._validityState,
validator.getMessageMethod(),
this.getFormElement()
this.getFormElement(),
);
}
});
Expand All @@ -309,7 +309,7 @@

if (hasError) {
this.dispatchEvent(
new UUIFormControlEvent(UUIFormControlEvent.INVALID)
new UUIFormControlEvent(UUIFormControlEvent.INVALID),
);
} else {
this._internals.setValidity({});
Expand Down
2 changes: 1 addition & 1 deletion packages/uui-base/lib/mixins/LabelMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

type Constructor<T = {}> = new (...args: any[]) => T;

export declare class LabelMixinInterface {

Check warning on line 6 in packages/uui-base/lib/mixins/LabelMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
/**
* Label to be used for aria-label and potentially as visual label for some components
* @type {string}
Expand All @@ -23,12 +23,12 @@
*/
export const LabelMixin = <T extends Constructor<LitElement>>(
labelSlotName: string | null,
superClass: T
superClass: T,
) => {
/**
* Label mixin class containing the label functionality.
*/
class LabelMixinClass extends superClass {

Check warning on line 31 in packages/uui-base/lib/mixins/LabelMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
/**
* Label to be used for aria-label and potentially as visual label for some components
* @type {string}
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-base/lib/mixins/PopoverTargetMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

type Constructor<T = {}> = new (...args: any[]) => T;

export declare class PopoverTargetMixinInterface {

Check warning on line 7 in packages/uui-base/lib/mixins/PopoverTargetMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
/**
* Set a popovertarget.
* @type {string}
Expand All @@ -26,12 +26,12 @@
* @mixin
*/
export const PopoverTargetMixin = <T extends Constructor<LitElement>>(
superClass: T
superClass: T,
) => {
/**
* Popover target mixin class containing the popover target functionality.
*/
class PopoverTargetMixinClass extends superClass {

Check warning on line 34 in packages/uui-base/lib/mixins/PopoverTargetMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
/**
* Set a popovertarget.
* @type {string}
Expand All @@ -54,7 +54,7 @@
const popoverContainerElement = findAncestorByAttributeValue(
this,
'id',
this.popoverContainerElement
this.popoverContainerElement,
);
if (!popoverContainerElement) return;

Expand Down
4 changes: 2 additions & 2 deletions packages/uui-base/lib/mixins/SelectOnlyMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

type Constructor<T = {}> = new (...args: any[]) => T;

export declare class SelectOnlyMixinInterface extends SelectableMixinInterface {

Check warning on line 6 in packages/uui-base/lib/mixins/SelectOnlyMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
selectOnly: boolean;
}

Expand All @@ -15,11 +15,11 @@
* @mixin
*/
export const SelectOnlyMixin = <
T extends Constructor<SelectableMixinInterface>
T extends Constructor<SelectableMixinInterface>,
>(
superClass: T
superClass: T,
) => {
class SelectOnlyMixinClass extends superClass {

Check warning on line 22 in packages/uui-base/lib/mixins/SelectOnlyMixin.ts

View workflow job for this annotation

GitHub Actions / test (20)

Class declaration should be prefixed with "UUI"
private _selectOnly = false;

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/uui-base/lib/mixins/SelectableMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export declare class SelectableMixinInterface extends LitElement {
* @mixin
*/
export const SelectableMixin = <T extends Constructor<LitElement>>(
superClass: T
superClass: T,
) => {
/**
* @fires {UUISelectableEvent} selected - fires when the media card is selected
Expand Down
4 changes: 2 additions & 2 deletions packages/uui-base/lib/registration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
*/
export function defineElement(
name: string,
options?: ElementDefinitionOptions | undefined
options?: ElementDefinitionOptions | undefined,
) {
return (constructor: CustomElementConstructor) => {
const isValidElementName = name.indexOf('-') > 0;

if (isValidElementName === false) {
console.error(
`${name} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`
`${name} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`,
);
return;
}
Expand Down
Loading
Loading