@dxos/react-ui-attention 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/lib/chunk-ViewStateProvider.mjs +1 -1
  2. package/dist/lib/chunk-types.mjs +240 -9
  3. package/dist/lib/chunk-types.mjs.map +1 -1
  4. package/dist/lib/index.mjs +242 -56
  5. package/dist/lib/index.mjs.map +1 -1
  6. package/dist/lib/testing.mjs +1 -1
  7. package/dist/lib/types.mjs +1 -1
  8. package/dist/types/src/components/AttentionGlyph/AttentionGlyph.d.ts +6 -11
  9. package/dist/types/src/components/AttentionGlyph/AttentionGlyph.d.ts.map +1 -1
  10. package/dist/types/src/components/AttentionGlyph/AttentionGlyph.stories.d.ts +13 -6
  11. package/dist/types/src/components/AttentionGlyph/AttentionGlyph.stories.d.ts.map +1 -1
  12. package/dist/types/src/components/RemoteCursor/RemoteCursor.d.ts +18 -0
  13. package/dist/types/src/components/RemoteCursor/RemoteCursor.d.ts.map +1 -0
  14. package/dist/types/src/components/RemoteCursor/RemoteCursorLayer.d.ts +32 -0
  15. package/dist/types/src/components/RemoteCursor/RemoteCursorLayer.d.ts.map +1 -0
  16. package/dist/types/src/components/RemoteCursor/RemoteCursorLayer.test.d.ts +2 -0
  17. package/dist/types/src/components/RemoteCursor/RemoteCursorLayer.test.d.ts.map +1 -0
  18. package/dist/types/src/components/RemoteCursor/index.d.ts +3 -0
  19. package/dist/types/src/components/RemoteCursor/index.d.ts.map +1 -0
  20. package/dist/types/src/components/ScrollScope/ScrollScope.d.ts +11 -0
  21. package/dist/types/src/components/ScrollScope/ScrollScope.d.ts.map +1 -0
  22. package/dist/types/src/components/ScrollScope/ScrollScope.stories.d.ts +15 -0
  23. package/dist/types/src/components/ScrollScope/ScrollScope.stories.d.ts.map +1 -0
  24. package/dist/types/src/components/ScrollScope/index.d.ts +2 -0
  25. package/dist/types/src/components/ScrollScope/index.d.ts.map +1 -0
  26. package/dist/types/src/components/index.d.ts +2 -0
  27. package/dist/types/src/components/index.d.ts.map +1 -1
  28. package/dist/types/src/types/Activity.d.ts +71 -0
  29. package/dist/types/src/types/Activity.d.ts.map +1 -0
  30. package/dist/types/src/types/Activity.test.d.ts +2 -0
  31. package/dist/types/src/types/Activity.test.d.ts.map +1 -0
  32. package/dist/types/src/types/ScrollPosition.d.ts +24 -0
  33. package/dist/types/src/types/ScrollPosition.d.ts.map +1 -0
  34. package/dist/types/src/types/ViewLocation.d.ts +16 -0
  35. package/dist/types/src/types/ViewLocation.d.ts.map +1 -0
  36. package/dist/types/src/types/ViewState.d.ts +44 -2
  37. package/dist/types/src/types/ViewState.d.ts.map +1 -1
  38. package/dist/types/src/types/index.d.ts +3 -0
  39. package/dist/types/src/types/index.d.ts.map +1 -1
  40. package/dist/types/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +17 -16
  42. package/src/components/AttentionGlyph/AttentionGlyph.stories.tsx +424 -31
  43. package/src/components/AttentionGlyph/AttentionGlyph.tsx +80 -56
  44. package/src/components/RemoteCursor/RemoteCursor.tsx +55 -0
  45. package/src/components/RemoteCursor/RemoteCursorLayer.test.tsx +98 -0
  46. package/src/components/RemoteCursor/RemoteCursorLayer.tsx +97 -0
  47. package/src/components/RemoteCursor/index.ts +6 -0
  48. package/src/components/ScrollScope/ScrollScope.stories.tsx +97 -0
  49. package/src/components/ScrollScope/ScrollScope.tsx +59 -0
  50. package/src/components/ScrollScope/index.ts +5 -0
  51. package/src/components/index.ts +2 -0
  52. package/src/types/Activity.test.ts +53 -0
  53. package/src/types/Activity.ts +110 -0
  54. package/src/types/ScrollPosition.ts +34 -0
  55. package/src/types/ViewLocation.ts +28 -0
  56. package/src/types/ViewState.test.ts +74 -1
  57. package/src/types/ViewState.ts +217 -4
  58. package/src/types/index.ts +3 -0
