@lobehub/chat 0.96.4 → 0.96.6

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.96.6](https://github.com/lobehub/lobe-chat/compare/v0.96.5...v0.96.6)
6
+
7
+ <sup>Released on **2023-10-30**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Improve plausible analytics ENV.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Improve plausible analytics ENV ([aa851d4](https://github.com/lobehub/lobe-chat/commit/aa851d4))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 0.96.5](https://github.com/lobehub/lobe-chat/compare/v0.96.4...v0.96.5)
31
+
32
+ <sup>Released on **2023-10-29**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: Fix docker image optimization error log.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: Fix docker image optimization error log ([730aec1](https://github.com/lobehub/lobe-chat/commit/730aec1))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 0.96.4](https://github.com/lobehub/lobe-chat/compare/v0.96.3...v0.96.4)
6
56
 
7
57
  <sup>Released on **2023-10-29**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.96.4",
3
+ "version": "0.96.6",
4
4
  "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -154,6 +154,7 @@
154
154
  "prettier": "^3",
155
155
  "remark-cli": "^11",
156
156
  "semantic-release": "^21",
157
+ "sharp": "^0.32.6",
157
158
  "stylelint": "^15",
158
159
  "ts-node": "^10",
159
160
  "typescript": "^5",
@@ -3,11 +3,8 @@ import { createStyles } from 'antd-style';
3
3
  export const useStyles = createStyles(({ css, token }) => ({
4
4
  prompt: css`
5
5
  overflow: hidden auto;
6
-
7
6
  padding: 0 16px 16px;
8
-
9
7
  opacity: 0.75;
10
-
11
8
  transition: opacity 200ms ${token.motionEaseOut};
12
9
 
13
10
  &:hover {
@@ -5,14 +5,17 @@ import { memo } from 'react';
5
5
 
6
6
  import { getClientConfig } from '@/config/client';
7
7
 
8
- const { PLAUSIBLE_DOMAIN } = getClientConfig();
8
+ const { PLAUSIBLE_DOMAIN, PLAUSIBLE_SCRIPT_BASE_URL } = getClientConfig();
9
9
 
10
- const PlausibleAnalytics = memo(() => {
11
- return (
10
+ const PlausibleAnalytics = memo(
11
+ () =>
12
12
  PLAUSIBLE_DOMAIN && (
13
- <Script data-domain={PLAUSIBLE_DOMAIN} defer src="https://plausible.io/js/script.js" />
14
- )
15
- );
16
- });
13
+ <Script
14
+ data-domain={PLAUSIBLE_DOMAIN}
15
+ defer
16
+ src={`${PLAUSIBLE_SCRIPT_BASE_URL}/js/script.js`}
17
+ />
18
+ ),
19
+ );
17
20
 
18
21
  export default PlausibleAnalytics;
@@ -16,6 +16,7 @@ declare global {
16
16
 
17
17
  NEXT_PUBLIC_ANALYTICS_PLAUSIBLE?: string;
18
18
  NEXT_PUBLIC_PLAUSIBLE_DOMAIN?: string;
19
+ NEXT_PUBLIC_PLAUSIBLE_SCRIPT_BASE_URL?: string;
19
20
 
20
21
  NEXT_PUBLIC_ANALYTICS_POSTHOG: string;
21
22
  NEXT_PUBLIC_POSTHOG_KEY: string;
@@ -40,6 +41,8 @@ export const getClientConfig = () => ({
40
41
  // Plausible Analytics
41
42
  ANALYTICS_PLAUSIBLE: process.env.NEXT_PUBLIC_ANALYTICS_PLAUSIBLE === '1',
42
43
  PLAUSIBLE_DOMAIN: process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN,
44
+ PLAUSIBLE_SCRIPT_BASE_URL:
45
+ process.env.NEXT_PUBLIC_PLAUSIBLE_SCRIPT_BASE_URL || 'https://plausible.io',
43
46
 
44
47
  // Posthog Analytics
45
48
  ANALYTICS_POSTHOG: process.env.NEXT_PUBLIC_ANALYTICS_POSTHOG === '1',
@@ -13,9 +13,7 @@ const useStyles = createStyles(({ css, cx, stylish }) => ({
13
13
  stylish.noScrollbar,
14
14
  css`
15
15
  position: relative;
16
-
17
16
  overflow: hidden auto;
18
-
19
17
  width: 100vw;
20
18
  height: 100%;
21
19
  `,