@veracity/ai 0.0.1

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 (57) hide show
  1. package/dist/ChatCompletionSSE.d.ts +35 -0
  2. package/dist/ChatCompletionSSE.d.ts.map +1 -0
  3. package/dist/Markdown.d.ts +2 -0
  4. package/dist/Markdown.d.ts.map +1 -0
  5. package/dist/SmoothChatCompletionSSE.d.ts +23 -0
  6. package/dist/SmoothChatCompletionSSE.d.ts.map +1 -0
  7. package/dist/components/AIChat/index.d.ts +26 -0
  8. package/dist/components/AIChat/index.d.ts.map +1 -0
  9. package/dist/components/AIChatBubble.d.ts +7 -0
  10. package/dist/components/AIChatBubble.d.ts.map +1 -0
  11. package/dist/components/AIChatMessage.d.ts +22 -0
  12. package/dist/components/AIChatMessage.d.ts.map +1 -0
  13. package/dist/components/AIChatToolCall.d.ts +26 -0
  14. package/dist/components/AIChatToolCall.d.ts.map +1 -0
  15. package/dist/components/AIChatToolCallGroup.d.ts +20 -0
  16. package/dist/components/AIChatToolCallGroup.d.ts.map +1 -0
  17. package/dist/components/Avatar.d.ts +23 -0
  18. package/dist/components/Avatar.d.ts.map +1 -0
  19. package/dist/components/HighlightCode/index.d.ts +11 -0
  20. package/dist/components/HighlightCode/index.d.ts.map +1 -0
  21. package/dist/components/VeracityAvatar.d.ts +3 -0
  22. package/dist/components/VeracityAvatar.d.ts.map +1 -0
  23. package/dist/components/VeracityLogoSquare.d.ts +3 -0
  24. package/dist/components/VeracityLogoSquare.d.ts.map +1 -0
  25. package/dist/components/icons/Check.d.ts +3 -0
  26. package/dist/components/icons/Check.d.ts.map +1 -0
  27. package/dist/components/icons/ExclamationCircle.d.ts +3 -0
  28. package/dist/components/icons/ExclamationCircle.d.ts.map +1 -0
  29. package/dist/components/icons/IconProps.d.ts +12 -0
  30. package/dist/components/icons/IconProps.d.ts.map +1 -0
  31. package/dist/components/icons/InfoCircle.d.ts +3 -0
  32. package/dist/components/icons/InfoCircle.d.ts.map +1 -0
  33. package/dist/components/icons/QuestionCircle.d.ts +3 -0
  34. package/dist/components/icons/QuestionCircle.d.ts.map +1 -0
  35. package/dist/components/icons/Spinner.d.ts +13 -0
  36. package/dist/components/icons/Spinner.d.ts.map +1 -0
  37. package/dist/core-Diwflo5W.js +1077 -0
  38. package/dist/csharp-Cigc7XMa.js +371 -0
  39. package/dist/css-B-yPI1XM.js +719 -0
  40. package/dist/dtos.d.ts +18 -0
  41. package/dist/dtos.d.ts.map +1 -0
  42. package/dist/enums.d.ts +30 -0
  43. package/dist/enums.d.ts.map +1 -0
  44. package/dist/index.d.ts +3 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/javascript-CDslspYb.js +654 -0
  47. package/dist/python-CzH_tl5q.js +397 -0
  48. package/dist/typescript-Bx5cZccb.js +728 -0
  49. package/dist/utils/CancellationToken.d.ts +16 -0
  50. package/dist/utils/CancellationToken.d.ts.map +1 -0
  51. package/dist/utils/OperationCancelledError.d.ts +5 -0
  52. package/dist/utils/OperationCancelledError.d.ts.map +1 -0
  53. package/dist/utils/createSVGElement.d.ts +2 -0
  54. package/dist/utils/createSVGElement.d.ts.map +1 -0
  55. package/dist/veracity-ai.es.js +4173 -0
  56. package/dist/veracity-ai.umd.js +5 -0
  57. package/package.json +36 -0
