@xyo-network/react-pixel 6.1.3 → 6.2.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.
- package/dist/browser/index.d.ts +2 -34
- package/package.json +7 -7
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as _xylabs_react_shared from '@xylabs/react-shared';
|
|
4
|
-
import { ContextExState } from '@xylabs/react-shared';
|
|
5
|
-
import * as _xylabs_pixel from '@xylabs/pixel';
|
|
6
|
-
import { XyPixel } from '@xylabs/pixel';
|
|
7
|
-
|
|
8
|
-
declare const PixelContext: react.Context<({
|
|
9
|
-
pixel?: _xylabs_pixel.XyPixel;
|
|
10
|
-
} & {
|
|
11
|
-
provided: true;
|
|
12
|
-
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.ProvidedContextExState<{
|
|
13
|
-
pixel?: _xylabs_pixel.XyPixel;
|
|
14
|
-
}>, never> & {
|
|
15
|
-
provided: false;
|
|
16
|
-
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.NotProvidedContextExState<{
|
|
17
|
-
pixel?: _xylabs_pixel.XyPixel;
|
|
18
|
-
}>, never> & {
|
|
19
|
-
provided: false;
|
|
20
|
-
})>;
|
|
21
|
-
|
|
22
|
-
interface PixelProviderProps {
|
|
23
|
-
id: string;
|
|
24
|
-
}
|
|
25
|
-
declare const PixelProvider: react__default.FC<PropsWithChildren<PixelProviderProps>>;
|
|
26
|
-
|
|
27
|
-
type PixelContextState = ContextExState<{
|
|
28
|
-
pixel?: XyPixel;
|
|
29
|
-
}>;
|
|
30
|
-
|
|
31
|
-
declare const usePixel: (required?: boolean) => _xylabs_pixel.XyPixel | undefined;
|
|
32
|
-
|
|
33
|
-
export { PixelContext, PixelProvider, usePixel };
|
|
34
|
-
export type { PixelContextState, PixelProviderProps };
|
|
1
|
+
export * from './contexts/index.ts';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-pixel",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
40
|
"types": "dist/browser/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xylabs/pixel": "^4.
|
|
43
|
-
"@xylabs/react-shared": "^6.
|
|
42
|
+
"@xylabs/pixel": "^4.15.0",
|
|
43
|
+
"@xylabs/react-shared": "^6.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@mui/icons-material": "^7.2.0",
|
|
47
47
|
"@mui/material": "^7.2.0",
|
|
48
48
|
"@types/react": "^19.1.8",
|
|
49
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
50
|
-
"@xylabs/tsconfig-react": "
|
|
51
|
-
"react": "^19.1.
|
|
52
|
-
"react-dom": "^19.1.
|
|
49
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.1",
|
|
50
|
+
"@xylabs/tsconfig-react": "^7.0.1",
|
|
51
|
+
"react": "^19.1.1",
|
|
52
|
+
"react-dom": "^19.1.1",
|
|
53
53
|
"typescript": "^5.8.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|