@dxos/react-ui-thread 0.8.3 → 0.8.4-main.1c7ec43d41

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 (34) hide show
  1. package/dist/lib/browser/index.mjs +140 -205
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +25 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/types/src/Message/Message.d.ts +2 -2
  7. package/dist/types/src/Message/Message.d.ts.map +1 -1
  8. package/dist/types/src/Message/Message.stories.d.ts +21 -19
  9. package/dist/types/src/Message/Message.stories.d.ts.map +1 -1
  10. package/dist/types/src/Thread/Comments.stories.d.ts +22 -39
  11. package/dist/types/src/Thread/Comments.stories.d.ts.map +1 -1
  12. package/dist/types/src/Thread/Thread.d.ts +27 -10
  13. package/dist/types/src/Thread/Thread.d.ts.map +1 -1
  14. package/dist/types/src/Thread/Thread.stories.d.ts +25 -19
  15. package/dist/types/src/Thread/Thread.stories.d.ts.map +1 -1
  16. package/dist/types/src/index.d.ts +1 -3
  17. package/dist/types/src/index.d.ts.map +1 -1
  18. package/dist/types/src/testing.d.ts +1 -2
  19. package/dist/types/src/testing.d.ts.map +1 -1
  20. package/dist/types/src/translations.d.ts +15 -16
  21. package/dist/types/src/translations.d.ts.map +1 -1
  22. package/dist/types/src/types.d.ts +1 -0
  23. package/dist/types/src/types.d.ts.map +1 -1
  24. package/dist/types/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +37 -29
  26. package/src/Message/Message.stories.tsx +24 -17
  27. package/src/Message/Message.tsx +20 -18
  28. package/src/Thread/Comments.stories.tsx +94 -65
  29. package/src/Thread/Thread.stories.tsx +31 -22
  30. package/src/Thread/Thread.tsx +47 -26
  31. package/src/index.ts +1 -4
  32. package/src/testing.tsx +10 -14
  33. package/src/translations.ts +15 -13
  34. package/src/types.ts +1 -0
