@dxos/plugin-attention 0.8.4-main.a4bbb77 → 0.8.4-main.ae835ea
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/chunk-62F4J5KY.mjs +15 -0
- package/dist/lib/browser/chunk-62F4J5KY.mjs.map +7 -0
- package/dist/lib/browser/{chunk-7NDMCDGN.mjs → chunk-NG4RYQK5.mjs} +3 -3
- package/dist/lib/browser/chunk-NG4RYQK5.mjs.map +7 -0
- package/dist/lib/browser/{chunk-EJ4ELAEO.mjs → chunk-NIBJFU73.mjs} +2 -2
- package/dist/lib/browser/index.mjs +6 -7
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/{intent-resolver-OKED4HZY.mjs → intent-resolver-OE6EFE7U.mjs} +5 -5
- package/dist/lib/browser/intent-resolver-OE6EFE7U.mjs.map +7 -0
- package/dist/lib/browser/{keyboard-W57BF67Q.mjs → keyboard-QDSNLHR3.mjs} +4 -4
- package/dist/lib/browser/keyboard-QDSNLHR3.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-context-7HCRTOWZ.mjs → react-context-LFP5JPB5.mjs} +3 -3
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node-esm/{chunk-FKQHPGTA.mjs → chunk-BH4E4TWY.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-ICOLCHKJ.mjs → chunk-JJFC7PBD.mjs} +3 -3
- package/dist/lib/node-esm/chunk-JJFC7PBD.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-T6SUMOZA.mjs +17 -0
- package/dist/lib/node-esm/chunk-T6SUMOZA.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +6 -7
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/{intent-resolver-BCFMWW34.mjs → intent-resolver-QAU7TPNB.mjs} +5 -5
- package/dist/lib/node-esm/intent-resolver-QAU7TPNB.mjs.map +7 -0
- package/dist/lib/node-esm/{keyboard-HCCT23BE.mjs → keyboard-GWCD2NVU.mjs} +4 -4
- package/dist/lib/node-esm/keyboard-GWCD2NVU.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-context-7RDGSUXD.mjs → react-context-7IIA2SYD.mjs} +3 -3
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +1 -1
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/capabilities/intent-resolver.ts +1 -1
- package/src/capabilities/keyboard.ts +1 -1
- package/src/meta.ts +5 -0
- package/src/types/types.ts +1 -1
- package/dist/lib/browser/chunk-7NDMCDGN.mjs.map +0 -7
- package/dist/lib/browser/chunk-NMXGUHSU.mjs +0 -10
- package/dist/lib/browser/chunk-NMXGUHSU.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-OKED4HZY.mjs.map +0 -7
- package/dist/lib/browser/keyboard-W57BF67Q.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GC4PRMVZ.mjs +0 -12
- package/dist/lib/node-esm/chunk-GC4PRMVZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ICOLCHKJ.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-BCFMWW34.mjs.map +0 -7
- package/dist/lib/node-esm/keyboard-HCCT23BE.mjs.map +0 -7
- /package/dist/lib/browser/{chunk-EJ4ELAEO.mjs.map → chunk-NIBJFU73.mjs.map} +0 -0
- /package/dist/lib/browser/{react-context-7HCRTOWZ.mjs.map → react-context-LFP5JPB5.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-FKQHPGTA.mjs.map → chunk-BH4E4TWY.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-context-7RDGSUXD.mjs.map → react-context-7IIA2SYD.mjs.map} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/meta.ts
|
|
2
|
+
import { trim } from "@dxos/util";
|
|
3
|
+
var meta = {
|
|
4
|
+
id: "dxos.org/plugin/attention",
|
|
5
|
+
name: "Attention",
|
|
6
|
+
description: trim`
|
|
7
|
+
Track and manage focused attention on objects across your workspace.
|
|
8
|
+
Highlight items requiring action and coordinate team focus on priority work.
|
|
9
|
+
`
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
meta
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=chunk-62F4J5KY.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: PluginMeta = {\n id: 'dxos.org/plugin/attention',\n name: 'Attention',\n description: trim`\n Track and manage focused attention on objects across your workspace.\n Highlight items requiring action and coordinate team focus on priority work.\n `,\n};\n"],
|
|
5
|
+
"mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAmB;EAC9BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;AAIf;",
|
|
6
|
+
"names": ["trim", "meta", "id", "name", "description", "trim"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-62F4J5KY.mjs";
|
|
4
4
|
|
|
5
5
|
// src/types/types.ts
|
|
6
|
-
import
|
|
6
|
+
import * as Schema from "effect/Schema";
|
|
7
7
|
import { SelectionSchema } from "@dxos/react-ui-attention";
|
|
8
8
|
(function(AttentionAction2) {
|
|
9
9
|
const ATTENTION_ACTION = `${meta.id}/action`;
|
|
@@ -22,4 +22,4 @@ var AttentionAction;
|
|
|
22
22
|
export {
|
|
23
23
|
AttentionAction
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-NG4RYQK5.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/types.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { SelectionSchema } from '@dxos/react-ui-attention';\n\nimport { meta } from '../meta';\n\nexport namespace AttentionAction {\n const ATTENTION_ACTION = `${meta.id}/action`;\n\n export class Select extends Schema.TaggedClass<Select>()(`${ATTENTION_ACTION}/select`, {\n input: Schema.Struct({\n contextId: Schema.String,\n selection: SelectionSchema,\n }),\n output: Schema.Void,\n }) {}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;UAIfC,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,KAAKC,EAAE;EAE5B,MAAMC,eAAsBC,mBAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IACrFK,OAAcC,cAAO;MACnBC,WAAkBC;MAClBC,WAAWC;IACb,CAAA;IACAC,QAAeC;EACjB,CAAA,EAAA;EAAI;mBANST,SAAAA;AAOf,GAViBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;",
|
|
6
|
+
"names": ["Schema", "SelectionSchema", "AttentionAction", "ATTENTION_ACTION", "meta", "id", "Select", "TaggedClass", "input", "Struct", "contextId", "String", "selection", "SelectionSchema", "output", "Void"]
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-62F4J5KY.mjs";
|
|
4
4
|
|
|
5
5
|
// src/capabilities/capabilities.ts
|
|
6
6
|
import { defineCapability } from "@dxos/app-framework";
|
|
@@ -13,4 +13,4 @@ var AttentionCapabilities;
|
|
|
13
13
|
export {
|
|
14
14
|
AttentionCapabilities
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-NIBJFU73.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttentionCapabilities
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NIBJFU73.mjs";
|
|
4
4
|
import {
|
|
5
5
|
meta
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-62F4J5KY.mjs";
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
9
|
export * from "@dxos/react-ui-attention";
|
|
@@ -14,9 +14,9 @@ import { AttentionManager, SelectionManager } from "@dxos/react-ui-attention";
|
|
|
14
14
|
|
|
15
15
|
// src/capabilities/index.ts
|
|
16
16
|
import { lazy } from "@dxos/app-framework";
|
|
17
|
-
var IntentResolver = lazy(() => import("./intent-resolver-
|
|
18
|
-
var Keyboard = lazy(() => import("./keyboard-
|
|
19
|
-
var ReactContext = lazy(() => import("./react-context-
|
|
17
|
+
var IntentResolver = lazy(() => import("./intent-resolver-OE6EFE7U.mjs"));
|
|
18
|
+
var Keyboard = lazy(() => import("./keyboard-QDSNLHR3.mjs"));
|
|
19
|
+
var ReactContext = lazy(() => import("./react-context-LFP5JPB5.mjs"));
|
|
20
20
|
|
|
21
21
|
// src/events.ts
|
|
22
22
|
import { defineEvent } from "@dxos/app-framework";
|
|
@@ -60,8 +60,7 @@ var AttentionPlugin = definePlugin(meta, () => [
|
|
|
60
60
|
})
|
|
61
61
|
]);
|
|
62
62
|
var setupDevtools = (attention) => {
|
|
63
|
-
|
|
64
|
-
(_globalThis = globalThis).composer ?? (_globalThis.composer = {});
|
|
63
|
+
globalThis.composer ??= {};
|
|
65
64
|
globalThis.composer.attention = {
|
|
66
65
|
get manager() {
|
|
67
66
|
return attention;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/index.ts", "../../../src/AttentionPlugin.ts", "../../../src/capabilities/index.ts", "../../../src/events.ts"],
|
|
4
4
|
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nexport * from '@dxos/react-ui-attention';\n\nexport * from './AttentionPlugin';\nexport { AttentionCapabilities } from './capabilities';\nexport * from './events';\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Events, allOf, contributes, defineModule, definePlugin } from '@dxos/app-framework';\nimport { AttentionManager, SelectionManager } from '@dxos/react-ui-attention';\n\nimport { AttentionCapabilities, IntentResolver, Keyboard, ReactContext } from './capabilities';\nimport { AttentionEvents } from './events';\nimport { meta } from './meta';\n\nexport const AttentionPlugin = definePlugin(meta, () => [\n defineModule({\n id: `${meta.id}/module/attention`,\n activatesOn: Events.Startup,\n activatesAfter: [AttentionEvents.AttentionReady],\n activate: () => {\n const attention = new AttentionManager();\n const selection = new SelectionManager();\n setupDevtools(attention);\n return [\n contributes(AttentionCapabilities.Attention, attention),\n contributes(AttentionCapabilities.Selection, selection),\n ];\n },\n }),\n defineModule({\n id: `${meta.id}/module/react-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/keyboard`,\n activatesOn: allOf(Events.AppGraphReady, AttentionEvents.AttentionReady),\n activate: Keyboard,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n]);\n\nconst setupDevtools = (attention: AttentionManager) => {\n (globalThis as any).composer ??= {};\n\n (globalThis as any).composer.attention = {\n get manager() {\n return attention;\n },\n get attended() {\n return attention.current;\n },\n get currentSpace() {\n for (const id of attention.current) {\n const [spaceId, objectId] = id.split(':');\n if (spaceId && objectId && spaceId.length === 33) {\n return spaceId;\n }\n }\n },\n };\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const Keyboard = lazy(() => import('./keyboard'));\nexport const ReactContext = lazy(() => import('./react-context'));\n\nexport * from './capabilities';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineEvent } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport namespace AttentionEvents {\n export const AttentionReady = defineEvent(`${meta.id}/event/attention-ready`);\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;AAIA,cAAc;;;ACAd,SAASA,QAAQC,OAAOC,aAAaC,cAAcC,oBAAoB;AACvE,SAASC,kBAAkBC,wBAAwB;;;ACDnD,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,WAAWD,KAAK,MAAM,OAAO,yBAAA,CAAA;AACnC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,mBAAmB;UAIXC,kBAAAA;mBACFC,iBAAiBC,YAAY,GAAGC,KAAKC,EAAE,wBAAwB;AAC9E,GAFiBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;AFGV,IAAMK,kBAAkBC,aAAaC,MAAM,MAAM;EACtDC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,gBAAgB;MAACC,gBAAgBC;;IACjCC,UAAU,MAAA;AACR,YAAMC,YAAY,IAAIC,iBAAAA;AACtB,YAAMC,YAAY,IAAIC,iBAAAA;AACtBC,oBAAcJ,SAAAA;AACd,aAAO;QACLK,YAAYC,sBAAsBC,WAAWP,SAAAA;QAC7CK,YAAYC,sBAAsBE,WAAWN,SAAAA;;IAEjD;EACF,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBI,UAAUU;EACZ,CAAA;EACAlB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaiB,MAAMhB,OAAOiB,eAAed,gBAAgBC,cAAc;IACvEC,UAAUa;EACZ,CAAA;EACArB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOmB;IACpBd,UAAUe;EACZ,CAAA;CACD;AAED,IAAMV,gBAAgB,CAACJ,cAAAA;
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,cAAc;;;ACAd,SAASA,QAAQC,OAAOC,aAAaC,cAAcC,oBAAoB;AACvE,SAASC,kBAAkBC,wBAAwB;;;ACDnD,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,WAAWD,KAAK,MAAM,OAAO,yBAAA,CAAA;AACnC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,mBAAmB;UAIXC,kBAAAA;mBACFC,iBAAiBC,YAAY,GAAGC,KAAKC,EAAE,wBAAwB;AAC9E,GAFiBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;AFGV,IAAMK,kBAAkBC,aAAaC,MAAM,MAAM;EACtDC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,gBAAgB;MAACC,gBAAgBC;;IACjCC,UAAU,MAAA;AACR,YAAMC,YAAY,IAAIC,iBAAAA;AACtB,YAAMC,YAAY,IAAIC,iBAAAA;AACtBC,oBAAcJ,SAAAA;AACd,aAAO;QACLK,YAAYC,sBAAsBC,WAAWP,SAAAA;QAC7CK,YAAYC,sBAAsBE,WAAWN,SAAAA;;IAEjD;EACF,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBI,UAAUU;EACZ,CAAA;EACAlB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaiB,MAAMhB,OAAOiB,eAAed,gBAAgBC,cAAc;IACvEC,UAAUa;EACZ,CAAA;EACArB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOmB;IACpBd,UAAUe;EACZ,CAAA;CACD;AAED,IAAMV,gBAAgB,CAACJ,cAAAA;AACpBe,aAAmBC,aAAa,CAAC;AAEjCD,aAAmBC,SAAShB,YAAY;IACvC,IAAIiB,UAAU;AACZ,aAAOjB;IACT;IACA,IAAIkB,WAAW;AACb,aAAOlB,UAAUmB;IACnB;IACA,IAAIC,eAAe;AACjB,iBAAW5B,MAAMQ,UAAUmB,SAAS;AAClC,cAAM,CAACE,SAASC,QAAAA,IAAY9B,GAAG+B,MAAM,GAAA;AACrC,YAAIF,WAAWC,YAAYD,QAAQG,WAAW,IAAI;AAChD,iBAAOH;QACT;MACF;IACF;EACF;AACF;",
|
|
6
6
|
"names": ["Events", "allOf", "contributes", "defineModule", "definePlugin", "AttentionManager", "SelectionManager", "lazy", "IntentResolver", "lazy", "Keyboard", "ReactContext", "defineEvent", "AttentionEvents", "AttentionReady", "defineEvent", "meta", "id", "AttentionPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "Startup", "activatesAfter", "AttentionEvents", "AttentionReady", "activate", "attention", "AttentionManager", "selection", "SelectionManager", "setupDevtools", "contributes", "AttentionCapabilities", "Attention", "Selection", "ReactContext", "allOf", "AppGraphReady", "Keyboard", "SetupIntentResolver", "IntentResolver", "globalThis", "composer", "manager", "attended", "current", "currentSpace", "spaceId", "objectId", "split", "length"]
|
|
7
7
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttentionAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NG4RYQK5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AttentionCapabilities
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NIBJFU73.mjs";
|
|
7
|
+
import "./chunk-62F4J5KY.mjs";
|
|
8
8
|
|
|
9
9
|
// src/capabilities/intent-resolver.ts
|
|
10
|
-
import
|
|
10
|
+
import * as Match from "effect/Match";
|
|
11
11
|
import { Capabilities, contributes, createResolver } from "@dxos/app-framework";
|
|
12
12
|
var intent_resolver_default = ((context) => contributes(Capabilities.IntentResolver, [
|
|
13
13
|
createResolver({
|
|
@@ -48,4 +48,4 @@ var intent_resolver_default = ((context) => contributes(Capabilities.IntentResol
|
|
|
48
48
|
export {
|
|
49
49
|
intent_resolver_default as default
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=intent-resolver-
|
|
51
|
+
//# sourceMappingURL=intent-resolver-OE6EFE7U.mjs.map
|
|
@@ -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 * as Match from 'effect/Match';\n\nimport { Capabilities, type PluginContext, contributes, createResolver } from '@dxos/app-framework';\nimport { type Selection } from '@dxos/react-ui-attention';\n\nimport { AttentionAction } from '../types';\n\nimport { AttentionCapabilities } from './capabilities';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.IntentResolver, [\n createResolver({\n intent: AttentionAction.Select,\n resolve: (data) => {\n const selection = context.getCapability(AttentionCapabilities.Selection);\n Match.type<Selection>().pipe(\n Match.when({ mode: 'single', id: undefined }, () => {\n selection.clearSelection(data.contextId);\n }),\n Match.when({ mode: 'single' }, (s) => {\n selection.updateSingle(data.contextId, s.id!);\n }),\n Match.when({ mode: 'multi' }, (s) => {\n selection.updateMulti(data.contextId, s.ids);\n }),\n Match.when({ mode: 'range', from: undefined, to: undefined }, () => {\n selection.clearSelection(data.contextId);\n }),\n Match.when({ mode: 'range' }, (s) => {\n selection.updateRange(data.contextId, s.from!, s.to!);\n }),\n Match.when({ mode: 'multi-range' }, (s) => {\n selection.updateMultiRange(data.contextId, s.ranges);\n }),\n Match.exhaustive,\n )(data.selection);\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,WAAW;AAEvB,SAASC,cAAkCC,aAAaC,sBAAsB;AAO9E,IAAA,2BAAe,CAACC,YACdC,YAAYC,aAAaC,gBAAgB;EACvCC,eAAe;IACbC,QAAQC,gBAAgBC;IACxBC,SAAS,CAACC,SAAAA;AACR,YAAMC,YAAYV,QAAQW,cAAcC,sBAAsBC,SAAS;AACvEC,MAAMC,WAAI,EAAcC,KAChBC,WAAK;QAAEC,MAAM;QAAUC,IAAIC;MAAU,GAAG,MAAA;AAC5CV,kBAAUW,eAAeZ,KAAKa,SAAS;MACzC,CAAA,GACML,WAAK;QAAEC,MAAM;MAAS,GAAG,CAACK,MAAAA;AAC9Bb,kBAAUc,aAAaf,KAAKa,WAAWC,EAAEJ,EAAE;MAC7C,CAAA,GACMF,WAAK;QAAEC,MAAM;MAAQ,GAAG,CAACK,MAAAA;AAC7Bb,kBAAUe,YAAYhB,KAAKa,WAAWC,EAAEG,GAAG;MAC7C,CAAA,GACMT,WAAK;QAAEC,MAAM;QAASS,MAAMP;QAAWQ,IAAIR;MAAU,GAAG,MAAA;AAC5DV,kBAAUW,eAAeZ,KAAKa,SAAS;MACzC,CAAA,GACML,WAAK;QAAEC,MAAM;MAAQ,GAAG,CAACK,MAAAA;AAC7Bb,kBAAUmB,YAAYpB,KAAKa,WAAWC,EAAEI,MAAOJ,EAAEK,EAAE;MACrD,CAAA,GACMX,WAAK;QAAEC,MAAM;MAAc,GAAG,CAACK,MAAAA;AACnCb,kBAAUoB,iBAAiBrB,KAAKa,WAAWC,EAAEQ,MAAM;MACrD,CAAA,GACMC,gBAAU,EAChBvB,KAAKC,SAAS;IAClB;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["Match", "Capabilities", "contributes", "createResolver", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "AttentionAction", "Select", "resolve", "data", "selection", "getCapability", "AttentionCapabilities", "Selection", "Match", "type", "pipe", "when", "mode", "id", "undefined", "clearSelection", "contextId", "s", "updateSingle", "updateMulti", "ids", "from", "to", "updateRange", "updateMultiRange", "ranges", "exhaustive"]
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttentionCapabilities
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-NIBJFU73.mjs";
|
|
4
|
+
import "./chunk-62F4J5KY.mjs";
|
|
5
5
|
|
|
6
6
|
// src/capabilities/keyboard.ts
|
|
7
7
|
import { effect } from "@preact/signals-core";
|
|
8
|
-
import
|
|
8
|
+
import * as Option from "effect/Option";
|
|
9
9
|
import { Capabilities as AppCapabilities, contributes } from "@dxos/app-framework";
|
|
10
10
|
import { Keyboard } from "@dxos/keyboard";
|
|
11
11
|
var keyboard_default = ((context) => {
|
|
@@ -25,4 +25,4 @@ var keyboard_default = ((context) => {
|
|
|
25
25
|
export {
|
|
26
26
|
keyboard_default as default
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=keyboard-
|
|
28
|
+
//# sourceMappingURL=keyboard-QDSNLHR3.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/keyboard.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { effect } from '@preact/signals-core';\nimport * as Option from 'effect/Option';\n\nimport { Capabilities as AppCapabilities, type PluginContext, contributes } from '@dxos/app-framework';\nimport { Keyboard } from '@dxos/keyboard';\n\nimport { AttentionCapabilities } from './capabilities';\n\nexport default (context: PluginContext) => {\n const { graph } = context.getCapability(AppCapabilities.AppGraph);\n const attention = context.getCapability(AttentionCapabilities.Attention);\n\n const unsubscribe = effect(() => {\n const id = Array.from(attention.current)[0];\n const path = id && graph.getPath({ target: id }).pipe(Option.getOrNull);\n if (path) {\n Keyboard.singleton.setCurrentContext(path.join('/'));\n }\n });\n\n return contributes(AppCapabilities.Null, null, () => unsubscribe());\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,SAASA,cAAc;AACvB,YAAYC,YAAY;AAExB,SAASC,gBAAgBC,iBAAqCC,mBAAmB;AACjF,SAASC,gBAAgB;AAIzB,IAAA,oBAAe,CAACC,YAAAA;AACd,QAAM,EAAEC,MAAK,IAAKD,QAAQE,cAAcC,gBAAgBC,QAAQ;AAChE,QAAMC,YAAYL,QAAQE,cAAcI,sBAAsBC,SAAS;AAEvE,QAAMC,cAAcC,OAAO,MAAA;AACzB,UAAMC,KAAKC,MAAMC,KAAKP,UAAUQ,OAAO,EAAE,CAAA;AACzC,UAAMC,OAAOJ,MAAMT,MAAMc,QAAQ;MAAEC,QAAQN;IAAG,CAAA,EAAGO,KAAYC,gBAAS;AACtE,QAAIJ,MAAM;AACRK,eAASC,UAAUC,kBAAkBP,KAAKQ,KAAK,GAAA,CAAA;IACjD;EACF,CAAA;AAEA,SAAOC,YAAYpB,gBAAgBqB,MAAM,MAAM,MAAMhB,YAAAA,CAAAA;AACvD;",
|
|
6
|
+
"names": ["effect", "Option", "Capabilities", "AppCapabilities", "contributes", "Keyboard", "context", "graph", "getCapability", "AppCapabilities", "AppGraph", "attention", "AttentionCapabilities", "Attention", "unsubscribe", "effect", "id", "Array", "from", "current", "path", "getPath", "target", "pipe", "getOrNull", "Keyboard", "singleton", "setCurrentContext", "join", "contributes", "Null"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":1380,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/capabilities.ts":{"bytes":1730,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/types.ts":{"bytes":2227,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/index.ts":{"bytes":459,"imports":[{"path":"src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/capabilities/intent-resolver.ts":{"bytes":6004,"imports":[{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/keyboard.ts":{"bytes":3539,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/react-context.tsx":{"bytes":4129,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1355,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/capabilities/keyboard.ts","kind":"dynamic-import","original":"./keyboard"},{"path":"src/capabilities/react-context.tsx","kind":"dynamic-import","original":"./react-context"}],"format":"esm"},"src/events.ts":{"bytes":1189,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/AttentionPlugin.ts":{"bytes":7309,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/events.ts","kind":"import-statement","original":"./events"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/index.ts":{"bytes":971,"imports":[{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/events.ts","kind":"import-statement","original":"./events"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4974},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NIBJFU73.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-62F4J5KY.mjs","kind":"import-statement"},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/intent-resolver-OE6EFE7U.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/keyboard-QDSNLHR3.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/react-context-LFP5JPB5.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["AttentionCapabilities","AttentionEvents","AttentionPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":42},"src/AttentionPlugin.ts":{"bytesInOutput":1577},"src/capabilities/index.ts":{"bytesInOutput":252},"src/events.ts":{"bytesInOutput":234}},"bytes":2452},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NG4RYQK5.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-62F4J5KY.mjs","kind":"import-statement"}],"exports":["AttentionAction"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":156},"dist/lib/browser/intent-resolver-OE6EFE7U.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3034},"dist/lib/browser/intent-resolver-OE6EFE7U.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NG4RYQK5.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-NIBJFU73.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-62F4J5KY.mjs","kind":"import-statement"},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/intent-resolver.ts","inputs":{"src/capabilities/intent-resolver.ts":{"bytesInOutput":1219}},"bytes":1515},"dist/lib/browser/chunk-NG4RYQK5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1100},"dist/lib/browser/chunk-NG4RYQK5.mjs":{"imports":[{"path":"dist/lib/browser/chunk-62F4J5KY.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["AttentionAction"],"inputs":{"src/types/types.ts":{"bytesInOutput":494},"src/types/index.ts":{"bytesInOutput":0}},"bytes":639},"dist/lib/browser/keyboard-QDSNLHR3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1903},"dist/lib/browser/keyboard-QDSNLHR3.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NIBJFU73.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-62F4J5KY.mjs","kind":"import-statement"},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/keyboard.ts","inputs":{"src/capabilities/keyboard.ts":{"bytesInOutput":735}},"bytes":952},"dist/lib/browser/react-context-LFP5JPB5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2075},"dist/lib/browser/react-context-LFP5JPB5.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NIBJFU73.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-62F4J5KY.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-context.tsx","inputs":{"src/capabilities/react-context.tsx":{"bytesInOutput":694}},"bytes":943},"dist/lib/browser/chunk-NIBJFU73.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":872},"dist/lib/browser/chunk-NIBJFU73.mjs":{"imports":[{"path":"dist/lib/browser/chunk-62F4J5KY.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["AttentionCapabilities"],"inputs":{"src/capabilities/capabilities.ts":{"bytesInOutput":358}},"bytes":523},"dist/lib/browser/chunk-62F4J5KY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":658},"dist/lib/browser/chunk-62F4J5KY.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":286}},"bytes":365}}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttentionCapabilities
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NIBJFU73.mjs";
|
|
4
4
|
import {
|
|
5
5
|
meta
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-62F4J5KY.mjs";
|
|
7
7
|
|
|
8
8
|
// src/capabilities/react-context.tsx
|
|
9
9
|
import React from "react";
|
|
@@ -26,4 +26,4 @@ var react_context_default = (() => contributes(Capabilities.ReactContext, {
|
|
|
26
26
|
export {
|
|
27
27
|
react_context_default as default
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=react-context-
|
|
29
|
+
//# sourceMappingURL=react-context-LFP5JPB5.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
meta
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-T6SUMOZA.mjs";
|
|
5
5
|
|
|
6
6
|
// src/capabilities/capabilities.ts
|
|
7
7
|
import { defineCapability } from "@dxos/app-framework";
|
|
@@ -14,4 +14,4 @@ var AttentionCapabilities;
|
|
|
14
14
|
export {
|
|
15
15
|
AttentionCapabilities
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-BH4E4TWY.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
meta
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-T6SUMOZA.mjs";
|
|
5
5
|
|
|
6
6
|
// src/types/types.ts
|
|
7
|
-
import
|
|
7
|
+
import * as Schema from "effect/Schema";
|
|
8
8
|
import { SelectionSchema } from "@dxos/react-ui-attention";
|
|
9
9
|
(function(AttentionAction2) {
|
|
10
10
|
const ATTENTION_ACTION = `${meta.id}/action`;
|
|
@@ -23,4 +23,4 @@ var AttentionAction;
|
|
|
23
23
|
export {
|
|
24
24
|
AttentionAction
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
26
|
+
//# sourceMappingURL=chunk-JJFC7PBD.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/types.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { SelectionSchema } from '@dxos/react-ui-attention';\n\nimport { meta } from '../meta';\n\nexport namespace AttentionAction {\n const ATTENTION_ACTION = `${meta.id}/action`;\n\n export class Select extends Schema.TaggedClass<Select>()(`${ATTENTION_ACTION}/select`, {\n input: Schema.Struct({\n contextId: Schema.String,\n selection: SelectionSchema,\n }),\n output: Schema.Void,\n }) {}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;UAIfC,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,KAAKC,EAAE;EAE5B,MAAMC,eAAsBC,mBAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IACrFK,OAAcC,cAAO;MACnBC,WAAkBC;MAClBC,WAAWC;IACb,CAAA;IACAC,QAAeC;EACjB,CAAA,EAAA;EAAI;mBANST,SAAAA;AAOf,GAViBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;",
|
|
6
|
+
"names": ["Schema", "SelectionSchema", "AttentionAction", "ATTENTION_ACTION", "meta", "id", "Select", "TaggedClass", "input", "Struct", "contextId", "String", "selection", "SelectionSchema", "output", "Void"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/meta.ts
|
|
4
|
+
import { trim } from "@dxos/util";
|
|
5
|
+
var meta = {
|
|
6
|
+
id: "dxos.org/plugin/attention",
|
|
7
|
+
name: "Attention",
|
|
8
|
+
description: trim`
|
|
9
|
+
Track and manage focused attention on objects across your workspace.
|
|
10
|
+
Highlight items requiring action and coordinate team focus on priority work.
|
|
11
|
+
`
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
meta
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=chunk-T6SUMOZA.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: PluginMeta = {\n id: 'dxos.org/plugin/attention',\n name: 'Attention',\n description: trim`\n Track and manage focused attention on objects across your workspace.\n Highlight items requiring action and coordinate team focus on priority work.\n `,\n};\n"],
|
|
5
|
+
"mappings": ";;;AAKA,SAASA,YAAY;AAEd,IAAMC,OAAmB;EAC9BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;AAIf;",
|
|
6
|
+
"names": ["trim", "meta", "id", "name", "description", "trim"]
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
AttentionCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BH4E4TWY.mjs";
|
|
5
5
|
import {
|
|
6
6
|
meta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T6SUMOZA.mjs";
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
10
|
export * from "@dxos/react-ui-attention";
|
|
@@ -15,9 +15,9 @@ import { AttentionManager, SelectionManager } from "@dxos/react-ui-attention";
|
|
|
15
15
|
|
|
16
16
|
// src/capabilities/index.ts
|
|
17
17
|
import { lazy } from "@dxos/app-framework";
|
|
18
|
-
var IntentResolver = lazy(() => import("./intent-resolver-
|
|
19
|
-
var Keyboard = lazy(() => import("./keyboard-
|
|
20
|
-
var ReactContext = lazy(() => import("./react-context-
|
|
18
|
+
var IntentResolver = lazy(() => import("./intent-resolver-QAU7TPNB.mjs"));
|
|
19
|
+
var Keyboard = lazy(() => import("./keyboard-GWCD2NVU.mjs"));
|
|
20
|
+
var ReactContext = lazy(() => import("./react-context-7IIA2SYD.mjs"));
|
|
21
21
|
|
|
22
22
|
// src/events.ts
|
|
23
23
|
import { defineEvent } from "@dxos/app-framework";
|
|
@@ -61,8 +61,7 @@ var AttentionPlugin = definePlugin(meta, () => [
|
|
|
61
61
|
})
|
|
62
62
|
]);
|
|
63
63
|
var setupDevtools = (attention) => {
|
|
64
|
-
|
|
65
|
-
(_globalThis = globalThis).composer ?? (_globalThis.composer = {});
|
|
64
|
+
globalThis.composer ??= {};
|
|
66
65
|
globalThis.composer.attention = {
|
|
67
66
|
get manager() {
|
|
68
67
|
return attention;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/index.ts", "../../../src/AttentionPlugin.ts", "../../../src/capabilities/index.ts", "../../../src/events.ts"],
|
|
4
4
|
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nexport * from '@dxos/react-ui-attention';\n\nexport * from './AttentionPlugin';\nexport { AttentionCapabilities } from './capabilities';\nexport * from './events';\nexport * from './meta';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Events, allOf, contributes, defineModule, definePlugin } from '@dxos/app-framework';\nimport { AttentionManager, SelectionManager } from '@dxos/react-ui-attention';\n\nimport { AttentionCapabilities, IntentResolver, Keyboard, ReactContext } from './capabilities';\nimport { AttentionEvents } from './events';\nimport { meta } from './meta';\n\nexport const AttentionPlugin = definePlugin(meta, () => [\n defineModule({\n id: `${meta.id}/module/attention`,\n activatesOn: Events.Startup,\n activatesAfter: [AttentionEvents.AttentionReady],\n activate: () => {\n const attention = new AttentionManager();\n const selection = new SelectionManager();\n setupDevtools(attention);\n return [\n contributes(AttentionCapabilities.Attention, attention),\n contributes(AttentionCapabilities.Selection, selection),\n ];\n },\n }),\n defineModule({\n id: `${meta.id}/module/react-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/keyboard`,\n activatesOn: allOf(Events.AppGraphReady, AttentionEvents.AttentionReady),\n activate: Keyboard,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n]);\n\nconst setupDevtools = (attention: AttentionManager) => {\n (globalThis as any).composer ??= {};\n\n (globalThis as any).composer.attention = {\n get manager() {\n return attention;\n },\n get attended() {\n return attention.current;\n },\n get currentSpace() {\n for (const id of attention.current) {\n const [spaceId, objectId] = id.split(':');\n if (spaceId && objectId && spaceId.length === 33) {\n return spaceId;\n }\n }\n },\n };\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const Keyboard = lazy(() => import('./keyboard'));\nexport const ReactContext = lazy(() => import('./react-context'));\n\nexport * from './capabilities';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineEvent } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport namespace AttentionEvents {\n export const AttentionReady = defineEvent(`${meta.id}/event/attention-ready`);\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;AAIA,cAAc;;;ACAd,SAASA,QAAQC,OAAOC,aAAaC,cAAcC,oBAAoB;AACvE,SAASC,kBAAkBC,wBAAwB;;;ACDnD,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,WAAWD,KAAK,MAAM,OAAO,yBAAA,CAAA;AACnC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,mBAAmB;UAIXC,kBAAAA;mBACFC,iBAAiBC,YAAY,GAAGC,KAAKC,EAAE,wBAAwB;AAC9E,GAFiBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;AFGV,IAAMK,kBAAkBC,aAAaC,MAAM,MAAM;EACtDC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,gBAAgB;MAACC,gBAAgBC;;IACjCC,UAAU,MAAA;AACR,YAAMC,YAAY,IAAIC,iBAAAA;AACtB,YAAMC,YAAY,IAAIC,iBAAAA;AACtBC,oBAAcJ,SAAAA;AACd,aAAO;QACLK,YAAYC,sBAAsBC,WAAWP,SAAAA;QAC7CK,YAAYC,sBAAsBE,WAAWN,SAAAA;;IAEjD;EACF,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBI,UAAUU;EACZ,CAAA;EACAlB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaiB,MAAMhB,OAAOiB,eAAed,gBAAgBC,cAAc;IACvEC,UAAUa;EACZ,CAAA;EACArB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOmB;IACpBd,UAAUe;EACZ,CAAA;CACD;AAED,IAAMV,gBAAgB,CAACJ,cAAAA;
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,cAAc;;;ACAd,SAASA,QAAQC,OAAOC,aAAaC,cAAcC,oBAAoB;AACvE,SAASC,kBAAkBC,wBAAwB;;;ACDnD,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,WAAWD,KAAK,MAAM,OAAO,yBAAA,CAAA;AACnC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACJ9C,SAASG,mBAAmB;UAIXC,kBAAAA;mBACFC,iBAAiBC,YAAY,GAAGC,KAAKC,EAAE,wBAAwB;AAC9E,GAFiBJ,oBAAAA,kBAAAA,CAAAA,EAAAA;;;;AFGV,IAAMK,kBAAkBC,aAAaC,MAAM,MAAM;EACtDC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,gBAAgB;MAACC,gBAAgBC;;IACjCC,UAAU,MAAA;AACR,YAAMC,YAAY,IAAIC,iBAAAA;AACtB,YAAMC,YAAY,IAAIC,iBAAAA;AACtBC,oBAAcJ,SAAAA;AACd,aAAO;QACLK,YAAYC,sBAAsBC,WAAWP,SAAAA;QAC7CK,YAAYC,sBAAsBE,WAAWN,SAAAA;;IAEjD;EACF,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBI,UAAUU;EACZ,CAAA;EACAlB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaiB,MAAMhB,OAAOiB,eAAed,gBAAgBC,cAAc;IACvEC,UAAUa;EACZ,CAAA;EACArB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOmB;IACpBd,UAAUe;EACZ,CAAA;CACD;AAED,IAAMV,gBAAgB,CAACJ,cAAAA;AACpBe,aAAmBC,aAAa,CAAC;AAEjCD,aAAmBC,SAAShB,YAAY;IACvC,IAAIiB,UAAU;AACZ,aAAOjB;IACT;IACA,IAAIkB,WAAW;AACb,aAAOlB,UAAUmB;IACnB;IACA,IAAIC,eAAe;AACjB,iBAAW5B,MAAMQ,UAAUmB,SAAS;AAClC,cAAM,CAACE,SAASC,QAAAA,IAAY9B,GAAG+B,MAAM,GAAA;AACrC,YAAIF,WAAWC,YAAYD,QAAQG,WAAW,IAAI;AAChD,iBAAOH;QACT;MACF;IACF;EACF;AACF;",
|
|
6
6
|
"names": ["Events", "allOf", "contributes", "defineModule", "definePlugin", "AttentionManager", "SelectionManager", "lazy", "IntentResolver", "lazy", "Keyboard", "ReactContext", "defineEvent", "AttentionEvents", "AttentionReady", "defineEvent", "meta", "id", "AttentionPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "Startup", "activatesAfter", "AttentionEvents", "AttentionReady", "activate", "attention", "AttentionManager", "selection", "SelectionManager", "setupDevtools", "contributes", "AttentionCapabilities", "Attention", "Selection", "ReactContext", "allOf", "AppGraphReady", "Keyboard", "SetupIntentResolver", "IntentResolver", "globalThis", "composer", "manager", "attended", "current", "currentSpace", "spaceId", "objectId", "split", "length"]
|
|
7
7
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
AttentionAction
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JJFC7PBD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
AttentionCapabilities
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-BH4E4TWY.mjs";
|
|
8
|
+
import "./chunk-T6SUMOZA.mjs";
|
|
9
9
|
|
|
10
10
|
// src/capabilities/intent-resolver.ts
|
|
11
|
-
import
|
|
11
|
+
import * as Match from "effect/Match";
|
|
12
12
|
import { Capabilities, contributes, createResolver } from "@dxos/app-framework";
|
|
13
13
|
var intent_resolver_default = ((context) => contributes(Capabilities.IntentResolver, [
|
|
14
14
|
createResolver({
|
|
@@ -49,4 +49,4 @@ var intent_resolver_default = ((context) => contributes(Capabilities.IntentResol
|
|
|
49
49
|
export {
|
|
50
50
|
intent_resolver_default as default
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=intent-resolver-
|
|
52
|
+
//# sourceMappingURL=intent-resolver-QAU7TPNB.mjs.map
|
|
@@ -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 * as Match from 'effect/Match';\n\nimport { Capabilities, type PluginContext, contributes, createResolver } from '@dxos/app-framework';\nimport { type Selection } from '@dxos/react-ui-attention';\n\nimport { AttentionAction } from '../types';\n\nimport { AttentionCapabilities } from './capabilities';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.IntentResolver, [\n createResolver({\n intent: AttentionAction.Select,\n resolve: (data) => {\n const selection = context.getCapability(AttentionCapabilities.Selection);\n Match.type<Selection>().pipe(\n Match.when({ mode: 'single', id: undefined }, () => {\n selection.clearSelection(data.contextId);\n }),\n Match.when({ mode: 'single' }, (s) => {\n selection.updateSingle(data.contextId, s.id!);\n }),\n Match.when({ mode: 'multi' }, (s) => {\n selection.updateMulti(data.contextId, s.ids);\n }),\n Match.when({ mode: 'range', from: undefined, to: undefined }, () => {\n selection.clearSelection(data.contextId);\n }),\n Match.when({ mode: 'range' }, (s) => {\n selection.updateRange(data.contextId, s.from!, s.to!);\n }),\n Match.when({ mode: 'multi-range' }, (s) => {\n selection.updateMultiRange(data.contextId, s.ranges);\n }),\n Match.exhaustive,\n )(data.selection);\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAIA,YAAYA,WAAW;AAEvB,SAASC,cAAkCC,aAAaC,sBAAsB;AAO9E,IAAA,2BAAe,CAACC,YACdC,YAAYC,aAAaC,gBAAgB;EACvCC,eAAe;IACbC,QAAQC,gBAAgBC;IACxBC,SAAS,CAACC,SAAAA;AACR,YAAMC,YAAYV,QAAQW,cAAcC,sBAAsBC,SAAS;AACvEC,MAAMC,WAAI,EAAcC,KAChBC,WAAK;QAAEC,MAAM;QAAUC,IAAIC;MAAU,GAAG,MAAA;AAC5CV,kBAAUW,eAAeZ,KAAKa,SAAS;MACzC,CAAA,GACML,WAAK;QAAEC,MAAM;MAAS,GAAG,CAACK,MAAAA;AAC9Bb,kBAAUc,aAAaf,KAAKa,WAAWC,EAAEJ,EAAE;MAC7C,CAAA,GACMF,WAAK;QAAEC,MAAM;MAAQ,GAAG,CAACK,MAAAA;AAC7Bb,kBAAUe,YAAYhB,KAAKa,WAAWC,EAAEG,GAAG;MAC7C,CAAA,GACMT,WAAK;QAAEC,MAAM;QAASS,MAAMP;QAAWQ,IAAIR;MAAU,GAAG,MAAA;AAC5DV,kBAAUW,eAAeZ,KAAKa,SAAS;MACzC,CAAA,GACML,WAAK;QAAEC,MAAM;MAAQ,GAAG,CAACK,MAAAA;AAC7Bb,kBAAUmB,YAAYpB,KAAKa,WAAWC,EAAEI,MAAOJ,EAAEK,EAAE;MACrD,CAAA,GACMX,WAAK;QAAEC,MAAM;MAAc,GAAG,CAACK,MAAAA;AACnCb,kBAAUoB,iBAAiBrB,KAAKa,WAAWC,EAAEQ,MAAM;MACrD,CAAA,GACMC,gBAAU,EAChBvB,KAAKC,SAAS;IAClB;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["Match", "Capabilities", "contributes", "createResolver", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "AttentionAction", "Select", "resolve", "data", "selection", "getCapability", "AttentionCapabilities", "Selection", "Match", "type", "pipe", "when", "mode", "id", "undefined", "clearSelection", "contextId", "s", "updateSingle", "updateMulti", "ids", "from", "to", "updateRange", "updateMultiRange", "ranges", "exhaustive"]
|
|
7
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
AttentionCapabilities
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-BH4E4TWY.mjs";
|
|
5
|
+
import "./chunk-T6SUMOZA.mjs";
|
|
6
6
|
|
|
7
7
|
// src/capabilities/keyboard.ts
|
|
8
8
|
import { effect } from "@preact/signals-core";
|
|
9
|
-
import
|
|
9
|
+
import * as Option from "effect/Option";
|
|
10
10
|
import { Capabilities as AppCapabilities, contributes } from "@dxos/app-framework";
|
|
11
11
|
import { Keyboard } from "@dxos/keyboard";
|
|
12
12
|
var keyboard_default = ((context) => {
|
|
@@ -26,4 +26,4 @@ var keyboard_default = ((context) => {
|
|
|
26
26
|
export {
|
|
27
27
|
keyboard_default as default
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=keyboard-
|
|
29
|
+
//# sourceMappingURL=keyboard-GWCD2NVU.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/keyboard.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { effect } from '@preact/signals-core';\nimport * as Option from 'effect/Option';\n\nimport { Capabilities as AppCapabilities, type PluginContext, contributes } from '@dxos/app-framework';\nimport { Keyboard } from '@dxos/keyboard';\n\nimport { AttentionCapabilities } from './capabilities';\n\nexport default (context: PluginContext) => {\n const { graph } = context.getCapability(AppCapabilities.AppGraph);\n const attention = context.getCapability(AttentionCapabilities.Attention);\n\n const unsubscribe = effect(() => {\n const id = Array.from(attention.current)[0];\n const path = id && graph.getPath({ target: id }).pipe(Option.getOrNull);\n if (path) {\n Keyboard.singleton.setCurrentContext(path.join('/'));\n }\n });\n\n return contributes(AppCapabilities.Null, null, () => unsubscribe());\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,SAASA,cAAc;AACvB,YAAYC,YAAY;AAExB,SAASC,gBAAgBC,iBAAqCC,mBAAmB;AACjF,SAASC,gBAAgB;AAIzB,IAAA,oBAAe,CAACC,YAAAA;AACd,QAAM,EAAEC,MAAK,IAAKD,QAAQE,cAAcC,gBAAgBC,QAAQ;AAChE,QAAMC,YAAYL,QAAQE,cAAcI,sBAAsBC,SAAS;AAEvE,QAAMC,cAAcC,OAAO,MAAA;AACzB,UAAMC,KAAKC,MAAMC,KAAKP,UAAUQ,OAAO,EAAE,CAAA;AACzC,UAAMC,OAAOJ,MAAMT,MAAMc,QAAQ;MAAEC,QAAQN;IAAG,CAAA,EAAGO,KAAYC,gBAAS;AACtE,QAAIJ,MAAM;AACRK,eAASC,UAAUC,kBAAkBP,KAAKQ,KAAK,GAAA,CAAA;IACjD;EACF,CAAA;AAEA,SAAOC,YAAYpB,gBAAgBqB,MAAM,MAAM,MAAMhB,YAAAA,CAAAA;AACvD;",
|
|
6
|
+
"names": ["effect", "Option", "Capabilities", "AppCapabilities", "contributes", "Keyboard", "context", "graph", "getCapability", "AppCapabilities", "AppGraph", "attention", "AttentionCapabilities", "Attention", "unsubscribe", "effect", "id", "Array", "from", "current", "path", "getPath", "target", "pipe", "getOrNull", "Keyboard", "singleton", "setCurrentContext", "join", "contributes", "Null"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":1380,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/capabilities.ts":{"bytes":1730,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/types.ts":{"bytes":2227,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/index.ts":{"bytes":459,"imports":[{"path":"src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/capabilities/intent-resolver.ts":{"bytes":6004,"imports":[{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/keyboard.ts":{"bytes":3539,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/react-context.tsx":{"bytes":4129,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1355,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/capabilities/keyboard.ts","kind":"dynamic-import","original":"./keyboard"},{"path":"src/capabilities/react-context.tsx","kind":"dynamic-import","original":"./react-context"}],"format":"esm"},"src/events.ts":{"bytes":1189,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/AttentionPlugin.ts":{"bytes":7309,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/events.ts","kind":"import-statement","original":"./events"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/index.ts":{"bytes":971,"imports":[{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"src/AttentionPlugin.ts","kind":"import-statement","original":"./AttentionPlugin"},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/events.ts","kind":"import-statement","original":"./events"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4975},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-BH4E4TWY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-T6SUMOZA.mjs","kind":"import-statement"},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/intent-resolver-QAU7TPNB.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/keyboard-GWCD2NVU.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/react-context-7IIA2SYD.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["AttentionCapabilities","AttentionEvents","AttentionPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":42},"src/AttentionPlugin.ts":{"bytesInOutput":1577},"src/capabilities/index.ts":{"bytesInOutput":252},"src/events.ts":{"bytesInOutput":234}},"bytes":2544},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-JJFC7PBD.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-T6SUMOZA.mjs","kind":"import-statement"}],"exports":["AttentionAction"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":248},"dist/lib/node-esm/intent-resolver-QAU7TPNB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3035},"dist/lib/node-esm/intent-resolver-QAU7TPNB.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-JJFC7PBD.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-BH4E4TWY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-T6SUMOZA.mjs","kind":"import-statement"},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/intent-resolver.ts","inputs":{"src/capabilities/intent-resolver.ts":{"bytesInOutput":1219}},"bytes":1607},"dist/lib/node-esm/chunk-JJFC7PBD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1101},"dist/lib/node-esm/chunk-JJFC7PBD.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-T6SUMOZA.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["AttentionAction"],"inputs":{"src/types/types.ts":{"bytesInOutput":494},"src/types/index.ts":{"bytesInOutput":0}},"bytes":731},"dist/lib/node-esm/keyboard-GWCD2NVU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1904},"dist/lib/node-esm/keyboard-GWCD2NVU.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-BH4E4TWY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-T6SUMOZA.mjs","kind":"import-statement"},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/keyboard.ts","inputs":{"src/capabilities/keyboard.ts":{"bytesInOutput":735}},"bytes":1044},"dist/lib/node-esm/react-context-7IIA2SYD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2076},"dist/lib/node-esm/react-context-7IIA2SYD.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-BH4E4TWY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-T6SUMOZA.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-context.tsx","inputs":{"src/capabilities/react-context.tsx":{"bytesInOutput":694}},"bytes":1035},"dist/lib/node-esm/chunk-BH4E4TWY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":873},"dist/lib/node-esm/chunk-BH4E4TWY.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-T6SUMOZA.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["AttentionCapabilities"],"inputs":{"src/capabilities/capabilities.ts":{"bytesInOutput":358}},"bytes":615},"dist/lib/node-esm/chunk-T6SUMOZA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":660},"dist/lib/node-esm/chunk-T6SUMOZA.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":286}},"bytes":458}}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
AttentionCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BH4E4TWY.mjs";
|
|
5
5
|
import {
|
|
6
6
|
meta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T6SUMOZA.mjs";
|
|
8
8
|
|
|
9
9
|
// src/capabilities/react-context.tsx
|
|
10
10
|
import React from "react";
|
|
@@ -27,4 +27,4 @@ var react_context_default = (() => contributes(Capabilities.ReactContext, {
|
|
|
27
27
|
export {
|
|
28
28
|
react_context_default as default
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=react-context-
|
|
30
|
+
//# sourceMappingURL=react-context-7IIA2SYD.mjs.map
|