Skip to content

Commit

Permalink
Merge branch 'main' into dsw-000-snyk-policy-file
Browse files Browse the repository at this point in the history
  • Loading branch information
dandel10n authored Jul 31, 2024
2 parents 91d6a11 + 55857da commit 3481abe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-spoons-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@justeattakeaway/pie-toast": patch
---

[Added] - Missing package dependencies
3 changes: 3 additions & 0 deletions packages/components/pie-toast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 2 additions & 4 deletions packages/components/pie-toast/src/defs.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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<ToastProps, 'isOpen' | 'isDismissible' | 'isMultiline'>;
export type DefaultProps = ComponentDefaultProps<ToastProps, keyof Omit<ToastProps, 'leadingAction' | 'message'>>;

export const defaultProps: DefaultProps = {
isOpen: true,
Expand Down
3 changes: 3 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3481abe

Please sign in to comment.