@@ -1,29 +1,31 @@
1
- import '@dxos-theme';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
- declare const _default: {
3
+ declare const meta: {
4
4
  title: string;
5
- component: React.ForwardRefExoticComponent<Omit<import("./Message").MessageRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ component: any;
6
6
  render: () => React.JSX.Element;
7
7
  decorators: import("@storybook/react").Decorator[];
8
8
  parameters: {
9
- translations: {
10
- 'en-US': {
11
- thread: {
12
- 'plugin name': string;
13
- 'thread title placeholder': string;
14
- 'thread title label': string;
15
- 'delete thread label': string;
16
- 'create thread label': string;
17
- 'message placeholder': string;
18
- 'comment placeholder': string;
19
- 'settings standalone label': string;
20
- 'anonymous label': string;
21
- 'enter to send message': string;
9
+ layout: string;
10
+ translations: [{
11
+ readonly 'en-US': {
12
+ readonly "@dxos/react-ui-thread": {
13
+ readonly 'plugin.name': 'Threads';
14
+ readonly 'thread-title.placeholder': 'New thread';
15
+ readonly 'thread-title.label': 'Title';
16
+ readonly 'delete-thread.label': 'Delete';
17
+ readonly 'create-thread.label': 'Create thread';
18
+ readonly 'message.placeholder': 'Enter message...';
19
+ readonly 'comment.placeholder': 'Enter comment...';
20
+ readonly 'settings-standalone.label': 'Enable standalone thread creation';
21
+ readonly 'anonymous.label': 'Anonymous';
22
+ readonly 'enter-to-send.message': 'Enter to add \u23CE';
22
23
  };
23
24
  };
24
- }[];
25
+ }];
25
26
  };
26
27
  };
27
- export default _default;
28
- export declare const Default: {};
28
+ export default meta;
29
+ type Story = StoryObj<typeof meta>;
30
+ export declare const Default: Story;
29
31
  //# sourceMappingURL=Message.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Message.stories.d.ts","sourceRoot":"","sources":["../../../../src/Message/Message.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAmB,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;AA+BxC,wBAME;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
1
+ {"version":3,"file":"Message.stories.d.ts","sourceRoot":"","sources":["../../../../src/Message/Message.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAgCxC,QAAA,MAAM,IAAI;;eAEkB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAOM,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,52 +1,35 @@
1
- import '@dxos-theme';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
- import { type Range } from '@dxos/react-ui-editor';
4
- import { type MessageEntity } from '../testing';
5
- type StoryCommentThread = {
6
- id: string;
7
- cursor?: string;
8
- range?: Range;
9
- yPos?: number;
10
- messages: MessageEntity[];
11
- };
12
- type StoryProps = {
3
+ type DefaultStoryProps = {
13
4
  text?: string;
14
5
  autoCreate?: boolean;
15
6
  };
16
- declare const _default: {
7
+ declare const meta: {
17
8
  title: string;
18
- component: React.FC<{
19
- thread: StoryCommentThread;
20
- selected: boolean;
21
- onSelect: () => void;
22
- onResolve: () => void;
23
- }>;
9
+ component: any;
10
+ render: ({ text, autoCreate }: DefaultStoryProps) => React.JSX.Element;
24
11
  decorators: import("@storybook/react").Decorator[];
25
- render: (args: StoryProps) => React.JSX.Element;
26
12
  parameters: {
27
- translations: {
28
- 'en-US': {
29
- thread: {
30
- 'plugin name': string;
31
- 'thread title placeholder': string;
32
- 'thread title label': string;
33
- 'delete thread label': string;
34
- 'create thread label': string;
35
- 'message placeholder': string;
36
- 'comment placeholder': string;
37
- 'settings standalone label': string;
38
- 'anonymous label': string;
39
- 'enter to send message': string;
13
+ translations: [{
14
+ readonly 'en-US': {
15
+ readonly "@dxos/react-ui-thread": {
16
+ readonly 'plugin.name': 'Threads';
17
+ readonly 'thread-title.placeholder': 'New thread';
18
+ readonly 'thread-title.label': 'Title';
19
+ readonly 'delete-thread.label': 'Delete';
20
+ readonly 'create-thread.label': 'Create thread';
21
+ readonly 'message.placeholder': 'Enter message...';
22
+ readonly 'comment.placeholder': 'Enter comment...';
23
+ readonly 'settings-standalone.label': 'Enable standalone thread creation';
24
+ readonly 'anonymous.label': 'Anonymous';
25
+ readonly 'enter-to-send.message': 'Enter to add \u23CE';
40
26
  };
41
27
  };
42
- }[];
28
+ }];
43
29
  layout: string;
44
30
  };
45
31
  };
46
- export default _default;
47
- export declare const Default: {
48
- args: {
49
- text: string;
50
- };
51
- };
32
+ export default meta;
33
+ type Story = StoryObj<typeof meta>;
34
+ export declare const Default: Story;
52
35
  //# sourceMappingURL=Comments.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/Thread/Comments.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAAwD,MAAM,OAAO,CAAC;AAS7E,OAAO,EAGL,KAAK,KAAK,EASX,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAqEhD,KAAK,kBAAkB,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B,CAAC;AAwHF,KAAK,UAAU,GAAG;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;;;;gBAxHQ,kBAAkB;kBAChB,OAAO;kBACP,MAAM,IAAI;mBACT,MAAM,IAAI;;;mBAgPN,UAAU;;;;;;;;;;;;;;;;;;;;;AAJ3B,wBAME;AAWF,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
1
+ {"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/Thread/Comments.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAwD,MAAM,OAAO,CAAC;AAwP7E,KAAK,iBAAiB,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAuHF,QAAA,MAAM,IAAI;;eAEkB,GAAG;mCAvHa,iBAAiB;;;;;;;;;;;;;;;;;;;;;CA8HxB,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAInC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC"}
@@ -1,17 +1,34 @@
1
- import React, { type ComponentPropsWithRef } from 'react';
1
+ import React, { ComponentPropsWithRef, PropsWithChildren } from 'react';
2
2
  import { type ThemedClassName } from '@dxos/react-ui';
3
3
  import type { ThreadEntity } from '../types';
4
- export type ThreadProps = ThemedClassName<ComponentPropsWithRef<'div'>> & ThreadEntity & {
4
+ export declare const threadLayout = "w-full place-self-start grid grid-cols-[var(--dx-rail-size)_1fr]";
5
+ type ThreadRootProps = ThemedClassName<PropsWithChildren<ThreadEntity & {
5
6
  current?: boolean;
6
- };
7
- export declare const threadLayout = "is-full place-self-start grid grid-cols-[var(--rail-size)_1fr]";
8
- export declare const Thread: React.ForwardRefExoticComponent<Omit<ThreadProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- export type ThreadHeadingProps = ThemedClassName<ComponentPropsWithRef<'div'>> & {
7
+ } & Pick<ComponentPropsWithRef<'div'>, 'onClickCapture' | 'onFocusCapture'>>>;
8
+ type ThreadHeaderProps = PropsWithChildren<{
10
9
  detached?: boolean;
11
- };
12
- export declare const ThreadHeading: React.ForwardRefExoticComponent<Omit<ThreadHeadingProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
13
- export type ThreadFooterProps = ThemedClassName<ComponentPropsWithRef<'div'>> & {
10
+ }>;
11
+ type ThreadStatusProps = ThemedClassName<PropsWithChildren> & {
14
12
  activity?: boolean;
15
13
  };
16
- export declare const ThreadFooter: React.ForwardRefExoticComponent<Omit<ThreadFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const Thread: {
15
+ Root: React.ForwardRefExoticComponent<Omit<PropsWithChildren<ThreadEntity & {
16
+ current?: boolean;
17
+ } & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClickCapture" | "onFocusCapture">>, "className"> & {
18
+ classNames?: import("@dxos/ui-types").ClassNameValue;
19
+ } & React.RefAttributes<HTMLDivElement>>;
20
+ Header: React.ForwardRefExoticComponent<{
21
+ detached?: boolean;
22
+ } & {
23
+ children?: React.ReactNode | undefined;
24
+ } & React.RefAttributes<HTMLParagraphElement>>;
25
+ Status: React.ForwardRefExoticComponent<Omit<{
26
+ children?: React.ReactNode | undefined;
27
+ }, "className"> & {
28
+ classNames?: import("@dxos/ui-types").ClassNameValue;
29
+ } & {
30
+ activity?: boolean;
31
+ } & React.RefAttributes<HTMLDivElement>>;
32
+ };
33
+ export type { ThreadRootProps, ThreadHeaderProps, ThreadStatusProps };
17
34
  //# sourceMappingURL=Thread.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/Thread/Thread.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAItE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,GAAG,YAAY,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE/G,eAAO,MAAM,YAAY,mEAAmE,CAAC;AAE7F,eAAO,MAAM,MAAM,iGAqBlB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAExG,eAAO,MAAM,aAAa,8GAwBzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,GAAG;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,YAAY,uGAwBxB,CAAC"}
1
+ {"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/Thread/Thread.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,qBAAqB,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEpF,OAAO,EAAQ,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAK5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG7C,eAAO,MAAM,YAAY,qEAAqE,CAAC;AAM/F,KAAK,eAAe,GAAG,eAAe,CACpC,iBAAiB,CACf,YAAY,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,CAC/G,CACF,CAAC;AA4BF,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AA6BnE,KAAK,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC,GAAG;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA4BF,eAAO,MAAM,MAAM;IACjB,IAAI;kBA1FyB,OAAO;;;;IA2FpC,MAAM;mBA7DgD,OAAO;;;;IA8D7D,MAAM;;;;;mBAhCK,OAAO;;CAiCnB,CAAC;AAEF,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,29 +1,35 @@
1
- import '@dxos-theme';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
- declare const _default: {
3
+ declare const meta: {
4
4
  title: string;
5
- component: React.ForwardRefExoticComponent<Omit<import("./Thread").ThreadProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ component: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<import("..").ThreadEntity & {
6
+ current?: boolean;
7
+ } & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClickCapture" | "onFocusCapture">>, "className"> & {
8
+ classNames?: import("@dxos/ui-types").ClassNameValue;
9
+ } & React.RefAttributes<HTMLDivElement>>;
6
10
  render: () => React.JSX.Element;
7
11
  decorators: import("@storybook/react").Decorator[];
8
12
  parameters: {
9
- translations: {
10
- 'en-US': {
11
- thread: {
12
- 'plugin name': string;
13
- 'thread title placeholder': string;
14
- 'thread title label': string;
15
- 'delete thread label': string;
16
- 'create thread label': string;
17
- 'message placeholder': string;
18
- 'comment placeholder': string;
19
- 'settings standalone label': string;
20
- 'anonymous label': string;
21
- 'enter to send message': string;
13
+ layout: string;
14
+ translations: [{
15
+ readonly 'en-US': {
16
+ readonly "@dxos/react-ui-thread": {
17
+ readonly 'plugin.name': 'Threads';
18
+ readonly 'thread-title.placeholder': 'New thread';
19
+ readonly 'thread-title.label': 'Title';
20
+ readonly 'delete-thread.label': 'Delete';
21
+ readonly 'create-thread.label': 'Create thread';
22
+ readonly 'message.placeholder': 'Enter message...';
23
+ readonly 'comment.placeholder': 'Enter comment...';
24
+ readonly 'settings-standalone.label': 'Enable standalone thread creation';
25
+ readonly 'anonymous.label': 'Anonymous';
26
+ readonly 'enter-to-send.message': 'Enter to add \u23CE';
22
27
  };
23
28
  };
24
- }[];
29
+ }];
25
30
  };
26
31
  };
27
- export default _default;
28
- export declare const Default: {};
32
+ export default meta;
33
+ type Story = StoryObj<typeof meta>;
34
+ export declare const Default: Story;
29
35
  //# sourceMappingURL=Thread.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Thread.stories.d.ts","sourceRoot":"","sources":["../../../../src/Thread/Thread.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAoC,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;AA2EzD,wBAME;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
1
+ {"version":3,"file":"Thread.stories.d.ts","sourceRoot":"","sources":["../../../../src/Thread/Thread.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAoC,MAAM,OAAO,CAAC;AA8EzD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS0B,CAAC;eAEtB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,6 +1,4 @@
1
- import translations from './translations';
2
1
  export * from './Thread';
3
2
  export * from './Message';
4
- export * from './types';
5
- export { translations };
3
+ export type * from './types';
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,mBAAmB,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import React, { type PropsWithChildren } from 'react';
1
+ import React from 'react';
2
2
  import { type MessageMetadata } from './types';
3
3
  export type MessageEntity<PartValue = any> = MessageMetadata & {
4
4
  text: string;
@@ -13,5 +13,4 @@ export type MessagePartProps<PartValue> = {
13
13
  part: PartValue;
14
14
  };
15
15
  export declare const MessageStoryBlock: <PartValue>({ part }: MessagePartProps<PartValue>) => React.JSX.Element;
16
- export declare const ThreadStoryContainer: ({ children }: PropsWithChildren) => React.JSX.Element;
17
16
  //# sourceMappingURL=testing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAMtD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,aAAa,CAAC,SAAS,GAAG,GAAG,IAAI,eAAe,GAAG;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,2CAA2C,gBAAgB,sBAiB3F,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,SAAS,IAAI;IACxC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,EAAG,UAAU,gBAAgB,CAAC,SAAS,CAAC,sBAWlF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,cAAc,iBAAiB,sBAEnE,CAAC"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,aAAa,CAAC,SAAS,GAAG,GAAG,IAAI,eAAe,GAAG;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,8CAA+C,gBAAgB,sBAkB3F,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,SAAS,IAAI;IACxC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,SAAS,YAAa,gBAAgB,CAAC,SAAS,CAAC,sBAWlF,CAAC"}
@@ -1,19 +1,18 @@
1
- export declare const translationKey = "thread";
2
- declare const _default: {
3
- 'en-US': {
4
- thread: {
5
- 'plugin name': string;
6
- 'thread title placeholder': string;
7
- 'thread title label': string;
8
- 'delete thread label': string;
9
- 'create thread label': string;
10
- 'message placeholder': string;
11
- 'comment placeholder': string;
12
- 'settings standalone label': string;
13
- 'anonymous label': string;
14
- 'enter to send message': string;
1
+ export declare const translationKey = "@dxos/react-ui-thread";
2
+ export declare const translations: [{
3
+ readonly 'en-US': {
4
+ readonly "@dxos/react-ui-thread": {
5
+ readonly 'plugin.name': 'Threads';
6
+ readonly 'thread-title.placeholder': 'New thread';
7
+ readonly 'thread-title.label': 'Title';
8
+ readonly 'delete-thread.label': 'Delete';
9
+ readonly 'create-thread.label': 'Create thread';
10
+ readonly 'message.placeholder': 'Enter message...';
11
+ readonly 'comment.placeholder': 'Enter comment...';
12
+ readonly 'settings-standalone.label': 'Enable standalone thread creation';
13
+ readonly 'anonymous.label': 'Anonymous';
14
+ readonly 'enter-to-send.message': 'Enter to add \u23CE';
15
15
  };
16
16
  };
17
- }[];
18
- export default _default;
17
+ }];
19
18
  //# sourceMappingURL=translations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,WAAW,CAAC;;;;;;;;;;;;;;;;;AAEvC,wBAiBE"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,0BAA0B,CAAC;AAEtD,eAAO,MAAM,YAAY;;;qBAIjB,aAAa,EAAE,SAAS;qBACxB,0BAA0B,EAAE,YAAY;qBACxC,oBAAoB,EAAE,OAAO;qBAC7B,qBAAqB,EAAE,QAAQ;qBAC/B,qBAAqB,EAAE,eAAe;qBACtC,qBAAqB,EAAE,kBAAkB;qBACzC,qBAAqB,EAAE,kBAAkB;qBACzC,2BAA2B,EAAE,mCAAmC;qBAChE,iBAAiB,EAAE,WAAW;qBAC9B,uBAAuB,EAAE,qBAAgB;;;EAIlB,CAAC"}
@@ -8,6 +8,7 @@ export type MessageMetadata = {
8
8
  authorAvatarProps?: FallbackValue;
9
9
  };
10
10
  export type ThreadEntity = {
11
+ id?: string;
11
12
  topicId?: string;
12
13
  topicTitle?: string;
13
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhD,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,aAAa,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhD,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,aAAa,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}