@equinor/fusion-framework-cli 10.0.0-next-54618d61fef0bcafa56d37212c9e89b2f3155db0 → 10.0.0-next-43b4cac9210dd754e552b9f32ae229477e5ca643

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 (174) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/bin/cli.mjs +1 -1
  3. package/dist/bin/main.mjs +2003 -0
  4. package/package.json +15 -12
  5. package/dist/bin/build-application.js +0 -65
  6. package/dist/bin/build-application.js.map +0 -1
  7. package/dist/bin/bundle-application.js +0 -56
  8. package/dist/bin/bundle-application.js.map +0 -1
  9. package/dist/bin/create-dev-serve.js +0 -123
  10. package/dist/bin/create-dev-serve.js.map +0 -1
  11. package/dist/bin/create-export-config.js +0 -50
  12. package/dist/bin/create-export-config.js.map +0 -1
  13. package/dist/bin/create-export-manifest.js +0 -77
  14. package/dist/bin/create-export-manifest.js.map +0 -1
  15. package/dist/bin/dev-portal/AppLoader.js +0 -77
  16. package/dist/bin/dev-portal/AppLoader.js.map +0 -1
  17. package/dist/bin/dev-portal/BookMarkSideSheet.js +0 -15
  18. package/dist/bin/dev-portal/BookMarkSideSheet.js.map +0 -1
  19. package/dist/bin/dev-portal/ContextSelector/ContextSelector.js +0 -41
  20. package/dist/bin/dev-portal/ContextSelector/ContextSelector.js.map +0 -1
  21. package/dist/bin/dev-portal/ContextSelector/index.js +0 -2
  22. package/dist/bin/dev-portal/ContextSelector/index.js.map +0 -1
  23. package/dist/bin/dev-portal/ContextSelector/useContextResolver.js +0 -171
  24. package/dist/bin/dev-portal/ContextSelector/useContextResolver.js.map +0 -1
  25. package/dist/bin/dev-portal/EquinorLoader.js +0 -14
  26. package/dist/bin/dev-portal/EquinorLoader.js.map +0 -1
  27. package/dist/bin/dev-portal/ErrorViewer.js +0 -7
  28. package/dist/bin/dev-portal/ErrorViewer.js.map +0 -1
  29. package/dist/bin/dev-portal/FusionLogo.js +0 -4
  30. package/dist/bin/dev-portal/FusionLogo.js.map +0 -1
  31. package/dist/bin/dev-portal/Header.js +0 -37
  32. package/dist/bin/dev-portal/Header.js.map +0 -1
  33. package/dist/bin/dev-portal/PersonSideSheet/index.js +0 -32
  34. package/dist/bin/dev-portal/PersonSideSheet/index.js.map +0 -1
  35. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js +0 -16
  36. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.js.map +0 -1
  37. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js +0 -16
  38. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.js.map +0 -1
  39. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js +0 -16
  40. package/dist/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.js.map +0 -1
  41. package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js +0 -19
  42. package/dist/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.js.map +0 -1
  43. package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js +0 -30
  44. package/dist/bin/dev-portal/PersonSideSheet/sheets/Styled.js.map +0 -1
  45. package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js +0 -3
  46. package/dist/bin/dev-portal/PersonSideSheet/sheets/index.js.map +0 -1
  47. package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js +0 -2
  48. package/dist/bin/dev-portal/PersonSideSheet/sheets/types.js.map +0 -1
  49. package/dist/bin/dev-portal/Router.js +0 -59
  50. package/dist/bin/dev-portal/Router.js.map +0 -1
  51. package/dist/bin/dev-portal/config.js +0 -69
  52. package/dist/bin/dev-portal/config.js.map +0 -1
  53. package/dist/bin/dev-portal/main.js +0 -13
  54. package/dist/bin/dev-portal/main.js.map +0 -1
  55. package/dist/bin/dev-portal/resources/fallback-photo.svg.js +0 -3
  56. package/dist/bin/dev-portal/resources/fallback-photo.svg.js.map +0 -1
  57. package/dist/bin/dev-portal/useAppContextNavigation.js +0 -68
  58. package/dist/bin/dev-portal/useAppContextNavigation.js.map +0 -1
  59. package/dist/bin/main.app.js +0 -171
  60. package/dist/bin/main.app.js.map +0 -1
  61. package/dist/bin/main.js +0 -20
  62. package/dist/bin/main.js.map +0 -1
  63. package/dist/bin/publish-application.js +0 -104
  64. package/dist/bin/publish-application.js.map +0 -1
  65. package/dist/bin/tag-application.js +0 -82
  66. package/dist/bin/tag-application.js.map +0 -1
  67. package/dist/bin/upload-application.js +0 -72
  68. package/dist/bin/upload-application.js.map +0 -1
  69. package/dist/bin/upload-export-config.js +0 -87
  70. package/dist/bin/upload-export-config.js.map +0 -1
  71. package/dist/bin/utils/execute-command.js +0 -23
  72. package/dist/bin/utils/execute-command.js.map +0 -1
  73. package/dist/bin/utils/format.js +0 -17
  74. package/dist/bin/utils/format.js.map +0 -1
  75. package/dist/bin/utils/getEndpointUrl.js +0 -49
  76. package/dist/bin/utils/getEndpointUrl.js.map +0 -1
  77. package/dist/bin/utils/index.js +0 -14
  78. package/dist/bin/utils/index.js.map +0 -1
  79. package/dist/bin/utils/isAppRegistered.js +0 -35
  80. package/dist/bin/utils/isAppRegistered.js.map +0 -1
  81. package/dist/bin/utils/load-app-config.js +0 -35
  82. package/dist/bin/utils/load-app-config.js.map +0 -1
  83. package/dist/bin/utils/load-manifest.js +0 -40
  84. package/dist/bin/utils/load-manifest.js.map +0 -1
  85. package/dist/bin/utils/load-package.js +0 -24
  86. package/dist/bin/utils/load-package.js.map +0 -1
  87. package/dist/bin/utils/load-vite-config.js +0 -54
  88. package/dist/bin/utils/load-vite-config.js.map +0 -1
  89. package/dist/bin/utils/proxy-request-logger.js +0 -34
  90. package/dist/bin/utils/proxy-request-logger.js.map +0 -1
  91. package/dist/bin/utils/publishAppConfig.js +0 -36
  92. package/dist/bin/utils/publishAppConfig.js.map +0 -1
  93. package/dist/bin/utils/requireToken.js +0 -10
  94. package/dist/bin/utils/requireToken.js.map +0 -1
  95. package/dist/bin/utils/spinner.js +0 -77
  96. package/dist/bin/utils/spinner.js.map +0 -1
  97. package/dist/bin/utils/tagAppBundle.js +0 -35
  98. package/dist/bin/utils/tagAppBundle.js.map +0 -1
  99. package/dist/bin/utils/uploadAppBundle.js +0 -54
  100. package/dist/bin/utils/uploadAppBundle.js.map +0 -1
  101. package/dist/types/bin/build-application.d.ts +0 -13
  102. package/dist/types/bin/bundle-application.d.ts +0 -4
  103. package/dist/types/bin/create-dev-serve.d.ts +0 -11
  104. package/dist/types/bin/create-export-config.d.ts +0 -13
  105. package/dist/types/bin/create-export-manifest.d.ts +0 -16
  106. package/dist/types/bin/dev-portal/AppLoader.d.ts +0 -11
  107. package/dist/types/bin/dev-portal/BookMarkSideSheet.d.ts +0 -6
  108. package/dist/types/bin/dev-portal/ContextSelector/ContextSelector.d.ts +0 -8
  109. package/dist/types/bin/dev-portal/ContextSelector/index.d.ts +0 -1
  110. package/dist/types/bin/dev-portal/ContextSelector/useContextResolver.d.ts +0 -15
  111. package/dist/types/bin/dev-portal/EquinorLoader.d.ts +0 -5
  112. package/dist/types/bin/dev-portal/ErrorViewer.d.ts +0 -4
  113. package/dist/types/bin/dev-portal/FusionLogo.d.ts +0 -5
  114. package/dist/types/bin/dev-portal/Header.d.ts +0 -3
  115. package/dist/types/bin/dev-portal/PersonSideSheet/index.d.ts +0 -11
  116. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureSheetContent.d.ts +0 -6
  117. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerApp.d.ts +0 -5
  118. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/FeatureTogglerPortal.d.ts +0 -5
  119. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/LandingSheetContent.d.ts +0 -5
  120. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/Styled.d.ts +0 -6
  121. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/index.d.ts +0 -2
  122. package/dist/types/bin/dev-portal/PersonSideSheet/sheets/types.d.ts +0 -5
  123. package/dist/types/bin/dev-portal/Router.d.ts +0 -1
  124. package/dist/types/bin/dev-portal/config.d.ts +0 -3
  125. package/dist/types/bin/dev-portal/main.d.ts +0 -1
  126. package/dist/types/bin/dev-portal/resources/fallback-photo.svg.d.ts +0 -2
  127. package/dist/types/bin/dev-portal/useAppContextNavigation.d.ts +0 -5
  128. package/dist/types/bin/main.app.d.ts +0 -3
  129. package/dist/types/bin/main.d.ts +0 -1
  130. package/dist/types/bin/publish-application.d.ts +0 -6
  131. package/dist/types/bin/tag-application.d.ts +0 -12
  132. package/dist/types/bin/upload-application.d.ts +0 -6
  133. package/dist/types/bin/upload-export-config.d.ts +0 -10
  134. package/dist/types/bin/utils/execute-command.d.ts +0 -8
  135. package/dist/types/bin/utils/format.d.ts +0 -8
  136. package/dist/types/bin/utils/getEndpointUrl.d.ts +0 -10
  137. package/dist/types/bin/utils/index.d.ts +0 -14
  138. package/dist/types/bin/utils/isAppRegistered.d.ts +0 -5
  139. package/dist/types/bin/utils/load-app-config.d.ts +0 -10
  140. package/dist/types/bin/utils/load-manifest.d.ts +0 -10
  141. package/dist/types/bin/utils/load-package.d.ts +0 -5
  142. package/dist/types/bin/utils/load-vite-config.d.ts +0 -10
  143. package/dist/types/bin/utils/proxy-request-logger.d.ts +0 -15
  144. package/dist/types/bin/utils/publishAppConfig.d.ts +0 -9
  145. package/dist/types/bin/utils/requireToken.d.ts +0 -4
  146. package/dist/types/bin/utils/spinner.d.ts +0 -20
  147. package/dist/types/bin/utils/tagAppBundle.d.ts +0 -7
  148. package/dist/types/bin/utils/uploadAppBundle.d.ts +0 -7
  149. package/dist/types/version.d.ts +0 -1
  150. package/dist/version.js +0 -3
  151. package/dist/version.js.map +0 -1
  152. /package/dist/types/{lib/app-config.d.ts → app-config.d.ts} +0 -0
  153. /package/dist/types/{lib/app-manifest.d.ts → app-manifest.d.ts} +0 -0
  154. /package/dist/types/{lib/app-package.d.ts → app-package.d.ts} +0 -0
  155. /package/dist/types/{lib/index.d.ts → index.d.ts} +0 -0
  156. /package/dist/types/{lib/plugins → plugins}/app-assets/app-asset-plugin.d.ts +0 -0
  157. /package/dist/types/{lib/plugins → plugins}/app-assets/emit-asset.d.ts +0 -0
  158. /package/dist/types/{lib/plugins → plugins}/app-assets/extension-filter-pattern.d.ts +0 -0
  159. /package/dist/types/{lib/plugins → plugins}/app-assets/index.d.ts +0 -0
  160. /package/dist/types/{lib/plugins → plugins}/app-assets/read-asset-content.d.ts +0 -0
  161. /package/dist/types/{lib/plugins → plugins}/app-assets/resolve-asset-id.d.ts +0 -0
  162. /package/dist/types/{lib/plugins → plugins}/app-assets/static.d.ts +0 -0
  163. /package/dist/types/{lib/plugins → plugins}/app-proxy/app-proxy-plugin.d.ts +0 -0
  164. /package/dist/types/{lib/plugins → plugins}/app-proxy/index.d.ts +0 -0
  165. /package/dist/types/{lib/plugins → plugins}/external-public/external-public-plugin.d.ts +0 -0
  166. /package/dist/types/{lib/plugins → plugins}/external-public/index.d.ts +0 -0
  167. /package/dist/types/{lib/utils → utils}/assert.d.ts +0 -0
  168. /package/dist/types/{lib/utils → utils}/config.d.ts +0 -0
  169. /package/dist/types/{lib/utils → utils}/expect.d.ts +0 -0
  170. /package/dist/types/{lib/utils → utils}/file-exists.d.ts +0 -0
  171. /package/dist/types/{lib/utils → utils}/ts-transpile.d.ts +0 -0
  172. /package/dist/types/{lib/utils → utils}/types.d.ts +0 -0
  173. /package/dist/types/{lib/vite-config.d.ts → vite-config.d.ts} +0 -0
  174. /package/dist/types/{lib/vite-logger.d.ts → vite-logger.d.ts} +0 -0
