@blocklet/aigne-hub 0.2.7
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/README.md +29 -0
- package/lib/cjs/api/ai-kit.js +60 -0
- package/lib/cjs/api/api.js +17 -0
- package/lib/cjs/api/app.js +57 -0
- package/lib/cjs/api/call/api.js +51 -0
- package/lib/cjs/api/call/app.js +74 -0
- package/lib/cjs/api/call/index.js +19 -0
- package/lib/cjs/api/call/proxy.js +64 -0
- package/lib/cjs/api/call/v1.js +166 -0
- package/lib/cjs/api/call/v2.js +101 -0
- package/lib/cjs/api/config.js +46 -0
- package/lib/cjs/api/constants.js +4 -0
- package/lib/cjs/api/error.js +42 -0
- package/lib/cjs/api/index.js +19 -0
- package/lib/cjs/api/types/audio.js +2 -0
- package/lib/cjs/api/types/chat.js +14 -0
- package/lib/cjs/api/types/embedding.js +2 -0
- package/lib/cjs/api/types/image.js +2 -0
- package/lib/cjs/api/types/index.js +19 -0
- package/lib/cjs/api/types/status.js +2 -0
- package/lib/cjs/api/utils/auth.js +90 -0
- package/lib/cjs/api/utils/event-stream.js +59 -0
- package/lib/cjs/components/conversation/conversation.js +71 -0
- package/lib/cjs/components/conversation/index.js +25 -0
- package/lib/cjs/components/conversation/message.js +120 -0
- package/lib/cjs/components/conversation/prompt.js +43 -0
- package/lib/cjs/components/conversation/use-conversation.js +100 -0
- package/lib/cjs/components/credit/alert.js +40 -0
- package/lib/cjs/components/credit/balance.js +95 -0
- package/lib/cjs/components/credit/button.js +69 -0
- package/lib/cjs/components/credit/index.js +12 -0
- package/lib/cjs/components/form-label.js +27 -0
- package/lib/cjs/components/image-preview.js +116 -0
- package/lib/cjs/components/index.js +45 -0
- package/lib/cjs/components/loading-image.js +37 -0
- package/lib/cjs/components/subscribe/alert.js +53 -0
- package/lib/cjs/components/subscribe/button.js +92 -0
- package/lib/cjs/components/subscribe/state.js +42 -0
- package/lib/cjs/components/switch-button.js +48 -0
- package/lib/cjs/components/table.js +203 -0
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/libs/logger.js +8 -0
- package/lib/cjs/utils/withLocaleProvider.js +11 -0
- package/lib/esm/api/ai-kit.js +54 -0
- package/lib/esm/api/api.js +11 -0
- package/lib/esm/api/app.js +42 -0
- package/lib/esm/api/call/api.js +24 -0
- package/lib/esm/api/call/app.js +68 -0
- package/lib/esm/api/call/index.js +3 -0
- package/lib/esm/api/call/proxy.js +58 -0
- package/lib/esm/api/call/v1.js +155 -0
- package/lib/esm/api/call/v2.js +93 -0
- package/lib/esm/api/config.js +41 -0
- package/lib/esm/api/constants.js +1 -0
- package/lib/esm/api/error.js +37 -0
- package/lib/esm/api/index.js +3 -0
- package/lib/esm/api/types/audio.js +1 -0
- package/lib/esm/api/types/chat.js +9 -0
- package/lib/esm/api/types/embedding.js +1 -0
- package/lib/esm/api/types/image.js +1 -0
- package/lib/esm/api/types/index.js +3 -0
- package/lib/esm/api/types/status.js +1 -0
- package/lib/esm/api/utils/auth.js +79 -0
- package/lib/esm/api/utils/event-stream.js +50 -0
- package/lib/esm/components/conversation/conversation.js +65 -0
- package/lib/esm/components/conversation/index.js +4 -0
- package/lib/esm/components/conversation/message.js +114 -0
- package/lib/esm/components/conversation/prompt.js +40 -0
- package/lib/esm/components/conversation/use-conversation.js +97 -0
- package/lib/esm/components/credit/alert.js +35 -0
- package/lib/esm/components/credit/balance.js +90 -0
- package/lib/esm/components/credit/button.js +64 -0
- package/lib/esm/components/credit/index.js +3 -0
- package/lib/esm/components/form-label.js +24 -0
- package/lib/esm/components/image-preview.js +110 -0
- package/lib/esm/components/index.js +14 -0
- package/lib/esm/components/loading-image.js +35 -0
- package/lib/esm/components/subscribe/alert.js +48 -0
- package/lib/esm/components/subscribe/button.js +87 -0
- package/lib/esm/components/subscribe/state.js +39 -0
- package/lib/esm/components/switch-button.js +46 -0
- package/lib/esm/components/table.js +198 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/libs/logger.js +3 -0
- package/lib/esm/utils/withLocaleProvider.js +8 -0
- package/lib/types/api/ai-kit.d.ts +70 -0
- package/lib/types/api/api.d.ts +4 -0
- package/lib/types/api/app.d.ts +113 -0
- package/lib/types/api/call/api.d.ts +2 -0
- package/lib/types/api/call/app.d.ts +50 -0
- package/lib/types/api/call/index.d.ts +3 -0
- package/lib/types/api/call/proxy.d.ts +6 -0
- package/lib/types/api/call/v1.d.ts +51 -0
- package/lib/types/api/call/v2.d.ts +30 -0
- package/lib/types/api/config.d.ts +14 -0
- package/lib/types/api/constants.d.ts +1 -0
- package/lib/types/api/error.d.ts +18 -0
- package/lib/types/api/index.d.ts +3 -0
- package/lib/types/api/types/audio.d.ts +18 -0
- package/lib/types/api/types/chat.d.ts +97 -0
- package/lib/types/api/types/embedding.d.ts +9 -0
- package/lib/types/api/types/image.d.ts +23 -0
- package/lib/types/api/types/index.d.ts +3 -0
- package/lib/types/api/types/status.d.ts +3 -0
- package/lib/types/api/utils/auth.d.ts +33 -0
- package/lib/types/api/utils/event-stream.d.ts +7 -0
- package/lib/types/components/conversation/conversation.d.ts +30 -0
- package/lib/types/components/conversation/index.d.ts +4 -0
- package/lib/types/components/conversation/message.d.ts +10 -0
- package/lib/types/components/conversation/prompt.d.ts +10 -0
- package/lib/types/components/conversation/use-conversation.d.ts +44 -0
- package/lib/types/components/credit/alert.d.ts +10 -0
- package/lib/types/components/credit/balance.d.ts +7 -0
- package/lib/types/components/credit/button.d.ts +11 -0
- package/lib/types/components/credit/index.d.ts +3 -0
- package/lib/types/components/form-label.d.ts +7 -0
- package/lib/types/components/image-preview.d.ts +17 -0
- package/lib/types/components/index.d.ts +12 -0
- package/lib/types/components/loading-image.d.ts +6 -0
- package/lib/types/components/subscribe/alert.d.ts +5 -0
- package/lib/types/components/subscribe/button.d.ts +5 -0
- package/lib/types/components/subscribe/state.d.ts +14 -0
- package/lib/types/components/switch-button.d.ts +7 -0
- package/lib/types/components/table.d.ts +3 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/libs/logger.d.ts +2 -0
- package/lib/types/utils/withLocaleProvider.d.ts +9 -0
- package/package.json +158 -0
package/package.json
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@blocklet/aigne-hub",
|
|
3
|
+
"version": "0.2.7",
|
|
4
|
+
"description": "The react.js component library for AIGNE Hub",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
|
|
9
|
+
"homepage": "https://github.com/blocklet/ai-kit#readme",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"main": "./lib/cjs/index.js",
|
|
12
|
+
"module": "./lib/esm/index.js",
|
|
13
|
+
"types": "./lib/types/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./lib/types/index.d.ts",
|
|
17
|
+
"import": "./lib/esm/index.js",
|
|
18
|
+
"require": "./lib/cjs/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./api": {
|
|
21
|
+
"types": "./lib/types/api/index.d.ts",
|
|
22
|
+
"import": "./lib/esm/api/index.js",
|
|
23
|
+
"require": "./lib/cjs/api/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./api/call": {
|
|
26
|
+
"types": "./lib/types/api/call/index.d.ts",
|
|
27
|
+
"import": "./lib/esm/api/call/index.js",
|
|
28
|
+
"require": "./lib/cjs/api/call/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./api/types": {
|
|
31
|
+
"types": "./lib/types/api/types/index.d.ts",
|
|
32
|
+
"import": "./lib/esm/api/types/index.js",
|
|
33
|
+
"require": "./lib/cjs/api/types/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./api/*": {
|
|
36
|
+
"types": "./lib/types/api/*.d.ts",
|
|
37
|
+
"import": "./lib/esm/api/*.js",
|
|
38
|
+
"require": "./lib/cjs/api/*.js"
|
|
39
|
+
},
|
|
40
|
+
"./components": {
|
|
41
|
+
"types": "./lib/types/components/index.d.ts",
|
|
42
|
+
"import": "./lib/esm/components/index.js",
|
|
43
|
+
"require": "./lib/cjs/components/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./components/*": {
|
|
46
|
+
"types": "./lib/types/components/*.d.ts",
|
|
47
|
+
"import": "./lib/esm/components/*.js",
|
|
48
|
+
"require": "./lib/cjs/components/*.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"typesVersions": {
|
|
52
|
+
"*": {
|
|
53
|
+
"*": [
|
|
54
|
+
"./lib/types/index.d.ts"
|
|
55
|
+
],
|
|
56
|
+
"api": [
|
|
57
|
+
"./lib/types/api/index.d.ts"
|
|
58
|
+
],
|
|
59
|
+
"api/*": [
|
|
60
|
+
"./lib/types/api/*.d.ts",
|
|
61
|
+
"./lib/types/api/*/index.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"components": [
|
|
64
|
+
"./lib/types/components/index.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"components/*": [
|
|
67
|
+
"./lib/types/components/*.d.ts",
|
|
68
|
+
"./lib/types/components/*/index.d.ts"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"files": [
|
|
73
|
+
"lib",
|
|
74
|
+
"LICENSE",
|
|
75
|
+
"package.json",
|
|
76
|
+
"README.md"
|
|
77
|
+
],
|
|
78
|
+
"repository": {
|
|
79
|
+
"type": "git",
|
|
80
|
+
"url": "git+https://github.com/blocklet/ai-kit.git"
|
|
81
|
+
},
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"react": "^18.2.0"
|
|
84
|
+
},
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"@arcblock/did": "^1.21.0",
|
|
87
|
+
"@arcblock/ux": "^3.0.27",
|
|
88
|
+
"@blocklet/logger": "^1.16.46",
|
|
89
|
+
"@blocklet/payment-js": "^1.19.5",
|
|
90
|
+
"@blocklet/sdk": "^1.16.46",
|
|
91
|
+
"@emotion/css": "^11.13.5",
|
|
92
|
+
"@emotion/react": "^11.14.0",
|
|
93
|
+
"@emotion/styled": "^11.14.1",
|
|
94
|
+
"@mui/icons-material": "^7.2.0",
|
|
95
|
+
"@mui/lab": "^7.0.0-beta.14",
|
|
96
|
+
"@mui/material": "^7.2.0",
|
|
97
|
+
"@mui/system": "^7.2.0",
|
|
98
|
+
"@ocap/mcrypto": "^1.21.0",
|
|
99
|
+
"@ocap/util": "^1.21.0",
|
|
100
|
+
"@types/express": "^5.0.3",
|
|
101
|
+
"ahooks": "^3.8.1",
|
|
102
|
+
"axios": "^1.7.4",
|
|
103
|
+
"eventsource-parser": "^2.0.1",
|
|
104
|
+
"express": "^5.1.0",
|
|
105
|
+
"file-saver": "^2.0.5",
|
|
106
|
+
"form-data": "^4.0.0",
|
|
107
|
+
"immer": "^10.1.1",
|
|
108
|
+
"joi": "^17.13.3",
|
|
109
|
+
"json-stable-stringify": "^1.1.1",
|
|
110
|
+
"lodash": "^4.17.21",
|
|
111
|
+
"nanoid": "^5.0.7",
|
|
112
|
+
"openai": "^4.56.0",
|
|
113
|
+
"react-markdown": "^9.0.1",
|
|
114
|
+
"react-photo-view": "^1.2.6",
|
|
115
|
+
"react-use": "^17.5.1",
|
|
116
|
+
"recoil": "^0.7.7",
|
|
117
|
+
"sequelize": "^6.37.3",
|
|
118
|
+
"ufo": "^1.5.4",
|
|
119
|
+
"yaml": "^2.5.0",
|
|
120
|
+
"zustand": "^4.5.5"
|
|
121
|
+
},
|
|
122
|
+
"devDependencies": {
|
|
123
|
+
"@storybook/addon-a11y": "9.0.15",
|
|
124
|
+
"@storybook/addon-coverage": "2.0.0",
|
|
125
|
+
"@storybook/addon-docs": "9.0.15",
|
|
126
|
+
"@storybook/addon-vitest": "9.0.15",
|
|
127
|
+
"@storybook/react": "9.0.15",
|
|
128
|
+
"@storybook/react-vite": "9.0.15",
|
|
129
|
+
"@types/express": "^5.0.3",
|
|
130
|
+
"@types/file-saver": "^2.0.7",
|
|
131
|
+
"@types/json-stable-stringify": "^1.0.36",
|
|
132
|
+
"@types/react": "^18.3.3",
|
|
133
|
+
"@types/react-dom": "^18.3.0",
|
|
134
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
135
|
+
"npm-run-all": "^4.1.5",
|
|
136
|
+
"react": "^19.1.0",
|
|
137
|
+
"react-dom": "^19.1.0",
|
|
138
|
+
"storybook": "9.0.15",
|
|
139
|
+
"typescript": "^5.5.4",
|
|
140
|
+
"vite": "^7.0.2"
|
|
141
|
+
},
|
|
142
|
+
"scripts": {
|
|
143
|
+
"lint": "eslint src --ext .mjs,.js,.jsx,.ts,.tsx",
|
|
144
|
+
"lint:fix": "npm run lint -- --fix",
|
|
145
|
+
"pre-commit": "lint-staged",
|
|
146
|
+
"build": "run-p build:*",
|
|
147
|
+
"build:cjs": "tsc --module commonjs --moduleResolution node --incremental false --outDir lib/cjs",
|
|
148
|
+
"build:esm": "tsc --module es2022 --incremental false --outDir lib/esm",
|
|
149
|
+
"build:types": "tsc --module commonjs --declaration --emitDeclarationOnly --incremental false --outDir lib/types",
|
|
150
|
+
"dev": "npm run storybook & npm run watch",
|
|
151
|
+
"start": "npm run storybook",
|
|
152
|
+
"watch": "vite build --watch",
|
|
153
|
+
"preview": "npm run storybook",
|
|
154
|
+
"storybook": "NODE_OPTIONS=--openssl-legacy-provider npx storybook dev -p 6009",
|
|
155
|
+
"build-storybook": "npx storybook build",
|
|
156
|
+
"clean": "rm -rf lib"
|
|
157
|
+
}
|
|
158
|
+
}
|