@altimateai/ui-components 0.0.1-beta.3 → 0.0.1-beta.4

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 (55) hide show
  1. package/dist/Accordion.js +43 -114
  2. package/dist/Badge.js +1 -1
  3. package/dist/CoachForm.js +7112 -7241
  4. package/dist/DbtDocsRenderer.js +833 -2651
  5. package/dist/Tooltip.js +115 -0
  6. package/dist/chatbot/index.js +100 -96
  7. package/dist/flowchart-elk-definition-170a3958.js +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/index2.js +1 -5
  10. package/dist/lineage/index.js +2284 -2710
  11. package/dist/main.js +49 -184
  12. package/dist/mindmap-definition-44684416.js +1 -1
  13. package/dist/redux-toolkit.modern.js +1 -1
  14. package/dist/shadcn/index.js +352 -382
  15. package/dist/v4.js +524 -514
  16. package/package.json +2 -2
  17. package/dist/Stack.js +0 -132
  18. package/dist/assets/icons/index.d.ts +0 -96
  19. package/dist/chatbot/index.d.ts +0 -39
  20. package/dist/chatbotV2/index.d.ts +0 -176
  21. package/dist/index.d.ts +0 -217
  22. package/dist/lineage/index.d.ts +0 -183
  23. package/dist/shadcn/index.d.ts +0 -517
  24. package/dist/storybook/Accordion.stories.tsx +0 -61
  25. package/dist/storybook/Alert.stories.tsx +0 -65
  26. package/dist/storybook/AlertDialog.stories.tsx +0 -166
  27. package/dist/storybook/Avatar.stories.tsx +0 -58
  28. package/dist/storybook/Badge.stories.tsx +0 -36
  29. package/dist/storybook/Button.stories.tsx +0 -129
  30. package/dist/storybook/Card.stories.tsx +0 -76
  31. package/dist/storybook/Checkbox.stories.tsx +0 -74
  32. package/dist/storybook/Command.stories.tsx +0 -35
  33. package/dist/storybook/DropdownMenu.stories.tsx +0 -36
  34. package/dist/storybook/Form.stories.tsx +0 -120
  35. package/dist/storybook/HoverCard.stories.tsx +0 -105
  36. package/dist/storybook/Input.stories.tsx +0 -53
  37. package/dist/storybook/Label.stories.tsx +0 -42
  38. package/dist/storybook/Menubar.stories.tsx +0 -159
  39. package/dist/storybook/Pagination.stories.tsx +0 -155
  40. package/dist/storybook/Popover.stories.tsx +0 -25
  41. package/dist/storybook/Progress.stories.tsx +0 -89
  42. package/dist/storybook/RadioGroup.stories.tsx +0 -61
  43. package/dist/storybook/Resizable.stories.tsx +0 -119
  44. package/dist/storybook/ScrollArea.stories.tsx +0 -120
  45. package/dist/storybook/Select.stories.tsx +0 -95
  46. package/dist/storybook/Sheet.stories.tsx +0 -75
  47. package/dist/storybook/Sidebar.stories.tsx +0 -97
  48. package/dist/storybook/Slider.stories.tsx +0 -81
  49. package/dist/storybook/Switch.stories.tsx +0 -99
  50. package/dist/storybook/Textarea.stories.tsx +0 -50
  51. package/dist/storybook/Toast.stories.tsx +0 -111
  52. package/dist/storybook/Tooltip.stories.tsx +0 -33
  53. package/dist/storybook/Typography.stories.tsx +0 -178
  54. package/dist/types-PVxbm0tZ.d.ts +0 -99
  55. /package/dist/{Stack.css → v4.css} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.1-beta.3",
3
+ "version": "0.0.1-beta.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"
@@ -52,4 +52,4 @@
52
52
  "react": "^17.0.0 || ^18.0.0",
53
53
  "react-dom": "^17.0.0 || ^18.0.0"
54
54
  }
