@lobehub/chat 0.116.0 → 0.116.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +3 -0
  3. package/package.json +2 -1
  4. package/src/app/chat/(mobile)/features/TopicList.tsx +6 -1
  5. package/src/app/chat/features/ChatHeader/ShareButton/Preview.tsx +23 -77
  6. package/src/app/chat/features/ChatHeader/ShareButton/ShareModal.tsx +141 -0
  7. package/src/app/chat/features/ChatHeader/ShareButton/index.tsx +3 -11
  8. package/src/app/chat/features/ChatHeader/ShareButton/type.ts +14 -0
  9. package/src/app/chat/features/ChatHeader/ShareButton/useScreenshot.ts +60 -0
  10. package/src/app/chat/features/SystemRole/index.tsx +0 -1
  11. package/src/app/chat/features/TopicListContent/index.tsx +3 -9
  12. package/src/app/chat/settings/features/SubmitAgentButton/{Inner.tsx → SubmitAgentModal.tsx} +23 -17
  13. package/src/app/chat/settings/features/SubmitAgentButton/index.tsx +3 -10
  14. package/src/app/market/(mobile)/features/AgentDetail.tsx +7 -1
  15. package/src/app/market/features/ShareAgentButton/Inner.tsx +2 -3
  16. package/src/features/PluginDetailModal/index.tsx +27 -29
  17. package/src/features/PluginDevModal/PluginPreview.tsx +1 -1
  18. package/src/features/PluginDevModal/index.tsx +73 -76
  19. package/src/features/PluginSettings/PluginSettingRender.tsx +22 -2
  20. package/src/features/PluginSettings/index.tsx +7 -1
  21. package/src/features/PluginStore/InstalledPluginList.tsx +2 -2
  22. package/src/features/PluginStore/OnlineList.tsx +2 -2
  23. package/src/features/PluginStore/index.tsx +17 -22
  24. package/src/app/chat/features/ChatHeader/ShareButton/Inner.tsx +0 -125
  25. package/src/components/MobilePadding/index.tsx +0 -32
  26. package/src/features/PluginStore/StoreSetting.tsx +0 -56
@@ -1,56 +0,0 @@
1
- import { Alert, Form, Input, Modal } from '@lobehub/ui';
2
- import { memo } from 'react';
3
- import { useTranslation } from 'react-i18next';
4
- import { Flexbox } from 'react-layout-kit';
5
-
6
- import MobilePadding from '@/components/MobilePadding';
7
- import { PLUGINS_INDEX_URL, WIKI_PLUGIN_GUIDE } from '@/const/url';
8
-
9
- interface MarketSettingModalProps {
10
- onOpenChange: (open: boolean) => void;
11
- open?: boolean;
12
- }
13
-
14
- const StoreSetting = memo<MarketSettingModalProps>(({ open, onOpenChange }) => {
15
- const { t } = useTranslation('plugin');
16
-
17
- return (
18
- <Modal footer={null} onCancel={() => onOpenChange(false)} open={open} title={t('setting')}>
19
- <Flexbox gap={16}>
20
- <MobilePadding bottom={0} gap={16}>
21
- <Alert message={t('settings.indexUrl.tooltip')} showIcon type={'warning'} />
22
- </MobilePadding>
23
- <Form
24
- items={[
25
- {
26
- children: [
27
- {
28
- children: (
29
- <Input
30
- defaultValue={PLUGINS_INDEX_URL}
31
- disabled
32
- placeholder={PLUGINS_INDEX_URL}
33
- style={{ width: '100%' }}
34
- />
35
- ),
36
- desc: (
37
- <>
38
- {t('dev.modalDesc')}
39
- <a href={WIKI_PLUGIN_GUIDE} rel="noreferrer" target={'_blank'}>
40
- {WIKI_PLUGIN_GUIDE}
41
- </a>
42
- </>
43
- ),
44
- label: t('settings.indexUrl.title'),
45
- },
46
- ],
47
- title: t('settings.title'),
48
- },
49
- ]}
50
- />
51
- </Flexbox>
52
- </Modal>
53
- );
54
- });
55
-
56
- export default StoreSetting;