@fluid-app/fluid-cli-portal 0.1.19 → 0.1.21
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-app/fluid-cli-portal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "Fluid CLI plugin for building portal applications",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"p-limit": "^7.3.0",
|
|
33
33
|
"prompts": "^2.4.2",
|
|
34
34
|
"tsx": "^4.21.0",
|
|
35
|
-
"@fluid-app/fluid-cli": "0.1.
|
|
35
|
+
"@fluid-app/fluid-cli": "0.1.7"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@swc/core": "^1.15.18",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"tsdown": "^0.21.0",
|
|
45
45
|
"typescript": "^5",
|
|
46
46
|
"vite": "^6.0.0",
|
|
47
|
-
"@fluid-app/
|
|
48
|
-
"@fluid-app/
|
|
47
|
+
"@fluid-app/fluidos-api-client": "0.1.0",
|
|
48
|
+
"@fluid-app/typescript-config": "0.0.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=18.0.0"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Widget Preview</title>
|
|
7
|
+
<!-- Prevent JWT token from leaking in Referer headers -->
|
|
8
|
+
<meta name="referrer" content="strict-origin-when-cross-origin" />
|
|
9
|
+
<style>
|
|
10
|
+
body { margin: 0; padding: 0; }
|
|
11
|
+
</style>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="preview-root"></div>
|
|
15
|
+
<script type="module" src="/src/preview-entry.tsx"></script>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rewrites": [{ "source": "/__preview__", "destination": "/preview.html" }],
|
|
3
|
+
"headers": [
|
|
4
|
+
{
|
|
5
|
+
"source": "/__manifests__.json",
|
|
6
|
+
"headers": [
|
|
7
|
+
{
|
|
8
|
+
"key": "Access-Control-Allow-Origin",
|
|
9
|
+
"value": "https://admin.fluid.app"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"source": "/__preview__",
|
|
15
|
+
"headers": [
|
|
16
|
+
{
|
|
17
|
+
"key": "Content-Security-Policy",
|
|
18
|
+
"value": "frame-ancestors https://admin.fluid.app https://*.fluid.app"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
+
import { fileURLToPath } from "url";
|
|
1
2
|
import { defineConfig } from "vite";
|
|
2
3
|
import react from "@vitejs/plugin-react";
|
|
3
4
|
import tailwindcss from "@tailwindcss/vite";
|
|
4
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
fluidManifestPlugin,
|
|
7
|
+
fluidPreviewPlugin,
|
|
8
|
+
} from "@fluid-app/portal-sdk/vite";
|
|
5
9
|
|
|
6
10
|
export default defineConfig({
|
|
7
|
-
plugins: [
|
|
11
|
+
plugins: [
|
|
12
|
+
react(),
|
|
13
|
+
tailwindcss(),
|
|
14
|
+
fluidManifestPlugin(),
|
|
15
|
+
fluidPreviewPlugin(),
|
|
16
|
+
],
|
|
8
17
|
build: {
|
|
9
18
|
target: "esnext",
|
|
10
19
|
chunkSizeWarningLimit: 600,
|
|
11
20
|
rollupOptions: {
|
|
21
|
+
input: {
|
|
22
|
+
main: fileURLToPath(new URL("index.html", import.meta.url)),
|
|
23
|
+
preview: fileURLToPath(new URL("preview.html", import.meta.url)),
|
|
24
|
+
},
|
|
12
25
|
output: {
|
|
13
26
|
manualChunks(id) {
|
|
14
27
|
if (
|