Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: [frontend] support vision (#1518)

zxhlyh6b158272466b
diff --git a/web/app/components/app/chat/index.tsx b/web/app/components/app/chat/index.tsx
index fe8ff5fa43f..94eeb955c46 100644
--- a/web/app/components/app/chat/index.tsx
+++ b/web/app/components/app/chat/index.tsx
@@ -1,6 +1,7 @@
'use client'
import type { FC, ReactNode } from 'react'
import React, { useEffect, useLayoutEffect, useRef, useState } from 'react'
+import Textarea from 'rc-textarea'
import { useContext } from 'use-context-selector'
import cn from 'classnames'
import Recorder from 'js-audio-recorder'
@@ -10,9 +11,8 @@ import type { DisplayScene, FeedbackFunc, IChatItem, SubmitAnnotationFunc } from
import { TryToAskIcon, stopIcon } from './icon-component'
import Answer from './answer'
import Question from './question'
-import Tooltip from '@/app/components/base/tooltip'
+import TooltipPlus from '@/app/components/base/tooltip-plus'
import { ToastContext } from '@/app/components/base/toast'
-import AutoHeightTextarea from '@/app/components/base/auto-height-textarea'
import Button from '@/app/components/base/button'
import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
import VoiceInput from '@/app/components/base/voice-input'
@@ -20,6 +20,10 @@ import { Microphone01 } from '@/app/components/base/icons/src/vender/line/mediaA
import { Microphone01 as Microphone01Solid } from '@/app/components/base/icons/src/vender/solid/mediaAndDevices'
import { XCircle } from '@/app/components/base/icons/src/vender/solid/general'
import type { DataSet } from '@/models/datasets'
+import ChatImageUploader from '@/app/components/base/image-uploader/chat-image-uploader'
+import ImageList from '@/app/components/base/image-uploader/image-list'
+import { TransferMethod, type VisionFile, type VisionSettings } from '@/types/app'
+import { useImageFiles } from '@/app/components/base/image-uploader/hooks'
export type IChatProps = {
configElem?: React.ReactNode
@@ -37,7 +41,7 @@ export type IChatProps = {
onFeedback?: FeedbackFunc
onSubmitAnnotation?: SubmitAnnotationFunc
checkCanSend?: () => boolean
- onSend?: (message: string) => void
+ onSend?: (message: string, files: VisionFile[]) => void
displayScene?: DisplayScene
useCurrentUserAvatar?: boolean
isResponsing?: boolean
@@ -54,6 +58,7 @@ export type IChatProps = {
dataSets?: DataSet[]
isShowCitationHitInfo?: boolean
isShowPromptLog?: boolean
+ visionConfig?: VisionSettings
}
const Chat: FC<IChatProps> = ({
@@ -83,9 +88,19 @@ const Chat: FC<IChatProps> = ({
dataSets,
isShowCitationHitInfo,
isShowPromptLog,
+ visionConfig,
}) => {
const { t } = useTranslation()
const { notify } = useContext(ToastContext)
+ const {
+ files,
+ onUpload,
+ onRemove,
+ onReUpload,
+ onImageLinkLoadError,
+ onImageLinkLoadSuccess,
+ onClear,
+ } = useImageFiles()
const isUseInputMethod = useRef(false)
const [query, setQuery] = React.useState('')
@@ -114,9 +129,18 @@ const Chat: FC<IChatProps> = ({
const handleSend = () => {
if (!valid() || (checkCanSend && !checkCanSend()))
return
- onSend(query)
- if (!isResponsing)
- setQuery('')
+ onSend(query, files.filter(file => file.progress !== -1).map(fileItem => ({
+ type: 'image',
+ transfer_method: fileItem.type,
+ url: fileItem.url,
+ upload_file_id: fileItem.fileId,
+ })))
+ if (!files.find(item => item.type === TransferMethod.local_file && !item.fileId)) {
+ if (files.length)
+ onClear()
+ if (!isResponsing)
+ setQuery('')
+ }
}
const handleKeyUp = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
@@ -198,6 +222,8 @@ const Chat: FC<IChatProps> = ({
item={item}
isShowPromptLog={isShowPromptLog}
isResponsing={isResponsing}
+ // ['https://placekitten.com/360/360', 'https://placekitten.com/360/640']
+ imgSrcs={(item.message_files && item.message_files?.length > 0) ? item.message_files.map(item => item.url) : []}
/>
)
})}
@@ -246,18 +272,42 @@ const Chat: FC<IChatProps> = ({
</div>
</div>)
}
- <div className="relative">
- <AutoHeightTextarea
+ <div className='p-[5.5px] max-h-[150px] bg-white border-[1.5px] border-gray-200 rounded-xl overflow-y-auto'>
+ {
+ visionConfig?.enabled && (
+ <>
+ <div className='absolute bottom-2 left-2 flex items-center'>
+ <ChatImageUploader
+ settings={visionConfig}
+ onUpload={onUpload}
+ disabled={files.length >= visionConfig.number_limits}
+ />
+ <div className='mx-1 w-[1px] h-4 bg-black/5' />
+ </div>
+ <div className='pl-[52px]'>
+ <ImageList
+ list={files}
+ onRemove={onRemove}
+ onReUpload={onReUpload}
+ onImageLinkLoadSuccess={onImageLinkLoadSuccess}
+ onImageLinkLoadError={onImageLinkLoadError}
+ />
+ </div>
+ </>
+ )
+ }
+ <Textarea
+ className={`
+ block w-full px-2 pr-[118px] py-[7px] leading-5 max-h-none text-sm text-gray-700 outline-none appearance-none resize-none
+ ${visionConfig?.enabled && 'pl-12'}
+ `}
value={query}
onChange={handleContentChange}
onKeyUp={handleKeyUp}
onKeyDown={handleKeyDown}
- minHeight={48}
- autoFocus
- controlFocus={controlFocus}
- className={`${cn(s.textArea)} resize-none block w-full pl-3 bg-gray-50 border border-gray-200 rounded-md focus:outline-none sm:text-sm text-gray-700`}
+ autoSize
/>
- <div className="absolute top-0 right-2 flex items-center h-[48px]">
+ <div className="absolute bottom-2 right-2 flex items-center h-8">
<div className={`${s.count} mr-4 h-5 leading-5 text-sm bg-gray-50 text-gray-500`}>{query.trim().length}</div>
{
query
@@ -282,9 +332,8 @@ const Chat: FC<IChatProps> = ({
{isMobile
? sendBtn
: (
- <Tooltip
- selector='send-tip'
- htmlContent={
+ <TooltipPlus
+ popupContent={
<div>
<div>{t('common.operation.send')} Enter</div>
<div>{t('common.operation.lineBreak')} Shift Enter</div>
@@ -292,7 +341,7 @@ const Chat: FC<IChatProps> = ({
}
>
{sendBtn}
- </Tooltip>
+ </TooltipPlus>
)}
</div>
{
diff --git a/web/app/components/app/chat/question/index.tsx b/web/app/components/app/chat/question/index.tsx
index bca9cf8776d..b2748c447aa 100644
--- a/web/app/components/app/chat/question/index.tsx
+++ b/web/app/components/app/chat/question/index.tsx
@@ -8,14 +8,16 @@ import Log from '../log'
import MoreInfo from '../more-info'
import AppContext from '@/context/app-context'
import { Markdown } from '@/app/components/base/markdown'
+import ImageGallery from '@/app/components/base/image-gallery'
type IQuestionProps = Pick<IChatItem, 'id' | 'content' | 'more' | 'useCurrentUserAvatar'> & {
isShowPromptLog?: boolean
item: IChatItem
+ imgSrcs?: string[]
isResponsing?: boolean
}
-const Question: FC<IQuestionProps> = ({ id, content, more, useCurrentUserAvatar, isShowPromptLog, item, isResponsing }) => {
+const Question: FC<IQuestionProps> = ({ id, content, imgSrcs, more, useCurrentUserAvatar, isShowPromptLog, item, isResponsing }) => {
const { userProfile } = useContext(AppContext)
const userName = userProfile?.name
const ref = useRef(null)
@@ -23,6 +25,7 @@ const Question: FC<IQuestionProps> = ({ id, content, more, useCurrentUserAvatar,
return (
<div className={`flex items-start justify-end ${isShowPromptLog && 'first-of-type:pt-[14px]'}`} key={id} ref={ref}>
<div className={s.questionWrapWrap}>
+
<div className={`${s.question} group relative text-sm text-gray-900`}>
{
isShowPromptLog && !isResponsing && (
@@ -32,6 +35,9 @@ const Question: FC<IQuestionProps> = ({ id, content, more, useCurrentUserAvatar,
<div
className={'mr-2 py-3 px-4 bg-blue-500 rounded-tl-2xl rounded-b-2xl'}
>
+ {imgSrcs && imgSrcs.length > 0 && (
+ <ImageGallery srcs={imgSrcs} />
+ )}
<Markdown content={content} />
</div>
</div>
diff --git a/web/app/components/app/chat/type.ts b/web/app/components/app/chat/type.ts
index 2fbf78229ee..e848a36566b 100644
--- a/web/app/components/app/chat/type.ts
+++ b/web/app/components/app/chat/type.ts
@@ -1,5 +1,5 @@
import type { Annotation, MessageRating } from '@/models/log'
-
+import type { VisionFile } from '@/types/app'
export type MessageMore = {
time: string
tokens: number
@@ -67,6 +67,7 @@ export type IChatItem = {
useCurrentUserAvatar?: boolean
isOpeningStatement?: boolean
log?: { role: string; text: string }[]
+ message_files?: VisionFile[]
}
export type MessageEnd = {
diff --git a/web/app/components/app/configuration/config-model/index.tsx b/web/app/components/app/configuration/config-model/index.tsx
index 5b33000d6bb..70bc3a21493 100644
--- a/web/app/components/app/configuration/config-model/index.tsx
+++ b/web/app/components/app/configuration/config-model/index.tsx
@@ -33,7 +33,7 @@ export type IConfigModelProps = {
mode: string
modelId: string
provider: ProviderEnum
- setModel: (model: { id: string; provider: ProviderEnum; mode: ModelModeType }) => void
+ setModel: (model: { id: string; provider: ProviderEnum; mode: ModelModeType; features: string[] }) => void
completionParams: CompletionParams
onCompletionParamsChange: (newParams: CompletionParams) => void
disabled: boolean
@@ -121,7 +121,7 @@ const ConfigModel: FC<IConfigModelProps> = ({
return adjustedValue
}
- const handleSelectModel = ({ id, provider: nextProvider, mode }: { id: string; provider: ProviderEnum; mode: ModelModeType }) => {
+ const handleSelectModel = ({ id, provider: nextProvider, mode, features }: { id: string; provider: ProviderEnum; mode: ModelModeType; features: string[] }) => {
return async () => {
const prevParamsRule = getAllParams()[provider]?.[modelId]
@@ -129,6 +129,7 @@ const ConfigModel: FC<IConfigModelProps> = ({
id,
provider: nextProvider || ProviderEnum.openai,
mode,
+ features,
})
await ensureModelParamLoaded(nextProvider, id)
@@ -320,6 +321,7 @@ const ConfigModel: FC<IConfigModelProps> = ({
id: model.model_name,
provider: model.model_provider.provider_name as ProviderEnum,
mode: model.model_mode,
+ features: model.features,
})()
}}
/>
diff --git a/web/app/components/app/configuration/config-var/index.tsx b/web/app/components/app/configuration/config-var/index.tsx
index 37f066c3dac..31594e5616a 100644
--- a/web/app/components/app/configuration/config-var/index.tsx
+++ b/web/app/components/app/configuration/config-var/index.tsx
@@ -169,7 +169,7 @@ const ConfigVar: FC<IConfigVarProps> = ({ promptVariables, readonly, onPromptVar
}
title={
<div className='flex items-center'>
- <div className='ml-1 mr-1'>{t('appDebug.variableTitle')}</div>
+ <div className='mr-1'>{t('appDebug.variableTitle')}</div>
{!readonly && (
<Tooltip htmlContent={<div className='w-[180px]'>
{t('appDebug.variableTip')}
diff --git a/web/app/components/app/configuration/config-vision/index.tsx b/web/app/components/app/configuration/config-vision/index.tsx
new file mode 100644
index 00000000000..536717e952c
--- /dev/null
+++ b/web/app/components/app/configuration/config-vision/index.tsx
@@ -0,0 +1,60 @@
+'use client'
+import type { FC } from 'react'
+import React from 'react'
+import { useTranslation } from 'react-i18next'
+import { useContext } from 'use-context-selector'
+import Panel from '../base/feature-panel'
+import ParamConfig from './param-config'
+import { HelpCircle } from '@/app/components/base/icons/src/vender/line/general'
+import Tooltip from '@/app/components/base/tooltip'
+import Switch from '@/app/components/base/switch'
+import { Eye } from '@/app/components/base/icons/src/vender/solid/general'
+import ConfigContext from '@/context/debug-configuration'
+
+const ConfigVision: FC = () => {
+ const { t } = useTranslation()
+ const {
+ isShowVisionConfig,
+ visionConfig,
+ setVisionConfig,
+ } = useContext(ConfigContext)
+
+ if (!isShowVisionConfig)
+ return null
+
+ return (<>
+ <Panel
+ className="mt-4"
+ headerIcon={
+ <Eye className='w-4 h-4 text-[#6938EF]'/>
+ }
+ title={
+ <div className='flex items-center'>
+ <div className='mr-1'>{t('appDebug.vision.name')}</div>
+ <Tooltip htmlContent={<div className='w-[180px]' >
+ {t('appDebug.vision.description')}
+ </div>} selector='config-vision-tooltip'>
+ <HelpCircle className='w-[14px] h-[14px] text-gray-400' />
+ </Tooltip>
+ </div>
+ }
+ headerRight={
+ <div className='flex items-center'>
+ <ParamConfig />
+ <div className='ml-4 mr-3 w-[1px] h-3.5 bg-gray-200'></div>
+ <Switch
+ defaultValue={visionConfig.enabled}
+ onChange={value => setVisionConfig({
+ ...visionConfig,
+ enabled: value,
+ })}
+ size='md'
+ />
+ </div>
+ }
+ noBodySpacing
+ />
+ </>
+ )
+}
+export default React.memo(ConfigVision)
diff --git a/web/app/components/app/configuration/config-vision/param-config-content.tsx b/web/app/components/app/configuration/config-vision/param-config-content.tsx
new file mode 100644
index 00000000000..aca0b6b48c4
--- /dev/null
+++ b/web/app/components/app/configuration/config-vision/param-config-content.tsx
@@ -0,0 +1,132 @@
+'use client'
+import type { FC } from 'react'
+import React from 'react'
+import { useContext } from 'use-context-selector'
+import { useTranslation } from 'react-i18next'
+import RadioGroup from './radio-group'
+import ConfigContext from '@/context/debug-configuration'
+import { Resolution, TransferMethod } from '@/types/app'
+import ParamItem from '@/app/components/base/param-item'
+import Tooltip from '@/app/components/base/tooltip'
+import { HelpCircle } from '@/app/components/base/icons/src/vender/line/general'
+
+const MIN = 1
+const MAX = 6
+const ParamConfigContent: FC = () => {
+ const { t } = useTranslation()
+
+ const {
+ visionConfig,
+ setVisionConfig,
+ } = useContext(ConfigContext)
+
+ const transferMethod = (() => {
+ if (!visionConfig.transfer_methods || visionConfig.transfer_methods.length === 2)
+ return TransferMethod.all
+
+ return visionConfig.transfer_methods[0]
+ })()
+
+ return (
+ <div>
+ <div>
+ <div className='leading-6 text-base font-semibold text-gray-800'>{t('appDebug.vision.visionSettings.title')}</div>
+ <div className='pt-3 space-y-6'>
+ <div>
+ <div className='mb-2 flex items-center space-x-1'>
+ <div className='leading-[18px] text-[13px] font-semibold text-gray-800'>{t('appDebug.vision.visionSettings.resolution')}</div>
+ <Tooltip htmlContent={<div className='w-[180px]' >
+ {t('appDebug.vision.visionSettings.resolutionTooltip').split('\n').map(item => (
+ <div key={item}>{item}</div>
+ ))}
+ </div>} selector='config-resolution-tooltip'>
+ <HelpCircle className='w-[14px] h-[14px] text-gray-400' />
+ </Tooltip>
+ </div>
+ <RadioGroup
+ className='space-x-3'
+ options={[
+ {
+ label: t('appDebug.vision.visionSettings.high'),
+ value: Resolution.high,
+ },
+ {
+ label: t('appDebug.vision.visionSettings.low'),
+ value: Resolution.low,
+ },
+ ]}
+ value={visionConfig.detail}
+ onChange={(value: Resolution) => {
+ setVisionConfig({
+ ...visionConfig,
+ detail: value,
+ })
+ }}
+ />
+ </div>
+ <div>
+ <div className='mb-2 leading-[18px] text-[13px] font-semibold text-gray-800'>{t('appDebug.vision.visionSettings.uploadMethod')}</div>
+ <RadioGroup
+ className='space-x-3'
+ options={[
+ {
+ label: t('appDebug.vision.visionSettings.both'),
+ value: TransferMethod.all,
+ },
+ {
+ label: t('appDebug.vision.visionSettings.localUpload'),
+ value: TransferMethod.local_file,
+ },
+ {
+ label: t('appDebug.vision.visionSettings.url'),
+ value: TransferMethod.remote_url,
+ },
+ ]}
+ value={transferMethod}
+ onChange={(value: TransferMethod) => {
+ if (value === TransferMethod.all) {
+ setVisionConfig({
+ ...visionConfig,
+ transfer_methods: [TransferMethod.remote_url, TransferMethod.local_file],
+ })
+ return
+ }
+ setVisionConfig({
+ ...visionConfig,
+ transfer_methods: [value],
+ })
+ }}
+ />
+ </div>
+ <div>
+ <ParamItem
+ id='upload_limit'
+ className=''
+ name={t('appDebug.vision.visionSettings.uploadLimit')}
+ noTooltip
+ {...{
+ default: 2,
+ step: 1,
+ min: MIN,
+ max: MAX,
+ }}
+ value={visionConfig.number_limits}
+ enable={true}
+ onChange={(_key: string, value: number) => {
+ if (!value)
+ return
+
+ setVisionConfig({
+ ...visionConfig,
+ number_limits: value,
+ })
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ </div>
+ )
+}
+
+export default React.memo(ParamConfigContent)
diff --git a/web/app/components/app/configuration/config-vision/param-config.tsx b/web/app/components/app/configuration/config-vision/param-config.tsx
new file mode 100644
index 00000000000..eec816d7ed5
--- /dev/null
+++ b/web/app/components/app/configuration/config-vision/param-config.tsx
@@ -0,0 +1,41 @@
+'use client'
+import type { FC } from 'react'
+import { memo, useState } from 'react'
+import { useTranslation } from 'react-i18next'
+import cn from 'classnames'
+import ParamConfigContent from './param-config-content'
+import { Settings01 } from '@/app/components/base/icons/src/vender/line/general'
+import {
+ PortalToFollowElem,
+ PortalToFollowElemContent,
+ PortalToFollowElemTrigger,
+} from '@/app/components/base/portal-to-follow-elem'
+
+const ParamsConfig: FC = () => {
+ const { t } = useTranslation()
+ const [open, setOpen] = useState(false)
+
+ return (
+ <PortalToFollowElem
+ open={open}
+ onOpenChange={setOpen}
+ placement='bottom-end'
+ offset={{
+ mainAxis: 4,
+ }}
+ >
+ <PortalToFollowElemTrigger onClick={() => setOpen(v => !v)}>
+ <div className={cn('flex items-center rounded-md h-7 px-3 space-x-1 text-gray-700 cursor-pointer hover:bg-gray-200', open && 'bg-gray-200')}>
+ <Settings01 className='w-3.5 h-3.5 ' />
+ <div className='ml-1 leading-[18px] text-xs font-medium '>{t('appDebug.vision.settings')}</div>
+ </div>
+ </PortalToFollowElemTrigger>
+ <PortalToFollowElemContent style={{ zIndex: 50 }}>
+ <div className='w-[412px] p-4 bg-white rounded-lg border-[0.5px] border-gray-200 shadow-lg space-y-3'>
+ <ParamConfigContent />
+ </div>
+ </PortalToFollowElemContent>
+ </PortalToFollowElem>
+ )
+}
+export default memo(ParamsConfig)
diff --git a/web/app/components/app/configuration/config-vision/radio-group/index.tsx b/web/app/components/app/configuration/config-vision/radio-group/index.tsx
new file mode 100644
index 00000000000..77e4d021847
--- /dev/null
+++ b/web/app/components/app/configuration/config-vision/radio-group/index.tsx
@@ -0,0 +1,40 @@
+'use client'
+import type { FC } from 'react'
+import React from 'react'
+import cn from 'classnames'
+import s from './style.module.css'
+
+type OPTION = {
+ label: string
+ value: any
+}
+
+type Props = {
+ className?: string
+ options: OPTION[]
+ value: any
+ onChange: (value: any) => void
+}
+
+const RadioGroup: FC<Props> = ({
+ className = '',
+ options,
+ value,
+ onChange,
+}) => {
+ return (
+ <div className={cn(className, 'flex')}>
+ {options.map(item => (
+ <div
+ key={item.value}
+ className={cn(s.item, item.value === value && s.checked)}
+ onClick={() => onChange(item.value)}
+ >
+ <div className={s.radio}></div>
+ <div className='text-[13px] font-medium text-gray-900'>{item.label}</div>
+ </div>
+ ))}
+ </div>
+ )
+}
+export default React.memo(RadioGroup)
diff --git a/web/app/components/app/configuration/config-vision/radio-group/style.module.css b/web/app/components/app/configuration/config-vision/radio-group/style.module.css
new file mode 100644
index 00000000000..22c29c6a423
--- /dev/null
+++ b/web/app/components/app/configuration/config-vision/radio-group/style.module.css
@@ -0,0 +1,24 @@
+.item {
+ @apply grow flex items-center h-8 px-2.5 rounded-lg bg-gray-25 border border-gray-100 cursor-pointer space-x-2;
+}
+
+.item:hover {
+ background-color: #ffffff;
+ border-color: #B2CCFF;
+ box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
+}
+
+.item.checked {
+ background-color: #ffffff;
+ border-color: #528BFF;
+ box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.06), 0px 1px 3px 0px rgba(16, 24, 40, 0.10);
+}
+
+.radio {
+ @apply w-4 h-4 border-[2px] border-gray-200 rounded-full;
+}
+
+.item.checked .radio {
+ border-width: 5px;
+ border-color: #155eef;
+}
\ No newline at end of file
diff --git a/web/app/components/app/configuration/config/index.tsx b/web/app/components/app/configuration/config/index.tsx
index 5901feb78f1..60ef9deed03 100644
--- a/web/app/components/app/configuration/config/index.tsx
+++ b/web/app/components/app/configuration/config/index.tsx
@@ -10,6 +10,7 @@ import ChatGroup from '../features/chat-group'
import ExperienceEnchanceGroup from '../features/experience-enchance-group'
import Toolbox from '../toolbox'
import HistoryPanel from '../config-prompt/conversation-histroy/history-panel'
+import ConfigVision from '../config-vision'
import AddFeatureBtn from './feature/add-feature-btn'
import ChooseFeature from './feature/choose-feature'
import useFeature from './feature/use-feature'
@@ -193,6 +194,8 @@ const Config: FC = () => {
<Tools />
+ <ConfigVision />
+
{/* Chat History */}
{isAdvancedMode && isChatApp && modelModeType === ModelModeType.completion && (
<HistoryPanel
diff --git a/web/app/components/app/configuration/dataset-config/index.tsx b/web/app/components/app/configuration/dataset-config/index.tsx
index 7bb141db28b..e7d6ead7934 100644
--- a/web/app/components/app/configuration/dataset-config/index.tsx
+++ b/web/app/components/app/configuration/dataset-config/index.tsx
@@ -81,7 +81,7 @@ const DatasetConfig: FC = () => {
>
{hasData
? (
- <div className='flex flex-wrap mt-1 px-3 justify-between'>
+ <div className='flex flex-wrap mt-1 px-3 pb-3 justify-between'>
{dataSet.map(item => (
<CardItem
key={item.id}
diff --git a/web/app/components/app/configuration/debug/index.tsx b/web/app/components/app/configuration/debug/index.tsx
index 7272b6b4f2d..f6d79dc3408 100644
--- a/web/app/components/app/configuration/debug/index.tsx
+++ b/web/app/components/app/configuration/debug/index.tsx
@@ -1,5 +1,6 @@
'use client'
import type { FC } from 'react'
+import useSWR from 'swr'
import { useTranslation } from 'react-i18next'
import React, { useEffect, useRef, useState } from 'react'
import cn from 'classnames'
@@ -11,7 +12,7 @@ import HasNotSetAPIKEY from '../base/warning-mask/has-not-set-api'
import FormattingChanged from '../base/warning-mask/formatting-changed'
import GroupName from '../base/group-name'
import CannotQueryDataset from '../base/warning-mask/cannot-query-dataset'
-import { AppType, ModelModeType } from '@/types/app'
+import { AppType, ModelModeType, TransferMethod } from '@/types/app'
import PromptValuePanel, { replaceStringWithValues } from '@/app/components/app/configuration/prompt-value-panel'
import type { IChatItem } from '@/app/components/app/chat/type'
import Chat from '@/app/components/app/chat'
@@ -19,12 +20,13 @@ import ConfigContext from '@/context/debug-configuration'
import { ToastContext } from '@/app/components/base/toast'
import { fetchConvesationMessages, fetchSuggestedQuestions, sendChatMessage, sendCompletionMessage, stopChatMessageResponding } from '@/service/debug'
import Button from '@/app/components/base/button'
-import type { ModelConfig as BackendModelConfig } from '@/types/app'
+import type { ModelConfig as BackendModelConfig, VisionFile } from '@/types/app'
import { promptVariablesToUserInputsForm } from '@/utils/model-config'
import TextGeneration from '@/app/components/app/text-generate/item'
import { IS_CE_EDITION } from '@/config'
import { useProviderContext } from '@/context/provider-context'
import type { Inputs } from '@/models/debug'
+import { fetchFileUploadConfig } from '@/service/common'
type IDebug = {
hasSetAPIKEY: boolean
@@ -64,10 +66,12 @@ const Debug: FC<IDebug> = ({
hasSetContextVar,
datasetConfigs,
externalDataToolsConfig,
+ visionConfig,
} = useContext(ConfigContext)
const { speech2textDefaultModel } = useProviderContext()
const [chatList, setChatList, getChatList] = useGetState<IChatItem[]>([])
const chatListDomRef = useRef<HTMLDivElement>(null)
+ const { data: fileUploadConfigResponse } = useSWR({ url: '/files/upload' }, fetchFileUploadConfig)
useEffect(() => {
// scroll to bottom
if (chatListDomRef.current)
@@ -161,17 +165,28 @@ const Debug: FC<IDebug> = ({
logError(t('appDebug.errorMessage.valueOfVarRequired', { key: hasEmptyInput }))
return false
}
+
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
+ if (completionFiles.find(item => item.transfer_method === TransferMethod.local_file && !item.upload_file_id)) {
+ notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') })
+ return false
+ }
return !hasEmptyInput
}
const doShowSuggestion = isShowSuggestion && !isResponsing
const [suggestQuestions, setSuggestQuestions] = useState<string[]>([])
- const onSend = async (message: string) => {
+ const onSend = async (message: string, files?: VisionFile[]) => {
if (isResponsing) {
notify({ type: 'info', message: t('appDebug.errorMessage.waitForResponse') })
return false
}
+ if (files?.find(item => item.transfer_method === TransferMethod.local_file && !item.upload_file_id)) {
+ notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') })
+ return false
+ }
+
const postDatasets = dataSets.map(({ id }) => ({
dataset: {
enabled: true,
@@ -207,6 +222,9 @@ const Debug: FC<IDebug> = ({
completion_params: completionParams as any,
},
dataset_configs: datasetConfigs,
+ file_upload: {
+ image: visionConfig,
+ },
}
if (isAdvancedMode) {
@@ -214,19 +232,32 @@ const Debug: FC<IDebug> = ({
postModelConfig.completion_prompt_config = completionPromptConfig
}
- const data = {
+ const data: Record<string, any> = {
conversation_id: conversationId,
inputs,
query: message,
model_config: postModelConfig,
}
+ if (visionConfig.enabled && files && files?.length > 0) {
+ data.files = files.map((item) => {
+ if (item.transfer_method === TransferMethod.local_file) {
+ return {
+ ...item,
+ url: '',
+ }
+ }
+ return item
+ })
+ }
+
// qustion
const questionId = `question-${Date.now()}`
const questionItem = {
id: questionId,
content: message,
isAnswer: false,
+ message_files: files,
}
const placeholderAnswerId = `answer-placeholder-${Date.now()}`
@@ -347,6 +378,7 @@ const Debug: FC<IDebug> = ({
const [completionRes, setCompletionRes] = useState('')
const [messageId, setMessageId] = useState<string | null>(null)
+ const [completionFiles, setCompletionFiles] = useState<VisionFile[]>([])
const sendTextCompletion = async () => {
if (isResponsing) {
notify({ type: 'info', message: t('appDebug.errorMessage.waitForResponse') })
@@ -394,6 +426,9 @@ const Debug: FC<IDebug> = ({
completion_params: completionParams as any,
},
dataset_configs: datasetConfigs,
+ file_upload: {
+ image: visionConfig,
+ },
}
if (isAdvancedMode) {
@@ -401,11 +436,23 @@ const Debug: FC<IDebug> = ({
postModelConfig.completion_prompt_config = completionPromptConfig
}
- const data = {
+ const data: Record<string, any> = {
inputs,
model_config: postModelConfig,
}
+ if (visionConfig.enabled && completionFiles && completionFiles?.length > 0) {
+ data.files = completionFiles.map((item) => {
+ if (item.transfer_method === TransferMethod.local_file) {
+ return {
+ ...item,
+ url: '',
+ }
+ }
+ return item
+ })
+ }
+
setCompletionRes('')
setMessageId('')
let res: string[] = []
@@ -448,6 +495,11 @@ const Debug: FC<IDebug> = ({
appType={mode as AppType}
onSend={sendTextCompletion}
inputs={inputs}
+ visionConfig={{
+ ...visionConfig,
+ image_file_size_limit: fileUploadConfigResponse?.image_file_size_limit,
+ }}
+ onVisionFilesChange={setCompletionFiles}
/>
</div>
<div className="flex flex-col grow">
@@ -475,6 +527,10 @@ const Debug: FC<IDebug> = ({
isShowCitation={citationConfig.enabled}
isShowCitationHitInfo
isShowPromptLog
+ visionConfig={{
+ ...visionConfig,
+ image_file_size_limit: fileUploadConfigResponse?.image_file_size_limit,
+ }}
/>
</div>
</div>
diff --git a/web/app/components/app/configuration/index.tsx b/web/app/components/app/configuration/index.tsx
index 2ec07b0852f..bd40787518e 100644
--- a/web/app/components/app/configuration/index.tsx
+++ b/web/app/components/app/configuration/index.tsx
@@ -25,19 +25,19 @@ import type {
} from '@/models/debug'
import type { ExternalDataTool } from '@/models/common'
import type { DataSet } from '@/models/datasets'
-import type { ModelConfig as BackendModelConfig } from '@/types/app'
+import type { ModelConfig as BackendModelConfig, VisionSettings } from '@/types/app'
import ConfigContext from '@/context/debug-configuration'
import ConfigModel from '@/app/components/app/configuration/config-model'
import Config from '@/app/components/app/configuration/config'
import Debug from '@/app/components/app/configuration/debug'
import Confirm from '@/app/components/base/confirm'
-import { ProviderEnum } from '@/app/components/header/account-setting/model-page/declarations'
+import { ModelFeature, ProviderEnum } from '@/app/components/header/account-setting/model-page/declarations'
import { ToastContext } from '@/app/components/base/toast'
import { fetchAppDetail, updateAppModelConfig } from '@/service/apps'
import { promptVariablesToUserInputsForm, userInputsFormToPromptVariables } from '@/utils/model-config'
import { fetchDatasets } from '@/service/datasets'
import { useProviderContext } from '@/context/provider-context'
-import { AppType, ModelModeType } from '@/types/app'
+import { AppType, ModelModeType, Resolution, TransferMethod } from '@/types/app'
import { FlipBackward } from '@/app/components/base/icons/src/vender/line/arrows'
import { PromptMode } from '@/models/debug'
import { DEFAULT_CHAT_PROMPT_CONFIG, DEFAULT_COMPLETION_PROMPT_CONFIG } from '@/config'
@@ -198,6 +198,7 @@ const Configuration: FC = () => {
}
const { textGenerationModelList } = useProviderContext()
+ const currModel = textGenerationModelList.find(item => item.model_name === modelConfig.model_id)
const hasSetCustomAPIKEY = !!textGenerationModelList?.find(({ model_provider: provider }) => {
if (provider.provider_type === 'system' && provider.quota_type === 'paid')
return true
@@ -271,7 +272,8 @@ const Configuration: FC = () => {
id: modelId,
provider,
mode: modeMode,
- }: { id: string; provider: ProviderEnum; mode: ModelModeType }) => {
+ features,
+ }: { id: string; provider: ProviderEnum; mode: ModelModeType; features: string[] }) => {
if (isAdvancedMode) {
const appMode = mode
@@ -297,10 +299,31 @@ const Configuration: FC = () => {
})
setModelConfig(newModelConfig)
+ const supportVision = features && features.includes(ModelFeature.vision)
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
+ setVisionConfig({
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
+ ...visionConfig,
+ enabled: supportVision,
+ }, true)
+ }
+
+ const isShowVisionConfig = !!currModel?.features.includes(ModelFeature.vision)
+ const [visionConfig, doSetVisionConfig] = useState({
+ enabled: false,
+ number_limits: 2,
+ detail: Resolution.low,
+ transfer_methods: [TransferMethod.local_file],
+ })
+
+ const setVisionConfig = (config: VisionSettings, notNoticeFormattingChanged?: boolean) => {
+ doSetVisionConfig(config)
+ if (!notNoticeFormattingChanged)
+ setFormattingChanged(true)
}
useEffect(() => {
- fetchAppDetail({ url: '/apps', id: appId }).then(async (res) => {
+ fetchAppDetail({ url: '/apps', id: appId }).then(async (res: any) => {
setMode(res.mode)
const modelConfig = res.model_config
const promptMode = modelConfig.prompt_type === PromptMode.advanced ? PromptMode.advanced : PromptMode.simple
@@ -362,6 +385,10 @@ const Configuration: FC = () => {
},
completionParams: model.completion_params,
}
+
+ if (modelConfig.file_upload)
+ setVisionConfig(modelConfig.file_upload.image, true)
+
syncToPublishedConfig(config)
setPublishedConfig(config)
setDatasetConfigs(modelConfig.dataset_configs)
@@ -459,6 +486,9 @@ const Configuration: FC = () => {
completion_params: completionParams as any,
},
dataset_configs: datasetConfigs,
+ file_upload: {
+ image: visionConfig,
+ },
}
if (isAdvancedMode) {
@@ -557,6 +587,9 @@ const Configuration: FC = () => {
datasetConfigs,
setDatasetConfigs,
hasSetContextVar,
+ isShowVisionConfig,
+ visionConfig,
+ setVisionConfig,
}}
>
<>
diff --git a/web/app/components/app/configuration/prompt-value-panel/index.tsx b/web/app/components/app/configuration/prompt-value-panel/index.tsx
index 5d933d40d43..4617027f7f0 100644
--- a/web/app/components/app/configuration/prompt-value-panel/index.tsx
+++ b/web/app/components/app/configuration/prompt-value-panel/index.tsx
@@ -14,17 +14,23 @@ import { DEFAULT_VALUE_MAX_LEN } from '@/config'
import Button from '@/app/components/base/button'
import { ChevronDown, ChevronRight } from '@/app/components/base/icons/src/vender/line/arrows'
import Tooltip from '@/app/components/base/tooltip-plus'
+import TextGenerationImageUploader from '@/app/components/base/image-uploader/text-generation-image-uploader'
+import type { VisionFile, VisionSettings } from '@/types/app'
export type IPromptValuePanelProps = {
appType: AppType
onSend?: () => void
inputs: Inputs
+ visionConfig: VisionSettings
+ onVisionFilesChange: (files: VisionFile[]) => void
}
const PromptValuePanel: FC<IPromptValuePanelProps> = ({
appType,
onSend,
inputs,
+ visionConfig,
+ onVisionFilesChange,
}) => {
const { t } = useTranslation()
const { modelModeType, modelConfig, setInputs, mode, isAdvancedMode, completionPromptConfig, chatPromptConfig } = useContext(ConfigContext)
@@ -152,6 +158,24 @@ const PromptValuePanel: FC<IPromptValuePanelProps> = ({
<div className='text-xs text-gray-500'>{t('appDebug.inputs.noVar')}</div>
)
}
+ {
+ appType === AppType.completion && visionConfig?.enabled && (
+ <div className="mt-3 xl:flex justify-between">
+ <div className="mr-1 py-2 shrink-0 w-[120px] text-sm text-gray-900">Image Upload</div>
+ <div className='grow'>
+ <TextGenerationImageUploader
+ settings={visionConfig}
+ onFilesChange={files => onVisionFilesChange(files.filter(file => file.progress !== -1).map(fileItem => ({
+ type: 'image',
+ transfer_method: fileItem.type,
+ url: fileItem.url,
+ upload_file_id: fileItem.fileId,
+ })))}
+ />
+ </div>
+ </div>
+ )
+ }
</>
)
}
diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsx
index 5bbe4055b29..5c1287e6977 100644
--- a/web/app/components/app/log/list.tsx
+++ b/web/app/components/app/log/list.tsx
@@ -33,7 +33,6 @@ import { TONE_LIST } from '@/config'
import ModelIcon from '@/app/components/app/configuration/config-model/model-icon'
import ModelName from '@/app/components/app/configuration/config-model/model-name'
import ModelModeTypeLabel from '@/app/components/app/configuration/config-model/model-mode-type-label'
-import { ModelModeType } from '@/types/app'
type IConversationList = {
logs?: ChatConversationsResponse | CompletionConversationsResponse
@@ -81,6 +80,7 @@ const getFormattedChatList = (messages: ChatMessage[]) => {
content: item.inputs.query || item.inputs.default_input || item.query, // text generation: item.inputs.query; chat: item.query
isAnswer: false,
log: item.message as any,
+ message_files: item.message_files,
})
newChatList.push({
@@ -174,9 +174,12 @@ function DetailPanel<T extends ChatConversationFullDetailResponse | CompletionCo
const itemContent = item[Object.keys(item)[0]]
return {
label: itemContent.variable,
- value: varValues[itemContent.variable],
+ value: varValues[itemContent.variable] || detail.message?.inputs?.[itemContent.variable],
}
})
+ const message_files = (!isChatMode && detail.message.message_files && detail.message.message_files.length > 0)
+ ? detail.message.message_files.map((item: any) => item.url)
+ : []
const getParamValue = (param: string) => {
const value = detail?.model_config.model?.completion_params?.[param] || '-'
@@ -209,7 +212,7 @@ function DetailPanel<T extends ChatConversationFullDetailResponse | CompletionCo
<div className='text-[13px] text-gray-900 font-medium'>
<ModelName modelId={modelName} modelDisplayName={modelName} />
</div>
- <ModelModeTypeLabel type={ModelModeType.chat} isHighlight />
+ <ModelModeTypeLabel type={detail?.model_config.model.mode as any} isHighlight />
</div>
<Popover
position='br'
@@ -239,11 +242,15 @@ function DetailPanel<T extends ChatConversationFullDetailResponse | CompletionCo
</div>
{/* Panel Body */}
- {varList.length > 0 && (
+ {(varList.length > 0 || (!isChatMode && message_files.length > 0)) && (
<div className='px-6 pt-4 pb-2'>
- <VarPanel varList={varList} />
+ <VarPanel
+ varList={varList}
+ message_files={message_files}
+ />
</div>
)}
+
{!isChatMode
? <div className="px-2.5 py-4">
<Chat
diff --git a/web/app/components/app/log/var-panel.tsx b/web/app/components/app/log/var-panel.tsx
index 4f1ab623ebe..8a0e0764010 100644
--- a/web/app/components/app/log/var-panel.tsx
+++ b/web/app/components/app/log/var-panel.tsx
@@ -1,19 +1,24 @@
'use client'
import { useBoolean } from 'ahooks'
import type { FC } from 'react'
-import React from 'react'
+import React, { useState } from 'react'
import { useTranslation } from 'react-i18next'
import { ChevronDown, ChevronRight } from '@/app/components/base/icons/src/vender/line/arrows'
+import ImagePreview from '@/app/components/base/image-uploader/image-preview'
type Props = {
varList: { label: string; value: string }[]
+ message_files: string[]
}
const VarPanel: FC<Props> = ({
varList,
+ message_files,
}) => {
const { t } = useTranslation()
const [isCollapse, { toggle: toggleCollapse }] = useBoolean(false)
+ const [imagePreviewUrl, setImagePreviewUrl] = useState('')
+
return (
<div className='rounded-xl border border-color-indigo-100 bg-indigo-25'>
<div
@@ -30,7 +35,7 @@ const VarPanel: FC<Props> = ({
{!isCollapse && (
<div className='px-6 pb-3'>
{varList.map(({ label, value }, index) => (
- <div key={index} className='flex py-1 leading-[18px] text-[13px]'>
+ <div key={index} className='flex py-2 leading-[18px] text-[13px]'>
<div className='shrink-0 w-[128px] flex text-primary-600'>
<span className='shrink-0 opacity-60'>{'{{'}</span>
<span className='truncate'>{label}</span>
@@ -39,9 +44,32 @@ const VarPanel: FC<Props> = ({
<div className='pl-2.5 break-all'>{value}</div>
</div>
))}
+
+ {message_files.length > 0 && (
+ <div className='mt-1 flex py-2'>
+ <div className='shrink-0 w-[128px] leading-[18px] text-[13px] font-medium text-gray-700'>{t('appLog.detail.uploadImages')}</div>
+ <div className="flex space-x-2">
+ {message_files.map((url, index) => (
+ <div
+ key={index}
+ className="ml-2.5 w-16 h-16 rounded-lg bg-no-repeat bg-cover bg-center cursor-pointer"
+ style={{ backgroundImage: `url(${url})` }}
+ onClick={() => setImagePreviewUrl(url)}
+ />
+ ))}
+ </div>
+ </div>
+ )}
</div>
)}
-
+ {
+ imagePreviewUrl && (
+ <ImagePreview
+ url={imagePreviewUrl}
+ onCancel={() => setImagePreviewUrl('')}
+ />
+ )
+ }
</div>
)
}
diff --git a/web/app/components/base/auto-height-textarea/index.tsx b/web/app/components/base/auto-height-textarea/index.tsx
index 99e3cf471a5..02ad130b56d 100644
--- a/web/app/components/base/auto-height-textarea/index.tsx
+++ b/web/app/components/base/auto-height-textarea/index.tsx
@@ -6,6 +6,7 @@ type IProps = {
value: string
onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void
className?: string
+ wrapperClassName?: string
minHeight?: number
maxHeight?: number
autoFocus?: boolean
@@ -16,7 +17,7 @@ type IProps = {
const AutoHeightTextarea = forwardRef(
(
- { value, onChange, placeholder, className, minHeight = 36, maxHeight = 96, autoFocus, controlFocus, onKeyDown, onKeyUp }: IProps,
+ { value, onChange, placeholder, className, wrapperClassName, minHeight = 36, maxHeight = 96, autoFocus, controlFocus, onKeyDown, onKeyUp }: IProps,
outerRef: any,
) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
@@ -54,7 +55,7 @@ const AutoHeightTextarea = forwardRef(
}, [controlFocus])
return (
- <div className='relative'>
+ <div className={`relative ${wrapperClassName}`}>
<div className={cn(className, 'invisible whitespace-pre-wrap break-all overflow-y-auto')} style={{
minHeight,
maxHeight,
@@ -80,4 +81,6 @@ const AutoHeightTextarea = forwardRef(
},
)
+AutoHeightTextarea.displayName = 'AutoHeightTextarea'
+
export default AutoHeightTextarea
diff --git a/web/app/components/base/icons/assets/vender/line/general/link-03.svg b/web/app/components/base/icons/assets/vender/line/general/link-03.svg
new file mode 100644
index 00000000000..7749dab68b8
--- /dev/null
+++ b/web/app/components/base/icons/assets/vender/line/general/link-03.svg
@@ -0,0 +1,8 @@
+<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g id="link-03">
+<g id="Solid">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M9.01569 1.83378C9.7701 1.10515 10.7805 0.701975 11.8293 0.711089C12.8781 0.720202 13.8813 1.14088 14.623 1.88251C15.3646 2.62414 15.7853 3.62739 15.7944 4.67618C15.8035 5.72497 15.4003 6.73538 14.6717 7.48979L14.6636 7.49805L12.6637 9.49796C12.2581 9.90362 11.7701 10.2173 11.2327 10.4178C10.6953 10.6183 10.1211 10.7008 9.54897 10.6598C8.97686 10.6189 8.42025 10.4553 7.91689 10.1803C7.41354 9.90531 6.97522 9.52527 6.63165 9.06596C6.41112 8.77113 6.47134 8.35334 6.76618 8.1328C7.06101 7.91226 7.4788 7.97249 7.69934 8.26732C7.92838 8.57353 8.2206 8.82689 8.55617 9.01023C8.89174 9.19356 9.26281 9.30259 9.64422 9.3299C10.0256 9.35722 10.4085 9.30219 10.7667 9.16854C11.125 9.0349 11.4503 8.82576 11.7207 8.55532L13.7164 6.55956C14.1998 6.05705 14.4672 5.38513 14.4611 4.68777C14.455 3.98857 14.1746 3.31974 13.6802 2.82532C13.1857 2.3309 12.5169 2.05045 11.8177 2.04437C11.12 2.03831 10.4478 2.30591 9.94526 2.78967L8.80219 3.92609C8.54108 4.18568 8.11898 4.18445 7.85939 3.92334C7.5998 3.66223 7.60103 3.24012 7.86214 2.98053L9.0088 1.84053L9.01569 1.83378Z" fill="#667085"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M5.76493 5.58217C6.30234 5.3817 6.87657 5.29915 7.44869 5.34012C8.0208 5.3811 8.57741 5.54463 9.08077 5.81964C9.58412 6.09465 10.0224 6.47469 10.366 6.93399C10.5865 7.22882 10.5263 7.64662 10.2315 7.86715C9.93665 8.08769 9.51886 8.02746 9.29832 7.73263C9.06928 7.42643 8.77706 7.17307 8.44149 6.98973C8.10592 6.80639 7.73485 6.69737 7.35344 6.67005C6.97203 6.64274 6.58921 6.69777 6.23094 6.83141C5.87266 6.96506 5.54733 7.17419 5.27699 7.44463L3.28123 9.44039C2.79787 9.94291 2.5305 10.6148 2.53656 11.3122C2.54263 12.0114 2.82309 12.6802 3.31751 13.1746C3.81193 13.6691 4.48076 13.9495 5.17995 13.9556C5.87732 13.9616 6.54923 13.6943 7.05174 13.2109L8.18743 12.0752C8.44777 11.8149 8.86988 11.8149 9.13023 12.0752C9.39058 12.3356 9.39058 12.7577 9.13023 13.018L7.99023 14.158L7.98197 14.1662C7.22756 14.8948 6.21715 15.298 5.16837 15.2889C4.11958 15.2798 3.11633 14.8591 2.3747 14.1174C1.63307 13.3758 1.21239 12.3726 1.20328 11.3238C1.19416 10.275 1.59734 9.26458 2.32597 8.51017L2.33409 8.50191L4.33401 6.50199C4.33398 6.50202 4.33404 6.50196 4.33401 6.50199C4.7395 6.09638 5.22756 5.78262 5.76493 5.58217Z" fill="#667085"/>
+</g>
+</g>
+</svg>
diff --git a/web/app/components/base/icons/assets/vender/line/general/upload-03.svg b/web/app/components/base/icons/assets/vender/line/general/upload-03.svg
new file mode 100644
index 00000000000..3b4228b2e9f
--- /dev/null
+++ b/web/app/components/base/icons/assets/vender/line/general/upload-03.svg
@@ -0,0 +1,10 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g id="Left Icon" clip-path="url(#clip0_12728_40636)">
+<path id="Icon" d="M10.6654 8.00016L7.9987 5.3335M7.9987 5.3335L5.33203 8.00016M7.9987 5.3335V10.6668M14.6654 8.00016C14.6654 11.6821 11.6806 14.6668 7.9987 14.6668C4.3168 14.6668 1.33203 11.6821 1.33203 8.00016C1.33203 4.31826 4.3168 1.3335 7.9987 1.3335C11.6806 1.3335 14.6654 4.31826 14.6654 8.00016Z" stroke="#155EEF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
+</g>
+<defs>
+<clipPath id="clip0_12728_40636">
+<rect width="16" height="16" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/web/app/components/base/icons/assets/vender/line/images/image-plus.svg b/web/app/components/base/icons/assets/vender/line/images/image-plus.svg
new file mode 100644
index 00000000000..affaf19934e
--- /dev/null
+++ b/web/app/components/base/icons/assets/vender/line/images/image-plus.svg
@@ -0,0 +1,5 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g id="image-plus">
+<path id="Icon" d="M8.33333 2.00016H5.2C4.0799 2.00016 3.51984 2.00016 3.09202 2.21815C2.71569 2.4099 2.40973 2.71586 2.21799 3.09218C2 3.52001 2 4.08006 2 5.20016V10.8002C2 11.9203 2 12.4803 2.21799 12.9081C2.40973 13.2845 2.71569 13.5904 3.09202 13.7822C3.51984 14.0002 4.07989 14.0002 5.2 14.0002H11.3333C11.9533 14.0002 12.2633 14.0002 12.5176 13.932C13.2078 13.7471 13.7469 13.208 13.9319 12.5178C14 12.2635 14 11.9535 14 11.3335M12.6667 5.3335V1.3335M10.6667 3.3335H14.6667M7 5.66683C7 6.40321 6.40305 7.00016 5.66667 7.00016C4.93029 7.00016 4.33333 6.40321 4.33333 5.66683C4.33333 4.93045 4.93029 4.3335 5.66667 4.3335C6.40305 4.3335 7 4.93045 7 5.66683ZM9.99336 7.94559L4.3541 13.0722C4.03691 13.3605 3.87831 13.5047 3.86429 13.6296C3.85213 13.7379 3.89364 13.8453 3.97546 13.9172C4.06985 14.0002 4.28419 14.0002 4.71286 14.0002H10.9707C11.9301 14.0002 12.4098 14.0002 12.7866 13.839C13.2596 13.6366 13.6365 13.2598 13.8388 12.7868C14 12.41 14 11.9303 14 10.9708C14 10.648 14 10.4866 13.9647 10.3363C13.9204 10.1474 13.8353 9.9704 13.7155 9.81776C13.6202 9.6963 13.4941 9.59546 13.242 9.3938L11.3772 7.90194C11.1249 7.7001 10.9988 7.59919 10.8599 7.56357C10.7374 7.53218 10.6086 7.53624 10.4884 7.57529C10.352 7.61959 10.2324 7.72826 9.99336 7.94559Z" stroke="#667085" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+</g>
+</svg>
diff --git a/web/app/components/base/icons/assets/vender/solid/general/eye.svg b/web/app/components/base/icons/assets/vender/solid/general/eye.svg
new file mode 100644
index 00000000000..f75b90acbaf
--- /dev/null
+++ b/web/app/components/base/icons/assets/vender/solid/general/eye.svg
@@ -0,0 +1,4 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12Z" fill="black"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4C9.13833 4 6.80535 5.26472 5.07675 6.70743C3.3505 8.14818 2.16697 9.81429 1.57422 10.7528L1.55014 10.7908C1.43252 10.976 1.27981 11.2164 1.2026 11.5532C1.14027 11.8251 1.14027 12.1749 1.2026 12.4468C1.2798 12.7836 1.43252 13.024 1.55014 13.2092L1.57423 13.2472C2.16697 14.1857 3.3505 15.8518 5.07675 17.2926C6.80535 18.7353 9.13833 20 12 20C14.8617 20 17.1947 18.7353 18.9233 17.2926C20.6495 15.8518 21.833 14.1857 22.4258 13.2472L22.4499 13.2092C22.5675 13.024 22.7202 12.7837 22.7974 12.4468C22.8597 12.1749 22.8597 11.8251 22.7974 11.5532C22.7202 11.2163 22.5675 10.976 22.4499 10.7908L22.4258 10.7528C21.833 9.81429 20.6495 8.14818 18.9233 6.70743C17.1947 5.26472 14.8617 4 12 4ZM12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8Z" fill="black"/>
+</svg>
diff --git a/web/app/components/base/icons/src/vender/line/general/Link03.json b/web/app/components/base/icons/src/vender/line/general/Link03.json
new file mode 100644
index 00000000000..ccd608f6430
--- /dev/null
+++ b/web/app/components/base/icons/src/vender/line/general/Link03.json
@@ -0,0 +1,57 @@
+{
+ "icon": {
+ "type": "element",
+ "isRootNode": true,
+ "name": "svg",
+ "attributes": {
+ "width": "17",
+ "height": "16",
+ "viewBox": "0 0 17 16",
+ "fill": "none",
+ "xmlns": "http://www.w3.org/2000/svg"
+ },
+ "children": [
+ {
+ "type": "element",
+ "name": "g",
+ "attributes": {
+ "id": "link-03"
+ },
+ "children": [
+ {
+ "type": "element",
+ "name": "g",
+ "attributes": {
+ "id": "Solid"
+ },
+ "children": [
+ {
+ "type": "element",
+ "name": "path",
+ "attributes": {
+ "fill-rule": "evenodd",
+ "clip-rule": "evenodd",
+ "d": "M9.01569 1.83378C9.7701 1.10515 10.7805 0.701975 11.8293 0.711089C12.8781 0.720202 13.8813 1.14088 14.623 1.88251C15.3646 2.62414 15.7853 3.62739 15.7944 4.67618C15.8035 5.72497 15.4003 6.73538 14.6717 7.48979L14.6636 7.49805L12.6637 9.49796C12.2581 9.90362 11.7701 10.2173 11.2327 10.4178C10.6953 10.6183 10.1211 10.7008 9.54897 10.6598C8.97686 10.6189 8.42025 10.4553 7.91689 10.1803C7.41354 9.90531 6.97522 9.52527 6.63165 9.06596C6.41112 8.77113 6.47134 8.35334 6.76618 8.1328C7.06101 7.91226 7.4788 7.97249 7.69934 8.26732C7.92838 8.57353 8.2206 8.82689 8.55617 9.01023C8.89174 9.19356 9.26281 9.30259 9.64422 9.3299C10.0256 9.35722 10.4085 9.30219 10.7667 9.16854C11.125 9.0349 11.4503 8.82576 11.7207 8.55532L13.7164 6.55956C14.1998 6.05705 14.4672 5.38513 14.4611 4.68777C14.455 3.98857 14.1746 3.31974 13.6802 2.82532C13.1857 2.3309 12.5169 2.05045 11.8177 2.04437C11.12 2.03831 10.4478 2.30591 9.94526 2.78967L8.80219 3.92609C8.54108 4.18568 8.11898 4.18445 7.85939 3.92334C7.5998 3.66223 7.60103 3.24012 7.86214 2.98053L9.0088 1.84053L9.01569 1.83378Z",
+ "fill": "currentColor"
+ },
+ "children": []
+ },
+ {
+ "type": "element",
+ "name": "path",
+ "attributes": {
+ "fill-rule": "evenodd",
+ "clip-rule": "evenodd",
+ "d": "M5.76493 5.58217C6.30234 5.3817 6.87657 5.29915 7.44869 5.34012C8.0208 5.3811 8.57741 5.54463 9.08077 5.81964C9.58412 6.09465 10.0224 6.47469 10.366 6.93399C10.5865 7.22882 10.5263 7.64662 10.2315 7.86715C9.93665 8.08769 9.51886 8.02746 9.29832 7.73263C9.06928 7.42643 8.77706 7.17307 8.44149 6.98973C8.10592 6.80639 7.73485 6.69737 7.35344 6.67005C6.97203 6.64274 6.58921 6.69777 6.23094 6.83141C5.87266 6.96506 5.54733 7.17419 5.27699 7.44463L3.28123 9.44039C2.79787 9.94291 2.5305 10.6148 2.53656 11.3122C2.54263 12.0114 2.82309 12.6802 3.31751 13.1746C3.81193 13.6691 4.48076 13.9495 5.17995 13.9556C5.87732 13.9616 6.54923 13.6943 7.05174 13.2109L8.18743 12.0752C8.44777 11.8149 8.86988 11.8149 9.13023 12.0752C9.39058 12.3356 9.39058 12.7577 9.13023 13.018L7.99023 14.158L7.98197 14.1662C7.22756 14.8948 6.21715 15.298 5.16837 15.2889C4.11958 15.2798 3.11633 14.8591 2.3747 14.1174C1.63307 13.3758 1.21239 12.3726 1.20328 11.3238C1.19416 10.275 1.59734 9.26458 2.32597 8.51017L2.33409 8.50191L4.33401 6.50199C4.33398 6.50202 4.33404 6.50196 4.33401 6.50199C4.7395 6.09638 5.22756 5.78262 5.76493 5.58217Z",
+ "fill": "currentColor"
+ },
+ "children": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "name": "Link03"
+}
\ No newline at end of file
diff --git a/web/app/components/base/icons/src/vender/line/general/Link03.tsx b/web/app/components/base/icons/src/vender/line/general/Link03.tsx
new file mode 100644
index 00000000000..f447a1c37b4
--- /dev/null
+++ b/web/app/components/base/icons/src/vender/line/general/Link03.tsx
@@ -0,0 +1,16 @@
+// GENERATE BY script
+// DON NOT EDIT IT MANUALLY
+
+import * as React from 'react'
+import data from './Link03.json'
+import IconBase from '@/app/components/base/icons/IconBase'
+import type { IconBaseProps, IconData } from '@/app/components/base/icons/IconBase'
+
+const Icon = React.forwardRef<React.MutableRefObject<SVGElement>, Omit<IconBaseProps, 'data'>>((
+ props,
+ ref,
+) => <IconBase {...props} ref={ref} data={data as IconData} />)
+
+Icon.displayName = 'Link03'
+
+export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/general/Upload03.json b/web/app/components/base/icons/src/vender/line/general/Upload03.json
new file mode 100644
index 00000000000..c3490f3cff2
--- /dev/null
+++ b/web/app/components/base/icons/src/vender/line/general/Upload03.json
@@ -0,0 +1,66 @@
+{
+ "icon": {
+ "type": "element",
+ "isRootNode": true,
+ "name": "svg",
+ "attributes": {
+ "width": "16",
+ "height": "16",
+ "viewBox": "0 0 16 16",
+ "fill": "none",
+ "xmlns": "http://www.w3.org/2000/svg"
+ },
+ "children": [
+ {
+ "type": "element",
+ "name": "g",
+ "attributes": {
+ "id": "Left Icon",
+ "clip-path": "url(#clip0_12728_40636)"
+ },
+ "children": [
+ {
+ "type": "element",
+ "name": "path",
+ "attributes": {
+ "id": "Icon",
+ "d": "M10.6654 8.00016L7.9987 5.3335M7.9987 5.3335L5.33203 8.00016M7.9987 5.3335V10.6668M14.6654 8.00016C14.6654 11.6821 11.6806 14.6668 7.9987 14.6668C4.3168 14.6668 1.33203 11.6821 1.33203 8.00016C1.33203 4.31826 4.3168 1.3335 7.9987 1.3335C11.6806 1.3335 14.6654 4.31826 14.6654 8.00016Z",
+ "stroke": "currentColor",
+ "stroke-width": "1.5",
+ "stroke-linecap": "round",
+ "stroke-linejoin": "round"
+ },
+ "children": []
+ }
+ ]
+ },
+ {
+ "type": "element",
+ "name": "defs",
+ "attributes": {},
+ "children": [
+ {
+ "type": "element",
+ "name": "clipPath",
+ "attributes": {
+ "id": "clip0_12728_40636"
+ },
+ "children": [
+ {
+ "type": "element",
+ "name": "rect",
+ "attributes": {
+ "width": "16",
+ "height": "16",
+ "fill": "white"
+ },
+ "children": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "name": "Upload03"
+}
\ No newline at end of file
diff --git a/web/app/components/base/icons/src/vender/line/general/Upload03.tsx b/web/app/components/base/icons/src/vender/line/general/Upload03.tsx
new file mode 100644
index 00000000000..3acbead3402
--- /dev/null
+++ b/web/app/components/base/icons/src/vender/line/general/Upload03.tsx
@@ -0,0 +1,16 @@
+// GENERATE BY script
+// DON NOT EDIT IT MANUALLY
+
+import * as React from 'react'
+import data from './Upload03.json'
+import IconBase from '@/app/components/base/icons/IconBase'
+import type { IconBaseProps, IconData } from '@/app/components/base/icons/IconBase'
+
+const Icon = React.forwardRef<React.MutableRefObject<SVGElement>, Omit<IconBaseProps, 'data'>>((
+ props,
+ ref,
+) => <IconBase {...props} ref={ref} data={data as IconData} />)
+
+Icon.displayName = 'Upload03'
+
+export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/general/index.ts b/web/app/components/base/icons/src/vender/line/general/index.ts
index 51278f39b77..20f155d7335 100644
--- a/web/app/components/base/icons/src/vender/line/general/index.ts
+++ b/web/app/components/base/icons/src/vender/line/general/index.ts
@@ -7,6 +7,7 @@ export { default as Edit03 } from './Edit03'
export { default as Hash02 } from './Hash02'
export { default as HelpCircle } from './HelpCircle'
export { default as InfoCircle } from './InfoCircle'
+export { default as Link03 } from './Link03'
export { default as LinkExternal01 } from './LinkExternal01'
export { default as LinkExternal02 } from './LinkExternal02'
export { default as Loading02 } from './Loading02'
@@ -18,5 +19,6 @@ export { default as Settings01 } from './Settings01'
export { default as Settings04 } from './Settings04'
export { default as Target04 } from './Target04'
export { default as Trash03 } from './Trash03'
+export { default as Upload03 } from './Upload03'
export { default as XClose } from './XClose'
export { default as X } from './X'
diff --git a/web/app/components/base/icons/src/vender/line/images/ImagePlus.json b/web/app/components/base/icons/src/vender/line/images/ImagePlus.json
new file mode 100644
index 00000000000..127b04659ae
--- /dev/null
+++ b/web/app/components/base/icons/src/vender/line/images/ImagePlus.json
@@ -0,0 +1,39 @@
+{
+ "icon": {
+ "type": "element",
+ "isRootNode": true,
+ "name": "svg",
+ "attributes": {
+ "width": "16",
+ "height": "16",
+ "viewBox": "0 0 16 16",
+ "fill": "none",
+ "xmlns": "http://www.w3.org/2000/svg"
+ },
+ "children": [
+ {
+ "type": "element",
+ "name": "g",
+ "attributes": {
+ "id": "image-plus"
+ },
+ "children": [
+ {
+ "type": "element",
+ "name": "path",
+ "attributes": {
+ "id": "Icon",
+ "d": "M8.33333 2.00016H5.2C4.0799 2.00016 3.51984 2.00016 3.09202 2.21815C2.71569 2.4099 2.40973 2.71586 2.21799 3.09218C2 3.52001 2 4.08006 2 5.20016V10.8002C2 11.9203 2 12.4803 2.21799 12.9081C2.40973 13.2845 2.71569 13.5904 3.09202 13.7822C3.51984 14.0002 4.07989 14.0002 5.2 14.0002H11.3333C11.9533 14.0002 12.2633 14.0002 12.5176 13.932C13.2078 13.7471 13.7469 13.208 13.9319 12.5178C14 12.2635 14 11.9535 14 11.3335M12.6667 5.3335V1.3335M10.6667 3.3335H14.6667M7 5.66683C7 6.40321 6.40305 7.00016 5.66667 7.00016C4.93029 7.00016 4.33333 6.40321 4.33333 5.66683C4.33333 4.93045 4.93029 4.3335 5.66667 4.3335C6.40305 4.3335 7 4.93045 7 5.66683ZM9.99336 7.94559L4.3541 13.0722C4.03691 13.3605 3.87831 13.5047 3.86429 13.6296C3.85213 13.7379 3.89364 13.8453 3.97546 13.9172C4.06985 14.0002 4.28419 14.0002 4.71286 14.0002H10.9707C11.9301 14.0002 12.4098 14.0002 12.7866 13.839C13.2596 13.6366 13.6365 13.2598 13.8388 12.7868C14 12.41 14 11.9303 14 10.9708C14 10.648 14 10.4866 13.9647 10.3363C13.9204 10.1474 13.8353 9.9704 13.7155 9.81776C13.6202 9.6963 13.4941 9.59546 13.242 9.3938L11.3772 7.90194C11.1249 7.7001 10.9988 7.59919 10.8599 7.56357C10.7374 7.53218 10.6086 7.53624 10.4884 7.57529C10.352 7.61959 10.2324 7.72826 9.99336 7.94559Z",
+ "stroke": "currentColor",
+ "stroke-width": "1.25",
+ "stroke-linecap": "round",
+ "stroke-linejoin": "round"
+ },
+ "children": []
+ }
+ ]
+ }
+ ]
+ },
+ "name": "ImagePlus"
+}
\ No newline at end of file
diff --git a/web/app/components/base/icons/src/vender/line/images/ImagePlus.tsx b/web/app/components/base/icons/src/vender/line/images/ImagePlus.tsx
new file mode 100644
index 00000000000..ea1f67f2b55
--- /dev/null
+++ b/web/app/components/base/icons/src/vender/line/images/ImagePlus.tsx
@@ -0,0 +1,16 @@
+// GENERATE BY script
+// DON NOT EDIT IT MANUALLY
+
+import * as React from 'react'
+import data from './ImagePlus.json'
+import IconBase from '@/app/components/base/icons/IconBase'
+import type { IconBaseProps, IconData } from '@/app/components/base/icons/IconBase'
+
+const Icon = React.forwardRef<React.MutableRefObject<SVGElement>, Omit<IconBaseProps, 'data'>>((
+ props,
+ ref,
+) => <IconBase {...props} ref={ref} data={data as IconData} />)
+
+Icon.displayName = 'ImagePlus'
+
+export default Icon
diff --git a/web/app/components/base/icons/src/vender/line/images/index.ts b/web/app/components/base/icons/src/vender/line/images/index.ts
new file mode 100644
index 00000000000..b61eda9f120
--- /dev/null
+++ b/web/app/components/base/icons/src/vender/line/images/index.ts
@@ -0,0 +1 @@
+export { default as ImagePlus } from './ImagePlus'
diff --git a/web/app/components/base/icons/src/vender/solid/general/Eye.json b/web/app/components/base/icons/src/vender/solid/general/Eye.json
new file mode 100644
index 00000000000..a7e63484da7
--- /dev/null
+++ b/web/app/components/base/icons/src/vender/solid/general/Eye.json
@@ -0,0 +1,37 @@
+{
+ "icon": {
+ "type": "element",
+ "isRootNode": true,
+ "name": "svg",
+ "attributes": {
+ "width": "24",
+ "height": "24",
+ "viewBox": "0 0 24 24",
+ "fill": "none",
+ "xmlns": "http://www.w3.org/2000/svg"
+ },
+ "children": [
+ {
+ "type": "element",
+ "name": "path",
+ "attributes": {
+ "d": "M10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12Z",
+ "fill": "currentColor"
+ },
+ "children": []
+ },
+ {
+ "type": "element",
+ "name": "path",
+ "attributes": {
+ "fill-rule": "evenodd",
+ "clip-rule": "evenodd",
+ "d": "M12 4C9.13833 4 6.80535 5.26472 5.07675 6.70743C3.3505 8.14818 2.16697 9.81429 1.57422 10.7528L1.55014 10.7908C1.43252 10.976 1.27981 11.2164 1.2026 11.5532C1.14027 11.8251 1.14027 12.1749 1.2026 12.4468C1.2798 12.7836 1.43252 13.024 1.55014 13.2092L1.57423 13.2472C2.16697 14.1857 3.3505 15.8518 5.07675 17.2926C6.80535 18.7353 9.13833 20 12 20C14.8617 20 17.1947 18.7353 18.9233 17.2926C20.6495 15.8518 21.833 14.1857 22.4258 13.2472L22.4499 13.2092C22.5675 13.024 22.7202 12.7837 22.7974 12.4468C22.8597 12.1749 22.8597 11.8251 22.7974 11.5532C22.7202 11.2163 22.5675 10.976 22.4499 10.7908L22.4258 10.7528C21.833 9.81429 20.6495 8.14818 18.9233 6.70743C17.1947 5.26472 14.8617 4 12 4ZM12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8Z",
+ "fill": "currentColor"
+ },
+ "children": []
+ }
+ ]
+ },
+ "name": "Eye"
+}
\ No newline at end of file
diff --git a/web/app/components/base/icons/src/vender/solid/general/Eye.tsx b/web/app/components/base/icons/src/vender/solid/general/Eye.tsx
new file mode 100644
index 00000000000..59153746741
--- /dev/null
+++ b/web/app/components/base/icons/src/vender/solid/general/Eye.tsx
@@ -0,0 +1,16 @@
+// GENERATE BY script
+// DON NOT EDIT IT MANUALLY
+
+import * as React from 'react'
+import data from './Eye.json'
+import IconBase from '@/app/components/base/icons/IconBase'
+import type { IconBaseProps, IconData } from '@/app/components/base/icons/IconBase'
+
+const Icon = React.forwardRef<React.MutableRefObject<SVGElement>, Omit<IconBaseProps, 'data'>>((
+ props,
+ ref,
+) => <IconBase {...props} ref={ref} data={data as IconData} />)
+
+Icon.displayName = 'Eye'
+
+export default Icon
diff --git a/web/app/components/base/icons/src/vender/solid/general/index.ts b/web/app/components/base/icons/src/vender/solid/general/index.ts
index 60bf2a6d20e..c8133c62b0f 100644
--- a/web/app/components/base/icons/src/vender/solid/general/index.ts
+++ b/web/app/components/base/icons/src/vender/solid/general/index.ts
@@ -1,6 +1,7 @@
export { default as CheckCircle } from './CheckCircle'
export { default as CheckDone01 } from './CheckDone01'
export { default as Download02 } from './Download02'
+export { default as Eye } from './Eye'
export { default as MessageClockCircle } from './MessageClockCircle'
export { default as Target04 } from './Target04'
export { default as Tool03 } from './Tool03'
diff --git a/web/app/components/base/image-gallery/index.tsx b/web/app/components/base/image-gallery/index.tsx
new file mode 100644
index 00000000000..4566868153e
--- /dev/null
+++ b/web/app/components/base/image-gallery/index.tsx
@@ -0,0 +1,84 @@
+'use client'
+import type { FC } from 'react'
+import React, { useState } from 'react'
+import cn from 'classnames'
+import s from './style.module.css'
+import ImagePreview from '@/app/components/base/image-uploader/image-preview'
+
+type Props = {
+ srcs: string[]
+}
+
+const getWidthStyle = (imgNum: number) => {
+ if (imgNum === 1) {
+ return {
+ maxWidth: '100%',
+ }
+ }
+
+ if (imgNum === 2 || imgNum === 4) {
+ return {
+ width: 'calc(50% - 4px)',
+ }
+ }
+
+ return {
+ width: 'calc(33.3333% - 5.3333px)',
+ }
+}
+
+const ImageGallery: FC<Props> = ({
+ srcs,
+}) => {
+ const [imagePreviewUrl, setImagePreviewUrl] = useState('')
+
+ const imgNum = srcs.length
+ const imgStyle = getWidthStyle(imgNum)
+ return (
+ <div className={cn(s[`img-${imgNum}`], 'flex flex-wrap')}>
+ {/* TODO: support preview */}
+ {srcs.map((src, index) => (
+ // eslint-disable-next-line @next/next/no-img-element
+ <img
+ key={index}
+ className={s.item}
+ style={imgStyle}
+ src={src}
+ alt=''
+ onClick={() => setImagePreviewUrl(src)}
+ />
+ ))}
+ {
+ imagePreviewUrl && (
+ <ImagePreview
+ url={imagePreviewUrl}
+ onCancel={() => setImagePreviewUrl('')}
+ />
+ )
+ }
+ </div>
+ )
+}
+
+export default React.memo(ImageGallery)
+
+export const ImageGalleryTest = () => {
+ const imgGallerySrcs = (() => {
+ const srcs = []
+ for (let i = 0; i < 6; i++)
+ // srcs.push('https://placekitten.com/640/360')
+ // srcs.push('https://placekitten.com/360/640')
+ srcs.push('https://placekitten.com/360/360')
+
+ return srcs
+ })()
+ return (
+ <div className='space-y-2'>
+ {imgGallerySrcs.map((_, index) => (
+ <div key={index} className='p-4 pb-2 rounded-lg bg-[#D1E9FF80]'>
+ <ImageGallery srcs={imgGallerySrcs.slice(0, index + 1)} />
+ </div>
+ ))}
+ </div>
+ )
+}
diff --git a/web/app/components/base/image-gallery/style.module.css b/web/app/components/base/image-gallery/style.module.css
new file mode 100644
index 00000000000..116d6025089
--- /dev/null
+++ b/web/app/components/base/image-gallery/style.module.css
@@ -0,0 +1,22 @@
+.item {
+ height: 200px;
+ margin-right: 8px;
+ margin-bottom: 8px;
+ object-fit: cover;
+ object-position: center;
+ border-radius: 8px;
+ cursor: pointer;
+}
+
+.item:nth-child(3n) {
+ margin-right: 0;
+}
+
+.img-2 .item:nth-child(2n),
+.img-4 .item:nth-child(2n) {
+ margin-right: 0;
+}
+
+.img-4 .item:nth-child(3n) {
+ margin-right: 8px;
+}
\ No newline at end of file
diff --git a/web/app/components/base/image-uploader/chat-image-uploader.tsx b/web/app/components/base/image-uploader/chat-image-uploader.tsx
new file mode 100644
index 00000000000..97f85a31372
--- /dev/null
+++ b/web/app/components/base/image-uploader/chat-image-uploader.tsx
@@ -0,0 +1,150 @@
+import type { FC } from 'react'
+import { useState } from 'react'
+import { useTranslation } from 'react-i18next'
+import Uploader from './uploader'
+import ImageLinkInput from './image-link-input'
+import { ImagePlus } from '@/app/components/base/icons/src/vender/line/images'
+import { TransferMethod } from '@/types/app'
+import {
+ PortalToFollowElem,
+ PortalToFollowElemContent,
+ PortalToFollowElemTrigger,
+} from '@/app/components/base/portal-to-follow-elem'
+import { Upload03 } from '@/app/components/base/icons/src/vender/line/general'
+import type { ImageFile, VisionSettings } from '@/types/app'
+
+type UploadOnlyFromLocalProps = {
+ onUpload: (imageFile: ImageFile) => void
+ disabled?: boolean
+ limit?: number
+}
+const UploadOnlyFromLocal: FC<UploadOnlyFromLocalProps> = ({
+ onUpload,
+ disabled,
+ limit,
+}) => {
+ return (
+ <Uploader onUpload={onUpload} disabled={disabled} limit={limit}>
+ {
+ hovering => (
+ <div className={`
+ relative flex items-center justify-center w-8 h-8 rounded-lg cursor-pointer
+ ${hovering && 'bg-gray-100'}
+ `}>
+ <ImagePlus className='w-4 h-4 text-gray-500' />
+ </div>
+ )
+ }
+ </Uploader>
+ )
+}
+
+type UploaderButtonProps = {
+ methods: VisionSettings['transfer_methods']
+ onUpload: (imageFile: ImageFile) => void
+ disabled?: boolean
+ limit?: number
+}
+const UploaderButton: FC<UploaderButtonProps> = ({
+ methods,
+ onUpload,
+ disabled,
+ limit,
+}) => {
+ const { t } = useTranslation()
+ const [open, setOpen] = useState(false)
+
+ const hasUploadFromLocal = methods.find(method => method === TransferMethod.local_file)
+
+ const handleUpload = (imageFile: ImageFile) => {
+ setOpen(false)
+ onUpload(imageFile)
+ }
+
+ const handleToggle = () => {
+ if (disabled)
+ return
+
+ setOpen(v => !v)
+ }
+
+ return (
+ <PortalToFollowElem
+ open={open}
+ onOpenChange={setOpen}
+ placement='top-start'
+ >
+ <PortalToFollowElemTrigger onClick={handleToggle}>
+ <div className={`
+ relative flex items-center justify-center w-8 h-8 hover:bg-gray-100 rounded-lg
+ ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}
+ `}>
+ <ImagePlus className='w-4 h-4 text-gray-500' />
+ </div>
+ </PortalToFollowElemTrigger>
+ <PortalToFollowElemContent className='z-50'>
+ <div className='p-2 w-[260px] bg-white rounded-lg border-[0.5px] border-gray-200 shadow-lg'>
+ <ImageLinkInput onUpload={handleUpload} />
+ {
+ hasUploadFromLocal && (
+ <>
+ <div className='flex items-center mt-2 px-2 text-xs font-medium text-gray-400'>
+ <div className='mr-3 w-[93px] h-[1px] bg-gradient-to-l from-[#F3F4F6]' />
+ OR
+ <div className='ml-3 w-[93px] h-[1px] bg-gradient-to-r from-[#F3F4F6]' />
+ </div>
+ <Uploader onUpload={handleUpload} limit={limit}>
+ {
+ hovering => (
+ <div className={`
+ flex items-center justify-center h-8 text-[13px] font-medium text-[#155EEF] rounded-lg cursor-pointer
+ ${hovering && 'bg-primary-50'}
+ `}>
+ <Upload03 className='mr-1 w-4 h-4' />
+ {t('common.imageUploader.uploadFromComputer')}
+ </div>
+ )
+ }
+ </Uploader>
+ </>
+ )
+ }
+ </div>
+ </PortalToFollowElemContent>
+ </PortalToFollowElem>
+ )
+}
+
+type ChatImageUploaderProps = {
+ settings: VisionSettings
+ onUpload: (imageFile: ImageFile) => void
+ disabled?: boolean
+}
+const ChatImageUploader: FC<ChatImageUploaderProps> = ({
+ settings,
+ onUpload,
+ disabled,
+}) => {
+ const onlyUploadLocal = settings.transfer_methods.length === 1 && settings.transfer_methods[0] === TransferMethod.local_file
+
+ if (onlyUploadLocal) {
+ return (
+ <UploadOnlyFromLocal
+ onUpload={onUpload}
+ disabled={disabled}
+ limit={+settings.image_file_size_limit!}
+ />
+ )
+ }
+
+ return (
+ <UploaderButton
+ methods={settings.transfer_methods}
+ onUpload={onUpload}
+ disabled={disabled}
+ limit={+settings.image_file_size_limit!}
+ />
+ )
+}
+
+export default ChatImageUploader
diff --git a/web/app/components/base/image-uploader/hooks.ts b/web/app/components/base/image-uploader/hooks.ts
new file mode 100644
index 00000000000..242e5aff066
--- /dev/null
+++ b/web/app/components/base/image-uploader/hooks.ts
@@ -0,0 +1,81 @@
+import { useState } from 'react'
+import { useParams } from 'next/navigation'
+import { useTranslation } from 'react-i18next'
+import { imageUpload } from './utils'
+import { useToastContext } from '@/app/components/base/toast'
+import type { ImageFile } from '@/types/app'
+
+export const useImageFiles = () => {
+ const params = useParams()
+ const { t } = useTranslation()
+ const { notify } = useToastContext()
+ const [files, setFiles] = useState<ImageFile[]>([])
+
+ const handleUpload = (imageFile: ImageFile) => {
+ const newFiles = [...files, imageFile]
+ setFiles(newFiles)
+ }
+ const handleRemove = (imageFileId: string) => {
+ const index = files.findIndex(file => file._id === imageFileId)
+
+ if (index > -1) {
+ const newFiles = [...files.slice(0, index), ...files.slice(index + 1)]
+ setFiles(newFiles)
+ }
+ }
+ const handleImageLinkLoadError = (imageFileId: string) => {
+ const index = files.findIndex(file => file._id === imageFileId)
+
+ if (index > -1) {
+ const currentFile = files[index]
+ const newFiles = [...files.slice(0, index), { ...currentFile, progress: -1 }, ...files.slice(index + 1)]
+ setFiles(newFiles)
+ }
+ }
+ const handleImageLinkLoadSuccess = (imageFileId: string) => {
+ const index = files.findIndex(file => file._id === imageFileId)
+
+ if (index > -1) {
+ const currentImageFile = files[index]
+ const newFiles = [...files.slice(0, index), { ...currentImageFile, progress: 100 }, ...files.slice(index + 1)]
+ setFiles(newFiles)
+ }
+ }
+ const handleReUpload = (imageFileId: string) => {
+ const index = files.findIndex(file => file._id === imageFileId)
+
+ if (index > -1) {
+ const currentImageFile = files[index]
+ imageUpload({
+ file: currentImageFile.file!,
+ onProgressCallback: (progress) => {
+ const newFiles = [...files.slice(0, index), { ...currentImageFile, progress }, ...files.slice(index + 1)]
+ setFiles(newFiles)
+ },
+ onSuccessCallback: (res) => {
+ const newFiles = [...files.slice(0, index), { ...currentImageFile, fileId: res.id, progress: 100 }, ...files.slice(index + 1)]
+ setFiles(newFiles)
+ },
+ onErrorCallback: () => {
+ notify({ type: 'error', message: t('common.imageUploader.uploadFromComputerUploadError') })
+ const newFiles = [...files.slice(0, index), { ...currentImageFile, progress: -1 }, ...files.slice(index + 1)]
+ setFiles(newFiles)
+ },
+ }, !!params.token)
+ }
+ }
+
+ const handleClear = () => {
+ setFiles([])
+ }
+
+ return {
+ files,
+ onUpload: handleUpload,
+ onRemove: handleRemove,
+ onImageLinkLoadError: handleImageLinkLoadError,
+ onImageLinkLoadSuccess: handleImageLinkLoadSuccess,
+ onReUpload: handleReUpload,
+ onClear: handleClear,
+ }
+}
diff --git a/web/app/components/base/image-uploader/image-link-input.tsx b/web/app/components/base/image-uploader/image-link-input.tsx
new file mode 100644
index 00000000000..6c1435db308
--- /dev/null
+++ b/web/app/components/base/image-uploader/image-link-input.tsx
@@ -0,0 +1,50 @@
+import type { FC } from 'react'
+import { useState } from 'react'
+import { useTranslation } from 'react-i18next'
+import Button from '@/app/components/base/button'
+import type { ImageFile } from '@/types/app'
+import { TransferMethod } from '@/types/app'
+
+type ImageLinkInputProps = {
+ onUpload: (imageFile: ImageFile) => void
+}
+const regex = /^(https?|ftp):\/\//
+const ImageLinkInput: FC<ImageLinkInputProps> = ({
+ onUpload,
+}) => {
+ const { t } = useTranslation()
+ const [imageLink, setImageLink] = useState('')
+
+ const handleClick = () => {
+ const imageFile = {
+ type: TransferMethod.remote_url,
+ _id: `${Date.now()}`,
+ fileId: '',
+ progress: regex.test(imageLink) ? 0 : -1,
+ url: imageLink,
+ }
+
+ onUpload(imageFile)
+ }
+
+ return (
+ <div className='flex items-center pl-1.5 pr-1 h-8 border border-gray-200 bg-white shadow-xs rounded-lg'>
+ <input
+ className='grow mr-0.5 px-1 h-[18px] text-[13px] outline-none appearance-none'
+ value={imageLink}
+ onChange={e => setImageLink(e.target.value)}
+ placeholder={t('common.imageUploader.pasteImageLinkInputPlaceholder') || ''}
+ />
+ <Button
+ type='primary'
+ className='!h-6 text-xs font-medium'
+ disabled={!imageLink}
+ onClick={handleClick}
+ >
+ {t('common.operation.ok')}
+ </Button>
+ </div>
+ )
+}
+
+export default ImageLinkInput
diff --git a/web/app/components/base/image-uploader/image-list.tsx b/web/app/components/base/image-uploader/image-list.tsx
new file mode 100644
index 00000000000..b359d2edeb7
--- /dev/null
+++ b/web/app/components/base/image-uploader/image-list.tsx
@@ -0,0 +1,129 @@
+import type { FC } from 'react'
+import { useState } from 'react'
+import { useTranslation } from 'react-i18next'
+import { Loading02, XClose } from '@/app/components/base/icons/src/vender/line/general'
+import { RefreshCcw01 } from '@/app/components/base/icons/src/vender/line/arrows'
+import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'
+import TooltipPlus from '@/app/components/base/tooltip-plus'
+import type { ImageFile } from '@/types/app'
+import { TransferMethod } from '@/types/app'
+import ImagePreview from '@/app/components/base/image-uploader/image-preview'
+
+type ImageListProps = {
+ list: ImageFile[]
+ readonly?: boolean
+ onRemove?: (imageFileId: string) => void
+ onReUpload?: (imageFileId: string) => void
+ onImageLinkLoadSuccess?: (imageFileId: string) => void
+ onImageLinkLoadError?: (imageFileId: string) => void
+}
+
+const ImageList: FC<ImageListProps> = ({
+ list,
+ readonly,
+ onRemove,
+ onReUpload,
+ onImageLinkLoadSuccess,
+ onImageLinkLoadError,
+}) => {
+ const { t } = useTranslation()
+ const [imagePreviewUrl, setImagePreviewUrl] = useState('')
+
+ const handleImageLinkLoadSuccess = (item: ImageFile) => {
+ if (item.type === TransferMethod.remote_url && onImageLinkLoadSuccess && item.progress !== -1)
+ onImageLinkLoadSuccess(item._id)
+ }
+ const handleImageLinkLoadError = (item: ImageFile) => {
+ if (item.type === TransferMethod.remote_url && onImageLinkLoadError)
+ onImageLinkLoadError(item._id)
+ }
+
+ return (
+ <div className='flex flex-wrap'>
+ {
+ list.map(item => (
+ <div
+ key={item._id}
+ className='group relative mr-1 border-[0.5px] border-black/5 rounded-lg'
+ >
+ {
+ item.type === TransferMethod.local_file && item.progress !== 100 && (
+ <>
+ <div
+ className='absolute inset-0 flex items-center justify-center z-[1] bg-black/30'
+ style={{ left: item.progress > -1 ? `${item.progress}%` : 0 }}
+ >
+ {
+ item.progress === -1 && (
+ <RefreshCcw01 className='w-5 h-5 text-white' onClick={() => onReUpload && onReUpload(item._id)} />
+ )
+ }
+ </div>
+ {
+ item.progress > -1 && (
+ <span className='absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] text-sm text-white mix-blend-lighten z-[1]'>{item.progress}%</span>
+ )
+ }
+ </>
+ )
+ }
+ {
+ item.type === TransferMethod.remote_url && item.progress !== 100 && (
+ <div className={`
+ absolute inset-0 flex items-center justify-center rounded-lg z-[1] border
+ ${item.progress === -1 ? 'bg-[#FEF0C7] border-[#DC6803]' : 'bg-black/[0.16] border-transparent'}
+ `}>
+ {
+ item.progress > -1 && (
+ <Loading02 className='animate-spin w-5 h-5 text-white' />
+ )
+ }
+ {
+ item.progress === -1 && (
+ <TooltipPlus popupContent={t('common.imageUploader.pasteImageLinkInvalid')}>
+ <AlertTriangle className='w-4 h-4 text-[#DC6803]' />
+ </TooltipPlus>
+ )
+ }
+ </div>
+ )
+ }
+ <img
+ className='w-16 h-16 rounded-lg object-cover cursor-pointer border-[0.5px] border-black/5'
+ alt=''
+ onLoad={() => handleImageLinkLoadSuccess(item)}
+ onError={() => handleImageLinkLoadError(item)}
+ src={item.type === TransferMethod.remote_url ? item.url : item.base64Url}
+ onClick={() => item.progress === 100 && setImagePreviewUrl((item.type === TransferMethod.remote_url ? item.url : item.base64Url) as string)}
+ />
+ {
+ !readonly && (
+ <div
+ className={`
+ absolute z-10 -top-[9px] -right-[9px] items-center justify-center w-[18px] h-[18px]
+ bg-white hover:bg-gray-50 border-[0.5px] border-black/[0.02] rounded-2xl shadow-lg
+ cursor-pointer
+ ${item.progress === -1 ? 'flex' : 'hidden group-hover:flex'}
+ `}
+ onClick={() => onRemove && onRemove(item._id)}
+ >
+ <XClose className='w-3 h-3 text-gray-500' />
+ </div>
+ )
+ }
+ </div>
+ ))
+ }
+ {
+ imagePreviewUrl && (
+ <ImagePreview
+ url={imagePreviewUrl}
+ onCancel={() => setImagePreviewUrl('')}
+ />
+ )
+ }
+ </div>
+ )
+}
+
+export default ImageList
diff --git a/web/app/components/base/image-uploader/image-preview.tsx b/web/app/components/base/image-uploader/image-preview.tsx
new file mode 100644
index 00000000000..8670e103540
--- /dev/null
+++ b/web/app/components/base/image-uploader/image-preview.tsx
@@ -0,0 +1,31 @@
+import type { FC } from 'react'
+import { createPortal } from 'react-dom'
+import { XClose } from '@/app/components/base/icons/src/vender/line/general'
+
+type ImagePreviewProps = {
+ url: string
+ onCancel: () => void
+}
+const ImagePreview: FC<ImagePreviewProps> = ({
+ url,
+ onCancel,
+}) => {
+ return createPortal(
+ <div className='fixed inset-0 p-8 flex items-center justify-center bg-black/80 z-[1000]' onClick={e => e.stopPropagation()}>
+ <img
+ alt='preview image'
+ src={url}
+ className='max-w-full max-h-full'
+ />
+ <div
+ className='absolute top-6 right-6 flex items-center justify-center w-8 h-8 bg-white/[0.08] rounded-lg backdrop-blur-[2px] cursor-pointer'
+ onClick={onCancel}
+ >
+ <XClose className='w-4 h-4 text-white' />
+ </div>
+ </div>,
+ document.body,
+ )
+}
+
+export default ImagePreview
diff --git a/web/app/components/base/image-uploader/text-generation-image-uploader.tsx b/web/app/components/base/image-uploader/text-generation-image-uploader.tsx
new file mode 100644
index 00000000000..ed82f124154
--- /dev/null
+++ b/web/app/components/base/image-uploader/text-generation-image-uploader.tsx
@@ -0,0 +1,148 @@
+import type { FC } from 'react'
+import {
+ Fragment,
+ useEffect,
+ useState,
+} from 'react'
+import { useTranslation } from 'react-i18next'
+import Uploader from './uploader'
+import ImageLinkInput from './image-link-input'
+import ImageList from './image-list'
+import { useImageFiles } from './hooks'
+import { ImagePlus } from '@/app/components/base/icons/src/vender/line/images'
+import { Link03 } from '@/app/components/base/icons/src/vender/line/general'
+import {
+ PortalToFollowElem,
+ PortalToFollowElemContent,
+ PortalToFollowElemTrigger,
+} from '@/app/components/base/portal-to-follow-elem'
+import type { ImageFile, VisionSettings } from '@/types/app'
+import { TransferMethod } from '@/types/app'
+
+type PasteImageLinkButtonProps = {
+ onUpload: (imageFile: ImageFile) => void
+ disabled?: boolean
+}
+const PasteImageLinkButton: FC<PasteImageLinkButtonProps> = ({
+ onUpload,
+ disabled,
+}) => {
+ const { t } = useTranslation()
+ const [open, setOpen] = useState(false)
+
+ const handleUpload = (imageFile: ImageFile) => {
+ setOpen(false)
+ onUpload(imageFile)
+ }
+
+ const handleToggle = () => {
+ if (disabled)
+ return
+
+ setOpen(v => !v)
+ }
+
+ return (
+ <PortalToFollowElem
+ open={open}
+ onOpenChange={setOpen}
+ placement='top-start'
+ >
+ <PortalToFollowElemTrigger onClick={handleToggle}>
+ <div className={`
+ relative flex items-center justify-center px-3 h-8 bg-gray-100 hover:bg-gray-200 text-xs text-gray-500 rounded-lg
+ ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}
+ `}>
+ <Link03 className='mr-2 w-4 h-4' />
+ {t('common.imageUploader.pasteImageLink')}
+ </div>
+ </PortalToFollowElemTrigger>
+ <PortalToFollowElemContent className='z-10'>
+ <div className='p-2 w-[320px] bg-white border-[0.5px] border-gray-200 rounded-lg shadow-lg'>
+ <ImageLinkInput onUpload={handleUpload} />
+ </div>
+ </PortalToFollowElemContent>
+ </PortalToFollowElem>
+ )
+}
+
+type TextGenerationImageUploaderProps = {
+ settings: VisionSettings
+ onFilesChange: (files: ImageFile[]) => void
+}
+const TextGenerationImageUploader: FC<TextGenerationImageUploaderProps> = ({
+ settings,
+ onFilesChange,
+}) => {
+ const { t } = useTranslation()
+
+ const {
+ files,
+ onUpload,
+ onRemove,
+ onImageLinkLoadError,
+ onImageLinkLoadSuccess,
+ onReUpload,
+ } = useImageFiles()
+
+ useEffect(() => {
+ onFilesChange(files)
+ }, [files])
+
+ const localUpload = (
+ <Uploader
+ onUpload={onUpload}
+ disabled={files.length >= settings.number_limits}
+ limit={+settings.image_file_size_limit!}
+ >
+ {
+ hovering => (
+ <div className={`
+ flex items-center justify-center px-3 h-8 bg-gray-100
+ text-xs text-gray-500 rounded-lg cursor-pointer
+ ${hovering && 'bg-gray-200'}
+ `}>
+ <ImagePlus className='mr-2 w-4 h-4' />
+ {t('common.imageUploader.uploadFromComputer')}
+ </div>
+ )
+ }
+ </Uploader>
+ )
+
+ const urlUpload = (
+ <PasteImageLinkButton
+ onUpload={onUpload}
+ disabled={files.length >= settings.number_limits}
+ />
+ )
+
+ return (
+ <div>
+ <div className='mb-1'>
+ <ImageList
+ list={files}
+ onRemove={onRemove}
+ onReUpload={onReUpload}
+ onImageLinkLoadError={onImageLinkLoadError}
+ onImageLinkLoadSuccess={onImageLinkLoadSuccess}
+ />
+ </div>
+ <div className={`grid gap-1 ${settings.transfer_methods.length === 2 ? 'grid-cols-2' : 'grid-cols-1'}`}>
+ {
+ settings.transfer_methods.map((method) => {
+ if (method === TransferMethod.local_file)
+ return <Fragment key={TransferMethod.local_file}>{localUpload}</Fragment>
+
+ if (method === TransferMethod.remote_url)
+ return <Fragment key={TransferMethod.remote_url}>{urlUpload}</Fragment>
+
+ return null
+ })
+ }
+ </div>
+ </div>
+ )
+}
+
+export default TextGenerationImageUploader
diff --git a/web/app/components/base/image-uploader/uploader.tsx b/web/app/components/base/image-uploader/uploader.tsx
new file mode 100644
index 00000000000..5c6ee50a6fd
--- /dev/null
+++ b/web/app/components/base/image-uploader/uploader.tsx
@@ -0,0 +1,100 @@
+import type { ChangeEvent, FC } from 'react'
+import { useState } from 'react'
+import { useParams } from 'next/navigation'
+import { useTranslation } from 'react-i18next'
+import { imageUpload } from './utils'
+import type { ImageFile } from '@/types/app'
+import { TransferMethod } from '@/types/app'
+import { useToastContext } from '@/app/components/base/toast'
+
+type UploaderProps = {
+ children: (hovering: boolean) => JSX.Element
+ onUpload: (imageFile: ImageFile) => void
+ limit?: number
+ disabled?: boolean
+}
+
+const Uploader: FC<UploaderProps> = ({
+ children,
+ onUpload,
+ limit,
+ disabled,
+}) => {
+ const [hovering, setHovering] = useState(false)
+ const params = useParams()
+ const { notify } = useToastContext()
+ const { t } = useTranslation()
+
+ const handleChange = (e: ChangeEvent<HTMLInputElement>) => {
+ const file = e.target.files?.[0]
+
+ if (!file)
+ return
+
+ if (limit && file.size > limit * 1024 * 1024) {
+ notify({ type: 'error', message: t('common.imageUploader.uploadFromComputerLimit', { size: limit }) })
+ return
+ }
+
+ const reader = new FileReader()
+ reader.addEventListener(
+ 'load',
+ () => {
+ const imageFile = {
+ type: TransferMethod.local_file,
+ _id: `${Date.now()}`,
+ fileId: '',
+ file,
+ url: reader.result as string,
+ base64Url: reader.result as string,
+ progress: 0,
+ }
+ onUpload(imageFile)
+ imageUpload({
+ file: imageFile.file,
+ onProgressCallback: (progress) => {
+ onUpload({ ...imageFile, progress })
+ },
+ onSuccessCallback: (res) => {
+ onUpload({ ...imageFile, fileId: res.id, progress: 100 })
+ },
+ onErrorCallback: () => {
+ notify({ type: 'error', message: t('common.imageUploader.uploadFromComputerUploadError') })
+ onUpload({ ...imageFile, progress: -1 })
+ },
+ }, !!params.token)
+ },
+ false,
+ )
+ reader.addEventListener(
+ 'error',
+ () => {
+ notify({ type: 'error', message: t('common.imageUploader.uploadFromComputerReadError') })
+ },
+ false,
+ )
+ reader.readAsDataURL(file)
+ }
+
+ return (
+ <div
+ className='relative'
+ onMouseEnter={() => setHovering(true)}
+ onMouseLeave={() => setHovering(false)}
+ >
+ {children(hovering)}
+ <input
+ className={`
+ absolute block inset-0 opacity-0 text-[0]
+ ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}
+ `}
+ type='file'
+ accept='.png, .jpg, .jpeg, .webp, .gif'
+ onChange={handleChange}
+ disabled={disabled}
+ />
+ </div>
+ )
+}
+
+export default Uploader
diff --git a/web/app/components/base/image-uploader/utils.ts b/web/app/components/base/image-uploader/utils.ts
new file mode 100644
index 00000000000..2d315693b52
--- /dev/null
+++ b/web/app/components/base/image-uploader/utils.ts
@@ -0,0 +1,36 @@
+import { upload } from '@/service/base'
+
+type ImageUploadParams = {
+ file: File
+ onProgressCallback: (progress: number) => void
+ onSuccessCallback: (res: { id: string }) => void
+ onErrorCallback: () => void
+}
+type ImageUpload = (v: ImageUploadParams, isPublic?: boolean) => void
+export const imageUpload: ImageUpload = ({
+ file,
+ onProgressCallback,
+ onSuccessCallback,
+ onErrorCallback,
+}, isPublic) => {
+ const formData = new FormData()
+ formData.append('file', file)
+ const onProgress = (e: ProgressEvent) => {
+ if (e.lengthComputable) {
+ const percent = Math.floor(e.loaded / e.total * 100)
+ onProgressCallback(percent)
+ }
+ }
+
+ upload({
+ xhr: new XMLHttpRequest(),
+ data: formData,
+ onprogress: onProgress,
+ }, isPublic)
+ .then((res: { id: string }) => {
+ onSuccessCallback(res)
+ })
+ .catch(() => {
+ onErrorCallback()
+ })
+}
diff --git a/web/app/components/base/param-item/index.tsx b/web/app/components/base/param-item/index.tsx
new file mode 100644
index 00000000000..ae0a27a3b93
--- /dev/null
+++ b/web/app/components/base/param-item/index.tsx
@@ -0,0 +1,73 @@
+'use client'
+import type { FC } from 'react'
+import { HelpCircle } from '@/app/components/base/icons/src/vender/line/general'
+
+import Tooltip from '@/app/components/base/tooltip-plus'
+import Slider from '@/app/components/base/slider'
+import Switch from '@/app/components/base/switch'
+
+type Props = {
+ className?: string
+ id: string
+ name: string
+ noTooltip?: boolean
+ tip?: string
+ value: number
+ enable: boolean
+ step?: number
+ min?: number
+ max: number
+ onChange: (key: string, value: number) => void
+ hasSwitch?: boolean
+ onSwitchChange?: (key: string, enable: boolean) => void
+}
+
+const ParamItem: FC<Props> = ({ className, id, name, noTooltip, tip, step = 0.1, min = 0, max, value, enable, onChange, hasSwitch, onSwitchChange }) => {
+ return (
+ <div className={className}>
+ <div className="flex items-center h-8 justify-between">
+ <div className="flex items-center">
+ {hasSwitch && (
+ <Switch
+ size='md'
+ defaultValue={enable}
+ onChange={async (val) => {
+ onSwitchChange?.(id, val)
+ }}
+ />
+ )}
+ <span className="mx-1 text-gray-900 text-[13px] leading-[18px] font-medium">{name}</span>
+ {!noTooltip && (
+ <Tooltip popupContent={<div className="w-[200px]">{tip}</div>}>
+ <HelpCircle className='w-[14px] h-[14px] text-gray-400' />
+ </Tooltip>
+ )}
+
+ </div>
+ <div className="flex items-center"></div>
+ </div>
+ <div className="mt-2 flex items-center">
+ <div className="mr-4 flex shrink-0 items-center">
+ <input disabled={!enable} type="number" min={min} max={max} step={step} className="block w-[48px] h-7 text-xs leading-[18px] rounded-lg border-0 pl-1 pl py-1.5 bg-gray-50 text-gray-900 placeholder:text-gray-400 focus:ring-1 focus:ring-inset focus:ring-primary-600 disabled:opacity-60" value={value} onChange={(e) => {
+ const value = parseFloat(e.target.value)
+ if (value < min || value > max)
+ return
+
+ onChange(id, value)
+ }} />
+ </div>
+ <div className="flex items-center h-7 grow">
+ <Slider
+ className='w-full'
+ disabled={!enable}
+ value={max < 5 ? value * 100 : value}
+ min={min < 1 ? min * 100 : min}
+ max={max < 5 ? max * 100 : max}
+ onChange={value => onChange(id, value / (max < 5 ? 100 : 1))}
+ />
+ </div>
+ </div>
+ </div>
+ )
+}
+export default ParamItem
diff --git a/web/app/components/base/param-item/score-threshold-item.tsx b/web/app/components/base/param-item/score-threshold-item.tsx
new file mode 100644
index 00000000000..6aec7eba05c
--- /dev/null
+++ b/web/app/components/base/param-item/score-threshold-item.tsx
@@ -0,0 +1,54 @@
+'use client'
+import type { FC } from 'react'
+import React from 'react'
+import { useTranslation } from 'react-i18next'
+import ParamItem from '.'
+
+type Props = {
+ className?: string
+ value: number
+ onChange: (key: string, value: number) => void
+ enable: boolean
+ hasSwitch?: boolean
+ onSwitchChange?: (key: string, enable: boolean) => void
+}
+
+const VALUE_LIMIT = {
+ default: 0.7,
+ step: 0.01,
+ min: 0,
+ max: 1,
+}
+
+const key = 'score_threshold'
+const ScoreThresholdItem: FC<Props> = ({
+ className,
+ value,
+ enable,
+ onChange,
+ hasSwitch,
+ onSwitchChange,
+}) => {
+ const { t } = useTranslation()
+ const handleParamChange = (key: string, value: number) => {
+ let notOutRangeValue = parseFloat(value.toFixed(2))
+ notOutRangeValue = Math.max(VALUE_LIMIT.min, notOutRangeValue)
+ notOutRangeValue = Math.min(VALUE_LIMIT.max, notOutRangeValue)
+ onChange(key, notOutRangeValue)
+ }
+ return (
+ <ParamItem
+ className={className}
+ id={key}
+ name={t(`appDebug.datasetConfig.${key}`)}
+ tip={t(`appDebug.datasetConfig.${key}Tip`)}
+ {...VALUE_LIMIT}
+ value={value}
+ enable={enable}
+ onChange={handleParamChange}
+ hasSwitch={hasSwitch}
+ onSwitchChange={onSwitchChange}
+ />
+ )
+}
+export default React.memo(ScoreThresholdItem)
diff --git a/web/app/components/base/param-item/top-k-item.tsx b/web/app/components/base/param-item/top-k-item.tsx
new file mode 100644
index 00000000000..edbdcc33750
--- /dev/null
+++ b/web/app/components/base/param-item/top-k-item.tsx
@@ -0,0 +1,48 @@
+'use client'
+import type { FC } from 'react'
+import React from 'react'
+import { useTranslation } from 'react-i18next'
+import ParamItem from '.'
+
+type Props = {
+ className?: string
+ value: number
+ onChange: (key: string, value: number) => void
+ enable: boolean
+}
+
+const VALUE_LIMIT = {
+ default: 2,
+ step: 1,
+ min: 1,
+ max: 10,
+}
+
+const key = 'top_k'
+const TopKItem: FC<Props> = ({
+ className,
+ value,
+ enable,
+ onChange,
+}) => {
+ const { t } = useTranslation()
+ const handleParamChange = (key: string, value: number) => {
+ let notOutRangeValue = parseFloat(value.toFixed(2))
+ notOutRangeValue = Math.max(VALUE_LIMIT.min, notOutRangeValue)
+ notOutRangeValue = Math.min(VALUE_LIMIT.max, notOutRangeValue)
+ onChange(key, notOutRangeValue)
+ }
+ return (
+ <ParamItem
+ className={className}
+ id={key}
+ name={t(`appDebug.datasetConfig.${key}`)}
+ tip={t(`appDebug.datasetConfig.${key}Tip`)}
+ {...VALUE_LIMIT}
+ value={value}
+ enable={enable}
+ onChange={handleParamChange}
+ />
+ )
+}
+export default React.memo(TopKItem)
diff --git a/web/app/components/base/slider/index.tsx b/web/app/components/base/slider/index.tsx
index 21a648b1c6b..da8c7f29d2f 100644
--- a/web/app/components/base/slider/index.tsx
+++ b/web/app/components/base/slider/index.tsx
@@ -1,6 +1,8 @@
import ReactSlider from 'react-slider'
+import cn from 'classnames'
import './style.css'
type ISliderProps = {
+ className?: string
value: number
max?: number
min?: number
@@ -9,14 +11,14 @@ type ISliderProps = {
onChange: (value: number) => void
}
-const Slider: React.FC<ISliderProps> = ({ max, min, step, value, disabled, onChange }) => {
+const Slider: React.FC<ISliderProps> = ({ className, max, min, step, value, disabled, onChange }) => {
return <ReactSlider
disabled={disabled}
value={isNaN(value) ? 0 : value}
min={min || 0}
max={max || 100}
step={step || 1}
- className="slider"
+ className={cn(className, 'slider')}
thumbClassName="slider-thumb"
trackClassName="slider-track"
onChange={onChange}
diff --git a/web/app/components/develop/template/template.en.mdx b/web/app/components/develop/template/template.en.mdx
index 54578f82292..bd2cd2f780a 100644
--- a/web/app/components/develop/template/template.en.mdx
+++ b/web/app/components/develop/template/template.en.mdx
@@ -56,6 +56,15 @@ For high-quality text generation, such as articles, summaries, and translations,
<Property name='user' type='string' key='user'>
The user identifier, defined by the developer, must ensure uniqueness within the app.
</Property>
+ <Property name='files' type='array[object]' key='files'>
+ Uploaded files.
+ - `type` file type: currently only `image` is supported.
+ - `transfer_method` transfer method:
+ - `remote_url`: Image address.
+ - `local_file`: upload file.
+ - `upload_file_id` Upload file ID. Required when `transfer_method` is `local_file`.
+ - `url` image address. Required when `transfer_method` is `remote_url`.
+ </Property>
</Properties>
</Col>
<Col sticky>
@@ -168,6 +177,57 @@ For high-quality text generation, such as articles, summaries, and translations,
---
+<Heading
+ url='/files/upload'
+ method='POST'
+ title='Upload files'
+ name='#files-upload'
+/>
+<Row>
+ <Col>
+ Upload files to the server for text generation and dialogue. Uploaded files are only available to the current end user.
+
+ ### Request Body
+ The request method is `multipart/form-data`
+ <Properties>
+ <Property name='file' type='file' key='file'>
+ The file to upload. Currently supports png, jpg, jpeg, webp, gif format files.
+ </Property>
+ <Property name='user' type='string' key='user'>
+ User ID, rules are defined by the developer, and it is necessary to ensure that the user ID is unique within the application.
+ </Property>
+ </Properties>
+ </Col>
+ <Col sticky>
+
+ <CodeGroup title="Request" tag="POST" label="/files/upload" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/files/upload' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--form 'file=@localfile;type=image/[png|jpeg|jpg|webp|gif] \\\n--form 'user=abc-123'`}>
+
+ ```bash {{ title: 'cURL' }}
+ curl --location --request POST '${props.appDetail.api_base_url}/files/upload' \
+ --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
+ --form 'file=@"/path/to/file"'
+ ```
+
+ </CodeGroup>
+
+ <CodeGroup title="Response">
+ ```json {{ title: 'Response' }}
+ {
+ "id": "72fa9618-8f89-4a37-9b33-7e1178a24a67",
+ "name": "example.png",
+ "size": 1024,
+ "extension": "png",
+ "mime_type": "image/png",
+ "created_by": 123,
+ "created_at": 1577836800,
+ }
+ ```
+ </CodeGroup>
+ </Col>
+</Row>
+
+---
+
<Heading
url='/parameters'
method='GET'
@@ -176,7 +236,9 @@ For high-quality text generation, such as articles, summaries, and translations,
/>
<Row>
<Col>
- Retrieve configured Input parameters, including variable names, field names, types, and default values. Typically used for displaying these fields in a form or filling in default values after the client loads.
+ Content include:
+ 1. Retrieve configured Input parameters, including variable names, field names, types, and default values. Typically used for displaying these fields in a form or filling in default values after the client loads.
+ 2. Configuration of uploading images, including whether to enable image uploading, the number of uploaded images and the uploading method. Note: This configuration is only available when using a model that supports multimodality.
### Query
@@ -201,19 +263,30 @@ For high-quality text generation, such as articles, summaries, and translations,
```json {{ title: 'Response' }}
{
"introduction": "nice to meet you",
- "variables": [
+ "user_input_form": [
{
- "key": "book",
- "name": "Which book?",
- "description": null,
- "type": "string",
- "default": null,
- "options": null
- },
+ "text-input": {
+ "label": "a",
+ "variable": "a",
+ "required": true,
+ "max_length": 48,
+ "default": ""
+ }
+ }
{
// ...
}
- ]
+ ],
+ "file_upload": {
+ "image": {
+ "enabled": true,
+ "number_limits": 3,
+ "transfer_methods": [
+ "remote_url",
+ "local_file"
+ ]
+ }
+ }
}
```
</CodeGroup>
diff --git a/web/app/components/develop/template/template.zh.mdx b/web/app/components/develop/template/template.zh.mdx
index ae16f3069f8..0291e9629c6 100644
--- a/web/app/components/develop/template/template.zh.mdx
+++ b/web/app/components/develop/template/template.zh.mdx
@@ -56,6 +56,15 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
+ <Property name='files' type='array[object]' key='files'>
+ 上传的文件。
+ - `type` 文件类型:目前仅支持 `image`。
+ - `transfer_method` 传递方式:
+ - `remote_url`: 图片地址。
+ - `local_file`: 上传文件。
+ - `upload_file_id` 上传文件 ID。`transfer_method` 为 `local_file` 时必填。
+ - `url` 图片地址。`transfer_method` 为 `remote_url` 时必填。
+ </Property>
</Properties>
</Col>
<Col sticky>
@@ -168,6 +177,57 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
---
+<Heading
+ url='/files/upload'
+ method='POST'
+ title='上传文件'
+ name='#files-upload'
+/>
+<Row>
+ <Col>
+ 上传文件到服务器,供文本生成、对话使用。上传的文件仅供当前终端用户使用。
+
+ ### Request Body
+ 请求方式为 `multipart/form-data`。
+ <Properties>
+ <Property name='file' type='file' key='file'>
+ 要上传的文件。目前支持 png, jpg, jpeg, webp, gif 格式文件。
+ </Property>
+ <Property name='user' type='string' key='user'>
+ 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
+ </Property>
+ </Properties>
+ </Col>
+ <Col sticky>
+
+ <CodeGroup title="Request" tag="POST" label="/files/upload" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/files/upload' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--form 'file=@localfile;type=image/[png|jpeg|jpg|webp|gif] \\\n--form 'user=abc-123'`}>
+
+ ```bash {{ title: 'cURL' }}
+ curl --location --request POST '${props.appDetail.api_base_url}/files/upload' \
+ --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
+ --form 'file=@"/path/to/file"'
+ ```
+
+ </CodeGroup>
+
+ <CodeGroup title="Response">
+ ```json {{ title: 'Response' }}
+ {
+ "id": "72fa9618-8f89-4a37-9b33-7e1178a24a67",
+ "name": "example.png",
+ "size": 1024,
+ "extension": "png",
+ "mime_type": "image/png",
+ "created_by": 123,
+ "created_at": 1577836800,
+ }
+ ```
+ </CodeGroup>
+ </Col>
+</Row>
+
+---
+
<Heading
url='/parameters'
method='GET'
@@ -176,7 +236,9 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
/>
<Row>
<Col>
- 获取已配置的 Input 参数,包括变量名、字段名称、类型与默认值。通常用于客户端加载后显示这些字段的表单或填入默认值。
+ 内容包括:
+ 1. 已配置的 Input 参数,包括变量名、字段名称、类型与默认值。通常用于客户端加载后显示这些字段的表单或填入默认值。
+ 2. 上传图片的配置,包括是否开启上传图片,上传图片的数量和上传方式。注意:这个配置只有使用支持多模态的模型时才会生效。
### Query
@@ -201,19 +263,30 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
```json {{ title: 'Response' }}
{
"introduction": "nice to meet you",
- "variables": [
+ "user_input_form": [
{
- "key": "book",
- "name": "Which book?",
- "description": null,
- "type": "string",
- "default": null,
- "options": null
- },
+ "text-input": {
+ "label": "a",
+ "variable": "a",
+ "required": true,
+ "max_length": 48,
+ "default": ""
+ }
+ }
{
// ...
}
- ]
+ ],
+ "file_upload": {
+ "image": {
+ "enabled": true,
+ "number_limits": 3,
+ "transfer_methods": [
+ "remote_url",
+ "local_file"
+ ]
+ }
+ }
}
```
</CodeGroup>
diff --git a/web/app/components/develop/template/template_chat.en.mdx b/web/app/components/develop/template/template_chat.en.mdx
index 72377555b4a..fa71bb35f5a 100644
--- a/web/app/components/develop/template/template_chat.en.mdx
+++ b/web/app/components/develop/template/template_chat.en.mdx
@@ -62,6 +62,15 @@ For versatile conversational apps using a Q&A format, call the chat-messages API
<Property name='user' type='string' key='user'>
The user identifier, defined by the developer, must ensure uniqueness within the app.
</Property>
+ <Property name='files' type='array[object]' key='files'>
+ Uploaded files.
+ - `type` file type: currently only `image` is supported.
+ - `transfer_method` transfer method:
+ - `remote_url`: Image address.
+ - `local_file`: upload file.
+ - `upload_file_id` Upload file ID. Required when `transfer_method` is `local_file`.
+ - `url` image address. Required when `transfer_method` is `remote_url`.
+ </Property>
</Properties>
</Col>
<Col sticky>
@@ -449,6 +458,57 @@ For versatile conversational apps using a Q&A format, call the chat-messages API
---
+<Heading
+ url='/files/upload'
+ method='POST'
+ title='Upload files'
+ name='#files-upload'
+/>
+<Row>
+ <Col>
+ Upload files to the server for text generation and dialogue. Uploaded files are only available to the current end user.
+
+ ### Request Body
+ The request method is `multipart/form-data`
+ <Properties>
+ <Property name='file' type='file' key='file'>
+ The file to upload. Currently supports png, jpg, jpeg, webp, gif format files.
+ </Property>
+ <Property name='user' type='string' key='user'>
+ User ID, rules are defined by the developer, and it is necessary to ensure that the user ID is unique within the application.
+ </Property>
+ </Properties>
+ </Col>
+ <Col sticky>
+
+ <CodeGroup title="Request" tag="POST" label="/files/upload" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/files/upload' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--form 'file=@localfile;type=image/[png|jpeg|jpg|webp|gif] \\\n--form 'user=abc-123'`}>
+
+ ```bash {{ title: 'cURL' }}
+ curl --location --request POST '${props.appDetail.api_base_url}/files/upload' \
+ --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
+ --form 'file=@"/path/to/file"'
+ ```
+
+ </CodeGroup>
+
+ <CodeGroup title="Response">
+ ```json {{ title: 'Response' }}
+ {
+ "id": "72fa9618-8f89-4a37-9b33-7e1178a24a67",
+ "name": "example.png",
+ "size": 1024,
+ "extension": "png",
+ "mime_type": "image/png",
+ "created_by": 123,
+ "created_at": 1577836800,
+ }
+ ```
+ </CodeGroup>
+ </Col>
+</Row>
+
+---
+
<Heading
url='/audio-to-text'
method='POST'
@@ -500,7 +560,9 @@ For versatile conversational apps using a Q&A format, call the chat-messages API
/>
<Row>
<Col>
- Retrieve configured Input parameters, including variable names, field names, types, and default values. Typically used for displaying these fields in a form or filling in default values after the client loads.
+ Content include:
+ 1. Retrieve configured Input parameters, including variable names, field names, types, and default values. Typically used for displaying these fields in a form or filling in default values after the client loads.
+ 2. Configuration of uploading images, including whether to enable image uploading, the number of uploaded images and the uploading method. Note: This configuration is only available when using a model that supports multimodality.
### Query
@@ -525,19 +587,30 @@ For versatile conversational apps using a Q&A format, call the chat-messages API
```json {{ title: 'Response' }}
{
"introduction": "nice to meet you",
- "variables": [
+ "user_input_form": [
{
- "key": "book",
- "name": "book",
- "description": null,
- "type": "string",
- "default": null,
- "options": null
- },
+ "text-input": {
+ "label": "a",
+ "variable": "a",
+ "required": true,
+ "max_length": 48,
+ "default": ""
+ }
+ }
{
// ...
}
- ]
+ ],
+ "file_upload": {
+ "image": {
+ "enabled": true,
+ "number_limits": 3,
+ "transfer_methods": [
+ "remote_url",
+ "local_file"
+ ]
+ }
+ }
}
```
</CodeGroup>
diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx
index c191c9fb7c5..7444b8c69d0 100644
--- a/web/app/components/develop/template/template_chat.zh.mdx
+++ b/web/app/components/develop/template/template_chat.zh.mdx
@@ -62,6 +62,15 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
<Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
</Property>
+ <Property name='files' type='array[object]' key='files'>
+ 上传的文件。
+ - `type` 文件类型:目前仅支持 `image`。
+ - `transfer_method` 传递方式:
+ - `remote_url`: 图片地址。
+ - `local_file`: 上传文件。
+ - `upload_file_id` 上传文件 ID。`transfer_method` 为 `local_file` 时必填。
+ - `url` 图片地址。`transfer_method` 为 `remote_url` 时必填。
+ </Property>
</Properties>
</Col>
<Col sticky>
@@ -448,6 +457,57 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
---
+<Heading
+ url='/files/upload'
+ method='POST'
+ title='上传文件'
+ name='#files-upload'
+/>
+<Row>
+ <Col>
+ 上传文件到服务器,供文本生成、对话使用。上传的文件仅供当前终端用户使用。
+
+ ### Request Body
+ 请求方式为 `multipart/form-data`。
+ <Properties>
+ <Property name='file' type='file' key='file'>
+ 要上传的文件。目前支持 png, jpg, jpeg, webp, gif 格式文件。
+ </Property>
+ <Property name='user' type='string' key='user'>
+ 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
+ </Property>
+ </Properties>
+ </Col>
+ <Col sticky>
+
+ <CodeGroup title="Request" tag="POST" label="/files/upload" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/files/upload' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--form 'file=@localfile;type=image/[png|jpeg|jpg|webp|gif] \\\n--form 'user=abc-123'`}>
+
+ ```bash {{ title: 'cURL' }}
+ curl --location --request POST '${props.appDetail.api_base_url}/files/upload' \
+ --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
+ --form 'file=@"/path/to/file"'
+ ```
+
+ </CodeGroup>
+
+ <CodeGroup title="Response">
+ ```json {{ title: 'Response' }}
+ {
+ "id": "72fa9618-8f89-4a37-9b33-7e1178a24a67",
+ "name": "example.png",
+ "size": 1024,
+ "extension": "png",
+ "mime_type": "image/png",
+ "created_by": 123,
+ "created_at": 1577836800,
+ }
+ ```
+ </CodeGroup>
+ </Col>
+</Row>
+
+---
+
<Heading
url='/audio-to-text'
method='POST'
@@ -499,7 +559,9 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
/>
<Row>
<Col>
- 获取已配置的 Input 参数,包括变量名、字段名称、类型与默认值。通常用于客户端加载后显示这些字段的表单或填入默认值。
+ 内容包括:
+ 1. 已配置的 Input 参数,包括变量名、字段名称、类型与默认值。通常用于客户端加载后显示这些字段的表单或填入默认值。
+ 2. 上传图片的配置,包括是否开启上传图片,上传图片的数量和上传方式。注意:这个配置只有使用支持多模态的模型时才会生效。
### Query
@@ -524,19 +586,30 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
```json {{ title: 'Response' }}
{
"introduction": "nice to meet you",
- "variables": [
+ "user_input_form": [
{
- "key": "book",
- "name": "book",
- "description": null,
- "type": "string",
- "default": null,
- "options": null
- },
+ "text-input": {
+ "label": "a",
+ "variable": "a",
+ "required": true,
+ "max_length": 48,
+ "default": ""
+ }
+ }
{
// ...
}
- ]
+ ],
+ "file_upload": {
+ "image": {
+ "enabled": true,
+ "number_limits": 3,
+ "transfer_methods": [
+ "remote_url",
+ "local_file"
+ ]
+ }
+ }
}
```
</CodeGroup>
diff --git a/web/app/components/explore/universal-chat/index.tsx b/web/app/components/explore/universal-chat/index.tsx
index 5aa8325fa36..5fb4b7d9327 100644
--- a/web/app/components/explore/universal-chat/index.tsx
+++ b/web/app/components/explore/universal-chat/index.tsx
@@ -20,6 +20,7 @@ import {
fetchChatList,
fetchConversations,
fetchSuggestedQuestions,
+ generationConversationName,
pinConversation,
sendChatMessage,
stopChatMessageResponding,
@@ -564,7 +565,11 @@ const Main: FC<IMainProps> = () => {
if (getConversationIdChangeBecauseOfNew()) {
const { data: allConversations }: any = await fetchAllConversations()
- setAllConversationList(allConversations)
+ const newItem: any = await generationConversationName(allConversations[0].id)
+ const newAllConversations = produce(allConversations, (draft: any) => {
+ draft[0].name = newItem.name
+ })
+ setAllConversationList(newAllConversations as any)
noticeUpdateList()
}
setConversationIdChangeBecauseOfNew(false)
diff --git a/web/app/components/header/account-setting/api-based-extension-page/item.tsx b/web/app/components/header/account-setting/api-based-extension-page/item.tsx
index 0bd031bd920..05e5a1b4b14 100644
--- a/web/app/components/header/account-setting/api-based-extension-page/item.tsx
+++ b/web/app/components/header/account-setting/api-based-extension-page/item.tsx
@@ -61,7 +61,6 @@ const Item: FC<ItemProps> = ({
onCancel={() => setShowDeleteConfirm(false)}
title={`${t('common.operation.delete')} “${data.name}”?`}
onConfirm={handleDeleteApiBasedExtension}
- desc={t('common.apiBasedExtension.confirm.desc') || ''}
confirmWrapperClassName='!z-30'
confirmText={t('common.operation.delete') || ''}
confirmBtnClassName='!bg-[#D92D20]'
diff --git a/web/app/components/header/account-setting/model-page/declarations.ts b/web/app/components/header/account-setting/model-page/declarations.ts
index e9cdb354c5c..924d20024aa 100644
--- a/web/app/components/header/account-setting/model-page/declarations.ts
+++ b/web/app/components/header/account-setting/model-page/declarations.ts
@@ -71,6 +71,7 @@ export enum ModelType {
export enum ModelFeature {
agentThought = 'agent_thought',
+ vision = 'vision',
}
// backend defined model struct: /console/api/workspaces/current/models/model-type/:model_type
diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx
index 13f65a6fb80..39a1a733336 100644
--- a/web/app/components/share/chat/index.tsx
+++ b/web/app/components/share/chat/index.tsx
@@ -3,6 +3,7 @@
import type { FC } from 'react'
import React, { useEffect, useRef, useState } from 'react'
import cn from 'classnames'
+import useSWR from 'swr'
import { useTranslation } from 'react-i18next'
import { useContext } from 'use-context-selector'
import produce from 'immer'
@@ -22,6 +23,7 @@ import {
fetchChatList,
fetchConversations,
fetchSuggestedQuestions,
+ generationConversationName,
pinConversation,
sendChatMessage,
stopChatMessageResponding,
@@ -39,6 +41,9 @@ import { replaceStringWithValues } from '@/app/components/app/configuration/prom
import { userInputsFormToPromptVariables } from '@/utils/model-config'
import type { InstalledApp } from '@/models/explore'
import Confirm from '@/app/components/base/confirm'
+import type { VisionFile, VisionSettings } from '@/types/app'
+import { Resolution, TransferMethod } from '@/types/app'
+import { fetchFileUploadConfig } from '@/service/common'
export type IMainProps = {
isInstalledApp?: boolean
@@ -244,6 +249,7 @@ const Main: FC<IMainProps> = ({
id: `question-${item.id}`,
content: item.query,
isAnswer: false,
+ message_files: item.message_files,
})
newChatList.push({
id: item.id,
@@ -351,6 +357,8 @@ const Main: FC<IMainProps> = ({
: fetchAppInfo(), fetchAllConversations(), fetchAppParams(isInstalledApp, installedAppInfo?.id)])
}
+ const { data: fileUploadConfigResponse } = useSWR(isInstalledApp ? { url: '/files/upload' } : null, fetchFileUploadConfig)
+
// init
useEffect(() => {
(async () => {
@@ -368,7 +376,11 @@ const Main: FC<IMainProps> = ({
const isNotNewConversation = allConversations.some(item => item.id === _conversationId)
setAllConversationList(allConversations)
// fetch new conversation info
- const { user_input_form, opening_statement: introduction, suggested_questions_after_answer, speech_to_text, retriever_resource, sensitive_word_avoidance }: any = appParams
+ const { user_input_form, opening_statement: introduction, suggested_questions_after_answer, speech_to_text, retriever_resource, file_upload, sensitive_word_avoidance }: any = appParams
+ setVisionConfig({
+ ...file_upload.image,
+ image_file_size_limit: appParams?.system_parameters?.image_file_size_limit,
+ })
const prompt_variables = userInputsFormToPromptVariables(user_input_form)
if (siteInfo.default_language)
changeLanguage(siteInfo.default_language)
@@ -448,24 +460,48 @@ const Main: FC<IMainProps> = ({
const [messageTaskId, setMessageTaskId] = useState('')
const [hasStopResponded, setHasStopResponded, getHasStopResponded] = useGetState(false)
const [isResponsingConIsCurrCon, setIsResponsingConCurrCon, getIsResponsingConIsCurrCon] = useGetState(true)
-
- const handleSend = async (message: string) => {
+ const [visionConfig, setVisionConfig] = useState<VisionSettings>({
+ enabled: false,
+ number_limits: 2,
+ detail: Resolution.low,
+ transfer_methods: [TransferMethod.local_file],
+ })
+ const handleSend = async (message: string, files?: VisionFile[]) => {
if (isResponsing) {
notify({ type: 'info', message: t('appDebug.errorMessage.waitForResponse') })
return
}
- const data = {
+
+ if (files?.find(item => item.transfer_method === TransferMethod.local_file && !item.upload_file_id)) {
+ notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') })
+ return false
+ }
+
+ const data: Record<string, any> = {
inputs: currInputs,
query: message,
conversation_id: isNewConversation ? null : currConversationId,
}
+ if (visionConfig.enabled && files && files?.length > 0) {
+ data.files = files.map((item) => {
+ if (item.transfer_method === TransferMethod.local_file) {
+ return {
+ ...item,
+ url: '',
+ }
+ }
+ return item
+ })
+ }
+
// qustion
const questionId = `question-${Date.now()}`
const questionItem = {
id: questionId,
content: message,
isAnswer: false,
+ message_files: files,
}
const placeholderAnswerId = `answer-placeholder-${Date.now()}`
@@ -519,13 +555,17 @@ const Main: FC<IMainProps> = ({
setChatList(newListWithAnswer)
},
async onCompleted(hasError?: boolean) {
- setResponsingFalse()
if (hasError)
return
if (getConversationIdChangeBecauseOfNew()) {
const { data: allConversations }: any = await fetchAllConversations()
- setAllConversationList(allConversations)
+ const newItem: any = await generationConversationName(isInstalledApp, installedAppInfo?.id, allConversations[0].id)
+
+ const newAllConversations = produce(allConversations, (draft: any) => {
+ draft[0].name = newItem.name
+ })
+ setAllConversationList(newAllConversations as any)
noticeUpdateList()
}
setConversationIdChangeBecauseOfNew(false)
@@ -537,6 +577,7 @@ const Main: FC<IMainProps> = ({
setSuggestQuestions(data)
setIsShowSuggestion(true)
}
+ setResponsingFalse()
},
onMessageEnd: isInstalledApp
? (messageEnd) => {
@@ -717,6 +758,10 @@ const Main: FC<IMainProps> = ({
suggestionList={suggestQuestions}
isShowSpeechToText={speechToTextConfig?.enabled}
isShowCitation={citationConfig?.enabled && isInstalledApp}
+ visionConfig={{
+ ...visionConfig,
+ image_file_size_limit: fileUploadConfigResponse ? fileUploadConfigResponse.image_file_size_limit : visionConfig.image_file_size_limit,
+ }}
/>
</div>
</div>)
diff --git a/web/app/components/share/chatbot/index.tsx b/web/app/components/share/chatbot/index.tsx
index e8c5d4f8638..f65e88ce504 100644
--- a/web/app/components/share/chatbot/index.tsx
+++ b/web/app/components/share/chatbot/index.tsx
@@ -14,7 +14,7 @@ import s from './style.module.css'
import { ToastContext } from '@/app/components/base/toast'
import ConfigScene from '@/app/components/share/chatbot/config-scence'
import Header from '@/app/components/share/header'
-import { fetchAppInfo, fetchAppParams, fetchChatList, fetchConversations, fetchSuggestedQuestions, sendChatMessage, stopChatMessageResponding, updateFeedback } from '@/service/share'
+import { fetchAppInfo, fetchAppParams, fetchChatList, fetchConversations, fetchSuggestedQuestions, generationConversationName, sendChatMessage, stopChatMessageResponding, updateFeedback } from '@/service/share'
import type { ConversationItem, SiteInfo } from '@/models/share'
import type { PromptConfig, SuggestedQuestionsAfterAnswerConfig } from '@/models/debug'
import type { Feedbacktype, IChatItem } from '@/app/components/app/chat/type'
@@ -28,6 +28,8 @@ import type { InstalledApp } from '@/models/explore'
import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'
import LogoHeader from '@/app/components/base/logo/logo-embeded-chat-header'
import LogoAvatar from '@/app/components/base/logo/logo-embeded-chat-avatar'
+import type { VisionFile, VisionSettings } from '@/types/app'
+import { Resolution, TransferMethod } from '@/types/app'
export type IMainProps = {
isInstalledApp?: boolean
@@ -184,6 +186,7 @@ const Main: FC<IMainProps> = ({
id: `question-${item.id}`,
content: item.query,
isAnswer: false,
+ message_files: item.message_files,
})
newChatList.push({
id: item.id,
@@ -292,7 +295,11 @@ const Main: FC<IMainProps> = ({
const isNotNewConversation = allConversations.some(item => item.id === _conversationId)
setAllConversationList(allConversations)
// fetch new conversation info
- const { user_input_form, opening_statement: introduction, suggested_questions_after_answer, speech_to_text, sensitive_word_avoidance }: any = appParams
+ const { user_input_form, opening_statement: introduction, suggested_questions_after_answer, speech_to_text, file_upload, sensitive_word_avoidance }: any = appParams
+ setVisionConfig({
+ ...file_upload.image,
+ image_file_size_limit: appParams?.system_parameters?.image_file_size_limit,
+ })
const prompt_variables = userInputsFormToPromptVariables(user_input_form)
if (siteInfo.default_language)
changeLanguage(siteInfo.default_language)
@@ -371,24 +378,48 @@ const Main: FC<IMainProps> = ({
const [messageTaskId, setMessageTaskId] = useState('')
const [hasStopResponded, setHasStopResponded, getHasStopResponded] = useGetState(false)
const [shouldReload, setShouldReload] = useState(false)
-
- const handleSend = async (message: string) => {
+ const [visionConfig, setVisionConfig] = useState<VisionSettings>({
+ enabled: false,
+ number_limits: 2,
+ detail: Resolution.low,
+ transfer_methods: [TransferMethod.local_file],
+ })
+
+ const handleSend = async (message: string, files?: VisionFile[]) => {
if (isResponsing) {
notify({ type: 'info', message: t('appDebug.errorMessage.waitForResponse') })
return
}
- const data = {
+
+ if (files?.find(item => item.transfer_method === TransferMethod.local_file && !item.upload_file_id)) {
+ notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') })
+ return false
+ }
+ const data: Record<string, any> = {
inputs: currInputs,
query: message,
conversation_id: isNewConversation ? null : currConversationId,
}
+ if (visionConfig.enabled && files && files?.length > 0) {
+ data.files = files.map((item) => {
+ if (item.transfer_method === TransferMethod.local_file) {
+ return {
+ ...item,
+ url: '',
+ }
+ }
+ return item
+ })
+ }
+
// qustion
const questionId = `question-${Date.now()}`
const questionItem = {
id: questionId,
content: message,
isAnswer: false,
+ message_files: files,
}
const placeholderAnswerId = `answer-placeholder-${Date.now()}`
@@ -436,13 +467,16 @@ const Main: FC<IMainProps> = ({
setChatList(newListWithAnswer)
},
async onCompleted(hasError?: boolean) {
- setResponsingFalse()
if (hasError)
return
if (getConversationIdChangeBecauseOfNew()) {
const { data: allConversations }: any = await fetchAllConversations()
- setAllConversationList(allConversations)
+ const newItem: any = await generationConversationName(isInstalledApp, installedAppInfo?.id, allConversations[0].id)
+ const newAllConversations = produce(allConversations, (draft: any) => {
+ draft[0].name = newItem.name
+ })
+ setAllConversationList(newAllConversations as any)
noticeUpdateList()
}
setConversationIdChangeBecauseOfNew(false)
@@ -454,6 +488,7 @@ const Main: FC<IMainProps> = ({
setSuggestQuestions(data)
setIsShowSuggestion(true)
}
+ setResponsingFalse()
},
onMessageReplace: (messageReplace) => {
setChatList(produce(
@@ -581,6 +616,7 @@ const Main: FC<IMainProps> = ({
displayScene='web'
isShowSpeechToText={speechToTextConfig?.enabled}
answerIcon={<LogoAvatar className='relative shrink-0' />}
+ visionConfig={visionConfig}
/>
</div>
</div>)
diff --git a/web/app/components/share/text-generation/index.tsx b/web/app/components/share/text-generation/index.tsx
index cf8a8efbc2d..2906eb8c85c 100644
--- a/web/app/components/share/text-generation/index.tsx
+++ b/web/app/components/share/text-generation/index.tsx
@@ -26,6 +26,8 @@ import SavedItems from '@/app/components/app/text-generate/saved-items'
import type { InstalledApp } from '@/models/explore'
import { DEFAULT_VALUE_MAX_LEN, appDefaultIconBackground } from '@/config'
import Toast from '@/app/components/base/toast'
+import type { VisionFile, VisionSettings } from '@/types/app'
+import { Resolution, TransferMethod } from '@/types/app'
const GROUP_SIZE = 5 // to avoid RPM(Request per minute) limit. The group task finished then the next group.
enum TaskStatus {
@@ -92,6 +94,14 @@ const TextGeneration: FC<IMainProps> = ({
// send message task
const [controlSend, setControlSend] = useState(0)
const [controlStopResponding, setControlStopResponding] = useState(0)
+ const [visionConfig, setVisionConfig] = useState<VisionSettings>({
+ enabled: false,
+ number_limits: 2,
+ detail: Resolution.low,
+ transfer_methods: [TransferMethod.local_file],
+ })
+ const [completionFiles, setCompletionFiles] = useState<VisionFile[]>([])
+
const handleSend = () => {
setIsCallBatchAPI(false)
setControlSend(Date.now())
@@ -338,7 +348,11 @@ const TextGeneration: FC<IMainProps> = ({
setSiteInfo(siteInfo as SiteInfo)
changeLanguage(siteInfo.default_language)
- const { user_input_form, more_like_this, sensitive_word_avoidance }: any = appParams
+ const { user_input_form, more_like_this, file_upload, sensitive_word_avoidance }: any = appParams
+ setVisionConfig({
+ ...file_upload.image,
+ image_file_size_limit: appParams?.system_parameters?.image_file_size_limit,
+ })
const prompt_variables = userInputsFormToPromptVariables(user_input_form)
setPromptConfig({
prompt_template: '', // placeholder for feture
@@ -378,6 +392,8 @@ const TextGeneration: FC<IMainProps> = ({
handleSaveMessage={handleSaveMessage}
taskId={task?.id}
onCompleted={handleCompleted}
+ visionConfig={visionConfig}
+ completionFiles={completionFiles}
/>)
const renderBatchRes = () => {
@@ -512,6 +528,8 @@ const TextGeneration: FC<IMainProps> = ({
onInputsChange={setInputs}
promptConfig={promptConfig}
onSend={handleSend}
+ visionConfig={visionConfig}
+ onVisionFilesChange={setCompletionFiles}
/>
</div>
<div className={cn(isInBatchTab ? 'block' : 'hidden')}>
diff --git a/web/app/components/share/text-generation/result/index.tsx b/web/app/components/share/text-generation/result/index.tsx
index 14f76f2ba1e..0ff746b528e 100644
--- a/web/app/components/share/text-generation/result/index.tsx
+++ b/web/app/components/share/text-generation/result/index.tsx
@@ -13,6 +13,7 @@ import Loading from '@/app/components/base/loading'
import type { PromptConfig } from '@/models/debug'
import type { InstalledApp } from '@/models/explore'
import type { ModerationService } from '@/models/common'
+import { TransferMethod, type VisionFile, type VisionSettings } from '@/types/app'
export type IResultProps = {
isCallBatchAPI: boolean
isPC: boolean
@@ -32,6 +33,8 @@ export type IResultProps = {
onCompleted: (completionRes: string, taskId?: number, success?: boolean) => void
enableModeration?: boolean
moderationService?: (text: string) => ReturnType<ModerationService>
+ visionConfig: VisionSettings
+ completionFiles: VisionFile[]
}
const Result: FC<IResultProps> = ({
@@ -51,6 +54,8 @@ const Result: FC<IResultProps> = ({
handleSaveMessage,
taskId,
onCompleted,
+ visionConfig,
+ completionFiles,
}) => {
const [isResponsing, { setTrue: setResponsingTrue, setFalse: setResponsingFalse }] = useBoolean(false)
useEffect(() => {
@@ -108,6 +113,11 @@ const Result: FC<IResultProps> = ({
logError(t('appDebug.errorMessage.valueOfVarRequired', { key: hasEmptyInput }))
return false
}
+
+ if (completionFiles.find(item => item.transfer_method === TransferMethod.local_file && !item.upload_file_id)) {
+ notify({ type: 'info', message: t('appDebug.errorMessage.waitForImgUpload') })
+ return false
+ }
return !hasEmptyInput
}
@@ -120,9 +130,20 @@ const Result: FC<IResultProps> = ({
if (!checkCanSend())
return
- const data = {
+ const data: Record<string, any> = {
inputs,
}
+ if (visionConfig.enabled && completionFiles && completionFiles?.length > 0) {
+ data.files = completionFiles.map((item) => {
+ if (item.transfer_method === TransferMethod.local_file) {
+ return {
+ ...item,
+ url: '',
+ }
+ }
+ return item
+ })
+ }
setMessageId(null)
setFeedback({
@@ -145,7 +166,6 @@ const Result: FC<IResultProps> = ({
setResponsingFalse()
onCompleted(getCompletionRes(), taskId, false)
isTimeout = true
- console.log(`[#${taskId}]: timeout`)
}
}, 1000)
sendCompletionMessage(data, {
diff --git a/web/app/components/share/text-generation/run-once/index.tsx b/web/app/components/share/text-generation/run-once/index.tsx
index 267ec574fc9..e51466f74aa 100644
--- a/web/app/components/share/text-generation/run-once/index.tsx
+++ b/web/app/components/share/text-generation/run-once/index.tsx
@@ -9,6 +9,8 @@ import type { SiteInfo } from '@/models/share'
import type { PromptConfig } from '@/models/debug'
import Button from '@/app/components/base/button'
import { DEFAULT_VALUE_MAX_LEN } from '@/config'
+import TextGenerationImageUploader from '@/app/components/base/image-uploader/text-generation-image-uploader'
+import type { VisionFile, VisionSettings } from '@/types/app'
export type IRunOnceProps = {
siteInfo: SiteInfo
@@ -16,12 +18,16 @@ export type IRunOnceProps = {
inputs: Record<string, any>
onInputsChange: (inputs: Record<string, any>) => void
onSend: () => void
+ visionConfig: VisionSettings
+ onVisionFilesChange: (files: VisionFile[]) => void
}
const RunOnce: FC<IRunOnceProps> = ({
promptConfig,
inputs,
onInputsChange,
onSend,
+ visionConfig,
+ onVisionFilesChange,
}) => {
const { t } = useTranslation()
@@ -73,6 +79,24 @@ const RunOnce: FC<IRunOnceProps> = ({
</div>
</div>
))}
+ {
+ visionConfig?.enabled && (
+ <div className="w-full mt-4">
+ <div className="text-gray-900 text-sm font-medium">Image Upload</div>
+ <div className='mt-2'>
+ <TextGenerationImageUploader
+ settings={visionConfig}
+ onFilesChange={files => onVisionFilesChange(files.filter(file => file.progress !== -1).map(fileItem => ({
+ type: 'image',
+ transfer_method: fileItem.type,
+ url: fileItem.url,
+ upload_file_id: fileItem.fileId,
+ })))}
+ />
+ </div>
+ </div>
+ )
+ }
{promptConfig.prompt_variables.length > 0 && (
<div className='mt-4 h-[1px] bg-gray-100'></div>
)}
diff --git a/web/context/debug-configuration.ts b/web/context/debug-configuration.ts
index 9278357dfb5..0c0d00e3de8 100644
--- a/web/context/debug-configuration.ts
+++ b/web/context/debug-configuration.ts
@@ -19,7 +19,8 @@ import type {
} from '@/models/debug'
import type { ExternalDataTool } from '@/models/common'
import type { DataSet } from '@/models/datasets'
-import { ModelModeType } from '@/types/app'
+import type { VisionSettings } from '@/types/app'
+import { ModelModeType, Resolution, TransferMethod } from '@/types/app'
import { DEFAULT_CHAT_PROMPT_CONFIG, DEFAULT_COMPLETION_PROMPT_CONFIG } from '@/config'
type IDebugConfiguration = {
@@ -80,6 +81,9 @@ type IDebugConfiguration = {
datasetConfigs: DatasetConfigs
setDatasetConfigs: (config: DatasetConfigs) => void
hasSetContextVar: boolean
+ isShowVisionConfig: boolean
+ visionConfig: VisionSettings
+ setVisionConfig: (visionConfig: VisionSettings) => void
}
const DebugConfigurationContext = createContext<IDebugConfiguration>({
@@ -184,6 +188,14 @@ const DebugConfigurationContext = createContext<IDebugConfiguration>({
},
setDatasetConfigs: () => {},
hasSetContextVar: false,
+ isShowVisionConfig: false,
+ visionConfig: {
+ enabled: false,
+ number_limits: 2,
+ detail: Resolution.low,
+ transfer_methods: [TransferMethod.remote_url],
+ },
+ setVisionConfig: () => {},
})
export default DebugConfigurationContext
diff --git a/web/i18n/lang/app-debug.en.ts b/web/i18n/lang/app-debug.en.ts
index 17bf1e85f09..69ac120674d 100644
--- a/web/i18n/lang/app-debug.en.ts
+++ b/web/i18n/lang/app-debug.en.ts
@@ -202,6 +202,7 @@ const translation = {
waitForBatchResponse:
'Please wait for the response to the batch task to complete.',
notSelectModel: 'Please choose a model',
+ waitForImgUpload: 'Please wait for the image to upload',
},
chatSubTitle: 'Pre Prompt',
completionSubTitle: 'Prefix Prompt',
@@ -249,6 +250,25 @@ const translation = {
options: 'Options',
addOption: 'Add option',
},
+ vision: {
+ name: 'Vision',
+ description: 'Enable Vision will allows the model to take in images and answer questions about them. ',
+ settings: 'Settings',
+ visionSettings: {
+ title: 'Vision Settings',
+ resolution: 'Resolution',
+ resolutionTooltip: `low res will allow model receive a low-res 512 x 512 version of the image, and represent the image with a budget of 65 tokens. This allows the API to return faster responses and consume fewer input tokens for use cases that do not require high detail.
+ \n
+ high res will first allows the model to see the low res image and then creates detailed crops of input images as 512px squares based on the input image size. Each of the detailed crops uses twice the token budget for a total of 129 tokens.`,
+ high: 'High',
+ low: 'Low',
+ uploadMethod: 'Upload Method',
+ both: 'Both',
+ localUpload: 'Local Upload',
+ url: 'URL',
+ uploadLimit: 'Upload Limit',
+ },
+ },
openingStatement: {
title: 'Opening remarks',
add: 'Add',
diff --git a/web/i18n/lang/app-debug.zh.ts b/web/i18n/lang/app-debug.zh.ts
index 93998f41419..4b425160728 100644
--- a/web/i18n/lang/app-debug.zh.ts
+++ b/web/i18n/lang/app-debug.zh.ts
@@ -199,6 +199,7 @@ const translation = {
waitForResponse: '请等待上条信息响应完成',
waitForBatchResponse: '请等待批量任务完成',
notSelectModel: '请选择模型',
+ waitForImgUpload: '请等待图片上传完成',
},
chatSubTitle: '对话前提示词',
completionSubTitle: '前缀提示词',
@@ -245,6 +246,25 @@ const translation = {
options: '选项',
addOption: '添加选项',
},
+ vision: {
+ name: '视觉',
+ description: '开启视觉功能将允许模型输入图片,并根据图像内容的理解回答用户问题',
+ settings: '设置',
+ visionSettings: {
+ title: '视觉设置',
+ resolution: '分辨率',
+ resolutionTooltip: `低分辨率模式将使模型接收图像的低分辨率版本,尺寸为512 x 512,并使用65 Tokens 来表示图像。这样可以使API更快地返回响应,并在不需要高细节的用例中消耗更少的输入。
+ \n
+ 高分辨率模式将首先允许模型查看低分辨率图像,然后根据输入图像的大小创建512像素的详细裁剪图像。每个详细裁剪图像使用两倍的预算总共为129 Tokens。`,
+ high: '高',
+ low: '低',
+ uploadMethod: '上传方式',
+ both: '两者',
+ localUpload: '本地上传',
+ url: 'URL',
+ uploadLimit: '上传数量限制',
+ },
+ },
openingStatement: {
title: '对话开场白',
add: '添加开场白',
diff --git a/web/i18n/lang/app-log.en.ts b/web/i18n/lang/app-log.en.ts
index 5fc45ee90f5..465535007df 100644
--- a/web/i18n/lang/app-log.en.ts
+++ b/web/i18n/lang/app-log.en.ts
@@ -44,6 +44,7 @@ const translation = {
annotationPlaceholder: 'Enter the expected answer that you want AI to reply, which can be used for model fine-tuning and continuous improvement of text generation quality in the future.',
},
variables: 'Variables',
+ uploadImages: 'Uploaded Images',
},
filter: {
period: {
diff --git a/web/i18n/lang/app-log.zh.ts b/web/i18n/lang/app-log.zh.ts
index 2abdcf59d72..a300a6f6b96 100644
--- a/web/i18n/lang/app-log.zh.ts
+++ b/web/i18n/lang/app-log.zh.ts
@@ -44,6 +44,7 @@ const translation = {
annotationPlaceholder: '输入你希望 AI 回复的预期答案,这在今后可用于模型微调,持续改进文本生成质量。',
},
variables: '变量',
+ uploadImages: '上传的图片',
},
filter: {
period: {
diff --git a/web/i18n/lang/common.en.ts b/web/i18n/lang/common.en.ts
index 0c914ace9ef..664f480224c 100644
--- a/web/i18n/lang/common.en.ts
+++ b/web/i18n/lang/common.en.ts
@@ -328,9 +328,6 @@ const translation = {
lengthError: 'API-key length cannot be less than 5 characters',
},
},
- confirm: {
- desc: 'Deleting the WebHook might cause the extension points configured for this API Extension to fail and produce errors. Please proceed with caution.',
- },
},
about: {
changeLog: 'Changlog',
@@ -433,6 +430,15 @@ const translation = {
},
existed: 'Already exists in the prompt',
},
+ imageUploader: {
+ uploadFromComputer: 'Upload from Computer',
+ uploadFromComputerReadError: 'Image reading failed, please try again.',
+ uploadFromComputerUploadError: 'Image upload failed, please upload again.',
+ uploadFromComputerLimit: 'Upload images cannot exceed {{size}} MB',
+ pasteImageLink: 'Paste image link',
+ pasteImageLinkInputPlaceholder: 'Paste image link here',
+ pasteImageLinkInvalid: 'Invalid image link',
+ },
}
export default translation
diff --git a/web/i18n/lang/common.zh.ts b/web/i18n/lang/common.zh.ts
index ded277d9117..b0964380594 100644
--- a/web/i18n/lang/common.zh.ts
+++ b/web/i18n/lang/common.zh.ts
@@ -109,7 +109,7 @@ const translation = {
provider: '模型供应商',
dataSource: '数据来源',
plugin: '插件',
- apiBasedExtension: 'API 的扩展',
+ apiBasedExtension: 'API 扩展',
},
account: {
avatar: '头像',
@@ -302,18 +302,18 @@ const translation = {
},
},
apiBasedExtension: {
- title: 'API 的扩展提供了一个集中式的 API 管理,在此统一添加 API 配置后,方便在 Dify 上的各类应用中直接使用。',
- link: '了解如何开发您自己的 API 的扩展。',
+ title: 'API 扩展提供了一个集中式的 API 管理,在此统一添加 API 配置后,方便在 Dify 上的各类应用中直接使用。',
+ link: '了解如何开发您自己的 API 扩展。',
linkUrl: 'https://docs.dify.ai/v/zh-hans/advanced/api_based_extension',
- add: '新增 API 的扩展',
+ add: '新增 API 扩展',
selector: {
- title: 'API 的扩展',
- placeholder: '请选择 API 的扩展',
- manage: '管理 API 的扩展',
+ title: 'API 扩展',
+ placeholder: '请选择 API 扩展',
+ manage: '管理 API 扩展',
},
modal: {
- title: '新增 API 的扩展',
- editTitle: '编辑 API 的扩展',
+ title: '新增 API 扩展',
+ editTitle: '编辑 API 扩展',
name: {
title: '名称',
placeholder: '请输入名称',
@@ -328,9 +328,6 @@ const translation = {
lengthError: 'API-key 不能少于 5 位',
},
},
- confirm: {
- desc: '删除 WebHook 可能会导致这个 API 的扩展配置的扩展失败并产生错误。请谨慎删除。',
- },
},
about: {
changeLog: '更新日志',
@@ -433,6 +430,15 @@ const translation = {
},
existed: 'Prompt 中已存在',
},
+ imageUploader: {
+ uploadFromComputer: '从本地上传',
+ uploadFromComputerReadError: '图片读取失败,请重新选择。',
+ uploadFromComputerUploadError: '图片上传失败,请重新上传。',
+ uploadFromComputerLimit: '上传图片不能超过 {{size}} MB',
+ pasteImageLink: '粘贴图片链接',
+ pasteImageLinkInputPlaceholder: '将图像链接粘贴到此处',
+ pasteImageLinkInvalid: '图片链接无效',
+ },
}
export default translation
diff --git a/web/models/common.ts b/web/models/common.ts
index a7613ed4cf5..e4d90f83475 100644
--- a/web/models/common.ts
+++ b/web/models/common.ts
@@ -176,6 +176,7 @@ export type PluginProvider = {
export type FileUploadConfigResponse = {
file_size_limit: number
batch_count_limit: number
+ image_file_size_limit?: number | string
}
export type DocumentsLimitResponse = {
diff --git a/web/models/log.ts b/web/models/log.ts
index fd97f99f8a7..ced5165ef77 100644
--- a/web/models/log.ts
+++ b/web/models/log.ts
@@ -1,3 +1,5 @@
+import type { VisionFile } from '@/types/app'
+
// Log type contains key:string conversation_id:string created_at:string quesiton:string answer:string
export type Conversation = {
id: string
@@ -78,6 +80,7 @@ export type MessageContent = {
from_source?: 'admin' | 'user'
from_end_user_id?: string
}>
+ message_files: VisionFile[]
}
export type CompletionConversationGeneralDetail = {
diff --git a/web/package.json b/web/package.json
index 6a9d6645dfd..904f9193708 100644
--- a/web/package.json
+++ b/web/package.json
@@ -50,6 +50,7 @@
"next": "13.3.1",
"qrcode.react": "^3.1.0",
"qs": "^6.11.1",
+ "rc-textarea": "^1.5.2",
"react": "^18.2.0",
"react-18-input-autosize": "^3.0.0",
"react-dom": "^18.2.0",
diff --git a/web/service/base.ts b/web/service/base.ts
index 21106ce3790..0c07602cb93 100644
--- a/web/service/base.ts
+++ b/web/service/base.ts
@@ -297,12 +297,30 @@ const baseFetch = <T>(
]) as Promise<T>
}
-export const upload = (options: any): Promise<any> => {
+export const upload = (options: any, isPublicAPI?: boolean): Promise<any> => {
+ const urlPrefix = isPublicAPI ? PUBLIC_API_PREFIX : API_PREFIX
+ let token = ''
+ if (isPublicAPI) {
+ const sharedToken = globalThis.location.pathname.split('/').slice(-1)[0]
+ const accessToken = localStorage.getItem('token') || JSON.stringify({ [sharedToken]: '' })
+ let accessTokenJson = { [sharedToken]: '' }
+ try {
+ accessTokenJson = JSON.parse(accessToken)
+ }
+ catch (e) {
+
+ }
+ token = accessTokenJson[sharedToken]
+ }
+ else {
+ const accessToken = localStorage.getItem('console_token') || ''
+ token = accessToken
+ }
const defaultOptions = {
method: 'POST',
- url: `${API_PREFIX}/files/upload`,
+ url: `${urlPrefix}/files/upload`,
headers: {
- Authorization: `Bearer ${localStorage.getItem('console_token') || ''}`,
+ Authorization: `Bearer ${token}`,
},
data: {},
}
diff --git a/web/service/share.ts b/web/service/share.ts
index ce58fbf27f4..2f98314d988 100644
--- a/web/service/share.ts
+++ b/web/service/share.ts
@@ -80,6 +80,10 @@ export const renameConversation = async (isInstalledApp: boolean, installedAppId
return getAction('post', isInstalledApp)(getUrl(`conversations/${id}/name`, isInstalledApp, installedAppId), { body: { name } })
}
+export const generationConversationName = async (isInstalledApp: boolean, installedAppId = '', id: string) => {
+ return getAction('post', isInstalledApp)(getUrl(`conversations/${id}/name`, isInstalledApp, installedAppId), { body: { auto_generate: true } })
+}
+
export const fetchChatList = async (conversationId: string, isInstalledApp: boolean, installedAppId = '') => {
return getAction('get', isInstalledApp)(getUrl('messages', isInstalledApp, installedAppId), { params: { conversation_id: conversationId, limit: 20, last_id: '' } })
}
diff --git a/web/service/universal-chat.ts b/web/service/universal-chat.ts
index 319a069e40f..56e6b671a52 100644
--- a/web/service/universal-chat.ts
+++ b/web/service/universal-chat.ts
@@ -50,6 +50,10 @@ export const renameConversation = async (id: string, name: string) => {
return post(getUrl(`conversations/${id}/name`), { body: { name } })
}
+export const generationConversationName = async (id: string) => {
+ return post(getUrl(`conversations/${id}/name`), { body: { auto_generate: true } })
+}
+
export const fetchChatList = async (conversationId: string) => {
return get(getUrl('messages'), { params: { conversation_id: conversationId, limit: 20, last_id: '' } })
}
diff --git a/web/types/app.ts b/web/types/app.ts
index c90f93a29df..80a4ff588d0 100644
--- a/web/types/app.ts
+++ b/web/types/app.ts
@@ -176,6 +176,10 @@ export type ModelConfig = {
}
}
dataset_configs: DatasetConfigs
+ file_upload?: {
+ image: VisionSettings
+ }
+ files?: VisionFile[]
}
export const LanguagesSupported = ['zh-Hans', 'en-US'] as const
@@ -269,3 +273,40 @@ export type AppTemplate = {
/** Model */
model_config: ModelConfig
}
+
+export enum Resolution {
+ low = 'low',
+ high = 'high',
+}
+
+export enum TransferMethod {
+ all = 'all',
+ local_file = 'local_file',
+ remote_url = 'remote_url',
+}
+
+export type VisionSettings = {
+ enabled: boolean
+ number_limits: number
+ detail: Resolution
+ transfer_methods: TransferMethod[]
+ image_file_size_limit?: number | string
+}
+
+export type ImageFile = {
+ type: TransferMethod
+ _id: string
+ fileId: string
+ file?: File
+ progress: number
+ url: string
+ base64Url?: string
+}
+
+export type VisionFile = {
+ id?: string
+ type: string
+ transfer_method: TransferMethod
+ url: string
+ upload_file_id: string
+}
diff --git a/web/yarn.lock b/web/yarn.lock
index cf3169488d0..bfd38d6af5e 100644
--- a/web/yarn.lock
+++ b/web/yarn.lock
@@ -88,7 +88,7 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
-"@babel/runtime@^7.0.0", "@babel/runtime@^7.12.5", "@babel/runtime@^7.20.6", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.21.5", "@babel/runtime@^7.22.3", "@babel/runtime@^7.3.1":
+"@babel/runtime@^7.0.0", "@babel/runtime@^7.10.1", "@babel/runtime@^7.11.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.20.6", "@babel/runtime@^7.20.7", "@babel/runtime@^7.21.0", "@babel/runtime@^7.21.5", "@babel/runtime@^7.22.3", "@babel/runtime@^7.3.1":
version "7.22.3"
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz"
integrity sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==
@@ -149,13 +149,6 @@
dependencies:
"@floating-ui/utils" "^0.1.1"
-"@floating-ui/[email protected]":
- version "1.1.1"
- resolved "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.1.1.tgz"
- integrity sha512-TpIO93+DIujg3g7SykEAGZMDtbJRrmnYRCNYSjJlvIbGhBjRSNTLVbNeDQBrzy9qDgUbiWdc7KA0uZHZ2tJmiw==
- dependencies:
- "@floating-ui/core" "^1.1.0"
-
"@floating-ui/dom@^1.5.1":
version "1.5.1"
resolved "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.1.tgz"
@@ -164,6 +157,13 @@
"@floating-ui/core" "^1.4.1"
"@floating-ui/utils" "^0.1.1"
+"@floating-ui/[email protected]":
+ version "1.1.1"
+ resolved "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.1.1.tgz"
+ integrity sha512-TpIO93+DIujg3g7SykEAGZMDtbJRrmnYRCNYSjJlvIbGhBjRSNTLVbNeDQBrzy9qDgUbiWdc7KA0uZHZ2tJmiw==
+ dependencies:
+ "@floating-ui/core" "^1.1.0"
+
"@floating-ui/react-dom@^2.0.1":
version "2.0.2"
resolved "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.2.tgz"
@@ -223,7 +223,7 @@
resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz"
integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
-"@jridgewell/gen-mapping@^0.3.2":
+"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2":
version "0.3.3"
resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz"
integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==
@@ -242,17 +242,25 @@
resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz"
integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==
-"@jridgewell/[email protected]":
- version "1.4.14"
- resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz"
- integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==
+"@jridgewell/source-map@^0.3.3":
+ version "0.3.3"
+ resolved "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz"
+ integrity sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==
+ dependencies:
+ "@jridgewell/gen-mapping" "^0.3.0"
+ "@jridgewell/trace-mapping" "^0.3.9"
"@jridgewell/sourcemap-codec@^1.4.10":
version "1.4.15"
resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz"
integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==
-"@jridgewell/trace-mapping@^0.3.9":
+"@jridgewell/[email protected]":
+ version "1.4.14"
+ resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz"
+ integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==
+
+"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9":
version "0.3.18"
resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz"
integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==
@@ -262,7 +270,7 @@
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/clipboard/-/clipboard-0.12.2.tgz#cfa74da178673624ecd835eb9449545885cbefc7"
+ resolved "https://registry.npmjs.org/@lexical/clipboard/-/clipboard-0.12.2.tgz"
integrity sha512-RldmfZquuJJJCJ5WquCyoJ1/eZ+AnNgdksqvd+G+Yn/GyJl/+O3dnHM0QVaDSPvh/PynLFcCtz/57ySLo2kQxQ==
dependencies:
"@lexical/html" "0.12.2"
@@ -272,7 +280,7 @@
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/code/-/code-0.12.2.tgz#2484511cb9c3688bb85f477d448444250939986d"
+ resolved "https://registry.npmjs.org/@lexical/code/-/code-0.12.2.tgz"
integrity sha512-w2JeJdnMUtYnC/Fx78sL3iJBt9Ug8pFSDOcI9ay/BkMQFQV8oqq1iyuLLBBJSG4FAM8b2DXrVdGklRQ+jTfTVw==
dependencies:
"@lexical/utils" "0.12.2"
@@ -280,54 +288,54 @@
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/dragon/-/dragon-0.12.2.tgz#0ae209449a7ebe57c078584e28edb1b7354ecf99"
+ resolved "https://registry.npmjs.org/@lexical/dragon/-/dragon-0.12.2.tgz"
integrity sha512-Mt8NLzTOt+VgQtc2DKDbHBwKeRlvKqbLqRIMYUVk60gol+YV7NpVBsP1PAMuYYjrTQLhlckBSC32H1SUHZRavA==
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/hashtag/-/hashtag-0.12.2.tgz#d9c0f872b4a662b0393b289fa84515ec2c7cd624"
+ resolved "https://registry.npmjs.org/@lexical/hashtag/-/hashtag-0.12.2.tgz"
integrity sha512-2vYzIu5Ldf+eYdUrNA2m80c3N3MF3vJ0fIJzpl5QyX8OdViggEWl1bh+lKtw1Ju0H0CUyDIXdDLZ2apW3WDkTA==
dependencies:
"@lexical/utils" "0.12.2"
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/history/-/history-0.12.2.tgz#6870871c8120468a213e47c5b303f5b1dd378cba"
+ resolved "https://registry.npmjs.org/@lexical/history/-/history-0.12.2.tgz"
integrity sha512-PM/EDjnUyBPMWh1UiYb7T+FLbvTk14HwUWLXvZxn72S6Kj8ExH/PfLbWZWLCFL8RfzvbP407VwfSN8S0bF5H6g==
dependencies:
"@lexical/utils" "0.12.2"
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/html/-/html-0.12.2.tgz#6df09c362688b666da0f474d132d889415dbae8a"
+ resolved "https://registry.npmjs.org/@lexical/html/-/html-0.12.2.tgz"
integrity sha512-LWUO6OKhDtDZa9X1spHAqzsp+4EF01exis4cz5H9y2sHi7EofogXnRCadZ+fa07NVwPVTZWsStkk5qdSe/NEzg==
dependencies:
"@lexical/selection" "0.12.2"
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/link/-/link-0.12.2.tgz#33bf3ecdd98c2b27b2bdd67a8885649e1f528fc2"
+ resolved "https://registry.npmjs.org/@lexical/link/-/link-0.12.2.tgz"
integrity sha512-etOIONa7uyRDmwg8GN52kDlf8thD2Zk1LOFLeocHWz1V8fe3i2unGUek5s/rNPkc6ynpPpNsHdN1VEghOLCCmw==
dependencies:
"@lexical/utils" "0.12.2"
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/list/-/list-0.12.2.tgz#7afdd13026f936144ff93d40382f21924e8e6908"
+ resolved "https://registry.npmjs.org/@lexical/list/-/list-0.12.2.tgz"
integrity sha512-3CyWtYQC+IlK4cK/oiD8Uz1gSXD8UcKGOF2vVsDXkMU06O6zvHNmHZOnVJqA0JVNgZAoR9dMR1fi2xd4iuCAiw==
dependencies:
"@lexical/utils" "0.12.2"
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/mark/-/mark-0.12.2.tgz#bfcfffc9f74505e5a6160679812b3d6bafea9c78"
+ resolved "https://registry.npmjs.org/@lexical/mark/-/mark-0.12.2.tgz"
integrity sha512-ub+37PDfmThsqAWipRTrwqpgE+83ckqJ5C3mKQUBZvhZfVZW1rEUXZnKjFh2Q3eZK6iT7zVgoVJWJS9ZgEEyag==
dependencies:
"@lexical/utils" "0.12.2"
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/markdown/-/markdown-0.12.2.tgz#b11559590e8684525d4a11d2d78108c3498896b9"
+ resolved "https://registry.npmjs.org/@lexical/markdown/-/markdown-0.12.2.tgz"
integrity sha512-F2jTFtBp7Q+yoA11BeUOEcxhROzW+HUhUGdsn20pSLhuxsWRj3oUuryWFeNKFofpzTCVoqU6dwpaMNMI2mL/sQ==
dependencies:
"@lexical/code" "0.12.2"
@@ -339,22 +347,22 @@
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/offset/-/offset-0.12.2.tgz#9e4a36508790de1d643d4328986c5c3a2d847de0"
+ resolved "https://registry.npmjs.org/@lexical/offset/-/offset-0.12.2.tgz"
integrity sha512-rZLZXfOBmpmM8A2UZsX3cr/CQYw5F/ou67AbaKI0WImb5sjnIgICZqzu9VFUnkKlVNUurEpplV3UG3D1YYh1OQ==
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/overflow/-/overflow-0.12.2.tgz#b21ba828d6f02e99456d05df6c1d2771fb82aceb"
+ resolved "https://registry.npmjs.org/@lexical/overflow/-/overflow-0.12.2.tgz"
integrity sha512-UgE5j3ukO6qRFRpH4T7m/DvnodE9nCtImD7QinyGdsTa0hi5xlRnl0FUo605vH+vz7xEsUNAGwQXYPX9Sc/vig==
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/plain-text/-/plain-text-0.12.2.tgz#87c51de239190d9202122a62aeaae04cb2477cda"
+ resolved "https://registry.npmjs.org/@lexical/plain-text/-/plain-text-0.12.2.tgz"
integrity sha512-Lcg6+ngRnX70//kz34azYhID3bvW66HSHCfu5UPhCXT+vQ/Jkd/InhRKajBwWXpaJxMM1huoi3sjzVDb3luNtw==
"@lexical/react@^0.12.2":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/react/-/react-0.12.2.tgz#336805af7a3d8e69d5b0ef3d0efd7bd4cd8f29fb"
+ resolved "https://registry.npmjs.org/@lexical/react/-/react-0.12.2.tgz"
integrity sha512-ZBUvf5xmhiYWBw8pPrhYmLAEwFWrbF/cd15y76TUKD9l/2zDwwPs6nJQxBzfz3ei65r2/nnavLDV8W3QfvxfUA==
dependencies:
"@lexical/clipboard" "0.12.2"
@@ -378,29 +386,29 @@
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/rich-text/-/rich-text-0.12.2.tgz#9ef44e54777fc222ac8df344adb0d7428c784b25"
+ resolved "https://registry.npmjs.org/@lexical/rich-text/-/rich-text-0.12.2.tgz"
integrity sha512-igsEuv7CwBOAj5c8jeE41cnx6zkhI/Bkbu4W7shT6S6lNA/3cnyZpAMlgixwyK5RoqjGRCT+IJK5l6yBxQfNkw==
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/selection/-/selection-0.12.2.tgz#87e30b953b02923d1691f61d5189eb1be81a19ae"
+ resolved "https://registry.npmjs.org/@lexical/selection/-/selection-0.12.2.tgz"
integrity sha512-h+g3oOnihHKIyLTyG6uLCEVR/DmUEVdCcZO1iAoGsuW7nwWiWNPWj6oZ3Cw5J1Mk5u62DHnkkVDQsVSZbAwmtg==
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/table/-/table-0.12.2.tgz#59be2fd0413a9125017bb119aa950050bf92717b"
+ resolved "https://registry.npmjs.org/@lexical/table/-/table-0.12.2.tgz"
integrity sha512-tiAmTq6RKHDVER9v589Ajm9/RL+WTF1WschrH6HHVCtil6cfJfTJeJ+MF45+XEzB9fkqy2LfrScAfWxqLjVePA==
dependencies:
"@lexical/utils" "0.12.2"
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/text/-/text-0.12.2.tgz#623f8a9a56606e202febf4af80cfb5cf2da2a530"
+ resolved "https://registry.npmjs.org/@lexical/text/-/text-0.12.2.tgz"
integrity sha512-HyuIGuQvVi5djJKKBf+jYEBjK+0Eo9cKHf6WS7dlFozuCZvcCQEJkFy2yceWOwIVk+f2kptVQ5uO7aiZHExH2A==
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/utils/-/utils-0.12.2.tgz#b8325f1a1a0d043fd2b40d59cd00c4d7c038474b"
+ resolved "https://registry.npmjs.org/@lexical/utils/-/utils-0.12.2.tgz"
integrity sha512-xW4y4l2Yd37+qLwkBvBGyzsKCA9wnh1ljphBJeR2vreT193i2gaIwuku2ZKlER14VHw4192qNJF7vUoAEmwurQ==
dependencies:
"@lexical/list" "0.12.2"
@@ -409,12 +417,12 @@
"@lexical/[email protected]":
version "0.12.2"
- resolved "https://registry.npmmirror.com/@lexical/yjs/-/yjs-0.12.2.tgz#c0bebe1795ecb7e68d88d255dcbfcaa02740539d"
+ resolved "https://registry.npmjs.org/@lexical/yjs/-/yjs-0.12.2.tgz"
integrity sha512-OPJhkJD1Mp9W80mfLzASTB3OFWFMzJteUYA+eSyDgiX9zNi1VGxAqmIITTkDvnCMa+qvw4EfhGeGezpjx6Og4A==
dependencies:
"@lexical/offset" "0.12.2"
-"@mdx-js/loader@^2.3.0":
+"@mdx-js/loader@^2.3.0", "@mdx-js/loader@>=0.15.0":
version "2.3.0"
resolved "https://registry.npmjs.org/@mdx-js/loader/-/loader-2.3.0.tgz"
integrity sha512-IqsscXh7Q3Rzb+f5DXYk0HU71PK+WuFsEhf+mSV3fOhpLcEpgsHvTQ2h0T6TlZ5gHOaBeFjkXwB52by7ypMyNg==
@@ -445,7 +453,7 @@
unist-util-visit "^4.0.0"
vfile "^5.0.0"
-"@mdx-js/react@^2.3.0":
+"@mdx-js/react@^2.3.0", "@mdx-js/react@>=0.15.0":
version "2.3.0"
resolved "https://registry.npmjs.org/@mdx-js/react/-/react-2.3.0.tgz"
integrity sha512-zQH//gdOmuu7nt2oJR29vFhDv88oGPmVw6BggmrHeMI+xgEkp1B2dX9/bMBSYtK0dyLX/aOmesKS09g222K1/g==
@@ -460,7 +468,7 @@
version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/env/-/env-13.3.1.tgz#589707043065f6b71d411ed9b8f1ffd057c0fd4a"
+ resolved "https://registry.npmjs.org/@next/env/-/env-13.3.1.tgz"
integrity sha512-EDtCoedIZC7JlUQ3uaQpSc4aVmyhbLHmQVALg7pFfQgOTjgSnn7mKtA0DiCMkYvvsx6aFb5octGMtWrOtGXW9A==
@@ -479,49 +487,9 @@
version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.3.1.tgz#2c9719dd10a9cdf63bf50a7576b05dcf78999fe8"
+ resolved "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.3.1.tgz"
integrity sha512-UXPtriEc/pBP8luSLSCZBcbzPeVv+SSjs9cH/KygTbhmACye8/OOXRZO13Z2Wq1G0gLmEAIHQAOuF+vafPd2lw==
- version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.3.1.tgz#0be90342c89e53a390ccd9bece15f7f5cd480049"
- integrity sha512-lT36yYxosCfLtplFzJWgo0hrPu6/do8+msgM7oQkPeohDNdhjtjFUgOOwdSnPublLR6Mo2Ym4P/wl5OANuD2bw==
-
- version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.3.1.tgz#a7353265839f8b8569a346a444dc3ab3770d297e"
- integrity sha512-wRb76nLWJhonH8s3kxC/1tFguEkeOPayIwe9mkaz1G/yeS3OrjeyKMJsb4+Kdg0zbTo53bNCOl59NNtDM7yyyw==
-
- version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.3.1.tgz#24552e6102c350e372f83f505a1d93c880551a50"
- integrity sha512-qz3BzjJRZ16Iq/jrp+pjiYOc0jTjHlfmxQmZk9x/+5uhRP6/eWQSTAPVJ33BMo6oK5O5N4644OgTAbzXzorecg==
-
- version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.3.1.tgz#5f335a683b6eafa52307b12af97782993b6c45ff"
- integrity sha512-6mgkLmwlyWlomQmpl21I3hxgqE5INoW4owTlcLpNsd1V4wP+J46BlI/5zV5KWWbzjfncIqzXoeGs5Eg+1GHODA==
-
- version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.3.1.tgz#58e5aad6f97203a0788783f66324456c8f9cdb50"
- integrity sha512-uqm5sielhQmKJM+qayIhgZv1KlS5pqTdQ99b+Z7hMWryXS96qE0DftTmMZowBcUL6x7s2vSXyH5wPtO1ON7LBg==
-
- version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.3.1.tgz#f8ed1badab57ed4503969758754e6fb0cf326753"
- integrity sha512-WomIiTj/v3LevltlibNQKmvrOymNRYL+a0dp5R73IwPWN5FvXWwSELN/kiNALig/+T3luc4qHNTyvMCp9L6U5Q==
-
- version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.3.1.tgz#7f599c8975b09ee5527cc49b9e5a4d13be50635a"
- integrity sha512-M+PoH+0+q658wRUbs285RIaSTYnGBSTdweH/0CdzDgA6Q4rBM0sQs4DHmO3BPP0ltCO/vViIoyG7ks66XmCA5g==
-
- version "13.3.1"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.3.1.tgz#192d43ab44ebb98bd4f5865d0e1d7ce62703182f"
- integrity sha512-Sl1F4Vp5Z1rNXWZYqJwMuWRRol4bqOB6+/d7KqkgQ4AcafKPN1PZmpkCoxv4UFHtFNIB7EotnuIhtXu3zScicQ==
-
"@nodelib/[email protected]":
version "2.1.5"
resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz"
@@ -530,7 +498,7 @@
"@nodelib/fs.stat" "2.0.5"
run-parallel "^1.1.9"
-"@nodelib/[email protected]", "@nodelib/fs.stat@^2.0.2":
+"@nodelib/fs.stat@^2.0.2", "@nodelib/[email protected]":
version "2.0.5"
resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz"
integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==
@@ -621,7 +589,7 @@
resolved "https://registry.npmjs.org/@sentry/types/-/types-7.54.0.tgz"
integrity sha512-D+i9xogBeawvQi2r0NOrM7zYcUaPuijeME4O9eOTrDF20tj71hWtJLilK+KTGLYFtpGg1h+9bPaz7OHEIyVopg==
-"@sentry/[email protected]", "@sentry/utils@^7.54.0":
+"@sentry/utils@^7.54.0", "@sentry/[email protected]":
version "7.54.0"
resolved "https://registry.npmjs.org/@sentry/utils/-/utils-7.54.0.tgz"
integrity sha512-3Yf5KlKjIcYLddOexSt2ovu2TWlR4Fi7M+aCK8yUTzwNzf/xwFSWOstHlD/WiDy9HvfhWAOB/ukNTuAeJmtasw==
@@ -631,7 +599,7 @@
version "0.5.0"
- resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.0.tgz#bf1d807b60f7290d0ec763feea7ccdeda06e85f1"
+ resolved "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.0.tgz"
integrity sha512-SjY/p4MmECVVEWspzSRpQEM3sjR17sP8PbGxELWrT+YZMBfiUyt1MRUNjMV23zohwlG2HYtCQOsCwsTHguXkyg==
dependencies:
tslib "^2.4.0"
@@ -687,6 +655,22 @@
dependencies:
"@types/ms" "*"
+"@types/eslint-scope@^3.7.3":
+ version "3.7.4"
+ resolved "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz"
+ integrity sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==
+ dependencies:
+ "@types/eslint" "*"
+ "@types/estree" "*"
+
+"@types/eslint@*":
+ version "8.40.0"
+ resolved "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz"
+ integrity sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==
+ dependencies:
+ "@types/estree" "*"
+ "@types/json-schema" "*"
+
"@types/estree-jsx@^1.0.0":
version "1.0.0"
resolved "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.0.tgz"
@@ -716,7 +700,7 @@
resolved "https://registry.npmjs.org/@types/js-cookie/-/js-cookie-3.0.3.tgz"
integrity sha512-Xe7IImK09HP1sv2M/aI+48a20VX+TdRJucfq4vfRVy6nWN8PYPOEnlMRSgxJAgYQIXJVL8dZ4/ilAM7dWNaOww==
-"@types/json-schema@^7.0.9":
+"@types/json-schema@*", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
version "7.0.12"
resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz"
integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==
@@ -833,7 +817,7 @@
dependencies:
"@types/react" "*"
-"@types/react@*", "@types/[email protected]", "@types/react@>=16":
+"@types/react@*", "@types/react@>=16", "@types/[email protected]":
version "18.0.28"
resolved "https://registry.npmjs.org/@types/react/-/react-18.0.28.tgz"
integrity sha512-RD0ivG1kEztNBdoAK7lekI9M+azSnitIn85h4iOiaLjaTrMjzslhaqCGaI4IyCJ1RljWiLCEu4jyrLLgqxBTew==
@@ -857,7 +841,7 @@
resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz"
integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==
-"@types/sortablejs@^1.15.1":
+"@types/sortablejs@^1.15.1", "@types/sortablejs@1":
version "1.15.1"
resolved "https://registry.npmjs.org/@types/sortablejs/-/sortablejs-1.15.1.tgz"
integrity sha512-g/JwBNToh6oCTAwNS8UGVmjO7NLDKsejVhvE4x1eWiPTC3uCuNsa/TD4ssvX3du+MLiM+SHPNDuijp8y76JzLQ==
@@ -867,7 +851,7 @@
resolved "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz"
integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==
-"@typescript-eslint/eslint-plugin@^5.53.0":
+"@typescript-eslint/eslint-plugin@^5.0.0", "@typescript-eslint/eslint-plugin@^5.53.0":
version "5.59.9"
resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.9.tgz"
integrity sha512-4uQIBq1ffXd2YvF7MAvehWKW3zVv/w+mSfRAu+8cKbfj3nwzyqJLNcZJpQ/WZ1HLbJDiowwmQ6NO+63nCA+fqA==
@@ -883,7 +867,7 @@
semver "^7.3.7"
tsutils "^3.21.0"
-"@typescript-eslint/parser@^5.42.0", "@typescript-eslint/parser@^5.53.0":
+"@typescript-eslint/parser@^5.0.0", "@typescript-eslint/parser@^5.42.0", "@typescript-eslint/parser@^5.53.0":
version "5.59.9"
resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.9.tgz"
integrity sha512-FsPkRvBtcLQ/eVK1ivDiNYBjn3TGJdXy2fhXX+rc7czWl4ARwnpArwbihSOHI2Peg9WbtGHrbThfBUkZZGTtvQ==
@@ -929,7 +913,7 @@
semver "^7.3.7"
tsutils "^3.21.0"
-"@typescript-eslint/[email protected]", "@typescript-eslint/utils@^5.10.0", "@typescript-eslint/utils@^5.53.0":
+"@typescript-eslint/utils@^5.10.0", "@typescript-eslint/utils@^5.53.0", "@typescript-eslint/[email protected]":
version "5.59.9"
resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.9.tgz"
integrity sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg==
@@ -951,12 +935,148 @@
"@typescript-eslint/types" "5.59.9"
eslint-visitor-keys "^3.3.0"
+"@webassemblyjs/ast@^1.11.5", "@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz"
+ integrity sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==
+ dependencies:
+ "@webassemblyjs/helper-numbers" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz"
+ integrity sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz"
+ integrity sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz"
+ integrity sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz"
+ integrity sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==
+ dependencies:
+ "@webassemblyjs/floating-point-hex-parser" "1.11.6"
+ "@webassemblyjs/helper-api-error" "1.11.6"
+ "@xtuc/long" "4.2.2"
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz"
+ integrity sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz"
+ integrity sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-buffer" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+ "@webassemblyjs/wasm-gen" "1.11.6"
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz"
+ integrity sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==
+ dependencies:
+ "@xtuc/ieee754" "^1.2.0"
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz"
+ integrity sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==
+ dependencies:
+ "@xtuc/long" "4.2.2"
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz"
+ integrity sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==
+
+"@webassemblyjs/wasm-edit@^1.11.5":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz"
+ integrity sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-buffer" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+ "@webassemblyjs/helper-wasm-section" "1.11.6"
+ "@webassemblyjs/wasm-gen" "1.11.6"
+ "@webassemblyjs/wasm-opt" "1.11.6"
+ "@webassemblyjs/wasm-parser" "1.11.6"
+ "@webassemblyjs/wast-printer" "1.11.6"
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz"
+ integrity sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+ "@webassemblyjs/ieee754" "1.11.6"
+ "@webassemblyjs/leb128" "1.11.6"
+ "@webassemblyjs/utf8" "1.11.6"
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz"
+ integrity sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-buffer" "1.11.6"
+ "@webassemblyjs/wasm-gen" "1.11.6"
+ "@webassemblyjs/wasm-parser" "1.11.6"
+
+"@webassemblyjs/wasm-parser@^1.11.5", "@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz"
+ integrity sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@webassemblyjs/helper-api-error" "1.11.6"
+ "@webassemblyjs/helper-wasm-bytecode" "1.11.6"
+ "@webassemblyjs/ieee754" "1.11.6"
+ "@webassemblyjs/leb128" "1.11.6"
+ "@webassemblyjs/utf8" "1.11.6"
+
+"@webassemblyjs/[email protected]":
+ version "1.11.6"
+ resolved "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz"
+ integrity sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==
+ dependencies:
+ "@webassemblyjs/ast" "1.11.6"
+ "@xtuc/long" "4.2.2"
+
+"@xtuc/ieee754@^1.2.0":
+ version "1.2.0"
+ resolved "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz"
+ integrity sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==
+
+ version "4.2.2"
+ resolved "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz"
+ integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==
+
+acorn-import-assertions@^1.9.0:
+ version "1.9.0"
+ resolved "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz"
+ integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==
+
acorn-jsx@^5.0.0, acorn-jsx@^5.3.2:
version "5.3.2"
resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz"
integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
-acorn@^8.0.0, acorn@^8.5.0, acorn@^8.8.0:
+"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8, acorn@^8.0.0, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.8.0, acorn@^8.8.2:
version "8.8.2"
resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz"
integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==
@@ -990,7 +1110,12 @@ ahooks@^3.7.5:
screenfull "^5.0.0"
tslib "^2.4.1"
-ajv@^6.10.0, ajv@^6.12.4:
+ajv-keywords@^3.5.2:
+ version "3.5.2"
+ resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz"
+ integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==
+
+ajv@^6.10.0, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.9.1:
version "6.12.6"
resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz"
integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
@@ -1212,7 +1337,7 @@ braces@^3.0.2, braces@~3.0.2:
dependencies:
fill-range "^7.0.1"
-browserslist@^4.21.5:
+browserslist@^4.14.5, browserslist@^4.21.5, "browserslist@>= 4.21.0":
version "4.21.7"
resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz"
integrity sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==
@@ -1222,6 +1347,11 @@ browserslist@^4.21.5:
node-releases "^2.0.12"
update-browserslist-db "^1.0.11"
+buffer-from@^1.0.0:
+ version "1.1.2"
+ resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz"
+ integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==
+
builtin-modules@^3.3.0:
version "3.3.0"
resolved "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz"
@@ -1276,11 +1406,6 @@ ccount@^2.0.0:
resolved "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz"
integrity sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==
- version "5.2.0"
- resolved "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz"
- integrity sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==
-
chalk@^2.0.0:
version "2.4.2"
resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz"
@@ -1298,6 +1423,11 @@ chalk@^4.0.0:
ansi-styles "^4.1.0"
supports-color "^7.1.0"
+ version "5.2.0"
+ resolved "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz"
+ integrity sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==
+
character-entities-html4@^2.0.0:
version "2.1.0"
resolved "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz"
@@ -1333,7 +1463,7 @@ character-reference-invalid@^2.0.0:
resolved "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz"
integrity sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==
-"chokidar@>=3.0.0 <4.0.0", chokidar@^3.5.3:
+chokidar@^3.5.3, "chokidar@>=3.0.0 <4.0.0":
version "3.5.3"
resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz"
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
@@ -1348,21 +1478,26 @@ character-reference-invalid@^2.0.0:
optionalDependencies:
fsevents "~2.3.2"
+chrome-trace-event@^1.0.2:
+ version "1.0.3"
+ resolved "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz"
+ integrity sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==
+
ci-info@^3.6.1:
version "3.8.0"
resolved "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz"
integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==
+classnames@^2.2.1, classnames@^2.3.2:
+ version "2.3.2"
+ resolved "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz"
+ integrity sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==
+
version "2.3.1"
resolved "https://registry.npmjs.org/classnames/-/classnames-2.3.1.tgz"
integrity sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA==
-classnames@^2.3.2:
- version "2.3.2"
- resolved "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz"
- integrity sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==
-
clean-regexp@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz"
@@ -1398,7 +1533,7 @@ cli-truncate@^3.1.0:
slice-ansi "^5.0.0"
string-width "^5.0.0"
[email protected], client-only@^0.0.1:
+client-only@^0.0.1, [email protected]:
version "0.0.1"
resolved "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz"
integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==
@@ -1417,16 +1552,16 @@ color-convert@^2.0.1:
dependencies:
color-name "~1.1.4"
- version "1.1.3"
- resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz"
- integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==
-
color-name@~1.1.4:
version "1.1.4"
resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
+ version "1.1.3"
+ resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz"
+ integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==
+
colorette@^2.0.19:
version "2.0.20"
resolved "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz"
@@ -1442,16 +1577,16 @@ comma-separated-tokens@^2.0.0:
resolved "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz"
integrity sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==
-commander@7:
- version "7.2.0"
- resolved "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz"
- integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==
-
commander@^10.0.0:
version "10.0.1"
resolved "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz"
integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==
+commander@^2.20.0:
+ version "2.20.3"
+ resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz"
+ integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
+
commander@^4.0.0:
version "4.1.1"
resolved "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz"
@@ -1462,6 +1597,11 @@ commander@^8.3.0:
resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz"
integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
+commander@7:
+ version "7.2.0"
+ resolved "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz"
+ integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==
+
version "0.0.1"
resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
@@ -1490,14 +1630,14 @@ cose-base@^2.2.0:
cross-env@^7.0.3:
version "7.0.3"
- resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
+ resolved "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz"
integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==
dependencies:
cross-spawn "^7.0.1"
cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
version "7.0.3"
- resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
+ resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
dependencies:
path-key "^3.1.0"
@@ -1506,7 +1646,7 @@ cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
crypto-js@^4.2.0:
version "4.2.0"
- resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631"
+ resolved "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz"
integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==
cssesc@^3.0.0:
@@ -1533,7 +1673,7 @@ cytoscape-fcose@^2.1.0:
dependencies:
cose-base "^2.2.0"
-cytoscape@^3.23.0:
+cytoscape@^3.2.0, cytoscape@^3.23.0:
version "3.26.0"
resolved "https://registry.npmjs.org/cytoscape/-/cytoscape-3.26.0.tgz"
integrity sha512-IV+crL+KBcrCnVVUCZW+zRRRFUZQcrtdOPXki+o4CFUWLdAEYvuZLcBSJC9EBK++suamERKzeY7roq2hdovV3w==
@@ -1541,6 +1681,13 @@ cytoscape@^3.23.0:
heap "^0.2.6"
lodash "^4.17.21"
+d3-array@^3.2.0, "d3-array@2 - 3", "[email protected] - 3", "[email protected] - 3", d3-array@3:
+ version "3.2.4"
+ resolved "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz"
+ integrity sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==
+ dependencies:
+ internmap "1 - 2"
+
"d3-array@1 - 2":
version "2.12.1"
resolved "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz"
@@ -1548,13 +1695,6 @@ cytoscape@^3.23.0:
dependencies:
internmap "^1.0.0"
-"d3-array@2 - 3", "[email protected] - 3", "[email protected] - 3", d3-array@3, d3-array@^3.2.0:
- version "3.2.4"
- resolved "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz"
- integrity sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==
- dependencies:
- internmap "1 - 2"
-
d3-axis@3:
version "3.0.0"
resolved "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz"
@@ -1664,16 +1804,16 @@ d3-hierarchy@3:
dependencies:
d3-color "1 - 3"
+d3-path@^3.1.0, "d3-path@1 - 3", d3-path@3:
+ version "3.1.0"
+ resolved "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz"
+ integrity sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==
+
d3-path@1:
version "1.0.9"
resolved "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz"
integrity sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==
-"d3-path@1 - 3", d3-path@3, d3-path@^3.1.0:
- version "3.1.0"
- resolved "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz"
- integrity sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==
-
d3-polygon@3:
version "3.0.1"
resolved "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz"
@@ -1721,13 +1861,6 @@ d3-scale@4:
resolved "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz"
integrity sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==
-d3-shape@3:
- version "3.2.0"
- resolved "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz"
- integrity sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==
- dependencies:
- d3-path "^3.1.0"
-
d3-shape@^1.2.0:
version "1.3.7"
resolved "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz"
@@ -1735,6 +1868,13 @@ d3-shape@^1.2.0:
dependencies:
d3-path "1"
+d3-shape@3:
+ version "3.2.0"
+ resolved "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz"
+ integrity sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==
+ dependencies:
+ d3-path "^3.1.0"
+
"d3-time-format@2 - 4", d3-time-format@4:
version "4.1.0"
resolved "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz"
@@ -2007,7 +2147,7 @@ echarts-for-react@^3.0.2:
fast-deep-equal "^3.1.3"
size-sensor "^1.0.1"
-echarts@^5.4.1:
+"echarts@^3.0.0 || ^4.0.0 || ^5.0.0", echarts@^5.4.1:
version "5.4.2"
resolved "https://registry.npmjs.org/echarts/-/echarts-5.4.2.tgz"
integrity sha512-2W3vw3oI2tWJdyAz+b8DuWS0nfXtSDqlDmqgin/lfzbkB01cuMEN66KWBlmur3YMp5nEDEEt5s23pllnAzB4EA==
@@ -2040,7 +2180,7 @@ emoji-regex@^9.2.2:
resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz"
integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
-enhanced-resolve@^5.12.0:
+enhanced-resolve@^5.12.0, enhanced-resolve@^5.14.1:
version "5.14.1"
resolved "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz"
integrity sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==
@@ -2115,6 +2255,11 @@ es-get-iterator@^1.1.3:
isarray "^2.0.5"
stop-iteration-iterator "^1.0.0"
+es-module-lexer@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz"
+ integrity sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==
+
es-set-tostringtag@^2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz"
@@ -2235,7 +2380,7 @@ eslint-plugin-html@^7.1.0:
dependencies:
htmlparser2 "^8.0.1"
-eslint-plugin-import@^2.26.0, eslint-plugin-import@^2.27.5:
+eslint-plugin-import@*, eslint-plugin-import@^2.26.0, eslint-plugin-import@^2.27.5:
version "2.27.5"
resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz"
integrity sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==
@@ -2408,7 +2553,7 @@ eslint-rule-composer@^0.3.0:
resolved "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz"
integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==
-eslint-scope@^5.1.1:
+eslint-scope@^5.1.1, [email protected]:
version "5.1.1"
resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz"
integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==
@@ -2453,7 +2598,7 @@ eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4
resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz"
integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==
+eslint@*, "eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^3 || ^4 || ^5 || ^6 || ^7 || ^8", "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0", "eslint@^6.0.0 || ^7.0.0 || ^8.0.0", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", "eslint@^6.2.0 || ^7.0.0 || ^8.0.0", "eslint@^7.0.0 || ^8.0.0", "eslint@^7.23.0 || ^8.0.0", eslint@^8.0.0, eslint@>=4.19.1, eslint@>=5, eslint@>=6.0.0, eslint@>=7.0.0, eslint@>=7.4.0, eslint@>=8.28.0, [email protected]:
version "8.36.0"
resolved "https://registry.npmjs.org/eslint/-/eslint-8.36.0.tgz"
integrity sha512-Y956lmS7vDqomxlaaQAHVmeb4tNMp2FWIvU/RnU5BD3IKMD/MJPr76xdyr68P8tV1iNMvN2mRK0yy3c+UjL+bw==
@@ -2582,6 +2727,11 @@ esutils@^2.0.2:
resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz"
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
+events@^3.2.0:
+ version "3.3.0"
+ resolved "https://registry.npmjs.org/events/-/events-3.3.0.tgz"
+ integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==
+
execa@^5.0.0:
version "5.1.1"
resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz"
@@ -2782,7 +2932,7 @@ get-tsconfig@^4.5.0:
dependencies:
resolve-pkg-maps "^1.0.0"
-glob-parent@^5.1.2, glob-parent@~5.1.2:
+glob-parent@^5.1.2:
version "5.1.2"
resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
@@ -2796,6 +2946,30 @@ glob-parent@^6.0.2:
dependencies:
is-glob "^4.0.3"
+glob-parent@~5.1.2:
+ version "5.1.2"
+ resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
+ integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
+ dependencies:
+ is-glob "^4.0.1"
+
+glob-to-regexp@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz"
+ integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==
+
+glob@^7.1.3:
+ version "7.2.3"
+ resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz"
+ integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
+ dependencies:
+ fs.realpath "^1.0.0"
+ inflight "^1.0.4"
+ inherits "2"
+ minimatch "^3.1.1"
+ once "^1.3.0"
+ path-is-absolute "^1.0.0"
+
version "7.1.6"
resolved "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz"
@@ -2820,18 +2994,6 @@ [email protected]:
once "^1.3.0"
path-is-absolute "^1.0.0"
-glob@^7.1.3:
- version "7.2.3"
- resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz"
- integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
- dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^3.1.1"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
-
globals@^13.19.0:
version "13.20.0"
resolved "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz"
@@ -2876,7 +3038,7 @@ gopd@^1.0.1:
dependencies:
get-intrinsic "^1.1.3"
-graceful-fs@^4.2.4:
+graceful-fs@^4.1.2, graceful-fs@^4.2.4, graceful-fs@^4.2.9:
version "4.2.11"
resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz"
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
@@ -3113,7 +3275,7 @@ i18next-resources-to-backend@^1.1.3:
dependencies:
"@babel/runtime" "^7.21.5"
-i18next@^22.4.13:
+i18next@^22.4.13, "i18next@>= 19.0.0":
version "22.5.1"
resolved "https://registry.npmjs.org/i18next/-/i18next-22.5.1.tgz"
integrity sha512-8TGPgM3pAD+VRsMtUMNknRz3kzqwp/gPALrWMsDnmC1mKqJwpWyooQRLMcbTwq8z8YwSmuj+ZYvc+xCuEpkssA==
@@ -3192,16 +3354,16 @@ internal-slot@^1.0.3, internal-slot@^1.0.4, internal-slot@^1.0.5:
has "^1.0.3"
side-channel "^1.0.4"
-"internmap@1 - 2":
- version "2.0.3"
- resolved "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz"
- integrity sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==
-
internmap@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz"
integrity sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==
+"internmap@1 - 2":
+ version "2.0.3"
+ resolved "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz"
+ integrity sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==
+
intersection-observer@^0.12.0:
version "0.12.2"
resolved "https://registry.npmjs.org/intersection-observer/-/intersection-observer-0.12.2.tgz"
@@ -3498,6 +3660,20 @@ isexe@^2.0.0:
resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"
integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
+isomorphic.js@^0.2.4:
+ version "0.2.5"
+ resolved "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.2.5.tgz"
+ integrity sha512-PIeMbHqMt4DnUP3MA/Flc0HElYjMXArsw1qwJZcm9sqR8mq3l8NYizFMty0pWwE/tzIGH3EKK5+jes5mAr85yw==
+
+jest-worker@^27.4.5:
+ version "27.5.1"
+ resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz"
+ integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==
+ dependencies:
+ "@types/node" "*"
+ merge-stream "^2.0.0"
+ supports-color "^8.0.0"
+
jiti@^1.18.2:
version "1.18.2"
resolved "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz"
@@ -3545,7 +3721,7 @@ jsesc@~0.5.0:
resolved "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz"
integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==
-json-parse-even-better-errors@^2.3.0:
+json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1:
version "2.3.1"
resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz"
integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==
@@ -3639,12 +3815,19 @@ levn@^0.4.1:
prelude-ls "^1.2.1"
type-check "~0.4.0"
-lexical@^0.12.2:
+lexical@^0.12.2, [email protected]:
version "0.12.2"
- resolved "https://registry.npmmirror.com/lexical/-/lexical-0.12.2.tgz#68535e145715d5788374495c9ee0420e417d792b"
+ resolved "https://registry.npmjs.org/lexical/-/lexical-0.12.2.tgz"
integrity sha512-Kxavd+ETjxtVwG/hvPd6WZfXD44sLOKe9Vlkwxy7lBQ1qZArS+rZfs+u5iXwXe6tX9f2PIM0u3RHsrCEDDE0fw==
[email protected], lilconfig@^2.0.5, lilconfig@^2.1.0:
+lib0@^0.2.74:
+ version "0.2.85"
+ resolved "https://registry.npmjs.org/lib0/-/lib0-0.2.85.tgz"
+ integrity sha512-vtAhVttLXCu3ps2OIsTz8CdKYKdcMo7ds1MNBIcSXz6vrY8sxASqpTi4vmsAIn7xjWvyT7haKcWW6woP6jebjQ==
+ dependencies:
+ isomorphic.js "^0.2.4"
+
+lilconfig@^2.0.5, lilconfig@^2.1.0, [email protected]:
version "2.1.0"
resolved "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz"
integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==
@@ -3687,6 +3870,11 @@ listr2@^5.0.7:
through "^2.3.8"
wrap-ansi "^7.0.0"
+loader-runner@^4.2.0:
+ version "4.3.0"
+ resolved "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz"
+ integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==
+
local-pkg@^0.4.3:
version "0.4.3"
resolved "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.3.tgz"
@@ -3918,7 +4106,43 @@ mdast-util-from-markdown@^0.8.5:
parse-entities "^2.0.0"
unist-util-stringify-position "^2.0.0"
-mdast-util-from-markdown@^1.0.0, mdast-util-from-markdown@^1.1.0, mdast-util-from-markdown@^1.3.0:
+mdast-util-from-markdown@^1.0.0:
+ version "1.3.1"
+ resolved "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz"
+ integrity sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ "@types/unist" "^2.0.0"
+ decode-named-character-reference "^1.0.0"
+ mdast-util-to-string "^3.1.0"
+ micromark "^3.0.0"
+ micromark-util-decode-numeric-character-reference "^1.0.0"
+ micromark-util-decode-string "^1.0.0"
+ micromark-util-normalize-identifier "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+ unist-util-stringify-position "^3.0.0"
+ uvu "^0.5.0"
+
+mdast-util-from-markdown@^1.1.0:
+ version "1.3.1"
+ resolved "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz"
+ integrity sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+ "@types/unist" "^2.0.0"
+ decode-named-character-reference "^1.0.0"
+ mdast-util-to-string "^3.1.0"
+ micromark "^3.0.0"
+ micromark-util-decode-numeric-character-reference "^1.0.0"
+ micromark-util-decode-string "^1.0.0"
+ micromark-util-normalize-identifier "^1.0.0"
+ micromark-util-symbol "^1.0.0"
+ micromark-util-types "^1.0.0"
+ unist-util-stringify-position "^3.0.0"
+ uvu "^0.5.0"
+
+mdast-util-from-markdown@^1.3.0:
version "1.3.1"
resolved "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz"
integrity sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==
@@ -4103,7 +4327,14 @@ mdast-util-to-string@^2.0.0:
resolved "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz"
integrity sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==
-mdast-util-to-string@^3.0.0, mdast-util-to-string@^3.1.0:
+mdast-util-to-string@^3.0.0:
+ version "3.2.0"
+ resolved "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz"
+ integrity sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==
+ dependencies:
+ "@types/mdast" "^3.0.0"
+
+mdast-util-to-string@^3.1.0:
version "3.2.0"
resolved "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz"
integrity sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==
@@ -4547,6 +4778,18 @@ micromatch@^4.0.4, micromatch@^4.0.5:
braces "^3.0.2"
picomatch "^2.3.1"
+ version "1.52.0"
+ resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz"
+ integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==
+
+mime-types@^2.1.27:
+ version "2.1.35"
+ resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz"
+ integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==
+ dependencies:
+ mime-db "1.52.0"
+
mimic-fn@^2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz"
@@ -4611,7 +4854,7 @@ mri@^1.1.0:
resolved "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz"
integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==
[email protected], ms@^2.1.1:
+ms@^2.1.1, [email protected]:
version "2.1.2"
resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
@@ -4645,9 +4888,14 @@ negotiator@^0.6.3:
resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz"
integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==
+neo-async@^2.6.2:
+ version "2.6.2"
+ resolved "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz"
+ integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
+
version "13.3.1"
- resolved "https://registry.yarnpkg.com/next/-/next-13.3.1.tgz#17625f7423db2e059d71b41bd9031756cf2b33bc"
+ resolved "https://registry.npmjs.org/next/-/next-13.3.1.tgz"
integrity sha512-eByWRxPzKHs2oQz1yE41LX35umhz86ZSZ+mYyXBqn2IBi2hyUqxBA88avywdr4uyH+hCJczegGsDGWbzQA5Rqw==
dependencies:
"@next/env" "13.3.1"
@@ -4798,7 +5046,14 @@ once@^1.3.0:
dependencies:
wrappy "1"
-onetime@^5.1.0, onetime@^5.1.2:
+onetime@^5.1.0:
+ version "5.1.2"
+ resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz"
+ integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
+ dependencies:
+ mimic-fn "^2.1.0"
+
+onetime@^5.1.2:
version "5.1.2"
resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz"
integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
@@ -5029,14 +5284,6 @@ postcss-nested@^6.0.1:
dependencies:
postcss-selector-parser "^6.0.11"
[email protected], postcss-selector-parser@^6.0.9:
- version "6.0.10"
- resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz"
- integrity sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==
- dependencies:
- cssesc "^3.0.0"
- util-deprecate "^1.0.2"
-
postcss-selector-parser@^6.0.11:
version "6.0.13"
resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz"
@@ -5045,11 +5292,28 @@ postcss-selector-parser@^6.0.11:
cssesc "^3.0.0"
util-deprecate "^1.0.2"
+postcss-selector-parser@^6.0.9, [email protected]:
+ version "6.0.10"
+ resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz"
+ integrity sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==
+ dependencies:
+ cssesc "^3.0.0"
+ util-deprecate "^1.0.2"
+
postcss-value-parser@^4.0.0, postcss-value-parser@^4.2.0:
version "4.2.0"
resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz"
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
+postcss@^8.0.0, postcss@^8.1.0, postcss@^8.2.14, postcss@^8.4.21, postcss@^8.4.23, postcss@^8.4.31, postcss@>=8.0.9:
+ version "8.4.31"
+ resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz"
+ integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==
+ dependencies:
+ nanoid "^3.3.6"
+ picocolors "^1.0.0"
+ source-map-js "^1.0.2"
+
version "8.4.14"
resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz"
@@ -5059,15 +5323,6 @@ [email protected]:
picocolors "^1.0.0"
source-map-js "^1.0.2"
-postcss@^8.4.23, postcss@^8.4.31:
- version "8.4.31"
- resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d"
- integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==
- dependencies:
- nanoid "^3.3.6"
- picocolors "^1.0.0"
- source-map-js "^1.0.2"
-
prelude-ls@^1.2.1:
version "1.2.1"
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz"
@@ -5119,7 +5374,7 @@ punycode@^2.1.0:
qrcode.react@^3.1.0:
version "3.1.0"
- resolved "https://registry.yarnpkg.com/qrcode.react/-/qrcode.react-3.1.0.tgz#5c91ddc0340f768316fbdb8fff2765134c2aecd8"
+ resolved "https://registry.npmjs.org/qrcode.react/-/qrcode.react-3.1.0.tgz"
integrity sha512-oyF+Urr3oAMUG/OiOuONL3HXM+53wvuH3mtIWQrYmsXoAq0DkvZp2RYUWFSMFtbdOpuS++9v+WAkzNVkMlNW6Q==
qs@^6.11.1:
@@ -5134,6 +5389,51 @@ queue-microtask@^1.2.2:
resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz"
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
+randombytes@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz"
+ integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==
+ dependencies:
+ safe-buffer "^5.1.0"
+
+rc-input@~1.3.5:
+ version "1.3.6"
+ resolved "https://registry.npmjs.org/rc-input/-/rc-input-1.3.6.tgz"
+ integrity sha512-/HjTaKi8/Ts4zNbYaB5oWCquxFyFQO4Co1MnMgoCeGJlpe7k8Eir2HN0a0F9IHDmmo+GYiGgPpz7w/d/krzsJA==
+ dependencies:
+ "@babel/runtime" "^7.11.1"
+ classnames "^2.2.1"
+ rc-util "^5.18.1"
+
+rc-resize-observer@^1.0.0:
+ version "1.4.0"
+ resolved "https://registry.npmjs.org/rc-resize-observer/-/rc-resize-observer-1.4.0.tgz"
+ integrity sha512-PnMVyRid9JLxFavTjeDXEXo65HCRqbmLBw9xX9gfC4BZiSzbLXKzW3jPz+J0P71pLbD5tBMTT+mkstV5gD0c9Q==
+ dependencies:
+ "@babel/runtime" "^7.20.7"
+ classnames "^2.2.1"
+ rc-util "^5.38.0"
+ resize-observer-polyfill "^1.5.1"
+
+rc-textarea@^1.5.2:
+ version "1.5.2"
+ resolved "https://registry.npmjs.org/rc-textarea/-/rc-textarea-1.5.2.tgz"
+ integrity sha512-VVwKYtkp5whZVhP+llX8zM8TtI3dv+BDA0FUbmBMGLaW/tuBJ7Yh35yPabO63V+Bi68xv17eI4hy+/4p2G0gFg==
+ dependencies:
+ "@babel/runtime" "^7.10.1"
+ classnames "^2.2.1"
+ rc-input "~1.3.5"
+ rc-resize-observer "^1.0.0"
+ rc-util "^5.27.0"
+
+rc-util@^5.18.1, rc-util@^5.27.0, rc-util@^5.38.0:
+ version "5.38.1"
+ resolved "https://registry.npmjs.org/rc-util/-/rc-util-5.38.1.tgz"
+ integrity sha512-e4ZMs7q9XqwTuhIK7zBIVFltUtMSjphuPPQXHoHlzRzNdOwUxDejo0Zls5HYaJfRKNURcsS/ceKVULlhjBrxng==
+ dependencies:
+ "@babel/runtime" "^7.18.3"
+ react-is "^18.2.0"
+
react-18-input-autosize@^3.0.0:
version "3.0.0"
resolved "https://registry.npmjs.org/react-18-input-autosize/-/react-18-input-autosize-3.0.0.tgz"
@@ -5141,7 +5441,7 @@ react-18-input-autosize@^3.0.0:
dependencies:
prop-types "^15.5.8"
-react-dom@^18.2.0:
+react-dom@*, "react-dom@^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react-dom@^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0", "react-dom@^16 || ^17 || ^18", react-dom@^18.2.0, react-dom@>=16.0.0, react-dom@>=16.14.0, react-dom@>=16.8.0, react-dom@>=16.9.0, react-dom@>=17.x:
version "18.2.0"
resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz"
integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==
@@ -5195,6 +5495,11 @@ react-is@^18.0.0:
resolved "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz"
integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==
+react-is@^18.2.0:
+ version "18.2.0"
+ resolved "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz"
+ integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==
+
react-markdown@^8.0.6:
version "8.0.7"
resolved "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz"
@@ -5276,7 +5581,7 @@ react-window@^1.8.9:
"@babel/runtime" "^7.0.0"
memoize-one ">=3.1.1 <6"
-react@^18.2.0:
+"react@^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react@^15.0.0 || >=16.0.0", "react@^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0", "react@^16 || ^17 || ^18", "react@^16.11.0 || ^17.0.0 || ^18.0.0", "react@^16.3.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", react@^18.2.0, "react@>= 0.14.0", "react@>= 16", "react@>= 16.8.0", "react@>= 16.8.0 || 17.x.x || ^18.0.0-0", react@>=16, react@>=16.0.0, react@>=16.13.1, react@>=16.14.0, react@>=16.8.0, react@>=16.9.0, react@>=17.x, "[email protected] || 16.x || 17.x || 18.x":
version "18.2.0"
resolved "https://registry.npmjs.org/react/-/react-18.2.0.tgz"
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
@@ -5530,6 +5835,11 @@ sade@^1.7.3:
dependencies:
mri "^1.1.0"
+safe-buffer@^5.1.0:
+ version "5.2.1"
+ resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz"
+ integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
+
safe-regex-test@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz"
@@ -5548,10 +5858,10 @@ safe-regex@^2.1.1:
"safer-buffer@>= 2.1.2 < 3.0.0":
version "2.1.2"
- resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
+ resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz"
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
-sass@^1.61.0:
+sass@^1.3.0, sass@^1.61.0:
version "1.62.1"
resolved "https://registry.npmjs.org/sass/-/sass-1.62.1.tgz"
integrity sha512-NHpxIzN29MXvWiuswfc1W3I0N8SXBd8UR26WntmDlRYf0bSADnwnOjsyMZ3lMezSlArD33Vs3YFhp7dWvL770A==
@@ -5560,35 +5870,51 @@ sass@^1.61.0:
immutable "^4.0.0"
source-map-js ">=0.6.2 <2.0.0"
-scheduler@^0.23.0:
+scheduler@^0.23.0, scheduler@>=0.19.0:
version "0.23.0"
resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz"
integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==
dependencies:
loose-envify "^1.1.0"
+schema-utils@^3.1.1, schema-utils@^3.1.2:
+ version "3.1.2"
+ resolved "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz"
+ integrity sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==
+ dependencies:
+ "@types/json-schema" "^7.0.8"
+ ajv "^6.12.5"
+ ajv-keywords "^3.5.2"
+
screenfull@^5.0.0:
version "5.2.0"
resolved "https://registry.npmjs.org/screenfull/-/screenfull-5.2.0.tgz"
integrity sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==
-"semver@2 || 3 || 4 || 5":
- version "5.7.2"
- resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8"
- integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==
-
semver@^6.3.0:
- version "6.3.1"
- resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
- integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
+ version "6.3.0"
+ resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz"
+ integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
semver@^7.0.0, semver@^7.3.5, semver@^7.3.6, semver@^7.3.7, semver@^7.3.8:
- version "7.5.4"
- resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
- integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
+ version "7.5.1"
+ resolved "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz"
+ integrity sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==
dependencies:
lru-cache "^6.0.0"
+"semver@2 || 3 || 4 || 5":
+ version "5.7.1"
+ resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz"
+ integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
+
+serialize-javascript@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz"
+ integrity sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==
+ dependencies:
+ randombytes "^2.1.0"
+
server-only@^0.0.1:
version "0.0.1"
resolved "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz"
@@ -5661,16 +5987,29 @@ slice-ansi@^5.0.0:
ansi-styles "^6.0.0"
is-fullwidth-code-point "^4.0.0"
-sortablejs@^1.15.0:
+sortablejs@^1.15.0, sortablejs@1:
version "1.15.0"
resolved "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.0.tgz"
integrity sha512-bv9qgVMjUMf89wAvM6AxVvS/4MX3sPeN0+agqShejLU5z5GX4C75ow1O2e5k4L6XItUyAK3gH6AxSbXrOM5e8w==
-"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.2:
+source-map-js@^1.0.2, "source-map-js@>=0.6.2 <2.0.0":
version "1.0.2"
resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz"
integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
+source-map-support@~0.5.20:
+ version "0.5.21"
+ resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz"
+ integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==
+ dependencies:
+ buffer-from "^1.0.0"
+ source-map "^0.6.0"
+
+source-map@^0.6.0:
+ version "0.6.1"
+ resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz"
+ integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
+
source-map@^0.7.0:
version "0.7.4"
resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz"
@@ -5729,7 +6068,16 @@ string-argv@^0.3.1:
resolved "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz"
integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==
-string-width@^4.1.0, string-width@^4.2.0:
+string-width@^4.1.0:
+ version "4.2.3"
+ resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.1"
+
+string-width@^4.2.0:
version "4.2.3"
resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -5883,6 +6231,13 @@ supports-color@^7.1.0:
dependencies:
has-flag "^4.0.0"
+supports-color@^8.0.0:
+ version "8.1.1"
+ resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz"
+ integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==
+ dependencies:
+ has-flag "^4.0.0"
+
supports-preserve-symlinks-flag@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz"
@@ -5908,7 +6263,7 @@ tabbable@^6.0.1:
resolved "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz"
integrity sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==
-tailwindcss@^3.3.3:
+tailwindcss@^3.3.3, "tailwindcss@>=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1", "tailwindcss@>=3.0.0 || insiders":
version "3.3.3"
resolved "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz"
integrity sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==
@@ -5936,11 +6291,32 @@ tailwindcss@^3.3.3:
resolve "^1.22.2"
sucrase "^3.32.0"
-tapable@^2.2.0:
+tapable@^2.1.1, tapable@^2.2.0:
version "2.2.1"
resolved "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz"
integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
+terser-webpack-plugin@^5.3.7:
+ version "5.3.9"
+ resolved "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz"
+ integrity sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==
+ dependencies:
+ "@jridgewell/trace-mapping" "^0.3.17"
+ jest-worker "^27.4.5"
+ schema-utils "^3.1.1"
+ serialize-javascript "^6.0.1"
+ terser "^5.16.8"
+
+terser@^5.16.8:
+ version "5.17.7"
+ resolved "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz"
+ integrity sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==
+ dependencies:
+ "@jridgewell/source-map" "^0.3.3"
+ acorn "^8.8.2"
+ commander "^2.20.0"
+ source-map-support "~0.5.20"
+
text-table@^0.2.0:
version "0.2.0"
resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz"
@@ -6022,12 +6398,12 @@ tsconfig-paths@^3.14.1:
minimist "^1.2.6"
strip-bom "^3.0.0"
- version "2.3.0"
- resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz"
- integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==
+tslib@^1.8.1:
+ version "1.14.1"
+ resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz"
+ integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
-tslib@^1.8.1, tslib@^1.9.3:
+tslib@^1.9.3:
version "1.14.1"
resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
@@ -6037,6 +6413,11 @@ tslib@^2.1.0, tslib@^2.4.0, tslib@^2.4.1, tslib@^2.5.0:
resolved "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz"
integrity sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==
+ version "2.3.0"
+ resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz"
+ integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==
+
tsutils@^3.21.0:
version "3.21.0"
resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz"
@@ -6080,7 +6461,7 @@ typed-array-length@^1.0.4:
for-each "^0.3.3"
is-typed-array "^1.1.9"
+"typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta", typescript@>=3.3.1, typescript@>=3.9, [email protected]:
version "4.9.5"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
@@ -6293,6 +6674,14 @@ vue-eslint-parser@^9.3.0:
lodash "^4.17.21"
semver "^7.3.6"
+watchpack@^2.4.0:
+ version "2.4.0"
+ resolved "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz"
+ integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==
+ dependencies:
+ glob-to-regexp "^0.4.1"
+ graceful-fs "^4.1.2"
+
web-namespaces@^2.0.0:
version "2.0.1"
resolved "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz"
@@ -6300,9 +6689,44 @@ web-namespaces@^2.0.0:
web-worker@^1.2.0:
version "1.2.0"
- resolved "https://registry.yarnpkg.com/web-worker/-/web-worker-1.2.0.tgz#5d85a04a7fbc1e7db58f66595d7a3ac7c9c180da"
+ resolved "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz"
integrity sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA==
+webpack-sources@^3.2.3:
+ version "3.2.3"
+ resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz"
+ integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
+
+webpack@^5.1.0, webpack@>=4:
+ version "5.85.1"
+ resolved "https://registry.npmjs.org/webpack/-/webpack-5.85.1.tgz"
+ integrity sha512-xTb7MRf4LY8Z5rzn7aIx4TDrwYJrjcHnIfU1TqtyZOoObyuGSpAUwIvVuqq5wPnv7WEgQr8UvO1q/dgoGG4HjA==
+ dependencies:
+ "@types/eslint-scope" "^3.7.3"
+ "@types/estree" "^1.0.0"
+ "@webassemblyjs/ast" "^1.11.5"
+ "@webassemblyjs/wasm-edit" "^1.11.5"
+ "@webassemblyjs/wasm-parser" "^1.11.5"
+ acorn "^8.7.1"
+ acorn-import-assertions "^1.9.0"
+ browserslist "^4.14.5"
+ chrome-trace-event "^1.0.2"
+ enhanced-resolve "^5.14.1"
+ es-module-lexer "^1.2.1"
+ eslint-scope "5.1.1"
+ events "^3.2.0"
+ glob-to-regexp "^0.4.1"
+ graceful-fs "^4.2.9"
+ json-parse-even-better-errors "^2.3.1"
+ loader-runner "^4.2.0"
+ mime-types "^2.1.27"
+ neo-async "^2.6.2"
+ schema-utils "^3.1.2"
+ tapable "^2.1.1"
+ terser-webpack-plugin "^5.3.7"
+ watchpack "^2.4.0"
+ webpack-sources "^3.2.3"
+
which-boxed-primitive@^1.0.2:
version "1.0.2"
resolved "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz"
@@ -6344,9 +6768,9 @@ which@^2.0.1:
isexe "^2.0.0"
word-wrap@^1.2.3:
- version "1.2.5"
- resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34"
- integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==
+ version "1.2.3"
+ resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz"
+ integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
wrap-ansi@^6.2.0:
version "6.2.0"
@@ -6400,6 +6824,13 @@ yaml@^2.0.0, yaml@^2.1.1, yaml@^2.2.2:
resolved "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz"
integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==
+yjs@>=13.5.22:
+ version "13.6.7"
+ resolved "https://registry.npmjs.org/yjs/-/yjs-13.6.7.tgz"
+ integrity sha512-mCZTh4kjvUS2DnaktsYN6wLH3WZCJBLqrTdkWh1bIDpA/sB/GNFaLA/dyVJj2Hc7KwONuuoC/vWe9bwBBosZLQ==
+ dependencies:
+ lib0 "^0.2.74"
+
yocto-queue@^0.1.0:
version "0.1.0"
resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz"