@equinor/fusion-framework-cli 10.0.4 → 10.2.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.
- package/CHANGELOG.md +29 -0
- package/dist/bin/create-dev-serve.js +1 -0
- package/dist/bin/create-dev-serve.js.map +1 -1
- package/dist/bin/dev-portal/BookMarkSideSheet.js +3 -3
- package/dist/bin/dev-portal/BookMarkSideSheet.js.map +1 -1
- package/dist/bin/dev-portal/Header.js +11 -7
- package/dist/bin/dev-portal/Header.js.map +1 -1
- package/dist/bin/dev-portal/config.js +3 -1
- package/dist/bin/dev-portal/config.js.map +1 -1
- package/dist/bin/public/assets/{index-VsB-fOGc.js → index-DiM7kFXO.js} +997 -997
- package/dist/bin/public/index.html +1 -1
- package/dist/lib/plugins/app-proxy/app-proxy-plugin.js +6 -5
- package/dist/lib/plugins/app-proxy/app-proxy-plugin.js.map +1 -1
- package/dist/types/lib/plugins/app-proxy/app-proxy-plugin.d.ts +18 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +10 -10
|
@@ -7,6 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
import { join } from 'node:path';
|
|
10
11
|
/**
|
|
11
12
|
* Preserve token for executing proxy assets
|
|
12
13
|
*
|
|
@@ -93,25 +94,25 @@ export const appProxyPlugin = (options) => {
|
|
|
93
94
|
};
|
|
94
95
|
},
|
|
95
96
|
configureServer(server) {
|
|
97
|
+
var _a, _b, _c;
|
|
96
98
|
const { app } = options;
|
|
97
99
|
// disable local assets if no app configuration provided
|
|
98
100
|
if (!app)
|
|
99
101
|
return;
|
|
100
102
|
// serve app config if request matches the current app and version
|
|
101
|
-
const configPath =
|
|
103
|
+
const configPath = join(proxyPath, (_a = app.configPath) !== null && _a !== void 0 ? _a : `apps/${app.key}/builds/${app.version}/config`);
|
|
102
104
|
server.middlewares.use(configPath, (_req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
103
105
|
res.setHeader('content-type', 'application/json');
|
|
104
106
|
res.end(JSON.stringify(yield app.generateConfig()));
|
|
105
107
|
}));
|
|
106
108
|
// serve app manifest if request matches the current app
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
server.middlewares.use(manifestPath, (_req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const manifestPath = join(proxyPath, (_b = app.manifestPath) !== null && _b !== void 0 ? _b : `apps/${app.key}`);
|
|
110
|
+
server.middlewares.use([proxyPath, manifestPath, app.key].join('/'), (_req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
110
111
|
res.setHeader('content-type', 'application/json');
|
|
111
112
|
res.end(JSON.stringify(yield app.generateManifest()));
|
|
112
113
|
}));
|
|
113
114
|
// serve local bundles if request matches the current app and version
|
|
114
|
-
const bundlePath =
|
|
115
|
+
const bundlePath = join(proxyPath, (_c = app.bundlePath) !== null && _c !== void 0 ? _c : `bundles/apps/${app.key}/${app.version}`);
|
|
115
116
|
server.middlewares.use((req, _res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
116
117
|
var _a;
|
|
117
118
|
if ((_a = req.url) === null || _a === void 0 ? void 0 : _a.match(bundlePath)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-proxy-plugin.js","sourceRoot":"","sources":["../../../../src/lib/plugins/app-proxy/app-proxy-plugin.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"app-proxy-plugin.js","sourceRoot":"","sources":["../../../../src/lib/plugins/app-proxy/app-proxy-plugin.ts"],"names":[],"mappings":";;;;;;;;;AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;;;;;;;;GAcG;AACH,IAAI,iBAAiB,GAAG,EAAE,CAAC;AAqD3B;;;;;;;;;;;;;;;;;;;;;;;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G,CAAC,CAAO,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;;gBAC7C,IAAI,MAAA,GAAG,CAAC,GAAG,0CAAE,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC7B,6BAA6B;oBAC7B,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;gBAC/C,CAAC;gBACD,IAAI,EAAE,CAAC;YACX,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -26,8 +26,26 @@ export type AppProxyPluginOptions = {
|
|
|
26
26
|
version: string;
|
|
27
27
|
/** callback function for generating configuration for the application */
|
|
28
28
|
generateConfig: () => Promise<ApiAppConfig>;
|
|
29
|
+
/**
|
|
30
|
+
* string path to the app config
|
|
31
|
+
* @example `persons/me/apps/${app.key}/builds/${app.version}/config`
|
|
32
|
+
* @default `apps/${app.key}/builds/${app.version}/config`
|
|
33
|
+
*/
|
|
34
|
+
configPath?: string;
|
|
29
35
|
/** callback function for generating manifest for the application */
|
|
30
36
|
generateManifest: () => Promise<AppManifest>;
|
|
37
|
+
/**
|
|
38
|
+
* string path to the app manifest
|
|
39
|
+
* @example `persons/me/apps/${app.key}`
|
|
40
|
+
* @default `apps/${app.key}`
|
|
41
|
+
*/
|
|
42
|
+
manifestPath?: string;
|
|
43
|
+
/**
|
|
44
|
+
* string path to the app bundle
|
|
45
|
+
* @default `bundles/apps/${app.key}/${app.version}`
|
|
46
|
+
* @example `bundles/apps/${app.key}/${app.version}`
|
|
47
|
+
*/
|
|
48
|
+
bundlePath?: string;
|
|
31
49
|
};
|
|
32
50
|
};
|
|
33
51
|
/**
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "10.0
|
|
1
|
+
export declare const version = "10.2.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-cli",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Fusion",
|
|
6
6
|
"Fusion Framework",
|
|
@@ -84,19 +84,19 @@
|
|
|
84
84
|
"rxjs": "^7.8.1",
|
|
85
85
|
"styled-components": "^6.0.7",
|
|
86
86
|
"typescript": "^5.5.4",
|
|
87
|
-
"@equinor/fusion-framework": "^7.2.
|
|
87
|
+
"@equinor/fusion-framework": "^7.2.10",
|
|
88
|
+
"@equinor/fusion-framework-app": "^9.1.13",
|
|
89
|
+
"@equinor/fusion-framework-module-bookmark": "^2.0.0",
|
|
88
90
|
"@equinor/fusion-framework-module-app": "^6.0.2",
|
|
89
|
-
"@equinor/fusion-framework-module-context": "^5.0.13",
|
|
90
|
-
"@equinor/fusion-framework-module-bookmark": "^1.2.13",
|
|
91
91
|
"@equinor/fusion-framework-module-feature-flag": "^1.1.10",
|
|
92
|
-
"@equinor/fusion-framework-app": "^9.1.12",
|
|
93
92
|
"@equinor/fusion-framework-module-msal": "^3.1.5",
|
|
94
|
-
"@equinor/fusion-framework-module-
|
|
93
|
+
"@equinor/fusion-framework-module-context": "^5.0.13",
|
|
95
94
|
"@equinor/fusion-framework-module-navigation": "^4.0.7",
|
|
96
|
-
"@equinor/fusion-framework-
|
|
97
|
-
"@equinor/fusion-framework-react
|
|
98
|
-
"@equinor/fusion-framework-react-components-
|
|
99
|
-
"@equinor/fusion-framework-react-
|
|
95
|
+
"@equinor/fusion-framework-module-services": "^5.0.0",
|
|
96
|
+
"@equinor/fusion-framework-react": "^7.3.2",
|
|
97
|
+
"@equinor/fusion-framework-react-components-bookmark": "^1.0.0",
|
|
98
|
+
"@equinor/fusion-framework-react-components-people-provider": "^1.4.11",
|
|
99
|
+
"@equinor/fusion-framework-react-module-bookmark": "^2.2.0",
|
|
100
100
|
"@equinor/fusion-observable": "^8.4.2",
|
|
101
101
|
"@equinor/fusion-query": "^5.1.4"
|
|
102
102
|
},
|