@xeonr/renderer-sdk 1.3.0 → 1.5.1
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/client.d.ts +47 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +126 -0
- package/dist/client.js.map +1 -1
- package/dist/react/dom.d.ts +1 -0
- package/dist/react/dom.d.ts.map +1 -1
- package/dist/react/dom.js +9 -0
- package/dist/react/dom.js.map +1 -1
- package/dist/react/useRendererClient.d.ts +9 -0
- package/dist/react/useRendererClient.d.ts.map +1 -1
- package/dist/react/useRendererClient.js +8 -7
- package/dist/react/useRendererClient.js.map +1 -1
- package/dist/resources.d.ts +25 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +104 -0
- package/dist/resources.js.map +1 -0
- package/dist/types.d.ts +18 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +23 -3
- package/renderer.css +34 -0
- package/src/client.ts +0 -619
- package/src/index.ts +0 -47
- package/src/protocol.ts +0 -286
- package/src/react/RendererErrorBoundary.tsx +0 -95
- package/src/react/dom.ts +0 -53
- package/src/react/index.ts +0 -5
- package/src/react/useRendererClient.ts +0 -238
- package/src/react/useReportFatalError.tsx +0 -71
- package/src/types.ts +0 -138
- package/tsconfig.json +0 -18
- package/tsconfig.tsbuildinfo +0 -1
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xeonr/renderer-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "SDK for building custom renderers for upl.im integrations",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"renderer.css"
|
|
10
|
+
],
|
|
7
11
|
"main": "./dist/index.js",
|
|
8
12
|
"types": "./dist/index.d.ts",
|
|
9
13
|
"exports": {
|
|
@@ -23,6 +27,7 @@
|
|
|
23
27
|
"default": "./dist/protocol.js",
|
|
24
28
|
"types": "./dist/protocol.d.ts"
|
|
25
29
|
},
|
|
30
|
+
"./renderer.css": "./renderer.css",
|
|
26
31
|
"./*": {
|
|
27
32
|
"default": "./dist/*.js",
|
|
28
33
|
"types": "./dist/*.d.ts"
|
|
@@ -30,7 +35,10 @@
|
|
|
30
35
|
},
|
|
31
36
|
"peerDependencies": {
|
|
32
37
|
"react": ">=18.0.0",
|
|
33
|
-
"react-dom": ">=18.0.0"
|
|
38
|
+
"react-dom": ">=18.0.0",
|
|
39
|
+
"@bufbuild/protobuf": ">=2.0.0",
|
|
40
|
+
"@xeonr/uploads-protocol": "*",
|
|
41
|
+
"@xeonr/uploads-sdk": "*"
|
|
34
42
|
},
|
|
35
43
|
"peerDependenciesMeta": {
|
|
36
44
|
"react": {
|
|
@@ -38,14 +46,26 @@
|
|
|
38
46
|
},
|
|
39
47
|
"react-dom": {
|
|
40
48
|
"optional": true
|
|
49
|
+
},
|
|
50
|
+
"@bufbuild/protobuf": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"@xeonr/uploads-protocol": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"@xeonr/uploads-sdk": {
|
|
57
|
+
"optional": true
|
|
41
58
|
}
|
|
42
59
|
},
|
|
43
60
|
"devDependencies": {
|
|
44
61
|
"@types/react": "^19.0.0",
|
|
45
62
|
"@types/react-dom": "^19.0.0",
|
|
63
|
+
"@bufbuild/protobuf": "^2.0.0",
|
|
46
64
|
"react": "^19.0.0",
|
|
47
65
|
"react-dom": "^19.0.0",
|
|
48
|
-
"typescript": "^5.8.3"
|
|
66
|
+
"typescript": "^5.8.3",
|
|
67
|
+
"@xeonr/uploads-protocol": "1.0.6",
|
|
68
|
+
"@xeonr/uploads-sdk": "1.0.6"
|
|
49
69
|
},
|
|
50
70
|
"scripts": {
|
|
51
71
|
"build": "tsc"
|
package/renderer.css
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base styles auto-injected into every renderer iframe.
|
|
3
|
+
*
|
|
4
|
+
* Loaded via a side-effect import in @xeonr/renderer-sdk/react/dom — the
|
|
5
|
+
* renderer-plugin-vite auto-wrap rewrites `react-dom/client` to that
|
|
6
|
+
* module, so every renderer picks this up without explicit opt-in.
|
|
7
|
+
*
|
|
8
|
+
* What's in here is deliberately minimal: a CSS reset, full-height
|
|
9
|
+
* html/body/#root, and a transparent body so the host page shows
|
|
10
|
+
* through the iframe. Renderer-specific styling (fonts, layout,
|
|
11
|
+
* widgets) stays in renderer source.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
*,
|
|
15
|
+
*::before,
|
|
16
|
+
*::after {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html,
|
|
23
|
+
body,
|
|
24
|
+
#root {
|
|
25
|
+
height: 100%;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
body {
|
|
30
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
-moz-osx-font-smoothing: grayscale;
|
|
33
|
+
background: transparent;
|
|
34
|
+
}
|