55
- }
55
+ }
package/dist/Stack.js DELETED
@@ -1,132 +0,0 @@
1
- import { j as l } from "./index2.js";
2
- import { createContext as f, Component as h, createElement as u, isValidElement as m, useState as p, useRef as g, forwardRef as y } from "react";
3
- import { Tooltip as v } from "reactstrap";
4
- import './Stack.css';var S = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
- function T(n) {
6
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
7
- }
8
- const E = f(null), c = {
9
- didCatch: !1,
10
- error: null
11
- };
12
- class b extends h {
13
- constructor(t) {
14
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = c;
15
- }
16
- static getDerivedStateFromError(t) {
17
- return {
18
- didCatch: !0,
19
- error: t
20
- };
21
- }
22
- resetErrorBoundary() {
23
- const {
24
- error: t
25
- } = this.state;
26
- if (t !== null) {
27
- for (var o, e, r = arguments.length, a = new Array(r), s = 0; s < r; s++)
28
- a[s] = arguments[s];
29
- (o = (e = this.props).onReset) === null || o === void 0 || o.call(e, {
30
- args: a,
31
- reason: "imperative-api"
32
- }), this.setState(c);
33
- }
34
- }
35
- componentDidCatch(t, o) {
36
- var e, r;
37
- (e = (r = this.props).onError) === null || e === void 0 || e.call(r, t, o);
38
- }
39
- componentDidUpdate(t, o) {
40
- const {
41
- didCatch: e
42
- } = this.state, {
43
- resetKeys: r
44
- } = this.props;
45
- if (e && o.error !== null && j(t.resetKeys, r)) {
46
- var a, s;
47
- (a = (s = this.props).onReset) === null || a === void 0 || a.call(s, {
48
- next: r,
49
- prev: t.resetKeys,
50
- reason: "keys"
51
- }), this.setState(c);
52
- }
53
- }
54
- render() {
55
- const {
56
- children: t,
57
- fallbackRender: o,
58
- FallbackComponent: e,
59
- fallback: r
60
- } = this.props, {
61
- didCatch: a,
62
- error: s
63
- } = this.state;
64
- let i = t;
65
- if (a) {
66
- const d = {
67
- error: s,
68
- resetErrorBoundary: this.resetErrorBoundary
69
- };
70
- if (typeof o == "function")
71
- i = o(d);
72
- else if (e)
73
- i = u(e, d);
74
- else if (r === null || m(r))
75
- i = r;
76
- else
77
- throw s;
78
- }
79
- return u(E.Provider, {
80
- value: {
81
- didCatch: a,
82
- error: s,
83
- resetErrorBoundary: this.resetErrorBoundary
84
- }
85
- }, i);
86
- }
87
- }
88
- function j() {
89
- let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
90
- return n.length !== t.length || n.some((o, e) => !Object.is(o, t[e]));
91
- }
92
- const O = (n) => {
93
- const [t, o] = p(!1), e = () => o(!t), r = g(
94
- (n.id ?? `tooltip-${Math.random().toString(36).substring(3, 9)}`).replace(/\s/g, "-")
95
- );
96
- return /* @__PURE__ */ l.jsxs(b, { fallback: /* @__PURE__ */ l.jsx("span", { id: r.current, children: n.children }), children: [
97
- /* @__PURE__ */ l.jsx("span", { id: r.current, children: n.children }),
98
- n.title ? /* @__PURE__ */ l.jsx(
99
- v,
100
- {
101
- isOpen: t,
102
- target: r.current,
103
- toggle: e,
104
- className: n.className,
105
- placement: "top",
106
- children: n.title
107
- }
108
- ) : null
109
- ] });
110
- }, C = "_stack_73h55_1", k = {
111
- stack: C
112
- }, D = y(function({
113
- children: t,
114
- direction: o = "row",
115
- ...e
116
- }, r) {
117
- return /* @__PURE__ */ l.jsx(
118
- "div",
119
- {
120
- ...e,
121
- className: `${e.className} ${k.stack} stack-${o}`,
122
- ref: r,
123
- children: t
124
- }
125
- );
126
- });
127
- export {
128
- D as S,
129
- O as T,
130
- S as c,
131
- T as g
132
- };
@@ -1,96 +0,0 @@
1
- import { FC, SVGProps } from 'react';
2
- declare const AddIcon: FC<SVGProps<SVGSVGElement>>;
3
- declare const ArrowLeftIcon: FC<SVGProps<SVGSVGElement>>;
4
- declare const ArrowRightIcon: FC<SVGProps<SVGSVGElement>>;
5
- declare const AskIcon: FC<SVGProps<SVGSVGElement>>;
6
- declare const BoltIcon: FC<SVGProps<SVGSVGElement>>;
7
- declare const BracketsIcon: FC<SVGProps<SVGSVGElement>>;
8
- declare const CaseSensitiveIcon: FC<SVGProps<SVGSVGElement>>;
9
- declare const CheckNoOutlineIcon: FC<SVGProps<SVGSVGElement>>;
10
- declare const CheckedIcon: FC<SVGProps<SVGSVGElement>>;
11
- declare const ChevronDownIcon: FC<SVGProps<SVGSVGElement>>;
12
- declare const ChevronLeftIcon: FC<SVGProps<SVGSVGElement>>;
13
- declare const ChevronRightIcon: FC<SVGProps<SVGSVGElement>>;
14
- declare const ChevronUpIcon: FC<SVGProps<SVGSVGElement>>;
15
- declare const CircleIcon: FC<SVGProps<SVGSVGElement>>;
16
- declare const CloseIcon: FC<SVGProps<SVGSVGElement>>;
17
- declare const CodeIcon: FC<SVGProps<SVGSVGElement>>;
18
- declare const CommentAddIcon: FC<SVGProps<SVGSVGElement>>;
19
- declare const CommentDiscussionIcon: FC<SVGProps<SVGSVGElement>>;
20
- declare const CommentUnresolvedIcon: FC<SVGProps<SVGSVGElement>>;
21
- declare const CopyIcon: FC<SVGProps<SVGSVGElement>>;
22
- declare const DatabaseIcon: FC<SVGProps<SVGSVGElement>>;
23
- declare const DeleteIcon: FC<SVGProps<SVGSVGElement>>;
24
- declare const DownloadIcon: FC<SVGProps<SVGSVGElement>>;
25
- declare const EditIcon: FC<SVGProps<SVGSVGElement>>;
26
- declare const FileUploadIcon: FC<SVGProps<SVGSVGElement>>;
27
- declare const FilesIcon: FC<SVGProps<SVGSVGElement>>;
28
- declare const GitMergeIcon: FC<SVGProps<SVGSVGElement>>;
29
- declare const GithubIcon: FC<SVGProps<SVGSVGElement>>;
30
- declare const GlobeIcon: FC<SVGProps<SVGSVGElement>>;
31
- declare const GripVerticalIcon: FC<SVGProps<SVGSVGElement>>;
32
- declare const HalfCircleIcon: FC<SVGProps<SVGSVGElement>>;
33
- declare const InfoCircleIcon: FC<SVGProps<SVGSVGElement>>;
34
- declare const LoaderIcon: FC<SVGProps<SVGSVGElement>>;
35
- declare const MoreIcon: FC<SVGProps<SVGSVGElement>>;
36
- declare const PanelLeftIcon: FC<SVGProps<SVGSVGElement>>;
37
- declare const RefreshIcon: FC<SVGProps<SVGSVGElement>>;
38
- declare const RemoveIcon: FC<SVGProps<SVGSVGElement>>;
39
- declare const RobotIcon: FC<SVGProps<SVGSVGElement>>;
40
- declare const SearchIcon: FC<SVGProps<SVGSVGElement>>;
41
- declare const SettingsIcon: FC<SVGProps<SVGSVGElement>>;
42
- declare const ShareIcon: FC<SVGProps<SVGSVGElement>>;
43
- declare const SplitHorizontalIcon: FC<SVGProps<SVGSVGElement>>;
44
- declare const ThinkingIcon: FC<SVGProps<SVGSVGElement>>;
45
- declare const ThumbsDownIcon: FC<SVGProps<SVGSVGElement>>;
46
- declare const ThumbsUpIcon: FC<SVGProps<SVGSVGElement>>;
47
- declare const UserIcon: FC<SVGProps<SVGSVGElement>>;
48
-
49
- export {
50
- AddIcon,
51
- ArrowLeftIcon,
52
- ArrowRightIcon,
53
- AskIcon,
54
- BoltIcon,
55
- BracketsIcon,
56
- CaseSensitiveIcon,
57
- CheckNoOutlineIcon,
58
- CheckedIcon,
59
- ChevronDownIcon,
60
- ChevronLeftIcon,
61
- ChevronRightIcon,
62
- ChevronUpIcon,
63
- CircleIcon,
64
- CloseIcon,
65
- CodeIcon,
66
- CommentAddIcon,
67
- CommentDiscussionIcon,
68
- CommentUnresolvedIcon,
69
- CopyIcon,
70
- DatabaseIcon,
71
- DeleteIcon,
72
- DownloadIcon,
73
- EditIcon,
74
- FileUploadIcon,
75
- FilesIcon,
76
- GitMergeIcon,
77
- GithubIcon,
78
- GlobeIcon,
79
- GripVerticalIcon,
80
- HalfCircleIcon,
81
- InfoCircleIcon,
82
- LoaderIcon,
83
- MoreIcon,
84
- PanelLeftIcon,
85
- RefreshIcon,
86
- RemoveIcon,
87
- RobotIcon,
88
- SearchIcon,
89
- SettingsIcon,
90
- ShareIcon,
91
- SplitHorizontalIcon,
92
- ThinkingIcon,
93
- ThumbsDownIcon,
94
- ThumbsUpIcon,
95
- UserIcon
96
- };
@@ -1,39 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ChatMessage } from '@ant-design/pro-chat';
3
- import { ProChatProps } from '@ant-design/pro-chat/es/ProChat/container';
4
- import { T as TaskLabels } from '../types-PVxbm0tZ.js';
5
- import 'react';
6
- import '@reduxjs/toolkit';
7
- import 'zod';
8
-
9
- interface Citation {
10
- id: string;
11
- content: string;
12
- taskLabel: TaskLabels;
13
- }
14
- interface StatusInfoMessage {
15
- type: "info" | "agent_outcome" | "citations";
16
- message: string;
17
- citations?: Citation[];
18
- id?: string;
19
- }
20
-
21
- interface Props extends ProChatProps<any> {
22
- loading?: boolean;
23
- onRequest: (messages: ChatMessage[], sessionId: string, onStatusUpdate: (info: StatusInfoMessage) => void) => any;
24
- sessionId?: string;
25
- onFollowupRequest?: (sessionId: string) => Promise<string[] | undefined>;
26
- frontendUrl: string;
27
- }
28
- declare const Chatbot: ({ loading, onRequest, sessionId: sessionIdProp, onFollowupRequest, frontendUrl, ...props }: Props) => react_jsx_runtime.JSX.Element;
29
-
30
- declare const ChatTriggerLink: ({ text }: {
31
- text: string;
32
- }) => react_jsx_runtime.JSX.Element;
33
-
34
- declare const Citations: ({ citations, frontendUrl, }: {
35
- citations?: Citation[];
36
- frontendUrl: string;
37
- }) => JSX.Element | null;
38
-
39
- export { ChatTriggerLink, Chatbot, type Citation, Citations, type StatusInfoMessage };
@@ -1,176 +0,0 @@
1
- import React__default, { FC } from 'react';
2
- import { T as TaskLabels } from '../types-PVxbm0tZ.js';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import '@reduxjs/toolkit';
5
- import 'zod';
6
-
7
- interface AgentAction {
8
- id?: string;
9
- type: "info" | "analysis";
10
- content: string;
11
- timestamp: number;
12
- artifacts?: Artifact[];
13
- }
14
- declare enum LoadingState {
15
- LOADING = "LOADING",
16
- LOADED = "LOADED",
17
- ERROR = "ERROR",
18
- UNINITIALIZED = "UNINITIALIZED"
19
- }
20
- interface AssistantMeta {
21
- avatar: string;
22
- name: string;
23
- }
24
- interface Feedback {
25
- rating?: "up" | "down";
26
- comment?: string;
27
- }
28
- interface ChatSession {
29
- id: string;
30
- messages: ChatMessage[];
31
- context?: {
32
- files?: File[];
33
- selectedOptions?: string[];
34
- [x: string]: unknown;
35
- };
36
- }
37
- interface FileUploadProps {
38
- allowedFiles: string;
39
- contextFieldKey: string;
40
- }
41
- interface ChatbotProps {
42
- helloMessage?: React.ReactNode;
43
- assistantMeta?: AssistantMeta;
44
- context?: Record<string, unknown>;
45
- fileUploadProps?: FileUploadProps;
46
- }
47
- type InteractionType = "text" | "select" | "multiSelect" | "confirm";
48
- interface InteractionChoice {
49
- id: string;
50
- label: string;
51
- value: string;
52
- }
53
- interface InteractionRequest {
54
- type: InteractionType;
55
- id: string;
56
- prompt: string;
57
- required?: boolean;
58
- choices?: InteractionChoice[];
59
- validation?: {
60
- pattern?: string;
61
- message?: string;
62
- };
63
- }
64
- interface ChatMessage {
65
- id: string;
66
- content: string;
67
- role: "user" | "assistant";
68
- timestamp: number;
69
- followUpQuestions?: string[];
70
- actions?: AgentAction[];
71
- interaction?: InteractionRequest;
72
- artifacts?: Artifact[];
73
- heading: string;
74
- }
75
- interface Artifact {
76
- content: string;
77
- entity: string;
78
- name: string;
79
- type: string;
80
- }
81
- interface ChatResponse {
82
- content: string;
83
- followUpQuestions?: string[];
84
- actions?: AgentAction[];
85
- interaction?: InteractionRequest;
86
- role: "assistant" | "user";
87
- timestamp: number;
88
- artifacts?: Artifact[];
89
- heading: string;
90
- }
91
- interface ChatState {
92
- sessions: Record<string, ChatSession>;
93
- currentSessionId: string | null;
94
- loadingState: LoadingState;
95
- error: string | null;
96
- abortController: AbortController | null;
97
- currentActions: AgentAction[];
98
- taskLabel?: keyof typeof TaskLabels;
99
- initialValidation?: (data: {
100
- context: ChatSession["context"];
101
- }) => Promise<void>;
102
- }
103
-
104
- declare const Chatbot: FC<ChatbotProps>;
105
-
106
- declare const ChatProvider: React__default.FC<{
107
- children: React__default.ReactNode;
108
- taskLabel?: keyof typeof TaskLabels;
109
- initialValidation?: ChatState["initialValidation"];
110
- }>;
111
-
112
- interface ArtifactsProps {
113
- artifacts: Artifact[];
114
- }
115
- declare const Artifacts: FC<ArtifactsProps>;
116
-
117
- declare const CancelGenerationButton: React__default.FC;
118
-
119
- declare const CoachAI: () => react_jsx_runtime.JSX.Element | null;
120
-
121
- interface ContextPanelProps {
122
- fileUploadProps?: {
123
- allowedFiles: string;
124
- contextFieldKey: string;
125
- };
126
- }
127
- declare const ContextPanel: React.FC<ContextPanelProps>;
128
-
129
- interface FeedbackButtonsProps {
130
- messageId: string;
131
- }
132
- declare const FeedbackButtons: FC<FeedbackButtonsProps>;
133
-
134
- interface InteractionPromptProps {
135
- interaction: InteractionRequest;
136
- }
137
- declare const InteractionPrompt: React__default.FC<InteractionPromptProps>;
138
-
139
- declare const LoadingIndicator: FC;
140
-
141
- interface MessageItemProps {
142
- message: ChatMessage;
143
- isLastMessage?: boolean;
144
- }
145
- declare const MessageItem: FC<MessageItemProps>;
146
-
147
- interface MessageListProps {
148
- messages: ChatMessage[];
149
- }
150
- declare const MessageList: FC<MessageListProps>;
151
-
152
- interface MessageMenuProps {
153
- messageId: string;
154
- content: string;
155
- }
156
- declare const MessageMenu: FC<MessageMenuProps>;
157
-
158
- interface QuestionFormProps {
159
- onSubmit: (message: string) => Promise<void>;
160
- isLoading: boolean;
161
- }
162
- declare const QuestionForm: React.FC<QuestionFormProps>;
163
-
164
- interface RegenerateButtonProps {
165
- messageId: string;
166
- }
167
- declare const RegenerateButton: FC<RegenerateButtonProps>;
168
-
169
- interface StatusUpdatesProps {
170
- actions: AgentAction[];
171
- isComplete?: boolean;
172
- heading: string;
173
- }
174
- declare const StatusUpdates: FC<StatusUpdatesProps>;
175
-
176
- export { type AgentAction, type Artifact, Artifacts, type AssistantMeta, CancelGenerationButton, type ChatMessage, ChatProvider, type ChatResponse, type ChatSession, type ChatState, type ChatbotProps, Chatbot as ChatbotV2, CoachAI, ContextPanel, type Feedback, FeedbackButtons, type InteractionChoice, InteractionPrompt, type InteractionRequest, type InteractionType, LoadingIndicator, LoadingState, MessageItem, MessageList, MessageMenu, QuestionForm, RegenerateButton, StatusUpdates };
package/dist/index.d.ts DELETED
@@ -1,217 +0,0 @@
1
- import { ButtonHTMLAttributes, ReactNode } from 'react';
2
- import { ButtonProps, BadgeProps } from 'reactstrap';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-PVxbm0tZ.js';
5
- export { f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, l as learningSchema } from './types-PVxbm0tZ.js';
6
- import * as _reduxjs_toolkit from '@reduxjs/toolkit';
7
- import { PayloadAction } from '@reduxjs/toolkit';
8
- import * as immer from 'immer';
9
- import { z } from 'zod';
10
-
11
- interface Props$a extends ButtonHTMLAttributes<HTMLButtonElement> {
12
- color?: string;
13
- }
14
- declare const IconButton: (props: Props$a) => JSX.Element;
15
-
16
- interface Props$9 {
17
- children: ReactNode;
18
- title?: string | ReactNode;
19
- id?: string;
20
- className?: string;
21
- }
22
- declare const Tooltip: (props: Props$9) => JSX.Element;
23
-
24
- interface Props$8 extends ButtonProps {
25
- loading: boolean;
26
- }
27
- declare const LoadingButton: ({ loading, ...rest }: Props$8) => JSX.Element;
28
-
29
- interface Props$7 {
30
- code: string;
31
- language: "sql" | "yaml" | "markdown" | "json" | "javascript";
32
- fileName?: string;
33
- showLineNumbers?: boolean;
34
- editorTheme?: "vs" | "vsc-dark-plus" | "solarizedLight" | "tomorrow";
35
- theme: "light" | "dark";
36
- className?: string;
37
- titleActions?: ReactNode;
38
- }
39
- declare const CodeBlockComponent: ({ code, language, fileName, editorTheme, theme, showLineNumbers, className, titleActions, }: Props$7) => JSX.Element;
40
-
41
- interface Props$6 extends BadgeProps {
42
- tooltip: Parameters<typeof Tooltip>[0]["title"];
43
- }
44
- declare const Badge: ({ tooltip, ...props }: Props$6) => react_jsx_runtime.JSX.Element;
45
-
46
- declare const ApiHelper: {
47
- get: <T>(_url: string, _data?: Record<string, unknown>, _request?: RequestInit) => Promise<T>;
48
- post: <T>(_url: string, _data: Record<string, unknown>, _request?: RequestInit) => Promise<T>;
49
- };
50
-
51
- interface User {
52
- display_name: string;
53
- first_name: string;
54
- last_name: string;
55
- id: number;
56
- }
57
-
58
- interface DbtDocsShareDetails {
59
- catalog_presigned_url?: string;
60
- manifest_presigned_url?: string;
61
- share_id: number;
62
- }
63
-
64
- interface Conversation {
65
- timestamp: string;
66
- user_id: number;
67
- message: string;
68
- conversation_id: number;
69
- }
70
- interface ConversationGroup {
71
- owner: number;
72
- conversation_group_id: number;
73
- conversations: Conversation[];
74
- status: "Pending" | "Expired";
75
- meta: {
76
- field?: "description";
77
- column?: string;
78
- filePath: string;
79
- highlight: string;
80
- uniqueId?: string;
81
- resource_type?: string;
82
- range: {
83
- end: {
84
- line: number;
85
- character: number;
86
- };
87
- start: {
88
- line: number;
89
- character: number;
90
- };
91
- };
92
- };
93
- }
94
- declare enum ConversationSources {
95
- DBT_DOCS = "dbt-docs",
96
- DOCUMENTATION_EDITOR = "documentation-editor",
97
- SAAS = "saas"
98
- }
99
-
100
- interface Props$5 {
101
- shareId: number;
102
- userId?: number;
103
- conversationGroupId?: number;
104
- source: ConversationSources;
105
- }
106
- declare const DbtDocs: ({ shareId, userId, conversationGroupId, source }: Props$5) => react_jsx_runtime.JSX.Element;
107
-
108
- interface Props$4 {
109
- comment: string;
110
- setComment: (comment: string) => void;
111
- loading: boolean;
112
- users: User[];
113
- currentUser: User | null;
114
- placeholder?: string;
115
- onEnterKeypress?: () => void;
116
- }
117
- declare const ConversationInputForm: ({ comment, setComment, loading, users, currentUser, placeholder, onEnterKeypress, }: Props$4) => react_jsx_runtime.JSX.Element;
118
-
119
- interface Props$3 {
120
- currentUser?: User;
121
- conversationGroup?: ConversationGroup;
122
- shareId?: DbtDocsShareDetails["share_id"];
123
- isSelected: boolean;
124
- users: Record<User["id"], User>;
125
- onSelect: () => void;
126
- onResolve: () => void;
127
- onReplyAdd: () => void;
128
- source: ConversationSources;
129
- }
130
- declare const ConversationGroupProvider: ({ currentUser, conversationGroup, shareId, onSelect, isSelected, users, onResolve, onReplyAdd, source, }: Props$3) => JSX.Element | null;
131
-
132
- declare const TeamMateProvider: ({ children, }: {
133
- children: ReactNode;
134
- }) => JSX.Element;
135
-
136
- interface CoachFormProps {
137
- taskLabel: keyof typeof TaskLabels;
138
- context?: Record<string, unknown>;
139
- extra?: Record<string, unknown>;
140
- onClose: (data?: unknown) => void;
141
- }
142
- declare const CoachForm: (props: CoachFormProps) => react_jsx_runtime.JSX.Element;
143
-
144
- interface Props$2 {
145
- }
146
- declare const CoachFormButton: ({}: Props$2) => react_jsx_runtime.JSX.Element;
147
-
148
- declare const useTeamMateContext: () => TeamMateContextProps;
149
-
150
- declare const TeammateActions: _reduxjs_toolkit.CaseReducerActions<{
151
- setShowCoachingForm: (state: immer.WritableDraft<TeamMateState>, action: PayloadAction<TeamMateState["showCoachingForm"]>) => void;
152
- }, "teamMate">;
153
-
154
- interface Props$1 {
155
- filters?: {
156
- taskLabel?: keyof typeof TaskLabels;
157
- };
158
- learning?: string | null;
159
- }
160
- declare const LearningsPage: ({ filters, learning }: Props$1) => react_jsx_runtime.JSX.Element;
161
-
162
- declare const TeamMatesConfig: TeamMateConfig[];
163
-
164
- interface Props {
165
- onSelect: (selected: (typeof TeamMatesConfig)[0], action: TeamMateActionType) => Promise<boolean | undefined>;
166
- client: keyof typeof TeamMateAvailability;
167
- }
168
- declare const TeamMates: ({ onSelect, client }: Props) => react_jsx_runtime.JSX.Element;
169
-
170
- declare enum ProjectGovernorCheckTypes {
171
- DOCUMENTATION = "documentation",
172
- TESTS = "tests",
173
- MODEL = "model",
174
- FILE_STRUCTURE = "file_structure"
175
- }
176
- declare enum ProjectGovernorAllowedFiles {
177
- Manifest = "Manifest",
178
- Catalog = "Catalog"
179
- }
180
- interface ProjectGovernorCheckFormValues {
181
- description: string;
182
- type: ProjectGovernorCheckTypes;
183
- }
184
- interface ProjectGovernorCheckValidateResponse {
185
- name: string;
186
- description: string;
187
- }
188
- interface ProjectGovernorCheckConfirmationResponse {
189
- ok: boolean;
190
- }
191
- declare const ProjectGovernorCheckSchema: z.ZodObject<{
192
- name: z.ZodString;
193
- alias: z.ZodString;
194
- type: z.ZodEnum<[string, ...string[]]>;
195
- description: z.ZodString;
196
- files_required: z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">;
197
- config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
198
- }, "strip", z.ZodTypeAny, {
199
- type: string;
200
- name: string;
201
- description: string;
202
- alias: string;
203
- files_required: string[];
204
- config: Record<string, unknown>;
205
- }, {
206
- type: string;
207
- name: string;
208
- description: string;
209
- alias: string;
210
- files_required: string[];
211
- config: Record<string, unknown>;
212
- }>;
213
- interface ProjectGovernorCheck extends z.infer<typeof ProjectGovernorCheckSchema> {
214
- id: string;
215
- }
216
-
217
- export { ApiHelper, Badge, CoachForm, CoachFormButton, CodeBlockComponent as CodeBlock, type Conversation, type ConversationGroup, ConversationGroupProvider, ConversationInputForm, ConversationSources, DbtDocs, type DbtDocsShareDetails, IconButton, LearningsPage as Learnings, LoadingButton, ProjectGovernorAllowedFiles, type ProjectGovernorCheck, type ProjectGovernorCheckConfirmationResponse, type ProjectGovernorCheckFormValues, ProjectGovernorCheckSchema, ProjectGovernorCheckTypes, type ProjectGovernorCheckValidateResponse, TaskLabels, TeamMateActionType, TeamMateAvailability, TeamMateConfig, TeamMateContextProps, TeamMateProvider, TeamMateState, TeamMates, TeamMatesConfig, TeammateActions, Tooltip, useTeamMateContext };