@sciol/xyzen 0.4.1 → 0.4.3

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/{chunk-3JLSSUO4-DOlXQHEy.js → chunk-3JLSSUO4-lw6nI4d-.js} +1 -1
  2. package/dist/{chunk-EBDTZNMR-9sbjiGXa.js → chunk-EBDTZNMR-DwW3TAhG.js} +1 -1
  3. package/dist/{chunk-NM4NY5FQ-Dd-UZEPn.js → chunk-NM4NY5FQ-WpZvY9qj.js} +1 -1
  4. package/dist/components/admin/AdminAuthForm.d.ts +5 -0
  5. package/dist/components/admin/CodeGenerationForm.d.ts +18 -0
  6. package/dist/components/admin/CodesList.d.ts +18 -0
  7. package/dist/components/admin/SecretCodePage.d.ts +1 -0
  8. package/dist/components/layouts/components/ChatInput.d.ts +1 -1
  9. package/dist/components/layouts/components/ProviderSelector.d.ts +10 -0
  10. package/dist/components/layouts/components/ResponseSpinner.d.ts +8 -0
  11. package/dist/components/modals/AddAgentModal.d.ts +1 -2
  12. package/dist/components/modals/settings/RedemptionSettings.d.ts +1 -0
  13. package/dist/components/modals/settings/index.d.ts +1 -0
  14. package/dist/components/ui/select.d.ts +15 -0
  15. package/dist/constants/zIndex.d.ts +50 -0
  16. package/dist/defaults/agents/bohr_app_qrcode.png +0 -0
  17. package/dist/{download-DBw7-yq-.js → download-BextlR-V.js} +2 -2
  18. package/dist/hooks/useWorkShopChat.d.ts +1 -1
  19. package/dist/hooks/useXyzenChat.d.ts +1 -1
  20. package/dist/{index-lkuJaJpX.js → index-DG6w-EXf.js} +28978 -27249
  21. package/dist/rasterize-WOXTJCMX-CNcuYFJ4.js +5 -0
  22. package/dist/service/authService.d.ts +5 -0
  23. package/dist/service/llmProviderService.d.ts +1 -0
  24. package/dist/service/redemptionService.d.ts +42 -0
  25. package/dist/toBlob-ju840lTp.js +5 -0
  26. package/dist/toCanvas-ROMJ_SdN.js +5 -0
  27. package/dist/{toImg-KhTEpuZ9.js → toImg-BR9Yibvi.js} +2 -2
  28. package/dist/types/llmProvider.d.ts +84 -4
  29. package/dist/xyzen.css +1 -1
  30. package/dist/xyzen.es.js +1 -1
  31. package/dist/xyzen.umd.js +147 -147
  32. package/package.json +2 -1
  33. package/dist/rasterize-WOXTJCMX-z0RGp8NP.js +0 -5
  34. package/dist/toBlob-C3QypsuM.js +0 -5
  35. package/dist/toCanvas-DYLOuxHI.js +0 -5
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { W as a } from "./chunk-NM4NY5FQ-Dd-UZEPn.js";
2
+ import { W as a } from "./chunk-NM4NY5FQ-WpZvY9qj.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;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { W as m } from "./chunk-NM4NY5FQ-Dd-UZEPn.js";
2
+ import { W as m } from "./chunk-NM4NY5FQ-WpZvY9qj.js";
3
3
  async function s(n, e) {
4
4
  let i = e.type;
5
5
  if (i === "svg") {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { l as b } from "./index-lkuJaJpX.js";
2
+ import { l as b } from "./index-DG6w-EXf.js";
3
3
  function M(e) {
4
4
  return typeof e == "string" && /^data:image\/svg\+xml/i.test(e);
5
5
  }
@@ -0,0 +1,5 @@
1
+ interface AdminAuthFormProps {
2
+ onAuthenticated: (secretKey: string) => void;
3
+ }
4
+ export declare function AdminAuthForm({ onAuthenticated }: AdminAuthFormProps): import("react/jsx-runtime").JSX.Element;
5
+ 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 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,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface ChatInputProps {
3
- onSendMessage: (message: string) => void;
3
+ onSendMessage: (message: string) => boolean | void;
4
4
  disabled?: boolean;
5
5
  placeholder?: string;
6
6
  height?: number;
@@ -0,0 +1,10 @@
1
+ import { LlmProviderResponse } from '../../../types/llmProvider';
2
+ import { Agent } from '../../../types/agents';
3
+ interface ProviderSelectorProps {
4
+ currentAgent: Agent;
5
+ currentProvider: LlmProviderResponse | null;
6
+ llmProviders: LlmProviderResponse[];
7
+ onProviderChange: (providerId: string) => void;
8
+ }
9
+ export declare function ProviderSelector({ currentAgent, currentProvider, llmProviders, onProviderChange, }: ProviderSelectorProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface ResponseSpinnerProps {
3
+ text: string;
4
+ className?: string;
5
+ themeStyles: string;
6
+ }
7
+ export declare const ResponseSpinner: React.FC<ResponseSpinnerProps>;
8
+ export default ResponseSpinner;
@@ -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 const AddAgentModal: React.FC<AddAgentModalProps>;
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;
@@ -3,3 +3,4 @@ export { ProviderList } from './ProviderList';
3
3
  export { UiSettings } from './UiSettings';
4
4
  export { ThemeSettings } from './ThemeSettings';
5
5
  export { StyleSettings } from './StyleSettings';
6
+ export { RedemptionSettings } from './RedemptionSettings';
@@ -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;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { m } from "./chunk-EBDTZNMR-9sbjiGXa.js";
3
- import { W as c } from "./chunk-NM4NY5FQ-Dd-UZEPn.js";
2
+ import { m } from "./chunk-EBDTZNMR-DwW3TAhG.js";
3
+ import { W as c } from "./chunk-NM4NY5FQ-WpZvY9qj.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) => void;
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) => void;
49
+ handleSendMessage: (inputMessage: string) => boolean;
50
50
  handleToggleHistory: () => void;
51
51
  handleCloseHistory: () => void;
52
52
  handleSelectTopic: (_topicId: string) => void;