@dxos/plugin-space 0.7.4 → 0.7.5-main.9cb18ac

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 (120) hide show
  1. package/dist/lib/browser/chunk-54VE4GTA.mjs +315 -0
  2. package/dist/lib/browser/chunk-54VE4GTA.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-73BCBSLP.mjs +15 -0
  4. package/dist/lib/browser/chunk-73BCBSLP.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +928 -962
  6. package/dist/lib/browser/index.mjs.map +4 -4
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/meta.mjs +1 -5
  9. package/dist/lib/browser/types/index.mjs +8 -1
  10. package/dist/lib/node/chunk-46S3JOES.cjs +39 -0
  11. package/dist/lib/node/chunk-46S3JOES.cjs.map +7 -0
  12. package/dist/lib/node/chunk-YF2AQ7KP.cjs +343 -0
  13. package/dist/lib/node/chunk-YF2AQ7KP.cjs.map +7 -0
  14. package/dist/lib/node/index.cjs +1053 -1086
  15. package/dist/lib/node/index.cjs.map +4 -4
  16. package/dist/lib/node/meta.cjs +5 -9
  17. package/dist/lib/node/meta.cjs.map +2 -2
  18. package/dist/lib/node/meta.json +1 -1
  19. package/dist/lib/node/types/index.cjs +19 -12
  20. package/dist/lib/node/types/index.cjs.map +2 -2
  21. package/dist/lib/node-esm/chunk-2MNFEB23.mjs +17 -0
  22. package/dist/lib/node-esm/chunk-2MNFEB23.mjs.map +7 -0
  23. package/dist/lib/node-esm/chunk-CDZETPO7.mjs +316 -0
  24. package/dist/lib/node-esm/chunk-CDZETPO7.mjs.map +7 -0
  25. package/dist/lib/node-esm/index.mjs +928 -962
  26. package/dist/lib/node-esm/index.mjs.map +4 -4
  27. package/dist/lib/node-esm/meta.json +1 -1
  28. package/dist/lib/node-esm/meta.mjs +1 -5
  29. package/dist/lib/node-esm/types/index.mjs +8 -1
  30. package/dist/types/src/SpacePlugin.d.ts +2 -2
  31. package/dist/types/src/SpacePlugin.d.ts.map +1 -1
  32. package/dist/types/src/components/AwaitingObject.d.ts.map +1 -1
  33. package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts +4 -2
  34. package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts.map +1 -1
  35. package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts +3 -3
  36. package/dist/types/src/components/CreateDialog/CreateObjectPanel.d.ts.map +1 -1
  37. package/dist/types/src/components/CreateDialog/CreateSpaceDialog.d.ts +1 -0
  38. package/dist/types/src/components/CreateDialog/CreateSpaceDialog.d.ts.map +1 -1
  39. package/dist/types/src/components/JoinDialog.d.ts +1 -0
  40. package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
  41. package/dist/types/src/components/PopoverRenameObject.d.ts +1 -0
  42. package/dist/types/src/components/PopoverRenameObject.d.ts.map +1 -1
  43. package/dist/types/src/components/PopoverRenameSpace.d.ts +1 -0
  44. package/dist/types/src/components/PopoverRenameSpace.d.ts.map +1 -1
  45. package/dist/types/src/components/ShareSpaceButton.d.ts.map +1 -1
  46. package/dist/types/src/components/SpacePluginSettings.d.ts.map +1 -1
  47. package/dist/types/src/components/SpacePresence.d.ts +9 -6
  48. package/dist/types/src/components/SpacePresence.d.ts.map +1 -1
  49. package/dist/types/src/components/SpacePresence.stories.d.ts +1 -1
  50. package/dist/types/src/components/SpacePresence.stories.d.ts.map +1 -1
  51. package/dist/types/src/components/SpaceSettings/SpaceSettingsDialog.d.ts +1 -0
  52. package/dist/types/src/components/SpaceSettings/SpaceSettingsDialog.d.ts.map +1 -1
  53. package/dist/types/src/components/SpaceSettings/SpaceSettingsDialog.stories.d.ts.map +1 -1
  54. package/dist/types/src/components/SpaceSettings/SpaceSettingsPanel.d.ts +4 -3
  55. package/dist/types/src/components/SpaceSettings/SpaceSettingsPanel.d.ts.map +1 -1
  56. package/dist/types/src/components/SpaceSettings/SpaceSettingsPanel.stories.d.ts.map +1 -1
  57. package/dist/types/src/components/SyncStatus/InlineSyncStatus.d.ts +3 -3
  58. package/dist/types/src/components/SyncStatus/InlineSyncStatus.d.ts.map +1 -1
  59. package/dist/types/src/components/SyncStatus/SyncStatusDetail.stories.d.ts +2 -2
  60. package/dist/types/src/components/SyncStatus/SyncStatusDetail.stories.d.ts.map +1 -1
  61. package/dist/types/src/hooks/index.d.ts +2 -0
  62. package/dist/types/src/hooks/index.d.ts.map +1 -0
  63. package/dist/types/src/hooks/usePath.d.ts +11 -0
  64. package/dist/types/src/hooks/usePath.d.ts.map +1 -0
  65. package/dist/types/src/meta.d.ts +0 -23
  66. package/dist/types/src/meta.d.ts.map +1 -1
  67. package/dist/types/src/translations.d.ts +6 -3
  68. package/dist/types/src/translations.d.ts.map +1 -1
  69. package/dist/types/src/types/collection.d.ts +8 -12
  70. package/dist/types/src/types/collection.d.ts.map +1 -1
  71. package/dist/types/src/types/thread.d.ts +180 -186
  72. package/dist/types/src/types/thread.d.ts.map +1 -1
  73. package/dist/types/src/types/types.d.ts +234 -4
  74. package/dist/types/src/types/types.d.ts.map +1 -1
  75. package/dist/types/src/util.d.ts +3 -3
  76. package/dist/types/src/util.d.ts.map +1 -1
  77. package/dist/types/tsconfig.tsbuildinfo +1 -0
  78. package/package.json +39 -38
  79. package/src/SpacePlugin.tsx +477 -602
  80. package/src/components/AwaitingObject.tsx +19 -17
  81. package/src/components/CreateDialog/CreateObjectDialog.tsx +33 -22
  82. package/src/components/CreateDialog/CreateObjectPanel.tsx +7 -7
  83. package/src/components/CreateDialog/CreateSpaceDialog.tsx +10 -14
  84. package/src/components/JoinDialog.tsx +18 -34
  85. package/src/components/PersistenceStatus.tsx +1 -1
  86. package/src/components/PopoverRenameObject.tsx +2 -0
  87. package/src/components/PopoverRenameSpace.tsx +2 -0
  88. package/src/components/ShareSpaceButton.tsx +5 -4
  89. package/src/components/SpacePluginSettings.tsx +5 -11
  90. package/src/components/SpacePresence.stories.tsx +25 -17
  91. package/src/components/SpacePresence.tsx +36 -16
  92. package/src/components/SpaceSettings/SpaceSettingsDialog.stories.tsx +2 -3
  93. package/src/components/SpaceSettings/SpaceSettingsDialog.tsx +3 -1
  94. package/src/components/SpaceSettings/SpaceSettingsPanel.stories.tsx +7 -5
  95. package/src/components/SpaceSettings/SpaceSettingsPanel.tsx +6 -5
  96. package/src/components/SyncStatus/InlineSyncStatus.tsx +37 -27
  97. package/src/components/SyncStatus/SyncStatusDetail.stories.tsx +55 -51
  98. package/src/hooks/index.ts +5 -0
  99. package/src/hooks/usePath.ts +44 -0
  100. package/src/meta.ts +0 -26
  101. package/src/translations.ts +3 -2
  102. package/src/types/collection.ts +3 -3
  103. package/src/types/thread.ts +6 -6
  104. package/src/types/types.ts +182 -13
  105. package/src/util.tsx +59 -52
  106. package/dist/lib/browser/chunk-FTKV32QZ.mjs +0 -43
  107. package/dist/lib/browser/chunk-FTKV32QZ.mjs.map +0 -7
  108. package/dist/lib/browser/chunk-MWKXNS5S.mjs +0 -124
  109. package/dist/lib/browser/chunk-MWKXNS5S.mjs.map +0 -7
  110. package/dist/lib/node/chunk-6SNOZF7Y.cjs +0 -152
  111. package/dist/lib/node/chunk-6SNOZF7Y.cjs.map +0 -7
  112. package/dist/lib/node/chunk-QNVEU2UD.cjs +0 -69
  113. package/dist/lib/node/chunk-QNVEU2UD.cjs.map +0 -7
  114. package/dist/lib/node-esm/chunk-OHEAWSCA.mjs +0 -126
  115. package/dist/lib/node-esm/chunk-OHEAWSCA.mjs.map +0 -7
  116. package/dist/lib/node-esm/chunk-UMV7XREB.mjs +0 -45
  117. package/dist/lib/node-esm/chunk-UMV7XREB.mjs.map +0 -7
  118. package/dist/types/src/components/SyncStatus/InlineSyncStatus.stories.d.ts +0 -6
  119. package/dist/types/src/components/SyncStatus/InlineSyncStatus.stories.d.ts.map +0 -1
  120. package/src/components/SyncStatus/InlineSyncStatus.stories.tsx +0 -57
