Skip to content
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
},
"devDependencies": {
"@changesets/cli": "^2.23.0",
"@parcel/packager-ts": "2.13.2",
"@parcel/transformer-typescript-types": "2.13.2",
"@parcel/packager-ts": "latest",
"@parcel/transformer-typescript-types": "latest",
Comment on lines +22 to +23
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Revert "latest" versions to fixed versions

Using "latest" for @parcel/packager-ts and @parcel/transformer-typescript-types contradicts the PR objective of implementing fixed versions for stability. The "latest" tag can lead to unexpected breaking changes during builds.

Apply this diff to maintain fixed versions:

-    "@parcel/packager-ts": "latest",
-    "@parcel/transformer-typescript-types": "latest",
+    "@parcel/packager-ts": "2.13.2",
+    "@parcel/transformer-typescript-types": "2.13.2",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@parcel/packager-ts": "latest",
"@parcel/transformer-typescript-types": "latest",
"@parcel/packager-ts": "2.13.2",
"@parcel/transformer-typescript-types": "2.13.2",

"@types/node": "catalog:",
"eslint": "catalog:lint",
"husky": "catalog:lint",
Expand Down
7 changes: 7 additions & 0 deletions packages/authentication/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @baseapp-frontend/authentication

## 4.0.6

### Patch Changes

- Updated dependencies
- @baseapp-frontend/utils@3.0.5

## 4.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@baseapp-frontend/authentication",
"description": "Authentication modules.",
"version": "4.0.5",
"version": "4.0.6",
"main": "./index.ts",
"types": "dist/index.d.ts",
"sideEffects": false,
Expand Down
10 changes: 10 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @baseapp-frontend/components

## 0.0.37

### Patch Changes

- Updated dependencies
- @baseapp-frontend/utils@3.0.5
- @baseapp-frontend/authentication@4.0.6
- @baseapp-frontend/design-system@0.0.25
- @baseapp-frontend/graphql@1.1.15

## 0.0.36

### Patch Changes
Expand Down
7 changes: 4 additions & 3 deletions packages/components/__mocks__/eventEmitterMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ export class EventEmitter {
if (!this.events[event]) {
this.events[event] = []
}
this.events[event].push(listener)
this.events[event]?.push(listener)
}

emit(event: string, ...args: any[]) {
if (this.events[event]) {
this.events[event].forEach((listener) => listener(...args))
this.events[event]?.forEach((listener) => listener(...args))
}
}

off(event: string, listener: Function) {
if (this.events[event]) {
this.events[event] = this.events[event].filter((l) => l !== listener)
// @ts-ignore
this.events[event] = this.events[event]?.filter((l) => l !== listener)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ UserApi.getUser = async <TUser extends Partial<User>>() =>
email: 'mocked.user@example.com',
}) as TUser

export default {
const meta: Meta = {
title: '@baseapp-frontend | components/Navigation/AccountPopover',
component: AccountPopover,
args: {
Expand All @@ -39,7 +39,9 @@ export default {
return <Story />
},
],
} as Meta
}

export default meta

type Story = StoryObj<AccountPopoverProps>

Expand Down
7 changes: 6 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@baseapp-frontend/components",
"description": "BaseApp components modules such as comments, notifications, messages, and more.",
"version": "0.0.36",
"version": "0.0.37",
"main": "./index.ts",
"types": "dist/index.d.ts",
"sideEffects": false,
Expand All @@ -21,10 +21,15 @@
"test:unit": "jest --config ./jest.config.ts"
},
"dependencies": {
"@emotion/cache": "catalog:material-ui",
"@emotion/react": "catalog:material-ui",
"@emotion/styled": "catalog:material-ui",
"@hookform/resolvers": "catalog:",
"@mui/icons-material": "catalog:material-ui",
"@mui/lab": "catalog:material-ui",
"@mui/material": "catalog:material-ui",
"@mui/system": "catalog:material-ui",
"@mui/x-date-pickers": "catalog:material-ui",
"@storybook/react": "catalog:storybook",
"@tanstack/react-query": "catalog:",
"framer-motion": "^11.5.4",
Expand Down
5 changes: 4 additions & 1 deletion packages/components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"extends": "@baseapp-frontend/tsconfig/lib.json",
"compilerOptions": {
"types": ["cypress", "@testing-library/cypress", "cypress-plugin-steps", "node"],
"outDir": "./dist"
"outDir": "./dist",
"paths": {
"@mui/system": ["./node_modules/@mui/system"]
}
},
"references": [
{
Expand Down
7 changes: 7 additions & 0 deletions packages/design-system/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @baseapp-frontend/design-system

## 0.0.25

### Patch Changes

- Updated dependencies
- @baseapp-frontend/utils@3.0.5

## 0.0.24

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import { ComponentType } from 'react'

import { Meta, StoryObj } from '@storybook/react'

import Logo from '..'
import { BaseAppLogoCondensed } from '../../icons'
import { LogoProps } from '../types'

export default {
const meta: Meta<LogoProps> = {
title: '@baseapp-frontend | designSystem/General/Logo',
component: Logo,
} as Meta<LogoProps>
component: Logo as ComponentType<LogoProps>,
}

export default meta

type Story = StoryObj<LogoProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import { Meta, StoryObj } from '@storybook/react'
import Popover from '..'
import { MenuPopoverProps } from '../types'

export default {
const meta: Meta<MenuPopoverProps> = {
title: '@baseapp-frontend | designSystem/Popover/Popover',
component: Popover,
} as Meta<MenuPopoverProps>
}

export default meta

type Story = StoryObj<MenuPopoverProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import { Meta, StoryObj } from '@storybook/react'
import Scrollbar from '..'
import { ScrollbarProps } from '../types'

export default {
const meta: Meta<ScrollbarProps> = {
title: '@baseapp-frontend | designSystem/General/Scrollbar',
component: Scrollbar,
} as Meta<ScrollbarProps>
}

export default meta

type Story = StoryObj<ScrollbarProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import Image from 'next/image'
import AvatarWithPlaceholder from '..'
import { AvatarWithPlaceholderProps } from '../types'

export default {
const meta: Meta<AvatarWithPlaceholderProps> = {
title: '@baseapp-frontend | designSystem/Avatars/AvatarWithPlaceholder',
component: AvatarWithPlaceholder,
} as Meta<AvatarWithPlaceholderProps>
}

export default meta

type Story = StoryObj<AvatarWithPlaceholderProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import Image from 'next/image'
import ClickableAvatar from '..'
import { ClickableAvatarProps } from '../types'

export default {
const meta: Meta<ClickableAvatarProps> = {
title: '@baseapp-frontend | designSystem/Avatars/ClickableAvatar',
component: ClickableAvatar,
} as Meta<ClickableAvatarProps>
}

export default meta

type Story = StoryObj<ClickableAvatarProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import { Meta, StoryObj } from '@storybook/react'
import IconButton from '..'
import { IconButtonProps } from '../types'

export default {
const meta: Meta<IconButtonProps> = {
title: '@baseapp-frontend | designSystem/Buttons/IconButton',
component: IconButton,
} as Meta<IconButtonProps>
}

export default meta

type Story = StoryObj<IconButtonProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import { Meta, StoryObj } from '@storybook/react'
import ConfirmDialog from '..'
import { ConfirmDialogProps } from '../types'

export default {
const meta: Meta<ConfirmDialogProps> = {
title: '@baseapp-frontend | designSystem/Dialogs/ConfirmDialog',
component: ConfirmDialog,
} as Meta<ConfirmDialogProps>
}

export default meta

type Story = StoryObj<ConfirmDialogProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import { Meta, StoryObj } from '@storybook/react'
import Dialog from '..'
import { DialogProps } from '../types'

export default {
const meta: Meta<DialogProps> = {
title: '@baseapp-frontend | designSystem/Dialogs/BaseDialog',
component: Dialog,
} as Meta<DialogProps>
}

export default meta

type Story = StoryObj<DialogProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { Meta, StoryObj } from '@storybook/react'
import LoadingState from '..'
import { LoadingStateProps } from '../types'

export default {
const meta: Meta<LoadingStateProps> = {
title: '@baseapp-frontend | designSystem/Displays/LoadingState',
component: LoadingState,
} as Meta<LoadingStateProps>
}

export default meta

type Story = StoryObj<LoadingStateProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import { Meta, StoryObj } from '@storybook/react'
import SwipeableDrawer from '..'
import { SwipeableDrawerProps } from '../types'

export default {
const meta: Meta<SwipeableDrawerProps> = {
title: '@baseapp-frontend | designSystem/Drawers/SwipeableDrawer',
component: SwipeableDrawer,
} as Meta<SwipeableDrawerProps>
}

export default meta

type Story = StoryObj<SwipeableDrawerProps>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { WithControllerProps } from '@baseapp-frontend/utils'

import { Meta, StoryObj } from '@storybook/react'

import Searchbar from '..'
import { SearchbarProps } from '../types'

export default {
const meta: Meta<WithControllerProps<SearchbarProps>> = {
title: '@baseapp-frontend | designSystem/Searchbar',
component: Searchbar,
tags: ['autodocs'],
Expand All @@ -27,7 +29,9 @@ export default {
},
},
},
} as Meta<SearchbarProps>
}

export default meta

type Story = StoryObj<SearchbarProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { Meta, StoryObj } from '@storybook/react'
import SocialTextField from '..'
import { SocialTextFieldProps } from '../types'

export default {
const meta: Meta<SocialTextFieldProps> = {
title: '@baseapp-frontend | designSystem/Inputs/SocialTextField',
component: SocialTextField,
} as Meta<SocialTextFieldProps>
}

export default meta

type Story = StoryObj<SocialTextFieldProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { Meta, StoryObj } from '@storybook/react'
import TextField from '..'
import { TextFieldProps } from '../types'

export default {
const meta: Meta<TextFieldProps> = {
title: '@baseapp-frontend | designSystem/Inputs/TextField',
component: TextField,
} as Meta<TextFieldProps>
}

export default meta

type Story = StoryObj<TextFieldProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { Meta, StoryObj } from '@storybook/react'
import TextareaField from '..'
import { TextFieldProps } from '../../TextField/types'

export default {
const meta: Meta<TextFieldProps> = {
title: '@baseapp-frontend | designSystem/Inputs/TextareaField',
component: TextareaField,
} as Meta<TextFieldProps>
}

export default meta

type Story = StoryObj<TextFieldProps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { Meta, StoryObj } from '@storybook/react'
import TypographyWithEllipsis from '..'
import { TypographyWithEllipsisProps } from '../types'

export default {
const meta: Meta<TypographyWithEllipsisProps> = {
title: '@baseapp-frontend | designSystem/Typographies/TypographyWithEllipsis',
component: TypographyWithEllipsis,
} as Meta<TypographyWithEllipsisProps>
}

export default meta

type Story = StoryObj<TypographyWithEllipsisProps>

Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@baseapp-frontend/design-system",
"description": "Design System components and configurations.",
"version": "0.0.24",
"version": "0.0.25",
"main": "./index.ts",
"types": "dist/index.d.ts",
"sideEffects": false,
Expand Down
Loading
Loading