@@ -1,35 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- /**
11
- * Send request to apps-service to tag a bundle.
12
- * @param endpoint string The endpoint to send request to.
13
- * @param version string The version to tag the bundle with.
14
- * @returns Response object as json.
15
- */
16
- export const tagAppBundle = (endpoint, version) => __awaiter(void 0, void 0, void 0, function* () {
17
- const requestTag = yield fetch(endpoint, {
18
- method: 'PUT',
19
- body: JSON.stringify({ version }),
20
- headers: {
21
- Authorization: `Bearer ${process.env.FUSION_TOKEN}`,
22
- 'Content-Type': 'application/json',
23
- },
24
- });
25
- if (requestTag.status === 404) {
26
- throw new Error(`Failed to tag bundle, make sure version ${version} exist. HTTP status ${requestTag.status} - ${requestTag.statusText}`);
27
- }
28
- if (requestTag.status !== 200) {
29
- const response = yield requestTag.json();
30
- console.log(response);
31
- throw new Error(`Failed to tag bundle. HTTP status ${requestTag.status}, ${requestTag.statusText}`);
32
- }
33
- return requestTag.json();
34
- });
35
- //# sourceMappingURL=tagAppBundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tagAppBundle.js","sourceRoot":"","sources":["../../../src/bin/utils/tagAppBundle.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAO,QAAgB,EAAE,OAAe,EAAE,EAAE;IACpE,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,QAAQ,EAAE;QACrC,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;QACjC,OAAO,EAAE;YACL,aAAa,EAAE,UAAU,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACnD,cAAc,EAAE,kBAAkB;SACrC;KACJ,CAAC,CAAC;IAEH,IAAI,UAAU,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CACX,2CAA2C,OAAO,uBAAuB,UAAU,CAAC,MAAM,MAAM,UAAU,CAAC,UAAU,EAAE,CAC1H,CAAC;IACN,CAAC;IAED,IAAI,UAAU,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC5B,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,IAAI,EAAE,CAAC;QACzC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACtB,MAAM,IAAI,KAAK,CACX,qCAAqC,UAAU,CAAC,MAAM,KAAK,UAAU,CAAC,UAAU,EAAE,CACrF,CAAC;IACN,CAAC;IAED,OAAO,UAAU,CAAC,IAAI,EAAE,CAAC;AAC7B,CAAC,CAAA,CAAC"}
@@ -1,54 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { readFileSync } from 'node:fs';
11
- /**
12
- * Function that uploads a zip bundle to the endpoint.
13
- * @param endpoint string The endpoint to upload to
14
- * @param bundle string The filename to upload
15
- * @returns Object
16
- */
17
- export const uploadAppBundle = (endpoint, bundle) => __awaiter(void 0, void 0, void 0, function* () {
18
- const state = {
19
- buffer: null,
20
- };
21
- try {
22
- state.buffer = readFileSync(bundle);
23
- }
24
- catch (_a) {
25
- throw new Error(`😞 Could not read bundle ${bundle}, does it exist?`);
26
- }
27
- const requestBundle = yield fetch(endpoint, {
28
- method: 'POST',
29
- body: state.buffer,
30
- headers: {
31
- Authorization: `Bearer ${process.env.FUSION_TOKEN}`,
32
- 'Content-Type': 'application/zip',
33
- },
34
- });
35
- if (requestBundle.status === 401 || requestBundle.status === 403) {
36
- throw new Error(`This is not allowed for this role on this app. HTTP message: ${requestBundle.statusText}`);
37
- }
38
- if (requestBundle.status === 404) {
39
- throw new Error(`This app do not exist. HTTP message: ${requestBundle.statusText}`);
40
- }
41
- if (requestBundle.status === 409) {
42
- throw new Error(`This version is already published. HTTP message: ${requestBundle.statusText}`);
43
- }
44
- if (requestBundle.status === 410) {
45
- throw new Error(`This app is deleted. HTTP message: ${requestBundle.statusText}`);
46
- }
47
- if (!requestBundle.ok) {
48
- const json = yield requestBundle.json();
49
- console.error(json);
50
- throw new Error(`Failed to publish bundle. HTTP status ${requestBundle.status}, ${requestBundle.statusText}`);
51
- }
52
- return requestBundle.json();
53
- });
54
- //# sourceMappingURL=uploadAppBundle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploadAppBundle.js","sourceRoot":"","sources":["../../../src/bin/utils/uploadAppBundle.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAO,QAAgB,EAAE,MAAc,EAAE,EAAE;IACtE,MAAM,KAAK,GAA8B;QACrC,MAAM,EAAE,IAAI;KACf,CAAC;IAEF,IAAI,CAAC;QACD,KAAK,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAAC,WAAM,CAAC;QACL,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAM,kBAAkB,CAAC,CAAC;IAC1E,CAAC;IAED,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,QAAQ,EAAE;QACxC,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,KAAK,CAAC,MAAM;QAClB,OAAO,EAAE;YACL,aAAa,EAAE,UAAU,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACnD,cAAc,EAAE,iBAAiB;SACpC;KACJ,CAAC,CAAC;IAEH,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC/D,MAAM,IAAI,KAAK,CACX,gEAAgE,aAAa,CAAC,UAAU,EAAE,CAC7F,CAAC;IACN,CAAC;IAED,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,wCAAwC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CACX,oDAAoD,aAAa,CAAC,UAAU,EAAE,CACjF,CAAC;IACN,CAAC;IAED,IAAI,aAAa,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,sCAAsC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;QACpB,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,IAAI,EAAE,CAAC;QACxC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACpB,MAAM,IAAI,KAAK,CACX,yCAAyC,aAAa,CAAC,MAAM,KAAK,aAAa,CAAC,UAAU,EAAE,CAC/F,CAAC;IACN,CAAC;IAED,OAAO,aAAa,CAAC,IAAI,EAAE,CAAC;AAChC,CAAC,CAAA,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const buildApplication: (options: {
2
- configSourceFiles?: {
3
- app?: string;
4
- manifest?: string;
5
- vite?: string;
6
- };
7
- outDir: string;
8
- library?: "react";
9
- }) => Promise<{
10
- viteConfig: import("vite").UserConfig | Record<string, any>;
11
- viteBuild: import("rollup").RollupOutput | import("rollup").RollupOutput[] | import("rollup").RollupWatcher;
12
- pkg: import("../lib/app-package.js").ResolvedAppPackage;
13
- }>;
@@ -1,4 +0,0 @@
1
- export declare const bundleApplication: (options: {
2
- outDir: string;
3
- archive: string;
4
- }) => Promise<void>;
@@ -1,11 +0,0 @@
1
- export declare const createDevServer: (options: {
2
- portal: string;
3
- configSourceFiles: {
4
- app?: string;
5
- manifest?: string;
6
- vite?: string;
7
- };
8
- devPortalPath: string;
9
- port?: number;
10
- library?: "react";
11
- }) => Promise<void>;
@@ -1,13 +0,0 @@
1
- import { ConfigExecuterEnv } from '../lib/utils/config.js';
2
- export declare const createExportConfig: (options: {
3
- command?: ConfigExecuterEnv["command"];
4
- configFile?: string;
5
- outputFile?: string;
6
- }) => Promise<{
7
- environment: Record<string, any>;
8
- endpoints?: Record<string, {
9
- url: string;
10
- scopes: string[];
11
- }> | undefined;
12
- }>;
13
- export default createExportConfig;
@@ -1,16 +0,0 @@
1
- import { ConfigExecuterEnv } from '../lib/utils/config.js';
2
- import type { AppManifest } from '@equinor/fusion-framework-module-app';
3
- export declare const normalizeVersion: (version: string) => {
4
- major: number;
5
- minor: number;
6
- patch: number;
7
- };
8
- type CreateManifestOptions = {
9
- command?: ConfigExecuterEnv['command'];
10
- configFile?: string;
11
- outputFile?: string;
12
- onlyBuild?: boolean;
13
- };
14
- export declare const createAppManifest: (options?: CreateManifestOptions) => Promise<AppManifest>;
15
- export declare const createBuildManifest: (options?: CreateManifestOptions) => Promise<import("@equinor/fusion-framework-module-app").AppBuildManifest | null | undefined>;
16
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * React Functional Component for handling current application
3
- *
4
- * this component will set the current app by provided appKey.
5
- * when the appKey changes, this component will try to initialize the referred application
6
- * and render it.
7
- */
8
- export declare const AppLoader: (props: {
9
- readonly appKey: string;
10
- }) => import("react/jsx-runtime").JSX.Element;
11
- export default AppLoader;
@@ -1,6 +0,0 @@
1
- type BookmarkSideSheetProps = {
2
- readonly isOpen: boolean;
3
- onClose(): void;
4
- };
5
- export declare const BookmarkSideSheet: ({ isOpen, onClose }: BookmarkSideSheetProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,8 +0,0 @@
1
- import { ContextSearchProps } from '@equinor/fusion-react-context-selector';
2
- /**
3
- * See fusion-react-component storybook for available attributes
4
- * @link https://equinor.github.io/fusion-react-components/?path=/docs/data-contextselector--component
5
- * @returns JSX element
6
- */
7
- export declare const ContextSelector: (props: ContextSearchProps) => JSX.Element | null;
8
- export default ContextSelector;
@@ -1 +0,0 @@
1
- export { ContextSelector } from './ContextSelector';
@@ -1,15 +0,0 @@
1
- import { IContextProvider } from '@equinor/fusion-framework-module-context';
2
- import '@equinor/fusion-framework-app';
3
- import { ContextResult, ContextResolver } from '@equinor/fusion-react-context-selector';
4
- /**
5
- * Hook for querying context and setting resolver for ContextSelector component
6
- * See React Components storybook for info about ContextSelector component and its resolver
7
- * @link https://equinor.github.io/fusion-react-components/?path=/docs/data-contextselector--component
8
- * @return Array<ContextResolver, SetContextCallback>
9
- */
10
- export declare const useContextResolver: () => {
11
- resolver: ContextResolver | null;
12
- provider: IContextProvider | null;
13
- currentContext: ContextResult;
14
- };
15
- export default useContextResolver;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const EquinorLoader: ({ children, text, }: React.PropsWithChildren<{
3
- readonly text: string;
4
- }>) => JSX.Element;
5
- export default EquinorLoader;
@@ -1,4 +0,0 @@
1
- export declare const ErrorViewer: ({ error }: {
2
- readonly error: Error;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export default ErrorViewer;
@@ -1,5 +0,0 @@
1
- type FusionLogoProps = Omit<React.SVGProps<SVGSVGElement>, 'viewBox'> & {
2
- readonly scale?: number;
3
- };
4
- export declare const FusionLogo: ({ scale, style }: FusionLogoProps) => import("react/jsx-runtime").JSX.Element;
5
- export default FusionLogo;
@@ -1,3 +0,0 @@
1
- import '@material-ui/styles';
2
- export declare const Header: () => import("react/jsx-runtime").JSX.Element;
3
- export default Header;
@@ -1,11 +0,0 @@
1
- type PersonSideSheetProps = {
2
- readonly azureId?: string;
3
- readonly isOpen: boolean;
4
- onClose(): void;
5
- };
6
- /**
7
- * Add Sidesheet with settings for the current user.
8
- * @param PersonSideSheetProps
9
- */
10
- export declare const PersonSideSheet: ({ azureId, isOpen, onClose }: PersonSideSheetProps) => import("react/jsx-runtime").JSX.Element;
11
- export default PersonSideSheet;
@@ -1,6 +0,0 @@
1
- import type { SheetContentProps } from './types';
2
- /**
3
- * JSX structure for the content of the PersonSidesheet's Features page.
4
- * @param SheetContentProps
5
- */
6
- export declare const FeatureSheetContent: ({ navigate }: SheetContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- /**
2
- * JSX structure for Feature toggler tab for app features in the PersonSidesheet's Feature page.
3
- */
4
- export declare const FeatureTogglerApp: () => import("react/jsx-runtime").JSX.Element;
5
- export default FeatureTogglerApp;
@@ -1,5 +0,0 @@
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;
@@ -1,5 +0,0 @@
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;
@@ -1,6 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- export { FeatureSheetContent } from './FeatureSheetContent';
2
- export { LandingSheetContent } from './LandingSheetContent';
@@ -1,5 +0,0 @@
1
- export type SheetContentProps = {
2
- readonly azureId?: string;
3
- readonly sheet?: string;
4
- navigate(sheet?: string): void;
5
- };
@@ -1 +0,0 @@
1
- export declare const Router: () => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { FrameworkConfigurator } from '@equinor/fusion-framework';
2
- export declare const configure: (config: FrameworkConfigurator) => Promise<void>;
3
- export default configure;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
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;
@@ -1,5 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- declare const _default: (program: Command) => void;
3
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
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>;
@@ -1,12 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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>;
@@ -1,10 +0,0 @@
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;
@@ -1,8 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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;
@@ -1,10 +0,0 @@
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>;
@@ -1,14 +0,0 @@
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';
@@ -1,5 +0,0 @@
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>;
@@ -1,10 +0,0 @@
1
- import { type ConfigExecuterEnv } from '../../lib/utils/config.js';
2
- import { type ResolvedAppPackage } from '../../lib/app-package.js';
3
- import { ApiAppConfig } from '@equinor/fusion-framework-module-app/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;
@@ -1,10 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- export declare const loadPackage: () => Promise<{
2
- root: string;
3
- packageJson: import("../../lib/app-package.js").AppPackageJson;
4
- path: string;
5
- }>;
@@ -1,10 +0,0 @@
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
- }>;
@@ -1,15 +0,0 @@
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;
@@ -1,9 +0,0 @@
1
- import { ApiAppConfig } from '@equinor/fusion-framework-module-app/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>;
@@ -1,4 +0,0 @@
1
- /**
2
- * Make sure the user has a valid azure token.
3
- */
4
- export declare const requireToken: () => void;
@@ -1,20 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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>;
@@ -1,7 +0,0 @@
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 +0,0 @@
1
- export declare const version = "9.13.1";
package/dist/version.js DELETED
@@ -1,3 +0,0 @@
1
- // Generated by genversion.
2
- export const version = '9.13.1';
3
- //# sourceMappingURL=version.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
File without changes
File without changes
File without changes
File without changes
File without changes