@dxos/plugin-preview 0.8.4-main.72ec0f3 → 0.8.4-main.7996785055

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 (99) hide show
  1. package/dist/lib/browser/{chunk-CEWM5LJG.mjs → chunk-KLQDOIFV.mjs} +2 -2
  2. package/dist/lib/browser/chunk-KLQDOIFV.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +25 -34
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/preview-popover-DJSZSNMR.mjs +84 -0
  7. package/dist/lib/browser/preview-popover-DJSZSNMR.mjs.map +7 -0
  8. package/dist/lib/browser/react-surface-NGCGCRET.mjs +289 -0
  9. package/dist/lib/browser/react-surface-NGCGCRET.mjs.map +7 -0
  10. package/dist/lib/node-esm/{chunk-Q5MUNELK.mjs → chunk-GFWHEHC5.mjs} +2 -2
  11. package/dist/lib/node-esm/chunk-GFWHEHC5.mjs.map +7 -0
  12. package/dist/lib/node-esm/index.mjs +25 -34
  13. package/dist/lib/node-esm/index.mjs.map +4 -4
  14. package/dist/lib/node-esm/meta.json +1 -1
  15. package/dist/lib/node-esm/preview-popover-3YDUN7LB.mjs +86 -0
  16. package/dist/lib/node-esm/preview-popover-3YDUN7LB.mjs.map +7 -0
  17. package/dist/lib/node-esm/react-surface-RMCPID6L.mjs +290 -0
  18. package/dist/lib/node-esm/react-surface-RMCPID6L.mjs.map +7 -0
  19. package/dist/types/src/PreviewPlugin.d.ts +2 -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/index.d.ts +3 -0
  24. package/dist/types/src/capabilities/preview-popover/index.d.ts.map +1 -0
  25. package/dist/types/src/capabilities/preview-popover/preview-popover.d.ts +5 -0
  26. package/dist/types/src/capabilities/preview-popover/preview-popover.d.ts.map +1 -0
  27. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  28. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  29. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  30. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  31. package/dist/types/src/cards/FormCard.d.ts +7 -0
  32. package/dist/types/src/cards/FormCard.d.ts.map +1 -0
  33. package/dist/types/src/cards/JsonCard.d.ts +5 -0
  34. package/dist/types/src/cards/JsonCard.d.ts.map +1 -0
  35. package/dist/types/src/cards/OrganizationCard.d.ts +2 -2
  36. package/dist/types/src/cards/OrganizationCard.d.ts.map +1 -1
  37. package/dist/types/src/cards/PersonCard.d.ts +2 -2
  38. package/dist/types/src/cards/PersonCard.d.ts.map +1 -1
  39. package/dist/types/src/cards/ProjectCard.d.ts +3 -3
  40. package/dist/types/src/cards/ProjectCard.d.ts.map +1 -1
  41. package/dist/types/src/cards/TaskCard.d.ts +2 -2
  42. package/dist/types/src/cards/TaskCard.d.ts.map +1 -1
  43. package/dist/types/src/cards/index.d.ts +2 -0
  44. package/dist/types/src/cards/index.d.ts.map +1 -1
  45. package/dist/types/src/index.d.ts +0 -1
  46. package/dist/types/src/index.d.ts.map +1 -1
  47. package/dist/types/src/meta.d.ts +2 -2
  48. package/dist/types/src/meta.d.ts.map +1 -1
  49. package/dist/types/src/stories/Card.stories.d.ts +13 -6
  50. package/dist/types/src/stories/Card.stories.d.ts.map +1 -1
  51. package/dist/types/src/stories/testing.d.ts +13 -12
  52. package/dist/types/src/stories/testing.d.ts.map +1 -1
  53. package/dist/types/tsconfig.tsbuildinfo +1 -1
  54. package/package.json +45 -35
  55. package/src/PreviewPlugin.tsx +11 -22
  56. package/src/capabilities/index.ts +2 -4
  57. package/src/capabilities/preview-popover/index.ts +7 -0
  58. package/src/capabilities/preview-popover/preview-popover.ts +93 -0
  59. package/src/capabilities/react-surface/index.ts +7 -0
  60. package/src/capabilities/react-surface/react-surface.tsx +117 -0
  61. package/src/cards/FormCard.tsx +48 -0
  62. package/src/cards/JsonCard.tsx +16 -0
  63. package/src/cards/OrganizationCard.tsx +11 -16
  64. package/src/cards/PersonCard.tsx +51 -49
  65. package/src/cards/ProjectCard.tsx +9 -11
  66. package/src/cards/TaskCard.tsx +24 -26
  67. package/src/cards/index.ts +2 -0
  68. package/src/index.ts +0 -1
  69. package/src/meta.ts +3 -3
  70. package/src/stories/Card.stories.tsx +67 -21
  71. package/src/stories/testing.tsx +47 -70
  72. package/dist/lib/browser/chunk-CEWM5LJG.mjs.map +0 -7
  73. package/dist/lib/browser/preview-popover-IAPAEKZL.mjs +0 -65
  74. package/dist/lib/browser/preview-popover-IAPAEKZL.mjs.map +0 -7
  75. package/dist/lib/browser/react-surface-LRMZKOJS.mjs +0 -498
  76. package/dist/lib/browser/react-surface-LRMZKOJS.mjs.map +0 -7
  77. package/dist/lib/node-esm/chunk-Q5MUNELK.mjs.map +0 -7
  78. package/dist/lib/node-esm/preview-popover-CH2LDYWM.mjs +0 -67
  79. package/dist/lib/node-esm/preview-popover-CH2LDYWM.mjs.map +0 -7
  80. package/dist/lib/node-esm/react-surface-65UVGBIZ.mjs +0 -499
  81. package/dist/lib/node-esm/react-surface-65UVGBIZ.mjs.map +0 -7
  82. package/dist/types/src/capabilities/preview-popover.d.ts +0 -4
  83. package/dist/types/src/capabilities/preview-popover.d.ts.map +0 -1
  84. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  85. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  86. package/dist/types/src/components/CardComponents.d.ts +0 -16
  87. package/dist/types/src/components/CardComponents.d.ts.map +0 -1
  88. package/dist/types/src/components/CardSubjectMenu.d.ts +0 -8
  89. package/dist/types/src/components/CardSubjectMenu.d.ts.map +0 -1
  90. package/dist/types/src/components/index.d.ts +0 -3
  91. package/dist/types/src/components/index.d.ts.map +0 -1
  92. package/dist/types/src/types.d.ts +0 -12
  93. package/dist/types/src/types.d.ts.map +0 -1
  94. package/src/capabilities/preview-popover.ts +0 -69
  95. package/src/capabilities/react-surface.tsx +0 -157
  96. package/src/components/CardComponents.tsx +0 -67
  97. package/src/components/CardSubjectMenu.tsx +0 -103
  98. package/src/components/index.ts +0 -6
  99. package/src/types.ts +0 -29
