@dxos/react-ui-chat 0.8.4-main.e8ec1fe → 0.8.4-main.effb148878
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/LICENSE +102 -5
- package/dist/lib/browser/index.mjs +185 -142
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +14 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +185 -142
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/translations.mjs +16 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/types/src/components/ChatDialog/ChatDialog.d.ts +17 -1
- package/dist/types/src/components/ChatDialog/ChatDialog.d.ts.map +1 -1
- package/dist/types/src/components/ChatDialog/ChatDialog.stories.d.ts +2 -2
- package/dist/types/src/components/ChatDialog/ChatDialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatEditor/ChatEditor.d.ts +3 -2
- package/dist/types/src/components/ChatEditor/ChatEditor.d.ts.map +1 -1
- package/dist/types/src/components/ChatEditor/ChatEditor.stories.d.ts +3 -3
- package/dist/types/src/components/ChatEditor/ChatEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatEditor/references.d.ts.map +1 -1
- package/dist/types/src/components/ChatStatus/ChatStatus.d.ts +40 -0
- package/dist/types/src/components/ChatStatus/ChatStatus.d.ts.map +1 -0
- package/dist/types/src/components/ChatStatus/ChatStatus.stories.d.ts +27 -0
- package/dist/types/src/components/ChatStatus/ChatStatus.stories.d.ts.map +1 -0
- package/dist/types/src/components/ChatStatus/format.d.ts +7 -0
- package/dist/types/src/components/ChatStatus/format.d.ts.map +1 -0
- package/dist/types/src/components/ChatStatus/format.test.d.ts +2 -0
- package/dist/types/src/components/ChatStatus/format.test.d.ts.map +1 -0
- package/dist/types/src/components/ChatStatus/index.d.ts +3 -0
- package/dist/types/src/components/ChatStatus/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +52 -44
- package/src/components/ChatDialog/ChatDialog.stories.tsx +4 -4
- package/src/components/ChatDialog/ChatDialog.tsx +29 -19
- package/src/components/ChatEditor/ChatEditor.stories.tsx +5 -5
- package/src/components/ChatEditor/ChatEditor.tsx +7 -7
- package/src/components/ChatEditor/references.ts +1 -1
- package/src/components/ChatStatus/ChatStatus.stories.tsx +130 -0
- package/src/components/ChatStatus/ChatStatus.tsx +183 -0
- package/src/components/ChatStatus/format.test.ts +48 -0
- package/src/components/ChatStatus/format.ts +27 -0
- package/src/components/ChatStatus/index.ts +6 -0
- package/src/components/index.ts +1 -0
- package/src/index.ts +0 -1
- package/src/translations.ts +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nexport const translationKey = '@dxos/react-ui-chat';\n\nexport const translations = [\n {\n 'en-US': {\n [translationKey]: {},\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;AAMO,IAAMA,iBAAiB;AAEvB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,cAAAA,GAAiB,CAAC;IACrB;EACF;;",
|
|
6
|
+
"names": ["translationKey", "translations"]
|
|
7
|
+
}
|
|
@@ -7,14 +7,30 @@ type ChatDialogRootProps = PropsWithChildren<{
|
|
|
7
7
|
onExpandedChange?: (expanded: boolean) => void;
|
|
8
8
|
onEscape?: () => void;
|
|
9
9
|
}>;
|
|
10
|
+
declare function ChatDialogRoot({ children, open: openProp, expanded: expandedProp, onOpenChange, onExpandedChange, onEscape }: ChatDialogRootProps): React.JSX.Element;
|
|
11
|
+
declare namespace ChatDialogRoot {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
10
14
|
type ChatDialogHeaderProps = ThemedClassName<{
|
|
11
15
|
title?: string;
|
|
12
16
|
}>;
|
|
17
|
+
declare function ChatDialogHeader({ classNames, title }: ChatDialogHeaderProps): React.JSX.Element;
|
|
18
|
+
declare namespace ChatDialogHeader {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
13
21
|
type ChatDialogContentProps = ThemedClassName<PropsWithChildren>;
|
|
22
|
+
declare function ChatDialogContent({ children, classNames }: ChatDialogContentProps): React.JSX.Element;
|
|
23
|
+
declare namespace ChatDialogContent {
|
|
24
|
+
var displayName: string;
|
|
25
|
+
}
|
|
14
26
|
type ChatDialogFooterProps = ThemedClassName<PropsWithChildren>;
|
|
27
|
+
declare function ChatDialogFooter({ children, classNames }: ChatDialogFooterProps): React.JSX.Element;
|
|
28
|
+
declare namespace ChatDialogFooter {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
15
31
|
export declare const ChatDialog: {
|
|
16
32
|
Root: {
|
|
17
|
-
({ children, open:
|
|
33
|
+
({ children, open: openProp, expanded: expandedProp, onOpenChange, onExpandedChange, onEscape, }: ChatDialogRootProps): React.JSX.Element;
|
|
18
34
|
displayName: string;
|
|
19
35
|
};
|
|
20
36
|
Header: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatDialog/ChatDialog.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAA4C,MAAM,OAAO,CAAC;AAE/G,OAAO,EAA4B,KAAK,eAAe,EAAsB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatDialog/ChatDialog.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAA4C,MAAM,OAAO,CAAC;AAE/G,OAAO,EAA4B,KAAK,eAAe,EAAsB,MAAM,gBAAgB,CAAC;AAkCpG,KAAK,mBAAmB,GAAG,iBAAiB,CAAC;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC,CAAC;gCAEqB,EACtB,QAAQ,EACR,IAAI,EAAE,QAAgB,EACtB,QAAQ,EAAE,YAAoB,EAC9B,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACT,EAAE,mBAAmB;;;;AA2CtB,KAAK,qBAAqB,GAAG,eAAe,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;kCAEuB,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,qBAAqB;;;;AAwCtE,KAAK,sBAAsB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;mCAEtC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,sBAAsB;;;;AAwC3E,KAAK,qBAAqB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;kCAEtC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,qBAAqB;;;;AAUzE,eAAO,MAAM,UAAU;IACrB,IAAI;0GA9IH,mBAAmB;;;IA+IpB,MAAM;gCAhGyC,qBAAqB;;;IAiGpE,OAAO;mCAvD4C,sBAAsB;;;IAwDzE,MAAM;mCAd4C,qBAAqB;;;CAexE,CAAC"}
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: {
|
|
6
|
-
({ children, open:
|
|
6
|
+
({ children, open: openProp, expanded: expandedProp, onOpenChange, onExpandedChange, onEscape, }: {
|
|
7
7
|
open?: boolean;
|
|
8
8
|
expanded?: boolean;
|
|
9
9
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -27,7 +27,7 @@ declare const meta: {
|
|
|
27
27
|
parameters: {
|
|
28
28
|
translations: [{
|
|
29
29
|
readonly 'en-US': {
|
|
30
|
-
readonly "react-ui-chat": {};
|
|
30
|
+
readonly "@dxos/react-ui-chat": {};
|
|
31
31
|
};
|
|
32
32
|
}];
|
|
33
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatDialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatDialog/ChatDialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC8B,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatDialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatDialog/ChatDialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC8B,CAAC;eAE1B,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type Extension } from '@codemirror/state';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
|
-
import { type
|
|
4
|
+
import { type EditorController, type UseTextEditorProps } from '@dxos/react-ui-editor';
|
|
5
|
+
import { type BasicExtensionsOptions, type SubmitOptions } from '@dxos/ui-editor';
|
|
5
6
|
import { type ReferencesOptions } from './references';
|
|
6
7
|
export interface ChatEditorController extends EditorController {
|
|
7
8
|
}
|
|
@@ -14,6 +15,6 @@ export declare const ChatEditor: React.ForwardRefExoticComponent<Omit<{
|
|
|
14
15
|
extensions?: Extension;
|
|
15
16
|
references?: ReferencesOptions;
|
|
16
17
|
} & SubmitOptions & Pick<UseTextEditorProps, "autoFocus" | "id"> & Pick<BasicExtensionsOptions, "lineWrapping" | "placeholder">, "className"> & {
|
|
17
|
-
classNames?: import("@dxos/
|
|
18
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
18
19
|
} & React.RefAttributes<ChatEditorController>>;
|
|
19
20
|
//# sourceMappingURL=ChatEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatEditor/ChatEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"ChatEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatEditor/ChatEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAU,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC/F,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAKnB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;CAAG;AAEjE,MAAM,MAAM,eAAe,GAAG,eAAe,CAC3C;IACE,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC,GAAG,CAAC,aAAa,GAChB,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,WAAW,CAAC,GAC5C,IAAI,CAAC,sBAAsB,EAAE,cAAc,GAAG,aAAa,CAAC,CAAC,CAChE,CAAC;AAEF,eAAO,MAAM,iBAAiB,wDAAiE,eAAe,gBAa7G,CAAC;AAEF,eAAO,MAAM,UAAU;iBAtBN,SAAS;iBACT,iBAAiB;;;8CAgCjC,CAAC"}
|
|
@@ -4,15 +4,15 @@ declare const meta: {
|
|
|
4
4
|
component: import("react").ForwardRefExoticComponent<Omit<{
|
|
5
5
|
extensions?: import("@codemirror/state").Extension;
|
|
6
6
|
references?: import("./references").ReferencesOptions;
|
|
7
|
-
} & import("@dxos/
|
|
8
|
-
classNames?: import("@dxos/
|
|
7
|
+
} & import("@dxos/ui-editor").SubmitOptions & Pick<import("@dxos/react-ui-editor").UseTextEditorProps, "autoFocus" | "id"> & Pick<import("@dxos/ui-editor").BasicExtensionsOptions, "lineWrapping" | "placeholder">, "className"> & {
|
|
8
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
9
9
|
} & import("react").RefAttributes<import("./ChatEditor").ChatEditorController>>;
|
|
10
10
|
decorators: import("@storybook/react").Decorator[];
|
|
11
11
|
parameters: {
|
|
12
12
|
layout: string;
|
|
13
13
|
translations: [{
|
|
14
14
|
readonly 'en-US': {
|
|
15
|
-
readonly "react-ui-chat": {};
|
|
15
|
+
readonly "@dxos/react-ui-chat": {};
|
|
16
16
|
};
|
|
17
17
|
}];
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatEditor/ChatEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAUjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAQyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatEditor/ChatEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAUjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAQyB,CAAC;eAErB,IAAI;AAInB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,KAsB7B,CAAC;AAkBF,eAAO,MAAM,cAAc,EAAE,KAkB5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatEditor/references.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,mBAAmB,CAAC;AAe7D,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AAEH,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IACtE,gBAAgB,CAAC,EAAE,GAAG,EAAE,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;CAC3E;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatEditor/references.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,mBAAmB,CAAC;AAe7D,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AAEH,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IACtE,gBAAgB,CAAC,EAAE,GAAG,EAAE,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;CAC3E;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,UAAU,0CAAyD,iBAAiB,KAAG,SAyGnG,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
+
type ChatStatusContextValue = {
|
|
4
|
+
/** Whole seconds elapsed since ChatStatus.Root mounted. Only advances while `running` is true. */
|
|
5
|
+
elapsed: number;
|
|
6
|
+
/** Whether the ChatStatus.Root tick is currently active. Toggled via the ChatStatusController. */
|
|
7
|
+
running: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const useChatStatusContext: (consumerName: string) => ChatStatusContextValue;
|
|
10
|
+
export { useChatStatusContext };
|
|
11
|
+
export type ChatStatusController = {
|
|
12
|
+
/** Resume the tick. No-op if already running. */
|
|
13
|
+
start: () => void;
|
|
14
|
+
/** Pause the tick. The reported `elapsed` freezes at its last value. */
|
|
15
|
+
stop: () => void;
|
|
16
|
+
};
|
|
17
|
+
export type RootProps = ThemedClassName<PropsWithChildren<{
|
|
18
|
+
/** Whether the tick starts running on mount. Defaults to `true`. */
|
|
19
|
+
defaultRunning?: boolean;
|
|
20
|
+
}>>;
|
|
21
|
+
export type IconProps = ThemedClassName<PropsWithChildren>;
|
|
22
|
+
export type StopwatchProps = ThemedClassName<{
|
|
23
|
+
/** Seconds to add to the context elapsed value before formatting. Defaults to 0. */
|
|
24
|
+
offset?: number;
|
|
25
|
+
}>;
|
|
26
|
+
export type SeparatorProps = ThemedClassName<unknown>;
|
|
27
|
+
export type TextProps = ThemedClassName<PropsWithChildren>;
|
|
28
|
+
export declare const ChatStatus: {
|
|
29
|
+
Root: React.ForwardRefExoticComponent<Omit<PropsWithChildren<{
|
|
30
|
+
/** Whether the tick starts running on mount. Defaults to `true`. */
|
|
31
|
+
defaultRunning?: boolean;
|
|
32
|
+
}>, "className"> & {
|
|
33
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
34
|
+
} & React.RefAttributes<ChatStatusController>>;
|
|
35
|
+
Icon: ({ classNames, children }: IconProps) => React.JSX.Element;
|
|
36
|
+
Stopwatch: ({ classNames, offset }: StopwatchProps) => React.JSX.Element;
|
|
37
|
+
Separator: ({ classNames }: SeparatorProps) => React.JSX.Element;
|
|
38
|
+
Text: ({ classNames, children }: TextProps) => React.JSX.Element;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=ChatStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatStatus/ChatStatus.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAkE,MAAM,OAAO,CAAC;AAEtH,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAWtD,KAAK,sBAAsB,GAAG;IAC5B,kGAAkG;IAClG,OAAO,EAAE,MAAM,CAAC;IAChB,kGAAkG;IAClG,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,QAAA,MAA2B,oBAAoB,kDAAuD,CAAC;AAEvG,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAMhC,MAAM,MAAM,oBAAoB,GAAG;IACjC,iDAAiD;IACjD,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,wEAAwE;IACxE,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAMF,MAAM,MAAM,SAAS,GAAG,eAAe,CACrC,iBAAiB,CAAC;IAChB,oEAAoE;IACpE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC,CACH,CAAC;AAyDF,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAqB3D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;IAC3C,oFAAoF;IACpF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAoBH,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;AAetD,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAW3D,eAAO,MAAM,UAAU;;QAlInB,oEAAoE;yBACnD,OAAO;;;;qCAgEY,SAAS;wCA0BF,cAAc;gCAkB1B,cAAc;qCAeT,SAAS;CAYhD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type ChatStatusController } from './ChatStatus';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<{
|
|
7
|
+
defaultRunning?: boolean;
|
|
8
|
+
}>, "className"> & {
|
|
9
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
10
|
+
} & React.RefAttributes<ChatStatusController>>;
|
|
11
|
+
decorators: import("@storybook/react").Decorator[];
|
|
12
|
+
parameters: {
|
|
13
|
+
layout: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Default: Story;
|
|
19
|
+
export declare const WithMeta: Story;
|
|
20
|
+
export declare const WithCustomIcon: Story;
|
|
21
|
+
export declare const LongRunning: Story;
|
|
22
|
+
export declare const TextOnly: Story;
|
|
23
|
+
/**
|
|
24
|
+
* Demonstrates the imperative controller — start/stop the 1Hz tick from the outside.
|
|
25
|
+
*/
|
|
26
|
+
export declare const Controller: Story;
|
|
27
|
+
//# sourceMappingURL=ChatStatus.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatStatus.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatStatus/ChatStatus.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAiB,MAAM,OAAO,CAAC;AAMtC,OAAO,EAAc,KAAK,oBAAoB,EAAwB,MAAM,cAAc,CAAC;AAE3F,QAAA,MAAM,IAAI;;;;;;;;;QAQN,MAAM;;CAE8B,CAAC;eAE1B,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAC;AAsBF,eAAO,MAAM,cAAc,EAAE,KAa5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAWzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatStatus/format.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,aAAa,OAAQ,MAAM,KAAG,MAa1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatStatus/format.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatStatus/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const translationKey = "react-ui-chat";
|
|
1
|
+
export declare const translationKey = "@dxos/react-ui-chat";
|
|
2
2
|
export declare const translations: [{
|
|
3
3
|
readonly 'en-US': {
|
|
4
|
-
readonly "react-ui-chat": {};
|
|
4
|
+
readonly "@dxos/react-ui-chat": {};
|
|
5
5
|
};
|
|
6
6
|
}];
|
|
7
7
|
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,wBAAwB,CAAC;AAEpD,eAAO,MAAM,YAAY;;;;EAMM,CAAC"}
|