@dxos/react-ui-attention 0.8.4-main.c1de068 → 0.8.4-main.fd6878d
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-3K54PTHR.mjs → chunk-PXMGIYAQ.mjs} +11 -11
- package/dist/lib/{node-esm/chunk-LVRGGYEI.mjs.map → browser/chunk-PXMGIYAQ.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node-esm/{chunk-LVRGGYEI.mjs → chunk-V2PNA7ZV.mjs} +11 -11
- package/dist/lib/{browser/chunk-3K54PTHR.mjs.map → node-esm/chunk-V2PNA7ZV.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +1 -1
- package/dist/types/src/attention.d.ts.map +1 -1
- package/dist/types/src/components/AttentionGlyph.d.ts.map +1 -1
- package/dist/types/src/components/AttentionProvider.d.ts +1 -1
- package/dist/types/src/components/AttentionProvider.d.ts.map +1 -1
- package/dist/types/src/components/AttentionProvider.stories.d.ts.map +1 -1
- package/dist/types/src/components/SelectionProvider.d.ts +1 -1
- package/dist/types/src/components/SelectionProvider.d.ts.map +1 -1
- package/dist/types/src/selection.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -13
- package/src/attention.test.ts +1 -1
- package/src/attention.ts +1 -1
- package/src/components/AttentionGlyph.tsx +1 -1
- package/src/components/AttentionProvider.stories.tsx +2 -1
- package/src/components/AttentionProvider.tsx +3 -3
- package/src/components/SelectionProvider.tsx +4 -4
- package/src/selection.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-attention",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.fd6878d",
|
|
4
4
|
"description": "Signifier components and providers for attention system.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"source": "./src/index.ts",
|
|
13
14
|
"types": "./dist/types/src/index.d.ts",
|
|
14
15
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
16
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
16
17
|
},
|
|
17
18
|
"./testing": {
|
|
19
|
+
"source": "./src/testing/index.ts",
|
|
18
20
|
"types": "./dist/types/src/testing/index.d.ts",
|
|
19
21
|
"browser": "./dist/lib/browser/testing/index.mjs",
|
|
20
22
|
"node": "./dist/lib/node-esm/testing/index.mjs"
|
|
@@ -42,12 +44,12 @@
|
|
|
42
44
|
"@radix-ui/react-primitive": "2.0.2",
|
|
43
45
|
"@radix-ui/react-slot": "1.1.2",
|
|
44
46
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
|
45
|
-
"effect": "3.17.
|
|
46
|
-
"@dxos/echo-schema": "0.8.4-main.
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/util": "0.8.4-main.
|
|
50
|
-
"@dxos/
|
|
47
|
+
"effect": "3.17.7",
|
|
48
|
+
"@dxos/echo-schema": "0.8.4-main.fd6878d",
|
|
49
|
+
"@dxos/live-object": "0.8.4-main.fd6878d",
|
|
50
|
+
"@dxos/invariant": "0.8.4-main.fd6878d",
|
|
51
|
+
"@dxos/util": "0.8.4-main.fd6878d",
|
|
52
|
+
"@dxos/log": "0.8.4-main.fd6878d"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
53
55
|
"@types/react": "~18.2.0",
|
|
@@ -55,17 +57,17 @@
|
|
|
55
57
|
"react": "~18.2.0",
|
|
56
58
|
"react-dom": "~18.2.0",
|
|
57
59
|
"vite": "5.4.7",
|
|
58
|
-
"@dxos/random": "0.8.4-main.
|
|
59
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
60
|
+
"@dxos/random": "0.8.4-main.fd6878d",
|
|
61
|
+
"@dxos/react-ui-theme": "0.8.4-main.fd6878d",
|
|
62
|
+
"@dxos/storybook-utils": "0.8.4-main.fd6878d",
|
|
63
|
+
"@dxos/react-ui": "0.8.4-main.fd6878d"
|
|
62
64
|
},
|
|
63
65
|
"peerDependencies": {
|
|
64
66
|
"effect": "^3.13.3",
|
|
65
67
|
"react": "~18.2.0",
|
|
66
68
|
"react-dom": "~18.2.0",
|
|
67
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
68
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
69
|
+
"@dxos/react-ui": "0.8.4-main.fd6878d",
|
|
70
|
+
"@dxos/react-ui-theme": "0.8.4-main.fd6878d"
|
|
69
71
|
},
|
|
70
72
|
"publishConfig": {
|
|
71
73
|
"access": "public"
|
package/src/attention.test.ts
CHANGED
package/src/attention.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { untracked } from '@preact/signals-core';
|
|
6
6
|
import { Schema } from 'effect';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { type Live, live } from '@dxos/live-object';
|
|
9
9
|
import { ComplexMap } from '@dxos/util';
|
|
10
10
|
|
|
11
11
|
// NOTE: Chosen from RFC 1738’s `safe` characters: http://www.faqs.org/rfcs/rfc1738.html
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { type Primitive } from '@radix-ui/react-primitive';
|
|
6
|
-
import React, { type
|
|
6
|
+
import React, { type CSSProperties, type ComponentPropsWithRef, forwardRef, useMemo } from 'react';
|
|
7
7
|
|
|
8
8
|
import { Icon, type ThemedClassName } from '@dxos/react-ui';
|
|
9
9
|
import { mx } from '@dxos/react-ui-theme';
|
|
@@ -8,9 +8,10 @@ import React from 'react';
|
|
|
8
8
|
|
|
9
9
|
import { withTheme } from '@dxos/storybook-utils';
|
|
10
10
|
|
|
11
|
-
import { useAttentionAttributes } from './AttentionProvider';
|
|
12
11
|
import { withAttention } from '../testing';
|
|
13
12
|
|
|
13
|
+
import { useAttentionAttributes } from './AttentionProvider';
|
|
14
|
+
|
|
14
15
|
const Attendable = ({ id }: { id: string }) => {
|
|
15
16
|
const attentionAttrs = useAttentionAttributes(id);
|
|
16
17
|
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
// NOTE(thure): The following unused imports quell TS2742 (“likely not portable”).
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line unused-imports/no-unused-imports
|
|
8
|
-
import {
|
|
8
|
+
import { type CreateScope, type Scope, createContext } from '@radix-ui/react-context';
|
|
9
9
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
10
10
|
import { Slot } from '@radix-ui/react-slot';
|
|
11
|
-
import React, {
|
|
11
|
+
import React, { type ComponentPropsWithRef, type FocusEvent, type PropsWithChildren, forwardRef, useMemo } from 'react';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { type ThemedClassName, useDefaultValue } from '@dxos/react-ui';
|
|
14
14
|
import { mx } from '@dxos/react-ui-theme';
|
|
15
15
|
|
|
16
16
|
import { ATTENDABLE_PATH_SEPARATOR, type Attention, AttentionManager, getAttendables } from '../attention';
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
import { createContext } from '@radix-ui/react-context';
|
|
6
6
|
import { Match } from 'effect';
|
|
7
|
-
import React, { useCallback, useMemo
|
|
7
|
+
import React, { type PropsWithChildren, useCallback, useMemo } from 'react';
|
|
8
8
|
|
|
9
9
|
import { useDefaultValue } from '@dxos/react-ui';
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
|
-
defaultSelection,
|
|
13
|
-
SelectionManager,
|
|
14
|
-
type SelectionResult,
|
|
15
12
|
type Selection,
|
|
13
|
+
SelectionManager,
|
|
16
14
|
type SelectionMode,
|
|
15
|
+
type SelectionResult,
|
|
16
|
+
defaultSelection,
|
|
17
17
|
} from '../selection';
|
|
18
18
|
|
|
19
19
|
const SELECTION_NAME = 'Selection';
|
package/src/selection.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { untracked } from '@preact/signals-core';
|
|
|
6
6
|
import { Match, Schema } from 'effect';
|
|
7
7
|
|
|
8
8
|
import { invariant } from '@dxos/invariant';
|
|
9
|
-
import {
|
|
9
|
+
import { type Live, live } from '@dxos/live-object';
|
|
10
10
|
|
|
11
11
|
// TODO(burdon): Reconcile with @dxos/graph.
|
|
12
12
|
|