@rustic-ai/ui-components 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 (50) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +27 -0
  3. package/dist/components/calendar/fCCalendar.d.ts +14 -0
  4. package/dist/components/calendar/fCCalendar.d.ts.map +1 -0
  5. package/dist/components/chart/rechartsTimeSeries.d.ts +68 -0
  6. package/dist/components/chart/rechartsTimeSeries.d.ts.map +1 -0
  7. package/dist/components/elementRenderer/elementRenderer.d.ts +8 -0
  8. package/dist/components/elementRenderer/elementRenderer.d.ts.map +1 -0
  9. package/dist/components/helper.d.ts +11 -0
  10. package/dist/components/helper.d.ts.map +1 -0
  11. package/dist/components/image/image.d.ts +20 -0
  12. package/dist/components/image/image.d.ts.map +1 -0
  13. package/dist/components/index.d.ts +20 -0
  14. package/dist/components/index.d.ts.map +1 -0
  15. package/dist/components/map/openLayersMap.d.ts +26 -0
  16. package/dist/components/map/openLayersMap.d.ts.map +1 -0
  17. package/dist/components/markdown/markedMarkdown.d.ts +5 -0
  18. package/dist/components/markdown/markedMarkdown.d.ts.map +1 -0
  19. package/dist/components/markdown/markedStreamingMarkdown.d.ts +4 -0
  20. package/dist/components/markdown/markedStreamingMarkdown.d.ts.map +1 -0
  21. package/dist/components/messageCanvas/messageCanvas.d.ts +13 -0
  22. package/dist/components/messageCanvas/messageCanvas.d.ts.map +1 -0
  23. package/dist/components/messageSpace/messageSpace.d.ts +11 -0
  24. package/dist/components/messageSpace/messageSpace.d.ts.map +1 -0
  25. package/dist/components/navBar/navBar.d.ts +21 -0
  26. package/dist/components/navBar/navBar.d.ts.map +1 -0
  27. package/dist/components/participantsContainer/participantsContainer.d.ts +12 -0
  28. package/dist/components/participantsContainer/participantsContainer.d.ts.map +1 -0
  29. package/dist/components/table/table.d.ts +13 -0
  30. package/dist/components/table/table.d.ts.map +1 -0
  31. package/dist/components/text/streamingText.d.ts +4 -0
  32. package/dist/components/text/streamingText.d.ts.map +1 -0
  33. package/dist/components/text/text.d.ts +5 -0
  34. package/dist/components/text/text.d.ts.map +1 -0
  35. package/dist/components/textInput/textInput.d.ts +27 -0
  36. package/dist/components/textInput/textInput.d.ts.map +1 -0
  37. package/dist/components/timestamp/timestamp.d.ts +7 -0
  38. package/dist/components/timestamp/timestamp.d.ts.map +1 -0
  39. package/dist/components/types.d.ts +52 -0
  40. package/dist/components/types.d.ts.map +1 -0
  41. package/dist/components/video/youtubeVideo.d.ts +21 -0
  42. package/dist/components/video/youtubeVideo.d.ts.map +1 -0
  43. package/dist/index.css +157 -0
  44. package/dist/index.d.ts +2 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +2 -0
  47. package/dist/index.js.LICENSE.txt +1 -0
  48. package/dist/rusticTheme.d.ts +3 -0
  49. package/dist/rusticTheme.d.ts.map +1 -0
  50. package/package.json +119 -0
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License
2
+
3
+ Copyright 2024 Dragonscale Industries Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # UI Components for Rustic AI
2
+
3
+ The UI Components for Rustic AI is a comprehensive collection of reusable components designed specifically to empower developers in constructing interactive multimodal chat interfaces. With a focus on versatility and ease of integration, our library offers a wide range of components tailored to accommodate various chat functionalities. Whether you're building a chatbot, virtual assistant, or communication platform, Rustic UI Components provides the building blocks necessary to create engaging and dynamic user experiences.
4
+
5
+ To learn more about Rustic AI, visit our [website](https://rustic.ai).
6
+
7
+ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
8
+
9
+ ## Getting Started
10
+
11
+ To get started, visit the [Quick Start](https://rustic-ai.github.io/ui-components/?path=/docs/documentation-quick-start--docs) page on our Storybook.
12
+
13
+ ## Storybook
14
+
15
+ Visit our [Storybook](https://rustic-ai.github.io/ui-components) for all documentation regarding components, as well as our [Theme and Styling](https://rustic-ai.github.io/ui-components/?path=/docs/documentation-theme-and-styling--docs) guide.
16
+
17
+ ## Building From Source
18
+
19
+ If you want to build the UI components locally and use it for your projects, refer to [CONTRIBUTING.md](CONTRIBUTING.md#building-from-source-and-using-it-locally).
20
+
21
+ ## Contributing
22
+
23
+ Contributions are welcome! Please read our [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute as well as the process for submitting pull requests.
24
+
25
+ ## License
26
+
27
+ This project is licensed under the terms of the [MIT License](LICENSE).
@@ -0,0 +1,14 @@
1
+ import './fCCalendar.css';
2
+ export interface Event {
3
+ id: string;
4
+ allDay?: boolean;
5
+ start: string;
6
+ end?: string;
7
+ title: string;
8
+ }
9
+ export interface FCCalendarProps {
10
+ events: Event[];
11
+ initialView?: 'dayGridMonth' | 'dayGridWeek' | 'dayGridDay';
12
+ }
13
+ export default function FCCalendar(props: FCCalendarProps): import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=fCCalendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fCCalendar.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/fCCalendar.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAA;AASzB,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,WAAW,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,YAAY,CAAA;CAC5D;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,2CAwCxD"}
@@ -0,0 +1,68 @@
1
+ import './rechartsTimeSeries.css';
2
+ export interface TimeSeriesData {
3
+ timestamp: number;
4
+ [key: string]: number;
5
+ }
6
+ export interface Margin {
7
+ top?: number;
8
+ right?: number;
9
+ bottom?: number;
10
+ left?: number;
11
+ }
12
+ export interface RechartsTimeSeriesProps {
13
+ /** Data to be displayed in the time series chart. The first field is used as the x-axis field. We currently support formatting epoch timestamps and ISO date strings. Other data types will be displayed as given. */
14
+ timeSeries: TimeSeriesData[];
15
+ /** An array containing a predefined set of Hex color codes or string colors (e.g. 'blue'). The colors will be applied to the keys of the data object in order. */
16
+ chartColors: string[];
17
+ /** Array of y-axis reference lines. */
18
+ referenceLineYAxis?: number[];
19
+ /** Array of y-axis reference line colors. Hex color codes and string colors are both supported for defining colors. If not provided, all lines default to grey. Skip providing a custom color for a certain y-axis by providing an empty string. */
20
+ referenceLineColor?: string[];
21
+ /** Array of y-axis reference line labels. Skip providing a custom label for a certain y-axis by providing an empty string. */
22
+ referenceLineLabel?: string[];
23
+ /** Array of y-axis reference line stroke widths. If not provided, all lines default to 1. Skip providing a custom stroke width for a certain y-axis by providing an empty string. */
24
+ referenceLineStrokeWidth?: number[];
25
+ /** Title of the time series chart. */
26
+ title?: string;
27
+ /** Description of the time series chart. */
28
+ description?: string;
29
+ /** Callback function to be called when a point on the graph is clicked. */
30
+ onClick?: (...args: any[]) => any;
31
+ /** Width of the y-axis labels in pixels. */
32
+ yAxisLabelWidth?: number;
33
+ /** Minimum width of the chart in pixels. */
34
+ minChartWidth?: number;
35
+ /** Maximum width of the chart in pixels. */
36
+ maxHeight?: number;
37
+ /** Updated data will be added to the original time series data. */
38
+ updatedData?: {
39
+ timeSeries: TimeSeriesData[];
40
+ }[];
41
+ /** Aspect ratio of the chart. */
42
+ aspectRatio?: number;
43
+ /** Width of the chart in pixels. */
44
+ width?: number;
45
+ /** Chart type toggle will be hidden if the value is true. */
46
+ disableChartTypeToggle?: boolean;
47
+ /** Define the default chart type: 'line', 'bar', or 'area'. */
48
+ defaultChartType?: TimeSeriesType;
49
+ /** Pass a function to format y-axis label. Make sure to use tooltipFormatter and yAxisTickFormatter together so that the numbers are uniform. */
50
+ yAxisTickFormatter?: (value: number) => string;
51
+ /** Pass a function to format tooltip content. */
52
+ tooltipFormatter?: (value: number, name: string) => [string, string];
53
+ /** Margin of chart container in pixel. For example, adding left margin could show larger numbers properly. */
54
+ chartContainerMargin?: Margin;
55
+ }
56
+ export type TimeSeriesType = 'line' | 'bar' | 'area';
57
+ declare function RechartsTimeSeries(props: RechartsTimeSeriesProps): import("react/jsx-runtime").JSX.Element;
58
+ declare namespace RechartsTimeSeries {
59
+ var defaultProps: {
60
+ minChartWidth: number;
61
+ maxHeight: number;
62
+ yAxisLabelWidth: number;
63
+ aspectRatio: number;
64
+ disableChartTypeToggle: boolean;
65
+ };
66
+ }
67
+ export default RechartsTimeSeries;
68
+ //# sourceMappingURL=rechartsTimeSeries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rechartsTimeSeries.d.ts","sourceRoot":"","sources":["../../../src/components/chart/rechartsTimeSeries.tsx"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAA;AA6BjC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,sNAAsN;IACtN,UAAU,EAAE,cAAc,EAAE,CAAA;IAC5B,kKAAkK;IAClK,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,uCAAuC;IACvC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B,oPAAoP;IACpP,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B,8HAA8H;IAC9H,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B,qLAAqL;IACrL,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAA;IACnC,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,2EAA2E;IAE3E,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACjC,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mEAAmE;IACnE,WAAW,CAAC,EAAE;QAAE,UAAU,EAAE,cAAc,EAAE,CAAA;KAAE,EAAE,CAAA;IAChD,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6DAA6D;IAC7D,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,cAAc,CAAA;IACjC,iJAAiJ;IACjJ,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IAC9C,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpE,8GAA8G;IAC9G,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;AAuBpD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CA+TzD;kBA/TQ,kBAAkB;;;;;;;;;AA0U3B,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { ComponentMap, ThreadableMessage } from '../types';
2
+ interface ElementRendererProps {
3
+ message: ThreadableMessage;
4
+ supportedElements: ComponentMap;
5
+ }
6
+ declare const ElementRenderer: (props: ElementRendererProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ElementRenderer;
8
+ //# sourceMappingURL=elementRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elementRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/elementRenderer/elementRenderer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE/D,UAAU,oBAAoB;IAC5B,OAAO,EAAE,iBAAiB,CAAA;IAC1B,iBAAiB,EAAE,YAAY,CAAA;CAChC;AAED,QAAA,MAAM,eAAe,UAAW,oBAAoB,4CAmBnD,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,11 @@
1
+ export declare function calculateTimeDiffInSeconds(isoDate: string): number;
2
+ export declare function calculateTimeAgo(isoDate: string): string;
3
+ export declare function formatDateAndTime(isoDateTimeInUtc: string): string;
4
+ export declare function formatMessageTimestamp(isoDate: string): string;
5
+ export declare const capitalizeFirstLetter: (str: string) => string;
6
+ export declare enum TimeFormat {
7
+ HOUR = 0,
8
+ MONTH_DATE = 1
9
+ }
10
+ export declare function formatTimestamp(timestampInMillis: number, format: TimeFormat): string;
11
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/components/helper.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAIlE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAYxD;AAED,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAqBlE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAM9D;AAED,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,MAEnD,CAAA;AAED,oBAAY,UAAU;IACpB,IAAI,IAAA;IACJ,UAAU,IAAA;CACX;AAED,wBAAgB,eAAe,CAC7B,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,UAAU,GACjB,MAAM,CAsBR"}
@@ -0,0 +1,20 @@
1
+ export interface ImageProps {
2
+ /** Path to the image source. */
3
+ url: string;
4
+ /** Width rendered in pixels. */
5
+ width?: number;
6
+ /** Height rendered in pixels. */
7
+ height?: number;
8
+ /** Alternative text for the image used for assistive technology. */
9
+ alt?: string;
10
+ }
11
+ declare function Image(props: ImageProps): import("react/jsx-runtime").JSX.Element;
12
+ declare namespace Image {
13
+ var defaultProps: {
14
+ alt: string;
15
+ width: number;
16
+ height: number;
17
+ };
18
+ }
19
+ export default Image;
20
+ //# sourceMappingURL=image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/image/image.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,UAAU;IACzB,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oEAAoE;IACpE,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,iBAAwB,KAAK,CAAC,KAAK,EAAE,UAAU,2CA4B9C;kBA5BuB,KAAK;;;;;;;eAAL,KAAK"}
@@ -0,0 +1,20 @@
1
+ import rusticTheme from '../rusticTheme';
2
+ import FCCalendar from './calendar/fCCalendar';
3
+ import RechartsTimeSeries from './chart/rechartsTimeSeries';
4
+ import ElementRenderer from './elementRenderer/elementRenderer';
5
+ import Image from './image/image';
6
+ import OpenLayersMap from './map/openLayersMap';
7
+ import MarkedMarkdown from './markdown/markedMarkdown';
8
+ import MarkedStreamingMarkdown from './markdown/markedStreamingMarkdown';
9
+ import MessageCanvas from './messageCanvas/messageCanvas';
10
+ import MessageSpace from './messageSpace/messageSpace';
11
+ import NavBar from './navBar/navBar';
12
+ import ParticipantsContainer from './participantsContainer/participantsContainer';
13
+ import Table from './table/table';
14
+ import StreamingText from './text/streamingText';
15
+ import Text from './text/text';
16
+ import TextInput from './textInput/textInput';
17
+ import Timestamp from './timestamp/timestamp';
18
+ import YoutubeVideo from './video/youtubeVideo';
19
+ export { ElementRenderer, FCCalendar, Image, MarkedMarkdown, MarkedStreamingMarkdown, MessageCanvas, MessageSpace, NavBar, OpenLayersMap, ParticipantsContainer, RechartsTimeSeries, rusticTheme, StreamingText, Table, Text, TextInput, Timestamp, YoutubeVideo, };
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,UAAU,MAAM,uBAAuB,CAAA;AAC9C,OAAO,kBAAkB,MAAM,4BAA4B,CAAA;AAC3D,OAAO,eAAe,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAC/C,OAAO,cAAc,MAAM,2BAA2B,CAAA;AACtD,OAAO,uBAAuB,MAAM,oCAAoC,CAAA;AACxE,OAAO,aAAa,MAAM,+BAA+B,CAAA;AACzD,OAAO,YAAY,MAAM,6BAA6B,CAAA;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,qBAAqB,MAAM,+CAA+C,CAAA;AACjF,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,aAAa,MAAM,sBAAsB,CAAA;AAChD,OAAO,IAAI,MAAM,aAAa,CAAA;AAC9B,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,YAAY,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EACL,eAAe,EACf,UAAU,EACV,KAAK,EACL,cAAc,EACd,uBAAuB,EACvB,aAAa,EACb,YAAY,EACZ,MAAM,EACN,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,KAAK,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACT,YAAY,GACb,CAAA"}
@@ -0,0 +1,26 @@
1
+ import 'ol/ol.css';
2
+ export interface OpenLayersMapProps {
3
+ /** Longitude in decimal degrees. */
4
+ longitude: number;
5
+ /** Latitude in decimal degrees. */
6
+ latitude: number;
7
+ /** Zoom level. It is recommended that this unit stays below 20 for useful results. */
8
+ zoom?: number;
9
+ /** Width rendered in pixels. */
10
+ width?: number;
11
+ /** Height rendered in pixels. */
12
+ height?: number;
13
+ /** Size of the location marker rendered in rems. */
14
+ markerSize?: number;
15
+ }
16
+ declare function OpenLayersMap(props: OpenLayersMapProps): import("react/jsx-runtime").JSX.Element;
17
+ declare namespace OpenLayersMap {
18
+ var defaultProps: {
19
+ zoom: number;
20
+ width: number;
21
+ height: number;
22
+ markerSize: number;
23
+ };
24
+ }
25
+ export default OpenLayersMap;
26
+ //# sourceMappingURL=openLayersMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openLayersMap.d.ts","sourceRoot":"","sources":["../../../src/components/map/openLayersMap.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAA;AAclB,MAAM,WAAW,kBAAkB;IACjC,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,sFAAsF;IACtF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,iBAAwB,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAuE9D;kBAvEuB,aAAa;;;;;;;;eAAb,aAAa"}
@@ -0,0 +1,5 @@
1
+ import type { UpdateableText } from '../types';
2
+ export declare function convertMarkdownToHtml(text: string): string;
3
+ declare const MarkedMarkdown: (props: UpdateableText) => import("react/jsx-runtime").JSX.Element;
4
+ export default MarkedMarkdown;
5
+ //# sourceMappingURL=markedMarkdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markedMarkdown.d.ts","sourceRoot":"","sources":["../../../src/components/markdown/markedMarkdown.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM1D;AAED,QAAA,MAAM,cAAc,UAAW,cAAc,4CAc5C,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { UpdateableText } from '../types';
2
+ declare const MarkedStreamingMarkdown: (props: UpdateableText) => import("react/jsx-runtime").JSX.Element;
3
+ export default MarkedStreamingMarkdown;
4
+ //# sourceMappingURL=markedStreamingMarkdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markedStreamingMarkdown.d.ts","sourceRoot":"","sources":["../../../src/components/markdown/markedStreamingMarkdown.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAG9C,QAAA,MAAM,uBAAuB,UAAW,cAAc,4CA8BrD,CAAA;AAED,eAAe,uBAAuB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import './messageCanvas.css';
2
+ import type { ReactNode } from 'react';
3
+ import type { ThreadableMessage } from '../types';
4
+ export interface MessageCanvasProps {
5
+ /** Message information to be displayed. Please see the `MessageSpace` docs for more information about the `ThreadableMessage` interface. */
6
+ message: ThreadableMessage;
7
+ /** React component to be displayed in the message canvas. */
8
+ children: ReactNode;
9
+ /** Interactions with the message. For example, this could be a list of buttons for different actions (e.g. copy, delete, save, etc.) */
10
+ messageInteractions?: (message: ThreadableMessage) => ReactNode;
11
+ }
12
+ export default function MessageCanvas(props: MessageCanvasProps): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=messageCanvas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/messageCanvas/messageCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAK5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEjD,MAAM,WAAW,kBAAkB;IACjC,4IAA4I;IAC5I,OAAO,EAAE,iBAAiB,CAAA;IAC1B,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB,wIAAwI;IACxI,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,SAAS,CAAA;CAChE;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAwB9D"}
@@ -0,0 +1,11 @@
1
+ import './messageSpace.css';
2
+ import type { ReactNode } from 'react';
3
+ import type { ComponentMap, ThreadableMessage } from '../types';
4
+ export interface MessageSpaceProps {
5
+ supportedElements: ComponentMap;
6
+ messages?: ThreadableMessage[];
7
+ messageInteractions?: (message: ThreadableMessage) => ReactNode;
8
+ }
9
+ declare const MessageSpace: (props: MessageSpaceProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default MessageSpace;
11
+ //# sourceMappingURL=messageSpace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageSpace.d.ts","sourceRoot":"","sources":["../../../src/components/messageSpace/messageSpace.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAG3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE/D,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,YAAY,CAAA;IAC/B,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC9B,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,SAAS,CAAA;CAChE;AAED,QAAA,MAAM,YAAY,UAAW,iBAAiB,4CAqB7C,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,21 @@
1
+ import './navBar.css';
2
+ import type { ReactNode } from 'react';
3
+ interface NavBarProps {
4
+ /** Desktop version: Logo is displayed in the top left corner. Tablet and mobile versions: position will be different if you add the drawer icons. */
5
+ logo: ReactNode;
6
+ /** Icon for the button that opens/closes the left drawer. (Will only be shown in mobile and tablet versions.) */
7
+ leftDrawerIcon?: ReactNode;
8
+ /** Icon for the button that opens/closes the right drawer. (Will only be shown in mobile and tablet versions.)*/
9
+ rightDrawerIcon?: ReactNode;
10
+ /** Aria label for the left drawer button. */
11
+ leftDrawerAriaLabel?: string;
12
+ /** Aria label for the right drawer button. */
13
+ rightDrawerAriaLabel?: string;
14
+ /** Function for toggling the open/closed state of the left drawer. */
15
+ handleLeftDrawerToggle?: () => void;
16
+ /** Function for toggling the open/closed state of the right drawer. */
17
+ handleRightDrawerToggle?: () => void;
18
+ }
19
+ declare const NavBar: (props: NavBarProps) => import("react/jsx-runtime").JSX.Element;
20
+ export default NavBar;
21
+ //# sourceMappingURL=navBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navBar.d.ts","sourceRoot":"","sources":["../../../src/components/navBar/navBar.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA;AAKrB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC,UAAU,WAAW;IACnB,qJAAqJ;IACrJ,IAAI,EAAE,SAAS,CAAA;IACf,iHAAiH;IACjH,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,iHAAiH;IACjH,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,6CAA6C;IAC7C,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,8CAA8C;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,sEAAsE;IACtE,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAA;IACnC,uEAAuE;IACvE,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAA;CACrC;AAED,QAAA,MAAM,MAAM,UAAW,WAAW,4CAqCjC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,12 @@
1
+ import './participantsContainer.css';
2
+ import { type Participant } from '../types';
3
+ export interface ParticipantsContainerProps {
4
+ participants: Participant[];
5
+ /** Boolean that dictates the open/closed state of the participants modal. */
6
+ isParticipantListOpen: boolean;
7
+ /** Callback function to close the participants modal. */
8
+ onClose: () => void;
9
+ }
10
+ declare const ParticipantsContainer: (props: ParticipantsContainerProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default ParticipantsContainer;
12
+ //# sourceMappingURL=participantsContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"participantsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/participantsContainer/participantsContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAA;AAoBpC,OAAO,EAAE,KAAK,WAAW,EAAoC,MAAM,UAAU,CAAA;AAE7E,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,6EAA6E;IAC7E,qBAAqB,EAAE,OAAO,CAAA;IAC9B,yDAAyD;IACzD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AA+FD,QAAA,MAAM,qBAAqB,UAAW,0BAA0B,4CAyE/D,CAAA;AAED,eAAe,qBAAqB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import './table.css';
2
+ export type TableProps = {
3
+ /** Data to be displayed in the table. */
4
+ data: Array<Record<string, string | number>>;
5
+ /** Title of the table. If no title is provided, `aria-label` is defaults to "a table of data". */
6
+ title?: string;
7
+ /** Description of the table. */
8
+ description?: string;
9
+ /** Use this prop to set customized headers. If none is provided, headers will be taken from the keys of the data objects from the `data` prop array. */
10
+ headers?: string[];
11
+ };
12
+ export default function Table(props: TableProps): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAcpB,MAAM,MAAM,UAAU,GAAG;IACvB,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAC5C,kGAAkG;IAClG,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wJAAwJ;IACxJ,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,2CAyD9C"}
@@ -0,0 +1,4 @@
1
+ import type { UpdateableText } from '../types';
2
+ declare const StreamingText: (props: UpdateableText) => import("react/jsx-runtime").JSX.Element;
3
+ export default StreamingText;
4
+ //# sourceMappingURL=streamingText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streamingText.d.ts","sourceRoot":"","sources":["../../../src/components/text/streamingText.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,QAAA,MAAM,aAAa,UAAW,cAAc,4CA+B3C,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -0,0 +1,5 @@
1
+ import './text.css';
2
+ import type { TextProps } from '../types';
3
+ declare const Text: (props: TextProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Text;
5
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAA;AAMnB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEzC,QAAA,MAAM,IAAI,UAAW,SAAS,4CAM7B,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -0,0 +1,27 @@
1
+ import './textInput.css';
2
+ import type { WebSocketClient } from '../types';
3
+ export interface TextInputProps {
4
+ ws: WebSocketClient;
5
+ /** Id of the current user. */
6
+ sender: string;
7
+ /** Id of the current conversation. */
8
+ conversationId: string;
9
+ /** Placeholder text to be displayed in the text input box. */
10
+ label: string;
11
+ /** Boolean that dictates whether `TextInput` can expand to be multiline. */
12
+ multiline?: boolean;
13
+ /** Maximum number of rows to be displayed. */
14
+ maxRows?: number;
15
+ /** Boolean that dictates whether `TextInput` takes up 100% width of the parent container. */
16
+ fullWidth?: boolean;
17
+ }
18
+ declare function TextInput(props: TextInputProps): import("react/jsx-runtime").JSX.Element;
19
+ declare namespace TextInput {
20
+ var defaultProps: {
21
+ multiline: boolean;
22
+ fullWidth: boolean;
23
+ maxRows: number;
24
+ };
25
+ }
26
+ export default TextInput;
27
+ //# sourceMappingURL=textInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textInput.d.ts","sourceRoot":"","sources":["../../../src/components/textInput/textInput.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAUxB,OAAO,KAAK,EAAgB,eAAe,EAAE,MAAM,UAAU,CAAA;AAE7D,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,eAAe,CAAA;IACnB,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,cAAc,EAAE,MAAM,CAAA;IACtB,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,iBAAwB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAkEtD;kBAlEuB,SAAS;;;;;;;eAAT,SAAS"}
@@ -0,0 +1,7 @@
1
+ export interface TimestampProps {
2
+ /** Timestamp in ISO 8601 format. */
3
+ timestamp: string;
4
+ }
5
+ declare const Timestamp: (props: TimestampProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default Timestamp;
7
+ //# sourceMappingURL=timestamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../src/components/timestamp/timestamp.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,SAAS,UAAW,cAAc,4CAMvC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,52 @@
1
+ /// <reference types="react" />
2
+ export type MessageData = {
3
+ [key: string]: any;
4
+ };
5
+ export interface MessageProps {
6
+ id: string;
7
+ timestamp: string;
8
+ sender: string;
9
+ conversationId: string;
10
+ format: string;
11
+ data: MessageData;
12
+ inReplyTo?: string;
13
+ threadId?: string;
14
+ priority?: string;
15
+ taggedParticipants?: string[];
16
+ topicId?: string;
17
+ }
18
+ export interface ThreadableMessage extends MessageProps {
19
+ lastThreadMessage?: MessageProps;
20
+ threadMessagesData?: MessageData[];
21
+ }
22
+ export interface ComponentMap {
23
+ [key: string]: React.ComponentType<any>;
24
+ }
25
+ export interface WebSocketClient {
26
+ send: (message: MessageProps) => void;
27
+ close: () => void;
28
+ reconnect: () => void;
29
+ }
30
+ export declare enum ParticipantRole {
31
+ Owner = "owner",
32
+ Member = "member"
33
+ }
34
+ export declare enum ParticipantType {
35
+ Human = "human",
36
+ Agent = "agent"
37
+ }
38
+ export interface Participant {
39
+ id: string;
40
+ displayName: string;
41
+ participantRole: ParticipantRole;
42
+ participantType: ParticipantType;
43
+ }
44
+ export interface TextProps {
45
+ text: string;
46
+ }
47
+ export interface UpdateableText extends TextProps {
48
+ updatedData?: {
49
+ text: string;
50
+ }[];
51
+ }
52
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/components/types.ts"],"names":[],"mappings":";AACA,MAAM,MAAM,WAAW,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAA;AAEhD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,WAAW,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,iBAAiB,CAAC,EAAE,YAAY,CAAA;IAChC,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAA;CACnC;AAED,MAAM,WAAW,YAAY;IAE3B,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;IACrC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,eAAe,CAAA;IAChC,eAAe,EAAE,eAAe,CAAA;CACjC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,WAAW,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACjC"}
@@ -0,0 +1,21 @@
1
+ import './youtubeVideo.css';
2
+ export interface YoutubeVideoProps {
3
+ /** The string after "?v=" parameter of YoutTube URLs. */
4
+ youtubeVideoId: string;
5
+ /** Height rendered in pixels. */
6
+ height?: number;
7
+ /** Width rendered in pixels. */
8
+ width?: number;
9
+ /** Title of the video used for assistive technology. */
10
+ title?: string;
11
+ }
12
+ declare function YoutubeVideo(props: YoutubeVideoProps): import("react/jsx-runtime").JSX.Element;
13
+ declare namespace YoutubeVideo {
14
+ var defaultProps: {
15
+ height: number;
16
+ width: number;
17
+ title: string;
18
+ };
19
+ }
20
+ export default YoutubeVideo;
21
+ //# sourceMappingURL=youtubeVideo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"youtubeVideo.d.ts","sourceRoot":"","sources":["../../../src/components/video/youtubeVideo.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAQ3B,MAAM,WAAW,iBAAiB;IAChC,yDAAyD;IACzD,cAAc,EAAE,MAAM,CAAA;IACtB,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,iBAAwB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CA4B5D;kBA5BuB,YAAY;;;;;;;eAAZ,YAAY"}