@examplary/ui 1.41.0 → 1.42.0
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.
|
@@ -15,5 +15,5 @@ import { useSpinLoop } from "../../lib/use-spin-loop";
|
|
|
15
15
|
import { cn } from "../../utils";
|
|
16
16
|
export function AiSpinner(props) {
|
|
17
17
|
var rotate = useSpinLoop();
|
|
18
|
-
return (_jsx(motion.svg, __assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, props, { className: cn("text-fuchsia-400", props.className), style: { rotate: rotate }, children: _jsx("path", { d: "M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM8.36621 3.70703C8.16407 3.5049 7.83594 3.50492 7.63379 3.70703L7.55469 3.78613C6.88523 5.5116 5.51162 6.88527 3.78613 7.55469L3.70703 7.63379C3.50492 7.83594 3.5049 8.16407 3.70703 8.36621L3.78516 8.44434C5.51093 9.11363 6.88511 10.4882 7.55469 12.2139L7.63379 12.293C7.83594 12.495 8.16409 12.495 8.36621 12.293L8.44434 12.2139C9.11375 10.4881 10.4881 9.11379 12.2139 8.44434L12.293 8.36621C12.495 8.16409 12.495 7.83594 12.293 7.63379L12.2139 7.55469C10.4882 6.88511 9.11363 5.51093 8.44434 3.78516L8.36621 3.70703Z", fill: "currentColor" }) })));
|
|
18
|
+
return (_jsx(motion.svg, __assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, props, { className: cn("text-fuchsia-400 shrink-0", props.className), style: { rotate: rotate }, children: _jsx("path", { d: "M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM8.36621 3.70703C8.16407 3.5049 7.83594 3.50492 7.63379 3.70703L7.55469 3.78613C6.88523 5.5116 5.51162 6.88527 3.78613 7.55469L3.70703 7.63379C3.50492 7.83594 3.5049 8.16407 3.70703 8.36621L3.78516 8.44434C5.51093 9.11363 6.88511 10.4882 7.55469 12.2139L7.63379 12.293C7.83594 12.495 8.16409 12.495 8.36621 12.293L8.44434 12.2139C9.11375 10.4881 10.4881 9.11379 12.2139 8.44434L12.293 8.36621C12.495 8.16409 12.495 7.83594 12.293 7.63379L12.2139 7.55469C10.4882 6.88511 9.11363 5.51093 8.44434 3.78516L8.36621 3.70703Z", fill: "currentColor" }) })));
|
|
19
19
|
}
|
|
@@ -12,10 +12,12 @@ type OrgApiInstance = AxiosInstance & {
|
|
|
12
12
|
type PublicApiInstance = AxiosInstance & {
|
|
13
13
|
uploadFile: (accept?: string) => Promise<any>;
|
|
14
14
|
};
|
|
15
|
+
export type FrontendComponentEnvironment = "exam" | "practice-space";
|
|
15
16
|
export type FrontendBaseComponentProps = {
|
|
16
17
|
t: (key: string | string[], options?: any) => string;
|
|
17
18
|
api: PublicApiInstance;
|
|
18
19
|
i18n: any;
|
|
20
|
+
environment: FrontendComponentEnvironment;
|
|
19
21
|
};
|
|
20
22
|
export type FrontendAssessmentComponent = ComponentType<FrontendBaseComponentProps & {
|
|
21
23
|
question: any;
|