@dxos/plugin-preview 0.8.4-main.67995b8 → 0.8.4-main.ae835ea

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 (101) hide show
  1. package/dist/lib/browser/chunk-CEWM5LJG.mjs +17 -0
  2. package/dist/lib/browser/chunk-CEWM5LJG.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +11 -7
  4. package/dist/lib/browser/index.mjs.map +2 -2
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/{preview-popover-2UCEZUQW.mjs → preview-popover-RKHENTFP.mjs} +9 -13
  7. package/dist/lib/browser/preview-popover-RKHENTFP.mjs.map +7 -0
  8. package/dist/lib/browser/react-surface-3AR3BFLF.mjs +515 -0
  9. package/dist/lib/browser/react-surface-3AR3BFLF.mjs.map +7 -0
  10. package/dist/lib/node-esm/chunk-Q5MUNELK.mjs +19 -0
  11. package/dist/lib/node-esm/chunk-Q5MUNELK.mjs.map +7 -0
  12. package/dist/lib/node-esm/index.mjs +11 -7
  13. package/dist/lib/node-esm/index.mjs.map +2 -2
  14. package/dist/lib/node-esm/meta.json +1 -1
  15. package/dist/lib/node-esm/{preview-popover-OSHWR2YE.mjs → preview-popover-TZKX67EY.mjs} +9 -13
  16. package/dist/lib/node-esm/preview-popover-TZKX67EY.mjs.map +7 -0
  17. package/dist/lib/node-esm/react-surface-L37JR7U2.mjs +516 -0
  18. package/dist/lib/node-esm/react-surface-L37JR7U2.mjs.map +7 -0
  19. package/dist/types/src/PreviewPlugin.d.ts +1 -1
  20. package/dist/types/src/PreviewPlugin.d.ts.map +1 -1
  21. package/dist/types/src/capabilities/index.d.ts +2 -2
  22. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  23. package/dist/types/src/capabilities/preview-popover.d.ts +1 -1
  24. package/dist/types/src/capabilities/preview-popover.d.ts.map +1 -1
  25. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  26. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  27. package/dist/types/src/cards/ContactCard.d.ts +5 -0
  28. package/dist/types/src/cards/ContactCard.d.ts.map +1 -0
  29. package/dist/types/src/cards/OrganizationCard.d.ts +5 -0
  30. package/dist/types/src/cards/OrganizationCard.d.ts.map +1 -0
  31. package/dist/types/src/cards/ProjectCard.d.ts +5 -0
  32. package/dist/types/src/cards/ProjectCard.d.ts.map +1 -0
  33. package/dist/types/src/cards/TaskCard.d.ts +5 -0
  34. package/dist/types/src/cards/TaskCard.d.ts.map +1 -0
  35. package/dist/types/src/cards/index.d.ts +5 -0
  36. package/dist/types/src/cards/index.d.ts.map +1 -0
  37. package/dist/types/src/components/CardComponents.d.ts +16 -0
  38. package/dist/types/src/components/CardComponents.d.ts.map +1 -0
  39. package/dist/types/src/components/CardSubjectMenu.d.ts +8 -0
  40. package/dist/types/src/components/CardSubjectMenu.d.ts.map +1 -0
  41. package/dist/types/src/components/index.d.ts +2 -3
  42. package/dist/types/src/components/index.d.ts.map +1 -1
  43. package/dist/types/src/meta.d.ts +0 -1
  44. package/dist/types/src/meta.d.ts.map +1 -1
  45. package/dist/types/src/stories/Card.stories.d.ts +30 -0
  46. package/dist/types/src/stories/Card.stories.d.ts.map +1 -0
  47. package/dist/types/src/stories/testing.d.ts +18 -0
  48. package/dist/types/src/stories/testing.d.ts.map +1 -0
  49. package/dist/types/src/translations.d.ts +6 -0
  50. package/dist/types/src/translations.d.ts.map +1 -1
  51. package/dist/types/src/types.d.ts +5 -1
  52. package/dist/types/src/types.d.ts.map +1 -1
  53. package/dist/types/tsconfig.tsbuildinfo +1 -1
  54. package/package.json +34 -31
  55. package/src/PreviewPlugin.tsx +22 -23
  56. package/src/capabilities/preview-popover.ts +9 -14
  57. package/src/capabilities/react-surface.tsx +65 -79
  58. package/src/cards/ContactCard.tsx +65 -0
  59. package/src/cards/OrganizationCard.tsx +25 -0
  60. package/src/cards/ProjectCard.tsx +24 -0
  61. package/src/cards/TaskCard.tsx +46 -0
  62. package/src/cards/index.ts +8 -0
  63. package/src/components/CardComponents.tsx +67 -0
  64. package/src/components/CardSubjectMenu.tsx +91 -0
  65. package/src/components/index.ts +2 -3
  66. package/src/meta.ts +6 -3
  67. package/src/stories/Card.stories.tsx +62 -0
  68. package/src/stories/testing.tsx +113 -0
  69. package/src/translations.ts +6 -0
  70. package/src/types.ts +6 -2
  71. package/dist/lib/browser/chunk-Z73ENKLE.mjs +0 -14
  72. package/dist/lib/browser/chunk-Z73ENKLE.mjs.map +0 -7
  73. package/dist/lib/browser/preview-popover-2UCEZUQW.mjs.map +0 -7
  74. package/dist/lib/browser/react-surface-CZMUEWPV.mjs +0 -303
  75. package/dist/lib/browser/react-surface-CZMUEWPV.mjs.map +0 -7
  76. package/dist/lib/node-esm/chunk-2ORSL4GJ.mjs +0 -16
  77. package/dist/lib/node-esm/chunk-2ORSL4GJ.mjs.map +0 -7
  78. package/dist/lib/node-esm/preview-popover-OSHWR2YE.mjs.map +0 -7
  79. package/dist/lib/node-esm/react-surface-IPZBISWS.mjs +0 -304
  80. package/dist/lib/node-esm/react-surface-IPZBISWS.mjs.map +0 -7
  81. package/dist/types/src/components/ContactCard.d.ts +0 -7
  82. package/dist/types/src/components/ContactCard.d.ts.map +0 -1
  83. package/dist/types/src/components/OrganizationCard.d.ts +0 -5
  84. package/dist/types/src/components/OrganizationCard.d.ts.map +0 -1
  85. package/dist/types/src/components/ProjectCard.d.ts +0 -5
  86. package/dist/types/src/components/ProjectCard.d.ts.map +0 -1
  87. package/dist/types/src/testing/ExtrinsicPreviews.stories.d.ts +0 -35
  88. package/dist/types/src/testing/ExtrinsicPreviews.stories.d.ts.map +0 -1
  89. package/dist/types/src/testing/IntrinsicPreviews.stories.d.ts +0 -35
  90. package/dist/types/src/testing/IntrinsicPreviews.stories.d.ts.map +0 -1
  91. package/dist/types/src/testing/PopoverPreviews.stories.d.ts +0 -35
  92. package/dist/types/src/testing/PopoverPreviews.stories.d.ts.map +0 -1
  93. package/dist/types/src/testing/util.d.ts +0 -80
  94. package/dist/types/src/testing/util.d.ts.map +0 -1
  95. package/src/components/ContactCard.tsx +0 -70
  96. package/src/components/OrganizationCard.tsx +0 -41
  97. package/src/components/ProjectCard.tsx +0 -20
  98. package/src/testing/ExtrinsicPreviews.stories.tsx +0 -55
  99. package/src/testing/IntrinsicPreviews.stories.tsx +0 -55
  100. package/src/testing/PopoverPreviews.stories.tsx +0 -55
  101. package/src/testing/util.tsx +0 -79