@@ -0,0 +1,71 @@
1
+ import { type Hue, type Label } from '@dxos/ui-types';
2
+ /**
3
+ * The places on the attention glyph an activity can draw: the square's fill, the mark inside it, its edge, and a dot
4
+ * at its corner. Each holds at most one treatment.
5
+ */
6
+ export type Slot = 'fill' | 'mark' | 'edge' | 'corner';
7
+ /** The slots in drawing order, back to front. */
8
+ export declare const Slots: readonly Slot[];
9
+ /** A mark the glyph draws itself; any other mark is a Phosphor icon id (e.g. `ph--warning--fill`). */
10
+ export type MarkShape = 'dot' | 'dots' | 'star';
11
+ /** What every treatment carries, whatever its slot. */
12
+ type Common = {
13
+ /** Within a slot the highest priority wins, and a tie goes to the first requested. */
14
+ readonly priority: number;
15
+ /** Asks for the slot's motion; at most one slot moves (see {@link resolve}). */
16
+ readonly animate?: boolean;
17
+ };
18
+ /** A wash of colour behind the mark. Attention always takes the fill first. */
19
+ export type Fill = Common & {
20
+ readonly slot: 'fill';
21
+ readonly hue: Hue;
22
+ /** How much of the hue shows, from 0 to 1; 0.25 when unset. */
23
+ readonly opacity?: number;
24
+ };
25
+ export type Mark = Common & {
26
+ readonly slot: 'mark';
27
+ readonly icon: MarkShape | (string & {});
28
+ /** The text colour when unset. */
29
+ readonly hue?: Hue;
30
+ };
31
+ /** An outline around the square, dashed for something due rather than under way. */
32
+ export type Edge = Omit<Common, 'animate'> & {
33
+ readonly slot: 'edge';
34
+ readonly hue: Hue;
35
+ readonly dashed?: boolean;
36
+ };
37
+ /** A dot, or a ring, just outside the square's top-right corner. */
38
+ export type Corner = Common & {
39
+ readonly slot: 'corner';
40
+ readonly hue: Hue;
41
+ readonly shape?: 'dot' | 'ring';
42
+ };
43
+ /** How one activity draws: which slot it claims, what it draws there and how strongly it claims it. */
44
+ export type Treatment = Fill | Mark | Edge | Corner;
45
+ /** Something happening on an object, as one line of the glyph's tooltip and, optionally, one treatment on it. */
46
+ export type Entry = {
47
+ /** Who reported it, e.g. `presence` or `assistant`. */
48
+ readonly source: string;
49
+ /** Shown in the tooltip whether or not the treatment wins its slot. */
50
+ readonly label: Label;
51
+ readonly treatment?: Treatment;
52
+ };
53
+ /** What the glyph draws: the winning treatment per slot, and the one slot whose treatment animates. */
54
+ export type Resolved = {
55
+ readonly fill?: Fill;
56
+ readonly mark?: Mark;
57
+ readonly edge?: Edge;
58
+ readonly corner?: Corner;
59
+ readonly moving?: Slot;
60
+ };
61
+ export type ResolveOptions = {
62
+ /** The item is attended, or contains the attended item: attention holds the fill, still, over any treatment. */
63
+ readonly attention?: boolean;
64
+ };
65
+ /**
66
+ * Reduces any set of requested treatments to one per slot by priority, then lets only the first animated slot in
67
+ * {@link MOTION_ORDER} move, so every combination draws at most four things and animates at most one.
68
+ */
69
+ export declare const resolve: (treatments: Iterable<Treatment>, { attention }?: ResolveOptions) => Resolved;
70
+ export {};
71
+ //# sourceMappingURL=Activity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Activity.d.ts","sourceRoot":"","sources":["../../../../src/types/Activity.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEvD,iDAAiD;AACjD,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAAuC,CAAC;AAEzE,sGAAsG;AACtG,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD,uDAAuD;AACvD,KAAK,MAAM,GAAG;IACZ,sFAAsF;IACtF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,gFAAgF;IAChF,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,+EAA+E;AAC/E,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC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,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,gHAAgH;IAChH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAYF;;;GAGG;AACH,eAAO,MAAM,OAAO,eAAgB,QAAQ,CAAC,SAAS,CAAC,kBAAiB,cAAc,KAAQ,QAW7F,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Activity.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Activity.test.d.ts","sourceRoot":"","sources":["../../../../src/types/Activity.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type Aspect } from './ViewState.ts';
3
+ /** Where one scrolling area is scrolled to; see `ScrollArea.ScrollPosition` in react-ui. */
4
+ export declare const Position: Schema.Struct<{
5
+ readonly anchor: Schema.optional<Schema.String>;
6
+ readonly offset: Schema.optional<Schema.Number>;
7
+ readonly y: Schema.Number;
8
+ readonly x: Schema.optional<Schema.Number>;
9
+ }>;
10
+ export type Position = Schema.Schema.Type<typeof Position>;
11
+ /** The position of each tracked scrolling area in an object's view, by area name (`main` for the outermost). */
12
+ export declare const State: Schema.$Record<Schema.String, Schema.Struct<{
13
+ readonly anchor: Schema.optional<Schema.String>;
14
+ readonly offset: Schema.optional<Schema.Number>;
15
+ readonly y: Schema.Number;
16
+ readonly x: Schema.optional<Schema.Number>;
17
+ }>>;
18
+ export type State = Schema.Schema.Type<typeof State>;
19
+ /**
20
+ * The scroll of an object's article, keyed by the object's EID and kept for the session, so a view comes back where it
21
+ * was left; a follower takes the leader's.
22
+ */
23
+ export declare const aspect: Aspect<State>;
24
+ //# sourceMappingURL=ScrollPosition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollPosition.d.ts","sourceRoot":"","sources":["../../../../src/types/ScrollPosition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,gBAAgB,CAAC;AAErD,4FAA4F;AAC5F,eAAO,MAAM,QAAQ;;;;;EAKnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE3D,gHAAgH;AAChH,eAAO,MAAM,KAAK;;;;;GAAyC,CAAC;AAE5D,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,KAAK,CAM/B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type Aspect } from './ViewState.ts';
3
+ /**
4
+ * Where the local user is in an object, as anchors in the object type's own format (the format its
5
+ * comments and its `Locator` use), so a peer's view of the same object can reveal it.
6
+ */
7
+ export declare const ViewLocation: Schema.Struct<{
8
+ /** The caret or selection. */
9
+ readonly selection: Schema.optional<Schema.String>;
10
+ /** The top of what the view shows. */
11
+ readonly viewport: Schema.optional<Schema.String>;
12
+ }>;
13
+ export type ViewLocation = Schema.Schema.Type<typeof ViewLocation>;
14
+ /** View location for an object, keyed by the object's URI and stored in memory (ephemeral, per-device session). */
15
+ export declare const aspect: Aspect<ViewLocation>;
16
+ //# sourceMappingURL=ViewLocation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewLocation.d.ts","sourceRoot":"","sources":["../../../../src/types/ViewLocation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,gBAAgB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,YAAY;IACvB,8BAA8B;;IAE9B,sCAAsC;;EAEtC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE,mHAAmH;AACnH,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,YAAY,CAKtC,CAAC"}
@@ -1,10 +1,26 @@
1
1
  import type * as Atom from 'effect/reactivity/Atom';
