@alicloud/appflow-chat 0.0.5 → 0.0.6-beta.1
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/dist/appflow-chat.cjs.js +142 -142
- package/dist/appflow-chat.esm.js +6700 -6623
- package/package.json +1 -1
- package/src/components/MessageBubble.tsx +1 -1
- package/src/components/RichMessageBubble.tsx +1 -1
- package/src/core/SourceContent.tsx +1 -1
- package/src/markdown/index.tsx +6 -6
package/package.json
CHANGED
|
@@ -310,7 +310,7 @@ export const MessageBubble: React.FC<MessageBubbleProps> = ({
|
|
|
310
310
|
<div style={{ borderRadius: '4px', backgroundColor: '#f0f2f5', padding: '8px' }}>
|
|
311
311
|
<StyledWrapSpace>
|
|
312
312
|
{images.map((url, index) => (
|
|
313
|
-
<Image key={index} src={url} height={50} />
|
|
313
|
+
<Image key={index} src={url} height={50} referrerPolicy="no-referrer" />
|
|
314
314
|
))}
|
|
315
315
|
</StyledWrapSpace>
|
|
316
316
|
</div>
|
|
@@ -216,7 +216,7 @@ export const RichMessageBubble: React.FC<RichMessageBubbleProps> = ({
|
|
|
216
216
|
<div style={{ borderRadius: '4px', backgroundColor: '#f0f2f5', padding: '8px' }}>
|
|
217
217
|
<StyledWrapSpace>
|
|
218
218
|
{images.map((url: string, index: number) => (
|
|
219
|
-
<Image key={index} src={url} height={50} />
|
|
219
|
+
<Image key={index} src={url} height={50} referrerPolicy="no-referrer" />
|
|
220
220
|
))}
|
|
221
221
|
</StyledWrapSpace>
|
|
222
222
|
</div>
|
|
@@ -274,7 +274,7 @@ export const SourceContent: React.FC<SourceContentProps> = ({
|
|
|
274
274
|
<StyledWrapSpace>
|
|
275
275
|
{uniqueImages.map((image, index) => (
|
|
276
276
|
<StyledImageBox key={index}>
|
|
277
|
-
<Image src={image} width={50} height={50} preview={{ zIndex: 1100 }}/>
|
|
277
|
+
<Image src={image} width={50} height={50} referrerPolicy="no-referrer" preview={{ zIndex: 1100 }}/>
|
|
278
278
|
</StyledImageBox>
|
|
279
279
|
))}
|
|
280
280
|
</StyledWrapSpace>
|
package/src/markdown/index.tsx
CHANGED
|
@@ -45,12 +45,12 @@ export const MarkdownView: React.FC<MarkdownViewProps> = ({
|
|
|
45
45
|
return (
|
|
46
46
|
<Image
|
|
47
47
|
style={{
|
|
48
|
-
maxWidth: '
|
|
49
|
-
maxHeight: '
|
|
50
|
-
objectFit: 'contain',
|
|
48
|
+
maxWidth: '100%',
|
|
49
|
+
maxHeight: '600px',
|
|
51
50
|
}}
|
|
52
51
|
src={props.src}
|
|
53
52
|
alt={props.alt}
|
|
53
|
+
referrerPolicy="no-referrer"
|
|
54
54
|
preview={{ zIndex: 1100 }}
|
|
55
55
|
/>
|
|
56
56
|
);
|
|
@@ -176,13 +176,13 @@ export const MarkdownView: React.FC<MarkdownViewProps> = ({
|
|
|
176
176
|
<>
|
|
177
177
|
<Image
|
|
178
178
|
style={{
|
|
179
|
-
maxWidth: '
|
|
180
|
-
maxHeight: '
|
|
181
|
-
objectFit: 'contain',
|
|
179
|
+
maxWidth: '100%',
|
|
180
|
+
maxHeight: '600px',
|
|
182
181
|
}}
|
|
183
182
|
src={image.properties.src}
|
|
184
183
|
className="max-w-full h-auto align-middle border-none rounded-lg shadow-md hover:shadow-lg transition-shadow duration-300 ease-in-out mt-2 mb-2"
|
|
185
184
|
alt={image.properties.alt}
|
|
185
|
+
referrerPolicy="no-referrer"
|
|
186
186
|
preview={{ zIndex: 1100 }}
|
|
187
187
|
/>
|
|
188
188
|
{isSlice && <p>
|