@dxos/plugin-attention 0.8.4-main.72ec0f3 → 0.8.4-main.7996785055
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/chunk-5TDKGFFD.mjs +42 -0
- package/dist/lib/browser/chunk-5TDKGFFD.mjs.map +7 -0
- package/dist/lib/browser/chunk-6GVVLT5P.mjs +8 -0
- package/dist/lib/browser/chunk-6GVVLT5P.mjs.map +7 -0
- package/dist/lib/browser/{chunk-62F4J5KY.mjs → chunk-BLW2KDJL.mjs} +9 -2
- package/dist/lib/browser/chunk-BLW2KDJL.mjs.map +7 -0
- package/dist/lib/browser/chunk-Q5TLTUGE.mjs +39 -0
- package/dist/lib/browser/chunk-Q5TLTUGE.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +48 -52
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/keyboard-SCI7JXDG.mjs +23 -0
- package/dist/lib/browser/keyboard-SCI7JXDG.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-handler-GQOP3LGE.mjs +16 -0
- package/dist/lib/browser/operation-handler-GQOP3LGE.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +12 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/{react-context-HXORYGNN.mjs → react-context-WOZ5E7UB.mjs} +9 -8
- package/dist/lib/browser/react-context-WOZ5E7UB.mjs.map +7 -0
- package/dist/lib/browser/select-MQLJPGW3.mjs +49 -0
- package/dist/lib/browser/select-MQLJPGW3.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +8 -4
- package/dist/lib/node-esm/chunk-6PJTMEYS.mjs +43 -0
- package/dist/lib/node-esm/chunk-6PJTMEYS.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-KCQIRJMK.mjs +40 -0
- package/dist/lib/node-esm/chunk-KCQIRJMK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-RQGEO6FY.mjs +10 -0
- package/dist/lib/node-esm/chunk-RQGEO6FY.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-T6SUMOZA.mjs → chunk-X4V4W35V.mjs} +8 -2
- package/dist/lib/node-esm/chunk-X4V4W35V.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +48 -52
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/keyboard-Q67XHNZP.mjs +24 -0
- package/dist/lib/node-esm/keyboard-Q67XHNZP.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-handler-PLJPR7GS.mjs +17 -0
- package/dist/lib/node-esm/operation-handler-PLJPR7GS.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +13 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/{react-context-D5BP2M6I.mjs → react-context-O74VVIGE.mjs} +9 -8
- package/dist/lib/node-esm/react-context-O74VVIGE.mjs.map +7 -0
- package/dist/lib/node-esm/select-77TJ4G4V.mjs +50 -0
- package/dist/lib/node-esm/select-77TJ4G4V.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +8 -4
- package/dist/types/src/AttentionPlugin.d.ts +2 -1
- package/dist/types/src/AttentionPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +3 -8
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/keyboard/index.d.ts +3 -0
- package/dist/types/src/capabilities/keyboard/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/keyboard/keyboard.d.ts +5 -0
- package/dist/types/src/capabilities/keyboard/keyboard.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts +4 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
- package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +23 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/select.d.ts +5 -0
- package/dist/types/src/operations/select.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +7 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +5 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +29 -16
- package/src/AttentionPlugin.ts +34 -33
- package/src/capabilities/index.ts +3 -7
- package/src/capabilities/keyboard/index.ts +7 -0
- package/src/capabilities/keyboard/keyboard.ts +25 -0
- package/src/capabilities/operation-handler/index.ts +11 -0
- package/src/capabilities/operation-handler/operation-handler.ts +16 -0
- package/src/capabilities/react-context/index.ts +7 -0
- package/src/capabilities/react-context/react-context.tsx +39 -0
- package/src/index.ts +1 -2
- package/src/meta.ts +3 -3
- package/src/operations/definitions.ts +25 -0
- package/src/operations/index.ts +9 -0
- package/src/operations/select.ts +43 -0
- package/src/types/capabilities.ts +13 -0
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +2 -0
- package/src/types/types.ts +2 -2
- package/dist/lib/browser/chunk-62F4J5KY.mjs.map +0 -7
- package/dist/lib/browser/chunk-NG4RYQK5.mjs +0 -25
- package/dist/lib/browser/chunk-NG4RYQK5.mjs.map +0 -7
- package/dist/lib/browser/chunk-NIBJFU73.mjs +0 -16
- package/dist/lib/browser/chunk-NIBJFU73.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-OE6EFE7U.mjs +0 -51
- package/dist/lib/browser/intent-resolver-OE6EFE7U.mjs.map +0 -7
- package/dist/lib/browser/keyboard-QDSNLHR3.mjs +0 -28
- package/dist/lib/browser/keyboard-QDSNLHR3.mjs.map +0 -7
- package/dist/lib/browser/react-context-HXORYGNN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BH4E4TWY.mjs +0 -17
- package/dist/lib/node-esm/chunk-BH4E4TWY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JJFC7PBD.mjs +0 -26
- package/dist/lib/node-esm/chunk-JJFC7PBD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-T6SUMOZA.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-QAU7TPNB.mjs +0 -52
- package/dist/lib/node-esm/intent-resolver-QAU7TPNB.mjs.map +0 -7
- package/dist/lib/node-esm/keyboard-GWCD2NVU.mjs +0 -29
- package/dist/lib/node-esm/keyboard-GWCD2NVU.mjs.map +0 -7
- package/dist/lib/node-esm/react-context-D5BP2M6I.mjs.map +0 -7
- package/dist/types/src/capabilities/capabilities.d.ts +0 -6
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/keyboard.d.ts +0 -4
- package/dist/types/src/capabilities/keyboard.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context.d.ts +0 -8
- package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -4
- package/dist/types/src/events.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -13
- package/src/capabilities/intent-resolver.ts +0 -43
- package/src/capabilities/keyboard.ts +0 -26
- package/src/capabilities/react-context.tsx +0 -36
- package/src/events.ts +0 -11
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
Select
|
|
4
|
+
} from "./chunk-KCQIRJMK.mjs";
|
|
5
|
+
import {
|
|
6
|
+
AttentionCapabilities
|
|
7
|
+
} from "./chunk-6PJTMEYS.mjs";
|
|
8
|
+
import "./chunk-X4V4W35V.mjs";
|
|
9
|
+
|
|
10
|
+
// src/operations/select.ts
|
|
11
|
+
import * as Effect from "effect/Effect";
|
|
12
|
+
import * as Match from "effect/Match";
|
|
13
|
+
import { Capability } from "@dxos/app-framework";
|
|
14
|
+
import { Operation } from "@dxos/operation";
|
|
15
|
+
var handler = Select.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
16
|
+
const selection = yield* Capability.get(AttentionCapabilities.Selection);
|
|
17
|
+
Match.value(input.selection).pipe(Match.when({
|
|
18
|
+
mode: "single",
|
|
19
|
+
id: void 0
|
|
20
|
+
}, () => {
|
|
21
|
+
selection.clearSelection(input.contextId);
|
|
22
|
+
}), Match.when({
|
|
23
|
+
mode: "single"
|
|
24
|
+
}, (s) => {
|
|
25
|
+
selection.updateSingle(input.contextId, s.id);
|
|
26
|
+
}), Match.when({
|
|
27
|
+
mode: "multi"
|
|
28
|
+
}, (s) => {
|
|
29
|
+
selection.updateMulti(input.contextId, s.ids);
|
|
30
|
+
}), Match.when({
|
|
31
|
+
mode: "range",
|
|
32
|
+
from: void 0,
|
|
33
|
+
to: void 0
|
|
34
|
+
}, () => {
|
|
35
|
+
selection.clearSelection(input.contextId);
|
|
36
|
+
}), Match.when({
|
|
37
|
+
mode: "range"
|
|
38
|
+
}, (s) => {
|
|
39
|
+
selection.updateRange(input.contextId, s.from, s.to);
|
|
40
|
+
}), Match.when({
|
|
41
|
+
mode: "multi-range"
|
|
42
|
+
}, (s) => {
|
|
43
|
+
selection.updateMultiRange(input.contextId, s.ranges);
|
|
44
|
+
}), Match.exhaustive);
|
|
45
|
+
})));
|
|
46
|
+
var select_default = handler;
|
|
47
|
+
export {
|
|
48
|
+
select_default as default
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=select-77TJ4G4V.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/select.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Match from 'effect/Match';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/operation';\n\nimport { AttentionCapabilities } from '../types';\nimport { Select } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Select> = Select.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const selection = yield* Capability.get(AttentionCapabilities.Selection);\n Match.value(input.selection).pipe(\n Match.when({ mode: 'single', id: undefined }, () => {\n selection.clearSelection(input.contextId);\n }),\n Match.when({ mode: 'single' }, (s) => {\n selection.updateSingle(input.contextId, s.id!);\n }),\n Match.when({ mode: 'multi' }, (s) => {\n selection.updateMulti(input.contextId, s.ids);\n }),\n Match.when({ mode: 'range', from: undefined, to: undefined }, () => {\n selection.clearSelection(input.contextId);\n }),\n Match.when({ mode: 'range' }, (s) => {\n selection.updateRange(input.contextId, s.from!, s.to!);\n }),\n Match.when({ mode: 'multi-range' }, (s) => {\n selection.updateMultiRange(input.contextId, s.ranges);\n }),\n Match.exhaustive,\n );\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,WAAW;AAEvB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAK1B,IAAMC,UAAgDC,OAAOC,KAC3DC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,YAAY,OAAOC,WAAWC,IAAIC,sBAAsBC,SAAS;AACvEC,EAAMC,YAAMP,MAAMC,SAAS,EAAEL,KACrBY,WAAK;IAAEC,MAAM;IAAUC,IAAIC;EAAU,GAAG,MAAA;AAC5CV,cAAUW,eAAeZ,MAAMa,SAAS;EAC1C,CAAA,GACML,WAAK;IAAEC,MAAM;EAAS,GAAG,CAACK,MAAAA;AAC9Bb,cAAUc,aAAaf,MAAMa,WAAWC,EAAEJ,EAAE;EAC9C,CAAA,GACMF,WAAK;IAAEC,MAAM;EAAQ,GAAG,CAACK,MAAAA;AAC7Bb,cAAUe,YAAYhB,MAAMa,WAAWC,EAAEG,GAAG;EAC9C,CAAA,GACMT,WAAK;IAAEC,MAAM;IAASS,MAAMP;IAAWQ,IAAIR;EAAU,GAAG,MAAA;AAC5DV,cAAUW,eAAeZ,MAAMa,SAAS;EAC1C,CAAA,GACML,WAAK;IAAEC,MAAM;EAAQ,GAAG,CAACK,MAAAA;AAC7Bb,cAAUmB,YAAYpB,MAAMa,WAAWC,EAAEI,MAAOJ,EAAEK,EAAE;EACtD,CAAA,GACMX,WAAK;IAAEC,MAAM;EAAc,GAAG,CAACK,MAAAA;AACnCb,cAAUoB,iBAAiBrB,MAAMa,WAAWC,EAAEQ,MAAM;EACtD,CAAA,GACMC,gBAAU;AAEpB,CAAA,CAAA,CAAA;AAIJ,IAAA,iBAAe7B;",
|
|
6
|
+
"names": ["Effect", "Match", "Capability", "Operation", "handler", "Select", "pipe", "Operation", "withHandler", "fnUntraced", "input", "selection", "Capability", "get", "AttentionCapabilities", "Selection", "Match", "value", "when", "mode", "id", "undefined", "clearSelection", "contextId", "s", "updateSingle", "updateMulti", "ids", "from", "to", "updateRange", "updateMultiRange", "ranges", "exhaustive"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
AttentionAction
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
AttentionAction,
|
|
4
|
+
AttentionCapabilities,
|
|
5
|
+
AttentionEvents
|
|
6
|
+
} from "../chunk-6PJTMEYS.mjs";
|
|
7
|
+
import "../chunk-X4V4W35V.mjs";
|
|
6
8
|
export {
|
|
7
|
-
AttentionAction
|
|
9
|
+
AttentionAction,
|
|
10
|
+
AttentionCapabilities,
|
|
11
|
+
AttentionEvents
|
|
8
12
|
};
|
|
9
13
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttentionPlugin.d.ts","sourceRoot":"","sources":["../../../src/AttentionPlugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AttentionPlugin.d.ts","sourceRoot":"","sources":["../../../src/AttentionPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAA+D,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAS1G,eAAO,MAAM,eAAe,4BA2B3B,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
id: string;
|
|
5
|
-
dependsOn?: string[];
|
|
6
|
-
context: import("react").FC<import("react").PropsWithChildren>;
|
|
7
|
-
}>>> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
8
|
-
export * from './capabilities';
|
|
1
|
+
export * from './keyboard';
|
|
2
|
+
export * from './operation-handler';
|
|
3
|
+
export * from './react-context';
|
|
9
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/keyboard/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,QAAQ,8FAA0D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/keyboard/keyboard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAK/D,wBAaE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import { OperationHandlerSet } from '@dxos/operation';
|
|
3
|
+
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-handler/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,oGAG5B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import type { OperationHandlerSet } from '@dxos/operation';
|
|
4
|
+
declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=operation-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-handler/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;;AAI3D,wBAIE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
export declare const ReactContext: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
3
|
+
id: string;
|
|
4
|
+
dependsOn?: string[];
|
|
5
|
+
context: import("react").FC<import("react").PropsWithChildren>;
|
|
6
|
+
}>>>, Error>;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-context/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;YAAmE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3
|
+
import { Capability } from '@dxos/app-framework';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
5
|
+
id: string;
|
|
6
|
+
dependsOn?: string[];
|
|
7
|
+
context: React.FC<PropsWithChildren>;
|
|
8
|
+
}>>>, never, never>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=react-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-context/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;;;;;AAO/D,wBAwBE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,0BAA0B,CAAC;AAEzC,cAAc,mBAAmB,CAAC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,0BAA0B,CAAC;AAEzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const meta:
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const meta: Plugin.Meta;
|
|
3
3
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAOzB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import { Operation } from '@dxos/operation';
|
|
3
|
+
export declare const Select: Operation.Definition<{
|
|
4
|
+
readonly contextId: string;
|
|
5
|
+
readonly selection: {
|
|
6
|
+
mode: "single";
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
} | {
|
|
9
|
+
mode: "multi";
|
|
10
|
+
ids: string[];
|
|
11
|
+
} | {
|
|
12
|
+
mode: "range";
|
|
13
|
+
from?: string | undefined;
|
|
14
|
+
to?: string | undefined;
|
|
15
|
+
} | {
|
|
16
|
+
mode: "multi-range";
|
|
17
|
+
ranges: {
|
|
18
|
+
readonly from: string;
|
|
19
|
+
readonly to: string;
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
}, void, Capability.Service>;
|
|
23
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../src/operations/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAK5C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;4BAYjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,kBAAkB,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,4BAA4B,yCAAqD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/operations/select.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,MAAM,CA2BjD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import { type AttentionManager, type SelectionManager } from '@dxos/react-ui-attention';
|
|
3
|
+
export declare namespace AttentionCapabilities {
|
|
4
|
+
const Attention: Capability.InterfaceDef<AttentionManager>;
|
|
5
|
+
const Selection: Capability.InterfaceDef<SelectionManager>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAIxF,yBAAiB,qBAAqB,CAAC;IAC9B,MAAM,SAAS,2CAAuE,CAAC;IACvF,MAAM,SAAS,2CAAuE,CAAC;CAC/F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAItD,yBAAiB,eAAe,CAAC;IACxB,MAAM,cAAc,iCAA2D,CAAC;CACxF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
2
|
export declare namespace AttentionAction {
|
|
3
|
-
const Select_base: Schema.TaggedClass<Select, `${string}
|
|
4
|
-
readonly _tag: Schema.tag<`${string}
|
|
3
|
+
const Select_base: Schema.TaggedClass<Select, `${string}.select`, {
|
|
4
|
+
readonly _tag: Schema.tag<`${string}.select`>;
|
|
5
5
|
} & {
|
|
6
6
|
input: Schema.Struct<{
|
|
7
7
|
contextId: typeof Schema.String;
|