@arcanejs/toolkit-frontend 0.3.1 → 0.4.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.
|
@@ -11,10 +11,12 @@ interface Props$8 {
|
|
|
11
11
|
}
|
|
12
12
|
declare const StyledButton: FC<Props$8>;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
sendMessage: (<M extends proto$1.
|
|
14
|
+
type StageContextData = {
|
|
15
|
+
sendMessage: (<M extends proto$1.ClientMessage>(msg: M) => void) | null;
|
|
16
16
|
renderComponent: (info: proto$1.AnyComponentProto) => JSX.Element;
|
|
17
|
-
|
|
17
|
+
connectionUuid: string;
|
|
18
|
+
};
|
|
19
|
+
declare const StageContext: React.Context<StageContextData>;
|
|
18
20
|
|
|
19
21
|
interface Props$7 {
|
|
20
22
|
className?: string;
|
|
@@ -11,10 +11,12 @@ interface Props$8 {
|
|
|
11
11
|
}
|
|
12
12
|
declare const StyledButton: FC<Props$8>;
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
sendMessage: (<M extends proto$1.
|
|
14
|
+
type StageContextData = {
|
|
15
|
+
sendMessage: (<M extends proto$1.ClientMessage>(msg: M) => void) | null;
|
|
16
16
|
renderComponent: (info: proto$1.AnyComponentProto) => JSX.Element;
|
|
17
|
-
|
|
17
|
+
connectionUuid: string;
|
|
18
|
+
};
|
|
19
|
+
declare const StageContext: React.Context<StageContextData>;
|
|
18
20
|
|
|
19
21
|
interface Props$7 {
|
|
20
22
|
className?: string;
|
package/dist/components/index.js
CHANGED
|
@@ -29,12 +29,13 @@ var _styledcomponents = require('styled-components');
|
|
|
29
29
|
|
|
30
30
|
// src/components/context.ts
|
|
31
31
|
|
|
32
|
-
var StageContext = _react.createContext.call(void 0,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
})
|
|
32
|
+
var StageContext = _react.createContext.call(void 0,
|
|
33
|
+
new Proxy({}, {
|
|
34
|
+
get: () => {
|
|
35
|
+
throw new Error("Missing StageContext.Provider");
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
);
|
|
38
39
|
|
|
39
40
|
// src/components/button.tsx
|
|
40
41
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -29,12 +29,13 @@ import { styled } from "styled-components";
|
|
|
29
29
|
|
|
30
30
|
// src/components/context.ts
|
|
31
31
|
import { createContext } from "react";
|
|
32
|
-
var StageContext = createContext(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
})
|
|
32
|
+
var StageContext = createContext(
|
|
33
|
+
new Proxy({}, {
|
|
34
|
+
get: () => {
|
|
35
|
+
throw new Error("Missing StageContext.Provider");
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
);
|
|
38
39
|
|
|
39
40
|
// src/components/button.tsx
|
|
40
41
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcanejs/toolkit-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Library of the frontend react components used to render the @arcanejs Toolkit",
|
|
6
6
|
"keywords": [],
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"eslint": "^8.57.0",
|
|
56
56
|
"tsup": "^8.1.0",
|
|
57
57
|
"typescript": "^5.3.3",
|
|
58
|
-
"@arcanejs/
|
|
59
|
-
"@arcanejs/
|
|
58
|
+
"@arcanejs/eslint-config": "^0.0.0",
|
|
59
|
+
"@arcanejs/typescript-config": "^0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"react": "^18",
|
|
63
63
|
"react-dom": "18.3.1",
|
|
64
64
|
"styled-components": "^6.1.13",
|
|
65
|
-
"@arcanejs/protocol": "^0.
|
|
65
|
+
"@arcanejs/protocol": "^0.5.0"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"dist"
|