@@ -0,0 +1,290 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ meta
4
+ } from "./chunk-GFWHEHC5.mjs";
5
+
6
+ // src/capabilities/react-surface/react-surface.tsx
7
+ import * as Effect2 from "effect/Effect";
8
+ import React7 from "react";
9
+ import { Capabilities, Capability } from "@dxos/app-framework";
10
+ import { Surface } from "@dxos/app-framework/ui";
11
+ import { Obj as Obj4 } from "@dxos/echo";
12
+ import { Card as Card7 } from "@dxos/react-ui";
13
+ import { Organization, Person, Pipeline, Task as Task2 } from "@dxos/types";
14
+
15
+ // src/cards/FormCard.tsx
16
+ import React, { useCallback, useMemo } from "react";
17
+ import { Obj } from "@dxos/echo";
18
+ import { splitJsonPath } from "@dxos/effect";
19
+ import { Card, useTranslation } from "@dxos/react-ui";
20
+ import { Form, omitId } from "@dxos/react-ui-form";
21
+ import { descriptionMessage, mx } from "@dxos/ui-theme";
22
+ var FormCard = ({ subject, projection }) => {
23
+ const { t } = useTranslation(meta.id);
24
+ const echoSchema = Obj.getSchema(subject);
25
+ const schema = useMemo(() => echoSchema && omitId(echoSchema), [
26
+ echoSchema
27
+ ]);
28
+ const handleSave = useCallback((values, { changed }) => {
29
+ const paths = Object.keys(changed).filter((path) => changed[path]);
30
+ Obj.change(subject, () => {
31
+ for (const path of paths) {
32
+ const value = values[path];
33
+ const parts = splitJsonPath(path);
34
+ Obj.setValue(subject, parts, value);
35
+ }
36
+ });
37
+ }, []);
38
+ if (!schema) {
39
+ return /* @__PURE__ */ React.createElement("p", {
40
+ className: mx(descriptionMessage)
41
+ }, t("unable to create preview message"));
42
+ }
43
+ return /* @__PURE__ */ React.createElement(Card.Content, null, /* @__PURE__ */ React.createElement(Form.Root, {
44
+ schema,
45
+ projection,
46
+ values: subject,
47
+ autoSave: true,
48
+ onSave: handleSave
49
+ }, /* @__PURE__ */ React.createElement(Form.Viewport, null, /* @__PURE__ */ React.createElement(Form.Content, null, /* @__PURE__ */ React.createElement(Form.FieldSet, null)))));
50
+ };
51
+
52
+ // src/cards/JsonCard.tsx
53
+ import React2 from "react";
54
+ import { Card as Card2 } from "@dxos/react-ui";
55
+ import { Json } from "@dxos/react-ui-syntax-highlighter";
56
+ var JsonCard = ({ data }) => {
57
+ return /* @__PURE__ */ React2.createElement(Card2.Content, null, /* @__PURE__ */ React2.createElement(Json, {
58
+ data
59
+ }));
60
+ };
61
+
62
+ // src/cards/OrganizationCard.tsx
63
+ import React3 from "react";
64
+ import { Card as Card3 } from "@dxos/react-ui";
65
+ var OrganizationCard = ({ subject }) => {
66
+ const { name, image, description, website } = subject;
67
+ return /* @__PURE__ */ React3.createElement(Card3.Content, null, /* @__PURE__ */ React3.createElement(Card3.Poster, {
68
+ alt: name ?? "",
69
+ ...image ? {
70
+ image
71
+ } : {
72
+ icon: "ph--building-office--regular"
73
+ },
74
+ classNames: !image && "opacity-50"
75
+ }), description && /* @__PURE__ */ React3.createElement(Card3.Row, null, /* @__PURE__ */ React3.createElement(Card3.Text, {
76
+ variant: "description"
77
+ }, description)), website && /* @__PURE__ */ React3.createElement(Card3.Link, {
78
+ label: website,
79
+ href: website
80
+ }));
81
+ };
82
+
83
+ // src/cards/PersonCard.tsx
84
+ import * as Effect from "effect/Effect";
85
+ import React4, { useCallback as useCallback2 } from "react";
86
+ import { useOperationInvoker } from "@dxos/app-framework/ui";
87
+ import { LayoutOperation, getObjectPathFromObject, getSpacePath } from "@dxos/app-toolkit";
88
+ import { Obj as Obj2 } from "@dxos/echo";
89
+ import { runAndForwardErrors } from "@dxos/effect";
90
+ import { Avatar } from "@dxos/react-ui";
91
+ import { Card as Card4 } from "@dxos/react-ui";
92
+ var PersonCard = ({ subject }) => {
93
+ const { invoke } = useOperationInvoker();
94
+ const { image, organization: { target: organization } = {}, emails = [] } = subject;
95
+ const handleOrganizationClick = useCallback2(() => {
96
+ if (!organization) {
97
+ return;
98
+ }
99
+ return Effect.gen(function* () {
100
+ const organizationPath = getObjectPathFromObject(organization);
101
+ const db = Obj2.getDatabase(organization);
102
+ yield* invoke(LayoutOperation.UpdatePopover, {
103
+ state: false,
104
+ anchorId: ""
105
+ });
106
+ yield* invoke(LayoutOperation.Open, {
107
+ subject: [
108
+ organizationPath
109
+ ],
110
+ workspace: db ? getSpacePath(db.spaceId) : void 0
111
+ });
112
+ }).pipe(runAndForwardErrors);
113
+ }, [
114
+ invoke,
115
+ organization
116
+ ]);
117
+ return /* @__PURE__ */ React4.createElement(Card4.Content, null, /* @__PURE__ */ React4.createElement(Avatar.Root, null, image && /* @__PURE__ */ React4.createElement(Card4.Row, {
118
+ className: "py-1"
119
+ }, /* @__PURE__ */ React4.createElement(Avatar.Content, {
120
+ imgSrc: image,
121
+ icon: "ph--user--regular",
122
+ size: 20,
123
+ classNames: !image && "opacity-50",
124
+ hue: "neutral",
125
+ variant: "square"
126
+ })), organization?.name && /* @__PURE__ */ React4.createElement(Card4.Action, {
127
+ icon: "ph--buildings--regular",
128
+ label: organization.name,
129
+ onClick: handleOrganizationClick
130
+ }), emails.map(({ value }) => /* @__PURE__ */ React4.createElement(Card4.Row, {
131
+ key: value,
132
+ icon: "ph--at--regular"
133
+ }, /* @__PURE__ */ React4.createElement(Card4.Text, {
134
+ truncate: true,
135
+ className: "text-primary-text"
136
+ }, value)))));
137
+ };
138
+
139
+ // src/cards/ProjectCard.tsx
140
+ import React5 from "react";
141
+ import { Obj as Obj3 } from "@dxos/echo";
142
+ import { Card as Card5 } from "@dxos/react-ui";
143
+ var ProjectCard = ({ subject }) => {
144
+ const { image, description } = subject;
145
+ return /* @__PURE__ */ React5.createElement(Card5.Content, null, image && /* @__PURE__ */ React5.createElement(Card5.Poster, {
146
+ image,
147
+ alt: Obj3.getLabel(subject) ?? "",
148
+ aspect: "auto"
149
+ }), description && /* @__PURE__ */ React5.createElement(Card5.Text, {
150
+ variant: "description"
151
+ }, description));
152
+ };
153
+
154
+ // src/cards/TaskCard.tsx
155
+ import * as SchemaAST from "effect/SchemaAST";
156
+ import React6 from "react";
157
+ import { PropertyMetaAnnotationId } from "@dxos/echo/internal";
158
+ import { Card as Card6 } from "@dxos/react-ui";
159
+ import { Task } from "@dxos/types";
160
+ var TaskCard = ({ subject }) => {
161
+ const { title, status } = subject;
162
+ const statusOption = getActiveStatusOption(status);
163
+ return /* @__PURE__ */ React6.createElement(Card6.Content, null, /* @__PURE__ */ React6.createElement(Card6.Row, null, statusOption && /* @__PURE__ */ React6.createElement("div", null, /* @__PURE__ */ React6.createElement("span", {
164
+ className: "dx-tag",
165
+ "data-hue": statusOption.color
166
+ }, statusOption.title))));
167
+ };
168
+ var getActiveStatusOption = (status) => {
169
+ const properties = SchemaAST.getPropertySignatures(Task.Task.ast);
170
+ const statusProperty = properties.find((p) => p.name === "status");
171
+ const statusMeta = SchemaAST.getAnnotation(PropertyMetaAnnotationId)(statusProperty.type.types[0]);
172
+ const options = statusMeta.value.singleSelect.options;
173
+ return options.find(({ id }) => id === status);
174
+ };
175
+
176
+ // src/capabilities/react-surface/react-surface.tsx
177
+ var react_surface_default = Capability.makeModule(() => Effect2.succeed(Capability.contributes(Capabilities.ReactSurface, [
178
+ //
179
+ // Specific schema types.
180
+ // TODO(burdon): Create helpers and factor out.
181
+ //
182
+ Surface.create({
183
+ id: `${meta.id}.schema-popover--contact`,
184
+ role: "card--content",
185
+ position: "hoist",
186
+ filter: (data) => Obj4.instanceOf(Person.Person, data.subject),
187
+ component: ({ data, role }) => {
188
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(PersonCard, {
189
+ role,
190
+ subject: data.subject
191
+ }), /* @__PURE__ */ React7.createElement(Surface.Surface, {
192
+ role: "related",
193
+ data,
194
+ limit: 1
195
+ }));
196
+ }
197
+ }),
198
+ Surface.create({
199
+ id: `${meta.id}.schema-popover--organization`,
200
+ role: "card--content",
201
+ position: "hoist",
202
+ filter: (data) => Obj4.instanceOf(Organization.Organization, data.subject),
203
+ component: ({ data, role }) => {
204
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(OrganizationCard, {
205
+ role,
206
+ subject: data.subject
207
+ }), /* @__PURE__ */ React7.createElement(Surface.Surface, {
208
+ role: "related",
209
+ data,
210
+ limit: 1
211
+ }));
212
+ }
213
+ }),
214
+ Surface.create({
215
+ id: `${meta.id}.schema-popover--project`,
216
+ role: "card--content",
217
+ position: "hoist",
218
+ filter: (data) => Obj4.instanceOf(Pipeline.Pipeline, data.subject),
219
+ component: ({ data, role }) => {
220
+ return /* @__PURE__ */ React7.createElement(ProjectCard, {
221
+ role,
222
+ subject: data.subject
223
+ });
224
+ }
225
+ }),
226
+ Surface.create({
227
+ id: `${meta.id}.schema-popover--task`,
228
+ role: "card--content",
229
+ position: "hoist",
230
+ filter: (data) => Obj4.instanceOf(Task2.Task, data.subject),
231
+ component: ({ data, role }) => {
232
+ return /* @__PURE__ */ React7.createElement(TaskCard, {
233
+ role,
234
+ subject: data.subject
235
+ });
236
+ }
237
+ }),
238
+ //
239
+ // Fallback for any object.
240
+ //
241
+ Surface.create({
242
+ id: `${meta.id}.fallback-popover`,
243
+ role: "card--content",
244
+ position: "fallback",
245
+ filter: (data) => Obj4.isObject(data.subject),
246
+ component: ({ data, role }) => {
247
+ return /* @__PURE__ */ React7.createElement(FormCard, {
248
+ role,
249
+ subject: data.subject,
250
+ projection: data.projection
251
+ });
252
+ }
253
+ }),
254
+ Surface.create({
255
+ id: `${meta.id}.fallback-json`,
256
+ role: "card--content",
257
+ position: "fallback",
258
+ filter: (data) => true,
259
+ component: ({ data }) => {
260
+ return /* @__PURE__ */ React7.createElement(JsonCard, {
261
+ data
262
+ });
263
+ }
264
+ }),
265
+ Surface.create({
266
+ id: `${meta.id}.section`,
267
+ role: [
268
+ "section"
269
+ ],
270
+ position: "fallback",
271
+ filter: (data) => Obj4.isObject(data.subject),
272
+ component: ({ data }) => {
273
+ return /* @__PURE__ */ React7.createElement("div", {
274
+ role: "none",
275
+ className: "flex w-full justify-center"
276
+ }, /* @__PURE__ */ React7.createElement("div", {
277
+ role: "none",
278
+ className: "pt-2 pb-2 dx-card-min-width dx-card-max-width"
279
+ }, /* @__PURE__ */ React7.createElement(Card7.Root, null, /* @__PURE__ */ React7.createElement(Surface.Surface, {
280
+ role: "card--content",
281
+ data,
282
+ limit: 1
283
+ }))));
284
+ }
285
+ })
286
+ ])));
287
+ export {
288
+ react_surface_default as default
289
+ };
290
+ //# sourceMappingURL=react-surface-RMCPID6L.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/cards/FormCard.tsx", "../../../src/cards/JsonCard.tsx", "../../../src/cards/OrganizationCard.tsx", "../../../src/cards/PersonCard.tsx", "../../../src/cards/ProjectCard.tsx", "../../../src/cards/TaskCard.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { Obj } from '@dxos/echo';\nimport { Card } from '@dxos/react-ui';\nimport { type ProjectionModel } from '@dxos/schema';\nimport { Organization, Person, Pipeline, Task } from '@dxos/types';\n\nimport { FormCard, JsonCard, OrganizationCard, PersonCard, ProjectCard, TaskCard } from '../../cards';\nimport { meta } from '../../meta';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n //\n // Specific schema types.\n // TODO(burdon): Create helpers and factor out.\n //\n\n Surface.create<{ subject: Person.Person }>({\n id: `${meta.id}.schema-popover--contact`,\n role: 'card--content',\n position: 'hoist',\n filter: (data): data is { subject: Person.Person } => Obj.instanceOf(Person.Person, data.subject),\n component: ({ data, role }) => {\n return (\n <>\n <PersonCard role={role} subject={data.subject} />\n <Surface.Surface role='related' data={data} limit={1} />\n </>\n );\n },\n }),\n Surface.create({\n id: `${meta.id}.schema-popover--organization`,\n role: 'card--content',\n position: 'hoist',\n filter: (data): data is { subject: Organization.Organization } =>\n Obj.instanceOf(Organization.Organization, data.subject),\n component: ({ data, role }) => {\n return (\n <>\n <OrganizationCard role={role} subject={data.subject} />\n <Surface.Surface role='related' data={data} limit={1} />\n </>\n );\n },\n }),\n Surface.create({\n id: `${meta.id}.schema-popover--project`,\n role: 'card--content',\n position: 'hoist',\n filter: (data): data is { subject: Pipeline.Pipeline } => Obj.instanceOf(Pipeline.Pipeline, data.subject),\n component: ({ data, role }) => {\n return <ProjectCard role={role} subject={data.subject} />;\n },\n }),\n Surface.create({\n id: `${meta.id}.schema-popover--task`,\n role: 'card--content',\n position: 'hoist',\n filter: (data): data is { subject: Task.Task } => Obj.instanceOf(Task.Task, data.subject),\n component: ({ data, role }) => {\n return <TaskCard role={role} subject={data.subject} />;\n },\n }),\n\n //\n // Fallback for any object.\n //\n\n Surface.create({\n id: `${meta.id}.fallback-popover`,\n role: 'card--content',\n position: 'fallback',\n filter: (data): data is { subject: Obj.Unknown; projection?: ProjectionModel } => Obj.isObject(data.subject),\n component: ({ data, role }) => {\n return <FormCard role={role} subject={data.subject} projection={data.projection} />;\n },\n }),\n\n Surface.create({\n id: `${meta.id}.fallback-json`,\n role: 'card--content',\n position: 'fallback',\n filter: (data): data is Record<string, unknown> => true,\n component: ({ data }) => {\n return <JsonCard data={data} />;\n },\n }),\n\n Surface.create({\n id: `${meta.id}.section`,\n role: ['section'],\n position: 'fallback',\n filter: (data): data is { subject: Obj.Unknown } => Obj.isObject(data.subject),\n component: ({ data }) => {\n return (\n <div role='none' className='flex w-full justify-center'>\n <div role='none' className='pt-2 pb-2 dx-card-min-width dx-card-max-width'>\n <Card.Root>\n <Surface.Surface role='card--content' data={data} limit={1} />\n </Card.Root>\n </div>\n </div>\n );\n },\n }),\n ]),\n ),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useCallback, useMemo } from 'react';\n\nimport { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';\nimport { Obj } from '@dxos/echo';\nimport { type JsonPath, splitJsonPath } from '@dxos/effect';\nimport { Card, useTranslation } from '@dxos/react-ui';\nimport { Form, omitId } from '@dxos/react-ui-form';\nimport { type ProjectionModel } from '@dxos/schema';\nimport { descriptionMessage, mx } from '@dxos/ui-theme';\n\nimport { meta } from '../meta';\n\nexport const FormCard = ({ subject, projection }: SurfaceComponentProps & { projection?: ProjectionModel }) => {\n const { t } = useTranslation(meta.id);\n const echoSchema = Obj.getSchema(subject);\n const schema = useMemo(() => echoSchema && omitId(echoSchema), [echoSchema]);\n\n const handleSave = useCallback((values: any, { changed }: { changed: Record<string, boolean> }) => {\n const paths = Object.keys(changed).filter((path) => changed[path]);\n Obj.change(subject, () => {\n for (const path of paths) {\n const value = values[path];\n const parts = splitJsonPath(path as JsonPath);\n Obj.setValue(subject, parts, value);\n }\n });\n }, []);\n\n if (!schema) {\n return <p className={mx(descriptionMessage)}>{t('unable to create preview message')}</p>;\n }\n\n return (\n <Card.Content>\n <Form.Root schema={schema} projection={projection} values={subject} autoSave onSave={handleSave}>\n <Form.Viewport>\n <Form.Content>\n <Form.FieldSet />\n </Form.Content>\n </Form.Viewport>\n </Form.Root>\n </Card.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Card } from '@dxos/react-ui';\nimport { Json } from '@dxos/react-ui-syntax-highlighter';\n\nexport const JsonCard = ({ data }: { data: unknown }) => {\n return (\n <Card.Content>\n <Json data={data} />\n </Card.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';\nimport { Card } from '@dxos/react-ui';\nimport { type Organization } from '@dxos/types';\n\nexport const OrganizationCard = ({ subject }: SurfaceComponentProps<Organization.Organization>) => {\n const { name, image, description, website } = subject;\n\n return (\n <Card.Content>\n <Card.Poster\n alt={name ?? ''}\n {...(image ? { image } : { icon: 'ph--building-office--regular' })}\n classNames={!image && 'opacity-50'}\n />\n {description && (\n <Card.Row>\n <Card.Text variant='description'>{description}</Card.Text>\n </Card.Row>\n )}\n {website && <Card.Link label={website} href={website} />}\n </Card.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { useCallback } from 'react';\n\nimport { useOperationInvoker } from '@dxos/app-framework/ui';\nimport { LayoutOperation, getObjectPathFromObject, getSpacePath } from '@dxos/app-toolkit';\nimport { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';\nimport { Obj } from '@dxos/echo';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { Avatar } from '@dxos/react-ui';\nimport { Card } from '@dxos/react-ui';\nimport { type Person } from '@dxos/types';\n\nexport const PersonCard = ({ subject }: SurfaceComponentProps<Person.Person>) => {\n const { invoke } = useOperationInvoker();\n const { image, organization: { target: organization } = {}, emails = [] } = subject;\n\n const handleOrganizationClick = useCallback(() => {\n if (!organization) {\n return;\n }\n\n return Effect.gen(function* () {\n const organizationPath = getObjectPathFromObject(organization);\n const db = Obj.getDatabase(organization);\n yield* invoke(LayoutOperation.UpdatePopover, { state: false, anchorId: '' });\n yield* invoke(LayoutOperation.Open, {\n subject: [organizationPath],\n workspace: db ? getSpacePath(db.spaceId) : undefined,\n });\n }).pipe(runAndForwardErrors);\n }, [invoke, organization]);\n\n return (\n <Card.Content>\n <Avatar.Root>\n {image && (\n <Card.Row className='py-1'>\n <Avatar.Content\n imgSrc={image}\n icon='ph--user--regular'\n size={20}\n classNames={!image && 'opacity-50'}\n hue='neutral'\n variant='square'\n />\n </Card.Row>\n )}\n {organization?.name && (\n <Card.Action icon='ph--buildings--regular' label={organization.name} onClick={handleOrganizationClick} />\n )}\n {emails.map(({ value }) => (\n <Card.Row key={value} icon='ph--at--regular'>\n <Card.Text truncate className='text-primary-text'>\n {value}\n </Card.Text>\n </Card.Row>\n ))}\n </Avatar.Root>\n </Card.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';\nimport { Obj } from '@dxos/echo';\nimport { Card } from '@dxos/react-ui';\nimport { type Pipeline } from '@dxos/types';\n\nexport const ProjectCard = ({ subject }: SurfaceComponentProps<Pipeline.Pipeline>) => {\n const { image, description } = subject;\n\n return (\n <Card.Content>\n {image && <Card.Poster image={image} alt={Obj.getLabel(subject) ?? ''} aspect='auto' />}\n {/* <CardHeader label={name} subject={subject} db={db} /> */}\n {description && <Card.Text variant='description'>{description}</Card.Text>}\n </Card.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as SchemaAST from 'effect/SchemaAST';\nimport React from 'react';\n\nimport { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';\nimport { type PropertyMetaAnnotation, PropertyMetaAnnotationId } from '@dxos/echo/internal';\nimport { Card } from '@dxos/react-ui';\nimport { Task } from '@dxos/types';\n\nexport const TaskCard = ({ subject }: SurfaceComponentProps<Task.Task>) => {\n const { title, status } = subject;\n const statusOption = getActiveStatusOption(status);\n\n return (\n <Card.Content>\n <Card.Row>\n {statusOption && (\n <div>\n <span className='dx-tag' data-hue={statusOption.color}>\n {statusOption.title}\n </span>\n </div>\n )}\n </Card.Row>\n </Card.Content>\n );\n};\n\n// TODO(thure): Should this move upstream as a helper? Is there an easier way to get options?\nconst getActiveStatusOption = (status?: string) => {\n const properties = SchemaAST.getPropertySignatures(Task.Task.ast);\n const statusProperty = properties.find((p) => p.name === 'status');\n // TODO(thure): Typescript asserts `.type` doesn’t have `.types`, but in runtime it does.\n const statusMeta = SchemaAST.getAnnotation<PropertyMetaAnnotation>(PropertyMetaAnnotationId)(\n (statusProperty!.type as any).types[0],\n );\n\n // TODO(thure): Typescript asserts `statusMeta` doesn’t have `.value`, but in runtime it does.\n const options = (statusMeta as any).value.singleSelect.options as { id: string; title: string; color: string }[];\n return options.find(({ id }) => id === status);\n};\n"],
5
+ "mappings": ";;;;;;AAIA,YAAYA,aAAY;AACxB,OAAOC,YAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,OAAAA,YAAW;AACpB,SAASC,QAAAA,aAAY;AAErB,SAASC,cAAcC,QAAQC,UAAUC,QAAAA,aAAY;;;ACRrD,OAAOC,SAASC,aAAaC,eAAe;AAG5C,SAASC,WAAW;AACpB,SAAwBC,qBAAqB;AAC7C,SAASC,MAAMC,sBAAsB;AACrC,SAASC,MAAMC,cAAc;AAE7B,SAASC,oBAAoBC,UAAU;AAIhC,IAAMC,WAAW,CAAC,EAAEC,SAASC,WAAU,MAA4D;AACxG,QAAM,EAAEC,EAAC,IAAKC,eAAeC,KAAKC,EAAE;AACpC,QAAMC,aAAaC,IAAIC,UAAUR,OAAAA;AACjC,QAAMS,SAASC,QAAQ,MAAMJ,cAAcK,OAAOL,UAAAA,GAAa;IAACA;GAAW;AAE3E,QAAMM,aAAaC,YAAY,CAACC,QAAa,EAAEC,QAAO,MAAwC;AAC5F,UAAMC,QAAQC,OAAOC,KAAKH,OAAAA,EAASI,OAAO,CAACC,SAASL,QAAQK,IAAAA,CAAK;AACjEb,QAAIc,OAAOrB,SAAS,MAAA;AAClB,iBAAWoB,QAAQJ,OAAO;AACxB,cAAMM,QAAQR,OAAOM,IAAAA;AACrB,cAAMG,QAAQC,cAAcJ,IAAAA;AAC5Bb,YAAIkB,SAASzB,SAASuB,OAAOD,KAAAA;MAC/B;IACF,CAAA;EACF,GAAG,CAAA,CAAE;AAEL,MAAI,CAACb,QAAQ;AACX,WAAO,sBAAA,cAACiB,KAAAA;MAAEC,WAAWC,GAAGC,kBAAAA;OAAsB3B,EAAE,kCA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"Organization", "Person", "Pipeline", "Task", "React", "useCallback", "useMemo", "Obj", "splitJsonPath", "Card", "useTranslation", "Form", "omitId", "descriptionMessage", "mx", "FormCard", "subject", "projection", "t", "useTranslation", "meta", "id", "echoSchema", "Obj", "getSchema", "schema", "useMemo", "omitId", "handleSave", "useCallback", "values", "changed", "paths", "Object", "keys", "filter", "path", "change", "value", "parts", "splitJsonPath", "setValue", "p", "className", "mx", "descriptionMessage", "Card", "Content", "Form", "Root", "autoSave", "onSave", "Viewport", "FieldSet", "React", "Card", "Json", "JsonCard", "data", "React", "Card", "Content", "Json", "React", "Card", "OrganizationCard", "subject", "name", "image", "description", "website", "React", "Card", "Content", "Poster", "alt", "icon", "classNames", "Row", "Text", "variant", "Link", "label", "href", "Effect", "React", "useCallback", "useOperationInvoker", "LayoutOperation", "getObjectPathFromObject", "getSpacePath", "Obj", "runAndForwardErrors", "Avatar", "Card", "PersonCard", "subject", "invoke", "useOperationInvoker", "image", "organization", "target", "emails", "handleOrganizationClick", "useCallback", "gen", "organizationPath", "getObjectPathFromObject", "db", "Obj", "getDatabase", "LayoutOperation", "UpdatePopover", "state", "anchorId", "Open", "workspace", "getSpacePath", "spaceId", "undefined", "pipe", "runAndForwardErrors", "React", "Card", "Content", "Avatar", "Root", "Row", "className", "imgSrc", "icon", "size", "classNames", "hue", "variant", "name", "Action", "label", "onClick", "map", "value", "key", "Text", "truncate", "React", "Obj", "Card", "ProjectCard", "subject", "image", "description", "React", "Card", "Content", "Poster", "alt", "Obj", "getLabel", "aspect", "Text", "variant", "SchemaAST", "React", "PropertyMetaAnnotationId", "Card", "Task", "TaskCard", "subject", "title", "status", "statusOption", "getActiveStatusOption", "React", "Card", "Content", "Row", "div", "span", "className", "data-hue", "color", "properties", "getPropertySignatures", "Task", "ast", "statusProperty", "find", "p", "name", "statusMeta", "getAnnotation", "PropertyMetaAnnotationId", "type", "types", "options", "value", "singleSelect", "id", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "meta", "role", "position", "filter", "data", "Obj", "instanceOf", "Person", "subject", "component", "React", "PersonCard", "limit", "Organization", "OrganizationCard", "Pipeline", "ProjectCard", "Task", "TaskCard", "isObject", "FormCard", "projection", "JsonCard", "div", "className", "Card", "Root"]
7
+ }
@@ -1,2 +1,3 @@
1
- export declare const PreviewPlugin: import("@dxos/app-framework").PluginFactory<void>;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const PreviewPlugin: Plugin.PluginFactory<void>;
2
3
  //# sourceMappingURL=PreviewPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreviewPlugin.d.ts","sourceRoot":"","sources":["../../../src/PreviewPlugin.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa,mDAqBxB,CAAC"}
