@rustic-ai/ui-components 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/elementRenderer/elementRenderer.d.ts +2 -2
- package/dist/components/elementRenderer/elementRenderer.d.ts.map +1 -1
- package/dist/components/helper.d.ts +4 -0
- package/dist/components/helper.d.ts.map +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/media/controls/mediaIconButton.d.ts.map +1 -1
- package/dist/components/messageCanvas/messageCanvas.d.ts +1 -1
- package/dist/components/messageCanvas/messageCanvas.d.ts.map +1 -1
- package/dist/components/messageSpace/messageSpace.d.ts +3 -3
- package/dist/components/messageSpace/messageSpace.d.ts.map +1 -1
- package/dist/components/pdfViewer/controlButton/controlButton.d.ts +9 -0
- package/dist/components/pdfViewer/controlButton/controlButton.d.ts.map +1 -0
- package/dist/components/pdfViewer/pdfViewer.d.ts +18 -0
- package/dist/components/pdfViewer/pdfViewer.d.ts.map +1 -0
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/types.d.ts +42 -6
- package/dist/components/types.d.ts.map +1 -1
- package/dist/components/weather/weather.d.ts +8 -0
- package/dist/components/weather/weather.d.ts.map +1 -0
- package/dist/index.css +118 -0
- package/dist/index.js +1 -1
- package/dist/rusticTheme.d.ts.map +1 -1
- package/package.json +16 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ComponentMap, ThreadableMessage, WebSocketClient } from '../types';
|
|
1
|
+
import type { ComponentMap, Sender, ThreadableMessage, WebSocketClient } from '../types';
|
|
2
2
|
interface ElementRendererProps {
|
|
3
|
-
sender:
|
|
3
|
+
sender: Sender;
|
|
4
4
|
ws: WebSocketClient;
|
|
5
5
|
message: ThreadableMessage;
|
|
6
6
|
supportedElements: ComponentMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elementRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/elementRenderer/elementRenderer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"elementRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/elementRenderer/elementRenderer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EACN,iBAAiB,EACjB,eAAe,EAChB,MAAM,UAAU,CAAA;AAEjB,UAAU,oBAAoB;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,EAAE,EAAE,eAAe,CAAA;IACnB,OAAO,EAAE,iBAAiB,CAAA;IAC1B,iBAAiB,EAAE,YAAY,CAAA;CAChC;AAED,QAAA,MAAM,eAAe,UAAW,oBAAoB,4CAuBnD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -17,4 +17,8 @@ export declare function getSizeStyles(maybeWidth: number | undefined, maybeHeigh
|
|
|
17
17
|
className?: string;
|
|
18
18
|
};
|
|
19
19
|
export declare function shortenString(str: string, maxLength: number): string;
|
|
20
|
+
export declare const getDayFromUnixTime: (unixTime: number) => {
|
|
21
|
+
shortName: string;
|
|
22
|
+
fullName: string;
|
|
23
|
+
};
|
|
20
24
|
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -1 +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,CA6BlE;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,I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AAM,EAC9B,oBAAoB,EAAE,MAAM,GAC3B,MAAM,CASR;AAED,wBAAgB,oBAAoB,CAClC,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,UAOvB;AAED,wBAAgB,kBAAkB,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAapE;AAED,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAqBzD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAK3D;AAED,eAAO,MAAM,kBAAkB,aACnB,MAAM,KACf;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAoBvC,CAAA"}
|
|
@@ -16,6 +16,7 @@ import MessageCanvas from './messageCanvas/messageCanvas';
|
|
|
16
16
|
import MessageSpace from './messageSpace/messageSpace';
|
|
17
17
|
import Multipart from './multipart/multipart';
|
|
18
18
|
import ParticipantsContainer from './participantsContainer/participantsContainer';
|
|
19
|
+
import PDFViewer from './pdfViewer/pdfViewer';
|
|
19
20
|
import Question from './question/question';
|
|
20
21
|
import Table from './table/table';
|
|
21
22
|
import StreamingText from './text/streamingText';
|
|
@@ -25,7 +26,8 @@ import YoutubeVideo from './video/youtubeVideo';
|
|
|
25
26
|
import RechartsTimeSeries from './visualization/chart/rechartsTimeSeries';
|
|
26
27
|
import MermaidViz from './visualization/mermaidViz/mermaidViz';
|
|
27
28
|
import VegaLiteViz from './visualization/vegaLiteViz/vegaLiteViz';
|
|
28
|
-
|
|
29
|
+
import Weather from './weather/weather';
|
|
30
|
+
export { Action, CodeSnippet, CopyText, ElementRenderer, FCCalendar, Image, MarkedMarkdown, MarkedStreamingMarkdown, MermaidViz, MessageCanvas, MessageSpace, MultimodalInput, Multipart, OpenLayersMap, ParticipantsContainer, PDFViewer, PopoverMenu, Question, RechartsTimeSeries, Sound, StreamingText, Table, Text, TextInput, Timestamp, VegaLiteViz, Video, Weather, YoutubeVideo, };
|
|
29
31
|
export * from '../rusticTheme';
|
|
30
32
|
export * from './types';
|
|
31
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,uBAAuB,CAAA;AAC9C,OAAO,WAAW,MAAM,2BAA2B,CAAA;AACnD,OAAO,eAAe,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,eAAe,MAAM,oDAAoD,CAAA;AAChF,OAAO,SAAS,MAAM,6BAA6B,CAAA;AACnD,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAC/C,OAAO,cAAc,MAAM,2BAA2B,CAAA;AACtD,OAAO,uBAAuB,MAAM,oCAAoC,CAAA;AACxE,OAAO,KAAK,MAAM,qBAAqB,CAAA;AACvC,OAAO,KAAK,MAAM,qBAAqB,CAAA;AACvC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAC5C,OAAO,QAAQ,MAAM,uCAAuC,CAAA;AAC5D,OAAO,MAAM,MAAM,+BAA+B,CAAA;AAClD,OAAO,aAAa,MAAM,+BAA+B,CAAA;AACzD,OAAO,YAAY,MAAM,6BAA6B,CAAA;AACtD,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,qBAAqB,MAAM,+CAA+C,CAAA;AACjF,OAAO,QAAQ,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,aAAa,MAAM,sBAAsB,CAAA;AAChD,OAAO,IAAI,MAAM,aAAa,CAAA;AAC9B,OAAO,SAAS,MAAM,uBAA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O,kBAAkB,MAAM,0CAA0C,CAAA;AACzE,OAAO,UAAU,MAAM,uCAAuC,CAAA;AAC9D,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,OAAO,MAAM,mBAAmB,CAAA;AAEvC,OAAO,EACL,MAAM,EACN,WAAW,EACX,QAAQ,EACR,eAAe,EACf,UAAU,EACV,KAAK,EACL,cAAc,EACd,uBAAuB,EACvB,UAAU,EACV,aAAa,EACb,YAAY,EACZ,eAAe,EACf,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,KAAK,EACL,aAAa,EACb,KAAK,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACT,WAAW,EACX,KAAK,EACL,OAAO,EACP,YAAY,GACb,CAAA;AAED,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaIconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/media/controls/mediaIconButton.tsx"],"names":[],"mappings":"AAMA,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EACF,MAAM,GACN,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,WAAW,GACX,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,aAAa,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"mediaIconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/media/controls/mediaIconButton.tsx"],"names":[],"mappings":"AAMA,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EACF,MAAM,GACN,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,WAAW,GACX,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,YAAY,GACZ,aAAa,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CA4C1D"}
|
|
@@ -2,7 +2,7 @@ import './messageCanvas.css';
|
|
|
2
2
|
import React, { type ReactNode } from 'react';
|
|
3
3
|
import type { ThreadableMessage } from '../types';
|
|
4
4
|
export interface MessageContainerProps {
|
|
5
|
-
/**
|
|
5
|
+
/** A function that returns a React element to display sender details, like names and/or avatars. */
|
|
6
6
|
getProfileComponent?: (message: ThreadableMessage) => ReactNode;
|
|
7
7
|
/** A function that returns a single React element which may be composed of several actions supported for the message, such as editing, copying, and deleting, etc.
|
|
8
8
|
* In case no actions are applicable or available for a particular message, the function may return `undefined`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/messageCanvas/messageCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"messageCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/messageCanvas/messageCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAK5B,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEjD,MAAM,WAAW,qBAAqB;IACpC,oGAAoG;IACpG,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,SAAS,CAAA;IAC/D;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,SAAS,GAAG,SAAS,CAAA;CAC5E;AAED,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,4IAA4I;IAC5I,OAAO,EAAE,iBAAiB,CAAA;IAC1B,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAA;CACpB;AAyCD,QAAA,MAAM,aAAa,2FAAmC,CAAA;AACtD,eAAe,aAAa,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './messageSpace.css';
|
|
2
2
|
import { type MessageContainerProps } from '../messageCanvas/messageCanvas';
|
|
3
|
-
import type { ComponentMap, ThreadableMessage, WebSocketClient } from '../types';
|
|
3
|
+
import type { ComponentMap, Sender, ThreadableMessage, WebSocketClient } from '../types';
|
|
4
4
|
export interface MessageSpaceProps extends MessageContainerProps {
|
|
5
5
|
/** WebSocket connection to send and receive messages to and from a backend. This can be useful for component interactions, for example, to send filter conditions, user location, etc. */
|
|
6
6
|
ws: WebSocketClient;
|
|
7
|
-
/**
|
|
8
|
-
sender:
|
|
7
|
+
/** Current user. This can be useful for component interactions, where current user id may be required. */
|
|
8
|
+
sender: Sender;
|
|
9
9
|
/** A component map contains message formats as keys and their corresponding React components as values. */
|
|
10
10
|
supportedElements: ComponentMap;
|
|
11
11
|
messages?: ThreadableMessage[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageSpace.d.ts","sourceRoot":"","sources":["../../../src/components/messageSpace/messageSpace.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAQ3B,OAAsB,EACpB,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"messageSpace.d.ts","sourceRoot":"","sources":["../../../src/components/messageSpace/messageSpace.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAQ3B,OAAsB,EACpB,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EACN,iBAAiB,EACjB,eAAe,EAChB,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D,0LAA0L;IAC1L,EAAE,EAAE,eAAe,CAAA;IACnB,0GAA0G;IAC1G,MAAM,EAAE,MAAM,CAAA;IACd,2GAA2G;IAC3G,iBAAiB,EAAE,YAAY,CAAA;IAC/B,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC9B,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAUD;;GAEG;AAEH,iBAAwB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CA4J5D;kBA5JuB,YAAY;;;;;eAAZ,YAAY"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ViewerControlButtonProps {
|
|
2
|
+
action: 'zoomIn' | 'zoomOut' | 'close' | 'previousPage' | 'nextPage';
|
|
3
|
+
onClick: () => void;
|
|
4
|
+
className?: string;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function ViewerControlButton(props: ViewerControlButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ViewerControlButton;
|
|
9
|
+
//# sourceMappingURL=controlButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controlButton.d.ts","sourceRoot":"","sources":["../../../../src/components/pdfViewer/controlButton/controlButton.tsx"],"names":[],"mappings":"AAMA,UAAU,wBAAwB;IAChC,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,CAAA;IACpE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAyB3D;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './pdfViewer.css';
|
|
2
|
+
import type { PDFViewerProps } from '../types';
|
|
3
|
+
export declare function setPdfWorkerSrc(workerSrc: string): void;
|
|
4
|
+
/** The PDFViewer component, built using [PDF.js](https://mozilla.github.io/pdf.js/), to display PDF documents.
|
|
5
|
+
* It supports zoom and navigating through pages.
|
|
6
|
+
*
|
|
7
|
+
* The component defaults to using CDN resource for the pdf worker.
|
|
8
|
+
* Use `setPdfWorkerSrc` once during initialization of the application to provide a custom file path.
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* setPdfWorkerSrc('files/pdf.worker.mjs')
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* Note: [PDF.js](https://mozilla.github.io/pdf.js/) is not bundled, so it must be included in the application's build process.
|
|
15
|
+
*/
|
|
16
|
+
declare function PDFViewer(props: PDFViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default PDFViewer;
|
|
18
|
+
//# sourceMappingURL=pdfViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdfViewer.d.ts","sourceRoot":"","sources":["../../../src/components/pdfViewer/pdfViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAYxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAI9C,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,QAEhD;AAMD;;;;;;;;;;;GAWG;AACH,iBAAS,SAAS,CAAC,KAAK,EAAE,cAAc,2CAqKvC;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAkBpB,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,UAAU,CAAA;AAetD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,SAAS,2CAuL7C"}
|
|
@@ -5,10 +5,17 @@ import type { EmbedOptions, VisualizationSpec } from 'vega-embed';
|
|
|
5
5
|
export type MessageData = {
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
};
|
|
8
|
+
/** Represents a user or agent responsible for sending given message */
|
|
9
|
+
export interface Sender {
|
|
10
|
+
/** id of the sender*/
|
|
11
|
+
id: string;
|
|
12
|
+
/** name of the sender if available */
|
|
13
|
+
name?: string;
|
|
14
|
+
}
|
|
8
15
|
export interface Message {
|
|
9
16
|
id: string;
|
|
10
17
|
timestamp: string;
|
|
11
|
-
sender:
|
|
18
|
+
sender: Sender;
|
|
12
19
|
conversationId: string;
|
|
13
20
|
format: string;
|
|
14
21
|
data: MessageData;
|
|
@@ -16,7 +23,7 @@ export interface Message {
|
|
|
16
23
|
threadId?: string;
|
|
17
24
|
priority?: string;
|
|
18
25
|
taggedParticipants?: string[];
|
|
19
|
-
|
|
26
|
+
topic?: string;
|
|
20
27
|
}
|
|
21
28
|
export interface ThreadableMessage extends Message {
|
|
22
29
|
lastThreadMessage?: Message;
|
|
@@ -166,8 +173,8 @@ export interface MultipartFormat extends DataFormat {
|
|
|
166
173
|
}
|
|
167
174
|
export type MultipartData = MultipartFormat & Updates<MultipartFormat>;
|
|
168
175
|
export interface BaseInputProps {
|
|
169
|
-
/**
|
|
170
|
-
sender:
|
|
176
|
+
/** Current user. */
|
|
177
|
+
sender: Sender;
|
|
171
178
|
/** Id of the current conversation. */
|
|
172
179
|
conversationId: string;
|
|
173
180
|
/** Label text to be displayed in the input, which will then move to the top when the input is focused on. If both label and placeholder are provided, the placeholder will only be visible once the input is focused on. */
|
|
@@ -188,6 +195,7 @@ export interface BaseInputProps {
|
|
|
188
195
|
enableSpeechToText?: boolean;
|
|
189
196
|
}
|
|
190
197
|
export interface TextInputProps extends Omit<BaseInputProps, 'send' | 'isSendEnabled'> {
|
|
198
|
+
/** WebSocket connection to send and receive messages to and from a backend.*/
|
|
191
199
|
ws: WebSocketClient;
|
|
192
200
|
}
|
|
193
201
|
export interface UploaderProps {
|
|
@@ -214,8 +222,8 @@ export type MultimodalInputProps = TextInputProps & Omit<UploaderProps, 'message
|
|
|
214
222
|
export interface ConversationProps {
|
|
215
223
|
/** WebSocket connection to send and receive messages to and from a backend. This value will be set automatically if the component is rendered with `ElementRenderer` or `MessageSpace`. */
|
|
216
224
|
ws: WebSocketClient;
|
|
217
|
-
/**
|
|
218
|
-
sender:
|
|
225
|
+
/** Current user. This value will be set automatically if the component is rendered with `ElementRenderer` or `MessageSpace`. */
|
|
226
|
+
sender: Sender;
|
|
219
227
|
/** Id of the current conversation. This value will be set automatically if the component is rendered with `ElementRenderer` or `MessageSpace`. */
|
|
220
228
|
conversationId: string;
|
|
221
229
|
/** Id of the message. This value will be set automatically if the component is rendered with `ElementRenderer` or `MessageSpace`. */
|
|
@@ -227,5 +235,33 @@ export interface QuestionFormat extends DataFormat {
|
|
|
227
235
|
}
|
|
228
236
|
export interface QuestionProps extends QuestionFormat, ConversationProps {
|
|
229
237
|
}
|
|
238
|
+
export interface PDFViewerProps {
|
|
239
|
+
/** The url of the PDF file to be displayed. */
|
|
240
|
+
url: string;
|
|
241
|
+
}
|
|
242
|
+
export interface Weather {
|
|
243
|
+
timestamp: number;
|
|
244
|
+
temp: {
|
|
245
|
+
low: number;
|
|
246
|
+
high: number;
|
|
247
|
+
current?: number;
|
|
248
|
+
};
|
|
249
|
+
weatherIcon: {
|
|
250
|
+
icon: string;
|
|
251
|
+
description: string;
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
export interface WeatherFormat extends DataFormat {
|
|
255
|
+
/** Array of daily weather data. */
|
|
256
|
+
weather: Weather[];
|
|
257
|
+
/** The location from which the weather data is from. */
|
|
258
|
+
location: string;
|
|
259
|
+
/** The temperature units of the weather data. */
|
|
260
|
+
units: 'metric' | 'imperial';
|
|
261
|
+
}
|
|
262
|
+
export type WeatherData = WeatherFormat & Updates<WeatherFormat>;
|
|
263
|
+
export interface WeatherProps extends WeatherData {
|
|
264
|
+
weatherProvider?: string;
|
|
265
|
+
}
|
|
230
266
|
export {};
|
|
231
267
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/components/types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEjE,MAAM,MAAM,WAAW,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAA;AAEhD,MAAM,WAAW,OAAO;IACtB,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,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/components/types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEjE,MAAM,MAAM,WAAW,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAA;AAEhD,uEAAuE;AACvE,MAAM,WAAW,MAAM;IACrB,sBAAsB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AAQ,cAAc,EAAE,iBAAiB;CAAG;AAE3E,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,WAAW,EAAE,MAAM,CAAA;KACpB,CAAA;CACF;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,mCAAmC;IACnC,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAA;IAChB,iDAAiD;IACjD,KAAK,EAAE,QAAQ,GAAG,UAAU,CAAA;CAC7B;AAED,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;AAEhE,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './weather.css';
|
|
2
|
+
import type { WeatherProps } from '../types';
|
|
3
|
+
/** The `Weather` component provides a detailed daily weather forecast for a given location, displaying the current temperature, weather description, today's date with high and low temperatures, and a card for each day's forecast showing the day of the week, weather icon, and high and low temperatures, all while attributing the weather data provider. Hourly breakdowns are not currently supported.
|
|
4
|
+
|
|
5
|
+
Note: The first item in the `Weather` array is presumed to be the current day's weather.
|
|
6
|
+
*/
|
|
7
|
+
export default function Weather(props: WeatherProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=weather.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weather.d.ts","sourceRoot":"","sources":["../../../src/components/weather/weather.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAA;AAWtB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,2CA8IlD"}
|
package/dist/index.css
CHANGED
|
@@ -464,6 +464,7 @@ span.rustic-open-layers-map-marker {
|
|
|
464
464
|
.rustic-popover-menu ul {
|
|
465
465
|
padding: 0;
|
|
466
466
|
min-width: 100px;
|
|
467
|
+
max-width: 240px;
|
|
467
468
|
}
|
|
468
469
|
|
|
469
470
|
.rustic-popover-menu li {
|
|
@@ -478,6 +479,10 @@ span.rustic-open-layers-map-marker {
|
|
|
478
479
|
margin-right: 8px;
|
|
479
480
|
}
|
|
480
481
|
|
|
482
|
+
.rustic-popover-menu-item-end-icon {
|
|
483
|
+
margin-left: 80px;
|
|
484
|
+
}
|
|
485
|
+
|
|
481
486
|
.rustic-message-actions {
|
|
482
487
|
padding: 4px 8px;
|
|
483
488
|
}
|
|
@@ -590,6 +595,62 @@ span.rustic-open-layers-map-marker {
|
|
|
590
595
|
margin-inline: 24px;
|
|
591
596
|
}
|
|
592
597
|
|
|
598
|
+
.rustic-pdf-viewer {
|
|
599
|
+
width: 100%;
|
|
600
|
+
height: 100%;
|
|
601
|
+
display: flex;
|
|
602
|
+
flex-direction: column;
|
|
603
|
+
padding: 16px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.rustic-pdf-error {
|
|
607
|
+
padding: 16px;
|
|
608
|
+
width: fit-content;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.rustic-pdf-viewer .rustic-pdf-viewer-header {
|
|
612
|
+
display: flex;
|
|
613
|
+
align-items: center;
|
|
614
|
+
margin-bottom: 8px;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.rustic-pdf-viewer .rustic-pdf-canvas {
|
|
618
|
+
flex: 1;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.rustic-pdf-viewer .rustic-pdf-page-input > div {
|
|
622
|
+
height: 24px;
|
|
623
|
+
width: 56px;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.rustic-pdf-viewer .rustic-pdf-page-input input {
|
|
627
|
+
text-align: center;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.rustic-pdf-viewer
|
|
631
|
+
.rustic-pdf-page-input
|
|
632
|
+
input[type='number']::-webkit-inner-spin-button {
|
|
633
|
+
display: none;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.rustic-pdf-viewer .rustic-page-indicator {
|
|
637
|
+
display: flex;
|
|
638
|
+
align-items: center;
|
|
639
|
+
gap: 8px;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.rustic-pdf-viewer-body {
|
|
643
|
+
flex: 1;
|
|
644
|
+
display: flex;
|
|
645
|
+
justify-content: center;
|
|
646
|
+
overflow: auto;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.rustic-pdf-viewer-body-inner {
|
|
650
|
+
overflow: auto;
|
|
651
|
+
width: fit-content;
|
|
652
|
+
}
|
|
653
|
+
|
|
593
654
|
.rustic-question .rustic-question-text {
|
|
594
655
|
margin-bottom: 16px;
|
|
595
656
|
}
|
|
@@ -620,6 +681,12 @@ span.rustic-open-layers-map-marker {
|
|
|
620
681
|
margin-left: 0;
|
|
621
682
|
}
|
|
622
683
|
|
|
684
|
+
.rustic-table .rustic-table-header span,
|
|
685
|
+
.rustic-table .rustic-table-header svg {
|
|
686
|
+
font-size: 16px;
|
|
687
|
+
margin-left: 8px;
|
|
688
|
+
}
|
|
689
|
+
|
|
623
690
|
@media (max-width: 900px) {
|
|
624
691
|
.rustic-table .rustic-table-pagination .rustic-table-spacer {
|
|
625
692
|
position: absolute;
|
|
@@ -717,3 +784,54 @@ span.rustic-open-layers-map-marker {
|
|
|
717
784
|
visibility: visible;
|
|
718
785
|
}
|
|
719
786
|
|
|
787
|
+
.rustic-weather {
|
|
788
|
+
display: flex;
|
|
789
|
+
flex-direction: column;
|
|
790
|
+
padding: 16px;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.rustic-weather .rustic-current-weather-description {
|
|
794
|
+
text-transform: capitalize;
|
|
795
|
+
margin-top: 8px;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.rustic-weather .rustic-current-weather-description img {
|
|
799
|
+
width: 24px;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.rustic-weather .rustic-current-temp {
|
|
803
|
+
margin-block: 16px;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.rustic-weather .rustic-daily-weather-container {
|
|
807
|
+
display: flex;
|
|
808
|
+
gap: 8px;
|
|
809
|
+
overflow-x: scroll;
|
|
810
|
+
margin-block: 24px;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.rustic-weather .rustic-daily-weather-card {
|
|
814
|
+
display: flex;
|
|
815
|
+
flex-direction: column;
|
|
816
|
+
align-items: center;
|
|
817
|
+
padding: 16px 24px;
|
|
818
|
+
gap: 8px;
|
|
819
|
+
min-width: fit-content;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.rustic-weather .rustic-daily-weather-card span {
|
|
823
|
+
white-space: nowrap;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.rustic-weather .rustic-daily-weather-card img {
|
|
827
|
+
width: 40px;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.rustic-weather .rustic-weather-attribution {
|
|
831
|
+
text-align: center;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.rustic-weather .rustic-popover-menu-button {
|
|
835
|
+
align-self: flex-end;
|
|
836
|
+
}
|
|
837
|
+
|