2
2
  import type * as Registry from 'effect/reactivity/AtomRegistry';
3
- import type * as Schema from 'effect/Schema';
3
+ import * as Schema from 'effect/Schema';
4
4
  /**
5
5
  * Persistence backend identifier. `personal` (ECHO/personal-space) is reserved for a future backend.
6
6
  */
7
7
  export type BackendName = 'memory' | 'local';
8
+ /**
9
+ * How a session following another takes the leader's values of an aspect: `write` sets them into its own view state,
10
+ * which the view already reads; `reveal` leaves them to the follow, for state a view reports but does not read back.
11
+ */
12
+ export type FollowPolicy = 'write' | 'reveal';
13
+ /**
14
+ * What of an aspect a follower takes: the whole value under a policy, or only the named fields of a struct value,
15
+ * which a `write` follower merges into its own value.
16
+ */
17
+ export type Follow<T> = FollowPolicy | {
18
+ readonly policy: FollowPolicy;
19
+ readonly fields: ReadonlyArray<keyof T & string>;
20
+ };
21
+ /** Whether a value was set by this session or written from the session it follows. */
22
+ export type Origin = 'local' | 'follow';
23
+ export declare const getFollowPolicy: (aspect: Aspect<any, any>) => FollowPolicy | undefined;
8
24
  /**
9
25
  * Declares a kind of per-context UI state. The value type `T` and its persisted wire type `Encoded`
10
26
  * are inferred from the schema; `Encoded` defaults to `T` for the common no-transform case.
@@ -14,6 +30,8 @@ export interface Aspect<T, Encoded = T> {
14
30
  readonly backend: BackendName;
15
31
  readonly schema: Schema.Codec<T, Encoded>;
16
32
  readonly defaultValue: () => T;
33
+ /** Set for state a follower takes from the session it follows; contexts are then EIDs of the space or its objects. */
34
+ readonly follow?: Follow<T>;
17
35
  }
