Skip to content

Commit

Permalink
feat: bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanyawat-Arsaga committed Jul 5, 2024
1 parent 665504d commit 14b1017
Show file tree
Hide file tree
Showing 63 changed files with 25,116 additions and 21,837 deletions.
36 changes: 18 additions & 18 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@
"strapi": "strapi"
},
"dependencies": {
"@strapi/plugin-content-type-builder": "^4.22.1",
"@strapi/plugin-email": "^4.22.1",
"@strapi/plugin-graphql": "^4.22.1",
"@strapi/plugin-i18n": "^4.22.1",
"@strapi/plugin-upload": "^4.22.1",
"@strapi/plugin-users-permissions": "^4.22.1",
"@strapi/strapi": "^4.22.1",
"@strapi/typescript-utils": "^4.22.1",
"@strapi/utils": "^4.22.1",
"@strapi/plugin-content-type-builder": "^4.25.2",
"@strapi/plugin-email": "^4.25.2",
"@strapi/plugin-graphql": "^4.25.2",
"@strapi/plugin-i18n": "^4.25.2",
"@strapi/plugin-upload": "^4.25.2",
"@strapi/plugin-users-permissions": "^4.25.2",
"@strapi/strapi": "^4.25.2",
"@strapi/typescript-utils": "^4.25.2",
"@strapi/utils": "^4.25.2",
"better-sqlite3": "9.4.5",
"domain-browser": "^5.7.0",
"dotenv": "^16.4.5",
"find-config": "^1.0.0",
"pg": "^8.11.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"pg": "^8.12.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^5.2.0",
"strapi-plugin-config-sync": "^1.2.3",
"strapi-plugin-config-sync": "^1.2.5",
"strapi-plugin-local-image-sharp": "^1.7.0",
"strapi-plugin-slugify": "^2.3.8",
"styled-components": "^5.2.1"
"styled-components": "~5.2.1"
},
"author": {
"name": "A Strapi developer"
Expand All @@ -44,11 +44,11 @@
},
"license": "MIT",
"devDependencies": {
"@codemirror/autocomplete": "^6.15.0",
"@codemirror/lint": "^6.5.0",
"@codemirror/autocomplete": "^6.17.0",
"@codemirror/lint": "^6.8.1",
"@codemirror/search": "^6.5.6",
"@codemirror/theme-one-dark": "^6.1.2",
"@reduxjs/toolkit": "^2.2.3",
"@uiw/codemirror-extensions-basic-setup": "^4.21.25"
"@reduxjs/toolkit": "^2.2.6",
"@uiw/codemirror-extensions-basic-setup": "^4.23.0"
}
}
40 changes: 20 additions & 20 deletions apps/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,37 @@
"fix:all": "pnpm lint:fix && pnpm format:fix"
},
"dependencies": {
"@ark-ui/react": "^2.2.3",
"@astrojs/check": "^0.6.0",
"@astrojs/netlify": "^5.2.1",
"@astrojs/react": "^3.3.4",
"@ark-ui/react": "^3.3.0",
"@astrojs/check": "^0.7.0",
"@astrojs/netlify": "^5.3.5",
"@astrojs/react": "^3.6.0",
"@astropub/md": "^0.4.0",
"@types/react": "^18.3.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.8.3",
"astro": "^4.11.5",
"date-fns": "^3.6.0",
"eslint-plugin-astro": "^1.2.0",
"fets": "^0.8.0",
"eslint-plugin-astro": "^1.2.2",
"fets": "^0.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"react-markdown": "^9.0.1",
"remark-gfm": "^4.0.0",
"remark-textr": "^6.1.0",
"typescript": "^5.4.5"
"typescript": "^5.5.3"
},
"devDependencies": {
"@pandabox/prettier-plugin": "^0.1.2",
"@pandacss/dev": "^0.39.1",
"@pandacss/eslint-plugin": "^0.1.4",
"@pandacss/studio": "^0.39.1",
"@pandacss/types": "0.39.1",
"@park-ui/panda-preset": "^0.37.0",
"@typescript-eslint/parser": "^7.9.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"@pandabox/prettier-plugin": "^0.1.3",
"@pandacss/dev": "^0.41.0",
"@pandacss/eslint-plugin": "^0.1.9",
"@pandacss/studio": "^0.41.0",
"@pandacss/types": "0.41.0",
"@park-ui/panda-preset": "^0.38.1",
"@typescript-eslint/parser": "^7.15.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"prettier": "^3.2.5",
"prettier-plugin-astro": "^0.13.0"
"eslint-plugin-react": "^7.34.3",
"prettier": "^3.3.2",
"prettier-plugin-astro": "^0.14.0"
}
}
6 changes: 3 additions & 3 deletions apps/astro/panda.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
accentColor: 'amber',
grayColor: 'neutral',
borderRadius: 'lg',
additionalColors: ["red", "blue", "orange", "green", "purple", "gray"]
additionalColors: ['red', 'blue', 'orange', 'green', 'purple', 'gray']
})
],

