@rimori/client 1.0.0 → 1.0.2
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/components/Spinner.d.ts +2 -2
- package/dist/components/Spinner.js +1 -2
- package/dist/components/audio/Playbutton.js +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +9 -8
- package/package.json +1 -1
- package/src/components/Spinner.tsx +2 -4
- package/src/components/audio/Playbutton.tsx +1 -1
- package/src/index.ts +9 -8
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const Spinner = ({ text, className, size = "30px" }) => {
|
|
2
|
+
export const Spinner = ({ text, className, size = "30px" }) => {
|
|
3
3
|
return (_jsxs("div", { className: "flex items-center space-x-2 " + className, children: [_jsxs("svg", { style: { width: size, height: size }, className: "animate-spin -ml-1 mr-3 h-5 w-5 text-white", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [_jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), _jsx("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] }), text && _jsx("span", { className: "", children: text })] }));
|
|
4
4
|
};
|
|
5
|
-
export default Spinner;
|
|
@@ -11,7 +11,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
import { useState, useEffect } from 'react';
|
|
12
12
|
import { FaPlayCircle, FaStopCircle } from "react-icons/fa";
|
|
13
13
|
import { usePlugin } from "../../providers/PluginProvider";
|
|
14
|
-
import Spinner from '../Spinner';
|
|
14
|
+
import { Spinner } from '../Spinner';
|
|
15
15
|
import { EmitterSingleton } from '../../providers/EventEmitter';
|
|
16
16
|
export const AudioPlayOptions = [0.8, 0.9, 1.0, 1.1, 1.2, 1.5];
|
|
17
17
|
let isFetchingAudio = false;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export * from "./components/MarkdownEditor";
|
|
2
2
|
export * from "./components/CRUDModal";
|
|
3
|
-
export * from "./plugin/ThemeSetter";
|
|
4
|
-
export * from "./components/audio/Playbutton";
|
|
5
|
-
export * from "./providers/EventEmitterContext";
|
|
6
|
-
export * from "./providers/PluginProvider";
|
|
7
|
-
export * from "./providers/EventEmitter";
|
|
8
3
|
export * from "./components/Spinner";
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./utils/PluginUtils";
|
|
11
|
-
export * from "./plugin/RimoriClient";
|
|
4
|
+
export * from "./components/audio/Playbutton";
|
|
12
5
|
export * from "./controller/AIController";
|
|
13
6
|
export * from "./controller/SharedContentController";
|
|
14
7
|
export * from "./controller/SettingsController";
|
|
8
|
+
export * from "./hooks/UseChatHook";
|
|
9
|
+
export * from "./plugin/RimoriClient";
|
|
10
|
+
export * from "./plugin/ThemeSetter";
|
|
11
|
+
export * from "./providers/EventEmitter";
|
|
12
|
+
export * from "./providers/EventEmitterContext";
|
|
13
|
+
export * from "./providers/PluginProvider";
|
|
14
|
+
export * from "./utils/difficultyConverter";
|
|
15
|
+
export * from "./utils/PluginUtils";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export * from "./components/MarkdownEditor";
|
|
2
2
|
export * from "./components/CRUDModal";
|
|
3
|
-
export * from "./plugin/ThemeSetter";
|
|
4
|
-
export * from "./components/audio/Playbutton";
|
|
5
|
-
export * from "./providers/EventEmitterContext";
|
|
6
|
-
export * from "./providers/PluginProvider";
|
|
7
|
-
export * from "./providers/EventEmitter";
|
|
8
3
|
export * from "./components/Spinner";
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./utils/PluginUtils";
|
|
11
|
-
export * from "./plugin/RimoriClient";
|
|
4
|
+
export * from "./components/audio/Playbutton";
|
|
12
5
|
export * from "./controller/AIController";
|
|
13
6
|
export * from "./controller/SharedContentController";
|
|
14
7
|
export * from "./controller/SettingsController";
|
|
8
|
+
export * from "./hooks/UseChatHook";
|
|
9
|
+
export * from "./plugin/RimoriClient";
|
|
10
|
+
export * from "./plugin/ThemeSetter";
|
|
11
|
+
export * from "./providers/EventEmitter";
|
|
12
|
+
export * from "./providers/EventEmitterContext";
|
|
13
|
+
export * from "./providers/PluginProvider";
|
|
14
|
+
export * from "./utils/difficultyConverter";
|
|
15
|
+
export * from "./utils/PluginUtils";
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ interface SpinnerProps {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
const Spinner: React.FC<SpinnerProps> = ({ text, className, size = "30px" }) => {
|
|
9
|
+
export const Spinner: React.FC<SpinnerProps> = ({ text, className, size = "30px" }) => {
|
|
10
10
|
return (
|
|
11
11
|
<div className={"flex items-center space-x-2 " + className}>
|
|
12
12
|
<svg
|
|
@@ -19,6 +19,4 @@ const Spinner: React.FC<SpinnerProps> = ({ text, className, size = "30px" }) =>
|
|
|
19
19
|
{text && <span className="">{text}</span>}
|
|
20
20
|
</div>
|
|
21
21
|
);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default Spinner;
|
|
22
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { FaPlayCircle, FaStopCircle } from "react-icons/fa";
|
|
3
3
|
import { usePlugin } from "../../providers/PluginProvider";
|
|
4
|
-
import Spinner from '../Spinner';
|
|
4
|
+
import { Spinner } from '../Spinner';
|
|
5
5
|
import { EmitterSingleton } from '../../providers/EventEmitter';
|
|
6
6
|
|
|
7
7
|
type AudioPlayerProps = {
|
package/src/index.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export * from "./components/MarkdownEditor";
|
|
2
2
|
export * from "./components/CRUDModal";
|
|
3
|
-
export * from "./plugin/ThemeSetter";
|
|
4
|
-
export * from "./components/audio/Playbutton";
|
|
5
|
-
export * from "./providers/EventEmitterContext";
|
|
6
|
-
export * from "./providers/PluginProvider";
|
|
7
|
-
export * from "./providers/EventEmitter";
|
|
8
3
|
export * from "./components/Spinner";
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./utils/PluginUtils";
|
|
11
|
-
export * from "./plugin/RimoriClient";
|
|
4
|
+
export * from "./components/audio/Playbutton";
|
|
12
5
|
export * from "./controller/AIController";
|
|
13
6
|
export * from "./controller/SharedContentController";
|
|
14
7
|
export * from "./controller/SettingsController";
|
|
8
|
+
export * from "./hooks/UseChatHook";
|
|
9
|
+
export * from "./plugin/RimoriClient";
|
|
10
|
+
export * from "./plugin/ThemeSetter";
|
|
11
|
+
export * from "./providers/EventEmitter";
|
|
12
|
+
export * from "./providers/EventEmitterContext";
|
|
13
|
+
export * from "./providers/PluginProvider";
|
|
14
|
+
export * from "./utils/difficultyConverter";
|
|
15
|
+
export * from "./utils/PluginUtils";
|