@dxos/plugin-thread 0.7.5-main.9d2a38b → 0.7.5-main.e94eead
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/{ThreadContainer-4VLBSBI7.mjs → ThreadContainer-6OP5AG2W.mjs} +2 -2
- package/dist/lib/browser/{chunk-GQONSZ3J.mjs → chunk-UPKU23DA.mjs} +11 -23
- package/dist/lib/browser/chunk-UPKU23DA.mjs.map +7 -0
- package/dist/lib/browser/chunk-VOMIDDNO.mjs +15 -0
- package/dist/lib/browser/chunk-VOMIDDNO.mjs.map +7 -0
- package/dist/lib/browser/{chunk-NO5AZLUZ.mjs → chunk-YK3ICB7G.mjs} +2 -4
- package/dist/lib/browser/{chunk-NO5AZLUZ.mjs.map → chunk-YK3ICB7G.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +45 -47
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/intent-resolver-FAFQ54NP.mjs +287 -0
- package/dist/lib/browser/intent-resolver-FAFQ54NP.mjs.map +7 -0
- package/dist/lib/browser/{markdown-2NBXKXCY.mjs → markdown-RPYOUBVR.mjs} +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-CHCZO4TI.mjs → react-surface-Y4MUSICN.mjs} +70 -49
- package/dist/lib/browser/react-surface-Y4MUSICN.mjs.map +7 -0
- package/dist/lib/browser/{settings-TKOPRXSU.mjs → settings-WQTE5AEZ.mjs} +2 -2
- package/dist/lib/browser/types.mjs +1 -1
- package/dist/lib/node/{ThreadContainer-VOYLV4UL.cjs → ThreadContainer-LTKKLPXX.cjs} +6 -6
- package/dist/lib/node/{chunk-ZRN7B26W.cjs → chunk-BHFHFTHO.cjs} +8 -13
- package/dist/lib/node/chunk-BHFHFTHO.cjs.map +7 -0
- package/dist/lib/node/{chunk-AUVKOX5Q.cjs → chunk-CMEMMYDL.cjs} +5 -7
- package/dist/lib/node/{chunk-AUVKOX5Q.cjs.map → chunk-CMEMMYDL.cjs.map} +3 -3
- package/dist/lib/node/{chunk-6PUGKCPR.cjs → chunk-RQR5Z23G.cjs} +13 -24
- package/dist/lib/node/chunk-RQR5Z23G.cjs.map +7 -0
- package/dist/lib/node/index.cjs +46 -46
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/intent-resolver-DVBEXJ33.cjs +299 -0
- package/dist/lib/node/intent-resolver-DVBEXJ33.cjs.map +7 -0
- package/dist/lib/node/{markdown-FWRKMSKV.cjs → markdown-ELRGISXE.cjs} +7 -7
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-LO7S2HPR.cjs → react-surface-7HLTN5XS.cjs} +72 -51
- package/dist/lib/node/react-surface-7HLTN5XS.cjs.map +7 -0
- package/dist/lib/node/{settings-TH4YSUVU.cjs → settings-7VQYARM5.cjs} +6 -6
- package/dist/lib/node/types.cjs +3 -3
- package/dist/lib/node/types.cjs.map +1 -1
- package/dist/lib/node-esm/{ThreadContainer-7DZY2MWA.mjs → ThreadContainer-SV74JFRH.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-B3CF35MY.mjs → chunk-33NDMQQQ.mjs} +2 -4
- package/dist/lib/node-esm/{chunk-B3CF35MY.mjs.map → chunk-33NDMQQQ.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-DYFIKKDT.mjs → chunk-CISLDOH7.mjs} +11 -23
- package/dist/lib/node-esm/chunk-CISLDOH7.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-PJPVEO7E.mjs +17 -0
- package/dist/lib/node-esm/chunk-PJPVEO7E.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +45 -47
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/intent-resolver-DHVLBNCC.mjs +288 -0
- package/dist/lib/node-esm/intent-resolver-DHVLBNCC.mjs.map +7 -0
- package/dist/lib/node-esm/{markdown-6AQFDAW3.mjs → markdown-23OB7EZG.mjs} +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-LAF3QIPB.mjs → react-surface-AZHTTR6J.mjs} +70 -49
- package/dist/lib/node-esm/react-surface-AZHTTR6J.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-KEDRR7RM.mjs → settings-SGMM7UDT.mjs} +2 -2
- package/dist/lib/node-esm/types.mjs +1 -1
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +7 -184
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +1 -1
- package/dist/types/src/components/Chat.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatContainer.d.ts +2 -3
- package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/components/CommentContainer.d.ts +1 -2
- package/dist/types/src/components/CommentContainer.d.ts.map +1 -1
- package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
- package/dist/types/src/components/CommentsContainer.d.ts +1 -2
- package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
- package/dist/types/src/components/MessageContainer.d.ts +1 -2
- package/dist/types/src/components/MessageContainer.d.ts.map +1 -1
- package/dist/types/src/components/ThreadComplementary.d.ts +1 -2
- package/dist/types/src/components/ThreadComplementary.d.ts.map +1 -1
- package/dist/types/src/components/ThreadContainer.d.ts +2 -2
- package/dist/types/src/components/ThreadContainer.d.ts.map +1 -1
- package/dist/types/src/components/ThreadSettings.d.ts +1 -2
- package/dist/types/src/components/ThreadSettings.d.ts.map +1 -1
- package/dist/types/src/components/command-extension.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +12 -12
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +6 -3
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +5 -7
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +31 -30
- package/src/ThreadPlugin.tsx +46 -50
- package/src/capabilities/index.ts +0 -1
- package/src/capabilities/intent-resolver.ts +180 -164
- package/src/capabilities/react-surface.tsx +18 -18
- package/src/components/Chat.stories.tsx +1 -5
- package/src/components/ChatContainer.tsx +2 -2
- package/src/components/CommentContainer.tsx +2 -2
- package/src/components/Comments.stories.tsx +8 -2
- package/src/components/MessageContainer.tsx +6 -19
- package/src/components/ThreadComplementary.tsx +41 -8
- package/src/components/ThreadSettings.tsx +5 -11
- package/src/components/command-extension.ts +2 -5
- package/src/translations.ts +2 -1
- package/src/types.ts +1 -5
- package/dist/lib/browser/app-graph-builder-Q7A2ZRUA.mjs +0 -121
- package/dist/lib/browser/app-graph-builder-Q7A2ZRUA.mjs.map +0 -7
- package/dist/lib/browser/chunk-2B3EXYZ7.mjs +0 -18
- package/dist/lib/browser/chunk-2B3EXYZ7.mjs.map +0 -7
- package/dist/lib/browser/chunk-GQONSZ3J.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-PIEZ3LKQ.mjs +0 -275
- package/dist/lib/browser/intent-resolver-PIEZ3LKQ.mjs.map +0 -7
- package/dist/lib/browser/react-surface-CHCZO4TI.mjs.map +0 -7
- package/dist/lib/node/app-graph-builder-ZXW5KUDK.cjs +0 -135
- package/dist/lib/node/app-graph-builder-ZXW5KUDK.cjs.map +0 -7
- package/dist/lib/node/chunk-6PUGKCPR.cjs.map +0 -7
- package/dist/lib/node/chunk-ZRN7B26W.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-X5O3SVLF.cjs +0 -287
- package/dist/lib/node/intent-resolver-X5O3SVLF.cjs.map +0 -7
- package/dist/lib/node/react-surface-LO7S2HPR.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-ATS6HGE6.mjs +0 -122
- package/dist/lib/node-esm/app-graph-builder-ATS6HGE6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DYFIKKDT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GS2OILYF.mjs +0 -20
- package/dist/lib/node-esm/chunk-GS2OILYF.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-XJWT5X6T.mjs +0 -276
- package/dist/lib/node-esm/intent-resolver-XJWT5X6T.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-LAF3QIPB.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -180
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -120
- /package/dist/lib/browser/{ThreadContainer-4VLBSBI7.mjs.map → ThreadContainer-6OP5AG2W.mjs.map} +0 -0
- /package/dist/lib/browser/{markdown-2NBXKXCY.mjs.map → markdown-RPYOUBVR.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-TKOPRXSU.mjs.map → settings-WQTE5AEZ.mjs.map} +0 -0
- /package/dist/lib/node/{ThreadContainer-VOYLV4UL.cjs.map → ThreadContainer-LTKKLPXX.cjs.map} +0 -0
- /package/dist/lib/node/{markdown-FWRKMSKV.cjs.map → markdown-ELRGISXE.cjs.map} +0 -0
- /package/dist/lib/node/{settings-TH4YSUVU.cjs.map → settings-7VQYARM5.cjs.map} +0 -0
- /package/dist/lib/node-esm/{ThreadContainer-7DZY2MWA.mjs.map → ThreadContainer-SV74JFRH.mjs.map} +0 -0
- /package/dist/lib/node-esm/{markdown-6AQFDAW3.mjs.map → markdown-23OB7EZG.mjs.map} +0 -0
- /package/dist/lib/node-esm/{settings-KEDRR7RM.mjs.map → settings-SGMM7UDT.mjs.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/intent-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {\n Capabilities,\n contributes,\n createIntent,\n createResolver,\n LayoutAction,\n type PluginsContext,\n} from '@dxos/app-framework';\nimport { Ref } from '@dxos/echo-schema';\nimport { log } from '@dxos/log';\nimport { ObservabilityAction } from '@dxos/plugin-observability/types';\nimport { ChannelType, ThreadType } from '@dxos/plugin-space/types';\nimport { create, fullyQualifiedId, getSpace, makeRef } from '@dxos/react-client/echo';\n\nimport { ThreadCapabilities } from './capabilities';\nimport { THREAD_PLUGIN } from '../meta';\nimport { ThreadAction } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.IntentResolver, [\n createResolver({\n intent: ThreadAction.Create,\n resolve: ({ name, cursor, subject }) => {\n if (cursor && subject) {\n // Seed the threads array if it does not exist.\n if (subject?.threads === undefined) {\n try {\n // Static schema will throw an error if subject does not support threads array property.\n subject.threads = [];\n } catch (err) {\n log.error('Subject does not support threads array', { typename: subject?.typename });\n return;\n }\n }\n\n const { state } = context.requestCapability(ThreadCapabilities.MutableState);\n const subjectId = fullyQualifiedId(subject);\n const thread = create(ThreadType, { name, anchor: cursor, messages: [], status: 'staged' });\n const draft = state.drafts[subjectId];\n if (draft) {\n draft.push(thread);\n } else {\n state.drafts[subjectId] = [thread];\n }\n\n return {\n data: { object: thread },\n intents: [\n createIntent(ThreadAction.Select, { current: fullyQualifiedId(thread) }),\n createIntent(LayoutAction.UpdateComplementary, { part: 'complementary', subject: 'comments' }),\n ],\n };\n } else {\n // TODO(wittjosiah): Create separate intent for channel creation.\n return {\n data: { object: create(ChannelType, { threads: [makeRef(create(ThreadType, { messages: [] }))] }) },\n };\n }\n },\n }),\n createResolver({\n intent: ThreadAction.Select,\n resolve: ({ current, skipOpen }) => {\n const { state } = context.requestCapability(ThreadCapabilities.MutableState);\n state.current = current;\n\n return {\n intents: !skipOpen\n ? [createIntent(LayoutAction.UpdateComplementary, { part: 'complementary', subject: 'comments' })]\n : undefined,\n };\n },\n }),\n createResolver({\n intent: ThreadAction.ToggleResolved,\n resolve: ({ thread }) => {\n if (thread.status === 'active' || thread.status === undefined) {\n thread.status = 'resolved';\n } else if (thread.status === 'resolved') {\n thread.status = 'active';\n }\n\n const space = getSpace(thread);\n const spaceId = space?.id;\n\n return {\n intents: [\n createIntent(ObservabilityAction.SendEvent, {\n name: 'threads.toggle-resolved',\n properties: { threadId: thread.id, spaceId },\n }),\n ],\n };\n },\n }),\n createResolver({\n intent: ThreadAction.Delete,\n resolve: ({ subject, thread }, undo) => {\n const { state } = context.requestCapability(ThreadCapabilities.MutableState);\n const subjectId = fullyQualifiedId(subject);\n const draft = state.drafts[subjectId];\n if (draft) {\n // Check if we're deleting a draft; if so, remove it.\n const index = draft.findIndex((t) => t.id === thread.id);\n if (index !== -1) {\n draft.splice(index, 1);\n return;\n }\n }\n\n const space = getSpace(thread);\n if (!space || !subject.threads) {\n return;\n }\n\n if (!undo) {\n const index = subject.threads.findIndex((t: any) => t?.id === thread.id);\n const cursor = subject.threads[index]?.anchor;\n if (index !== -1) {\n subject.threads?.splice(index, 1);\n }\n\n space.db.remove(thread);\n\n return {\n undoable: {\n message: ['thread deleted label', { ns: THREAD_PLUGIN }],\n data: { cursor },\n },\n intents: [\n createIntent(ObservabilityAction.SendEvent, {\n name: 'threads.delete',\n properties: { threadId: thread.id, spaceId: space.id },\n }),\n ],\n };\n } else {\n // TODO(wittjosiah): SDK should do this automatically.\n const savedThread = space.db.add(thread);\n subject.threads.push(savedThread);\n\n return {\n intents: [\n createIntent(ObservabilityAction.SendEvent, {\n name: 'threads.undo-delete',\n properties: { threadId: thread.id, spaceId: space.id },\n }),\n ],\n };\n }\n },\n }),\n createResolver({\n intent: ThreadAction.OnMessageAdd,\n resolve: ({ thread, subject }) => {\n const { state } = context.requestCapability(ThreadCapabilities.MutableState);\n const subjectId = fullyQualifiedId(subject);\n const space = getSpace(subject);\n const intents = [];\n const analyticsProperties = { threadId: thread.id, spaceId: space?.id };\n\n if (state.drafts[subjectId]?.find((t) => t === thread)) {\n // Move draft to document.\n thread.status = 'active';\n subject.threads ? subject.threads.push(makeRef(thread)) : (subject.threads = [makeRef(thread)]);\n state.drafts[subjectId] = state.drafts[subjectId]?.filter(({ id }) => id !== thread.id);\n intents.push(\n createIntent(ObservabilityAction.SendEvent, {\n name: 'threads.thread-created',\n properties: analyticsProperties,\n }),\n );\n }\n\n intents.push(\n createIntent(ObservabilityAction.SendEvent, {\n name: 'threads.message-added',\n properties: { ...analyticsProperties, threadLength: thread.messages.length },\n }),\n );\n\n return { intents };\n },\n }),\n createResolver({\n intent: ThreadAction.DeleteMessage,\n resolve: ({ subject, thread, messageId, message, messageIndex }, undo) => {\n const space = getSpace(subject);\n\n if (!undo) {\n const messageIndex = thread.messages.findIndex(Ref.hasObjectId(messageId));\n const message = thread.messages[messageIndex]?.target;\n if (!message) {\n return;\n }\n\n if (messageIndex === 0 && thread.messages.length === 1) {\n // If the message is the only message in the thread, delete the thread.\n return {\n intents: [createIntent(ThreadAction.Delete, { subject, thread })],\n };\n } else {\n thread.messages.splice(messageIndex, 1);\n }\n\n return {\n undoable: {\n message: ['message deleted label', { ns: THREAD_PLUGIN }],\n data: { message, messageIndex },\n },\n intents: [\n createIntent(ObservabilityAction.SendEvent, {\n name: 'threads.message.delete',\n properties: { threadId: thread.id, spaceId: space?.id },\n }),\n ],\n };\n } else {\n if (!messageIndex || !message) {\n return;\n }\n\n thread.messages.splice(messageIndex, 0, makeRef(message));\n return {\n intents: [\n createIntent(ObservabilityAction.SendEvent, {\n name: 'threads.message.undo-delete',\n properties: { threadId: thread.id, spaceId: space?.id },\n }),\n ],\n };\n }\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["import_types", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "ThreadAction", "Create", "resolve", "name", "cursor", "subject", "threads", "undefined", "err", "log", "error", "typename", "state", "requestCapability", "ThreadCapabilities", "MutableState", "subjectId", "fullyQualifiedId", "thread", "create", "ThreadType", "anchor", "messages", "status", "draft", "drafts", "push", "data", "object", "intents", "createIntent", "Select", "current", "LayoutAction", "UpdateComplementary", "part", "ChannelType", "makeRef", "skipOpen", "ToggleResolved", "space", "getSpace", "spaceId", "id", "ObservabilityAction", "SendEvent", "properties", "threadId", "Delete", "undo", "index", "findIndex", "t", "splice", "db", "remove", "undoable", "message", "ns", "THREAD_PLUGIN", "savedThread", "add", "OnMessageAdd", "analyticsProperties", "find", "filter", "threadLength", "length", "DeleteMessage", "messageId", "messageIndex", "Ref", "hasObjectId", "target"]
|
|
7
|
+
}
|
|
@@ -16,13 +16,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var markdown_ELRGISXE_exports = {};
|
|
20
|
+
__export(markdown_ELRGISXE_exports, {
|
|
21
21
|
default: () => markdown_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(markdown_ELRGISXE_exports);
|
|
24
|
+
var import_chunk_CMEMMYDL = require("./chunk-CMEMMYDL.cjs");
|
|
24
25
|
var import_chunk_FPWNZ6TB = require("./chunk-FPWNZ6TB.cjs");
|
|
25
|
-
var import_chunk_AUVKOX5Q = require("./chunk-AUVKOX5Q.cjs");
|
|
26
26
|
var import_chunk_F735VMTN = require("./chunk-F735VMTN.cjs");
|
|
27
27
|
var import_app_framework = require("@dxos/app-framework");
|
|
28
28
|
var import_plugin_markdown = require("@dxos/plugin-markdown");
|
|
@@ -74,7 +74,7 @@ var threads = (state, doc, dispatch) => {
|
|
|
74
74
|
id: (0, import_echo.fullyQualifiedId)(doc),
|
|
75
75
|
onCreate: ({ cursor }) => {
|
|
76
76
|
const name = getName(doc, cursor);
|
|
77
|
-
void dispatch((0, import_app_framework2.createIntent)(
|
|
77
|
+
void dispatch((0, import_app_framework2.createIntent)(import_chunk_CMEMMYDL.ThreadAction.Create, {
|
|
78
78
|
cursor,
|
|
79
79
|
name,
|
|
80
80
|
subject: doc
|
|
@@ -103,7 +103,7 @@ var threads = (state, doc, dispatch) => {
|
|
|
103
103
|
onSelect: ({ selection }) => {
|
|
104
104
|
const current = selection.current ?? selection.closest;
|
|
105
105
|
if (current) {
|
|
106
|
-
void dispatch((0, import_app_framework2.createIntent)(
|
|
106
|
+
void dispatch((0, import_app_framework2.createIntent)(import_chunk_CMEMMYDL.ThreadAction.Select, {
|
|
107
107
|
current,
|
|
108
108
|
skipOpen: true
|
|
109
109
|
}));
|
|
@@ -119,4 +119,4 @@ var markdown_default = (context) => (0, import_app_framework.contributes)(import
|
|
|
119
119
|
return threads(state, doc, dispatch);
|
|
120
120
|
}
|
|
121
121
|
]);
|
|
122
|
-
//# sourceMappingURL=markdown-
|
|
122
|
+
//# sourceMappingURL=markdown-ELRGISXE.cjs.map
|
package/dist/lib/node/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-thread/src/hooks/useStatus.ts":{"bytes":3661,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-thread/src/hooks/analytics.ts":{"bytes":4342,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-thread/src/hooks/index.ts":{"bytes":602,"imports":[{"path":"packages/plugins/plugin-thread/src/hooks/useStatus.ts","kind":"import-statement","original":"./useStatus"},{"path":"packages/plugins/plugin-thread/src/hooks/analytics.ts","kind":"import-statement","original":"./analytics"}],"format":"esm"},"packages/plugins/plugin-thread/src/meta.ts":{"bytes":1668,"imports":[],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/capabilities.ts":{"bytes":2014,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/app-graph-builder.ts":{"bytes":15845,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/types.ts":{"bytes":8961,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/intent-resolver.ts":{"bytes":30621,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-thread/src/extensions/threads.ts":{"bytes":14240,"imports":[{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-thread/src/extensions/index.ts":{"bytes":512,"imports":[{"path":"packages/plugins/plugin-thread/src/extensions/threads.ts","kind":"import-statement","original":"./threads"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/markdown.ts":{"bytes":2695,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-thread/src/extensions/index.ts","kind":"import-statement","original":"../extensions"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/command-extension.ts":{"bytes":3679,"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-thread/src/util.ts":{"bytes":3056,"imports":[{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-thread/src/components/MessageContainer.tsx":{"bytes":23727,"imports":[{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/command-extension.ts","kind":"import-statement","original":"./command-extension"},{"path":"packages/plugins/plugin-thread/src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/CommentContainer.tsx":{"bytes":24898,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/MessageContainer.tsx","kind":"import-statement","original":"./MessageContainer"},{"path":"packages/plugins/plugin-thread/src/components/command-extension.ts","kind":"import-statement","original":"./command-extension"},{"path":"packages/plugins/plugin-thread/src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/CommentsContainer.tsx":{"bytes":7688,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/CommentContainer.tsx","kind":"import-statement","original":"./CommentContainer"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/ChatContainer.tsx":{"bytes":18955,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/MessageContainer.tsx","kind":"import-statement","original":"./MessageContainer"},{"path":"packages/plugins/plugin-thread/src/components/command-extension.ts","kind":"import-statement","original":"./command-extension"},{"path":"packages/plugins/plugin-thread/src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/ThreadComplementary.tsx":{"bytes":16129,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/index.ts","kind":"import-statement","original":"../capabilities"},{"path":"packages/plugins/plugin-thread/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/ThreadSettings.tsx":{"bytes":2637,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/ThreadContainer.tsx":{"bytes":1851,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/ChatContainer.tsx","kind":"import-statement","original":"./ChatContainer"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/index.ts":{"bytes":1612,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/CommentContainer.tsx","kind":"import-statement","original":"./CommentContainer"},{"path":"packages/plugins/plugin-thread/src/components/CommentsContainer.tsx","kind":"import-statement","original":"./CommentsContainer"},{"path":"packages/plugins/plugin-thread/src/components/ChatContainer.tsx","kind":"import-statement","original":"./ChatContainer"},{"path":"packages/plugins/plugin-thread/src/components/MessageContainer.tsx","kind":"import-statement","original":"./MessageContainer"},{"path":"packages/plugins/plugin-thread/src/components/ThreadComplementary.tsx","kind":"import-statement","original":"./ThreadComplementary"},{"path":"packages/plugins/plugin-thread/src/components/ThreadSettings.tsx","kind":"import-statement","original":"./ThreadSettings"},{"path":"packages/plugins/plugin-thread/src/components/ThreadContainer.tsx","kind":"dynamic-import","original":"./ThreadContainer"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/react-surface.tsx":{"bytes":9514,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/settings.ts":{"bytes":1949,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/state.ts":{"bytes":2760,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/index.ts":{"bytes":2127,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-thread/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-thread/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-thread/src/capabilities/markdown.ts","kind":"dynamic-import","original":"./markdown"},{"path":"packages/plugins/plugin-thread/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"packages/plugins/plugin-thread/src/capabilities/settings.ts","kind":"dynamic-import","original":"./settings"},{"path":"packages/plugins/plugin-thread/src/capabilities/state.ts","kind":"dynamic-import","original":"./state"}],"format":"esm"},"packages/plugins/plugin-thread/src/translations.ts":{"bytes":5721,"imports":[{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/ThreadPlugin.tsx":{"bytes":19679,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-thread/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-thread/src/index.ts":{"bytes":679,"imports":[{"path":"packages/plugins/plugin-thread/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-thread/src/ThreadPlugin.tsx","kind":"import-statement","original":"./ThreadPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-thread/dist/lib/node/state-TQWEZ6B3.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1399},"packages/plugins/plugin-thread/dist/lib/node/state-TQWEZ6B3.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/state.ts","inputs":{"packages/plugins/plugin-thread/src/capabilities/state.ts":{"bytesInOutput":529}},"bytes":765},"packages/plugins/plugin-thread/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11539},"packages/plugins/plugin-thread/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-ZRN7B26W.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AUVKOX5Q.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["THREAD_ITEM","THREAD_PLUGIN","ThreadPlugin","meta","useAnalyticsCallback","useOnEditAnalytics","useStatus"],"entryPoint":"packages/plugins/plugin-thread/src/index.ts","inputs":{"packages/plugins/plugin-thread/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-thread/src/ThreadPlugin.tsx":{"bytesInOutput":4360},"packages/plugins/plugin-thread/src/translations.ts":{"bytesInOutput":1726}},"bytes":6814},"packages/plugins/plugin-thread/dist/lib/node/types.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-thread/dist/lib/node/types.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AUVKOX5Q.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"}],"exports":["ThreadAction","ThreadSettingsSchema"],"entryPoint":"packages/plugins/plugin-thread/src/types.ts","inputs":{},"bytes":196},"packages/plugins/plugin-thread/dist/lib/node/app-graph-builder-ZXW5KUDK.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7763},"packages/plugins/plugin-thread/dist/lib/node/app-graph-builder-ZXW5KUDK.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-thread/src/capabilities/app-graph-builder.ts":{"bytesInOutput":3839}},"bytes":4136},"packages/plugins/plugin-thread/dist/lib/node/intent-resolver-X5O3SVLF.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13805},"packages/plugins/plugin-thread/dist/lib/node/intent-resolver-X5O3SVLF.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AUVKOX5Q.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-thread/src/capabilities/intent-resolver.ts":{"bytesInOutput":7580}},"bytes":7926},"packages/plugins/plugin-thread/dist/lib/node/markdown-FWRKMSKV.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8575},"packages/plugins/plugin-thread/dist/lib/node/markdown-FWRKMSKV.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AUVKOX5Q.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/markdown.ts","inputs":{"packages/plugins/plugin-thread/src/capabilities/markdown.ts":{"bytesInOutput":469},"packages/plugins/plugin-thread/src/extensions/threads.ts":{"bytesInOutput":2994},"packages/plugins/plugin-thread/src/extensions/index.ts":{"bytesInOutput":0}},"bytes":3888},"packages/plugins/plugin-thread/dist/lib/node/ThreadContainer-VOYLV4UL.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":951},"packages/plugins/plugin-thread/dist/lib/node/ThreadContainer-VOYLV4UL.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-6PUGKCPR.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/components/ThreadContainer.tsx","inputs":{"packages/plugins/plugin-thread/src/components/ThreadContainer.tsx":{"bytesInOutput":325}},"bytes":616},"packages/plugins/plugin-thread/dist/lib/node/react-surface-LO7S2HPR.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":32506},"packages/plugins/plugin-thread/dist/lib/node/react-surface-LO7S2HPR.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-ZRN7B26W.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-6PUGKCPR.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AUVKOX5Q.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/dist/lib/node/ThreadContainer-VOYLV4UL.cjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-thread/src/capabilities/react-surface.tsx":{"bytesInOutput":2149},"packages/plugins/plugin-thread/src/components/index.ts":{"bytesInOutput":106},"packages/plugins/plugin-thread/src/components/CommentContainer.tsx":{"bytesInOutput":6573},"packages/plugins/plugin-thread/src/components/CommentsContainer.tsx":{"bytesInOutput":1776},"packages/plugins/plugin-thread/src/components/ThreadComplementary.tsx":{"bytesInOutput":3769},"packages/plugins/plugin-thread/src/components/ThreadSettings.tsx":{"bytesInOutput":591}},"bytes":15954},"packages/plugins/plugin-thread/dist/lib/node/chunk-ZRN7B26W.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1047},"packages/plugins/plugin-thread/dist/lib/node/chunk-ZRN7B26W.cjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/dist/lib/node/app-graph-builder-ZXW5KUDK.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-thread/dist/lib/node/intent-resolver-X5O3SVLF.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-thread/dist/lib/node/markdown-FWRKMSKV.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-thread/dist/lib/node/react-surface-LO7S2HPR.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-thread/dist/lib/node/settings-TH4YSUVU.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-thread/dist/lib/node/state-TQWEZ6B3.cjs","kind":"dynamic-import"}],"exports":["AppGraphBuilder","IntentResolver","Markdown","ReactSurface","ThreadSettings","ThreadState"],"inputs":{"packages/plugins/plugin-thread/src/capabilities/index.ts":{"bytesInOutput":460}},"bytes":674},"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1052},"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["ThreadCapabilities"],"inputs":{"packages/plugins/plugin-thread/src/capabilities/capabilities.ts":{"bytesInOutput":343}},"bytes":545},"packages/plugins/plugin-thread/dist/lib/node/chunk-6PUGKCPR.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":25734},"packages/plugins/plugin-thread/dist/lib/node/chunk-6PUGKCPR.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["ChatContainer","MessageContainer","command","getMessageMetadata"],"inputs":{"packages/plugins/plugin-thread/src/components/ChatContainer.tsx":{"bytesInOutput":4146},"packages/plugins/plugin-thread/src/components/MessageContainer.tsx":{"bytesInOutput":6115},"packages/plugins/plugin-thread/src/components/command-extension.ts":{"bytesInOutput":715},"packages/plugins/plugin-thread/src/util.ts":{"bytesInOutput":563}},"bytes":12206},"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4158},"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["useAnalyticsCallback","useOnEditAnalytics","useStatus"],"inputs":{"packages/plugins/plugin-thread/src/hooks/useStatus.ts":{"bytesInOutput":748},"packages/plugins/plugin-thread/src/hooks/analytics.ts":{"bytesInOutput":976},"packages/plugins/plugin-thread/src/hooks/index.ts":{"bytesInOutput":0}},"bytes":1954},"packages/plugins/plugin-thread/dist/lib/node/settings-TH4YSUVU.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":966},"packages/plugins/plugin-thread/dist/lib/node/settings-TH4YSUVU.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AUVKOX5Q.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/settings.ts","inputs":{"packages/plugins/plugin-thread/src/capabilities/settings.ts":{"bytesInOutput":307}},"bytes":579},"packages/plugins/plugin-thread/dist/lib/node/chunk-AUVKOX5Q.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4662},"packages/plugins/plugin-thread/dist/lib/node/chunk-AUVKOX5Q.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["ThreadAction","ThreadSettingsSchema"],"inputs":{"packages/plugins/plugin-thread/src/types.ts":{"bytesInOutput":2039}},"bytes":2239},"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":791},"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs":{"imports":[],"exports":["THREAD_ITEM","THREAD_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-thread/src/meta.ts":{"bytesInOutput":306}},"bytes":448}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-thread/src/hooks/useStatus.ts":{"bytes":3661,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-thread/src/hooks/analytics.ts":{"bytes":4342,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-thread/src/hooks/index.ts":{"bytes":602,"imports":[{"path":"packages/plugins/plugin-thread/src/hooks/useStatus.ts","kind":"import-statement","original":"./useStatus"},{"path":"packages/plugins/plugin-thread/src/hooks/analytics.ts","kind":"import-statement","original":"./analytics"}],"format":"esm"},"packages/plugins/plugin-thread/src/meta.ts":{"bytes":1668,"imports":[],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/capabilities.ts":{"bytes":2014,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/types.ts":{"bytes":8774,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/intent-resolver.ts":{"bytes":32490,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-thread/src/extensions/threads.ts":{"bytes":14240,"imports":[{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-thread/src/extensions/index.ts":{"bytes":512,"imports":[{"path":"packages/plugins/plugin-thread/src/extensions/threads.ts","kind":"import-statement","original":"./threads"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/markdown.ts":{"bytes":2695,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-thread/src/extensions/index.ts","kind":"import-statement","original":"../extensions"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/command-extension.ts":{"bytes":3522,"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-thread/src/util.ts":{"bytes":3056,"imports":[{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-thread/src/components/MessageContainer.tsx":{"bytes":22224,"imports":[{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/command-extension.ts","kind":"import-statement","original":"./command-extension"},{"path":"packages/plugins/plugin-thread/src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/CommentContainer.tsx":{"bytes":24910,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/MessageContainer.tsx","kind":"import-statement","original":"./MessageContainer"},{"path":"packages/plugins/plugin-thread/src/components/command-extension.ts","kind":"import-statement","original":"./command-extension"},{"path":"packages/plugins/plugin-thread/src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/CommentsContainer.tsx":{"bytes":7688,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/CommentContainer.tsx","kind":"import-statement","original":"./CommentContainer"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/ChatContainer.tsx":{"bytes":19005,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/MessageContainer.tsx","kind":"import-statement","original":"./MessageContainer"},{"path":"packages/plugins/plugin-thread/src/components/command-extension.ts","kind":"import-statement","original":"./command-extension"},{"path":"packages/plugins/plugin-thread/src/hooks/index.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/ThreadComplementary.tsx":{"bytes":20154,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/index.ts","kind":"import-statement","original":"../capabilities"},{"path":"packages/plugins/plugin-thread/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/ThreadSettings.tsx":{"bytes":1673,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-thread/src/components/ThreadContainer.tsx":{"bytes":1851,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/ChatContainer.tsx","kind":"import-statement","original":"./ChatContainer"}],"format":"esm"},"packages/plugins/plugin-thread/src/components/index.ts":{"bytes":1612,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/CommentContainer.tsx","kind":"import-statement","original":"./CommentContainer"},{"path":"packages/plugins/plugin-thread/src/components/CommentsContainer.tsx","kind":"import-statement","original":"./CommentsContainer"},{"path":"packages/plugins/plugin-thread/src/components/ChatContainer.tsx","kind":"import-statement","original":"./ChatContainer"},{"path":"packages/plugins/plugin-thread/src/components/MessageContainer.tsx","kind":"import-statement","original":"./MessageContainer"},{"path":"packages/plugins/plugin-thread/src/components/ThreadComplementary.tsx","kind":"import-statement","original":"./ThreadComplementary"},{"path":"packages/plugins/plugin-thread/src/components/ThreadSettings.tsx","kind":"import-statement","original":"./ThreadSettings"},{"path":"packages/plugins/plugin-thread/src/components/ThreadContainer.tsx","kind":"dynamic-import","original":"./ThreadContainer"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/react-surface.tsx":{"bytes":8922,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/settings.ts":{"bytes":1949,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/state.ts":{"bytes":2760,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"packages/plugins/plugin-thread/src/capabilities/index.ts":{"bytes":1859,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-thread/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-thread/src/capabilities/markdown.ts","kind":"dynamic-import","original":"./markdown"},{"path":"packages/plugins/plugin-thread/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"packages/plugins/plugin-thread/src/capabilities/settings.ts","kind":"dynamic-import","original":"./settings"},{"path":"packages/plugins/plugin-thread/src/capabilities/state.ts","kind":"dynamic-import","original":"./state"}],"format":"esm"},"packages/plugins/plugin-thread/src/translations.ts":{"bytes":5784,"imports":[{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-thread/src/ThreadPlugin.tsx":{"bytes":20483,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-thread/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-thread/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-thread/src/index.ts":{"bytes":679,"imports":[{"path":"packages/plugins/plugin-thread/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/plugins/plugin-thread/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-thread/src/ThreadPlugin.tsx","kind":"import-statement","original":"./ThreadPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-thread/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11886},"packages/plugins/plugin-thread/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-BHFHFTHO.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-CMEMMYDL.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["THREAD_ITEM","THREAD_PLUGIN","ThreadPlugin","meta","useAnalyticsCallback","useOnEditAnalytics","useStatus"],"entryPoint":"packages/plugins/plugin-thread/src/index.ts","inputs":{"packages/plugins/plugin-thread/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-thread/src/ThreadPlugin.tsx":{"bytesInOutput":4846},"packages/plugins/plugin-thread/src/translations.ts":{"bytesInOutput":1741}},"bytes":7278},"packages/plugins/plugin-thread/dist/lib/node/types.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-thread/dist/lib/node/types.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-CMEMMYDL.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"}],"exports":["ThreadAction","ThreadSettingsSchema"],"entryPoint":"packages/plugins/plugin-thread/src/types.ts","inputs":{},"bytes":196},"packages/plugins/plugin-thread/dist/lib/node/intent-resolver-DVBEXJ33.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":14348},"packages/plugins/plugin-thread/dist/lib/node/intent-resolver-DVBEXJ33.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-CMEMMYDL.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-thread/src/capabilities/intent-resolver.ts":{"bytesInOutput":8097}},"bytes":8443},"packages/plugins/plugin-thread/dist/lib/node/markdown-ELRGISXE.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8575},"packages/plugins/plugin-thread/dist/lib/node/markdown-ELRGISXE.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-CMEMMYDL.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/markdown.ts","inputs":{"packages/plugins/plugin-thread/src/capabilities/markdown.ts":{"bytesInOutput":469},"packages/plugins/plugin-thread/src/extensions/threads.ts":{"bytesInOutput":2994},"packages/plugins/plugin-thread/src/extensions/index.ts":{"bytesInOutput":0}},"bytes":3888},"packages/plugins/plugin-thread/dist/lib/node/ThreadContainer-LTKKLPXX.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":951},"packages/plugins/plugin-thread/dist/lib/node/ThreadContainer-LTKKLPXX.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-RQR5Z23G.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/components/ThreadContainer.tsx","inputs":{"packages/plugins/plugin-thread/src/components/ThreadContainer.tsx":{"bytesInOutput":325}},"bytes":616},"packages/plugins/plugin-thread/dist/lib/node/react-surface-7HLTN5XS.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":33823},"packages/plugins/plugin-thread/dist/lib/node/react-surface-7HLTN5XS.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-BHFHFTHO.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-RQR5Z23G.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-CMEMMYDL.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/dist/lib/node/ThreadContainer-LTKKLPXX.cjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-thread/src/capabilities/react-surface.tsx":{"bytesInOutput":2024},"packages/plugins/plugin-thread/src/components/index.ts":{"bytesInOutput":106},"packages/plugins/plugin-thread/src/components/CommentContainer.tsx":{"bytesInOutput":6577},"packages/plugins/plugin-thread/src/components/CommentsContainer.tsx":{"bytesInOutput":1776},"packages/plugins/plugin-thread/src/components/ThreadComplementary.tsx":{"bytesInOutput":4984},"packages/plugins/plugin-thread/src/components/ThreadSettings.tsx":{"bytesInOutput":213}},"bytes":16670},"packages/plugins/plugin-thread/dist/lib/node/chunk-BHFHFTHO.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":907},"packages/plugins/plugin-thread/dist/lib/node/chunk-BHFHFTHO.cjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-thread/dist/lib/node/intent-resolver-DVBEXJ33.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-thread/dist/lib/node/markdown-ELRGISXE.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-thread/dist/lib/node/react-surface-7HLTN5XS.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-thread/dist/lib/node/settings-7VQYARM5.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-thread/dist/lib/node/state-TQWEZ6B3.cjs","kind":"dynamic-import"}],"exports":["IntentResolver","Markdown","ReactSurface","ThreadState"],"inputs":{"packages/plugins/plugin-thread/src/capabilities/index.ts":{"bytesInOutput":382}},"bytes":559},"packages/plugins/plugin-thread/dist/lib/node/chunk-RQR5Z23G.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":24864},"packages/plugins/plugin-thread/dist/lib/node/chunk-RQR5Z23G.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/react-ui-thread","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/display-name","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["ChatContainer","MessageContainer","command","getMessageMetadata"],"inputs":{"packages/plugins/plugin-thread/src/components/ChatContainer.tsx":{"bytesInOutput":4165},"packages/plugins/plugin-thread/src/components/MessageContainer.tsx":{"bytesInOutput":5797},"packages/plugins/plugin-thread/src/components/command-extension.ts":{"bytesInOutput":688},"packages/plugins/plugin-thread/src/util.ts":{"bytesInOutput":563}},"bytes":11865},"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4158},"packages/plugins/plugin-thread/dist/lib/node/chunk-AWSTZ2KN.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["useAnalyticsCallback","useOnEditAnalytics","useStatus"],"inputs":{"packages/plugins/plugin-thread/src/hooks/useStatus.ts":{"bytesInOutput":748},"packages/plugins/plugin-thread/src/hooks/analytics.ts":{"bytesInOutput":976},"packages/plugins/plugin-thread/src/hooks/index.ts":{"bytesInOutput":0}},"bytes":1954},"packages/plugins/plugin-thread/dist/lib/node/settings-7VQYARM5.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":966},"packages/plugins/plugin-thread/dist/lib/node/settings-7VQYARM5.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-CMEMMYDL.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/settings.ts","inputs":{"packages/plugins/plugin-thread/src/capabilities/settings.ts":{"bytesInOutput":307}},"bytes":579},"packages/plugins/plugin-thread/dist/lib/node/chunk-CMEMMYDL.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4557},"packages/plugins/plugin-thread/dist/lib/node/chunk-CMEMMYDL.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["ThreadAction","ThreadSettingsSchema"],"inputs":{"packages/plugins/plugin-thread/src/types.ts":{"bytesInOutput":2002}},"bytes":2202},"packages/plugins/plugin-thread/dist/lib/node/state-TQWEZ6B3.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1399},"packages/plugins/plugin-thread/dist/lib/node/state-TQWEZ6B3.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-thread/src/capabilities/state.ts","inputs":{"packages/plugins/plugin-thread/src/capabilities/state.ts":{"bytesInOutput":529}},"bytes":765},"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1052},"packages/plugins/plugin-thread/dist/lib/node/chunk-FPWNZ6TB.cjs":{"imports":[{"path":"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["ThreadCapabilities"],"inputs":{"packages/plugins/plugin-thread/src/capabilities/capabilities.ts":{"bytesInOutput":343}},"bytes":545},"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":791},"packages/plugins/plugin-thread/dist/lib/node/chunk-F735VMTN.cjs":{"imports":[],"exports":["THREAD_ITEM","THREAD_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-thread/src/meta.ts":{"bytesInOutput":306}},"bytes":448}}}
|
|
@@ -26,19 +26,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var react_surface_7HLTN5XS_exports = {};
|
|
30
|
+
__export(react_surface_7HLTN5XS_exports, {
|
|
31
31
|
default: () => react_surface_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var import_chunk_6PUGKCPR = require("./chunk-6PUGKCPR.cjs");
|
|
33
|
+
module.exports = __toCommonJS(react_surface_7HLTN5XS_exports);
|
|
34
|
+
var import_chunk_BHFHFTHO = require("./chunk-BHFHFTHO.cjs");
|
|
35
|
+
var import_chunk_RQR5Z23G = require("./chunk-RQR5Z23G.cjs");
|
|
37
36
|
var import_chunk_AWSTZ2KN = require("./chunk-AWSTZ2KN.cjs");
|
|
38
|
-
var
|
|
37
|
+
var import_chunk_CMEMMYDL = require("./chunk-CMEMMYDL.cjs");
|
|
38
|
+
var import_chunk_FPWNZ6TB = require("./chunk-FPWNZ6TB.cjs");
|
|
39
39
|
var import_chunk_F735VMTN = require("./chunk-F735VMTN.cjs");
|
|
40
40
|
var import_react = __toESM(require("react"));
|
|
41
41
|
var import_app_framework = require("@dxos/app-framework");
|
|
42
|
+
var import_local_storage = require("@dxos/local-storage");
|
|
42
43
|
var import_types = require("@dxos/plugin-space/types");
|
|
43
44
|
var import_echo = require("@dxos/react-client/echo");
|
|
44
45
|
var import_react2 = require("react");
|
|
@@ -63,10 +64,11 @@ var import_plugin_space = require("@dxos/plugin-space");
|
|
|
63
64
|
var import_types2 = require("@dxos/plugin-space/types");
|
|
64
65
|
var import_echo4 = require("@dxos/react-client/echo");
|
|
65
66
|
var import_halo2 = require("@dxos/react-client/halo");
|
|
67
|
+
var import_react_ui3 = require("@dxos/react-ui");
|
|
66
68
|
var import_react_ui_attention = require("@dxos/react-ui-attention");
|
|
69
|
+
var import_react_ui_tabs = require("@dxos/react-ui-tabs");
|
|
67
70
|
var import_util2 = require("@dxos/util");
|
|
68
71
|
var import_react8 = __toESM(require("react"));
|
|
69
|
-
var import_react_ui3 = require("@dxos/react-ui");
|
|
70
72
|
var import_react_ui_form = require("@dxos/react-ui-form");
|
|
71
73
|
var sizeClass = (0, import_react_ui_theme.getSize)(4);
|
|
72
74
|
var commentControlClassNames = "!p-1 !min-bs-0 transition-opacity";
|
|
@@ -121,7 +123,7 @@ var CommentContainer = ({ thread, detached, current, onAttend, onComment, onReso
|
|
|
121
123
|
const { t } = (0, import_react_ui.useTranslation)(import_chunk_F735VMTN.THREAD_PLUGIN);
|
|
122
124
|
const threadScrollRef = (0, import_react4.useRef)(null);
|
|
123
125
|
const { themeMode } = (0, import_react_ui.useThemeContext)();
|
|
124
|
-
const textboxMetadata = (0,
|
|
126
|
+
const textboxMetadata = (0, import_chunk_RQR5Z23G.getMessageMetadata)((0, import_echo2.fullyQualifiedId)(thread), identity);
|
|
125
127
|
const [_count, _setCount] = (0, import_react4.useState)(0);
|
|
126
128
|
const rerenderEditor = () => _setCount((count) => count + 1);
|
|
127
129
|
const messageRef = (0, import_react4.useRef)("");
|
|
@@ -135,7 +137,7 @@ var CommentContainer = ({ thread, detached, current, onAttend, onComment, onReso
|
|
|
135
137
|
(0, import_react_ui_editor.listener)({
|
|
136
138
|
onChange: (text) => messageRef.current = text
|
|
137
139
|
}),
|
|
138
|
-
|
|
140
|
+
import_chunk_RQR5Z23G.command
|
|
139
141
|
], [
|
|
140
142
|
_count
|
|
141
143
|
]);
|
|
@@ -196,7 +198,7 @@ var CommentContainer = ({ thread, detached, current, onAttend, onComment, onReso
|
|
|
196
198
|
onResolve: handleResolve
|
|
197
199
|
}), onThreadDelete && /* @__PURE__ */ import_react4.default.createElement(DeleteThreadButton, {
|
|
198
200
|
onDelete: handleThreadDelete
|
|
199
|
-
}))), import_live_object.RefArray.allResolvedTargets(thread.messages?.filter(import_util.
|
|
201
|
+
}))), import_live_object.RefArray.allResolvedTargets(thread.messages?.filter(import_util.isNonNullable) ?? []).map((message) => /* @__PURE__ */ import_react4.default.createElement(import_chunk_RQR5Z23G.MessageContainer, {
|
|
200
202
|
key: message.id,
|
|
201
203
|
message,
|
|
202
204
|
members,
|
|
@@ -253,8 +255,15 @@ var CommentsContainer = ({ threads, detached = [], currentId, showResolvedThread
|
|
|
253
255
|
var ThreadComplementary = ({ subject }) => {
|
|
254
256
|
const { dispatchPromise: dispatch } = (0, import_app_framework2.useIntentDispatcher)();
|
|
255
257
|
const identity = (0, import_halo2.useIdentity)();
|
|
258
|
+
const { t } = (0, import_react_ui3.useTranslation)(import_chunk_F735VMTN.THREAD_PLUGIN);
|
|
256
259
|
const { state, getViewState } = (0, import_app_framework2.useCapability)(import_chunk_FPWNZ6TB.ThreadCapabilities.MutableState);
|
|
257
|
-
const
|
|
260
|
+
const viewState = getViewState((0, import_echo4.fullyQualifiedId)(subject));
|
|
261
|
+
const { showResolvedThreads } = viewState;
|
|
262
|
+
const onChangeViewState = (0, import_react7.useCallback)((nextValue) => {
|
|
263
|
+
viewState.showResolvedThreads = nextValue === "all";
|
|
264
|
+
}, [
|
|
265
|
+
viewState
|
|
266
|
+
]);
|
|
258
267
|
const drafts = state.drafts[(0, import_echo4.fullyQualifiedId)(subject)];
|
|
259
268
|
const threadsIntegrators = (0, import_app_framework2.useCapabilities)(import_plugin_space.ThreadCapabilities.Thread);
|
|
260
269
|
const createSort = (0, import_react7.useMemo)(() => threadsIntegrators.find((p) => p.predicate(subject))?.createSort, [
|
|
@@ -267,7 +276,7 @@ var ThreadComplementary = ({ subject }) => {
|
|
|
267
276
|
]);
|
|
268
277
|
const threadObjects = import_echo4.RefArray.allResolvedTargets(subject.threads ?? []);
|
|
269
278
|
const threads = (0, import_react7.useMemo)(() => {
|
|
270
|
-
return threadObjects.concat(drafts ?? []).filter(import_util2.
|
|
279
|
+
return threadObjects.concat(drafts ?? []).filter(import_util2.isNonNullable);
|
|
271
280
|
}, [
|
|
272
281
|
JSON.stringify(threadObjects),
|
|
273
282
|
JSON.stringify(drafts)
|
|
@@ -293,9 +302,12 @@ var ThreadComplementary = ({ subject }) => {
|
|
|
293
302
|
if (state.current !== threadId) {
|
|
294
303
|
state.current = threadId;
|
|
295
304
|
void dispatch((0, import_app_framework2.createIntent)(import_app_framework2.LayoutAction.ScrollIntoView, {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
305
|
+
part: "current",
|
|
306
|
+
subject: (0, import_echo4.fullyQualifiedId)(subject),
|
|
307
|
+
options: {
|
|
308
|
+
cursor: thread.anchor,
|
|
309
|
+
ref: threadId
|
|
310
|
+
}
|
|
299
311
|
}));
|
|
300
312
|
}
|
|
301
313
|
}, [
|
|
@@ -311,7 +323,7 @@ var ThreadComplementary = ({ subject }) => {
|
|
|
311
323
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
312
324
|
text: message
|
|
313
325
|
})));
|
|
314
|
-
await dispatch((0, import_app_framework2.createIntent)(
|
|
326
|
+
await dispatch((0, import_app_framework2.createIntent)(import_chunk_CMEMMYDL.ThreadAction.OnMessageAdd, {
|
|
315
327
|
thread,
|
|
316
328
|
subject
|
|
317
329
|
}));
|
|
@@ -321,19 +333,19 @@ var ThreadComplementary = ({ subject }) => {
|
|
|
321
333
|
identity,
|
|
322
334
|
subject
|
|
323
335
|
]);
|
|
324
|
-
const handleResolve = (0, import_react7.useCallback)((thread) => dispatch((0, import_app_framework2.createIntent)(
|
|
336
|
+
const handleResolve = (0, import_react7.useCallback)((thread) => dispatch((0, import_app_framework2.createIntent)(import_chunk_CMEMMYDL.ThreadAction.ToggleResolved, {
|
|
325
337
|
thread
|
|
326
338
|
})), [
|
|
327
339
|
dispatch
|
|
328
340
|
]);
|
|
329
|
-
const handleThreadDelete = (0, import_react7.useCallback)((thread) => dispatch((0, import_app_framework2.createIntent)(
|
|
341
|
+
const handleThreadDelete = (0, import_react7.useCallback)((thread) => dispatch((0, import_app_framework2.createIntent)(import_chunk_CMEMMYDL.ThreadAction.Delete, {
|
|
330
342
|
thread,
|
|
331
343
|
subject
|
|
332
344
|
})), [
|
|
333
345
|
dispatch,
|
|
334
346
|
subject
|
|
335
347
|
]);
|
|
336
|
-
const handleMessageDelete = (0, import_react7.useCallback)((thread, messageId) => dispatch((0, import_app_framework2.createIntent)(
|
|
348
|
+
const handleMessageDelete = (0, import_react7.useCallback)((thread, messageId) => dispatch((0, import_app_framework2.createIntent)(import_chunk_CMEMMYDL.ThreadAction.DeleteMessage, {
|
|
337
349
|
thread,
|
|
338
350
|
subject,
|
|
339
351
|
messageId
|
|
@@ -341,7 +353,7 @@ var ThreadComplementary = ({ subject }) => {
|
|
|
341
353
|
dispatch,
|
|
342
354
|
subject
|
|
343
355
|
]);
|
|
344
|
-
|
|
356
|
+
const comments = /* @__PURE__ */ import_react7.default.createElement(CommentsContainer, {
|
|
345
357
|
threads,
|
|
346
358
|
detached: detachedIds,
|
|
347
359
|
currentId: attended.includes(qualifiedSubjectId) ? state.current : void 0,
|
|
@@ -352,38 +364,50 @@ var ThreadComplementary = ({ subject }) => {
|
|
|
352
364
|
onMessageDelete: handleMessageDelete,
|
|
353
365
|
onThreadDelete: handleThreadDelete
|
|
354
366
|
});
|
|
367
|
+
return /* @__PURE__ */ import_react7.default.createElement(import_react_ui_tabs.Tabs.Root, {
|
|
368
|
+
value: showResolvedThreads ? "all" : "unresolved",
|
|
369
|
+
onValueChange: onChangeViewState,
|
|
370
|
+
orientation: "horizontal"
|
|
371
|
+
}, /* @__PURE__ */ import_react7.default.createElement(import_react_ui_tabs.Tabs.Tablist, {
|
|
372
|
+
classNames: "p-1 gap-1 bs-[--rail-action] border-be border-separator"
|
|
373
|
+
}, /* @__PURE__ */ import_react7.default.createElement(import_react_ui_tabs.Tabs.Tab, {
|
|
374
|
+
value: "unresolved",
|
|
375
|
+
classNames: "text-sm"
|
|
376
|
+
}, t("show unresolved label")), /* @__PURE__ */ import_react7.default.createElement(import_react_ui_tabs.Tabs.Tab, {
|
|
377
|
+
value: "all",
|
|
378
|
+
classNames: "text-sm"
|
|
379
|
+
}, t("show all label"))), /* @__PURE__ */ import_react7.default.createElement(import_react_ui_tabs.Tabs.Tabpanel, {
|
|
380
|
+
value: "all"
|
|
381
|
+
}, showResolvedThreads && comments), /* @__PURE__ */ import_react7.default.createElement(import_react_ui_tabs.Tabs.Tabpanel, {
|
|
382
|
+
value: "unresolved"
|
|
383
|
+
}, !showResolvedThreads && comments));
|
|
355
384
|
};
|
|
356
385
|
var ThreadSettings = ({ settings }) => {
|
|
357
|
-
|
|
358
|
-
return /* @__PURE__ */ import_react8.default.createElement(import_react8.default.Fragment, null, /* @__PURE__ */ import_react8.default.createElement(import_react_ui_form.DeprecatedFormInput, {
|
|
359
|
-
label: t("settings standalone label")
|
|
360
|
-
}, /* @__PURE__ */ import_react8.default.createElement(import_react_ui3.Input.Switch, {
|
|
361
|
-
checked: settings.standalone,
|
|
362
|
-
onCheckedChange: (checked) => settings.standalone = !!checked
|
|
363
|
-
})));
|
|
386
|
+
return /* @__PURE__ */ import_react8.default.createElement(import_react_ui_form.DeprecatedFormContainer, null);
|
|
364
387
|
};
|
|
365
|
-
var ThreadContainer = (0, import_react2.lazy)(() => import("./ThreadContainer-
|
|
388
|
+
var ThreadContainer = (0, import_react2.lazy)(() => import("./ThreadContainer-LTKKLPXX.cjs"));
|
|
366
389
|
var react_surface_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.ReactSurface, [
|
|
367
390
|
(0, import_app_framework.createSurface)({
|
|
368
391
|
id: `${import_chunk_F735VMTN.THREAD_PLUGIN}/channel`,
|
|
369
392
|
role: "article",
|
|
370
393
|
filter: (data) => data.subject instanceof import_types.ChannelType && !!data.subject.threads[0],
|
|
371
394
|
component: ({ data, role }) => {
|
|
372
|
-
const
|
|
395
|
+
const layout = (0, import_app_framework.useLayout)();
|
|
373
396
|
const channel = data.subject;
|
|
397
|
+
void channel.threads[0].load();
|
|
374
398
|
const thread = channel.threads[0].target;
|
|
375
|
-
if (
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
399
|
+
if (!thread) {
|
|
400
|
+
return null;
|
|
401
|
+
}
|
|
402
|
+
const currentPosition = layout.active.findIndex((id) => id === channel.id);
|
|
403
|
+
if (currentPosition > 0) {
|
|
404
|
+
const objectToTheLeft = layout.active[currentPosition - 1];
|
|
405
|
+
const context = (0, import_echo.getSpace)(channel)?.db.getObjectById(objectToTheLeft);
|
|
406
|
+
return /* @__PURE__ */ import_react.default.createElement(ThreadContainer, {
|
|
407
|
+
role,
|
|
408
|
+
thread,
|
|
409
|
+
context
|
|
410
|
+
});
|
|
387
411
|
}
|
|
388
412
|
return /* @__PURE__ */ import_react.default.createElement(ThreadContainer, {
|
|
389
413
|
role,
|
|
@@ -401,14 +425,11 @@ var react_surface_default = () => (0, import_app_framework.contributes)(import_a
|
|
|
401
425
|
}),
|
|
402
426
|
(0, import_app_framework.createSurface)({
|
|
403
427
|
id: `${import_chunk_F735VMTN.THREAD_PLUGIN}/settings`,
|
|
404
|
-
role: "
|
|
405
|
-
filter: (data) => data.subject === import_chunk_F735VMTN.THREAD_PLUGIN,
|
|
406
|
-
component: () => {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
settings
|
|
410
|
-
});
|
|
411
|
-
}
|
|
428
|
+
role: "article",
|
|
429
|
+
filter: (data) => data.subject instanceof import_local_storage.SettingsStore && data.subject.prefix === import_chunk_F735VMTN.THREAD_PLUGIN,
|
|
430
|
+
component: ({ data: { subject } }) => /* @__PURE__ */ import_react.default.createElement(ThreadSettings, {
|
|
431
|
+
settings: subject.value
|
|
432
|
+
})
|
|
412
433
|
})
|
|
413
434
|
]);
|
|
414
|
-
//# sourceMappingURL=react-surface-
|
|
435
|
+
//# sourceMappingURL=react-surface-7HLTN5XS.cjs.map
|