From b0d6ce623ca7e644ce42930109daa7f2ea3e2890 Mon Sep 17 00:00:00 2001 From: Xander Marjoram Date: Wed, 31 Jul 2024 10:33:33 +0100 Subject: [PATCH] fix(pie-toast): DSW-000 add missing package dependencies --- .changeset/early-spoons-grin.md | 5 +++++ packages/components/pie-toast/package.json | 3 +++ packages/components/pie-toast/src/defs.ts | 6 ++---- yarn.lock | 3 +++ 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .changeset/early-spoons-grin.md diff --git a/.changeset/early-spoons-grin.md b/.changeset/early-spoons-grin.md new file mode 100644 index 0000000000..a3add16e62 --- /dev/null +++ b/.changeset/early-spoons-grin.md @@ -0,0 +1,5 @@ +--- +"@justeattakeaway/pie-toast": patch +--- + +[Added] - Missing package dependencies diff --git a/packages/components/pie-toast/package.json b/packages/components/pie-toast/package.json index fa5de1a09f..4e39f201e0 100644 --- a/packages/components/pie-toast/package.json +++ b/packages/components/pie-toast/package.json @@ -40,6 +40,9 @@ "cem-plugin-module-file-extensions": "0.0.5" }, "dependencies": { + "@justeattakeaway/pie-button": "0.48.0", + "@justeattakeaway/pie-icon-button": "0.28.9", + "@justeattakeaway/pie-icons-webc": "0.24.2", "@justeattakeaway/pie-webc-core": "0.24.0" }, "volta": { diff --git a/packages/components/pie-toast/src/defs.ts b/packages/components/pie-toast/src/defs.ts index 65e34c6147..73684b875b 100644 --- a/packages/components/pie-toast/src/defs.ts +++ b/packages/components/pie-toast/src/defs.ts @@ -1,7 +1,5 @@ -import { type ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core'; +import { type ComponentDefaultProps } from '@justeattakeaway/pie-webc-core'; -// TODO - please remove the eslint disable comment below when you add props to this interface -// eslint-disable-next-line @typescript-eslint/no-empty-interface export type ActionProps = { /** * The text to display inside the button. @@ -61,7 +59,7 @@ export const ON_TOAST_OPEN_EVENT = `${componentSelector}-open`; */ export const ON_TOAST_LEADING_ACTION_CLICK_EVENT = `${componentSelector}-leading-action-click`; -export type DefaultProps = ComponentDefaultPropsGeneric; +export type DefaultProps = ComponentDefaultProps>; export const defaultProps: DefaultProps = { isOpen: true, diff --git a/yarn.lock b/yarn.lock index 7f52de114d..28f8fd1cd8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5820,7 +5820,10 @@ __metadata: resolution: "@justeattakeaway/pie-toast@workspace:packages/components/pie-toast" dependencies: "@custom-elements-manifest/analyzer": 0.9.0 + "@justeattakeaway/pie-button": 0.48.0 "@justeattakeaway/pie-components-config": 0.16.0 + "@justeattakeaway/pie-icon-button": 0.28.9 + "@justeattakeaway/pie-icons-webc": 0.24.2 "@justeattakeaway/pie-webc-core": 0.24.0 cem-plugin-module-file-extensions: 0.0.5 languageName: unknown