Skip to content

Commit c2eb04c

Browse files
DingGao-Devingaoding.devingao
andauthored
Feat/feat mdstream only (#253)
* feat: 分别导出markdown组件和chat组件 * feat: 修改license * chore: Publish feat/feat-mdstream-only * feat: 添加license * chore: Publish feat/feat-mdstream-only --------- Co-authored-by: gaoding.devingao <[email protected]>
1 parent 2e5dcaf commit c2eb04c

File tree

10 files changed

+83
-5
lines changed

10 files changed

+83
-5
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/chat-sdk",
5+
"comment": "分别导出markdown组件和chat组件",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@coze/chat-sdk",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/chat-sdk",
5+
"comment": "修改license",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@coze/chat-sdk",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze/chat-sdk",
5+
"comment": "添加license",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@coze/chat-sdk",
10+
"email": "[email protected]"
11+
}

packages/chat-sdk/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Spring (SG) Pte. Ltd.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/chat-sdk/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Coze Chat Sdk
2+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
23

34
## Introduction
45
Coze Chat Sdk is a chat sdk for Coze, which provides a unified chat interface for Coze platforms. It is designed to be compatible with Taro and Web.

packages/chat-sdk/config/index.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,24 @@ export default defineConfig(async merge => {
100100
staticDirectory: 'static',
101101
output: isBuildNative
102102
? {
103-
filename: 'exports/index.js',
103+
/* filename: (pathData, assetInfo) => {
104+
console.log(
105+
'pathData, assetInfo:',
106+
pathData.filename,
107+
pathData.basename,
108+
pathData.url,
109+
assetInfo,
110+
);
111+
return 'exports/index.js';
112+
},*/
104113
chunkLoadingGlobal: `webpackJsonp_coze_chat_sdk`,
105114
}
106115
: undefined,
107116

108117
miniCssExtractPluginOption: isBuildNative
109118
? {
110119
ignoreOrder: true,
111-
filename: 'exports/index.css',
120+
//filename: 'exports/index.css',
112121
}
113122
: undefined,
114123
imageUrlLoaderOption: {

packages/chat-sdk/package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
{
22
"name": "@coze/chat-sdk",
3-
"version": "0.1.11-beta.15",
3+
"version": "0.1.11-beta.17",
44
"description": "Coze chat components for taro",
5+
"license": "MIT",
56
"author": "[email protected]",
67
"exports": {
78
".": "./dist/lib-source/src/exports/index.js",
89
"./webJs": {
910
"import": "./dist/lib-h5/exports/index.js",
1011
"types": "./dist/lib-source/src/exports/index.d.ts"
1112
},
12-
"./webCss": "./dist/lib-h5/exports/index.css",
13+
"./markdownJs": {
14+
"import": "./dist/lib-h5/exports/markdown/index.js",
15+
"types": "./dist/lib-source/src/exports/index.d.ts"
16+
},
17+
"./webCss": "./dist/lib-h5/css/exports/index.css",
18+
"./markdownCss": "./dist/lib-h5/css/exports/markdown/index.css",
1319
"./types": "./dist/lib-source/src/exports/index.d.ts"
1420
},
1521
"main": "./dist/lib-source/src/exports/index.js",
@@ -23,6 +29,7 @@
2329
},
2430
"files": [
2531
"dist",
32+
"LICENSE",
2633
"!**/*.map",
2734
"README.md"
2835
],

packages/chat-sdk/src/app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default defineAppConfig({
1313
components:
1414
isBuildNative && isWeapp
1515
? ['exports/weapp/chat-framework/index']
16-
: ['exports/index'],
16+
: ['exports/index', 'exports/markdown/index'],
1717
window: {
1818
backgroundTextStyle: 'light',
1919
navigationBarBackgroundColor: '#fff',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default {};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { MdStream } from '../../libs/ui-kit/atomic/md-stream';
2+
3+
export default {
4+
MdStream,
5+
};
6+
export { MdStream };

0 commit comments

Comments
 (0)