@@ -1,80 +0,0 @@
1
- import type { Meta } from '@storybook/react-vite';
2
- import { type FC } from 'react';
3
- import type { PreviewProps } from '../types';
4
- export type StoryProps = {
5
- Component: FC<PreviewProps<any>>;
6
- icon?: string;
7
- withImage?: boolean;
8
- subject: 'project' | 'contact' | 'organization';
9
- role: 'card--popover' | 'card--intrinsic' | 'card--extrinsic' | 'card--transclusion';
10
- };
11
- export declare const render: Meta<StoryProps>['render'];
12
- export declare const omitImage: ({ image, ...rest }: any) => any;
13
- export declare const data: {
14
- organization: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
15
- image?: string | undefined;
16
- id: string;
17
- status?: "active" | "prospect" | "qualified" | "commit" | "reject" | undefined;
18
- name?: string | undefined;
19
- description?: string | undefined;
20
- website?: string | undefined;
21
- }>;
22
- contact: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
23
- fields?: {
24
- readonly label: string;
25
- readonly category?: string | undefined;
26
- readonly value: string;
27
- }[] | undefined;
28
- fullName?: string | undefined;
29
- preferredName?: string | undefined;
30
- nickname?: string | undefined;
31
- image?: string | undefined;
32
- organization?: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
33
- id: string;
34
- name?: string | undefined;
35
- description?: string | undefined;
36
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
37
- image?: string | undefined;
38
- website?: string | undefined;
39
- }> | undefined;
40
- jobTitle?: string | undefined;
41
- department?: string | undefined;
42
- notes?: string | undefined;
43
- emails?: {
44
- readonly label?: string | undefined;
45
- readonly value: string;
46
- }[] | undefined;
47
- identities?: {
48
- readonly label?: string | undefined;
49
- readonly value: string;
50
- }[] | undefined;
51
- phoneNumbers?: {
52
- readonly label?: string | undefined;
53
- readonly value: string;
54
- }[] | undefined;
55
- addresses?: {
56
- readonly label?: string | undefined;
57
- readonly value: {
58
- readonly street?: string | undefined;
59
- readonly extended?: string | undefined;
60
- readonly locality?: string | undefined;
61
- readonly region?: string | undefined;
62
- readonly postalCode?: string | undefined;
63
- readonly postOfficeBoxNumber?: string | undefined;
64
- readonly country?: string | undefined;
65
- };
66
- }[] | undefined;
67
- urls?: {
68
- readonly label?: string | undefined;
69
- readonly value: string;
70
- }[] | undefined;
71
- birthday?: string | undefined;
72
- }>;
73
- project: import("@dxos/live-object").Live<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
74
- image?: string | undefined;
75
- id: string;
76
- name: string;
77
- description?: string | undefined;
78
- }>;
79
- };
80
- //# sourceMappingURL=util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/testing/util.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAOvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,cAAc,CAAC;IAChD,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;CACtF,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,CAa7C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,oBAAoB,GAAG,QAAS,CAAC;AAE3D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCb,CAAC"}
@@ -1,70 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import React, { Fragment } from 'react';
6
-
7
- import { Icon, Avatar, Button } from '@dxos/react-ui';
8
- import { Card, cardHeading, cardText } from '@dxos/react-ui-stack';
9
- import { mx } from '@dxos/react-ui-theme';
10
- import { type DataType } from '@dxos/schema';
11
-
12
- import { type PreviewProps } from '../types';
13
-
14
- export const ContactCard = ({
15
- children,
16
- subject: { fullName, image, organization, emails },
17
- onOrgClick,
18
- role,
19
- }: PreviewProps<DataType.Person> & { onOrgClick?: (org: DataType.Organization) => void }) => {
20
- const organizationName = organization && typeof organization === 'object' ? organization.target?.name : organization;
21
- return (
22
- <Card.SurfaceRoot role={role}>
23
- <Avatar.Root>
24
- <Card.Text role='group' classNames='grid gap-3 grid-cols-[min-content_1fr]'>
25
- <Avatar.Content imgSrc={image} icon='ph--user--regular' size={16} hue='neutral' />
26
- <div role='none' className='bs-min self-center'>
27
- <Avatar.Label asChild>
28
- <h2 className={cardHeading}>{fullName}</h2>
29
- </Avatar.Label>
30
- </div>
31
- </Card.Text>
32
- </Avatar.Root>
33
- {organizationName && (
34
- <Card.Chrome>
35
- {typeof organization === 'object' && onOrgClick ? (
36
- <Button variant='ghost' classNames='gap-2 text-start' onClick={() => onOrgClick(organization.target!)}>
37
- <Icon icon='ph--buildings--regular' size={5} classNames='text-subdued' />
38
- <span className='min-is-0 flex-1 truncate'>{organizationName}</span>
39
- <Icon icon='ph--arrow-right--regular' />
40
- </Button>
41
- ) : (
42
- <p className='dx-button gap-2' data-variant='ghost'>
43
- <Icon icon='ph--buildings--regular' size={5} classNames='text-subdued' />
44
- <span className='min-is-0 flex-1 truncate'>{organizationName}</span>
45
- </p>
46
- )}
47
- </Card.Chrome>
48
- )}
49
- <dl
50
- className={mx(
51
- cardText,
52
- 'grid gap-2 grid-cols-[min-content_1fr] [&_dt]:text-subdued [&_dt]:pbs-0.5 [&_dd]:min-is-0',
53
- )}
54
- >
55
- {emails?.length &&
56
- emails.map(({ label, value }) => (
57
- <Fragment key={value}>
58
- <dt>
59
- <Icon icon='ph--at--regular' size={5} />
60
- </dt>
61
- <dd key={value} className='break-words'>
62
- {value}
63
- </dd>
64
- </Fragment>
65
- ))}
66
- </dl>
67
- {children}
68
- </Card.SurfaceRoot>
69
- );
70
- };
@@ -1,41 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import React from 'react';
6
-
7
- import { Icon } from '@dxos/react-ui';
8
- import { Card } from '@dxos/react-ui-stack';
9
- import { type DataType } from '@dxos/schema';
10
-
11
- import { type PreviewProps } from '../types';
12
-
13
- export const OrganizationCard = ({
14
- children,
15
- subject: { name, image, description, website },
16
- role,
17
- }: PreviewProps<DataType.Organization>) => {
18
- return (
19
- <Card.SurfaceRoot role={role}>
20
- <Card.Poster alt={name!} {...(image ? { image } : { icon: 'ph--building-office--regular' })} />
21
- <Card.Heading>{name}</Card.Heading>
22
- {description && <Card.Text classNames='line-clamp-2'>{description}</Card.Text>}
23
- {website && (
24
- <Card.Chrome>
25
- <a
26
- className='dx-button dx-focus-ring gap-2'
27
- data-variant='ghost'
28
- href={website}
29
- target='_blank'
30
- rel='noreferrer'
31
- >
32
- <Icon icon='ph--link--regular' size={5} classNames='text-subdued' />
33
- <span className='grow'>{website}</span>
34
- <Icon icon='ph--arrow-square-out--regular' />
35
- </a>
36
- </Card.Chrome>
37
- )}
38
- {children}
39
- </Card.SurfaceRoot>
40
- );
41
- };
@@ -1,20 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import React from 'react';
6
-
7
- import { Card } from '@dxos/react-ui-stack';
8
- import { type DataType } from '@dxos/schema';
9
-
10
- import { type PreviewProps } from '../types';
11
-
12
- export const ProjectCard = ({ subject: { name, image, description }, role }: PreviewProps<DataType.Project>) => {
13
- return (
14
- <Card.SurfaceRoot role={role}>
15
- {image && <Card.Poster image={image} alt={name} aspect='auto' />}
16
- <Card.Heading>{name}</Card.Heading>
17
- {description && <Card.Text classNames='line-clamp-2'>{description}</Card.Text>}
18
- </Card.SurfaceRoot>
19
- );
20
- };
@@ -1,55 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- import '@dxos-theme';
6
-
7
- import { type Meta } from '@storybook/react-vite';
8
-
9
- import { withTheme, withLayout } from '@dxos/storybook-utils';
10
-
11
- import { type StoryProps, render } from './util';
12
- import { ContactCard, OrganizationCard, ProjectCard } from '../components';
13
- import { translations } from '../translations';
14
-
15
- const meta: Meta<StoryProps> = {
16
- title: 'Cards/plugin-preview/Extrinsic',
17
- render,
18
- decorators: [withTheme, withLayout()],
19
- parameters: {
20
- layout: 'centered',
21
- translations,
22
- },
23
- };
24
-
25
- export default meta;
26
-
27
- export const Contact = {
28
- args: {
29
- Component: ContactCard,
30
- icon: 'ph--user--regular',
31
- subject: 'contact',
32
- withImage: true,
33
- role: 'card--extrinsic',
34
- },
35
- };
36
-
37
- export const Organization = {
38
- args: {
39
- Component: OrganizationCard,
40
- icon: 'ph--building-office--regular',
41
- subject: 'organization',
42
- withImage: true,
43
- role: 'card--extrinsic',
44
- },
45
- };
46
-
47
- export const Project = {
48
- args: {
49
- Component: ProjectCard,
50
- icon: 'ph--building--regular',
51
- subject: 'project',
52
- withImage: true,
53
- role: 'card--extrinsic',
54
- },
55
- };
@@ -1,55 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- import '@dxos-theme';
6
-
7
- import { type Meta } from '@storybook/react-vite';
8
-
9
- import { withTheme, withLayout } from '@dxos/storybook-utils';
10
-
11
- import { type StoryProps, render } from './util';
12
- import { ContactCard, OrganizationCard, ProjectCard } from '../components';
13
- import { translations } from '../translations';
14
-
15
- const meta: Meta<StoryProps> = {
16
- title: 'Cards/plugin-preview/Intrinsic',
17
- render,
18
- decorators: [withTheme, withLayout()],
19
- parameters: {
20
- layout: 'centered',
21
- translations,
22
- },
23
- };
24
-
25
- export default meta;
26
-
27
- export const Contact = {
28
- args: {
29
- Component: ContactCard,
30
- icon: 'ph--user--regular',
31
- subject: 'contact',
32
- withImage: true,
33
- role: 'card--intrinsic',
34
- },
35
- };
36
-
37
- export const Organization = {
38
- args: {
39
- Component: OrganizationCard,
40
- icon: 'ph--building-office--regular',
41
- subject: 'organization',
42
- withImage: true,
43
- role: 'card--intrinsic',
44
- },
45
- };
46
-
47
- export const Project = {
48
- args: {
49
- Component: ProjectCard,
50
- icon: 'ph--building--regular',
51
- subject: 'project',
52
- withImage: true,
53
- role: 'card--intrinsic',
54
- },
55
- };
@@ -1,55 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- import '@dxos-theme';
6
-
7
- import { type Meta } from '@storybook/react-vite';
8
-
9
- import { withTheme, withLayout } from '@dxos/storybook-utils';
10
-
11
- import { type StoryProps, render } from './util';
12
- import { ContactCard, OrganizationCard, ProjectCard } from '../components';
13
- import { translations } from '../translations';
14
-
15
- const meta: Meta<StoryProps> = {
16
- title: 'Cards/plugin-preview/Popover',
17
- render,
18
- decorators: [withTheme, withLayout()],
19
- parameters: {
20
- layout: 'centered',
21
- translations,
22
- },
23
- };
24
-
25
- export default meta;
26
-
27
- export const Contact = {
28
- args: {
29
- Component: ContactCard,
30
- icon: 'ph--user--regular',
31
- subject: 'contact',
32
- withImage: true,
33
- role: 'card--popover',
34
- },
35
- };
36
-
37
- export const Organization = {
38
- args: {
39
- Component: OrganizationCard,
40
- icon: 'ph--building-office--regular',
41
- subject: 'organization',
42
- withImage: true,
43
- role: 'card--popover',
44
- },
45
- };
46
-
47
- export const Project = {
48
- args: {
49
- Component: ProjectCard,
50
- icon: 'ph--building--regular',
51
- subject: 'project',
52
- withImage: true,
53
- role: 'card--popover',
54
- },
55
- };
@@ -1,79 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import type { Meta } from '@storybook/react-vite';
6
- import React, { type FC } from 'react';
7
-
8
- import { Obj, Ref } from '@dxos/echo';
9
- import { faker } from '@dxos/random';
10
- import { CardContainer } from '@dxos/react-ui-stack/testing';
11
- import { DataType } from '@dxos/schema';
12
-
13
- import type { PreviewProps } from '../types';
14
-
15
- faker.seed(1234);
16
-
17
- export type StoryProps = {
18
- Component: FC<PreviewProps<any>>;
19
- icon?: string;
20
- withImage?: boolean;
21
- subject: 'project' | 'contact' | 'organization';
22
- role: 'card--popover' | 'card--intrinsic' | 'card--extrinsic' | 'card--transclusion';
23
- };
24
-
25
- export const render: Meta<StoryProps>['render'] = ({
26
- Component,
27
- icon = 'ph--placeholder--regular',
28
- role,
29
- withImage,
30
- subject,
31
- ...args
32
- }) => {
33
- return (
34
- <CardContainer icon={icon} role={role}>
35
- <Component {...args} subject={withImage ? data[subject] : omitImage(data[subject])} role={role} />
36
- </CardContainer>
37
- );
38
- };
39
-
40
- export const omitImage = ({ image, ...rest }: any) => rest;
41
-
42
- export const data = (() => {
43
- const organization = Obj.make(DataType.Organization, {
44
- name: faker.company.name(),
45
- image:
46
- 'https://plus.unsplash.com/premium_photo-1672116452571-896980a801c8?q=80&w=2671&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
47
- website: faker.internet.url(),
48
- description: faker.lorem.paragraph(),
49
- });
50
-
51
- const contact = Obj.make(DataType.Person, {
52
- fullName: faker.person.fullName(),
53
- image:
54
- 'https://plus.unsplash.com/premium_photo-1664536392779-049ba8fde933?q=80&w=2574&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
55
- organization: Ref.make(organization),
56
- emails: [
57
- {
58
- label: 'Work',
59
- value: faker.internet.email(),
60
- },
61
- {
62
- label: 'Work',
63
- value: faker.internet.email(),
64
- },
65
- {
66
- label: 'Work',
67
- value: faker.internet.email(),
68
- },
69
- ],
70
- });
71
-
72
- const project = Obj.make(DataType.Project, {
73
- name: faker.person.fullName(),
74
- image: 'https://dxos.network/dxos-logotype-blue.png',
75
- description: faker.lorem.paragraph(),
76
- });
77
-
78
- return { organization, contact, project };
79
- })();