@@ -0,0 +1,35 @@
1
+ import { ChatMessageDto } from "./dtos";
2
+ import { ChatCompletionSSEMessageType, LogLevel } from "./enums";
3
+ export declare class ChatCompletionSSE {
4
+ private _reader;
5
+ private _buffer;
6
+ private _bufferOffset;
7
+ initializeConnectionAsync(url: string, messages: ChatMessageDto[]): Promise<void>;
8
+ private readBytesAsync;
9
+ private readLittleEndianInt32Async;
10
+ private readLittleEndianDoubleAsync;
11
+ private readUtf8StringAsync;
12
+ readMessageAsync(): Promise<ChatCompletionSSEMessage>;
13
+ }
14
+ export interface ChatCompletionSSEMessage {
15
+ type: ChatCompletionSSEMessageType;
16
+ elapsed?: number;
17
+ errorMarkdown?: string;
18
+ parentFunctionId?: string;
19
+ agentManifestName?: string;
20
+ agentManifestBackgroundColor?: string;
21
+ agentManifestIcon?: string;
22
+ appendMessageMarkdown?: string;
23
+ toolCallFunctionId?: string;
24
+ toolCallUpdateIndex?: number;
25
+ toolCallUpdateName?: string;
26
+ toolCallUpdateArguments?: string;
27
+ toolCallLogLevel?: LogLevel;
28
+ toolCallStatusIndex?: number;
29
+ toolCallStatusProgress?: number;
30
+ toolCallIcon?: string;
31
+ toolCallMarkdown?: string;
32
+ toolCallTime?: number;
33
+ toolCallContent?: string;
34
+ }
35
+ //# sourceMappingURL=ChatCompletionSSE.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatCompletionSSE.d.ts","sourceRoot":"","sources":["../src/ChatCompletionSSE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,4BAA4B,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEjE,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,OAAO,CAA0C;IACzD,OAAO,CAAC,OAAO,CAAiC;IAChD,OAAO,CAAC,aAAa,CAAa;IAE5B,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE;YAWzD,cAAc;YA8Bd,0BAA0B;YAO1B,2BAA2B;YAO3B,mBAAmB;IAO3B,gBAAgB,IAAI,OAAO,CAAC,wBAAwB,CAAC;CA+I5D;AAsBD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,4BAA4B,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,gBAAgB,CAAC,EAAE,QAAQ,CAAC;IAE5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAM1B"}
@@ -0,0 +1,2 @@
1
+ export declare function setElementMarkdown(element: HTMLElement, markdown: string): void;
2
+ //# sourceMappingURL=Markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../src/Markdown.ts"],"names":[],"mappings":"AAMA,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,QASxE"}
@@ -0,0 +1,23 @@
1
+ import { ChatCompletionSSE, ChatCompletionSSEMessage } from "./ChatCompletionSSE";
2
+ import { ChatMessageDto } from "./dtos";
3
+ export declare class SmoothChatCompletionSSE extends ChatCompletionSSE {
4
+ chunkSize: number;
5
+ constructor(chunkSize?: number);
6
+ initializeConnectionAsync(url: string, messages: ChatMessageDto[]): Promise<void>;
7
+ private _latestReadMessagePromise;
8
+ private _lettersRead;
9
+ private _lettersReadTime;
10
+ private _isDone;
11
+ private readMessagesContinuouslyAsync;
12
+ private readMessageFromQueueAsync;
13
+ readMessagesAsync(): AsyncGenerator<ChatCompletionSSEMessage, void, unknown>;
14
+ private _queue;
15
+ private _headIndex;
16
+ private enqueue;
17
+ private dequeue;
18
+ private peek;
19
+ private peekParentFunctionId;
20
+ private isEmpty;
21
+ private size;
22
+ }
23
+ //# sourceMappingURL=SmoothChatCompletionSSE.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmoothChatCompletionSSE.d.ts","sourceRoot":"","sources":["../src/SmoothChatCompletionSSE.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAGxC,qBAAa,uBAAwB,SAAQ,iBAAiB;IACzC,SAAS;gBAAT,SAAS,SAAI;IAG1B,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE;IAKvE,OAAO,CAAC,yBAAyB,CAAoC;IACrE,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,OAAO,CAAU;YAGX,6BAA6B;YAsB7B,yBAAyB;IAMhC,iBAAiB;IAiCxB,OAAO,CAAC,MAAM,CAAkC;IAChD,OAAO,CAAC,UAAU,CAAK;IAEvB,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,OAAO;IAkBf,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,oBAAoB;IAe5B,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,IAAI;CAGb"}
@@ -0,0 +1,26 @@
1
+ import { AIChatMessage } from "../AIChatMessage";
2
+ export interface AIChatOptions {
3
+ userId: string;
4
+ avatarLetters: string;
5
+ url: string;
6
+ }
7
+ export declare class AIChat {
8
+ readonly node: HTMLElement;
9
+ readonly userId: string;
10
+ readonly avatarLetters: string;
11
+ readonly url: string;
12
+ readonly messagesNode: HTMLOListElement;
13
+ readonly messages: AIChatMessage[];
14
+ readonly statusNode: Node;
15
+ private _canSubmit;
16
+ get canSubmit(): boolean;
17
+ constructor(options: AIChatOptions);
18
+ private _generatingNode;
19
+ private get generatingNode();
20
+ setGeneratingStatus(): void;
21
+ clearStatus(): void;
22
+ private _functionIdToParentFunctionId;
23
+ private _groupByFunctionId;
24
+ submitMessageAsync(message: string): Promise<void>;
25
+ }
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AIChat/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA0B,aAAa,EAAqB,MAAM,kBAAkB,CAAC;AAQ5F,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,qBAAa,MAAM;IACjB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAM;IACxC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;IAE1B,OAAO,CAAC,UAAU,CAAQ;IAE1B,IAAI,SAAS,YAEZ;gBAEW,OAAO,EAAE,aAAa;IAwBlC,OAAO,CAAC,eAAe,CAAO;IAE9B,OAAO,KAAK,cAAc,GAUzB;IAED,mBAAmB;IAQnB,WAAW;IAIX,OAAO,CAAC,6BAA6B,CAAwC;IAC7E,OAAO,CAAC,kBAAkB,CAAqD;IAEzE,kBAAkB,CAAC,OAAO,EAAE,MAAM;CA4HzC"}
@@ -0,0 +1,7 @@
1
+ export declare class AIChatBubble {
2
+ readonly node: HTMLDivElement;
3
+ readonly messageNode: HTMLDivElement;
4
+ constructor(message: any);
5
+ updateMarkdown(message: string): void;
6
+ }
7
+ //# sourceMappingURL=AIChatBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIChatBubble.d.ts","sourceRoot":"","sources":["../../src/components/AIChatBubble.tsx"],"names":[],"mappings":"AAQA,qBAAa,YAAY;IACvB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;gBAEzB,OAAO,EAAE,GAAG;IAQxB,cAAc,CAAC,OAAO,EAAE,MAAM;CAG/B"}
@@ -0,0 +1,22 @@
1
+ import { AIChat } from "./AIChat";
2
+ import { AIChatBubble } from "./AIChatBubble";
3
+ import { ChatMessageDto } from "../dtos";
4
+ /** This component basically contains a bubble element. However, any errors will be displayed below the bubble. Thus, the <li /> wraps the bubble and errors. */
5
+ export declare abstract class AIChatMessage {
6
+ readonly node: HTMLLIElement;
7
+ readonly chat: AIChat;
8
+ message: string;
9
+ readonly bubble: AIChatBubble;
10
+ constructor(chat: AIChat, message: any, avatar: Node);
11
+ abstract toDto(): ChatMessageDto;
12
+ }
13
+ export declare class AIChatUserMessage extends AIChatMessage {
14
+ constructor(chat: AIChat, message: any, userId: string, avatarLetters: string);
15
+ toDto(): ChatMessageDto;
16
+ }
17
+ export declare class AIChatAssistantMessage extends AIChatMessage {
18
+ constructor(chat: AIChat, message: any, avatar: Node);
19
+ updateMessage(message: string): void;
20
+ toDto(): ChatMessageDto;
21
+ }
22
+ //# sourceMappingURL=AIChatMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIChatMessage.d.ts","sourceRoot":"","sources":["../../src/components/AIChatMessage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,gKAAgK;AAChK,8BAAsB,aAAa;IACjC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;gBAElB,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI;IAWpD,QAAQ,CAAC,KAAK,IAAI,cAAc;CACjC;AAED,qBAAa,iBAAkB,SAAQ,aAAa;gBACtC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;IAU7E,KAAK,IAAI,cAAc;CAMxB;AAED,qBAAa,sBAAuB,SAAQ,aAAa;gBAC3C,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI;IAMpD,aAAa,CAAC,OAAO,EAAE,MAAM;IAK7B,KAAK,IAAI,cAAc;CAMxB"}
@@ -0,0 +1,26 @@
1
+ import { LogLevel } from "../enums";
2
+ export declare class AIChatToolCall {
3
+ readonly node: HTMLLIElement;
4
+ private _itemsNode;
5
+ private _itemsByIndex;
6
+ private _initialItem;
7
+ constructor(initialIcon: string, initialMarkdown: string, id?: string, name?: string, args?: string);
8
+ log(logLevel: LogLevel, time: number, markdown: string): void;
9
+ status(index: number, progress: number, icon: string, markdown: string): void;
10
+ done(): void;
11
+ error(): void;
12
+ }
13
+ export declare class AIChatToolCallStatusItem {
14
+ readonly node: HTMLLIElement;
15
+ private _icon;
16
+ private _iconNode;
17
+ get icon(): string;
18
+ set icon(value: string);
19
+ private _markdown;
20
+ private _markdownNode;
21
+ get markdown(): string;
22
+ set markdown(value: string);
23
+ constructor(icon: string, markdown: string);
24
+ status(progress: number, icon: string, markdown: string): void;
25
+ }
26
+ //# sourceMappingURL=AIChatToolCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIChatToolCall.d.ts","sourceRoot":"","sources":["../../src/components/AIChatToolCall.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsC,QAAQ,EAAE,MAAM,UAAU,CAAC;AASxE,qBAAa,cAAc;IACzB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IA0C7B,OAAO,CAAC,UAAU,CAAmB;IACrC,OAAO,CAAC,aAAa,CAAqD;IAC1E,OAAO,CAAC,YAAY,CAA2B;gBAUnC,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IAanG,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAmBtD,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAatE,IAAI;IAaJ,KAAK;CAiBN;AAED,qBAAa,wBAAwB;IACnC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAAY;IAE7B,IAAI,IAAI,IAIQ,MAAM,CAFrB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAKrB;IAED,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,aAAa,CAAkB;IAEvC,IAAI,QAAQ,IAIQ,MAAM,CAFzB;IAED,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAKzB;gBAEW,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAa1C,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAIxD"}
@@ -0,0 +1,20 @@
1
+ import { LogLevel } from "../enums";
2
+ import { AIChatToolCall } from "./AIChatToolCall";
3
+ export declare class AIChatToolCallGroup {
4
+ readonly node: HTMLLIElement;
5
+ readonly toolCallsNode: HTMLOListElement;
6
+ readonly toolCallsByIndex: {
7
+ [index: number]: AIChatToolCall;
8
+ };
9
+ readonly toolCallsById: {
10
+ [id: string]: AIChatToolCall;
11
+ };
12
+ constructor();
13
+ aggregate(id: string, index: number, name: string, args: string): void;
14
+ completeAggregation(): void;
15
+ log(id: string, logLevel: LogLevel, time: number, markdown: string): void;
16
+ status(id: string, index: number, progress: number, icon: string, markdown: string): void;
17
+ done(id: string): void;
18
+ error(id: string): void;
19
+ }
20
+ //# sourceMappingURL=AIChatToolCallGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIChatToolCallGroup.d.ts","sourceRoot":"","sources":["../../src/components/AIChatToolCallGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,mBAAmB;IAC9B,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAC;IACzC,QAAQ,CAAC,gBAAgB,EAAE;QACzB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC;KACjC,CAAM;IACP,QAAQ,CAAC,aAAa,EAAE;QACtB,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,CAAC;KAC9B,CAAM;;IAMP,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAe/D,mBAAmB;IAEnB,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAIlE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAIlF,IAAI,CAAC,EAAE,EAAE,MAAM;IAIf,KAAK,CAAC,EAAE,EAAE,MAAM;CAGjB"}
@@ -0,0 +1,23 @@
1
+ export type AvatarPropsBase = {
2
+ as?: any;
3
+ size?: AvatarSize | string;
4
+ id?: string;
5
+ };
6
+ export type AvatarProps<T extends keyof JSX.IntrinsicElements> = T extends "button" ? AvatarPropsBase & JSX.HTMLAttributes<HTMLButtonElement> : AvatarPropsBase & JSX.HTMLAttributes<HTMLDivElement>;
7
+ export declare enum AvatarSize {
8
+ Medium = "avatar-md",
9
+ Large = "avatar-lg",
10
+ ExtraLarge = "avatar-xl",
11
+ ExtraExtraLarge = "avatar-xxl"
12
+ }
13
+ export declare function Avatar<T extends keyof JSX.IntrinsicElements>({ as: As, size, id, ...props }: AvatarProps<T>, children: any[]): HTMLButtonElement & HTMLDivElement;
14
+ export declare const AVATAR_VARIANT_SUBTLE_GREEN: string[];
15
+ export declare const AVATAR_VARIANT_SUBTLE_YELLOW: string[];
16
+ export declare const AVATAR_VARIANT_SUBTLE_RED: string[];
17
+ export declare const AVATAR_VARIANT_SUBTLE_BLUE: string[];
18
+ export declare const AVATAR_VARIANT_SUBTLE_LAVENDER: string[];
19
+ export declare const AVATAR_VARIANT_SUBTLE_EUCALYPTUS: string[];
20
+ export declare const AVATAR_VARIANT_SUBTLE_TERRACOTTA: string[];
21
+ export declare const AVATAR_SUBTLE_VARIANTS: string[][];
22
+ export declare function generateAvatarVariantFromId(id: string): string[];
23
+ //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,eAAe,GAAG;IAAE,EAAE,CAAC,MAAC;IAAC,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC/E,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,IAC3D,CAAC,SAAS,QAAQ,GACd,eAAe,GAAG,GAAG,CAAC,cAAc,CAAC,iBAAiB,CAAC,GACvD,eAAe,GAAG,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAE3D,oBAAY,UAAU;IACpB,MAAM,cAAc;IACpB,KAAK,cAAc;IACnB,UAAU,cAAc;IACxB,eAAe,eAAe;CAC/B;AAED,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,EAC1D,EAAE,EAAE,EAAE,EAAU,EAAE,IAAuB,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,EACzE,QAAQ,EAAE,GAAG,EAAE,sCAShB;AAED,eAAO,MAAM,2BAA2B,UAGvC,CAAC;AACF,eAAO,MAAM,4BAA4B,UAGxC,CAAC;AACF,eAAO,MAAM,yBAAyB,UAGrC,CAAC;AACF,eAAO,MAAM,0BAA0B,UAGtC,CAAC;AACF,eAAO,MAAM,8BAA8B,UAG1C,CAAC;AACF,eAAO,MAAM,gCAAgC,UAG5C,CAAC;AACF,eAAO,MAAM,gCAAgC,UAG5C,CAAC;AAEF,eAAO,MAAM,sBAAsB,YAQlC,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,MAAM,YAKrD"}
@@ -0,0 +1,11 @@
1
+ export declare class HighlightCode {
2
+ readonly node: HTMLElement;
3
+ readonly codeNode: HTMLElement;
4
+ language: string;
5
+ code: string;
6
+ constructor(language: string, code: string);
7
+ private _ct;
8
+ private updateCodeAsync;
9
+ updateCode(language: string, code: string): void;
10
+ }
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HighlightCode/index.tsx"],"names":[],"mappings":"AAMA,qBAAa,aAAa;IACxB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAE/B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;gBAED,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAK1C,OAAO,CAAC,GAAG,CAAoB;YAEjB,eAAe;IAiB7B,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAK1C"}
@@ -0,0 +1,3 @@
1
+ import { AvatarProps } from "./Avatar";
2
+ export declare function VeracityAvatar<T extends keyof JSX.IntrinsicElements>(props: AvatarProps<T>): HTMLButtonElement & HTMLDivElement;
3
+ //# sourceMappingURL=VeracityAvatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VeracityAvatar.d.ts","sourceRoot":"","sources":["../../src/components/VeracityAvatar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAG/C,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,EAClE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,sCAStB"}
@@ -0,0 +1,3 @@
1
+ import { IconProps } from "./icons/IconProps";
2
+ export declare function VeracityLogoSquare({ size, ...props }: IconProps): SVGElement;
3
+ //# sourceMappingURL=VeracityLogoSquare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VeracityLogoSquare.d.ts","sourceRoot":"","sources":["../../src/components/VeracityLogoSquare.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,wBAAgB,kBAAkB,CAAC,EAAE,IAAW,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,cAqBtE"}
@@ -0,0 +1,3 @@
1
+ import { IconProps } from "./IconProps";
2
+ export declare function Check({ size, ...props }: IconProps): SVGElement;
3
+ //# sourceMappingURL=Check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Check.d.ts","sourceRoot":"","sources":["../../../src/components/icons/Check.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,MAAM,aAAa,CAAC;AAElD,wBAAgB,KAAK,CAAC,EAAE,IAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,cAqBpE"}
@@ -0,0 +1,3 @@
1
+ import { IconProps } from "./IconProps";
2
+ export declare function ExclamationCircle({ size, ...props }: IconProps): SVGElement;
3
+ //# sourceMappingURL=ExclamationCircle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExclamationCircle.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ExclamationCircle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,MAAM,aAAa,CAAC;AAElD,wBAAgB,iBAAiB,CAAC,EAAE,IAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,cAqBhF"}
@@ -0,0 +1,12 @@
1
+ export declare enum IconSize {
2
+ ExtraSmall = "16",
3
+ Small = "20",
4
+ Medium = "24",
5
+ Large = "28",
6
+ ExtraLarge = "32",
7
+ ExtraExtraLarge = "40"
8
+ }
9
+ export interface IconProps extends JSX.SVGAttributes<SVGSVGElement> {
10
+ size?: IconSize | string;
11
+ }
12
+ //# sourceMappingURL=IconProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconProps.d.ts","sourceRoot":"","sources":["../../../src/components/icons/IconProps.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,UAAU,OAAO;IACjB,KAAK,OAAO;IACZ,MAAM,OAAO;IACb,KAAK,OAAO;IACZ,UAAU,OAAO;IACjB,eAAe,OAAO;CACvB;AAED,MAAM,WAAW,SAAU,SAAQ,GAAG,CAAC,aAAa,CAAC,aAAa,CAAC;IACjE,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,3 @@
1
+ import { IconProps } from "./IconProps";
2
+ export declare function InfoCircle({ size, ...props }: IconProps): SVGElement;
3
+ //# sourceMappingURL=InfoCircle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfoCircle.d.ts","sourceRoot":"","sources":["../../../src/components/icons/InfoCircle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,MAAM,aAAa,CAAC;AAElD,wBAAgB,UAAU,CAAC,EAAE,IAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,cAqBzE"}
@@ -0,0 +1,3 @@
1
+ import { IconProps } from "./IconProps";
2
+ export declare function QuestionCircle({ size, ...props }: IconProps): SVGElement;
3
+ //# sourceMappingURL=QuestionCircle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionCircle.d.ts","sourceRoot":"","sources":["../../../src/components/icons/QuestionCircle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,MAAM,aAAa,CAAC;AAElD,wBAAgB,cAAc,CAAC,EAAE,IAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,cAqB7E"}
@@ -0,0 +1,13 @@
1
+ import { IconProps } from "./IconProps";
2
+ export declare enum SpinnerSize {
3
+ ExtraSmall = "20",
4
+ Small = "24",
5
+ Medium = "32",
6
+ Large = "40",
7
+ ExtraLarge = "48",
8
+ ExtraExtraLarge = "60",
9
+ ExtraExtraExtraLarge = "80",
10
+ ExtraExtraExtraExtraLarge = "120"
11
+ }
12
+ export declare function Spinner({ size, ...props }: IconProps): SVGElement;
13
+ //# sourceMappingURL=Spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/icons/Spinner.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,MAAM,aAAa,CAAC;AAElD,oBAAY,WAAW;IACrB,UAAU,OAAO;IACjB,KAAK,OAAO;IACZ,MAAM,OAAO;IACb,KAAK,OAAO;IACZ,UAAU,OAAO;IACjB,eAAe,OAAO;IACtB,oBAAoB,OAAO;IAC3B,yBAAyB,QAAQ;CAClC;AAED,wBAAgB,OAAO,CAAC,EACtB,IAAuC,EACvC,GAAG,KAAK,EACT,EAAE,SAAS,cAiCX"}