@sciol/xyzen 0.4.1 → 0.4.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/{chunk-3JLSSUO4-DOlXQHEy.js → chunk-3JLSSUO4-Amct4bnM.js} +1 -1
- package/dist/{chunk-EBDTZNMR-9sbjiGXa.js → chunk-EBDTZNMR-aIaWldci.js} +1 -1
- package/dist/{chunk-NM4NY5FQ-Dd-UZEPn.js → chunk-NM4NY5FQ-K0AY9o5i.js} +1 -1
- package/dist/components/admin/AdminAuthForm.d.ts +5 -0
- package/dist/components/admin/CodeGenerationForm.d.ts +18 -0
- package/dist/components/admin/CodesList.d.ts +18 -0
- package/dist/components/admin/SecretCodePage.d.ts +1 -0
- package/dist/components/layouts/components/ChatInput.d.ts +1 -1
- package/dist/components/layouts/components/ResponseSpinner.d.ts +8 -0
- package/dist/components/modals/AddAgentModal.d.ts +1 -2
- package/dist/components/modals/settings/RedemptionSettings.d.ts +1 -0
- package/dist/components/modals/settings/index.d.ts +1 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/constants/zIndex.d.ts +50 -0
- package/dist/defaults/agents/bohr_app_qrcode.png +0 -0
- package/dist/{download-DBw7-yq-.js → download-Ckr90oQJ.js} +2 -2
- package/dist/hooks/useWorkShopChat.d.ts +1 -1
- package/dist/hooks/useXyzenChat.d.ts +1 -1
- package/dist/{index-lkuJaJpX.js → index-BX3tjgcN.js} +23758 -23036
- package/dist/rasterize-WOXTJCMX-nqKPGMf1.js +5 -0
- package/dist/service/authService.d.ts +5 -0
- package/dist/service/llmProviderService.d.ts +1 -0
- package/dist/service/redemptionService.d.ts +42 -0
- package/dist/toBlob-Cpn4A-7b.js +5 -0
- package/dist/toCanvas-CkVNNpVV.js +5 -0
- package/dist/{toImg-KhTEpuZ9.js → toImg-Cb4n6vBV.js} +2 -2
- package/dist/types/llmProvider.d.ts +81 -4
- package/dist/xyzen.css +1 -1
- package/dist/xyzen.es.js +1 -1
- package/dist/xyzen.umd.js +136 -146
- package/package.json +2 -1
- package/dist/rasterize-WOXTJCMX-z0RGp8NP.js +0 -5
- package/dist/toBlob-C3QypsuM.js +0 -5
- package/dist/toCanvas-DYLOuxHI.js +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { W as a } from "./chunk-NM4NY5FQ-
|
|
2
|
+
import { W as a } from "./chunk-NM4NY5FQ-K0AY9o5i.js";
|
|
3
3
|
async function o(r, t) {
|
|
4
4
|
let i = await a(r, t), e = new Image();
|
|
5
5
|
return e.src = i.toDataURL(`image/${t.format}`, t.quality), await e.decode(), e.style.width = `${i.width / t.dpr}px`, e.style.height = `${i.height / t.dpr}px`, e;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface GeneratedCode {
|
|
2
|
+
id: string;
|
|
3
|
+
code: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
max_usage: number;
|
|
6
|
+
current_usage: number;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
expires_at: string | null;
|
|
9
|
+
description: string | null;
|
|
10
|
+
created_at: string;
|
|
11
|
+
}
|
|
12
|
+
interface CodeGenerationFormProps {
|
|
13
|
+
adminSecret: string;
|
|
14
|
+
backendUrl: string;
|
|
15
|
+
onCodeGenerated: (code: GeneratedCode) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function CodeGenerationForm({ adminSecret, backendUrl, onCodeGenerated, }: CodeGenerationFormProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface GeneratedCode {
|
|
2
|
+
id: string;
|
|
3
|
+
code: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
max_usage: number;
|
|
6
|
+
current_usage: number;
|
|
7
|
+
is_active: boolean;
|
|
8
|
+
expires_at: string | null;
|
|
9
|
+
description: string | null;
|
|
10
|
+
created_at: string;
|
|
11
|
+
}
|
|
12
|
+
interface CodesListProps {
|
|
13
|
+
adminSecret: string;
|
|
14
|
+
backendUrl: string;
|
|
15
|
+
newCode?: GeneratedCode;
|
|
16
|
+
}
|
|
17
|
+
export declare function CodesList({ adminSecret, backendUrl, newCode, }: CodesListProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SecretCodePage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
interface AddAgentModalProps {
|
|
3
2
|
isOpen: boolean;
|
|
4
3
|
onClose: () => void;
|
|
5
4
|
}
|
|
6
|
-
declare
|
|
5
|
+
declare function AddAgentModal({ isOpen, onClose }: AddAgentModalProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default AddAgentModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RedemptionSettings(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized z-index management system
|
|
3
|
+
*
|
|
4
|
+
* This file defines a layered z-index system to prevent z-index conflicts
|
|
5
|
+
* and make stacking order predictable and maintainable.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* - Import the zIndex object and use named layers
|
|
9
|
+
* - Add new layers here when needed
|
|
10
|
+
* - Never use arbitrary z-index values in components
|
|
11
|
+
*/
|
|
12
|
+
export declare const zIndex: {
|
|
13
|
+
readonly base: 0;
|
|
14
|
+
readonly dropdown: 10;
|
|
15
|
+
readonly sticky: 20;
|
|
16
|
+
readonly fixed: 30;
|
|
17
|
+
readonly overlay: 100;
|
|
18
|
+
readonly drawer: 200;
|
|
19
|
+
readonly modal: 1000;
|
|
20
|
+
readonly modalBackdrop: 1000;
|
|
21
|
+
readonly modalContent: 1001;
|
|
22
|
+
readonly popover: 10000;
|
|
23
|
+
readonly select: 10000;
|
|
24
|
+
readonly tooltip: 10001;
|
|
25
|
+
readonly toast: 20000;
|
|
26
|
+
readonly notification: 20000;
|
|
27
|
+
readonly max: 30000;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Tailwind class mappings for z-index values
|
|
31
|
+
* Use these in className props
|
|
32
|
+
*/
|
|
33
|
+
export declare const zIndexClasses: {
|
|
34
|
+
readonly base: "z-0";
|
|
35
|
+
readonly dropdown: "z-10";
|
|
36
|
+
readonly sticky: "z-20";
|
|
37
|
+
readonly fixed: "z-30";
|
|
38
|
+
readonly overlay: "z-[100]";
|
|
39
|
+
readonly drawer: "z-[200]";
|
|
40
|
+
readonly modal: "z-[1000]";
|
|
41
|
+
readonly modalBackdrop: "z-[1000]";
|
|
42
|
+
readonly modalContent: "z-[1001]";
|
|
43
|
+
readonly popover: "z-[10000]";
|
|
44
|
+
readonly select: "z-[10000]";
|
|
45
|
+
readonly tooltip: "z-[10001]";
|
|
46
|
+
readonly toast: "z-[20000]";
|
|
47
|
+
readonly notification: "z-[20000]";
|
|
48
|
+
readonly max: "z-[30000]";
|
|
49
|
+
};
|
|
50
|
+
export type ZIndexLayer = keyof typeof zIndex;
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { m } from "./chunk-EBDTZNMR-
|
|
3
|
-
import { W as c } from "./chunk-NM4NY5FQ-
|
|
2
|
+
import { m } from "./chunk-EBDTZNMR-aIaWldci.js";
|
|
3
|
+
import { W as c } from "./chunk-NM4NY5FQ-K0AY9o5i.js";
|
|
4
4
|
async function d(r, e) {
|
|
5
5
|
if (e.dpr = 1, e.format === "svg") {
|
|
6
6
|
let l = await m(r, { ...e, type: "svg" }), a = URL.createObjectURL(l), o = document.createElement("a");
|
|
@@ -46,7 +46,7 @@ export declare function useWorkShopChat(config: WorkShopChatConfig): {
|
|
|
46
46
|
responding: boolean;
|
|
47
47
|
messagesEndRef: import('react').RefObject<HTMLDivElement | null>;
|
|
48
48
|
messagesContainerRef: import('react').RefObject<HTMLDivElement | null>;
|
|
49
|
-
handleSendMessage: (inputMessage: string) =>
|
|
49
|
+
handleSendMessage: (inputMessage: string) => boolean;
|
|
50
50
|
handleToggleHistory: () => void;
|
|
51
51
|
handleCloseHistory: () => void;
|
|
52
52
|
handleSelectTopic: (_topicId: string) => void;
|
|
@@ -46,7 +46,7 @@ export declare function useXyzenChat(config: XyzenChatConfig): {
|
|
|
46
46
|
responding: boolean;
|
|
47
47
|
messagesEndRef: import('react').RefObject<HTMLDivElement | null>;
|
|
48
48
|
messagesContainerRef: import('react').RefObject<HTMLDivElement | null>;
|
|
49
|
-
handleSendMessage: (inputMessage: string) =>
|
|
49
|
+
handleSendMessage: (inputMessage: string) => boolean;
|
|
50
50
|
handleToggleHistory: () => void;
|
|
51
51
|
handleCloseHistory: () => void;
|
|
52
52
|
handleSelectTopic: (_topicId: string) => void;
|