@dxos/react-ui-attention 0.8.0 → 0.8.1-main.81238a8
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/types/src/components/AttentionGlyph.d.ts +1 -1
- package/dist/types/src/components/AttentionGlyph.d.ts.map +1 -1
- package/dist/types/src/components/AttentionGlyph.stories.d.ts +2 -2
- package/dist/types/src/components/AttentionProvider.d.ts +2 -2
- package/dist/types/src/components/AttentionProvider.d.ts.map +1 -1
- package/dist/types/src/components/AttentionProvider.stories.d.ts +2 -1
- package/dist/types/src/components/AttentionProvider.stories.d.ts.map +1 -1
- package/dist/types/src/components/SelectionProvider.d.ts +2 -2
- package/dist/types/src/components/SelectionProvider.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Primitive } from '@radix-ui/react-primitive';
|
|
2
2
|
import React, { type ComponentPropsWithRef } from 'react';
|
|
3
3
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
|
-
export declare const Syncing: () =>
|
|
4
|
+
export declare const Syncing: () => React.JSX.Element;
|
|
5
5
|
export type AttentionGlyphProps = {
|
|
6
6
|
attended?: boolean;
|
|
7
7
|
containsAttended?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttentionGlyph.d.ts","sourceRoot":"","sources":["../../../../src/components/AttentionGlyph.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAA2C,MAAM,OAAO,CAAC;AAEnG,OAAO,EAAQ,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA2C5D,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"AttentionGlyph.d.ts","sourceRoot":"","sources":["../../../../src/components/AttentionGlyph.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAA2C,MAAM,OAAO,CAAC;AAEnG,OAAO,EAAQ,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA2C5D,eAAO,MAAM,OAAO,yBAmBnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;CACpC,GAAG,eAAe,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;AAEpF,eAAO,MAAM,cAAc,0GAkB1B,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { type AttentionGlyphProps } from './AttentionGlyph';
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: React.ForwardRefExoticComponent<Omit<AttentionGlyphProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
-
render: (props: AttentionGlyphProps) =>
|
|
7
|
+
render: (props: AttentionGlyphProps) => React.JSX.Element;
|
|
8
8
|
decorators: import("@storybook/react").Decorator[];
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
@@ -22,6 +22,6 @@ export declare const Contains: {
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export declare const Syncing: {
|
|
25
|
-
render: () =>
|
|
25
|
+
render: () => React.JSX.Element;
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=AttentionGlyph.stories.d.ts.map
|
|
@@ -20,10 +20,10 @@ declare const useAttentionPath: () => string[];
|
|
|
20
20
|
declare const RootAttentionProvider: ({ children, attention: propsAttention, onChange, }: PropsWithChildren<Partial<{
|
|
21
21
|
attention: AttentionManager;
|
|
22
22
|
onChange: (nextAttended: string[]) => void;
|
|
23
|
-
}>>) =>
|
|
23
|
+
}>>) => React.JSX.Element;
|
|
24
24
|
declare const AttentionProvider: ({ id, children }: PropsWithChildren<{
|
|
25
25
|
id: string;
|
|
26
|
-
}>) =>
|
|
26
|
+
}>) => React.JSX.Element;
|
|
27
27
|
export type AttendableContainerProps = ThemedClassName<ComponentPropsWithRef<'div'> & {
|
|
28
28
|
id: string;
|
|
29
29
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttentionProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/AttentionProvider.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAA4B,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAExH,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGvE,OAAO,EAAE,KAAK,SAAS,EAAE,gBAAgB,EAAkB,MAAM,cAAc,CAAC;AAEhF,QAAA,MAAM,cAAc,cAAc,CAAC;AACnC,QAAA,MAAM,mBAAmB,uBAAuB,CAAC;AACjD,QAAA,MAAM,0BAA0B,6BAA6B,CAAC;AAE9D,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,QAAA,MAAiC,mBAAmB,iDAGlD,CAAC;AAIH,QAAA,MAAM,YAAY,kBAAmB,MAAM,KAAG,SAQ7C,CAAC;AAEF,QAAA,MAAM,WAAW,yBAGhB,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,uBAAuB,kBAAmB,MAAM,uCAUrD,CAAC;AAEF,QAAA,MAAM,gBAAgB,gBAGrB,CAAC;AAEF,QAAA,MAAM,qBAAqB,uDAIxB,iBAAiB,CAClB,OAAO,CAAC;IACN,SAAS,EAAE,gBAAgB,CAAC;IAC5B,QAAQ,EAAE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AAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CACjE,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,mBAAmB,8GAgBxB,CAAC;AAEF,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,0BAA0B,GAC3B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
render: () =>
|
|
5
|
+
render: () => React.JSX.Element;
|
|
5
6
|
decorators: import("@storybook/react").Decorator[];
|
|
6
7
|
};
|
|
7
8
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttentionProvider.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/AttentionProvider.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"AttentionProvider.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/AttentionProvider.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AA4B1B,wBAIE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { SelectionManager } from '../selection';
|
|
3
3
|
/**
|
|
4
4
|
* Manages selection state across the app for multiple contexts.
|
|
5
5
|
*/
|
|
6
6
|
export declare const SelectionProvider: ({ children, selection: propsSelection, }: PropsWithChildren<{
|
|
7
7
|
selection?: SelectionManager;
|
|
8
|
-
}>) =>
|
|
8
|
+
}>) => React.JSX.Element;
|
|
9
9
|
export declare const useSelectedItems: (contextId?: string) => Set<string>;
|
|
10
10
|
/**
|
|
11
11
|
* Provides functions to manage the selection state for multiple contexts.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionProvider.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"SelectionProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectionProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAwB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAYhD;;GAEG;AAGH,eAAO,MAAM,iBAAiB,6CAG3B,iBAAiB,CAAC;IAAE,SAAS,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAAC,sBAGrD,CAAC;AAKF,eAAO,MAAM,gBAAgB,eAAgB,MAAM,KAAG,GAAG,CAAC,MAAM,CAG/D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,eAAgB,MAAM,EAAE;kBAK9C,MAAM,EAAE;iBAST,MAAM;;CAed,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-attention",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-main.81238a8",
|
|
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",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@radix-ui/react-primitive": "2.0.2",
|
|
42
42
|
"@radix-ui/react-slot": "1.1.2",
|
|
43
43
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
|
44
|
-
"@dxos/echo-schema": "0.8.
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
44
|
+
"@dxos/echo-schema": "0.8.1-main.81238a8",
|
|
45
|
+
"@dxos/util": "0.8.1-main.81238a8",
|
|
46
|
+
"@dxos/live-object": "0.8.1-main.81238a8"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
"react": "~18.2.0",
|
|
53
53
|
"react-dom": "~18.2.0",
|
|
54
54
|
"vite": "5.4.7",
|
|
55
|
-
"@dxos/app-graph": "0.8.
|
|
56
|
-
"@dxos/random": "0.8.
|
|
57
|
-
"@dxos/react-ui-theme": "0.8.
|
|
58
|
-
"@dxos/react-ui": "0.8.
|
|
59
|
-
"@dxos/storybook-utils": "0.8.
|
|
55
|
+
"@dxos/app-graph": "0.8.1-main.81238a8",
|
|
56
|
+
"@dxos/random": "0.8.1-main.81238a8",
|
|
57
|
+
"@dxos/react-ui-theme": "0.8.1-main.81238a8",
|
|
58
|
+
"@dxos/react-ui": "0.8.1-main.81238a8",
|
|
59
|
+
"@dxos/storybook-utils": "0.8.1-main.81238a8"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@phosphor-icons/react": "^2.1.5",
|
|
63
63
|
"react": "~18.2.0",
|
|
64
64
|
"react-dom": "~18.2.0",
|
|
65
|
-
"@dxos/react-ui": "0.8.
|
|
66
|
-
"@dxos/react-ui-theme": "0.8.
|
|
65
|
+
"@dxos/react-ui": "0.8.1-main.81238a8",
|
|
66
|
+
"@dxos/react-ui-theme": "0.8.1-main.81238a8"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|