@xyo-network/react-pixel 4.4.3 → 4.4.5
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 +21 -2
- package/package.json +4 -4
- package/dist/browser/contexts/Pixel/Context.d.ts +0 -3
- package/dist/browser/contexts/Pixel/Context.d.ts.map +0 -1
- package/dist/browser/contexts/Pixel/Provider.d.ts +0 -7
- package/dist/browser/contexts/Pixel/Provider.d.ts.map +0 -1
- package/dist/browser/contexts/Pixel/State.d.ts +0 -6
- package/dist/browser/contexts/Pixel/State.d.ts.map +0 -1
- package/dist/browser/contexts/Pixel/index.d.ts +0 -5
- package/dist/browser/contexts/Pixel/index.d.ts.map +0 -1
- package/dist/browser/contexts/Pixel/use.d.ts +0 -2
- package/dist/browser/contexts/Pixel/use.d.ts.map +0 -1
- package/dist/browser/contexts/index.d.ts +0 -2
- package/dist/browser/contexts/index.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default, { PropsWithChildren } from 'react';
|
|
3
|
+
import * as _xyo_network_react_shared from '@xyo-network/react-shared';
|
|
4
|
+
import { ContextExState } from '@xyo-network/react-shared';
|
|
5
|
+
import * as _xylabs_pixel from '@xylabs/pixel';
|
|
6
|
+
import { XyPixel } from '@xylabs/pixel';
|
|
7
|
+
|
|
8
|
+
interface PixelContextState extends ContextExState {
|
|
9
|
+
pixel?: XyPixel;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const PixelContext: react.Context<PixelContextState & _xyo_network_react_shared.ContextExState>;
|
|
13
|
+
|
|
14
|
+
interface PixelProviderProps {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
declare const PixelProvider: react__default.FC<PropsWithChildren<PixelProviderProps>>;
|
|
18
|
+
|
|
19
|
+
declare const usePixel: (required?: boolean) => _xylabs_pixel.XyPixel | undefined;
|
|
20
|
+
|
|
21
|
+
export { PixelContext, type PixelContextState, PixelProvider, type PixelProviderProps, usePixel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-pixel",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.5",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@xylabs/pixel": "^2.0.6",
|
|
47
|
-
"@xyo-network/react-shared": "^4.4.
|
|
47
|
+
"@xyo-network/react-shared": "^4.4.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@mui/icons-material": "^6.4.4",
|
|
51
51
|
"@mui/material": "^6.4.4",
|
|
52
52
|
"@mui/styles": "^6.4.4",
|
|
53
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
54
|
-
"@xylabs/tsconfig-react": "^
|
|
53
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.24",
|
|
54
|
+
"@xylabs/tsconfig-react": "^5.0.24",
|
|
55
55
|
"react": "^18.3.1",
|
|
56
56
|
"react-dom": "^18.3.1",
|
|
57
57
|
"typescript": "^5.7.3"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Pixel/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,eAAO,MAAM,YAAY,iGAAuC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Pixel/Provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAkB,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;CACX;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAgBzE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Pixel/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Pixel/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Pixel/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,qEAGpB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
|