@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.
Files changed (181) hide show
  1. package/CHANGELOG.md +10 -15
  2. package/bin/cli.mjs +1 -1
  3. package/dist/bin/build-application.js +65 -0
  4. package/dist/bin/build-application.js.map +1 -0
  5. package/dist/bin/bundle-application.js +56 -0
  6. package/dist/bin/bundle-application.js.map +1 -0
  7. package/dist/bin/create-dev-serve.js +123 -0
  8. package/dist/bin/create-dev-serve.js.map +1 -0
  9. package/dist/bin/create-export-config.js +50 -0
  10. package/dist/bin/create-export-config.js.map +1 -0
  11. package/dist/bin/create-export-manifest.js +77 -0
  12. package/dist/bin/create-export-manifest.js.map +1 -0
  13. package/dist/bin/dev-portal/AppLoader.js +77 -0
  14. package/dist/bin/dev-portal/AppLoader.js.map +1 -0
  15. package/dist/bin/dev-portal/BookMarkSideSheet.js +15 -0
  16. package/dist/bin/dev-portal/BookMarkSideSheet.js.map +1 -0
  17. package/dist/bin/dev-portal/ContextSelector/ContextSelector.js +41 -0
  18. package/dist/bin/dev-portal/ContextSelector/ContextSelector.js.map +1 -0
  19. package/dist/bin/dev-portal/ContextSelector/index.js +2 -0
  20. package/dist/bin/dev-portal/ContextSelector/index.js.map +1 -0
  21. package/dist/bin/dev-portal/ContextSelector/useContextResolver.js +171 -0
  22. package/dist/bin/dev-portal/ContextSelector/useContextResolver.js.map +1 -0
  23. package/dist/bin/dev-portal/EquinorLoader.js +14 -0
  24. package/dist/bin/dev-portal/EquinorLoader.js.map +1 -0
  25. package/dist/bin/dev-portal/ErrorViewer.js +7 -0
  26. package/dist/bin/dev-portal/ErrorViewer.js.map +1 -0
  27. package/dist/bin/dev-portal/FusionLogo.js +4 -0
  28. package/dist/bin/dev-portal/FusionLogo.js.map +1 -0
  29. package/dist/bin/dev-portal/Header.js +37 -0
  30. package/dist/bin/dev-portal/Header.js.map +1 -0
  31. package/dist/bin/dev-portal/PersonSideSheet/index.js +32 -0
  32. package/dist/bin/dev-portal/PersonSideSheet/index.js.map +1 -0
  33. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js +16 -0
  34. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js.map +1 -0
  35. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js +16 -0
  36. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js.map +1 -0
  37. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js +16 -0
  38. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js.map +1 -0
  39. package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js +19 -0
  40. package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js.map +1 -0
  41. package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js +30 -0
  42. package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js.map +1 -0
  43. package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js +3 -0
  44. package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js.map +1 -0
  45. package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js +2 -0
  46. package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js.map +1 -0
  47. package/dist/bin/dev-portal/Router.js +59 -0
  48. package/dist/bin/dev-portal/Router.js.map +1 -0
  49. package/dist/bin/dev-portal/config.js +69 -0
  50. package/dist/bin/dev-portal/config.js.map +1 -0
  51. package/dist/bin/dev-portal/main.js +13 -0
  52. package/dist/bin/dev-portal/main.js.map +1 -0
  53. package/dist/bin/dev-portal/resources/fallback-photo.svg.js +3 -0
  54. package/dist/bin/dev-portal/resources/fallback-photo.svg.js.map +1 -0
  55. package/dist/bin/dev-portal/useAppContextNavigation.js +68 -0
  56. package/dist/bin/dev-portal/useAppContextNavigation.js.map +1 -0
  57. package/dist/bin/main.app.js +171 -0
  58. package/dist/bin/main.app.js.map +1 -0
  59. package/dist/bin/main.js +20 -0
  60. package/dist/bin/main.js.map +1 -0
  61. package/dist/bin/public/assets/{index-Cb85_fOB.js → index-D0eBBcR8.js} +483 -483
  62. package/dist/bin/public/index.html +1 -1
  63. package/dist/bin/publish-application.js +104 -0
  64. package/dist/bin/publish-application.js.map +1 -0
  65. package/dist/bin/tag-application.js +82 -0
  66. package/dist/bin/tag-application.js.map +1 -0
  67. package/dist/bin/upload-application.js +72 -0
  68. package/dist/bin/upload-application.js.map +1 -0
  69. package/dist/bin/upload-export-config.js +87 -0
  70. package/dist/bin/upload-export-config.js.map +1 -0
  71. package/dist/bin/utils/execute-command.js +23 -0
  72. package/dist/bin/utils/execute-command.js.map +1 -0
  73. package/dist/bin/utils/format.js +17 -0
  74. package/dist/bin/utils/format.js.map +1 -0
  75. package/dist/bin/utils/getEndpointUrl.js +49 -0
  76. package/dist/bin/utils/getEndpointUrl.js.map +1 -0
  77. package/dist/bin/utils/index.js +14 -0
  78. package/dist/bin/utils/index.js.map +1 -0
  79. package/dist/bin/utils/isAppRegistered.js +35 -0
  80. package/dist/bin/utils/isAppRegistered.js.map +1 -0
  81. package/dist/bin/utils/load-app-config.js +35 -0
  82. package/dist/bin/utils/load-app-config.js.map +1 -0
  83. package/dist/bin/utils/load-manifest.js +40 -0
  84. package/dist/bin/utils/load-manifest.js.map +1 -0
  85. package/dist/bin/utils/load-package.js +24 -0
  86. package/dist/bin/utils/load-package.js.map +1 -0
  87. package/dist/bin/utils/load-vite-config.js +54 -0
  88. package/dist/bin/utils/load-vite-config.js.map +1 -0
  89. package/dist/bin/utils/proxy-request-logger.js +34 -0
  90. package/dist/bin/utils/proxy-request-logger.js.map +1 -0
  91. package/dist/bin/utils/publishAppConfig.js +36 -0
  92. package/dist/bin/utils/publishAppConfig.js.map +1 -0
  93. package/dist/bin/utils/requireToken.js +10 -0
  94. package/dist/bin/utils/requireToken.js.map +1 -0
  95. package/dist/bin/utils/spinner.js +77 -0
  96. package/dist/bin/utils/spinner.js.map +1 -0
  97. package/dist/bin/utils/tagAppBundle.js +35 -0
  98. package/dist/bin/utils/tagAppBundle.js.map +1 -0
  99. package/dist/bin/utils/uploadAppBundle.js +54 -0
  100. package/dist/bin/utils/uploadAppBundle.js.map +1 -0
  101. package/dist/lib/app-config.js +1 -1
  102. package/dist/lib/app-config.js.map +1 -1
  103. package/dist/schemas.js +14 -0
  104. package/dist/schemas.js.map +1 -0
  105. package/dist/types/bin/build-application.d.ts +13 -0
  106. package/dist/types/bin/bundle-application.d.ts +4 -0
  107. package/dist/types/bin/create-dev-serve.d.ts +11 -0
  108. package/dist/types/bin/create-export-config.d.ts +13 -0
  109. package/dist/types/bin/create-export-manifest.d.ts +16 -0
  110. package/dist/types/bin/dev-portal/AppLoader.d.ts +11 -0
  111. package/dist/types/bin/dev-portal/BookMarkSideSheet.d.ts +6 -0
  112. package/dist/types/bin/dev-portal/ContextSelector/ContextSelector.d.ts +8 -0
  113. package/dist/types/bin/dev-portal/ContextSelector/index.d.ts +1 -0
  114. package/dist/types/bin/dev-portal/ContextSelector/useContextResolver.d.ts +15 -0
  115. package/dist/types/bin/dev-portal/EquinorLoader.d.ts +5 -0
  116. package/dist/types/bin/dev-portal/ErrorViewer.d.ts +4 -0
  117. package/dist/types/bin/dev-portal/FusionLogo.d.ts +5 -0
  118. package/dist/types/bin/dev-portal/Header.d.ts +3 -0
  119. package/dist/types/bin/dev-portal/PersonSideSheet/index.d.ts +11 -0
  120. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.d.ts +6 -0
  121. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.d.ts +5 -0
  122. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.d.ts +5 -0
  123. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.d.ts +5 -0
  124. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/Styled.d.ts +6 -0
  125. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/index.d.ts +2 -0
  126. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/types.d.ts +5 -0
  127. package/dist/types/bin/dev-portal/Router.d.ts +1 -0
  128. package/dist/types/bin/dev-portal/config.d.ts +3 -0
  129. package/dist/types/bin/dev-portal/main.d.ts +1 -0
  130. package/dist/types/bin/dev-portal/resources/fallback-photo.svg.d.ts +2 -0
  131. package/dist/types/bin/dev-portal/useAppContextNavigation.d.ts +5 -0
  132. package/dist/types/bin/main.app.d.ts +3 -0
  133. package/dist/types/bin/main.d.ts +1 -0
  134. package/dist/types/bin/publish-application.d.ts +6 -0
  135. package/dist/types/bin/tag-application.d.ts +12 -0
  136. package/dist/types/bin/upload-application.d.ts +6 -0
  137. package/dist/types/bin/upload-export-config.d.ts +10 -0
  138. package/dist/types/bin/utils/execute-command.d.ts +8 -0
  139. package/dist/types/bin/utils/format.d.ts +8 -0
  140. package/dist/types/bin/utils/getEndpointUrl.d.ts +10 -0
  141. package/dist/types/bin/utils/index.d.ts +14 -0
  142. package/dist/types/bin/utils/isAppRegistered.d.ts +5 -0
  143. package/dist/types/bin/utils/load-app-config.d.ts +10 -0
  144. package/dist/types/bin/utils/load-manifest.d.ts +10 -0
  145. package/dist/types/bin/utils/load-package.d.ts +5 -0
  146. package/dist/types/bin/utils/load-vite-config.d.ts +10 -0
  147. package/dist/types/bin/utils/proxy-request-logger.d.ts +15 -0
  148. package/dist/types/bin/utils/publishAppConfig.d.ts +9 -0
  149. package/dist/types/bin/utils/requireToken.d.ts +4 -0
  150. package/dist/types/bin/utils/spinner.d.ts +20 -0
  151. package/dist/types/bin/utils/tagAppBundle.d.ts +7 -0
  152. package/dist/types/bin/utils/uploadAppBundle.d.ts +7 -0
  153. package/dist/types/{app-config.d.ts → lib/app-config.d.ts} +1 -1
  154. package/dist/types/{plugins → lib/plugins}/app-proxy/app-proxy-plugin.d.ts +1 -1
  155. package/dist/types/schemas.d.ts +30 -0
  156. package/dist/types/version.d.ts +1 -0
  157. package/dist/version.js +3 -0
  158. package/dist/version.js.map +1 -0
  159. package/package.json +20 -23
  160. package/dist/bin/main.mjs +0 -2003
  161. /package/dist/types/{app-manifest.d.ts → lib/app-manifest.d.ts} +0 -0
  162. /package/dist/types/{app-package.d.ts → lib/app-package.d.ts} +0 -0
  163. /package/dist/types/{index.d.ts → lib/index.d.ts} +0 -0
  164. /package/dist/types/{plugins → lib/plugins}/app-assets/app-asset-plugin.d.ts +0 -0
  165. /package/dist/types/{plugins → lib/plugins}/app-assets/emit-asset.d.ts +0 -0
  166. /package/dist/types/{plugins → lib/plugins}/app-assets/extension-filter-pattern.d.ts +0 -0
  167. /package/dist/types/{plugins → lib/plugins}/app-assets/index.d.ts +0 -0
  168. /package/dist/types/{plugins → lib/plugins}/app-assets/read-asset-content.d.ts +0 -0
  169. /package/dist/types/{plugins → lib/plugins}/app-assets/resolve-asset-id.d.ts +0 -0
  170. /package/dist/types/{plugins → lib/plugins}/app-assets/static.d.ts +0 -0
  171. /package/dist/types/{plugins → lib/plugins}/app-proxy/index.d.ts +0 -0
  172. /package/dist/types/{plugins → lib/plugins}/external-public/external-public-plugin.d.ts +0 -0
  173. /package/dist/types/{plugins → lib/plugins}/external-public/index.d.ts +0 -0
  174. /package/dist/types/{utils → lib/utils}/assert.d.ts +0 -0
  175. /package/dist/types/{utils → lib/utils}/config.d.ts +0 -0
  176. /package/dist/types/{utils → lib/utils}/expect.d.ts +0 -0
  177. /package/dist/types/{utils → lib/utils}/file-exists.d.ts +0 -0
  178. /package/dist/types/{utils → lib/utils}/ts-transpile.d.ts +0 -0
  179. /package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
  180. /package/dist/types/{vite-config.d.ts → lib/vite-config.d.ts} +0 -0
  181. /package/dist/types/{vite-logger.d.ts → lib/vite-logger.d.ts} +0 -0
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Content for Feature toggler tab for portal features in the PersonSidesheet's Feature page.
3
+ */
4
+ export declare const FeatureTogglerPortal: () => import("react/jsx-runtime").JSX.Element;
5
+ export default FeatureTogglerPortal;
@@ -0,0 +1,5 @@
1
+ import type { SheetContentProps } from './types';
2
+ /**
3
+ * Content for the main tab in the PersonSidesheet.
4
+ */
5
+ export declare const LandingSheetContent: ({ azureId, navigate }: SheetContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export { FeatureSheetContent } from './FeatureSheetContent';
2
+ export { LandingSheetContent } from './LandingSheetContent';
@@ -0,0 +1,5 @@
1
+ export type SheetContentProps = {
2
+ readonly azureId?: string;
3
+ readonly sheet?: string;
4
+ navigate(sheet?: string): void;
5
+ };
@@ -0,0 +1 @@
1
+ export declare const Router: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { FrameworkConfigurator } from '@equinor/fusion-framework';
2
+ export declare const configure: (config: FrameworkConfigurator) => Promise<void>;
3
+ export default configure;
@@ -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,5 @@
1
+ /**
2
+ * when current application changes, this hook will observe the application module instances.
3
+ * If the module has Context and Navigation, this hook will navigate when the context changes
4
+ */
5
+ export declare const useAppContextNavigation: () => void;
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ declare const _default: (program: Command) => void;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { FusionEnv } from './utils/index.js';
2
+ export declare const publishApplication: (options: {
3
+ tag: string;
4
+ env: FusionEnv;
5
+ service: string;
6
+ }) => Promise<void>;
@@ -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,6 @@
1
+ import type { FusionEnv } from './utils/index.js';
2
+ export declare const uploadApplication: (options: {
3
+ bundle: string;
4
+ env: FusionEnv;
5
+ service: string;
6
+ }) => Promise<void>;
@@ -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,8 @@
1
+ type Commands = {
2
+ app: {
3
+ build: '';
4
+ manifest: '';
5
+ };
6
+ };
7
+ export declare const executeCommand: <TProgram extends keyof Commands>(program: TProgram, command: keyof Commands[TProgram], ...options: any[]) => Promise<unknown>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import chalk from 'chalk';
2
+ export { chalk };
3
+ export declare const formatPath: (path: string, opt?: {
4
+ relative?: boolean;
5
+ cwd?: string;
6
+ }) => string;
7
+ export declare const formatByteSize: (input: string | number) => string;
8
+ export default chalk;
@@ -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,5 @@
1
+ /**
2
+ * Make sure the app is registerred in the app-service
3
+ * @param endpoint <string> The endpoint to make a call to
4
+ */
5
+ export declare const isAppRegistered: (endpoint: string) => Promise<boolean>;
@@ -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,5 @@
1
+ export declare const loadPackage: () => Promise<{
2
+ root: string;
3
+ packageJson: import("../../lib/app-package.js").AppPackageJson;
4
+ path: string;
5
+ }>;
@@ -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,4 @@
1
+ /**
2
+ * Make sure the user has a valid azure token.
3
+ */
4
+ export declare const requireToken: () => void;
@@ -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 '@equinor/fusion-framework-module-app/schemas.js';
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 '@equinor/fusion-framework-module-app/schemas.js';
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";
@@ -0,0 +1,3 @@
1
+ // Generated by genversion.
2
+ export const version = '9.13.1';
3
+ //# sourceMappingURL=version.js.map
@@ -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-663bed8344cc2ca0111705b05045173328b3104d",
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": "^8.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
90
- "@equinor/fusion-framework-module-app": "^6.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
91
- "@equinor/fusion-framework-app": "^10.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
92
- "@equinor/fusion-framework-module-context": "^6.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
93
- "@equinor/fusion-framework-module-feature-flag": "^2.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
94
- "@equinor/fusion-framework-module-msal": "^4.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
95
- "@equinor/fusion-framework-module-bookmark": "^2.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
96
- "@equinor/fusion-framework-module-navigation": "^5.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
97
- "@equinor/fusion-framework-module-services": "^5.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
98
- "@equinor/fusion-framework-react": "^8.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
99
- "@equinor/fusion-framework-react-module-bookmark": "^3.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
100
- "@equinor/fusion-framework-react-components-bookmark": "^1.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
101
- "@equinor/fusion-framework-react-components-people-provider": "^2.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
102
- "@equinor/fusion-query": "^6.0.0-next-663bed8344cc2ca0111705b05045173328b3104d",
103
- "@equinor/fusion-observable": "^9.0.0-next-663bed8344cc2ca0111705b05045173328b3104d"
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
- "build": "pnpm build:lib && pnpm build:dev-proxy && pnpm build:bin",
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:lib": "tsc -b tsconfig.lib.json",
109
- "build:bin": "rollup -c",
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
  }