@equinor/fusion-framework-cli 10.0.0-alpha-3568e67f10954eda012742a1a7d48d1278943f38 → 10.0.0-alpha-dep-8ca2072f748f36baccdefa6e0d6544f474e92730
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 +53 -17
- package/dist/bin/build-application.js +18 -1
- package/dist/bin/build-application.js.map +1 -1
- package/dist/bin/create-dev-serve.js +3 -3
- package/dist/bin/create-dev-serve.js.map +1 -1
- package/dist/bin/public/assets/{index-CmReCNkr.js → index-_o_I3W6T.js} +354 -354
- package/dist/bin/public/index.html +1 -1
- package/dist/bin/utils/load-manifest.js +1 -1
- package/dist/bin/utils/load-manifest.js.map +1 -1
- package/dist/bin/utils/uploadAppBundle.js +2 -0
- package/dist/bin/utils/uploadAppBundle.js.map +1 -1
- package/dist/lib/app-manifest.js +5 -0
- package/dist/lib/app-manifest.js.map +1 -1
- package/dist/lib/plugins/app-assets/app-asset-plugin.js +102 -0
- package/dist/lib/plugins/app-assets/app-asset-plugin.js.map +1 -0
- package/dist/lib/plugins/app-assets/emit-asset.js +41 -0
- package/dist/lib/plugins/app-assets/emit-asset.js.map +1 -0
- package/dist/lib/plugins/app-assets/extension-filter-pattern.js +20 -0
- package/dist/lib/plugins/app-assets/extension-filter-pattern.js.map +1 -0
- package/dist/lib/plugins/app-assets/index.js +4 -0
- package/dist/lib/plugins/app-assets/index.js.map +1 -0
- package/dist/lib/plugins/app-assets/read-asset-content.js +34 -0
- package/dist/lib/plugins/app-assets/read-asset-content.js.map +1 -0
- package/dist/lib/plugins/app-assets/resolve-asset-id.js +63 -0
- package/dist/lib/plugins/app-assets/resolve-asset-id.js.map +1 -0
- package/dist/lib/plugins/app-assets/static.js +15 -0
- package/dist/lib/plugins/app-assets/static.js.map +1 -0
- package/dist/{bin/plugins/app-proxy.js → lib/plugins/app-proxy/app-proxy-plugin.js} +3 -3
- package/dist/lib/plugins/app-proxy/app-proxy-plugin.js.map +1 -0
- package/dist/lib/plugins/app-proxy/index.js +2 -0
- package/dist/lib/plugins/app-proxy/index.js.map +1 -0
- package/dist/{bin/plugins/external-public.js → lib/plugins/external-public/external-public-plugin.js} +43 -7
- package/dist/lib/plugins/external-public/external-public-plugin.js.map +1 -0
- package/dist/lib/plugins/external-public/index.js +2 -0
- package/dist/lib/plugins/external-public/index.js.map +1 -0
- package/dist/types/lib/plugins/app-assets/app-asset-plugin.d.ts +36 -0
- package/dist/types/lib/plugins/app-assets/emit-asset.d.ts +18 -0
- package/dist/types/lib/plugins/app-assets/extension-filter-pattern.d.ts +14 -0
- package/dist/types/lib/plugins/app-assets/index.d.ts +3 -0
- package/dist/types/lib/plugins/app-assets/read-asset-content.d.ts +14 -0
- package/dist/types/lib/plugins/app-assets/resolve-asset-id.d.ts +16 -0
- package/dist/types/lib/plugins/app-assets/static.d.ts +5 -0
- package/dist/types/lib/plugins/app-proxy/index.d.ts +1 -0
- package/dist/types/{bin/plugins/external-public.d.ts → lib/plugins/external-public/external-public-plugin.d.ts} +12 -4
- package/dist/types/lib/plugins/external-public/index.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +21 -16
- package/dist/bin/plugins/app-proxy.js.map +0 -1
- package/dist/bin/plugins/external-public.js.map +0 -1
- /package/dist/types/{bin/plugins/app-proxy.d.ts → lib/plugins/app-proxy/app-proxy-plugin.d.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the content of an asset synchronously.
|
|
3
|
+
*
|
|
4
|
+
* @param id - The identifier of the asset, which can include a query string.
|
|
5
|
+
* @returns The content of the asset as a Buffer if it exists, otherwise null.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* - If the asset content is already cached, it returns the cached content.
|
|
9
|
+
* - The function extracts the filename from the identifier by removing any query string.
|
|
10
|
+
* - If the file exists, it reads the content, caches it, and then returns it.
|
|
11
|
+
* - If the file does not exist, it logs a warning and returns null.
|
|
12
|
+
*/
|
|
13
|
+
export declare const readAssetContentSync: (id: string) => Buffer | null;
|
|
14
|
+
export default readAssetContentSync;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type PluginContext, type PartialResolvedId } from 'rollup';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the asset ID based on the provided context, ID, importer, and options.
|
|
4
|
+
*
|
|
5
|
+
* @param context - The plugin context used for resolving the ID.
|
|
6
|
+
* @param id - The asset ID to resolve.
|
|
7
|
+
* @param importer - The path of the module that is importing the asset.
|
|
8
|
+
* @param options - Optional resolution options.
|
|
9
|
+
* @returns A promise that resolves to a `PartialResolvedId` object or `null`.
|
|
10
|
+
*
|
|
11
|
+
* The function handles three cases:
|
|
12
|
+
* 1. If the ID is an absolute path, it returns an object with the ID, marked as external and resolved by the plugin.
|
|
13
|
+
* 2. If the ID is a relative path, it resolves the path relative to the importer and returns an object with the resolved ID, marked as external and resolved by the plugin.
|
|
14
|
+
* 3. For all other cases, it delegates the resolution to the context's resolve method.
|
|
15
|
+
*/
|
|
16
|
+
export declare const resolveAssetId: (context: PluginContext, id: string, importer: string, options?: Parameters<PluginContext["resolve"]>[2]) => Promise<PartialResolvedId | null>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, appProxyPlugin, type AppProxyPluginOptions } from './app-proxy-plugin.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Plugin } from 'vite';
|
|
1
|
+
import { type FilterPattern, type Plugin } from 'vite';
|
|
2
2
|
/**
|
|
3
3
|
* Creates a plugin that serves an external public directory.
|
|
4
4
|
*
|
|
@@ -7,16 +7,24 @@ import { type Plugin } from 'vite';
|
|
|
7
7
|
* so this plugin is necessary to serve the `index.html` file from a different directory.
|
|
8
8
|
*
|
|
9
9
|
* @param path - The path to the external public directory.
|
|
10
|
-
* @
|
|
10
|
+
* @param options - Optional filter patterns to include or exclude specific assets.
|
|
11
|
+
* @param options.include - A filter pattern to include specific assets.
|
|
12
|
+
* @param options.exclude - A filter pattern to exclude specific assets.
|
|
13
|
+
* @returns A Vite plugin object.
|
|
11
14
|
*
|
|
12
15
|
* The plugin:
|
|
13
|
-
* - Sets the `
|
|
16
|
+
* - Sets the `path` configuration to the provided path.
|
|
17
|
+
* - Adds a middleware to the server that serves static assets from the specified path.
|
|
14
18
|
* - Adds a middleware to the server that serves the `index.html` file from the specified path.
|
|
15
19
|
*
|
|
16
20
|
* The middleware:
|
|
21
|
+
* - Checks if the request is for a static asset and serves it from the specified path.
|
|
17
22
|
* - Reads the `index.html` file from the specified path.
|
|
18
23
|
* - Transforms the HTML using the server's `transformIndexHtml` method.
|
|
19
24
|
* - Responds with the transformed HTML, setting appropriate headers.
|
|
20
25
|
*/
|
|
21
|
-
export declare const externalPublicPlugin: (path: string
|
|
26
|
+
export declare const externalPublicPlugin: (path: string, options?: {
|
|
27
|
+
include?: FilterPattern;
|
|
28
|
+
exclude?: FilterPattern;
|
|
29
|
+
}) => Plugin;
|
|
22
30
|
export default externalPublicPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, externalPublicPlugin } from './external-public-plugin.js';
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "9.
|
|
1
|
+
export declare const version = "9.13.0";
|
package/dist/version.js
CHANGED
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-cli",
|
|
3
|
-
"version": "10.0.0-alpha-
|
|
3
|
+
"version": "10.0.0-alpha-dep-8ca2072f748f36baccdefa6e0d6544f474e92730",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Fusion",
|
|
6
6
|
"Fusion Framework",
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
"deepmerge": "^4.3.1",
|
|
32
32
|
"find-up": "^7.0.0",
|
|
33
33
|
"is-mergeable-object": "^1.1.1",
|
|
34
|
+
"loader-utils": "^3.3.1",
|
|
35
|
+
"mime": "^4.0.4",
|
|
34
36
|
"ora": "^8.0.1",
|
|
35
37
|
"portfinder": "^1.0.32",
|
|
36
38
|
"pretty-bytes": "^6.1.1",
|
|
@@ -54,32 +56,35 @@
|
|
|
54
56
|
"@equinor/fusion-wc-person": "^3.0.1",
|
|
55
57
|
"@material-ui/styles": "^4.11.5",
|
|
56
58
|
"@types/adm-zip": "^0.5.0",
|
|
59
|
+
"@types/loader-utils": "^2.0.6",
|
|
57
60
|
"@types/node": "^20.11.14",
|
|
58
61
|
"@types/react": "^18.2.50",
|
|
59
62
|
"@types/react-dom": "^18.2.7",
|
|
63
|
+
"@types/rollup": "^0.54.0",
|
|
60
64
|
"@types/semver": "^7.5.0",
|
|
61
65
|
"eslint-plugin-rxjs": "^5.0.3",
|
|
62
66
|
"react": "^18.2.0",
|
|
63
67
|
"react-dom": "^18.2.0",
|
|
64
68
|
"react-router-dom": "^6.15.0",
|
|
69
|
+
"rollup": "^4.22.4",
|
|
65
70
|
"rxjs": "^7.8.1",
|
|
66
71
|
"styled-components": "^6.0.7",
|
|
67
72
|
"typescript": "^5.5.4",
|
|
68
|
-
"@equinor/fusion-framework": "^7.2.7
|
|
69
|
-
"@equinor/fusion-framework-app": "^9.1.
|
|
70
|
-
"@equinor/fusion-framework-module-app": "^6.0.0-alpha-
|
|
71
|
-
"@equinor/fusion-framework-module-bookmark": "^1.2.12
|
|
72
|
-
"@equinor/fusion-framework-module-
|
|
73
|
-
"@equinor/fusion-framework-module-msal": "^3.1.5
|
|
74
|
-
"@equinor/fusion-framework-module-
|
|
75
|
-
"@equinor/fusion-framework-
|
|
76
|
-
"@equinor/fusion-framework-module-
|
|
77
|
-
"@equinor/fusion-framework-
|
|
78
|
-
"@equinor/fusion-framework-react
|
|
79
|
-
"@equinor/fusion-framework-react-
|
|
80
|
-
"@equinor/fusion-framework-react-
|
|
81
|
-
"@equinor/fusion-
|
|
82
|
-
"@equinor/fusion-
|
|
73
|
+
"@equinor/fusion-framework": "^7.2.7",
|
|
74
|
+
"@equinor/fusion-framework-app": "^9.1.9-alpha-dep-8ca2072f748f36baccdefa6e0d6544f474e92730",
|
|
75
|
+
"@equinor/fusion-framework-module-app": "^6.0.0-alpha-dep-8ca2072f748f36baccdefa6e0d6544f474e92730",
|
|
76
|
+
"@equinor/fusion-framework-module-bookmark": "^1.2.12",
|
|
77
|
+
"@equinor/fusion-framework-module-feature-flag": "^1.1.9",
|
|
78
|
+
"@equinor/fusion-framework-module-msal": "^3.1.5",
|
|
79
|
+
"@equinor/fusion-framework-module-navigation": "^4.0.7",
|
|
80
|
+
"@equinor/fusion-framework-react-components-bookmark": "^0.5.1-alpha-dep-8ca2072f748f36baccdefa6e0d6544f474e92730",
|
|
81
|
+
"@equinor/fusion-framework-module-context": "^5.0.12",
|
|
82
|
+
"@equinor/fusion-framework-module-services": "^4.1.4",
|
|
83
|
+
"@equinor/fusion-framework-react": "^7.3.0-alpha-dep-8ca2072f748f36baccdefa6e0d6544f474e92730",
|
|
84
|
+
"@equinor/fusion-framework-react-module-bookmark": "^2.1.17-alpha-dep-8ca2072f748f36baccdefa6e0d6544f474e92730",
|
|
85
|
+
"@equinor/fusion-framework-react-components-people-provider": "^1.4.8-alpha-dep-8ca2072f748f36baccdefa6e0d6544f474e92730",
|
|
86
|
+
"@equinor/fusion-observable": "^8.4.1",
|
|
87
|
+
"@equinor/fusion-query": "^5.1.3"
|
|
83
88
|
},
|
|
84
89
|
"scrip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