@@ -0,0 +1,343 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_YF2AQ7KP_exports = {};
20
+ __export(chunk_YF2AQ7KP_exports, {
21
+ ActorSchema: () => ActorSchema,
22
+ ChannelType: () => ChannelType,
23
+ CollectionAction: () => CollectionAction,
24
+ CollectionType: () => CollectionType,
25
+ ContactType: () => ContactType,
26
+ MessageState: () => MessageState,
27
+ MessageType: () => MessageType,
28
+ SPACE_ACTION: () => SPACE_ACTION,
29
+ SPACE_DIRECTORY_HANDLE: () => SPACE_DIRECTORY_HANDLE,
30
+ SpaceAction: () => SpaceAction,
31
+ SpaceForm: () => SpaceForm,
32
+ ThreadStatus: () => ThreadStatus,
33
+ ThreadType: () => ThreadType,
34
+ parseSchemaPlugin: () => parseSchemaPlugin
35
+ });
36
+ module.exports = __toCommonJS(chunk_YF2AQ7KP_exports);
37
+ var import_chunk_46S3JOES = require("./chunk-46S3JOES.cjs");
38
+ var import_echo_schema = require("@dxos/echo-schema");
39
+ var import_echo_schema2 = require("@dxos/echo-schema");
40
+ var import_app_framework = require("@dxos/app-framework");
41
+ var import_echo_schema3 = require("@dxos/echo-schema");
42
+ var import_echo = require("@dxos/react-client/echo");
43
+ var CollectionType = class extends (0, import_echo_schema.TypedObject)({
44
+ typename: "dxos.org/type/Collection",
45
+ version: "0.1.0"
46
+ })({
47
+ name: import_echo_schema.S.optional(import_echo_schema.S.String),
48
+ objects: import_echo_schema.S.mutable(import_echo_schema.S.Array((0, import_echo_schema.Ref)(import_echo_schema.Expando))),
49
+ // Key is schema typename and value is reference to a view object of the associated schema.
50
+ // Having collection reference the views rather than vice versa ensures that the state converges to a single view per key (i.e. type).
51
+ // This also leaves open a future where this key could be changed to allow for multiple stack views per section.
52
+ // TODO(wittjosiah): Any way to make this more type safe?
53
+ // TODO(wittjosiah): Should the views be separate objects or just be schemas for view data in this record?
54
+ views: import_echo_schema.S.mutable(import_echo_schema.S.Record({
55
+ key: import_echo_schema.S.String,
56
+ value: (0, import_echo_schema.Ref)(import_echo_schema.Expando)
57
+ }))
58
+ }) {
59
+ };
60
+ var ContactType = class extends (0, import_echo_schema2.TypedObject)({
61
+ typename: "dxos.org/type/Contact",
62
+ version: "0.1.0"
63
+ })({
64
+ name: import_echo_schema2.S.optional(import_echo_schema2.S.String),
65
+ identifiers: import_echo_schema2.S.mutable(import_echo_schema2.S.Array(import_echo_schema2.S.Struct({
66
+ type: import_echo_schema2.S.String,
67
+ value: import_echo_schema2.S.String
68
+ })))
69
+ }) {
70
+ };
71
+ var ActorSchema = import_echo_schema2.S.mutable(import_echo_schema2.S.Struct({
72
+ contact: import_echo_schema2.S.optional((0, import_echo_schema2.Ref)(ContactType)),
73
+ // TODO(wittjosiah): Should the below fields just be the contact schema?
74
+ // i.e. it should either be a reference to an existing contact or an inline contact schema.
75
+ identityKey: import_echo_schema2.S.optional(import_echo_schema2.S.String),
76
+ // TODO(burdon): Generalize to handle/identifier?
77
+ email: import_echo_schema2.S.optional(import_echo_schema2.S.String),
78
+ name: import_echo_schema2.S.optional(import_echo_schema2.S.String)
79
+ }));
80
+ var MessageState;
81
+ (function(MessageState2) {
82
+ MessageState2[MessageState2["NONE"] = 0] = "NONE";
83
+ MessageState2[MessageState2["ARCHIVED"] = 1] = "ARCHIVED";
84
+ MessageState2[MessageState2["DELETED"] = 2] = "DELETED";
85
+ MessageState2[MessageState2["SPAM"] = 3] = "SPAM";
86
+ })(MessageState || (MessageState = {}));
87
+ var MessageType = class extends (0, import_echo_schema2.TypedObject)({
88
+ typename: "dxos.org/type/Message",
89
+ version: "0.1.0"
90
+ })({
91
+ /** ISO date string when the message was sent. */
92
+ timestamp: import_echo_schema2.S.String,
93
+ /** Message state. */
94
+ state: import_echo_schema2.S.optional(import_echo_schema2.S.Enums(MessageState)),
95
+ /** Identity of the message sender. */
96
+ sender: ActorSchema,
97
+ /** Text content of the message. */
98
+ text: import_echo_schema2.S.String,
99
+ /** Non-text content sent with a message (e.g., files, polls, etc.) */
100
+ parts: import_echo_schema2.S.optional(import_echo_schema2.S.mutable(import_echo_schema2.S.Array((0, import_echo_schema2.Ref)(import_echo_schema2.Expando)))),
101
+ /** Custom properties for specific message types (e.g. email subject or cc fields). */
102
+ properties: import_echo_schema2.S.optional(import_echo_schema2.S.mutable(import_echo_schema2.S.Record({
103
+ key: import_echo_schema2.S.String,
104
+ value: import_echo_schema2.S.Any
105
+ }))),
106
+ // TODO(wittjosiah): Add read status:
107
+ // - Read receipts need to be per space member.
108
+ // - Read receipts don't need to be added to schema until they being implemented.
109
+ /** Context of the application when message was created. */
110
+ // TODO(burdon): Evolve "attention object" to be current UX state? E.g., of Deck?
111
+ context: import_echo_schema2.S.optional((0, import_echo_schema2.Ref)(import_echo_schema2.Expando))
112
+ }) {
113
+ };
114
+ var ThreadStatus = import_echo_schema2.S.Union(import_echo_schema2.S.Literal("staged"), import_echo_schema2.S.Literal("active"), import_echo_schema2.S.Literal("resolved"));
115
+ var ThreadType = class extends (0, import_echo_schema2.TypedObject)({
116
+ typename: "dxos.org/type/Thread",
117
+ version: "0.1.0"
118
+ })({
119
+ name: import_echo_schema2.S.optional(import_echo_schema2.S.String),
120
+ /** AM cursor-range: 'from:to'. */
121
+ anchor: import_echo_schema2.S.optional(import_echo_schema2.S.String),
122
+ status: import_echo_schema2.S.optional(ThreadStatus),
123
+ messages: import_echo_schema2.S.mutable(import_echo_schema2.S.Array((0, import_echo_schema2.Ref)(MessageType)))
124
+ }) {
125
+ };
126
+ var ChannelType = class extends (0, import_echo_schema2.TypedObject)({
127
+ typename: "dxos.org/type/Channel",
128
+ version: "0.1.0"
129
+ })({
130
+ name: import_echo_schema2.S.optional(import_echo_schema2.S.String),
131
+ threads: import_echo_schema2.S.mutable(import_echo_schema2.S.Array((0, import_echo_schema2.Ref)(ThreadType)))
132
+ }) {
133
+ };
134
+ var SPACE_DIRECTORY_HANDLE = "dxos.org/plugin/space/directory";
135
+ var parseSchemaPlugin = (plugin) => Array.isArray(plugin?.provides.echo?.schema) || Array.isArray(plugin?.provides.echo?.system) ? plugin : void 0;
136
+ var SpaceForm = import_echo_schema3.S.Struct({
137
+ name: import_echo_schema3.S.optional(import_echo_schema3.S.String.annotations({
138
+ [import_echo_schema3.AST.TitleAnnotationId]: "Name"
139
+ })),
140
+ // TODO(wittjosiah): Make optional with default value.
141
+ edgeReplication: import_echo_schema3.S.Boolean.annotations({
142
+ [import_echo_schema3.AST.TitleAnnotationId]: "Enable EDGE Replication"
143
+ })
144
+ });
145
+ var SPACE_ACTION = `${import_chunk_46S3JOES.SPACE_PLUGIN}/action`;
146
+ var SpaceAction;
147
+ (function(SpaceAction2) {
148
+ class OpenCreateSpace extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/open-create-space`, {
149
+ input: import_echo_schema3.S.Void,
150
+ output: import_echo_schema3.S.Void
151
+ }) {
152
+ }
153
+ SpaceAction2.OpenCreateSpace = OpenCreateSpace;
154
+ class Create extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/create`, {
155
+ input: SpaceForm,
156
+ output: import_echo_schema3.S.Struct({
157
+ id: import_echo_schema3.S.String,
158
+ activeParts: import_app_framework.ActiveParts,
159
+ space: import_echo.SpaceSchema
160
+ })
161
+ }) {
162
+ }
163
+ SpaceAction2.Create = Create;
164
+ class Join extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/join`, {
165
+ input: import_echo_schema3.S.Struct({
166
+ invitationCode: import_echo_schema3.S.optional(import_echo_schema3.S.String),
167
+ onDone: import_echo_schema3.S.optional(import_echo_schema3.S.Any)
168
+ }),
169
+ output: import_echo_schema3.S.Void
170
+ }) {
171
+ }
172
+ SpaceAction2.Join = Join;
173
+ class Share extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/share`, {
174
+ input: import_echo_schema3.S.Struct({
175
+ space: import_echo.SpaceSchema
176
+ }),
177
+ output: import_echo_schema3.S.Void
178
+ }) {
179
+ }
180
+ SpaceAction2.Share = Share;
181
+ class Lock extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/lock`, {
182
+ input: import_echo_schema3.S.Struct({
183
+ space: import_echo.SpaceSchema
184
+ }),
185
+ output: import_echo_schema3.S.Void
186
+ }) {
187
+ }
188
+ SpaceAction2.Lock = Lock;
189
+ class Unlock extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/unlock`, {
190
+ input: import_echo_schema3.S.Struct({
191
+ space: import_echo.SpaceSchema
192
+ }),
193
+ output: import_echo_schema3.S.Void
194
+ }) {
195
+ }
196
+ SpaceAction2.Unlock = Unlock;
197
+ class Rename extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/rename`, {
198
+ input: import_echo_schema3.S.Struct({
199
+ space: import_echo.SpaceSchema,
200
+ caller: import_echo_schema3.S.optional(import_echo_schema3.S.String)
201
+ }),
202
+ output: import_echo_schema3.S.Void
203
+ }) {
204
+ }
205
+ SpaceAction2.Rename = Rename;
206
+ class OpenSettings extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/open-settings`, {
207
+ input: import_echo_schema3.S.Struct({
208
+ space: import_echo.SpaceSchema
209
+ }),
210
+ output: import_echo_schema3.S.Void
211
+ }) {
212
+ }
213
+ SpaceAction2.OpenSettings = OpenSettings;
214
+ class Open extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/open`, {
215
+ input: import_echo_schema3.S.Struct({
216
+ space: import_echo.SpaceSchema
217
+ }),
218
+ output: import_echo_schema3.S.Void
219
+ }) {
220
+ }
221
+ SpaceAction2.Open = Open;
222
+ class Close extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/close`, {
223
+ input: import_echo_schema3.S.Struct({
224
+ space: import_echo.SpaceSchema
225
+ }),
226
+ output: import_echo_schema3.S.Void
227
+ }) {
228
+ }
229
+ SpaceAction2.Close = Close;
230
+ class Migrate extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/migrate`, {
231
+ input: import_echo_schema3.S.Struct({
232
+ space: import_echo.SpaceSchema,
233
+ version: import_echo_schema3.S.optional(import_echo_schema3.S.String)
234
+ }),
235
+ output: import_echo_schema3.S.Boolean
236
+ }) {
237
+ }
238
+ SpaceAction2.Migrate = Migrate;
239
+ class OpenCreateObject extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/open-create-object`, {
240
+ input: import_echo_schema3.S.Struct({
241
+ target: import_echo_schema3.S.Union(import_echo.SpaceSchema, CollectionType),
242
+ navigable: import_echo_schema3.S.optional(import_echo_schema3.S.Boolean)
243
+ }),
244
+ output: import_echo_schema3.S.Void
245
+ }) {
246
+ }
247
+ SpaceAction2.OpenCreateObject = OpenCreateObject;
248
+ class AddObject extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/add-object`, {
249
+ input: import_echo_schema3.S.Struct({
250
+ object: import_echo.ReactiveObjectSchema,
251
+ target: import_echo_schema3.S.Union(import_echo.SpaceSchema, CollectionType)
252
+ }),
253
+ output: import_echo_schema3.S.Struct({
254
+ id: import_echo_schema3.S.String,
255
+ activeParts: import_app_framework.ActiveParts,
256
+ object: import_echo.EchoObjectSchema
257
+ })
258
+ }) {
259
+ }
260
+ SpaceAction2.AddObject = AddObject;
261
+ SpaceAction2.DeletionData = import_echo_schema3.S.Struct({
262
+ objects: import_echo_schema3.S.Array(import_echo.EchoObjectSchema),
263
+ parentCollection: CollectionType,
264
+ indices: import_echo_schema3.S.Array(import_echo_schema3.S.Number),
265
+ nestedObjectsList: import_echo_schema3.S.Array(import_echo_schema3.S.Array(import_echo.EchoObjectSchema)),
266
+ wasActive: import_echo_schema3.S.Array(import_echo_schema3.S.String)
267
+ });
268
+ class RemoveObjects extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/remove-objects`, {
269
+ input: import_echo_schema3.S.Struct({
270
+ objects: import_echo_schema3.S.Array(import_echo.EchoObjectSchema),
271
+ target: import_echo_schema3.S.optional(CollectionType),
272
+ deletionData: import_echo_schema3.S.optional(SpaceAction2.DeletionData)
273
+ }),
274
+ output: import_echo_schema3.S.Void
275
+ }) {
276
+ }
277
+ SpaceAction2.RemoveObjects = RemoveObjects;
278
+ class RenameObject extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/rename-object`, {
279
+ input: import_echo_schema3.S.Struct({
280
+ object: import_echo.EchoObjectSchema,
281
+ caller: import_echo_schema3.S.optional(import_echo_schema3.S.String)
282
+ }),
283
+ output: import_echo_schema3.S.Void
284
+ }) {
285
+ }
286
+ SpaceAction2.RenameObject = RenameObject;
287
+ class DuplicateObject extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/duplicate-object`, {
288
+ input: import_echo_schema3.S.Struct({
289
+ object: import_echo.EchoObjectSchema,
290
+ target: import_echo_schema3.S.Union(import_echo.SpaceSchema, CollectionType)
291
+ }),
292
+ output: import_echo_schema3.S.Void
293
+ }) {
294
+ }
295
+ SpaceAction2.DuplicateObject = DuplicateObject;
296
+ class WaitForObject extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/wait-for-object`, {
297
+ input: import_echo_schema3.S.Struct({
298
+ id: import_echo_schema3.S.optional(import_echo_schema3.S.String)
299
+ }),
300
+ output: import_echo_schema3.S.Void
301
+ }) {
302
+ }
303
+ SpaceAction2.WaitForObject = WaitForObject;
304
+ class ToggleHidden extends import_echo_schema3.S.TaggedClass()(`${SPACE_ACTION}/toggle-hidden`, {
305
+ input: import_echo_schema3.S.Struct({
306
+ state: import_echo_schema3.S.optional(import_echo_schema3.S.Boolean)
307
+ }),
308
+ output: import_echo_schema3.S.Void
309
+ }) {
310
+ }
311
+ SpaceAction2.ToggleHidden = ToggleHidden;
312
+ })(SpaceAction || (SpaceAction = {}));
313
+ var CollectionAction;
314
+ (function(CollectionAction2) {
315
+ class Create extends import_echo_schema3.S.TaggedClass()("dxos.org/plugin/collection/action/create", {
316
+ input: import_echo_schema3.S.Struct({
317
+ name: import_echo_schema3.S.optional(import_echo_schema3.S.String)
318
+ }),
319
+ output: import_echo_schema3.S.Struct({
320
+ object: CollectionType
321
+ })
322
+ }) {
323
+ }
324
+ CollectionAction2.Create = Create;
325
+ })(CollectionAction || (CollectionAction = {}));
326
+ // Annotate the CommonJS export names for ESM import in node:
327
+ 0 && (module.exports = {
328
+ ActorSchema,
329
+ ChannelType,
330
+ CollectionAction,
331
+ CollectionType,
332
+ ContactType,
333
+ MessageState,
334
+ MessageType,
335
+ SPACE_ACTION,
336
+ SPACE_DIRECTORY_HANDLE,
337
+ SpaceAction,
338
+ SpaceForm,
339
+ ThreadStatus,
340
+ ThreadType,
341
+ parseSchemaPlugin
342
+ });
343
+ //# sourceMappingURL=chunk-YF2AQ7KP.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/collection.ts", "../../../src/types/thread.ts", "../../../src/types/types.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Expando, Ref, S, TypedObject } from '@dxos/echo-schema';\n\nexport class CollectionType extends TypedObject({ typename: 'dxos.org/type/Collection', version: '0.1.0' })({\n name: S.optional(S.String),\n objects: S.mutable(S.Array(Ref(Expando))),\n // Key is schema typename and value is reference to a view object of the associated schema.\n // Having collection reference the views rather than vice versa ensures that the state converges to a single view per key (i.e. type).\n // This also leaves open a future where this key could be changed to allow for multiple stack views per section.\n // TODO(wittjosiah): Any way to make this more type safe?\n // TODO(wittjosiah): Should the views be separate objects or just be schemas for view data in this record?\n views: S.mutable(S.Record({ key: S.String, value: Ref(Expando) })),\n}) {}\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { Expando, Ref, S, TypedObject } from '@dxos/echo-schema';\n\n// TODO(wittjosiah): These types were placed here rather than in @dxos/plugin-thread\n// in order to avoid a circular dependency between threads and other objects that use threads.\n\n// TODO(wittjosiah): Factor out to halo?\nexport class ContactType extends TypedObject({ typename: 'dxos.org/type/Contact', version: '0.1.0' })({\n name: S.optional(S.String),\n identifiers: S.mutable(\n S.Array(\n S.Struct({\n type: S.String,\n value: S.String,\n }),\n ),\n ),\n}) {}\n\nexport const ActorSchema = S.mutable(\n S.Struct({\n contact: S.optional(Ref(ContactType)),\n // TODO(wittjosiah): Should the below fields just be the contact schema?\n // i.e. it should either be a reference to an existing contact or an inline contact schema.\n identityKey: S.optional(S.String),\n // TODO(burdon): Generalize to handle/identifier?\n email: S.optional(S.String),\n name: S.optional(S.String),\n }),\n);\n\nexport type ActorType = S.Schema.Type<typeof ActorSchema>;\n\nexport enum MessageState {\n NONE = 0,\n ARCHIVED = 1,\n DELETED = 2,\n SPAM = 3,\n}\n\nexport class MessageType extends TypedObject({ typename: 'dxos.org/type/Message', version: '0.1.0' })({\n /** ISO date string when the message was sent. */\n timestamp: S.String,\n /** Message state. */\n state: S.optional(S.Enums(MessageState)),\n /** Identity of the message sender. */\n sender: ActorSchema,\n /** Text content of the message. */\n text: S.String,\n /** Non-text content sent with a message (e.g., files, polls, etc.) */\n parts: S.optional(S.mutable(S.Array(Ref(Expando)))),\n /** Custom properties for specific message types (e.g. email subject or cc fields). */\n properties: S.optional(S.mutable(S.Record({ key: S.String, value: S.Any }))),\n // TODO(wittjosiah): Add read status:\n // - Read receipts need to be per space member.\n // - Read receipts don't need to be added to schema until they being implemented.\n /** Context of the application when message was created. */\n // TODO(burdon): Evolve \"attention object\" to be current UX state? E.g., of Deck?\n context: S.optional(Ref(Expando)),\n}) {}\n\nexport const ThreadStatus = S.Union(S.Literal('staged'), S.Literal('active'), S.Literal('resolved'));\n\nexport class ThreadType extends TypedObject({ typename: 'dxos.org/type/Thread', version: '0.1.0' })({\n name: S.optional(S.String),\n /** AM cursor-range: 'from:to'. */\n anchor: S.optional(S.String),\n status: S.optional(ThreadStatus),\n messages: S.mutable(S.Array(Ref(MessageType))),\n}) {}\n\nexport class ChannelType extends TypedObject({ typename: 'dxos.org/type/Channel', version: '0.1.0' })({\n name: S.optional(S.String),\n threads: S.mutable(S.Array(Ref(ThreadType))),\n}) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport {\n type GraphBuilderProvides,\n type GraphSerializerProvides,\n type IntentResolverProvides,\n type MetadataRecordsProvides,\n type SettingsProvides,\n type SurfaceProvides,\n type TranslationsProvides,\n type Plugin,\n ActiveParts,\n} from '@dxos/app-framework';\nimport { AST, S, type TypedObject, type Expando } from '@dxos/echo-schema';\nimport { type PanelProvides } from '@dxos/plugin-deck/types';\nimport { type PublicKey } from '@dxos/react-client';\nimport { EchoObjectSchema, ReactiveObjectSchema, type Space, SpaceSchema } from '@dxos/react-client/echo';\nimport { type ComplexMap } from '@dxos/util';\n\nimport { CollectionType } from './collection';\nimport { SPACE_PLUGIN } from '../meta';\n\nexport const SPACE_DIRECTORY_HANDLE = 'dxos.org/plugin/space/directory';\n\nexport type ObjectViewerProps = {\n lastSeen: number;\n currentlyAttended: boolean;\n};\n\nexport type ObjectId = string;\n\nexport type PluginState = {\n /**\n * Which objects are currently being viewed by which peers.\n */\n viewersByObject: Record<ObjectId, ComplexMap<PublicKey, ObjectViewerProps>>;\n\n /**\n * Which peers are currently viewing which objects.\n */\n viewersByIdentity: ComplexMap<PublicKey, Set<ObjectId>>;\n\n /**\n * Object that was linked to directly but not found and is being awaited.\n */\n awaiting: string | undefined;\n\n /**\n * Cached space names, used when spaces are closed or loading.\n */\n spaceNames: Record<string, string>;\n\n /**\n * Which spaces have an SDK migration running currently.\n */\n // TODO(wittjosiah): Factor out to sdk. Migration running should probably be a space state.\n sdkMigrationRunning: Record<string, boolean>;\n\n /**\n * Whether or not the user can navigate to collections in the graph.\n * Determined by whether or not there is an available plugin that can render a collection.\n */\n navigableCollections: boolean;\n\n /**\n * Tracks whether setting edge replication as default has been run on spaces.\n */\n // TODO(wittjosiah): Systematic way to handle migrations of state outside of spaces.\n enabledEdgeReplication: boolean;\n};\n\nexport type SpaceSettingsProps = {\n /**\n * Show closed spaces.\n */\n showHidden?: boolean;\n};\n\nexport type SchemaProvides = {\n echo: {\n schema?: TypedObject[];\n system?: TypedObject[];\n };\n};\n\nexport const parseSchemaPlugin = (plugin?: Plugin) =>\n Array.isArray((plugin?.provides as any).echo?.schema) || Array.isArray((plugin?.provides as any).echo?.system)\n ? (plugin as Plugin<SchemaProvides>)\n : undefined;\n\nexport type SpacePluginProvides = SurfaceProvides &\n IntentResolverProvides &\n GraphBuilderProvides &\n GraphSerializerProvides &\n MetadataRecordsProvides &\n SettingsProvides<SpaceSettingsProps> &\n TranslationsProvides &\n SchemaProvides &\n PanelProvides & {\n space: Readonly<PluginState>;\n };\n\n// TODO(wittjosiah): Reconcile with graph export serializers.\n\nexport type SerializerMap = Record<string, TypedObjectSerializer>;\n\nexport interface TypedObjectSerializer<T extends Expando = Expando> {\n serialize(params: { object: T }): Promise<string>;\n\n /**\n * @param params.content\n * @param params.space Space to use for deserializing schema references.\n * @param params.newId Generate new ID for deserialized object.\n */\n deserialize(params: { content: string; space: Space; newId?: boolean }): Promise<T>;\n}\n\nexport const SpaceForm = S.Struct({\n name: S.optional(S.String.annotations({ [AST.TitleAnnotationId]: 'Name' })),\n // TODO(wittjosiah): Make optional with default value.\n edgeReplication: S.Boolean.annotations({ [AST.TitleAnnotationId]: 'Enable EDGE Replication' }),\n});\n\nexport const SPACE_ACTION = `${SPACE_PLUGIN}/action`;\n\nexport namespace SpaceAction {\n export class OpenCreateSpace extends S.TaggedClass<OpenCreateSpace>()(`${SPACE_ACTION}/open-create-space`, {\n input: S.Void,\n output: S.Void,\n }) {}\n\n export class Create extends S.TaggedClass<Create>()(`${SPACE_ACTION}/create`, {\n input: SpaceForm,\n output: S.Struct({\n id: S.String,\n activeParts: ActiveParts,\n space: SpaceSchema,\n }),\n }) {}\n\n export class Join extends S.TaggedClass<Join>()(`${SPACE_ACTION}/join`, {\n input: S.Struct({\n invitationCode: S.optional(S.String),\n onDone: S.optional(S.Any),\n }),\n output: S.Void,\n }) {}\n\n export class Share extends S.TaggedClass<Share>()(`${SPACE_ACTION}/share`, {\n input: S.Struct({\n space: SpaceSchema,\n }),\n output: S.Void,\n }) {}\n\n export class Lock extends S.TaggedClass<Lock>()(`${SPACE_ACTION}/lock`, {\n input: S.Struct({\n space: SpaceSchema,\n }),\n output: S.Void,\n }) {}\n\n export class Unlock extends S.TaggedClass<Unlock>()(`${SPACE_ACTION}/unlock`, {\n input: S.Struct({\n space: SpaceSchema,\n }),\n output: S.Void,\n }) {}\n\n export class Rename extends S.TaggedClass<Rename>()(`${SPACE_ACTION}/rename`, {\n input: S.Struct({\n space: SpaceSchema,\n caller: S.optional(S.String),\n }),\n output: S.Void,\n }) {}\n\n export class OpenSettings extends S.TaggedClass<OpenSettings>()(`${SPACE_ACTION}/open-settings`, {\n input: S.Struct({\n space: SpaceSchema,\n }),\n output: S.Void,\n }) {}\n\n export class Open extends S.TaggedClass<Open>()(`${SPACE_ACTION}/open`, {\n input: S.Struct({\n space: SpaceSchema,\n }),\n output: S.Void,\n }) {}\n\n export class Close extends S.TaggedClass<Close>()(`${SPACE_ACTION}/close`, {\n input: S.Struct({\n space: SpaceSchema,\n }),\n output: S.Void,\n }) {}\n\n export class Migrate extends S.TaggedClass<Migrate>()(`${SPACE_ACTION}/migrate`, {\n input: S.Struct({\n space: SpaceSchema,\n version: S.optional(S.String),\n }),\n output: S.Boolean,\n }) {}\n\n export class OpenCreateObject extends S.TaggedClass<OpenCreateObject>()(`${SPACE_ACTION}/open-create-object`, {\n input: S.Struct({\n target: S.Union(SpaceSchema, CollectionType),\n navigable: S.optional(S.Boolean),\n }),\n output: S.Void,\n }) {}\n\n export class AddObject extends S.TaggedClass<AddObject>()(`${SPACE_ACTION}/add-object`, {\n input: S.Struct({\n object: ReactiveObjectSchema,\n target: S.Union(SpaceSchema, CollectionType),\n }),\n output: S.Struct({\n id: S.String,\n activeParts: ActiveParts,\n object: EchoObjectSchema,\n }),\n }) {}\n\n export const DeletionData = S.Struct({\n objects: S.Array(EchoObjectSchema),\n parentCollection: CollectionType,\n indices: S.Array(S.Number),\n nestedObjectsList: S.Array(S.Array(EchoObjectSchema)),\n wasActive: S.Array(S.String),\n });\n\n export type DeletionData = S.Schema.Type<typeof DeletionData>;\n\n export class RemoveObjects extends S.TaggedClass<RemoveObjects>()(`${SPACE_ACTION}/remove-objects`, {\n input: S.Struct({\n objects: S.Array(EchoObjectSchema),\n target: S.optional(CollectionType),\n deletionData: S.optional(DeletionData),\n }),\n output: S.Void,\n }) {}\n\n export class RenameObject extends S.TaggedClass<RenameObject>()(`${SPACE_ACTION}/rename-object`, {\n input: S.Struct({\n object: EchoObjectSchema,\n caller: S.optional(S.String),\n }),\n output: S.Void,\n }) {}\n\n export class DuplicateObject extends S.TaggedClass<DuplicateObject>()(`${SPACE_ACTION}/duplicate-object`, {\n input: S.Struct({\n object: EchoObjectSchema,\n target: S.Union(SpaceSchema, CollectionType),\n }),\n output: S.Void,\n }) {}\n\n export class WaitForObject extends S.TaggedClass<WaitForObject>()(`${SPACE_ACTION}/wait-for-object`, {\n input: S.Struct({\n id: S.optional(S.String),\n }),\n output: S.Void,\n }) {}\n\n export class ToggleHidden extends S.TaggedClass<ToggleHidden>()(`${SPACE_ACTION}/toggle-hidden`, {\n input: S.Struct({\n state: S.optional(S.Boolean),\n }),\n output: S.Void,\n }) {}\n}\n\nexport namespace CollectionAction {\n export class Create extends S.TaggedClass<Create>()('dxos.org/plugin/collection/action/create', {\n input: S.Struct({\n name: S.optional(S.String),\n }),\n output: S.Struct({\n object: CollectionType,\n }),\n }) {}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J,YAAAA,qBAAiC;IACxGK,OAAO5D,oBAAAA,EAAEc,OAAO;MACduE,QAAQE;MACRL,QAAQlF,oBAAAA,EAAEgC,MAAMoC,yBAAazE,cAAAA;IAC/B,CAAA;IACAmE,QAAQ9D,oBAAAA,EAAE6D;EACZ,CAAA,EAAA;EAAI;eANSoC,kBAAAA;EAQN,MAAMC,sBAAsBlG,oBAAAA,EAAE2D,YAAW,EAAkB,GAAGJ,YAAAA,oBAAgC;IACnGK,OAAO5D,oBAAAA,EAAEc,OAAO;MACdkD,IAAIhE,oBAAAA,EAAEC,SAASD,oBAAAA,EAAEE,MAAM;IACzB,CAAA;IACA4D,QAAQ9D,oBAAAA,EAAE6D;EACZ,CAAA,EAAA;EAAI;eALSqC,gBAAAA;EAON,MAAMC,qBAAqBnG,oBAAAA,EAAE2D,YAAW,EAAiB,GAAGJ,YAAAA,kBAA8B;IAC/FK,OAAO5D,oBAAAA,EAAEc,OAAO;MACdS,OAAOvB,oBAAAA,EAAEC,SAASD,oBAAAA,EAAEsD,OAAO;IAC7B,CAAA;IACAQ,QAAQ9D,oBAAAA,EAAE6D;EACZ,CAAA,EAAA;EAAI;eALSsC,eAAAA;AAMf,GArJiB1C,gBAAAA,cAAAA,CAAAA,EAAAA;;UAuJA2C,mBAAAA;EACR,MAAMrC,eAAe/D,oBAAAA,EAAE2D,YAAW,EAAW,4CAA4C;IAC9FC,OAAO5D,oBAAAA,EAAEc,OAAO;MACdf,MAAMC,oBAAAA,EAAEC,SAASD,oBAAAA,EAAEE,MAAM;IAC3B,CAAA;IACA4D,QAAQ9D,oBAAAA,EAAEc,OAAO;MACfuE,QAAQ1F;IACV,CAAA;EACF,CAAA,EAAA;EAAI;oBAPSoE,SAAAA;AAQf,GATiBqC,qBAAAA,mBAAAA,CAAAA,EAAAA;",
6
+ "names": ["import_echo_schema", "CollectionType", "TypedObject", "typename", "version", "name", "S", "optional", "String", "objects", "mutable", "Array", "Ref", "Expando", "views", "Record", "key", "value", "ContactType", "identifiers", "Struct", "type", "ActorSchema", "contact", "identityKey", "email", "MessageState", "MessageType", "timestamp", "state", "Enums", "sender", "text", "parts", "properties", "Any", "context", "ThreadStatus", "Union", "Literal", "ThreadType", "anchor", "status", "messages", "ChannelType", "threads", "SPACE_DIRECTORY_HANDLE", "parseSchemaPlugin", "plugin", "isArray", "provides", "echo", "schema", "system", "undefined", "SpaceForm", "annotations", "AST", "TitleAnnotationId", "edgeReplication", "Boolean", "SPACE_ACTION", "SPACE_PLUGIN", "SpaceAction", "OpenCreateSpace", "TaggedClass", "input", "Void", "output", "Create", "id", "activeParts", "ActiveParts", "space", "SpaceSchema", "Join", "invitationCode", "onDone", "Share", "Lock", "Unlock", "Rename", "caller", "OpenSettings", "Open", "Close", "Migrate", "OpenCreateObject", "target", "navigable", "AddObject", "object", "ReactiveObjectSchema", "EchoObjectSchema", "DeletionData", "parentCollection", "indices", "Number", "nestedObjectsList", "wasActive", "RemoveObjects", "deletionData", "RenameObject", "DuplicateObject", "WaitForObject", "ToggleHidden", "CollectionAction"]
7
+ }