1
+ {"version":3,"file":"PreviewPlugin.d.ts","sourceRoot":"","sources":["../../../src/PreviewPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAoB,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQ/D,eAAO,MAAM,aAAa,4BAUzB,CAAC"}
@@ -1,3 +1,3 @@
1
- export declare const PreviewPopover: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<null>> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.ReactSurface>> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ export * from './preview-popover';
2
+ export * from './react-surface';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,yOAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,4OAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const PreviewPopover: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/preview-popover/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,cAAc,8FAAuE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, never, Capability.Service>;
4
+ export default _default;
5
+ //# sourceMappingURL=preview-popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-popover.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/preview-popover/preview-popover.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AA2B/D,wBA2DE"}
@@ -0,0 +1,3 @@
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=react-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAU/D,wBAmGE"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
3
+ import { type ProjectionModel } from '@dxos/schema';
4
+ export declare const FormCard: ({ subject, projection }: SurfaceComponentProps & {
5
+ projection?: ProjectionModel;
6
+ }) => React.JSX.Element;
7
+ //# sourceMappingURL=FormCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/FormCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAKlE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,eAAO,MAAM,QAAQ,GAAI,yBAAyB,qBAAqB,GAAG;IAAE,UAAU,CAAC,EAAE,eAAe,CAAA;CAAE,sBA+BzG,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const JsonCard: ({ data }: {
3
+ data: unknown;
4
+ }) => React.JSX.Element;
5
+ //# sourceMappingURL=JsonCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JsonCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/JsonCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,QAAQ,GAAI,UAAU;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,sBAMnD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
+ import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
2
3
  import { type Organization } from '@dxos/types';
