@dxos/plugin-space 0.7.5-staging.b81e783 → 0.7.5-staging.e6154f3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{chunk-POARSSRI.mjs → chunk-PCEP3KQY.mjs} +47 -42
- package/dist/lib/browser/chunk-PCEP3KQY.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +2 -1
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-E2UU3DAS.mjs → intent-resolver-GPNAQ2SG.mjs} +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-STUND2SO.mjs → react-root-4CCSD7TZ.mjs} +2 -2
- package/dist/lib/browser/{react-surface-P7CKFNJR.mjs → react-surface-FKMRI3WV.mjs} +2 -2
- package/dist/lib/node/{chunk-RHYA4XUB.cjs → chunk-QE4GVR6C.cjs} +22 -17
- package/dist/lib/node/chunk-QE4GVR6C.cjs.map +7 -0
- package/dist/lib/node/index.cjs +45 -44
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-TJ5DFPZP.cjs → intent-resolver-ICHHI6I6.cjs} +13 -13
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-root-WQGBCJ2K.cjs → react-root-TCBTUOOJ.cjs} +6 -6
- package/dist/lib/node/{react-surface-GSEV6XCR.cjs → react-surface-JSCCIZS5.cjs} +38 -38
- package/dist/lib/node-esm/{chunk-ONKFX23L.mjs → chunk-HJCEJNW3.mjs} +47 -42
- package/dist/lib/node-esm/chunk-HJCEJNW3.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +2 -1
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-7NJCJ3FA.mjs → intent-resolver-VR42K5GE.mjs} +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-root-OLYAEMP5.mjs → react-root-THJBSTQS.mjs} +2 -2
- package/dist/lib/node-esm/{react-surface-6IFC6ZMN.mjs → react-surface-Z3BBQ5HX.mjs} +2 -2
- package/dist/types/src/SpacePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +88 -88
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +111 -111
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/types/collection.d.ts +2 -2
- package/dist/types/src/types/thread.d.ts +34 -34
- package/dist/types/src/types/types.d.ts +9 -9
- package/dist/types/src/util.d.ts +1 -1
- package/package.json +39 -39
- package/src/SpacePlugin.tsx +1 -0
- package/src/components/JoinDialog.tsx +3 -1
- package/src/components/PopoverAddSpace.tsx +8 -8
- package/dist/lib/browser/chunk-POARSSRI.mjs.map +0 -7
- package/dist/lib/node/chunk-RHYA4XUB.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-ONKFX23L.mjs.map +0 -7
- /package/dist/lib/browser/{intent-resolver-E2UU3DAS.mjs.map → intent-resolver-GPNAQ2SG.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-STUND2SO.mjs.map → react-root-4CCSD7TZ.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-P7CKFNJR.mjs.map → react-surface-FKMRI3WV.mjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-TJ5DFPZP.cjs.map → intent-resolver-ICHHI6I6.cjs.map} +0 -0
- /package/dist/lib/node/{react-root-WQGBCJ2K.cjs.map → react-root-TCBTUOOJ.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-GSEV6XCR.cjs.map → react-surface-JSCCIZS5.cjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-7NJCJ3FA.mjs.map → intent-resolver-VR42K5GE.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-root-OLYAEMP5.mjs.map → react-root-THJBSTQS.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-6IFC6ZMN.mjs.map → react-surface-Z3BBQ5HX.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;qBAYonF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;qFAZ/2U,CAAC;AACzE,eAAO,MAAM,kBAAkB,wOAA+C,CAAC;AAC/E,eAAO,MAAM,eAAe,8LAA2C,CAAC;AACxE,eAAO,MAAM,cAAc;;;;6LAA0C,CAAC;AACtE,eAAO,MAAM,SAAS;;;qDAAqC,CAAC;AAC5D,eAAO,MAAM,YAAY;;2LAAwC,CAAC;AAClE,eAAO,MAAM,MAAM,8LAAiC,CAAC;AACrD,eAAO,MAAM,aAAa,4LAAmC,CAAC;AAC9D,eAAO,MAAM,UAAU,2PAAgC,CAAC;AACxD,eAAO,MAAM,WAAW,8LAAuC,CAAC;AAEhE,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoinDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/JoinDialog.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInE,eAAO,MAAM,WAAW,qCAA+B,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,UAAU,+CAAgD,eAAe,
|
|
1
|
+
{"version":3,"file":"JoinDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/JoinDialog.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInE,eAAO,MAAM,WAAW,qCAA+B,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,UAAU,+CAAgD,eAAe,4CA4ErF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Expando, S } from '@dxos/echo-schema';
|
|
2
|
-
declare const CollectionType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("
|
|
2
|
+
declare const CollectionType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
3
3
|
name: S.optional<typeof S.String>;
|
|
4
4
|
objects: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<Expando>>>;
|
|
5
5
|
views: S.mutable<S.Record$<typeof S.String, import("@dxos/echo-schema").Ref$<Expando>>>;
|
|
6
|
-
}, import("
|
|
6
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
|
|
7
7
|
name: S.optional<typeof S.String>;
|
|
8
8
|
objects: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<Expando>>>;
|
|
9
9
|
views: S.mutable<S.Record$<typeof S.String, import("@dxos/echo-schema").Ref$<Expando>>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Expando, S } from '@dxos/echo-schema';
|
|
2
|
-
declare const ContactType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("
|
|
2
|
+
declare const ContactType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
3
3
|
name: S.optional<typeof S.String>;
|
|
4
4
|
identifiers: S.mutable<S.Array$<S.Struct<{
|
|
5
5
|
type: typeof S.String;
|
|
6
6
|
value: typeof S.String;
|
|
7
7
|
}>>>;
|
|
8
|
-
}, import("
|
|
8
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
|
|
9
9
|
name: S.optional<typeof S.String>;
|
|
10
10
|
identifiers: S.mutable<S.Array$<S.Struct<{
|
|
11
11
|
type: typeof S.String;
|
|
@@ -15,13 +15,13 @@ declare const ContactType_base: import("@dxos/echo-schema").TypedObjectPrototype
|
|
|
15
15
|
export declare class ContactType extends ContactType_base {
|
|
16
16
|
}
|
|
17
17
|
export declare const ActorSchema: S.mutable<S.Struct<{
|
|
18
|
-
contact: S.optional<import("@dxos/echo-schema").Ref$<import("
|
|
18
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
19
19
|
name: S.optional<typeof S.String>;
|
|
20
20
|
identifiers: S.mutable<S.Array$<S.Struct<{
|
|
21
21
|
type: typeof S.String;
|
|
22
22
|
value: typeof S.String;
|
|
23
23
|
}>>>;
|
|
24
|
-
}, import("
|
|
24
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
25
25
|
identityKey: S.optional<typeof S.String>;
|
|
26
26
|
email: S.optional<typeof S.String>;
|
|
27
27
|
name: S.optional<typeof S.String>;
|
|
@@ -33,20 +33,20 @@ export declare enum MessageState {
|
|
|
33
33
|
DELETED = 2,
|
|
34
34
|
SPAM = 3
|
|
35
35
|
}
|
|
36
|
-
declare const MessageType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("
|
|
36
|
+
declare const MessageType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
37
37
|
/** ISO date string when the message was sent. */
|
|
38
38
|
timestamp: typeof S.String;
|
|
39
39
|
/** Message state. */
|
|
40
40
|
state: S.optional<S.Enums<typeof MessageState>>;
|
|
41
41
|
/** Identity of the message sender. */
|
|
42
42
|
sender: S.mutable<S.Struct<{
|
|
43
|
-
contact: S.optional<import("@dxos/echo-schema").Ref$<import("
|
|
43
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
44
44
|
name: S.optional<typeof S.String>;
|
|
45
45
|
identifiers: S.mutable<S.Array$<S.Struct<{
|
|
46
46
|
type: typeof S.String;
|
|
47
47
|
value: typeof S.String;
|
|
48
48
|
}>>>;
|
|
49
|
-
}, import("
|
|
49
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
50
50
|
identityKey: S.optional<typeof S.String>;
|
|
51
51
|
email: S.optional<typeof S.String>;
|
|
52
52
|
name: S.optional<typeof S.String>;
|
|
@@ -59,20 +59,20 @@ declare const MessageType_base: import("@dxos/echo-schema").TypedObjectPrototype
|
|
|
59
59
|
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
60
60
|
/** Context of the application when message was created. */
|
|
61
61
|
context: S.optional<import("@dxos/echo-schema").Ref$<Expando>>;
|
|
62
|
-
}, import("
|
|
62
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
|
|
63
63
|
/** ISO date string when the message was sent. */
|
|
64
64
|
timestamp: typeof S.String;
|
|
65
65
|
/** Message state. */
|
|
66
66
|
state: S.optional<S.Enums<typeof MessageState>>;
|
|
67
67
|
/** Identity of the message sender. */
|
|
68
68
|
sender: S.mutable<S.Struct<{
|
|
69
|
-
contact: S.optional<import("@dxos/echo-schema").Ref$<import("
|
|
69
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
70
70
|
name: S.optional<typeof S.String>;
|
|
71
71
|
identifiers: S.mutable<S.Array$<S.Struct<{
|
|
72
72
|
type: typeof S.String;
|
|
73
73
|
value: typeof S.String;
|
|
74
74
|
}>>>;
|
|
75
|
-
}, import("
|
|
75
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
76
76
|
identityKey: S.optional<typeof S.String>;
|
|
77
77
|
email: S.optional<typeof S.String>;
|
|
78
78
|
name: S.optional<typeof S.String>;
|
|
@@ -89,25 +89,25 @@ declare const MessageType_base: import("@dxos/echo-schema").TypedObjectPrototype
|
|
|
89
89
|
export declare class MessageType extends MessageType_base {
|
|
90
90
|
}
|
|
91
91
|
export declare const ThreadStatus: S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>;
|
|
92
|
-
declare const ThreadType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("
|
|
92
|
+
declare const ThreadType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
93
93
|
name: S.optional<typeof S.String>;
|
|
94
94
|
/** AM cursor-range: 'from:to'. */
|
|
95
95
|
anchor: S.optional<typeof S.String>;
|
|
96
96
|
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
97
|
-
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("
|
|
97
|
+
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
98
98
|
/** ISO date string when the message was sent. */
|
|
99
99
|
timestamp: typeof S.String;
|
|
100
100
|
/** Message state. */
|
|
101
101
|
state: S.optional<S.Enums<typeof MessageState>>;
|
|
102
102
|
/** Identity of the message sender. */
|
|
103
103
|
sender: S.mutable<S.Struct<{
|
|
104
|
-
contact: S.optional<import("@dxos/echo-schema").Ref$<import("
|
|
104
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
105
105
|
name: S.optional<typeof S.String>;
|
|
106
106
|
identifiers: S.mutable<S.Array$<S.Struct<{
|
|
107
107
|
type: typeof S.String;
|
|
108
108
|
value: typeof S.String;
|
|
109
109
|
}>>>;
|
|
110
|
-
}, import("
|
|
110
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
111
111
|
identityKey: S.optional<typeof S.String>;
|
|
112
112
|
email: S.optional<typeof S.String>;
|
|
113
113
|
name: S.optional<typeof S.String>;
|
|
@@ -120,26 +120,26 @@ declare const ThreadType_base: import("@dxos/echo-schema").TypedObjectPrototype<
|
|
|
120
120
|
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
121
121
|
/** Context of the application when message was created. */
|
|
122
122
|
context: S.optional<import("@dxos/echo-schema").Ref$<Expando>>;
|
|
123
|
-
}, import("
|
|
124
|
-
}, import("
|
|
123
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
124
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
|
|
125
125
|
name: S.optional<typeof S.String>;
|
|
126
126
|
/** AM cursor-range: 'from:to'. */
|
|
127
127
|
anchor: S.optional<typeof S.String>;
|
|
128
128
|
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
129
|
-
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("
|
|
129
|
+
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
130
130
|
/** ISO date string when the message was sent. */
|
|
131
131
|
timestamp: typeof S.String;
|
|
132
132
|
/** Message state. */
|
|
133
133
|
state: S.optional<S.Enums<typeof MessageState>>;
|
|
134
134
|
/** Identity of the message sender. */
|
|
135
135
|
sender: S.mutable<S.Struct<{
|
|
136
|
-
contact: S.optional<import("@dxos/echo-schema").Ref$<import("
|
|
136
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
137
137
|
name: S.optional<typeof S.String>;
|
|
138
138
|
identifiers: S.mutable<S.Array$<S.Struct<{
|
|
139
139
|
type: typeof S.String;
|
|
140
140
|
value: typeof S.String;
|
|
141
141
|
}>>>;
|
|
142
|
-
}, import("
|
|
142
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
143
143
|
identityKey: S.optional<typeof S.String>;
|
|
144
144
|
email: S.optional<typeof S.String>;
|
|
145
145
|
name: S.optional<typeof S.String>;
|
|
@@ -152,31 +152,31 @@ declare const ThreadType_base: import("@dxos/echo-schema").TypedObjectPrototype<
|
|
|
152
152
|
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
153
153
|
/** Context of the application when message was created. */
|
|
154
154
|
context: S.optional<import("@dxos/echo-schema").Ref$<Expando>>;
|
|
155
|
-
}, import("
|
|
155
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
156
156
|
}>>;
|
|
157
157
|
export declare class ThreadType extends ThreadType_base {
|
|
158
158
|
}
|
|
159
|
-
declare const ChannelType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("
|
|
159
|
+
declare const ChannelType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
160
160
|
name: S.optional<typeof S.String>;
|
|
161
|
-
threads: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("
|
|
161
|
+
threads: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
162
162
|
name: S.optional<typeof S.String>;
|
|
163
163
|
/** AM cursor-range: 'from:to'. */
|
|
164
164
|
anchor: S.optional<typeof S.String>;
|
|
165
165
|
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
166
|
-
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("
|
|
166
|
+
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
167
167
|
/** ISO date string when the message was sent. */
|
|
168
168
|
timestamp: typeof S.String;
|
|
169
169
|
/** Message state. */
|
|
170
170
|
state: S.optional<S.Enums<typeof MessageState>>;
|
|
171
171
|
/** Identity of the message sender. */
|
|
172
172
|
sender: S.mutable<S.Struct<{
|
|
173
|
-
contact: S.optional<import("@dxos/echo-schema").Ref$<import("
|
|
173
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
174
174
|
name: S.optional<typeof S.String>;
|
|
175
175
|
identifiers: S.mutable<S.Array$<S.Struct<{
|
|
176
176
|
type: typeof S.String;
|
|
177
177
|
value: typeof S.String;
|
|
178
178
|
}>>>;
|
|
179
|
-
}, import("
|
|
179
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
180
180
|
identityKey: S.optional<typeof S.String>;
|
|
181
181
|
email: S.optional<typeof S.String>;
|
|
182
182
|
name: S.optional<typeof S.String>;
|
|
@@ -189,29 +189,29 @@ declare const ChannelType_base: import("@dxos/echo-schema").TypedObjectPrototype
|
|
|
189
189
|
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
190
190
|
/** Context of the application when message was created. */
|
|
191
191
|
context: S.optional<import("@dxos/echo-schema").Ref$<Expando>>;
|
|
192
|
-
}, import("
|
|
193
|
-
}, import("
|
|
194
|
-
}, import("
|
|
192
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
193
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
194
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
|
|
195
195
|
name: S.optional<typeof S.String>;
|
|
196
|
-
threads: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("
|
|
196
|
+
threads: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
197
197
|
name: S.optional<typeof S.String>;
|
|
198
198
|
/** AM cursor-range: 'from:to'. */
|
|
199
199
|
anchor: S.optional<typeof S.String>;
|
|
200
200
|
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
201
|
-
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("
|
|
201
|
+
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
202
202
|
/** ISO date string when the message was sent. */
|
|
203
203
|
timestamp: typeof S.String;
|
|
204
204
|
/** Message state. */
|
|
205
205
|
state: S.optional<S.Enums<typeof MessageState>>;
|
|
206
206
|
/** Identity of the message sender. */
|
|
207
207
|
sender: S.mutable<S.Struct<{
|
|
208
|
-
contact: S.optional<import("@dxos/echo-schema").Ref$<import("
|
|
208
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
209
209
|
name: S.optional<typeof S.String>;
|
|
210
210
|
identifiers: S.mutable<S.Array$<S.Struct<{
|
|
211
211
|
type: typeof S.String;
|
|
212
212
|
value: typeof S.String;
|
|
213
213
|
}>>>;
|
|
214
|
-
}, import("
|
|
214
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>;
|
|
215
215
|
identityKey: S.optional<typeof S.String>;
|
|
216
216
|
email: S.optional<typeof S.String>;
|
|
217
217
|
name: S.optional<typeof S.String>;
|
|
@@ -224,8 +224,8 @@ declare const ChannelType_base: import("@dxos/echo-schema").TypedObjectPrototype
|
|
|
224
224
|
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
225
225
|
/** Context of the application when message was created. */
|
|
226
226
|
context: S.optional<import("@dxos/echo-schema").Ref$<Expando>>;
|
|
227
|
-
}, import("
|
|
228
|
-
}, import("
|
|
227
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
228
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
229
229
|
}>>;
|
|
230
230
|
export declare class ChannelType extends ChannelType_base {
|
|
231
231
|
}
|
|
@@ -225,22 +225,22 @@ export declare namespace SpaceAction {
|
|
|
225
225
|
readonly _tag: S.tag<"dxos.org/plugin/space/action/add-object">;
|
|
226
226
|
} & {
|
|
227
227
|
input: S.Struct<{
|
|
228
|
-
object: S.Schema<import("@dxos/
|
|
228
|
+
object: S.Schema<import("@dxos/live-object").ReactiveObject<any>, import("@dxos/live-object").ReactiveObject<any>, never>;
|
|
229
229
|
target: S.Union<[S.Schema<Space, Space, never>, typeof CollectionType]>;
|
|
230
230
|
}>;
|
|
231
231
|
output: S.Struct<{
|
|
232
232
|
id: typeof S.String;
|
|
233
233
|
subject: S.Array$<typeof S.String>;
|
|
234
|
-
object: S.Schema<import("@dxos/
|
|
234
|
+
object: S.Schema<import("@dxos/echo-db").ReactiveEchoObject<any>, import("@dxos/echo-db").ReactiveEchoObject<any>, never>;
|
|
235
235
|
}>;
|
|
236
236
|
}>;
|
|
237
237
|
export class AddObject extends AddObject_base {
|
|
238
238
|
}
|
|
239
239
|
export const DeletionData: S.Struct<{
|
|
240
|
-
objects: S.Array$<S.Schema<import("@dxos/
|
|
240
|
+
objects: S.Array$<S.Schema<import("@dxos/echo-db").ReactiveEchoObject<any>, import("@dxos/echo-db").ReactiveEchoObject<any>, never>>;
|
|
241
241
|
parentCollection: typeof CollectionType;
|
|
242
242
|
indices: S.Array$<typeof S.Number>;
|
|
243
|
-
nestedObjectsList: S.Array$<S.Array$<S.Schema<import("@dxos/
|
|
243
|
+
nestedObjectsList: S.Array$<S.Array$<S.Schema<import("@dxos/echo-db").ReactiveEchoObject<any>, import("@dxos/echo-db").ReactiveEchoObject<any>, never>>>;
|
|
244
244
|
wasActive: S.Array$<typeof S.String>;
|
|
245
245
|
}>;
|
|
246
246
|
export type DeletionData = S.Schema.Type<typeof DeletionData>;
|
|
@@ -248,13 +248,13 @@ export declare namespace SpaceAction {
|
|
|
248
248
|
readonly _tag: S.tag<"dxos.org/plugin/space/action/remove-objects">;
|
|
249
249
|
} & {
|
|
250
250
|
input: S.Struct<{
|
|
251
|
-
objects: S.Array$<S.Schema<import("@dxos/
|
|
251
|
+
objects: S.Array$<S.Schema<import("@dxos/echo-db").ReactiveEchoObject<any>, import("@dxos/echo-db").ReactiveEchoObject<any>, never>>;
|
|
252
252
|
target: S.optional<typeof CollectionType>;
|
|
253
253
|
deletionData: S.optional<S.Struct<{
|
|
254
|
-
objects: S.Array$<S.Schema<import("@dxos/
|
|
254
|
+
objects: S.Array$<S.Schema<import("@dxos/echo-db").ReactiveEchoObject<any>, import("@dxos/echo-db").ReactiveEchoObject<any>, never>>;
|
|
255
255
|
parentCollection: typeof CollectionType;
|
|
256
256
|
indices: S.Array$<typeof S.Number>;
|
|
257
|
-
nestedObjectsList: S.Array$<S.Array$<S.Schema<import("@dxos/
|
|
257
|
+
nestedObjectsList: S.Array$<S.Array$<S.Schema<import("@dxos/echo-db").ReactiveEchoObject<any>, import("@dxos/echo-db").ReactiveEchoObject<any>, never>>>;
|
|
258
258
|
wasActive: S.Array$<typeof S.String>;
|
|
259
259
|
}>>;
|
|
260
260
|
}>;
|
|
@@ -266,7 +266,7 @@ export declare namespace SpaceAction {
|
|
|
266
266
|
readonly _tag: S.tag<"dxos.org/plugin/space/action/rename-object">;
|
|
267
267
|
} & {
|
|
268
268
|
input: S.Struct<{
|
|
269
|
-
object: S.Schema<import("@dxos/
|
|
269
|
+
object: S.Schema<import("@dxos/echo-db").ReactiveEchoObject<any>, import("@dxos/echo-db").ReactiveEchoObject<any>, never>;
|
|
270
270
|
caller: S.optional<typeof S.String>;
|
|
271
271
|
}>;
|
|
272
272
|
output: typeof S.Void;
|
|
@@ -277,7 +277,7 @@ export declare namespace SpaceAction {
|
|
|
277
277
|
readonly _tag: S.tag<"dxos.org/plugin/space/action/duplicate-object">;
|
|
278
278
|
} & {
|
|
279
279
|
input: S.Struct<{
|
|
280
|
-
object: S.Schema<import("@dxos/
|
|
280
|
+
object: S.Schema<import("@dxos/echo-db").ReactiveEchoObject<any>, import("@dxos/echo-db").ReactiveEchoObject<any>, never>;
|
|
281
281
|
target: S.Union<[S.Schema<Space, Space, never>, typeof CollectionType]>;
|
|
282
282
|
}>;
|
|
283
283
|
output: typeof S.Void;
|
package/dist/types/src/util.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const constructSpaceNode: ({ space, navigable, personal, namesCac
|
|
|
27
27
|
namesCache?: Record<string, string>;
|
|
28
28
|
resolve: (typename: string) => Record<string, any>;
|
|
29
29
|
}) => {
|
|
30
|
-
id: import("@dxos/
|
|
30
|
+
id: import("@dxos/keys").SpaceId;
|
|
31
31
|
type: string;
|
|
32
32
|
cacheable: string[];
|
|
33
33
|
data: Space;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-space",
|
|
3
|
-
"version": "0.7.5-staging.
|
|
3
|
+
"version": "0.7.5-staging.e6154f3",
|
|
4
4
|
"description": "DXOS Surface plugin for DXOS ECHO Spaces",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -41,38 +41,38 @@
|
|
|
41
41
|
"lodash.get": "^4.4.2",
|
|
42
42
|
"react-drag-drop-files": "^2.3.8",
|
|
43
43
|
"react-is": "~18.2.0",
|
|
44
|
-
"@dxos/app-framework": "0.7.5-staging.
|
|
45
|
-
"@dxos/automerge": "0.7.5-staging.
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/display-name": "0.7.5-staging.
|
|
50
|
-
"@dxos/echo-
|
|
51
|
-
"@dxos/echo-
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/plugin-
|
|
59
|
-
"@dxos/plugin-
|
|
60
|
-
"@dxos/plugin-
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/plugin-
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/react-client": "0.7.5-staging.
|
|
66
|
-
"@dxos/react-ui-
|
|
67
|
-
"@dxos/react-ui-
|
|
68
|
-
"@dxos/react-ui-
|
|
69
|
-
"@dxos/react-ui-
|
|
70
|
-
"@dxos/react-ui-searchlist": "0.7.5-staging.
|
|
71
|
-
"@dxos/react-ui-syntax-highlighter": "0.7.5-staging.
|
|
72
|
-
"@dxos/react-ui-stack": "0.7.5-staging.
|
|
73
|
-
"@dxos/shell": "0.7.5-staging.
|
|
74
|
-
"@dxos/util": "0.7.5-staging.
|
|
75
|
-
"@dxos/react-ui-tabs": "0.7.5-staging.
|
|
44
|
+
"@dxos/app-framework": "0.7.5-staging.e6154f3",
|
|
45
|
+
"@dxos/automerge": "0.7.5-staging.e6154f3",
|
|
46
|
+
"@dxos/client": "0.7.5-staging.e6154f3",
|
|
47
|
+
"@dxos/context": "0.7.5-staging.e6154f3",
|
|
48
|
+
"@dxos/async": "0.7.5-staging.e6154f3",
|
|
49
|
+
"@dxos/display-name": "0.7.5-staging.e6154f3",
|
|
50
|
+
"@dxos/echo-signals": "0.7.5-staging.e6154f3",
|
|
51
|
+
"@dxos/echo-schema": "0.7.5-staging.e6154f3",
|
|
52
|
+
"@dxos/keys": "0.7.5-staging.e6154f3",
|
|
53
|
+
"@dxos/invariant": "0.7.5-staging.e6154f3",
|
|
54
|
+
"@dxos/live-object": "0.7.5-staging.e6154f3",
|
|
55
|
+
"@dxos/local-storage": "0.7.5-staging.e6154f3",
|
|
56
|
+
"@dxos/log": "0.7.5-staging.e6154f3",
|
|
57
|
+
"@dxos/migrations": "0.7.5-staging.e6154f3",
|
|
58
|
+
"@dxos/plugin-attention": "0.7.5-staging.e6154f3",
|
|
59
|
+
"@dxos/plugin-client": "0.7.5-staging.e6154f3",
|
|
60
|
+
"@dxos/plugin-deck": "0.7.5-staging.e6154f3",
|
|
61
|
+
"@dxos/plugin-observability": "0.7.5-staging.e6154f3",
|
|
62
|
+
"@dxos/plugin-graph": "0.7.5-staging.e6154f3",
|
|
63
|
+
"@dxos/plugin-status-bar": "0.7.5-staging.e6154f3",
|
|
64
|
+
"@dxos/protocols": "0.7.5-staging.e6154f3",
|
|
65
|
+
"@dxos/react-client": "0.7.5-staging.e6154f3",
|
|
66
|
+
"@dxos/react-ui-editor": "0.7.5-staging.e6154f3",
|
|
67
|
+
"@dxos/react-ui-pickers": "0.7.5-staging.e6154f3",
|
|
68
|
+
"@dxos/react-ui-attention": "0.7.5-staging.e6154f3",
|
|
69
|
+
"@dxos/react-ui-form": "0.7.5-staging.e6154f3",
|
|
70
|
+
"@dxos/react-ui-searchlist": "0.7.5-staging.e6154f3",
|
|
71
|
+
"@dxos/react-ui-syntax-highlighter": "0.7.5-staging.e6154f3",
|
|
72
|
+
"@dxos/react-ui-stack": "0.7.5-staging.e6154f3",
|
|
73
|
+
"@dxos/shell": "0.7.5-staging.e6154f3",
|
|
74
|
+
"@dxos/util": "0.7.5-staging.e6154f3",
|
|
75
|
+
"@dxos/react-ui-tabs": "0.7.5-staging.e6154f3"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@babel/core": "^7.18.13",
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
"react": "~18.2.0",
|
|
84
84
|
"react-dom": "~18.2.0",
|
|
85
85
|
"vite": "5.4.7",
|
|
86
|
-
"@dxos/random": "0.7.5-staging.
|
|
87
|
-
"@dxos/react-ui
|
|
88
|
-
"@dxos/react-ui": "0.7.5-staging.
|
|
89
|
-
"@dxos/storybook-utils": "0.7.5-staging.
|
|
86
|
+
"@dxos/random": "0.7.5-staging.e6154f3",
|
|
87
|
+
"@dxos/react-ui": "0.7.5-staging.e6154f3",
|
|
88
|
+
"@dxos/react-ui-theme": "0.7.5-staging.e6154f3",
|
|
89
|
+
"@dxos/storybook-utils": "0.7.5-staging.e6154f3"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@phosphor-icons/react": "^2.1.5",
|
|
93
93
|
"react": "~18.2.0",
|
|
94
94
|
"react-dom": "~18.2.0",
|
|
95
|
-
"@dxos/react-ui": "0.7.5-staging.
|
|
96
|
-
"@dxos/react-ui-theme": "0.7.5-staging.
|
|
95
|
+
"@dxos/react-ui": "0.7.5-staging.e6154f3",
|
|
96
|
+
"@dxos/react-ui-theme": "0.7.5-staging.e6154f3"
|
|
97
97
|
},
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
package/src/SpacePlugin.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import { log } from '@dxos/log';
|
|
|
9
9
|
import { ObservabilityAction } from '@dxos/plugin-observability/types';
|
|
10
10
|
import { useClient } from '@dxos/react-client';
|
|
11
11
|
import { type InvitationResult } from '@dxos/react-client/invitations';
|
|
12
|
-
import { Dialog } from '@dxos/react-ui';
|
|
12
|
+
import { Dialog, useTranslation } from '@dxos/react-ui';
|
|
13
13
|
import { JoinPanel, type JoinPanelProps } from '@dxos/shell/react';
|
|
14
14
|
|
|
15
15
|
import { SPACE_PLUGIN } from '../meta';
|
|
@@ -24,6 +24,7 @@ export const JoinDialog = ({ navigableCollections, onDone, ...props }: JoinDialo
|
|
|
24
24
|
const { dispatchPromise: dispatch } = useIntentDispatcher();
|
|
25
25
|
const client = useClient();
|
|
26
26
|
const { graph } = useAppGraph();
|
|
27
|
+
const { t } = useTranslation(SPACE_PLUGIN);
|
|
27
28
|
|
|
28
29
|
const handleDone = useCallback(
|
|
29
30
|
async (result: InvitationResult | null) => {
|
|
@@ -86,6 +87,7 @@ export const JoinDialog = ({ navigableCollections, onDone, ...props }: JoinDialo
|
|
|
86
87
|
|
|
87
88
|
return (
|
|
88
89
|
<Dialog.Content>
|
|
90
|
+
<Dialog.Title classNames='sr-only'>{t('join space label', { ns: 'os' })}</Dialog.Title>
|
|
89
91
|
<JoinPanel
|
|
90
92
|
{...props}
|
|
91
93
|
exitActionParent={<Dialog.Close asChild />}
|
|
@@ -19,27 +19,27 @@ export const PopoverAddSpace = () => {
|
|
|
19
19
|
<div role='none' className='grid grid-cols-1 gap-1 [&>button]:justify-start'>
|
|
20
20
|
<IconButton
|
|
21
21
|
variant='ghost'
|
|
22
|
-
label={t('
|
|
23
|
-
icon='ph--
|
|
22
|
+
label={t('create space label')}
|
|
23
|
+
icon='ph--plus--regular'
|
|
24
24
|
onClick={() => {
|
|
25
|
-
void dispatch(createIntent(SpaceAction.
|
|
25
|
+
void dispatch(createIntent(SpaceAction.OpenCreateSpace));
|
|
26
26
|
void dispatch(
|
|
27
27
|
createIntent(LayoutAction.UpdatePopover, { part: 'popover', options: { anchorId: '', state: false } }),
|
|
28
28
|
);
|
|
29
29
|
}}
|
|
30
|
-
data-testid='spacePlugin.
|
|
30
|
+
data-testid='spacePlugin.createSpace'
|
|
31
31
|
/>
|
|
32
32
|
<IconButton
|
|
33
33
|
variant='ghost'
|
|
34
|
-
label={t('
|
|
35
|
-
icon='ph--
|
|
34
|
+
label={t('join space label')}
|
|
35
|
+
icon='ph--sign-in--regular'
|
|
36
36
|
onClick={() => {
|
|
37
|
-
void dispatch(createIntent(SpaceAction.
|
|
37
|
+
void dispatch(createIntent(SpaceAction.Join));
|
|
38
38
|
void dispatch(
|
|
39
39
|
createIntent(LayoutAction.UpdatePopover, { part: 'popover', options: { anchorId: '', state: false } }),
|
|
40
40
|
);
|
|
41
41
|
}}
|
|
42
|
-
data-testid='spacePlugin.
|
|
42
|
+
data-testid='spacePlugin.joinSpace'
|
|
43
43
|
/>
|
|
44
44
|
</div>
|
|
45
45
|
);
|