@equinor/fusion-framework-cli 10.0.0-next-663bed8344cc2ca0111705b05045173328b3104d → 10.0.0-next-65f4bbf022d22b529abd095acd74ab218499fb8b
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 +10 -15
- package/bin/cli.mjs +1 -1
- package/dist/bin/build-application.js +65 -0
- package/dist/bin/build-application.js.map +1 -0
- package/dist/bin/bundle-application.js +56 -0
- package/dist/bin/bundle-application.js.map +1 -0
- package/dist/bin/create-dev-serve.js +123 -0
- package/dist/bin/create-dev-serve.js.map +1 -0
- package/dist/bin/create-export-config.js +50 -0
- package/dist/bin/create-export-config.js.map +1 -0
- package/dist/bin/create-export-manifest.js +77 -0
- package/dist/bin/create-export-manifest.js.map +1 -0
- package/dist/bin/dev-portal/AppLoader.js +77 -0
- package/dist/bin/dev-portal/AppLoader.js.map +1 -0
- package/dist/bin/dev-portal/BookMarkSideSheet.js +15 -0
- package/dist/bin/dev-portal/BookMarkSideSheet.js.map +1 -0
- package/dist/bin/dev-portal/ContextSelector/ContextSelector.js +41 -0
- package/dist/bin/dev-portal/ContextSelector/ContextSelector.js.map +1 -0
- package/dist/bin/dev-portal/ContextSelector/index.js +2 -0
- package/dist/bin/dev-portal/ContextSelector/index.js.map +1 -0
- package/dist/bin/dev-portal/ContextSelector/useContextResolver.js +171 -0
- package/dist/bin/dev-portal/ContextSelector/useContextResolver.js.map +1 -0
- package/dist/bin/dev-portal/EquinorLoader.js +14 -0
- package/dist/bin/dev-portal/EquinorLoader.js.map +1 -0
- package/dist/bin/dev-portal/ErrorViewer.js +7 -0
- package/dist/bin/dev-portal/ErrorViewer.js.map +1 -0
- package/dist/bin/dev-portal/FusionLogo.js +4 -0
- package/dist/bin/dev-portal/FusionLogo.js.map +1 -0
- package/dist/bin/dev-portal/Header.js +37 -0
- package/dist/bin/dev-portal/Header.js.map +1 -0
- package/dist/bin/dev-portal/PersonSideSheet/index.js +32 -0
- package/dist/bin/dev-portal/PersonSideSheet/index.js.map +1 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js +16 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js.map +1 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js +16 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js.map +1 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js +16 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js.map +1 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js +19 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js.map +1 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js +30 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js.map +1 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js +3 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js.map +1 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js +2 -0
- package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js.map +1 -0
- package/dist/bin/dev-portal/Router.js +59 -0
- package/dist/bin/dev-portal/Router.js.map +1 -0
- package/dist/bin/dev-portal/config.js +69 -0
- package/dist/bin/dev-portal/config.js.map +1 -0
- package/dist/bin/dev-portal/main.js +13 -0
- package/dist/bin/dev-portal/main.js.map +1 -0
- package/dist/bin/dev-portal/resources/fallback-photo.svg.js +3 -0
- package/dist/bin/dev-portal/resources/fallback-photo.svg.js.map +1 -0
- package/dist/bin/dev-portal/useAppContextNavigation.js +68 -0
- package/dist/bin/dev-portal/useAppContextNavigation.js.map +1 -0
- package/dist/bin/main.app.js +171 -0
- package/dist/bin/main.app.js.map +1 -0
- package/dist/bin/main.js +20 -0
- package/dist/bin/main.js.map +1 -0
- package/dist/bin/public/assets/{index-Cb85_fOB.js → index-D0eBBcR8.js} +483 -483
- package/dist/bin/public/index.html +1 -1
- package/dist/bin/publish-application.js +104 -0
- package/dist/bin/publish-application.js.map +1 -0
- package/dist/bin/tag-application.js +82 -0
- package/dist/bin/tag-application.js.map +1 -0
- package/dist/bin/upload-application.js +72 -0
- package/dist/bin/upload-application.js.map +1 -0
- package/dist/bin/upload-export-config.js +87 -0
- package/dist/bin/upload-export-config.js.map +1 -0
- package/dist/bin/utils/execute-command.js +23 -0
- package/dist/bin/utils/execute-command.js.map +1 -0
- package/dist/bin/utils/format.js +17 -0
- package/dist/bin/utils/format.js.map +1 -0
- package/dist/bin/utils/getEndpointUrl.js +49 -0
- package/dist/bin/utils/getEndpointUrl.js.map +1 -0
- package/dist/bin/utils/index.js +14 -0
- package/dist/bin/utils/index.js.map +1 -0
- package/dist/bin/utils/isAppRegistered.js +35 -0
- package/dist/bin/utils/isAppRegistered.js.map +1 -0
- package/dist/bin/utils/load-app-config.js +35 -0
- package/dist/bin/utils/load-app-config.js.map +1 -0
- package/dist/bin/utils/load-manifest.js +40 -0
- package/dist/bin/utils/load-manifest.js.map +1 -0
- package/dist/bin/utils/load-package.js +24 -0
- package/dist/bin/utils/load-package.js.map +1 -0
- package/dist/bin/utils/load-vite-config.js +54 -0
- package/dist/bin/utils/load-vite-config.js.map +1 -0
- package/dist/bin/utils/proxy-request-logger.js +34 -0
- package/dist/bin/utils/proxy-request-logger.js.map +1 -0
- package/dist/bin/utils/publishAppConfig.js +36 -0
- package/dist/bin/utils/publishAppConfig.js.map +1 -0
- package/dist/bin/utils/requireToken.js +10 -0
- package/dist/bin/utils/requireToken.js.map +1 -0
- package/dist/bin/utils/spinner.js +77 -0
- package/dist/bin/utils/spinner.js.map +1 -0
- package/dist/bin/utils/tagAppBundle.js +35 -0
- package/dist/bin/utils/tagAppBundle.js.map +1 -0
- package/dist/bin/utils/uploadAppBundle.js +54 -0
- package/dist/bin/utils/uploadAppBundle.js.map +1 -0
- package/dist/lib/app-config.js +1 -1
- package/dist/lib/app-config.js.map +1 -1
- package/dist/schemas.js +14 -0
- package/dist/schemas.js.map +1 -0
- package/dist/types/bin/build-application.d.ts +13 -0
- package/dist/types/bin/bundle-application.d.ts +4 -0
- package/dist/types/bin/create-dev-serve.d.ts +11 -0
- package/dist/types/bin/create-export-config.d.ts +13 -0
- package/dist/types/bin/create-export-manifest.d.ts +16 -0
- package/dist/types/bin/dev-portal/AppLoader.d.ts +11 -0
- package/dist/types/bin/dev-portal/BookMarkSideSheet.d.ts +6 -0
- package/dist/types/bin/dev-portal/ContextSelector/ContextSelector.d.ts +8 -0
- package/dist/types/bin/dev-portal/ContextSelector/index.d.ts +1 -0
- package/dist/types/bin/dev-portal/ContextSelector/useContextResolver.d.ts +15 -0
- package/dist/types/bin/dev-portal/EquinorLoader.d.ts +5 -0
- package/dist/types/bin/dev-portal/ErrorViewer.d.ts +4 -0
- package/dist/types/bin/dev-portal/FusionLogo.d.ts +5 -0
- package/dist/types/bin/dev-portal/Header.d.ts +3 -0
- package/dist/types/bin/dev-portal/PersonSideSheet/index.d.ts +11 -0
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.d.ts +6 -0
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.d.ts +5 -0
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.d.ts +5 -0
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.d.ts +5 -0
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/Styled.d.ts +6 -0
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/index.d.ts +2 -0
- package/dist/types/bin/dev-portal/PersonSideSheet/sheets/types.d.ts +5 -0
- package/dist/types/bin/dev-portal/Router.d.ts +1 -0
- package/dist/types/bin/dev-portal/config.d.ts +3 -0
- package/dist/types/bin/dev-portal/main.d.ts +1 -0
- package/dist/types/bin/dev-portal/resources/fallback-photo.svg.d.ts +2 -0
- package/dist/types/bin/dev-portal/useAppContextNavigation.d.ts +5 -0
- package/dist/types/bin/main.app.d.ts +3 -0
- package/dist/types/bin/main.d.ts +1 -0
- package/dist/types/bin/publish-application.d.ts +6 -0
- package/dist/types/bin/tag-application.d.ts +12 -0
- package/dist/types/bin/upload-application.d.ts +6 -0
- package/dist/types/bin/upload-export-config.d.ts +10 -0
- package/dist/types/bin/utils/execute-command.d.ts +8 -0
- package/dist/types/bin/utils/format.d.ts +8 -0
- package/dist/types/bin/utils/getEndpointUrl.d.ts +10 -0
- package/dist/types/bin/utils/index.d.ts +14 -0
- package/dist/types/bin/utils/isAppRegistered.d.ts +5 -0
- package/dist/types/bin/utils/load-app-config.d.ts +10 -0
- package/dist/types/bin/utils/load-manifest.d.ts +10 -0
- package/dist/types/bin/utils/load-package.d.ts +5 -0
- package/dist/types/bin/utils/load-vite-config.d.ts +10 -0
- package/dist/types/bin/utils/proxy-request-logger.d.ts +15 -0
- package/dist/types/bin/utils/publishAppConfig.d.ts +9 -0
- package/dist/types/bin/utils/requireToken.d.ts +4 -0
- package/dist/types/bin/utils/spinner.d.ts +20 -0
- package/dist/types/bin/utils/tagAppBundle.d.ts +7 -0
- package/dist/types/bin/utils/uploadAppBundle.d.ts +7 -0
- package/dist/types/{app-config.d.ts → lib/app-config.d.ts} +1 -1
- package/dist/types/{plugins → lib/plugins}/app-proxy/app-proxy-plugin.d.ts +1 -1
- package/dist/types/schemas.d.ts +30 -0
- package/dist/types/version.d.ts +1 -0
- package/dist/version.js +3 -0
- package/dist/version.js.map +1 -0
- package/package.json +20 -23
- package/dist/bin/main.mjs +0 -2003
- /package/dist/types/{app-manifest.d.ts → lib/app-manifest.d.ts} +0 -0
- /package/dist/types/{app-package.d.ts → lib/app-package.d.ts} +0 -0
- /package/dist/types/{index.d.ts → lib/index.d.ts} +0 -0
- /package/dist/types/{plugins → lib/plugins}/app-assets/app-asset-plugin.d.ts +0 -0
- /package/dist/types/{plugins → lib/plugins}/app-assets/emit-asset.d.ts +0 -0
- /package/dist/types/{plugins → lib/plugins}/app-assets/extension-filter-pattern.d.ts +0 -0
- /package/dist/types/{plugins → lib/plugins}/app-assets/index.d.ts +0 -0
- /package/dist/types/{plugins → lib/plugins}/app-assets/read-asset-content.d.ts +0 -0
- /package/dist/types/{plugins → lib/plugins}/app-assets/resolve-asset-id.d.ts +0 -0
- /package/dist/types/{plugins → lib/plugins}/app-assets/static.d.ts +0 -0
- /package/dist/types/{plugins → lib/plugins}/app-proxy/index.d.ts +0 -0
- /package/dist/types/{plugins → lib/plugins}/external-public/external-public-plugin.d.ts +0 -0
- /package/dist/types/{plugins → lib/plugins}/external-public/index.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/assert.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/config.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/expect.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/file-exists.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/ts-transpile.d.ts +0 -0
- /package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
- /package/dist/types/{vite-config.d.ts → lib/vite-config.d.ts} +0 -0
- /package/dist/types/{vite-logger.d.ts → lib/vite-logger.d.ts} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Styled: {
|
|
2
|
+
SwitchList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
3
|
+
SwitchListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
4
|
+
SwitchLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
Switch: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Router: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const svg = "<svg height=\"24px\" width=\"24px\" fill=\"#999\" viewBox=\"0 0 24 24\" title=\"person\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"100%\" height=\"100%\" fill=\"#eee\" /><path d=\"M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4Zm2 4c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2Zm4 10c-.2-.71-3.3-2-6-2-2.69 0-5.77 1.28-6 2h12ZM4 18c0-2.66 5.33-4 8-4s8 1.34 8 4v2H4v-2Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" class=\"sc-dmqHEX eydzYY\"></path></svg>";
|
|
2
|
+
export default svg;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FusionEnv } from './utils/index.js';
|
|
2
|
+
declare enum Tags {
|
|
3
|
+
preview = "preview",
|
|
4
|
+
latest = "latest"
|
|
5
|
+
}
|
|
6
|
+
export declare const tagApplication: (options: {
|
|
7
|
+
tag: keyof typeof Tags;
|
|
8
|
+
version: string;
|
|
9
|
+
env: FusionEnv;
|
|
10
|
+
service: string;
|
|
11
|
+
}) => Promise<void>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FusionEnv } from './utils/index.js';
|
|
2
|
+
import { ConfigExecuterEnv } from '../lib/utils/config.js';
|
|
3
|
+
export declare const uploadExportConfig: (options: {
|
|
4
|
+
command?: ConfigExecuterEnv["command"];
|
|
5
|
+
configFile: string;
|
|
6
|
+
version: string;
|
|
7
|
+
env: FusionEnv;
|
|
8
|
+
service: string;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
export default uploadExportConfig;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type FusionEnv = 'ci' | 'fqa' | 'tr' | 'fprd';
|
|
2
|
+
/**
|
|
3
|
+
* Retreive full endpoint URI to env in service-discovery
|
|
4
|
+
* @param endpoint <string> The endpoint to call in+ uri
|
|
5
|
+
* @param fusionEnv <FusionEnv> The Fusion env to get uri for
|
|
6
|
+
* @param service <string> Custom service uri to use insted of Fusion
|
|
7
|
+
* @param version <string> The version of the api to use
|
|
8
|
+
* @returns <string> The uri with endpoint
|
|
9
|
+
*/
|
|
10
|
+
export declare const getEndpointUrl: (endpoint: string, fusionEnv: FusionEnv, service: string, version?: string) => Promise<string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { getEndpointUrl } from './getEndpointUrl.js';
|
|
2
|
+
export type { FusionEnv } from './getEndpointUrl.js';
|
|
3
|
+
export { requireToken } from './requireToken.js';
|
|
4
|
+
export { isAppRegistered } from './isAppRegistered.js';
|
|
5
|
+
export { loadAppConfig } from './load-app-config.js';
|
|
6
|
+
export { loadAppManifest } from './load-manifest.js';
|
|
7
|
+
export { loadPackage } from './load-package.js';
|
|
8
|
+
export { loadViteConfig } from './load-vite-config.js';
|
|
9
|
+
export { formatPath, formatByteSize } from './format.js';
|
|
10
|
+
export { executeCommand } from './execute-command.js';
|
|
11
|
+
export { publishAppConfig } from './publishAppConfig.js';
|
|
12
|
+
export { tagAppBundle } from './tagAppBundle.js';
|
|
13
|
+
export { uploadAppBundle } from './uploadAppBundle.js';
|
|
14
|
+
export { Spinner } from './spinner.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ConfigExecuterEnv } from '../../lib/utils/config.js';
|
|
2
|
+
import { type ResolvedAppPackage } from '../../lib/app-package.js';
|
|
3
|
+
import { ApiAppConfig } from '../../schemas.js';
|
|
4
|
+
export declare const loadAppConfig: (env: ConfigExecuterEnv, pkg: ResolvedAppPackage, options?: {
|
|
5
|
+
file?: string;
|
|
6
|
+
}) => Promise<{
|
|
7
|
+
config: ApiAppConfig;
|
|
8
|
+
path?: string;
|
|
9
|
+
}>;
|
|
10
|
+
export default loadAppConfig;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
2
|
+
import { type ConfigExecuterEnv } from '../../lib/utils/config.js';
|
|
3
|
+
import { type ResolvedAppPackage } from '../../lib/app-package.js';
|
|
4
|
+
export declare const loadAppManifest: (env: ConfigExecuterEnv, pkg: ResolvedAppPackage, options?: {
|
|
5
|
+
file?: string;
|
|
6
|
+
}) => Promise<{
|
|
7
|
+
manifest: AppManifest;
|
|
8
|
+
path?: string;
|
|
9
|
+
}>;
|
|
10
|
+
export default loadAppManifest;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ConfigExecuterEnv } from '../../lib/utils/config.js';
|
|
2
|
+
export declare const loadViteConfig: (env: ConfigExecuterEnv, options?: {
|
|
3
|
+
file?: string;
|
|
4
|
+
}) => Promise<{
|
|
5
|
+
viteConfig: Record<string, any>;
|
|
6
|
+
path: string | undefined;
|
|
7
|
+
} | {
|
|
8
|
+
viteConfig: import("vite").UserConfig;
|
|
9
|
+
path?: undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ClientRequest } from 'http';
|
|
2
|
+
/**
|
|
3
|
+
* Logs the status of a proxy request using a spinner.
|
|
4
|
+
*
|
|
5
|
+
* @param proxyReq - The proxy request to log.
|
|
6
|
+
*
|
|
7
|
+
* The function attaches event listeners to the proxy request to handle
|
|
8
|
+
* 'response' and 'error' events. It uses a spinner to indicate the status
|
|
9
|
+
* of the request:
|
|
10
|
+
* - On a successful response (status code < 400), the spinner succeeds.
|
|
11
|
+
* - On a response with a status code >= 400, the spinner warns with the status message.
|
|
12
|
+
* - On an error, the spinner fails.
|
|
13
|
+
*/
|
|
14
|
+
export declare const proxyRequestLogger: (proxyReq: ClientRequest) => void;
|
|
15
|
+
export default proxyRequestLogger;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiAppConfig } from '../../schemas.js';
|
|
2
|
+
/**
|
|
3
|
+
* Publishes app config to the apps-service endpoint
|
|
4
|
+
* @param endpoint string The endpoint to upload to
|
|
5
|
+
* @param appKey The application key
|
|
6
|
+
* @param config Object with app config
|
|
7
|
+
* @returns HTTP response as json
|
|
8
|
+
*/
|
|
9
|
+
export declare const publishAppConfig: (endpoint: string, appKey: string, config: ApiAppConfig) => Promise<any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Options, type Ora } from 'ora';
|
|
2
|
+
export declare class Spinner {
|
|
3
|
+
#private;
|
|
4
|
+
get ora(): Ora;
|
|
5
|
+
set attachConsole(value: boolean);
|
|
6
|
+
static Global(options?: Options): Spinner;
|
|
7
|
+
static Clone(spinner?: Spinner): Spinner;
|
|
8
|
+
static get Current(): Spinner;
|
|
9
|
+
static set Current(spinner: Spinner);
|
|
10
|
+
constructor(options?: Options);
|
|
11
|
+
get prefixText(): string;
|
|
12
|
+
info(...args: string[]): void;
|
|
13
|
+
succeed(...args: string[]): void;
|
|
14
|
+
start(...args: string[]): void;
|
|
15
|
+
fail(...args: string[]): void;
|
|
16
|
+
warn(...args: string[]): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
stop(): void;
|
|
19
|
+
stopAndPersist(...args: Parameters<Ora['stopAndPersist']>): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Send request to apps-service to tag a bundle.
|
|
3
|
+
* @param endpoint string The endpoint to send request to.
|
|
4
|
+
* @param version string The version to tag the bundle with.
|
|
5
|
+
* @returns Response object as json.
|
|
6
|
+
*/
|
|
7
|
+
export declare const tagAppBundle: (endpoint: string, version: string) => Promise<any>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function that uploads a zip bundle to the endpoint.
|
|
3
|
+
* @param endpoint string The endpoint to upload to
|
|
4
|
+
* @param bundle string The filename to upload
|
|
5
|
+
* @returns Object
|
|
6
|
+
*/
|
|
7
|
+
export declare const uploadAppBundle: (endpoint: string, bundle: string) => Promise<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ResolvedConfig, type FindConfigOptions, ConfigExecuterEnv } from './utils/config.js';
|
|
2
|
-
import { ApiAppConfig } from '
|
|
2
|
+
import { ApiAppConfig } from '../schemas.js';
|
|
3
3
|
type FindAppConfigOptions = FindConfigOptions & {
|
|
4
4
|
file?: string;
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
import { AppManifest } from '@equinor/fusion-framework-app';
|
|
3
3
|
import { ClientRequest, IncomingMessage, ServerResponse } from 'node:http';
|
|
4
|
-
import { ApiAppConfig } from '
|
|
4
|
+
import { ApiAppConfig } from '../../../schemas.js';
|
|
5
5
|
/**
|
|
6
6
|
* Options for configuring the App Proxy Plugin.
|
|
7
7
|
*
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Api config object
|
|
4
|
+
*/
|
|
5
|
+
export declare const ApiAppConfigSchema: z.ZodObject<{
|
|
6
|
+
environment: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
7
|
+
endpoints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8
|
+
url: z.ZodString;
|
|
9
|
+
scopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
url: string;
|
|
12
|
+
scopes: string[];
|
|
13
|
+
}, {
|
|
14
|
+
url: string;
|
|
15
|
+
scopes?: string[] | undefined;
|
|
16
|
+
}>>>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
environment: Record<string, any>;
|
|
19
|
+
endpoints?: Record<string, {
|
|
20
|
+
url: string;
|
|
21
|
+
scopes: string[];
|
|
22
|
+
}> | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
environment?: Record<string, any> | undefined;
|
|
25
|
+
endpoints?: Record<string, {
|
|
26
|
+
url: string;
|
|
27
|
+
scopes?: string[] | undefined;
|
|
28
|
+
}> | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type ApiAppConfig = z.infer<typeof ApiAppConfigSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "9.13.1";
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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-next-
|
|
3
|
+
"version": "10.0.0-next-65f4bbf022d22b529abd095acd74ab218499fb8b",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Fusion",
|
|
6
6
|
"Fusion Framework",
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
"@equinor/fusion-wc-chip": "^1.2.1",
|
|
70
70
|
"@equinor/fusion-wc-person": "^3.0.1",
|
|
71
71
|
"@material-ui/styles": "^4.11.5",
|
|
72
|
-
"@rollup/plugin-typescript": "^12.1.0",
|
|
73
72
|
"@types/adm-zip": "^0.5.0",
|
|
74
73
|
"@types/loader-utils": "^2.0.6",
|
|
75
74
|
"@types/node": "^20.11.14",
|
|
@@ -81,33 +80,31 @@
|
|
|
81
80
|
"react": "^18.2.0",
|
|
82
81
|
"react-dom": "^18.2.0",
|
|
83
82
|
"react-router-dom": "^6.15.0",
|
|
84
|
-
"rimraf": "^6.0.0",
|
|
85
83
|
"rollup": "^4.22.4",
|
|
86
84
|
"rxjs": "^7.8.1",
|
|
87
85
|
"styled-components": "^6.0.7",
|
|
88
86
|
"typescript": "^5.5.4",
|
|
89
|
-
"@equinor/fusion-framework": "^
|
|
90
|
-
"@equinor/fusion-framework-
|
|
91
|
-
"@equinor/fusion-framework-app": "^
|
|
92
|
-
"@equinor/fusion-framework-module-
|
|
93
|
-
"@equinor/fusion-framework-module-
|
|
94
|
-
"@equinor/fusion-framework-module-
|
|
95
|
-
"@equinor/fusion-framework-module-
|
|
96
|
-
"@equinor/fusion-framework-module-
|
|
97
|
-
"@equinor/fusion-framework-module-
|
|
98
|
-
"@equinor/fusion-framework-react": "^
|
|
99
|
-
"@equinor/fusion-framework-react-
|
|
100
|
-
"@equinor/fusion-framework-react-components-
|
|
101
|
-
"@equinor/fusion-framework-react-
|
|
102
|
-
"@equinor/fusion-query": "^
|
|
103
|
-
"@equinor/fusion-observable": "^
|
|
87
|
+
"@equinor/fusion-framework": "^7.2.8",
|
|
88
|
+
"@equinor/fusion-framework-app": "^9.1.10-next-65f4bbf022d22b529abd095acd74ab218499fb8b",
|
|
89
|
+
"@equinor/fusion-framework-module-app": "^6.0.0-next-65f4bbf022d22b529abd095acd74ab218499fb8b",
|
|
90
|
+
"@equinor/fusion-framework-module-bookmark": "^1.2.12",
|
|
91
|
+
"@equinor/fusion-framework-module-context": "^5.0.12",
|
|
92
|
+
"@equinor/fusion-framework-module-feature-flag": "^1.1.9",
|
|
93
|
+
"@equinor/fusion-framework-module-msal": "^3.1.5",
|
|
94
|
+
"@equinor/fusion-framework-module-services": "^4.1.5",
|
|
95
|
+
"@equinor/fusion-framework-module-navigation": "^4.0.7",
|
|
96
|
+
"@equinor/fusion-framework-react": "^7.3.0-next-65f4bbf022d22b529abd095acd74ab218499fb8b",
|
|
97
|
+
"@equinor/fusion-framework-react-components-bookmark": "^0.5.2-next-65f4bbf022d22b529abd095acd74ab218499fb8b",
|
|
98
|
+
"@equinor/fusion-framework-react-components-people-provider": "^1.4.9-next-65f4bbf022d22b529abd095acd74ab218499fb8b",
|
|
99
|
+
"@equinor/fusion-framework-react-module-bookmark": "^2.1.18-next-65f4bbf022d22b529abd095acd74ab218499fb8b",
|
|
100
|
+
"@equinor/fusion-query": "^5.1.3",
|
|
101
|
+
"@equinor/fusion-observable": "^8.4.1"
|
|
104
102
|
},
|
|
105
103
|
"scripts": {
|
|
106
|
-
"
|
|
104
|
+
"prebuild": "pnpm build:source",
|
|
105
|
+
"build": "pnpm build:source && pnpm build:dev-server",
|
|
107
106
|
"build:clean": "rm -rf dist && rm -f tsconfig.tsbuildinfo && pnpm build",
|
|
108
|
-
"build:
|
|
109
|
-
"build:
|
|
110
|
-
"build:dev-proxy": "vite build",
|
|
111
|
-
"clean": "rimraf dist, tsconfig.tsbuildinfo, tsconfig.lib.tsbuildinfo"
|
|
107
|
+
"build:source": "tsc -b",
|
|
108
|
+
"build:dev-server": "vite build"
|
|
112
109
|
}
|
|
113
110
|
}
|