@mujian/js-sdk 0.0.6-beta.9 → 0.0.6-beta.mjv.67

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 (35) hide show
  1. package/dist/events/index.d.ts +30 -2
  2. package/dist/index.d.ts +13 -39
  3. package/dist/index.js +323 -15
  4. package/dist/modules/ai/chat/chat.d.ts +46 -4
  5. package/dist/modules/ai/chat/index.d.ts +1 -1
  6. package/dist/modules/ai/chat/message/index.d.ts +4 -0
  7. package/dist/modules/ai/index.d.ts +3 -2
  8. package/dist/modules/ai/openai/chat.d.ts +25 -0
  9. package/dist/modules/ai/openai/completions.d.ts +19 -0
  10. package/dist/modules/ai/openai/images.d.ts +19 -0
  11. package/dist/modules/ai/openai/index.d.ts +4 -0
  12. package/dist/modules/ai/openai/responses.d.ts +20 -0
  13. package/dist/modules/ai/text/index.d.ts +9 -2
  14. package/dist/modules/utils/clipboard.d.ts +5 -0
  15. package/dist/modules/utils/index.d.ts +4 -0
  16. package/dist/react/chat/useChat/index.d.ts +7 -3
  17. package/dist/react/chat/useChat/inner/chatStreaming.d.ts +1 -1
  18. package/dist/react/chat/useChat/message.d.ts +25 -13
  19. package/dist/react/components/MdRenderer/index.d.ts +4 -3
  20. package/dist/react/components/MdRenderer/utils/height.d.ts +0 -0
  21. package/dist/react/components/MdRenderer/utils/iframe.d.ts +9 -0
  22. package/dist/react/components/MdRenderer/utils/scripts.d.ts +4 -0
  23. package/dist/react/components/MujianSpinner/index.d.ts +7 -0
  24. package/dist/react/components/index.d.ts +1 -0
  25. package/dist/react.css +65 -4
  26. package/dist/react.js +687 -112
  27. package/dist/types/index.d.ts +38 -0
  28. package/dist/umd/index.js +792 -0
  29. package/dist/umd/index.js.LICENSE.txt +7 -0
  30. package/dist/umd/react.css +343 -0
  31. package/dist/umd/react.js +8881 -0
  32. package/dist/umd/react.js.LICENSE.txt +31 -0
  33. package/dist/utils/log.d.ts +4 -0
  34. package/package.json +4 -1
  35. /package/dist/react/components/MdRenderer/{utils.d.ts → utils/md.d.ts} +0 -0
@@ -0,0 +1,31 @@
1
+ /*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
2
+
3
+ /*! showdown v 2.1.0 - 21-04-2022 */
4
+
5
+ /**
6
+ postmate - A powerful, simple, promise-based postMessage library
7
+ @version v1.5.2
8
+ @link https://github.com/dollarshaveclub/postmate
9
+ @author Jacob Kelley <jakie8@gmail.com>
10
+ @license MIT
11
+ **/
12
+
13
+ /**
14
+ * @license React
15
+ * react-dom.production.js
16
+ *
17
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
18
+ *
19
+ * This source code is licensed under the MIT license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */
22
+
23
+ /**
24
+ * @license React
25
+ * react-jsx-runtime.production.js
26
+ *
27
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
@@ -0,0 +1,4 @@
1
+ export declare const Log: {
2
+ i(...msg: unknown[]): void;
3
+ e(...msg: unknown[]): void;
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mujian/js-sdk",
3
- "version": "0.0.6-beta.9",
3
+ "version": "0.0.6-beta.mjv.67",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -39,6 +39,7 @@
39
39
  "upload:doc": "node upload.js"
40
40
  },
41
41
  "devDependencies": {
42
+ "openai": "^6.9.1",
42
43
  "rimraf": "^6.0.1",
43
44
  "@rsbuild/core": "~1.5.12",
44
45
  "rspress": "^1.40.2",
@@ -46,6 +47,7 @@
46
47
  "@rspress/plugin-typedoc": "^1.45.8",
47
48
  "@rspress/plugin-api-docgen": "^1.45.8",
48
49
  "@rspress/plugin-preview": "^1.45.8",
50
+ "@mujian/rspress-plugin-sakana-widget": "workspace:",
49
51
  "rspress-plugin-mermaid": "0.3.0",
50
52
  "rspress-plugin-align-image": "0.3.0",
51
53
  "rspress-plugin-file-tree": "0.4.0",
@@ -76,6 +78,7 @@
76
78
  },
77
79
  "dependencies": {
78
80
  "dompurify": "^3.2.6",
81
+ "uuid": "^13.0.0",
79
82
  "@adobe/css-tools": "^4.4.4",
80
83
  "showdown": "^2.1.0",
81
84
  "postmate": "^1.5.2",