18
36
  /**
19
37
  * Identity helper that pins the value type from the schema while keeping the literal `key`/`backend`.
@@ -30,6 +48,15 @@ export interface Aspect<T, Encoded = T> {
30
48
  * related: org.dxos.effect.kvsStore
31
49
  */
32
50
  export declare const define: <T, Encoded = T>(def: Aspect<T, Encoded>) => Aspect<T, Encoded>;
51
+ /** Encoded fields to merge over one aspect's value for one context; plain JSON, so it can cross an operation. */
52
+ export declare const Patch: Schema.Struct<{
53
+ readonly aspect: Schema.String;
54
+ readonly context: Schema.String;
55
+ readonly fields: Schema.$Record<Schema.String, Schema.Unknown>;
56
+ }>;
57
+ export type Patch = Schema.Schema.Type<typeof Patch>;
58
+ /** A patch setting `fields` of `aspect` for `context`, encoded by the aspect's schema. */
59
+ export declare const patch: <T extends object, Encoded>(aspect: Aspect<T, Encoded>, context: string, fields: Partial<T>) => Patch;
33
60
  /**
34
61
  * A backend produces a reactive, writable atom for each `(aspect, contextId)` pair. Backends may
35
62
  * hydrate asynchronously (an ECHO backend would), yielding `aspect.defaultValue()` until loaded;
@@ -60,8 +87,23 @@ export declare class Manager {
60
87
  atom<T, Encoded>(aspect: Aspect<T, Encoded>, contextId: string): Atom.Writable<T>;
61
88
  get<T, Encoded>(aspect: Aspect<T, Encoded>, contextId: string): T;
62
89
  set<T, Encoded>(aspect: Aspect<T, Encoded>, contextId: string, value: T): void;
90
+ /** Whether the value of `(aspect, contextId)` was set here or written from the followed session. */
91
+ origin<T, Encoded>(aspect: Aspect<T, Encoded>, contextId: string): Origin;
63
92
  update<T, Encoded>(aspect: Aspect<T, Encoded>, contextId: string, fn: (prev: T) => T): void;
64
- subscribe<T, Encoded>(aspect: Aspect<T, Encoded>, contextId: string, cb: (value: T) => void): () => void;
93
+ subscribe<T, Encoded>(aspect: Aspect<T, Encoded>, contextId: string, cb: (value: T, origin: Origin) => void): () => void;
65
94
  contexts<T, Encoded>(aspect: Aspect<T, Encoded>): string[];
95
+ /** The aspect with `key`, once this session has used it. */
96
+ aspect(key: string): Aspect<unknown, unknown> | undefined;
97
+ /** This session's values of every followed aspect it has used, encoded as JSON, by aspect key and then context. */
98
+ followed(contextIds: readonly string[]): Record<string, Record<string, Schema.Json>>;
99
+ /** Calls `listener` when a followed aspect's value is set. */
100
+ subscribeFollowed(listener: (key: string, contextId: string) => void): () => void;
101
+ /** Sets a leader's encoded value of a `write` aspect; one not used yet is held until it is, and one that does not decode is dropped. */
102
+ setEncoded(key: string, contextId: string, value: unknown): void;
103
+ /**
104
+ * Merges a patch's fields over its aspect's value for its context, as a local write. A patch to an aspect this
105
+ * session has not used yet is held until it is; one whose merged value does not decode is dropped.
106
+ */
107
+ apply(patch: Patch): void;
66
108
  }
67
109
  //# sourceMappingURL=ViewState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ViewState.d.ts","sourceRoot":"","sources":["../../../../src/types/ViewState.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,IAAI,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;CAChC;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,OAAO,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,KAAG,MAAM,CAAC,CAAC,EAAE,OAAO,CAAQ,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB,yFAA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AM,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI,CAE1F;IAED,SAAS,CAAC,CAAC,EAAE,OAAO,EAClB,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,EAC1B,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,GACrC,MAAM,IAAI,CAGZ;IAED,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,CAGzD;IAED,4DAA4D;IAC5D,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,SAAS,CAExD;IAED,mHAAmH;IACnH,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAoBnF;IAED,8DAA8D;IAC9D,iBAAiB,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,GAAG,MAAM,IAAI,CAGhF;IAED,wIAAwI;IACxI,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAO/D;IAED;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAOxB;CAgDF"}
@@ -1,5 +1,8 @@
1
+ export * as Activity from './Activity.ts';
1
2
  export * as Attention from './Attention.ts';
3
+ export * as ScrollPosition from './ScrollPosition.ts';
2
4
  export * as Selection from './Selection.ts';
5
+ export * as ViewLocation from './ViewLocation.ts';
3
6
  export * as ViewState from './ViewState.ts';
4
7
  export * from '../core/index.ts';
5
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAK5C,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAK5C,cAAc,kBAAkB,CAAC"}