@xyo-network/react-pixel 6.0.0 → 6.1.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.
@@ -0,0 +1,34 @@
1
+ import * as react from 'react';
2
+ import react__default, { PropsWithChildren } from 'react';
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-pixel",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -28,26 +28,26 @@
28
28
  "exports": {
29
29
  ".": {
30
30
  "browser": {
31
- "types": "./dist/types/index.d.ts",
31
+ "types": "./dist/browser/index.d.ts",
32
32
  "default": "./dist/browser/index.mjs"
33
33
  },
34
- "types": "./dist/types/index.d.ts",
34
+ "types": "./dist/browser/index.d.ts",
35
35
  "default": "./dist/browser/index.mjs"
36
36
  },
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "module": "dist/browser/index.mjs",
40
- "types": "dist/types/index.d.ts",
40
+ "types": "dist/browser/index.d.ts",
41
41
  "dependencies": {
42
- "@xylabs/pixel": "^4.12.31",
43
- "@xylabs/react-shared": "^6.3.7"
42
+ "@xylabs/pixel": "^4.13.15",
43
+ "@xylabs/react-shared": "^6.3.10"
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": "^6.5.12",
50
- "@xylabs/tsconfig-react": "^6.5.12",
49
+ "@xylabs/ts-scripts-yarn3": "next",
50
+ "@xylabs/tsconfig-react": "next",
51
51
  "react": "^19.1.0",
52
52
  "react-dom": "^19.1.0",
53
53
  "typescript": "^5.8.3"
@@ -1,2 +0,0 @@
1
- export * from './contexts/index.ts';
2
- //# sourceMappingURL=index.d.ts.map
File without changes
File without changes
File without changes
File without changes