xplorajs-react 0.2.1 → 0.3.6
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/index.d.js +1 -0
- package/dist/index.d.ts +18 -0
- package/package.json +14 -8
package/dist/index.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
|
|
3
|
+
export function renderToStream(
|
|
4
|
+
element: React.ReactElement,
|
|
5
|
+
): Promise<ReadableStream | string>;
|
|
6
|
+
|
|
7
|
+
export function generateStaticPage(options: {
|
|
8
|
+
component: React.ReactElement;
|
|
9
|
+
outputPath: string;
|
|
10
|
+
props?: Record<string, unknown>;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
|
|
13
|
+
export function getStaticProps(
|
|
14
|
+
fn: () => Promise<Record<string, unknown>>,
|
|
15
|
+
): Promise<{
|
|
16
|
+
props: Record<string, unknown>;
|
|
17
|
+
revalidate: number;
|
|
18
|
+
}>;
|
package/package.json
CHANGED
|
@@ -1,28 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xplorajs-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/XplorationTechnologies/xplora.js.git"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" }
|
|
11
|
+
},
|
|
7
12
|
"types": "dist/index.d.ts",
|
|
8
13
|
"files": [
|
|
9
14
|
"dist",
|
|
10
15
|
"README.md"
|
|
11
16
|
],
|
|
17
|
+
"sideEffects": false,
|
|
12
18
|
"scripts": {
|
|
13
|
-
"build": "swc src -d dist &&
|
|
19
|
+
"build": "swc src -d dist && cp src/index.d.ts dist/index.d.ts",
|
|
14
20
|
"dev": "swc src -d dist --watch",
|
|
15
21
|
"prepublishOnly": "bun run build"
|
|
16
22
|
},
|
|
17
23
|
"devDependencies": {
|
|
18
24
|
"@swc/cli": "^0.1.65",
|
|
19
|
-
"@swc/core": "^1.11.24"
|
|
25
|
+
"@swc/core": "^1.11.24",
|
|
26
|
+
"@types/react": "^19.1.4",
|
|
27
|
+
"@types/react-dom": "^19.1.5"
|
|
20
28
|
},
|
|
21
29
|
"peerDependencies": {
|
|
22
30
|
"react": "^19.1.0",
|
|
23
|
-
"react-dom": "^19.1.0"
|
|
24
|
-
"@types/react": "^19.1.4",
|
|
25
|
-
"@types/react-dom": "^19.1.5"
|
|
31
|
+
"react-dom": "^19.1.0"
|
|
26
32
|
},
|
|
27
33
|
"publishConfig": {
|
|
28
34
|
"access": "public"
|