Expand All @@ -27,7 +27,7 @@ export default defineConfig({
// text: ['*']
badge: [
{
size: ["*"]
size: ['*']
}
]
},
Expand All @@ -38,7 +38,7 @@ export default defineConfig({
listStyleType: ['none', 'disc', 'decimal'],
fontWeight: ['bold'],
fontSize: ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'],
colorPalette: ["*"]
colorPalette: ['*']
}
}
]
Expand Down
8 changes: 5 additions & 3 deletions apps/astro/src/components/lib/Markdown.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Code } from 'astro:components';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
import remarkTextr from 'remark-textr';
import { Divider, styled } from 'styled-system/jsx';
import { Code } from '../ui/code';
import { Heading } from '../ui/heading';
import { Link } from '../ui/link';
import * as Table from '../ui/table';
Expand All @@ -20,7 +20,7 @@ export const Markdown = ({ content, assetsPrefix }: { content: string; assetsPre
h4: ({ node: _, ...props }) => <Heading as="h4" size="2xl" {...props} />,
h5: ({ node: _, ...props }) => <Heading as="h5" size="xl" fontWeight="bold" {...props} />,
h6: ({ node: _, ...props }) => <Heading as="h6" size="xl" {...props} />,
p: ({ node: _, ...props }) => <Text as="p" {...props} />,
p: ({ ref: _ref, node: _, ...props }) => <Text as="p" {...props} />,
strong: ({ ref: _, node: __, ...props }) => <Text as="span" fontWeight="bold" {...props} />,
a: ({ ref: _, node: __, ...props }) => <Link {...props} />,
hr: ({ ref: _, node: __, ...props }) => <Divider {...props} />,
Expand All @@ -40,7 +40,9 @@ export const Markdown = ({ content, assetsPrefix }: { content: string; assetsPre
<styled.ol pl="4" listStyleType="decimal" {...props} />
),
li: ({ ref: _, node: __, ...props }) => <styled.li {...props} />,
code: ({ ref: _, node: __, ...props }) => <Code {...props} />,
code: ({ ref: _, node: __, lang, ...props }) => (
<Code lang={lang as 'javascript'} code={props.children?.toString() ?? ''} />
),
table: ({ ref: _, node: __, ...props }) => <Table.Root {...props} />,
thead: ({ ref: _, node: __, ...props }) => <Table.Head {...props} />,
th: ({ ref: _, node: __, ...props }) => <Table.Header {...props} />,
Expand Down
53 changes: 39 additions & 14 deletions apps/astro/src/components/ui/accordion.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,46 @@
'use client'

import type { Assign } from '@ark-ui/react'
import { Accordion } from '@ark-ui/react/accordion'
import type { ComponentProps } from 'react'
import { styled } from 'styled-system/jsx'
import { accordion } from 'styled-system/recipes'
import { type AccordionVariantProps, accordion } from 'styled-system/recipes'
import type { JsxStyleProps } from 'styled-system/types'
import { createStyleContext } from '~/lib/create-style-context'

const { withProvider, withContext } = createStyleContext(accordion)

export const Root = withProvider(styled(Accordion.Root), 'root')
export const Item = withContext(styled(Accordion.Item), 'item')
export const ItemContent = withContext(styled(Accordion.ItemContent), 'itemContent')
export const ItemIndicator = withContext(styled(Accordion.ItemIndicator), 'itemIndicator')
export const ItemTrigger = withContext(styled(Accordion.ItemTrigger), 'itemTrigger')

export interface RootProps extends ComponentProps<typeof Root> {}
export interface ItemProps extends ComponentProps<typeof Item> {}
export interface ItemContentProps extends ComponentProps<typeof ItemContent> {}
export interface ItemIndicatorProps extends ComponentProps<typeof ItemIndicator> {}
export interface ItemTriggerProps extends ComponentProps<typeof ItemTrigger> {}
export interface RootProps
extends Assign<JsxStyleProps, Accordion.RootProps>,
AccordionVariantProps {}
export const Root = withProvider<HTMLDivElement, RootProps>(Accordion.Root, 'root')

export const ItemContent = withContext<
HTMLDivElement,
Assign<JsxStyleProps, Accordion.ItemContentProps>
>(Accordion.ItemContent, 'itemContent')

export const ItemIndicator = withContext<
HTMLDivElement,
Assign<JsxStyleProps, Accordion.ItemIndicatorProps>
>(Accordion.ItemIndicator, 'itemIndicator')

export const Item = withContext<HTMLDivElement, Assign<JsxStyleProps, Accordion.ItemProps>>(
Accordion.Item,
'item',
)

export const ItemTrigger = withContext<
HTMLButtonElement,
Assign<JsxStyleProps, Accordion.ItemTriggerProps>
>(Accordion.ItemTrigger, 'itemTrigger')

export {
AccordionContext as Context,
AccordionItemContext as ItemContext,
type AccordionContextProps as ContextProps,
type AccordionItemContextProps as ItemContextProps,
} from '@ark-ui/react/accordion'

export type {
AccordionFocusChangeDetails as FocusChangeDetails,
AccordionValueChangeDetails as ValueChangeDetails,
} from '@ark-ui/react/accordion'
39 changes: 25 additions & 14 deletions apps/astro/src/components/ui/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
'use client'

import { ark } from '@ark-ui/react/factory'
import type { ComponentProps } from 'react'
import { styled } from 'styled-system/jsx'
import { alert } from 'styled-system/recipes'
import type { Assign } from '@ark-ui/react'
import { type HTMLArkProps, ark } from '@ark-ui/react/factory'
import { type AlertVariantProps, alert } from 'styled-system/recipes'
import type { JsxStyleProps } from 'styled-system/types'
import { createStyleContext } from '~/lib/create-style-context'

const { withProvider, withContext } = createStyleContext(alert)

export const Root = withProvider(styled(ark.div), 'root')
export const Content = withContext(styled(ark.div), 'content')
export const Description = withContext(styled(ark.div), 'description')
export const Icon = withContext(styled(ark.svg), 'icon')
export const Title = withContext(styled(ark.h5), 'title')
export interface RootProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, AlertVariantProps {}
export const Root = withProvider<HTMLDivElement, RootProps>(ark.div, 'root')

export interface RootProps extends ComponentProps<typeof Root> {}
export interface ContentProps extends ComponentProps<typeof Content> {}
export interface DescriptionProps extends ComponentProps<typeof Description> {}
export interface IconProps extends ComponentProps<typeof Icon> {}
export interface TitleProps extends ComponentProps<typeof Title> {}
export const Content = withContext<HTMLDivElement, Assign<JsxStyleProps, HTMLArkProps<'div'>>>(
ark.div,
'content',
)

export const Description = withContext<HTMLDivElement, Assign<JsxStyleProps, HTMLArkProps<'div'>>>(
ark.div,
'description',
)

export const Icon = withContext<HTMLOrSVGElement, Assign<JsxStyleProps, HTMLArkProps<'svg'>>>(
ark.svg,
'icon',
)

export const Title = withContext<HTMLHeadingElement, Assign<JsxStyleProps, HTMLArkProps<'h5'>>>(
ark.h5,
'title',
)
11 changes: 7 additions & 4 deletions apps/astro/src/components/ui/avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { Avatar as ArkAvatar, type AvatarRootProps } from '@ark-ui/react/avatar'
import type { Assign } from '@ark-ui/react'
import { Avatar as ArkAvatar } from '@ark-ui/react/avatar'
import { forwardRef } from 'react'
import { css, cx } from 'styled-system/css'
import { splitCssProps } from 'styled-system/jsx'
import { avatar, type AvatarVariantProps } from 'styled-system/recipes'
import type { Assign, JsxStyleProps } from 'styled-system/types'
import { type AvatarVariantProps, avatar } from 'styled-system/recipes'
import type { JsxStyleProps } from 'styled-system/types'

export interface AvatarProps extends Assign<JsxStyleProps, AvatarRootProps>, AvatarVariantProps {
export interface AvatarProps
extends Assign<JsxStyleProps, ArkAvatar.RootProps>,
AvatarVariantProps {
name?: string
src?: string
}
Expand Down
9 changes: 5 additions & 4 deletions apps/astro/src/components/ui/badge.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { ark } from '@ark-ui/react/factory'
import type { ComponentProps } from 'react'
import type { Assign } from '@ark-ui/react'
import { type HTMLArkProps, ark } from '@ark-ui/react/factory'
import { styled } from 'styled-system/jsx'
import { badge } from 'styled-system/recipes'
import { type BadgeVariantProps, badge } from 'styled-system/recipes'
import type { JsxStyleProps } from 'styled-system/types'

export interface BadgeProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, BadgeVariantProps {}
export const Badge = styled(ark.div, badge)
export interface BadgeProps extends ComponentProps<typeof Badge> {}
11 changes: 7 additions & 4 deletions apps/astro/src/components/ui/button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ark } from '@ark-ui/react/factory'
import type { ComponentProps } from 'react'
import type { Assign } from '@ark-ui/react'
import { type HTMLArkProps, ark } from '@ark-ui/react/factory'
import { styled } from 'styled-system/jsx'
import { button } from 'styled-system/recipes'
import { type ButtonVariantProps, button } from 'styled-system/recipes'
import type { JsxStyleProps } from 'styled-system/types'

export interface ButtonProps
extends Assign<JsxStyleProps, HTMLArkProps<'button'>>,
ButtonVariantProps {}
export const Button = styled(ark.button, button)
export interface ButtonProps extends ComponentProps<typeof Button> {}
48 changes: 31 additions & 17 deletions apps/astro/src/components/ui/card.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
'use client'

import { ark } from '@ark-ui/react/factory'
import type { ComponentProps } from 'react'
import { styled } from 'styled-system/jsx'
import { card } from 'styled-system/recipes'
import type { Assign } from '@ark-ui/react'
import { type HTMLArkProps, ark } from '@ark-ui/react/factory'
import { type CardVariantProps, card } from 'styled-system/recipes'
import type { JsxStyleProps } from 'styled-system/types'
import { createStyleContext } from '~/lib/create-style-context'

const { withProvider, withContext } = createStyleContext(card)

export const Root = withProvider(styled(ark.div), 'root')
export const Body = withContext(styled(ark.div), 'body')
export const Description = withContext(styled(ark.div), 'description')
export const Footer = withContext(styled(ark.div), 'footer')
export const Header = withContext(styled(ark.div), 'header')
export const Title = withContext(styled(ark.h3), 'title')

export interface RootProps extends ComponentProps<typeof Root> {}
export interface BodyProps extends ComponentProps<typeof Body> {}
export interface DescriptionProps extends ComponentProps<typeof Description> {}
export interface FooterProps extends ComponentProps<typeof Footer> {}
export interface HeaderProps extends ComponentProps<typeof Header> {}
export interface TitleProps extends ComponentProps<typeof Title> {}
export interface RootProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, CardVariantProps {}
export const Root = withProvider<HTMLDivElement, RootProps>(ark.div, 'root')

export const Body = withContext<HTMLDivElement, Assign<JsxStyleProps, HTMLArkProps<'div'>>>(
ark.div,
'body',
)

export const Description = withContext<HTMLDivElement, Assign<JsxStyleProps, HTMLArkProps<'div'>>>(
ark.div,
'description',
)

export const Footer = withContext<HTMLDivElement, Assign<JsxStyleProps, HTMLArkProps<'div'>>>(
ark.footer,
'footer',
)

export const Header = withContext<HTMLDivElement, Assign<JsxStyleProps, HTMLArkProps<'div'>>>(
ark.div,
'header',
)

export const Title = withContext<HTMLHeadingElement, Assign<JsxStyleProps, HTMLArkProps<'h3'>>>(
ark.h3,
'title',
)
Loading

0 comments on commit 14b1017

Please sign in to comment.