3
- import { type CardPreviewProps } from '../types';
4
- export declare const OrganizationCard: ({ children, subject, role, activeSpace, }: CardPreviewProps<Organization.Organization>) => React.JSX.Element;
4
+ export declare const OrganizationCard: ({ subject }: SurfaceComponentProps<Organization.Organization>) => React.JSX.Element;
5
5
  //# sourceMappingURL=OrganizationCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OrganizationCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/OrganizationCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,gBAAgB,GAAI,2CAK9B,gBAAgB,CAAC,YAAY,CAAC,YAAY,CAAC,sBAgB7C,CAAC"}
1
+ {"version":3,"file":"OrganizationCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/OrganizationCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,gBAAgB,GAAI,aAAa,qBAAqB,CAAC,YAAY,CAAC,YAAY,CAAC,sBAkB7F,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
+ import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
2
3
  import { type Person } from '@dxos/types';
3
- import { type CardPreviewProps } from '../types';
4
- export declare const PersonCard: ({ children, role, subject, activeSpace, onSelect }: CardPreviewProps<Person.Person>) => React.JSX.Element;
4
+ export declare const PersonCard: ({ subject }: SurfaceComponentProps<Person.Person>) => React.JSX.Element;
5
5
  //# sourceMappingURL=PersonCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PersonCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/PersonCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,UAAU,GAAI,oDAAoD,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,sBAgD7G,CAAC"}
1
+ {"version":3,"file":"PersonCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/PersonCard.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAKlE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,UAAU,GAAI,aAAa,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,sBAgD3E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type Project } from '@dxos/types';
3
- import { type CardPreviewProps } from '../types';
4
- export declare const ProjectCard: ({ subject, role, activeSpace }: CardPreviewProps<Project.Project>) => React.JSX.Element;
2
+ import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
3
+ import { type Pipeline } from '@dxos/types';
4
+ export declare const ProjectCard: ({ subject }: SurfaceComponentProps<Pipeline.Pipeline>) => React.JSX.Element;
5
5
  //# sourceMappingURL=ProjectCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/ProjectCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,WAAW,GAAI,gCAAgC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,sBAU5F,CAAC"}
1
+ {"version":3,"file":"ProjectCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/ProjectCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGlE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,eAAO,MAAM,WAAW,GAAI,aAAa,qBAAqB,CAAC,QAAQ,CAAC,QAAQ,CAAC,sBAUhF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
+ import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
2
3
  import { Task } from '@dxos/types';
3
- import { type CardPreviewProps } from '../types';
4
- export declare const TaskCard: ({ subject, role, activeSpace }: CardPreviewProps<Task.Task>) => React.JSX.Element;
4
+ export declare const TaskCard: ({ subject }: SurfaceComponentProps<Task.Task>) => React.JSX.Element;
5
5
  //# sourceMappingURL=TaskCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/TaskCard.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAejD,eAAO,MAAM,QAAQ,GAAI,gCAAgC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,sBAiBnF,CAAC"}
1
+ {"version":3,"file":"TaskCard.d.ts","sourceRoot":"","sources":["../../../../src/cards/TaskCard.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGlE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,eAAO,MAAM,QAAQ,GAAI,aAAa,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,sBAiBrE,CAAC"}
@@ -1,3 +1,5 @@
1
+ export * from './FormCard';
2
+ export * from './JsonCard';
1
3
  export * from './OrganizationCard';
2
4
  export * from './PersonCard';
3
5
  export * from './ProjectCard';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cards/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cards/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export * from './meta';
2
- export type * from './types';
3
2
  export * from './PreviewPlugin';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,mBAAmB,SAAS,CAAC;AAE7B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AAEvB,cAAc,iBAAiB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const meta: PluginMeta;
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const meta: Plugin.Meta;
3
3
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,eAAO,MAAM,IAAI,EAAE,UASlB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IASzB,CAAC"}
@@ -1,9 +1,13 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ import { type Organization, type Person, type Pipeline, type Task } from '@dxos/types';
4
+ import { DefaultStory } from './testing';
2
5
  declare const meta: {
3
6
  title: string;
4
- render: ({ role, cards }: import("./testing").DefaultstoryProps) => import("react").JSX.Element;
7
+ render: <T extends import("@dxos/echo/Obj").Any>({ Component, createObject, image }: import("./testing").DefaultStoryProps<T>) => React.JSX.Element;
5
8
  decorators: import("@storybook/react").Decorator[];
6
9
  parameters: {
10
+ layout: string;
7
11
  translations: [{
8
12
  readonly 'en-US': {
9
13
  readonly [meta.id]: {
@@ -21,9 +25,12 @@ declare const meta: {
21
25
  tags: string[];
22
26
  };
23
27
  export default meta;
24
- type Story = StoryObj<typeof meta>;
25
- export declare const Popover: Story;
26
- export declare const Intrinsic: Story;
27
- export declare const Extrinsic: Story;
28
- export declare const ExtrinsicNoImage: Story;
28
+ export declare const _Form: StoryObj<typeof DefaultStory<Person.Person>>;
29
+ export declare const _Person: StoryObj<typeof DefaultStory<Person.Person>>;
30
+ export declare const _Organization: StoryObj<typeof DefaultStory<Organization.Organization>>;
31
+ export declare const _Project: StoryObj<typeof DefaultStory<Pipeline.Pipeline>>;
32
+ export declare const _Task: StoryObj<typeof DefaultStory<Task.Task>>;
33
+ export declare const _Json: {
34
+ render: () => React.JSX.Element;
35
+ };
29
36
  //# sourceMappingURL=Card.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Card.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAajE,QAAA,MAAM,IAAI;;;;;;;yBAVA,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;CAsBW,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAK9B,CAAC"}
1
+ {"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Card.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAKvF,OAAO,EAAE,YAAY,EAA+D,MAAM,WAAW,CAAC;AAItG,QAAA,MAAM,IAAI;;;;;;;;yBAdyB,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;CA2Bd,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,OAAO,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAM9D,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAMhE,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,OAAO,YAAY,CAAC,YAAY,CAAC,YAAY,CAAC,CAMlF,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,OAAO,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAMrE,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,OAAO,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAM1D,CAAC;AAEF,eAAO,MAAM,KAAK;;CA6BjB,CAAC"}
@@ -1,18 +1,19 @@
1
1
  import React, { type FC } from 'react';
2
+ import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
2
3
  import { Obj } from '@dxos/echo';
3
- import { type CardPreviewProps } from '../types';
4
- type CardProps<T extends Obj.Any> = {
5
- Component: FC<CardPreviewProps<T>>;
6
- subject: T;
7
- icon?: string;
4
+ import { Organization, Person, Pipeline, Task } from '@dxos/types';
5
+ export type DefaultStoryProps<T extends Obj.Any> = {
6
+ Component: FC<SurfaceComponentProps<T>>;
7
+ createObject: () => T;
8
8
  image?: boolean;
9
9
  };
10
- export type DefaultstoryProps = {
11
- role: 'card--popover' | 'card--intrinsic' | 'card--extrinsic' | 'card--transclusion';
12
- cards: CardProps<any>[];
13
- };
14
- export declare const Defaultstory: ({ role, cards }: DefaultstoryProps) => React.JSX.Element;
10
+ export declare const DefaultStory: <T extends Obj.Any>({ Component, createObject, image }: DefaultStoryProps<T>) => React.JSX.Element;
15
11
  export declare const omitImage: ({ image: _, ...rest }: any) => any;
16
- export declare const createCards: (image?: boolean) => CardProps<any>[];
17
- export {};
12
+ /**
13
+ * Factory functions for creating test objects at render time.
14
+ */
15
+ export declare const createOrganization: () => Organization.Organization;
16
+ export declare const createPerson: () => Person.Person;
17
+ export declare const createProject: () => Pipeline.Pipeline;
18
+ export declare const createTask: () => Task.Task;
18
19
  //# sourceMappingURL=testing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/stories/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,GAAG,EAAO,MAAM,YAAY,CAAC;AAOtC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,KAAK,SAAS,CAAC,CAAC,SAAS,GAAG,CAAC,GAAG,IAAI;IAClC,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;IACrF,KAAK,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,iBAAiB,iBAAiB,sBAc9D,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,uBAAuB,GAAG,QAAS,CAAC;AAG9D,eAAO,MAAM,WAAW,GAAI,eAAY,KAAG,SAAS,CAAC,GAAG,CAAC,EAmExD,CAAC"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/stories/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO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