@equinor/echo-cli 0.14.14-beta1 → 0.14.14
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/README.md +200 -199
- package/client/assets/vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js +3 -0
- package/client/assets/vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js.LICENSE.txt +35 -0
- package/client/assets/vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js.map +1 -0
- package/client/d2d97a9feca22f12a8c8c7413d7867ac.jpg +0 -0
- package/client/env-config.js +1 -0
- package/client/index.css +60 -0
- package/client/index.html +21 -0
- package/client/main.echo.bundle.js +3 -0
- package/client/main.echo.bundle.js.LICENSE.txt +169 -0
- package/client/main.echo.bundle.js.map +1 -0
- package/client/vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76.echo.bundle.js +3 -0
- package/client/vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76.echo.bundle.js.LICENSE.txt +8667 -0
- package/client/vendors-node_modules_react-dom_client_js-node_modules_babel_polyfill_lib_index_js-node_module-cb4c76.echo.bundle.js.map +1 -0
- package/lib/__test__/utils/merg.test.d.ts +1 -0
- package/lib/__test__/utils/merg.test.js +29 -0
- package/lib/__test__/utils/merg.test.js.map +1 -0
- package/lib/config/common/copyFile.d.ts +2 -0
- package/lib/config/common/copyFile.js +10 -0
- package/lib/config/common/copyFile.js.map +1 -0
- package/lib/config/common/echoManifest.d.ts +3 -0
- package/lib/config/common/echoManifest.js +59 -0
- package/lib/config/common/echoManifest.js.map +1 -0
- package/lib/config/common/echoModuleConfig.d.ts +30 -0
- package/lib/config/common/echoModuleConfig.js +34 -0
- package/lib/config/common/echoModuleConfig.js.map +1 -0
- package/lib/config/common/echoModuleId.d.ts +5 -0
- package/lib/config/common/echoModuleId.js +15 -0
- package/lib/config/common/echoModuleId.js.map +1 -0
- package/lib/config/common/extensions.d.ts +1 -0
- package/lib/config/common/extensions.js +2 -0
- package/lib/config/common/extensions.js.map +1 -0
- package/lib/config/common/getCurrentIndexFile.d.ts +2 -0
- package/lib/config/common/getCurrentIndexFile.js +11 -0
- package/lib/config/common/getCurrentIndexFile.js.map +1 -0
- package/lib/config/common/getPackageJson.d.ts +1 -0
- package/lib/config/common/getPackageJson.js +8 -0
- package/lib/config/common/getPackageJson.js.map +1 -0
- package/lib/config/common/https.d.ts +6 -0
- package/lib/config/common/https.js +16 -0
- package/lib/config/common/https.js.map +1 -0
- package/lib/config/common/initOptions.d.ts +32 -0
- package/lib/config/common/initOptions.js +28 -0
- package/lib/config/common/initOptions.js.map +1 -0
- package/lib/config/common/ssl.d.ts +7 -0
- package/lib/config/common/ssl.js +76 -0
- package/lib/config/common/ssl.js.map +1 -0
- package/lib/config/common/updateEnv.d.ts +6 -0
- package/lib/config/common/updateEnv.js +16 -0
- package/lib/config/common/updateEnv.js.map +1 -0
- package/lib/config/rollup/echoModulePlugin.d.ts +7 -0
- package/lib/config/rollup/echoModulePlugin.js +18 -0
- package/lib/config/rollup/echoModulePlugin.js.map +1 -0
- package/lib/config/rollup/options.d.ts +4 -0
- package/lib/config/rollup/options.js +24 -0
- package/lib/config/rollup/options.js.map +1 -0
- package/lib/config/rollup/plugins.d.ts +4 -0
- package/lib/config/rollup/plugins.js +59 -0
- package/lib/config/rollup/plugins.js.map +1 -0
- package/lib/config/rollup/productionConfig.d.ts +3 -0
- package/lib/config/rollup/productionConfig.js +13 -0
- package/lib/config/rollup/productionConfig.js.map +1 -0
- package/lib/config/rollup/serverConfig.d.ts +2 -0
- package/lib/config/rollup/serverConfig.js +24 -0
- package/lib/config/rollup/serverConfig.js.map +1 -0
- package/lib/config/webpack/config.d.ts +3 -0
- package/lib/config/webpack/config.js +31 -0
- package/lib/config/webpack/config.js.map +1 -0
- package/lib/config/webpack/configBuilders/devServer.d.ts +8 -0
- package/lib/config/webpack/configBuilders/devServer.js +58 -0
- package/lib/config/webpack/configBuilders/devServer.js.map +1 -0
- package/lib/config/webpack/configBuilders/entry.d.ts +12 -0
- package/lib/config/webpack/configBuilders/entry.js +13 -0
- package/lib/config/webpack/configBuilders/entry.js.map +1 -0
- package/lib/config/webpack/configBuilders/module.d.ts +8 -0
- package/lib/config/webpack/configBuilders/module.js +174 -0
- package/lib/config/webpack/configBuilders/module.js.map +1 -0
- package/lib/config/webpack/configBuilders/optimization.d.ts +7 -0
- package/lib/config/webpack/configBuilders/optimization.js +30 -0
- package/lib/config/webpack/configBuilders/optimization.js.map +1 -0
- package/lib/config/webpack/configBuilders/output.d.ts +12 -0
- package/lib/config/webpack/configBuilders/output.js +20 -0
- package/lib/config/webpack/configBuilders/output.js.map +1 -0
- package/lib/config/webpack/configBuilders/plugins.d.ts +10 -0
- package/lib/config/webpack/configBuilders/plugins.js +31 -0
- package/lib/config/webpack/configBuilders/plugins.js.map +1 -0
- package/lib/config/webpack/echoWebpackModule.d.ts +2 -0
- package/lib/config/webpack/echoWebpackModule.js +48 -0
- package/lib/config/webpack/echoWebpackModule.js.map +1 -0
- package/lib/config/webpack/server.d.ts +3 -0
- package/lib/config/webpack/server.js +22 -0
- package/lib/config/webpack/server.js.map +1 -0
- package/lib/const/common.d.ts +3 -0
- package/lib/const/common.js +4 -0
- package/lib/const/common.js.map +1 -0
- package/lib/echo-build.d.ts +13 -0
- package/lib/echo-build.js +51 -0
- package/lib/echo-build.js.map +1 -0
- package/lib/echo-create.d.ts +16 -0
- package/lib/echo-create.js +35 -0
- package/lib/echo-create.js.map +1 -0
- package/lib/echo-manifest.d.ts +6 -0
- package/lib/echo-manifest.js +13 -0
- package/lib/echo-manifest.js.map +1 -0
- package/lib/echo-run.d.ts +13 -0
- package/lib/echo-run.js +40 -0
- package/lib/echo-run.js.map +1 -0
- package/lib/tools/buildScripts/rollupBuild.d.ts +3 -0
- package/lib/tools/buildScripts/rollupBuild.js +79 -0
- package/lib/tools/buildScripts/rollupBuild.js.map +1 -0
- package/lib/tools/buildScripts/webpackBuilds.d.ts +3 -0
- package/lib/tools/buildScripts/webpackBuilds.js +87 -0
- package/lib/tools/buildScripts/webpackBuilds.js.map +1 -0
- package/lib/tools/create/copyFile.d.ts +2 -0
- package/lib/tools/create/copyFile.js +16 -0
- package/lib/tools/create/copyFile.js.map +1 -0
- package/lib/tools/create/createProject.d.ts +2 -0
- package/lib/tools/create/createProject.js +93 -0
- package/lib/tools/create/createProject.js.map +1 -0
- package/lib/tools/create/createSetTargetDirectory.d.ts +1 -0
- package/lib/tools/create/createSetTargetDirectory.js +12 -0
- package/lib/tools/create/createSetTargetDirectory.js.map +1 -0
- package/lib/tools/create/getAppTemplateName.d.ts +1 -0
- package/lib/tools/create/getAppTemplateName.js +22 -0
- package/lib/tools/create/getAppTemplateName.js.map +1 -0
- package/lib/tools/create/gitInit.d.ts +1 -0
- package/lib/tools/create/gitInit.js +19 -0
- package/lib/tools/create/gitInit.js.map +1 -0
- package/lib/tools/create/promptOptions.d.ts +2 -0
- package/lib/tools/create/promptOptions.js +96 -0
- package/lib/tools/create/promptOptions.js.map +1 -0
- package/lib/tools/create/updatePackageConfig.d.ts +2 -0
- package/lib/tools/create/updatePackageConfig.js +28 -0
- package/lib/tools/create/updatePackageConfig.js.map +1 -0
- package/lib/tools/create/updateReadme.d.ts +2 -0
- package/lib/tools/create/updateReadme.js +23 -0
- package/lib/tools/create/updateReadme.js.map +1 -0
- package/lib/tools/run/start.d.ts +9 -0
- package/lib/tools/run/start.js +27 -0
- package/lib/tools/run/start.js.map +1 -0
- package/lib/tools/run/watch.d.ts +1 -0
- package/lib/tools/run/watch.js +8 -0
- package/lib/tools/run/watch.js.map +1 -0
- package/lib/types/createTypes.d.ts +23 -0
- package/lib/types/createTypes.js +2 -0
- package/lib/types/createTypes.js.map +1 -0
- package/lib/types/types.d.ts +4 -0
- package/lib/types/types.js +2 -0
- package/lib/types/types.js.map +1 -0
- package/lib/utils/getFile.d.ts +4 -0
- package/lib/utils/getFile.js +34 -0
- package/lib/utils/getFile.js.map +1 -0
- package/lib/utils/getFilePath.d.ts +1 -0
- package/lib/utils/getFilePath.js +22 -0
- package/lib/utils/getFilePath.js.map +1 -0
- package/lib/utils/logo.d.ts +1 -0
- package/lib/utils/logo.js +11 -0
- package/lib/utils/logo.js.map +1 -0
- package/lib/utils/merge.d.ts +1 -0
- package/lib/utils/merge.js +8 -0
- package/lib/utils/merge.js.map +1 -0
- package/lib/utils/timer.d.ts +0 -0
- package/lib/utils/timer.js +2 -0
- package/lib/utils/timer.js.map +1 -0
- package/package.json +125 -125
- package/templates/echoAppTemplate/.gitattributes +3 -3
- package/templates/echoAppTemplate/package.json +35 -35
- package/templates/echoAppTemplate/readme.md +47 -47
- package/templates/echoAppTemplate/src/app.module.css +5 -5
- package/templates/echoAppTemplate/src/app.tsx +30 -30
- package/templates/echoAppTemplate/src/index.ts +6 -6
- package/templates/echoAppTemplate/tsconfig.json +25 -25
- package/templates/echoAppTemplateTutorial/.gitattributes +3 -3
- package/templates/echoAppTemplateTutorial/package.json +36 -36
- package/templates/echoAppTemplateTutorial/readme.md +47 -47
- package/templates/echoAppTemplateTutorial/src/app.module.css +5 -5
- package/templates/echoAppTemplateTutorial/src/app.tsx +30 -30
- package/templates/echoAppTemplateTutorial/src/index.ts +6 -6
- package/templates/echoAppTemplateTutorial/tsconfig.json +25 -25
- package/templates/echoLibraryTemplate/package.json +35 -35
- package/templates/echoLibraryTemplate/public/index.html +21 -21
- package/templates/echoLibraryTemplate/public/style.css +43 -43
- package/templates/echoLibraryTemplate/readme.md +1 -1
- package/templates/echoPluginTemplate/package.json +35 -35
- package/templates/echoPluginTemplate/public/index.html +21 -21
- package/templates/echoPluginTemplate/public/style.css +43 -43
- package/templates/echoPluginTemplate/readme.md +1 -1
package/README.md
CHANGED
|
@@ -1,199 +1,200 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# EchoCli
|
|
4
|
-
|
|
5
|
-
Cli for creating and building Echo Modules.
|
|
6
|
-
|
|
7
|
-
## Echo module configuration
|
|
8
|
-
|
|
9
|
-
For information on how to configure your echo module, refer to [this wiki](https://github.com/equinor/EchoFramework/wiki/Echo-Module-Configuration).
|
|
10
|
-
|
|
11
|
-
## echo-cli versions table
|
|
12
|
-
|
|
13
|
-
Each `echo-cli` release works properly together with given versions of the essential echo packages. These versions are relevant when you run your Echo Module as a standalone app, with the command `npm start`.
|
|
14
|
-
|
|
15
|
-
An application shell (`echo-client`) will be fired up, which will contain your Echo Module. This application shell will depend on the main echo packages described below.
|
|
16
|
-
|
|
17
|
-
Find which versions to use of the echo packages for the given `echo-cli` version.
|
|
18
|
-
|
|
19
|
-
In general it's safe to differ in an echo package patch version. For example if the table states that you should use an echo package version of 0.4.0, using 0.4.3 should be also fine. Unless it's tied to another Cli version.
|
|
20
|
-
|
|
21
|
-
(older versions can be found at the bottom of this page)
|
|
22
|
-
|
|
23
|
-
<!-- prettier-ignore -->
|
|
24
|
-
| Cli | [Base](https://github.com/equinor/EchoCore/tree/main/packages/echo-base) | [Core](https://github.com/equinor/EchoCore/tree/main/packages/echo-core) | [Search](https://github.com/equinor/EchoSearch) | [Framework](https://github.com/equinor/EchoFramework/tree/main/packages/EchoFramework) | [Components](https://github.com/equinor/EchoComponents) | [EDS Core](https://github.com/equinor/design-system) | [EDS Icons](https://github.com/equinor/design-system/tree/develop/packages/eds-icons) | [EDS Utils](https://github.com/equinor/design-system/tree/develop/packages/eds-utils) | Notes
|
|
25
|
-
|--------|-------|-------|--------|-----------|--------|----------|---------|-----|------|
|
|
26
|
-
| 0.14.
|
|
27
|
-
| 0.14.13 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.4 | 0.11.10 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
28
|
-
| 0.14.12 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.4 | 0.11.10 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
29
|
-
| 0.14.11 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.3 | 0.11.10 | 0.34.0 | 0.19.3 | 0.8.5 | Security updates
|
|
30
|
-
| 0.14.10 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.3 | 0.11.10 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
31
|
-
| 0.14.8 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.3 | 0.11.9 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
32
|
-
| 0.14.7 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.3 | 0.11.8 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
33
|
-
| 0.14.6 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.1 | 0.11.8 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
34
|
-
| 0.14.5 | 0.7.0 | 0.9.9 | 0.15.5 | 0.19.2 | 0.11.8 | 0.34.0 | 0.19.3 | 0.8.5 | Security updates
|
|
35
|
-
| 0.14.4 | 0.7.0 | 0.9.9 | 0.15.5 | 0.19.2 | 0.11.8 | 0.34.0 | 0.19.3 | 0.8.3 | Removed some leftover `defaultProps` from `echo-components` and `echo-framework`
|
|
36
|
-
| 0.14.3 | 0.7.0 | 0.9.9 | 0.15.5 | 0.19.1 | 0.11.7 | 0.34.0 | 0.19.3 | 0.8.3 | Security updates for echo packages
|
|
37
|
-
| 0.14.2 | 0.7.0 | 0.9.8 | 0.15.4 | 0.19.1 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
38
|
-
| 0.14.1 | 0.7.0 | 0.9.8 | 0.15.3 | 0.19.1 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
39
|
-
| 0.14.0 | 0.7.0 | 0.9.8 | 0.15.3 | 0.19.0 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
40
|
-
| 0.13.14 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.11 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 | Fixed an issue where the echo-framework v0.18.10 crashed echo-cli / client
|
|
41
|
-
| 0.13.13 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.10 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
42
|
-
| 0.13.12 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.9 | 0.11.5 | 0.34.0 | 0.19.3 | 0.8.3 | Fixed an issue where `echo-cli` removed echo manifest files when building echo apps
|
|
43
|
-
| 0.13.11 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.9 | 0.11.5 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
44
|
-
| 0.13.10 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.8 | 0.11.5 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
45
|
-
| 0.13.8 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.7 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
46
|
-
| 0.13.6 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.4 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
47
|
-
| 0.13.5 | 0.7.0 | 0.9.7 | 0.15.3 | 0.18.2 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
48
|
-
| 0.13.4 | 0.7.0 | 0.9.5 | 0.15.3 | 0.18.1 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
49
|
-
| 0.13.3 | 0.7.0 | 0.9.5 | 0.15.2 | 0.18.1 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
50
|
-
| 0.13.2 | 0.7.0 | 0.9.5 | 0.15.1 | 0.18.1 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
51
|
-
| 0.13.0 | 0.7.0 | 0.9.4 | 0.15.0 | 0.18.0 | 0.11.0 | 0.34.0 | 0.19.3 | 0.8.3 | Now depends on echo-utils 0.4.0
|
|
52
|
-
| 0.12.2 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.3 | 0.10.2 | 0.34.0 | 0.19.3 | 0.8.3 | Fixed a bug where echo-maps failed to build / start
|
|
53
|
-
| 0.12.1 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.3 | 0.10.2 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
54
|
-
| 0.12.0 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.2 | 0.10.1 | 0.34.0 | 0.19.3 | 0.8.3 | EchoCli is an ESM module now
|
|
55
|
-
| 0.11.2 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.2 | 0.10.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
56
|
-
| 0.11.1 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.2 | 0.10.0 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
57
|
-
| 0.11.0 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.0 | 0.10.0 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
58
|
-
|
|
59
|
-
## Change log
|
|
60
|
-
|
|
61
|
-
For our change log, refer to [this file](https://github.com/equinor/EchopediaWeb/blob/dev/non-monorepo-libs/echo-cli/CHANGELOG.md)
|
|
62
|
-
|
|
63
|
-
## How to make a new release
|
|
64
|
-
To be able to publish any echo lib to npm, you need to be part of the Echo team on npmjs.com.
|
|
65
|
-
Here's how to get access:
|
|
66
|
-
- create an npmjs account with 2 factor authentication
|
|
67
|
-
- add your full name to your profile
|
|
68
|
-
- ask Victor Nystad (@vnys on slack) to add you to the Echo team on npmjs.com
|
|
69
|
-
|
|
70
|
-
Steps for making `echo-cli` release:
|
|
71
|
-
1. if needed, update the echo package versions in `echo-client`
|
|
72
|
-
- for example: you would like to have latest `echo-framework` version in `echo-cli`, then you need to version bump that package in `echo-client`
|
|
73
|
-
2. update [CHANGELOG.md](https://github.com/equinor/EchopediaWeb/blob/dev/non-monorepo-libs/echo-cli/CHANGELOG.md) with the latest updates
|
|
74
|
-
3. run `npm i --legacy-peer-deps` in the root folder
|
|
75
|
-
- `echo-client` dependencies are partially linked to the main app, `echopediaWeb`, to make sure that `echo-client` uses the same dependencies
|
|
76
|
-
4. version bump `echo-cli` to the next version
|
|
77
|
-
- patch, or minor: depending on if the given release has a braking change or not. Major version not yet released!
|
|
78
|
-
5. run `npm install` in the following folders
|
|
79
|
-
- `echo-client`
|
|
80
|
-
- `echo-cli`
|
|
81
|
-
6. execute `npm run cli-publish` in `echo-cli`, which will,
|
|
82
|
-
1. build EchoClient
|
|
83
|
-
2. build EchoCli, bundling the freshly built EchoClient into it
|
|
84
|
-
3. publish EchoCli to npm
|
|
85
|
-
|
|
86
|
-
### How to make a beta release
|
|
87
|
-
Sometimes it's useful to do a `beta` release for testing purposes.
|
|
88
|
-
Follow the above bullet point list, where the last three steps are as follows:
|
|
89
|
-
|
|
90
|
-
4. version bump the minor version number and add the the -beta suffix.
|
|
91
|
-
- Example: `0.14.4` to `0.14.5-beta-X` (where X is a positive integer)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
- `echo-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
- run `npm run
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
| 0.10.
|
|
120
|
-
| 0.10.
|
|
121
|
-
| 0.10.
|
|
122
|
-
| 0.10.
|
|
123
|
-
| 0.10.
|
|
124
|
-
| 0.10.
|
|
125
|
-
| 0.10.
|
|
126
|
-
| 0.10.
|
|
127
|
-
| 0.10.
|
|
128
|
-
| 0.
|
|
129
|
-
| 0.9.
|
|
130
|
-
| 0.9.
|
|
131
|
-
| 0.9.
|
|
132
|
-
| 0.9.
|
|
133
|
-
| 0.9.
|
|
134
|
-
| 0.
|
|
135
|
-
| 0.8.
|
|
136
|
-
| 0.8.
|
|
137
|
-
| 0.8.
|
|
138
|
-
| 0.
|
|
139
|
-
| 0.7.
|
|
140
|
-
| 0.7.
|
|
141
|
-
| 0.7.
|
|
142
|
-
| 0.7.
|
|
143
|
-
| 0.7.
|
|
144
|
-
| 0.7.
|
|
145
|
-
| 0.7.
|
|
146
|
-
| 0.7.
|
|
147
|
-
| 0.7.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
| 0.6.
|
|
158
|
-
| 0.6.
|
|
159
|
-
| 0.6.
|
|
160
|
-
| 0.6.
|
|
161
|
-
| 0.6.
|
|
162
|
-
| 0.6.
|
|
163
|
-
| 0.
|
|
164
|
-
| 0.5.
|
|
165
|
-
| 0.5.
|
|
166
|
-
| 0.5.
|
|
167
|
-
| 0.5.
|
|
168
|
-
| 0.5.
|
|
169
|
-
| 0.5.
|
|
170
|
-
| 0.5.
|
|
171
|
-
| 0.5.
|
|
172
|
-
| 0.5.
|
|
173
|
-
| 0.5.
|
|
174
|
-
| 0.5.
|
|
175
|
-
| 0.5.15 | 0.6.12 | 0.7.0 | 0.13.11 | 0.10.
|
|
176
|
-
| 0.5.15 | 0.6.12 | 0.7.0 | 0.13.11| 0.10.
|
|
177
|
-
| 0.5.
|
|
178
|
-
| 0.5.
|
|
179
|
-
| 0.5.
|
|
180
|
-
| 0.5.
|
|
181
|
-
| 0.5.
|
|
182
|
-
| 0.5.
|
|
183
|
-
| 0.5.
|
|
184
|
-
| 0.5.
|
|
185
|
-
| 0.5.
|
|
186
|
-
| 0.5.
|
|
187
|
-
| 0.5.
|
|
188
|
-
| 0.5.
|
|
189
|
-
| 0.
|
|
190
|
-
| 0.4.
|
|
191
|
-
| 0.4.
|
|
192
|
-
| 0.
|
|
193
|
-
| 0.
|
|
194
|
-
| 0.2.1 | 0.6.2 | 0.6.6 | 0.11.11| 0.7.
|
|
195
|
-
| 0.2.1 | 0.6.2 | 0.6.6 | 0.11.11| 0.7.
|
|
196
|
-
| 0.1
|
|
197
|
-
| 0.1.
|
|
198
|
-
| 0.1.
|
|
199
|
-
| 0.1.
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# EchoCli
|
|
4
|
+
|
|
5
|
+
Cli for creating and building Echo Modules.
|
|
6
|
+
|
|
7
|
+
## Echo module configuration
|
|
8
|
+
|
|
9
|
+
For information on how to configure your echo module, refer to [this wiki](https://github.com/equinor/EchoFramework/wiki/Echo-Module-Configuration).
|
|
10
|
+
|
|
11
|
+
## echo-cli versions table
|
|
12
|
+
|
|
13
|
+
Each `echo-cli` release works properly together with given versions of the essential echo packages. These versions are relevant when you run your Echo Module as a standalone app, with the command `npm start`.
|
|
14
|
+
|
|
15
|
+
An application shell (`echo-client`) will be fired up, which will contain your Echo Module. This application shell will depend on the main echo packages described below.
|
|
16
|
+
|
|
17
|
+
Find which versions to use of the echo packages for the given `echo-cli` version.
|
|
18
|
+
|
|
19
|
+
In general it's safe to differ in an echo package patch version. For example if the table states that you should use an echo package version of 0.4.0, using 0.4.3 should be also fine. Unless it's tied to another Cli version.
|
|
20
|
+
|
|
21
|
+
(older versions can be found at the bottom of this page)
|
|
22
|
+
|
|
23
|
+
<!-- prettier-ignore -->
|
|
24
|
+
| Cli | [Base](https://github.com/equinor/EchoCore/tree/main/packages/echo-base) | [Core](https://github.com/equinor/EchoCore/tree/main/packages/echo-core) | [Search](https://github.com/equinor/EchoSearch) | [Framework](https://github.com/equinor/EchoFramework/tree/main/packages/EchoFramework) | [Components](https://github.com/equinor/EchoComponents) | [EDS Core](https://github.com/equinor/design-system) | [EDS Icons](https://github.com/equinor/design-system/tree/develop/packages/eds-icons) | [EDS Utils](https://github.com/equinor/design-system/tree/develop/packages/eds-utils) | Notes
|
|
25
|
+
|--------|-------|-------|--------|-----------|--------|----------|---------|-----|------|
|
|
26
|
+
| 0.14.14 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.4 | 0.11.13 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
27
|
+
| 0.14.13 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.4 | 0.11.10 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
28
|
+
| 0.14.12 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.4 | 0.11.10 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
29
|
+
| 0.14.11 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.3 | 0.11.10 | 0.34.0 | 0.19.3 | 0.8.5 | Security updates
|
|
30
|
+
| 0.14.10 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.3 | 0.11.10 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
31
|
+
| 0.14.8 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.3 | 0.11.9 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
32
|
+
| 0.14.7 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.3 | 0.11.8 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
33
|
+
| 0.14.6 | 0.7.0 | 0.9.9 | 0.15.5 | 0.20.1 | 0.11.8 | 0.34.0 | 0.19.3 | 0.8.5 |
|
|
34
|
+
| 0.14.5 | 0.7.0 | 0.9.9 | 0.15.5 | 0.19.2 | 0.11.8 | 0.34.0 | 0.19.3 | 0.8.5 | Security updates
|
|
35
|
+
| 0.14.4 | 0.7.0 | 0.9.9 | 0.15.5 | 0.19.2 | 0.11.8 | 0.34.0 | 0.19.3 | 0.8.3 | Removed some leftover `defaultProps` from `echo-components` and `echo-framework`
|
|
36
|
+
| 0.14.3 | 0.7.0 | 0.9.9 | 0.15.5 | 0.19.1 | 0.11.7 | 0.34.0 | 0.19.3 | 0.8.3 | Security updates for echo packages
|
|
37
|
+
| 0.14.2 | 0.7.0 | 0.9.8 | 0.15.4 | 0.19.1 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
38
|
+
| 0.14.1 | 0.7.0 | 0.9.8 | 0.15.3 | 0.19.1 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
39
|
+
| 0.14.0 | 0.7.0 | 0.9.8 | 0.15.3 | 0.19.0 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
40
|
+
| 0.13.14 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.11 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 | Fixed an issue where the echo-framework v0.18.10 crashed echo-cli / client
|
|
41
|
+
| 0.13.13 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.10 | 0.11.6 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
42
|
+
| 0.13.12 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.9 | 0.11.5 | 0.34.0 | 0.19.3 | 0.8.3 | Fixed an issue where `echo-cli` removed echo manifest files when building echo apps
|
|
43
|
+
| 0.13.11 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.9 | 0.11.5 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
44
|
+
| 0.13.10 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.8 | 0.11.5 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
45
|
+
| 0.13.8 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.7 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
46
|
+
| 0.13.6 | 0.7.0 | 0.9.8 | 0.15.3 | 0.18.4 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
47
|
+
| 0.13.5 | 0.7.0 | 0.9.7 | 0.15.3 | 0.18.2 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
48
|
+
| 0.13.4 | 0.7.0 | 0.9.5 | 0.15.3 | 0.18.1 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
49
|
+
| 0.13.3 | 0.7.0 | 0.9.5 | 0.15.2 | 0.18.1 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
50
|
+
| 0.13.2 | 0.7.0 | 0.9.5 | 0.15.1 | 0.18.1 | 0.11.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
51
|
+
| 0.13.0 | 0.7.0 | 0.9.4 | 0.15.0 | 0.18.0 | 0.11.0 | 0.34.0 | 0.19.3 | 0.8.3 | Now depends on echo-utils 0.4.0
|
|
52
|
+
| 0.12.2 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.3 | 0.10.2 | 0.34.0 | 0.19.3 | 0.8.3 | Fixed a bug where echo-maps failed to build / start
|
|
53
|
+
| 0.12.1 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.3 | 0.10.2 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
54
|
+
| 0.12.0 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.2 | 0.10.1 | 0.34.0 | 0.19.3 | 0.8.3 | EchoCli is an ESM module now
|
|
55
|
+
| 0.11.2 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.2 | 0.10.1 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
56
|
+
| 0.11.1 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.2 | 0.10.0 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
57
|
+
| 0.11.0 | 0.7.0 | 0.9.4 | 0.15.0 | 0.17.0 | 0.10.0 | 0.34.0 | 0.19.3 | 0.8.3 |
|
|
58
|
+
|
|
59
|
+
## Change log
|
|
60
|
+
|
|
61
|
+
For our change log, refer to [this file](https://github.com/equinor/EchopediaWeb/blob/dev/non-monorepo-libs/echo-cli/CHANGELOG.md)
|
|
62
|
+
|
|
63
|
+
## How to make a new release
|
|
64
|
+
To be able to publish any echo lib to npm, you need to be part of the Echo team on npmjs.com.
|
|
65
|
+
Here's how to get access:
|
|
66
|
+
- create an npmjs account with 2 factor authentication
|
|
67
|
+
- add your full name to your profile
|
|
68
|
+
- ask Victor Nystad (@vnys on slack) to add you to the Echo team on npmjs.com
|
|
69
|
+
|
|
70
|
+
Steps for making `echo-cli` release:
|
|
71
|
+
1. if needed, update the echo package versions in `echo-client`
|
|
72
|
+
- for example: you would like to have latest `echo-framework` version in `echo-cli`, then you need to version bump that package in `echo-client`
|
|
73
|
+
2. update [CHANGELOG.md](https://github.com/equinor/EchopediaWeb/blob/dev/non-monorepo-libs/echo-cli/CHANGELOG.md) with the latest updates
|
|
74
|
+
3. run `npm i --legacy-peer-deps` in the root folder
|
|
75
|
+
- `echo-client` dependencies are partially linked to the main app, `echopediaWeb`, to make sure that `echo-client` uses the same dependencies
|
|
76
|
+
4. version bump `echo-cli` to the next version
|
|
77
|
+
- patch, or minor: depending on if the given release has a braking change or not. Major version not yet released!
|
|
78
|
+
5. run `npm install` in the following folders
|
|
79
|
+
- `echo-client`
|
|
80
|
+
- `echo-cli`
|
|
81
|
+
6. execute `npm run cli-publish` in `echo-cli`, which will,
|
|
82
|
+
1. build EchoClient
|
|
83
|
+
2. build EchoCli, bundling the freshly built EchoClient into it
|
|
84
|
+
3. publish EchoCli to npm
|
|
85
|
+
|
|
86
|
+
### How to make a beta release
|
|
87
|
+
Sometimes it's useful to do a `beta` release for testing purposes.
|
|
88
|
+
Follow the above bullet point list, where the last three steps are as follows:
|
|
89
|
+
|
|
90
|
+
4. version bump the minor version number and add the the -beta suffix.
|
|
91
|
+
- Example: `0.14.4` to `0.14.5-beta-X` (where X is a positive integer)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
5. run `npm install` in the following folders
|
|
95
|
+
- `echo-client`
|
|
96
|
+
- `echo-cli`
|
|
97
|
+
|
|
98
|
+
6. in the root folder of `echo-cli`
|
|
99
|
+
- run `npm run build-cli` - this will build and copy `echo-client` into `echo-cli` and also build `echo-cli`
|
|
100
|
+
- run `npm run echo-publish-beta` to publish with beta flag to npm
|
|
101
|
+
|
|
102
|
+
### History
|
|
103
|
+
|
|
104
|
+
Originally this repo was not part of EchoFramework monorepo, and was moved from it's own repo on the 30th of September, 2021:
|
|
105
|
+
|
|
106
|
+
<https://github.com/equinor/EchoCli>
|
|
107
|
+
|
|
108
|
+
If you want to check for changes before the mentioned date, check the link above.
|
|
109
|
+
|
|
110
|
+
## EchoCli legacy versions table
|
|
111
|
+
|
|
112
|
+
Older version of Echo Cli, keeping it for historical reasons and for reference.
|
|
113
|
+
|
|
114
|
+
### Pre EDS v0.34.0
|
|
115
|
+
|
|
116
|
+
<!-- prettier-ignore -->
|
|
117
|
+
| Cli | [Base](https://github.com/equinor/EchoCore/tree/main/packages/echo-base) | [Core](https://github.com/equinor/EchoCore/tree/main/packages/echo-core) | [Search](https://github.com/equinor/EchoSearch) | [Framework](https://github.com/equinor/EchoFramework/tree/main/packages/EchoFramework) | [Components](https://github.com/equinor/EchoComponents) | [EDS Core](https://github.com/equinor/design-system) | [EDS Icons](https://github.com/equinor/design-system/tree/develop/packages/eds-icons)
|
|
118
|
+
|--------|-------|-------|--------|-----------|--------|----------|---------|
|
|
119
|
+
| 0.10.10 | 0.7.0 | 0.9.4 | 0.15.0 | 0.16.7 | 0.9.9 | 0.25.0 | 0.17.0 |
|
|
120
|
+
| 0.10.9 | 0.7.0 | 0.9.4 | 0.15.0 | 0.16.7 | 0.9.8 | 0.25.0 | 0.17.0 |
|
|
121
|
+
| 0.10.8 | 0.7.0 | 0.9.4 | 0.15.0 | 0.16.7 | 0.9.6 | 0.25.0 | 0.17.0 |
|
|
122
|
+
| 0.10.7 | 0.7.0 | 0.9.3 | 0.15.0 | 0.16.6 | 0.9.6 | 0.25.0 | 0.17.0 |
|
|
123
|
+
| 0.10.6 | 0.7.0 | 0.9.3 | 0.15.0 | 0.16.5 | 0.9.5 | 0.25.0 | 0.17.0 |
|
|
124
|
+
| 0.10.5 | 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13 | 0.25.0 | 0.17.0 |
|
|
138
|
+
| 0.8.1 | 0.6.22 | 0.8.3 | 0.14.0 | 0.14.1 | 0.7.13 | 0.25.0 | 0.17.0 |
|
|
139
|
+
| 0.7.14 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.10 | 0.7.11 | 0.25.0 | 0.17.0 |
|
|
140
|
+
| 0.7.13 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.10 | 0.7.7 | 0.25.0 | 0.17.0 |
|
|
141
|
+
| 0.7.10 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.5 | 0.7.2 | 0.25.0 | 0.17.0 |
|
|
142
|
+
| 0.7.8 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.4 | 0.7.0 | 0.25.0 | 0.17.0 |
|
|
143
|
+
| 0.7.6 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.3 | 0.6.4 | 0.25.0 | 0.17.0 |
|
|
144
|
+
| 0.7.5 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.3 | 0.6.3 | 0.25.0 | 0.17.0 |
|
|
145
|
+
| 0.7.4 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.3 | 0.6.2 | 0.25.0 | 0.17.0 |
|
|
146
|
+
| 0.7.3 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.3 | 0.6.0 | 0.25.0 | 0.17.0 |
|
|
147
|
+
| 0.7.2 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.2 | 0.6.0 | 0.25.0 | 0.17.0 |
|
|
148
|
+
| 0.7.0, 0.7.1 | 0.6.22 | 0.8.0 | 0.14.0 | 0.12.0 | 0.6.0 | 0.25.0 | 0.17.0 |
|
|
149
|
+
|
|
150
|
+
### React 17
|
|
151
|
+
|
|
152
|
+
These versions are using React 17.
|
|
153
|
+
|
|
154
|
+
<!-- prettier-ignore -->
|
|
155
|
+
| Cli | [Base](https://github.com/equinor/EchoCore/tree/main/packages/echo-base) | [Core](https://github.com/equinor/EchoCore/tree/main/packages/echo-core) | [Search](https://github.com/equinor/EchoSearch) | [Framework](https://github.com/equinor/EchoFramework/tree/main/packages/EchoFramework) | [Components](https://github.com/equinor/EchoComponents) | [EDS Core](https://github.com/equinor/design-system) | [EDS Icons](https://github.com/equinor/design-system/tree/develop/packages/eds-icons) |
|
|
156
|
+
|--------|-------|-------|--------|-----------|--------|----------|---------|
|
|
157
|
+
| 0.6.7 | 0.6.22 | 0.7.5 | 0.13.13 | 0.11.8 | 0.5.31 | 0.25.0 | 0.17.0 |
|
|
158
|
+
| 0.6.6 | 0.6.22 | 0.7.5 | 0.13.13 | 0.11.7 | 0.5.31 | 0.25.0 | 0.17.0 |
|
|
159
|
+
| 0.6.5 | 0.6.22 | 0.7.5 | 0.13.13 | 0.11.6 | 0.5.31 | 0.25.0 | 0.17.0 |
|
|
160
|
+
| 0.6.4 | 0.6.22 | 0.7.5 | 0.13.13 | 0.11.5 | 0.5.26 | 0.25.0 | 0.17.0 |
|
|
161
|
+
| 0.6.3 | 0.6.22 | 0.7.5 | 0.13.13 | 0.11.3 | 0.5.26 | 0.25.0 | 0.17.0 |
|
|
162
|
+
| 0.6.2 | 0.6.22 | 0.7.5 | 0.13.13 | 0.11.2 | 0.5.24 | 0.25.0 | 0.17.0 |
|
|
163
|
+
| 0.6.1 | 0.6.22 | 0.7.5 | 0.13.13 | 0.11.1 | 0.5.24 | 0.25.0 | 0.17.0 |
|
|
164
|
+
| 0.5.32 | 0.6.22 | 0.7.5 | 0.13.11 | 0.10.26 | 0.5.19 | 0.25.0 | 0.17.0 |
|
|
165
|
+
| 0.5.31 | 0.6.22 | 0.7.3 | 0.13.11 | 0.10.25 | 0.5.19 | 0.25.0 | 0.17.0 |
|
|
166
|
+
| 0.5.30 | 0.6.22 | 0.7.3 | 0.13.11 | 0.10.24 | 0.5.19 | 0.25.0 | 0.17.0 |
|
|
167
|
+
| 0.5.29 | 0.6.22 | 0.7.3 | 0.13.11 | 0.10.23 | 0.5.19 | 0.25.0 | 0.17.0 |
|
|
168
|
+
| 0.5.28 | 0.6.22 | 0.7.3 | 0.13.11 | 0.10.22 | 0.5.19 | 0.25.0 | 0.17.0 |
|
|
169
|
+
| 0.5.27 | 0.6.22 | 0.7.3 | 0.13.11 | 0.10.20 | 0.5.17 | 0.25.0 | 0.17.0 |
|
|
170
|
+
| 0.5.26 | 0.6.22 | 0.7.3 | 0.13.11 | 0.10.19 | 0.5.14 | 0.25.0 | 0.17.0 |
|
|
171
|
+
| 0.5.25 | 0.6.21 | 0.7.2 | 0.13.11 | 0.10.18 | 0.5.14 | 0.25.0 | 0.17.0 |
|
|
172
|
+
| 0.5.24 | 0.6.21 | 0.7.2 | 0.13.11 | 0.10.16 | 0.5.13 | 0.25.0 | 0.17.0 |
|
|
173
|
+
| 0.5.23 | 0.6.21 | 0.7.0 | 0.13.11 | 0.10.14 | 0.5.12 | 0.25.0 | 0.17.0 |
|
|
174
|
+
| 0.5.20 | 0.6.21 | 0.7.0 | 0.13.11 | 0.10.12 | 0.5.12 | 0.25.0 | 0.17.0 |
|
|
175
|
+
| 0.5.15 | 0.6.12 | 0.7.0 | 0.13.11 | 0.10.12 | 0.5.5 | 0.25.0 | 0.15.0 |
|
|
176
|
+
| 0.5.15 | 0.6.12 | 0.7.0 | 0.13.11 | 0.10.11 | 0.5.5 | 0.25.0 | 0.15.0 |
|
|
177
|
+
| 0.5.15 | 0.6.12 | 0.7.0 | 0.13.11| 0.10.7 | 0.5.3 | 0.25.0 | 0.15.0 |
|
|
178
|
+
| 0.5.14 | 0.6.12 | 0.6.20 | 0.13.3| 0.10.6 | 0.5.3 | 0.25.0 | 0.15.0 |
|
|
179
|
+
| 0.5.13 | 0.6.12 | 0.6.20 | 0.13.3| 0.10.6 | 0.5.3 | 0.25.0 | 0.10.0 |
|
|
180
|
+
| 0.5.12 | 0.6.12 | 0.6.20 | 0.13.3| 0.10.3 | 0.5.2 | 0.21.0 | 0.10.0 |
|
|
181
|
+
| 0.5.11 | 0.6.12 | 0.6.20 | 0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 0.2.1 | 0.6.2 | 0.6.6 | 0.11.11| 0.7.1 | 0.3.0 | 0.17.0 | 0.10.0 |
|
|
196
|
+
| 0.2.1 | 0.6.2 | 0.6.6 | 0.11.11| 0.7.0 | 0.3.0 | 0.17.0 | 0.10.0 |
|
|
197
|
+
| 0.1.77 | 0.6.2 | 0.6.5 | 0.11.11| 0.6.3 | 0.2.5 | 0.14.3 | 0.8.0 |
|
|
198
|
+
| 0.1.76 | 0.6.1 | 0.6.1 | 0.11.10| 0.6.0 | 0.2.3 | 0.14.3 | 0.8.0 |
|
|
199
|
+
| 0.1.75 | 0.5.1 | 0.5.3 | 0.11.9 | 0.5.5 | 0.2.3 | 0.14.3 | 0.8.0 |
|
|
200
|
+
| 0.1.71 | 0.4.0 | 0.4.0 | 0.11.6 | 0.5.1 | 0.2.3 | 0.14.3 | 0.8.0 |
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_equinor_echo_client=self.webpackChunk_equinor_echo_client||[]).push([["vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs"],{"./node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs":(e,t,r)=>{r.r(t),r.d(t,{NestedAppAuthController:()=>l});var o=r("./node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs"),n=r("./node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs"),s=r("./node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs"),i=r("./node_modules/@azure/msal-browser/dist/utils/BrowserConstants.mjs"),a=r("./node_modules/@azure/msal-browser/dist/crypto/CryptoOps.mjs"),d=r("./node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs"),u=r("./node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs"),c=r("./node_modules/@azure/msal-browser/dist/event/EventHandler.mjs"),p=r("./node_modules/@azure/msal-browser/dist/event/EventType.mjs");class l{constructor(e){this.operatingContext=e;const t=this.operatingContext.getBridgeProxy();if(void 0===t)throw new Error("unexpected: bridgeProxy is undefined");this.bridgeProxy=t,this.config=e.getConfig(),this.logger=this.operatingContext.getLogger(),this.performanceClient=this.config.telemetry.client,this.browserCrypto=e.isBrowserEnvironment()?new a.CryptoOps(this.logger,this.performanceClient):o.DEFAULT_CRYPTO_IMPLEMENTATION,this.eventHandler=new c.EventHandler(this.logger,this.browserCrypto),this.nestedAppAuthAdapter=new d.NestedAppAuthAdapter(this.config.auth.clientId,this.config.auth.clientCapabilities,this.browserCrypto,this.logger)}getBrowserStorage(){throw u.NestedAppAuthError.createUnsupportedError()}getEventHandler(){return this.eventHandler}static async createController(e){const t=new l(e);return Promise.resolve(t)}initialize(){return Promise.resolve()}ensureValidRequest(e){return e?.correlationId?e:{...e,correlationId:this.browserCrypto.createNewGuid()}}async acquireTokenInteractive(e){const t=this.ensureValidRequest(e);this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_START,i.InteractionType.Popup,t);const r=this.performanceClient.startMeasurement(n.PerformanceEvents.AcquireTokenPopup,t.correlationId);r?.add({nestedAppAuthRequest:!0});try{const e=this.nestedAppAuthAdapter.toNaaTokenRequest(t),o=s.nowSeconds(),n=await this.bridgeProxy.getTokenInteractive(e),a=this.nestedAppAuthAdapter.fromNaaTokenResponse(e,n,o);return this.operatingContext.setActiveAccount(a.account),this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_SUCCESS,i.InteractionType.Popup,a),r.add({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),r.end({success:!0,requestId:a.requestId}),a}catch(e){const t=this.nestedAppAuthAdapter.fromBridgeError(e);throw this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_FAILURE,i.InteractionType.Popup,null,e),r.end({success:!1},e),t}}async acquireTokenSilentInternal(e){const t=this.ensureValidRequest(e);this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_START,i.InteractionType.Silent,t);const r=this.performanceClient.startMeasurement(n.PerformanceEvents.SsoSilent,t.correlationId);r?.increment({visibilityChangeCount:0}),r?.add({nestedAppAuthRequest:!0});try{const e=this.nestedAppAuthAdapter.toNaaTokenRequest(t),o=s.nowSeconds(),n=await this.bridgeProxy.getTokenSilent(e),a=this.nestedAppAuthAdapter.fromNaaTokenResponse(e,n,o);return this.operatingContext.setActiveAccount(a.account),this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_SUCCESS,i.InteractionType.Silent,a),r?.add({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),r?.end({success:!0,requestId:a.requestId}),a}catch(e){const t=this.nestedAppAuthAdapter.fromBridgeError(e);throw this.eventHandler.emitEvent(p.EventType.ACQUIRE_TOKEN_FAILURE,i.InteractionType.Silent,null,e),r?.end({success:!1},e),t}}async acquireTokenPopup(e){return this.acquireTokenInteractive(e)}acquireTokenRedirect(e){throw u.NestedAppAuthError.createUnsupportedError()}async acquireTokenSilent(e){return this.acquireTokenSilentInternal(e)}acquireTokenByCode(e){throw u.NestedAppAuthError.createUnsupportedError()}acquireTokenNative(e,t,r){throw u.NestedAppAuthError.createUnsupportedError()}acquireTokenByRefreshToken(e,t){throw u.NestedAppAuthError.createUnsupportedError()}addEventCallback(e){return this.eventHandler.addEventCallback(e)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){throw u.NestedAppAuthError.createUnsupportedError()}removePerformanceCallback(e){throw u.NestedAppAuthError.createUnsupportedError()}enableAccountStorageEvents(){throw u.NestedAppAuthError.createUnsupportedError()}disableAccountStorageEvents(){throw u.NestedAppAuthError.createUnsupportedError()}getAccount(e){throw u.NestedAppAuthError.createUnsupportedError()}getAccountByHomeId(e){const t=this.operatingContext.getActiveAccount();return void 0!==t&&t.homeAccountId===e?this.nestedAppAuthAdapter.fromNaaAccountInfo(t):null}getAccountByLocalId(e){const t=this.operatingContext.getActiveAccount();return void 0!==t&&t.localAccountId===e?this.nestedAppAuthAdapter.fromNaaAccountInfo(t):null}getAccountByUsername(e){const t=this.operatingContext.getActiveAccount();return void 0!==t&&t.username===e?this.nestedAppAuthAdapter.fromNaaAccountInfo(t):null}getAllAccounts(){const e=this.operatingContext.getActiveAccount();return void 0!==e?[this.nestedAppAuthAdapter.fromNaaAccountInfo(e)]:[]}handleRedirectPromise(e){return Promise.resolve(null)}loginPopup(e){return this.acquireTokenInteractive(e||i.DEFAULT_REQUEST)}loginRedirect(e){throw u.NestedAppAuthError.createUnsupportedError()}logout(e){throw u.NestedAppAuthError.createUnsupportedError()}logoutRedirect(e){throw u.NestedAppAuthError.createUnsupportedError()}logoutPopup(e){throw u.NestedAppAuthError.createUnsupportedError()}ssoSilent(e){return this.acquireTokenSilentInternal(e)}getTokenCache(){throw u.NestedAppAuthError.createUnsupportedError()}getLogger(){return this.logger}setLogger(e){this.logger=e}setActiveAccount(e){this.logger.warning("nestedAppAuth does not support setActiveAccount")}getActiveAccount(){const e=this.operatingContext.getActiveAccount();return void 0!==e?this.nestedAppAuthAdapter.fromNaaAccountInfo(e):null}initializeWrapperLibrary(e,t){}setNavigationClient(e){this.logger.warning("setNavigationClient is not supported in nested app auth")}getConfiguration(){return this.config}isBrowserEnv(){return this.operatingContext.isBrowserEnvironment()}getBrowserCrypto(){return this.browserCrypto}getPerformanceClient(){throw u.NestedAppAuthError.createUnsupportedError()}getRedirectResponse(){throw u.NestedAppAuthError.createUnsupportedError()}async clearCache(e){throw u.NestedAppAuthError.createUnsupportedError()}async hydrateCache(e,t){throw u.NestedAppAuthError.createUnsupportedError()}}},"./node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs":(e,t,r)=>{r.r(t),r.d(t,{NestedAppAuthError:()=>s,NestedAppAuthErrorMessage:()=>n});var o=r("./node_modules/@azure/msal-common/dist/error/AuthError.mjs");const n={unsupportedMethod:{code:"unsupported_method",desc:"The PKCE code challenge and verifier could not be generated."}};class s extends o.AuthError{constructor(e,t){super(e,t),Object.setPrototypeOf(this,s.prototype),this.name="NestedAppAuthError"}static createUnsupportedError(){return new s(n.unsupportedMethod.code,n.unsupportedMethod.desc)}}},"./node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs":(e,t,r)=>{function o(e){return void 0!==e.status}r.r(t),r.d(t,{isBridgeError:()=>o})},"./node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs":(e,t,r)=>{r.r(t),r.d(t,{NestedAppAuthAdapter:()=>A});var o=r("./node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs"),n=r("./node_modules/@azure/msal-common/dist/utils/Constants.mjs"),s=r("./node_modules/@azure/msal-common/dist/utils/StringUtils.mjs"),i=r("./node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs"),a=r("./node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs"),d=r("./node_modules/@azure/msal-common/dist/account/AuthToken.mjs"),u=r("./node_modules/@azure/msal-common/dist/error/ServerError.mjs"),c=r("./node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs"),p=r("./node_modules/@azure/msal-common/dist/error/AuthError.mjs"),l=r("./node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs"),h=r("./node_modules/@azure/msal-browser/dist/naa/BridgeStatusCode.mjs");class A{constructor(e,t,r,o){this.clientId=e,this.clientCapabilities=t,this.crypto=r,this.logger=o}toNaaTokenRequest(e){let t;t=void 0===e.extraQueryParameters?new Map:new Map(Object.entries(e.extraQueryParameters));const r=(new o.RequestParameterBuilder).addClientCapabilitiesToClaims(e.claims,this.clientCapabilities),i=e.scopes||n.OIDC_DEFAULT_SCOPES;return{platformBrokerId:e.account?.homeAccountId,clientId:this.clientId,authority:e.authority,scope:i.join(" "),correlationId:void 0!==e.correlationId?e.correlationId:this.crypto.createNewGuid(),claims:s.StringUtils.isEmptyObj(r)?void 0:r,state:e.state,authenticationScheme:e.authenticationScheme||n.AuthenticationScheme.BEARER,extraParameters:t}}fromNaaTokenResponse(e,t,r){if(!t.token.id_token||!t.token.access_token)throw(0,i.createClientAuthError)(a.nullOrEmptyToken);const o=new Date(1e3*(r+(t.token.expires_in||0))),s=d.extractTokenClaims(t.token.id_token,this.crypto.base64Decode),u=this.fromNaaAccountInfo(t.account,s),c=t.token.scope||e.scope;return{authority:t.token.authority||u.environment,uniqueId:u.localAccountId,tenantId:u.tenantId,scopes:c.split(" "),account:u,idToken:t.token.id_token,idTokenClaims:s,accessToken:t.token.access_token,fromCache:!0,expiresOn:o,tokenType:e.authenticationScheme||n.AuthenticationScheme.BEARER,correlationId:e.correlationId,extExpiresOn:o,state:e.state}}fromNaaAccountInfo(e,t){const r=t||e.idTokenClaims,o=e.localAccountId||r?.oid||r?.sub||"",n=e.tenantId||r?.tid||"",s=e.homeAccountId||`${o}.${n}`,i=e.username||r?.preferred_username||"",a=e.name||r?.name;return{homeAccountId:s,environment:e.environment,tenantId:n,username:i,localAccountId:o,name:a,idToken:e.idToken,idTokenClaims:r}}fromBridgeError(e){if(!(0,l.isBridgeError)(e))return new p.AuthError("unknown_error","An unknown error occurred");switch(e.status){case h.BridgeStatusCode.UserCancel:return new i.ClientAuthError(a.userCanceled);case h.BridgeStatusCode.NoNetwork:return new i.ClientAuthError(a.noNetworkConnectivity);case h.BridgeStatusCode.AccountUnavailable:return new i.ClientAuthError(a.noAccountFound);case h.BridgeStatusCode.Disabled:return new i.ClientAuthError(a.nestedAppAuthBridgeDisabled);case h.BridgeStatusCode.NestedAppAuthUnavailable:return new i.ClientAuthError(e.code||a.nestedAppAuthBridgeDisabled,e.description);case h.BridgeStatusCode.TransientError:case h.BridgeStatusCode.PersistentError:return new u.ServerError(e.code,e.description);case h.BridgeStatusCode.UserInteractionRequired:return new c.InteractionRequiredAuthError(e.code,e.description);default:return new p.AuthError(e.code,e.description)}}}}}]);
|
|
3
|
+
//# sourceMappingURL=vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*! ../BridgeError.mjs */
|
|
2
|
+
|
|
3
|
+
/*! ../BridgeStatusCode.mjs */
|
|
4
|
+
|
|
5
|
+
/*! ../crypto/CryptoOps.mjs */
|
|
6
|
+
|
|
7
|
+
/*! ../error/NestedAppAuthError.mjs */
|
|
8
|
+
|
|
9
|
+
/*! ../event/EventHandler.mjs */
|
|
10
|
+
|
|
11
|
+
/*! ../event/EventType.mjs */
|
|
12
|
+
|
|
13
|
+
/*! ../naa/mapping/NestedAppAuthAdapter.mjs */
|
|
14
|
+
|
|
15
|
+
/*! ../utils/BrowserConstants.mjs */
|
|
16
|
+
|
|
17
|
+
/*! @azure/msal-browser v3.14.0 2024-05-07 */
|
|
18
|
+
|
|
19
|
+
/*! @azure/msal-common */
|
|
20
|
+
|
|
21
|
+
/*!*******************************************************************!*\
|
|
22
|
+
!*** ./node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs ***!
|
|
23
|
+
\*******************************************************************/
|
|
24
|
+
|
|
25
|
+
/*!****************************************************************************!*\
|
|
26
|
+
!*** ./node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs ***!
|
|
27
|
+
\****************************************************************************/
|
|
28
|
+
|
|
29
|
+
/*!************************************************************************************!*\
|
|
30
|
+
!*** ./node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs ***!
|
|
31
|
+
\************************************************************************************/
|
|
32
|
+
|
|
33
|
+
/*!***************************************************************************************!*\
|
|
34
|
+
!*** ./node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs ***!
|
|
35
|
+
\***************************************************************************************/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets/vendors-node_modules_azure_msal-browser_dist_controllers_NestedAppAuthController_mjs.3ab4a9273d5d4cae75fe.chunk.js","mappings":";g+BAcA,MAAMA,EACF,WAAAC,CAAYC,G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AAYT,cACtDxE,EAAiBiF,EAAYjF,gBAC/BkF,GAAwBC,KACxBD,GAAwBE,KACxB,GACER,EAAWK,EAAYL,UAAYM,GAAwBG,KAAO,GAClE3F,EAAgBuF,EAAYvF,eAAiB,GAAGM,KAAkB4E,IAClEzE,EAAW8E,EAAY9E,UACzB+E,GAAwBI,oBACxB,GACE7C,EAAOwC,EAAYxC,MAAQyC,GAAwBzC,KAWzD,MAVgB,CACZ/C,gBACAgF,YAAaO,EAAYP,YACzBE,WACAzE,WACAH,iBACAyC,OACAnF,QAAS2H,EAAY3H,QACrBkH,cAAeU,EAGvB,CAMA,eAAAtH,CAAgBD,GACZ,KAAI,IAAA+E,eAAc/E,GAuBd,OAAO,IAAI,EAAAuE,UAAU,gBAAiB,6BAtBtC,OAAQvE,EAAMgF,QACV,KAAK,EAAA4C,iBAAiBC,WAClB,OAAO,IAAI,EAAAC,gBAAgB,gBAC/B,KAAK,EAAAF,iBAAiBG,UAClB,OAAO,IAAI,EAAAD,gBAAgB,yBAC/B,KAAK,EAAAF,iBAAiBI,mBAClB,OAAO,IAAI,EAAAF,gBAAgB,kBAC/B,KAAK,EAAAF,iBAAiBK,SAClB,OAAO,IAAI,EAAAH,gBAAgB,+BAC/B,KAAK,EAAAF,iBAAiBM,yBAClB,OAAO,IAAI,EAAAJ,gBAAgB9H,EAAMqE,MAC7B,8BAAkDrE,EAAMmI,aAChE,KAAK,EAAAP,iBAAiBQ,eACtB,KAAK,EAAAR,iBAAiBS,gBAClB,OAAO,IAAI,EAAAC,YAAYtI,EAAMqE,KAAMrE,EAAMmI,aAC7C,KAAK,EAAAP,iBAAiBW,wBAClB,OAAO,IAAI,EAAAC,6BAA6BxI,EAAMqE,KAAMrE,EAAMmI,aAC9D,QACI,OAAO,IAAI,EAAA5D,UAAUvE,EAAMqE,KAAMrE,EAAMmI,aAMvD","sources":["webpack://@equinor/echo-client/./node_modules/@azure/msal-browser/dist/controllers/NestedAppAuthController.mjs","webpack://@equinor/echo-client/./node_modules/@azure/msal-browser/dist/error/NestedAppAuthError.mjs","webpack://@equinor/echo-client/./node_modules/@azure/msal-browser/dist/naa/BridgeError.mjs","webpack://@equinor/echo-client/./node_modules/@azure/msal-browser/dist/naa/mapping/NestedAppAuthAdapter.mjs"],"sourcesContent":["/*! @azure/msal-browser v3.14.0 2024-05-07 */\n'use strict';\nimport { DEFAULT_CRYPTO_IMPLEMENTATION, PerformanceEvents, TimeUtils } from '@azure/msal-common';\nimport { InteractionType, DEFAULT_REQUEST } from '../utils/BrowserConstants.mjs';\nimport { CryptoOps } from '../crypto/CryptoOps.mjs';\nimport { NestedAppAuthAdapter } from '../naa/mapping/NestedAppAuthAdapter.mjs';\nimport { NestedAppAuthError } from '../error/NestedAppAuthError.mjs';\nimport { EventHandler } from '../event/EventHandler.mjs';\nimport { EventType } from '../event/EventType.mjs';\n\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\nclass NestedAppAuthController {\n constructor(operatingContext) {\n this.operatingContext = operatingContext;\n const proxy = this.operatingContext.getBridgeProxy();\n if (proxy !== undefined) {\n this.bridgeProxy = proxy;\n }\n else {\n throw new Error(\"unexpected: bridgeProxy is undefined\");\n }\n // Set the configuration.\n this.config = operatingContext.getConfig();\n // Initialize logger\n this.logger = this.operatingContext.getLogger();\n // Initialize performance client\n this.performanceClient = this.config.telemetry.client;\n // Initialize the crypto class.\n this.browserCrypto = operatingContext.isBrowserEnvironment()\n ? new CryptoOps(this.logger, this.performanceClient)\n : DEFAULT_CRYPTO_IMPLEMENTATION;\n this.eventHandler = new EventHandler(this.logger, this.browserCrypto);\n this.nestedAppAuthAdapter = new NestedAppAuthAdapter(this.config.auth.clientId, this.config.auth.clientCapabilities, this.browserCrypto, this.logger);\n }\n getBrowserStorage() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n getEventHandler() {\n return this.eventHandler;\n }\n static async createController(operatingContext) {\n const controller = new NestedAppAuthController(operatingContext);\n return Promise.resolve(controller);\n }\n initialize() {\n // do nothing not required by this controller\n return Promise.resolve();\n }\n ensureValidRequest(request) {\n if (request?.correlationId) {\n return request;\n }\n return {\n ...request,\n correlationId: this.browserCrypto.createNewGuid(),\n };\n }\n async acquireTokenInteractive(request) {\n const validRequest = this.ensureValidRequest(request);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Popup, validRequest);\n const atPopupMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenPopup, validRequest.correlationId);\n atPopupMeasurement?.add({ nestedAppAuthRequest: true });\n try {\n const naaRequest = this.nestedAppAuthAdapter.toNaaTokenRequest(validRequest);\n const reqTimestamp = TimeUtils.nowSeconds();\n const response = await this.bridgeProxy.getTokenInteractive(naaRequest);\n const result = this.nestedAppAuthAdapter.fromNaaTokenResponse(naaRequest, response, reqTimestamp);\n this.operatingContext.setActiveAccount(result.account);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Popup, result);\n atPopupMeasurement.add({\n accessTokenSize: result.accessToken.length,\n idTokenSize: result.idToken.length,\n });\n atPopupMeasurement.end({\n success: true,\n requestId: result.requestId,\n });\n return result;\n }\n catch (e) {\n const error = this.nestedAppAuthAdapter.fromBridgeError(e);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Popup, null, e);\n atPopupMeasurement.end({\n success: false,\n }, e);\n throw error;\n }\n }\n async acquireTokenSilentInternal(request) {\n const validRequest = this.ensureValidRequest(request);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_START, InteractionType.Silent, validRequest);\n const ssoSilentMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SsoSilent, validRequest.correlationId);\n ssoSilentMeasurement?.increment({\n visibilityChangeCount: 0,\n });\n ssoSilentMeasurement?.add({\n nestedAppAuthRequest: true,\n });\n try {\n const naaRequest = this.nestedAppAuthAdapter.toNaaTokenRequest(validRequest);\n const reqTimestamp = TimeUtils.nowSeconds();\n const response = await this.bridgeProxy.getTokenSilent(naaRequest);\n const result = this.nestedAppAuthAdapter.fromNaaTokenResponse(naaRequest, response, reqTimestamp);\n this.operatingContext.setActiveAccount(result.account);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, InteractionType.Silent, result);\n ssoSilentMeasurement?.add({\n accessTokenSize: result.accessToken.length,\n idTokenSize: result.idToken.length,\n });\n ssoSilentMeasurement?.end({\n success: true,\n requestId: result.requestId,\n });\n return result;\n }\n catch (e) {\n const error = this.nestedAppAuthAdapter.fromBridgeError(e);\n this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, InteractionType.Silent, null, e);\n ssoSilentMeasurement?.end({\n success: false,\n }, e);\n throw error;\n }\n }\n async acquireTokenPopup(request) {\n return this.acquireTokenInteractive(request);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n acquireTokenRedirect(request) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n async acquireTokenSilent(silentRequest) {\n return this.acquireTokenSilentInternal(silentRequest);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n acquireTokenByCode(request // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n acquireTokenNative(request, apiId, // eslint-disable-line @typescript-eslint/no-unused-vars\n accountId // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n acquireTokenByRefreshToken(commonRequest, // eslint-disable-line @typescript-eslint/no-unused-vars\n silentRequest // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n /**\n * Adds event callbacks to array\n * @param callback\n */\n addEventCallback(callback) {\n return this.eventHandler.addEventCallback(callback);\n }\n /**\n * Removes callback with provided id from callback array\n * @param callbackId\n */\n removeEventCallback(callbackId) {\n this.eventHandler.removeEventCallback(callbackId);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n addPerformanceCallback(callback) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n removePerformanceCallback(callbackId) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n enableAccountStorageEvents() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n disableAccountStorageEvents() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getAccount(accountFilter) {\n throw NestedAppAuthError.createUnsupportedError();\n // TODO: Look at standard implementation\n }\n getAccountByHomeId(homeAccountId) {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n if (currentAccount.homeAccountId === homeAccountId) {\n return this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount);\n }\n else {\n return null;\n }\n }\n else {\n return null;\n }\n }\n getAccountByLocalId(localId) {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n if (currentAccount.localAccountId === localId) {\n return this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount);\n }\n else {\n return null;\n }\n }\n else {\n return null;\n }\n }\n getAccountByUsername(userName) {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n if (currentAccount.username === userName) {\n return this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount);\n }\n else {\n return null;\n }\n }\n else {\n return null;\n }\n }\n getAllAccounts() {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n return [\n this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount),\n ];\n }\n else {\n return [];\n }\n }\n handleRedirectPromise(hash // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n return Promise.resolve(null);\n }\n loginPopup(request // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n return this.acquireTokenInteractive(request || DEFAULT_REQUEST);\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n loginRedirect(request) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n logout(logoutRequest) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n logoutRedirect(logoutRequest // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n logoutPopup(logoutRequest // eslint-disable-line @typescript-eslint/no-unused-vars\n ) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n ssoSilent(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n request) {\n return this.acquireTokenSilentInternal(request);\n }\n getTokenCache() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n /**\n * Returns the logger instance\n */\n getLogger() {\n return this.logger;\n }\n /**\n * Replaces the default logger set in configurations with new Logger with new configurations\n * @param logger Logger instance\n */\n setLogger(logger) {\n this.logger = logger;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n setActiveAccount(account) {\n /*\n * StandardController uses this to allow the developer to set the active account\n * in the nested app auth scenario the active account is controlled by the app hosting the nested app\n */\n this.logger.warning(\"nestedAppAuth does not support setActiveAccount\");\n return;\n }\n getActiveAccount() {\n const currentAccount = this.operatingContext.getActiveAccount();\n if (currentAccount !== undefined) {\n return this.nestedAppAuthAdapter.fromNaaAccountInfo(currentAccount);\n }\n else {\n return null;\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n initializeWrapperLibrary(sku, version) {\n /*\n * Standard controller uses this to set the sku and version of the wrapper library in the storage\n * we do nothing here\n */\n return;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n setNavigationClient(navigationClient) {\n this.logger.warning(\"setNavigationClient is not supported in nested app auth\");\n }\n getConfiguration() {\n return this.config;\n }\n isBrowserEnv() {\n return this.operatingContext.isBrowserEnvironment();\n }\n getBrowserCrypto() {\n return this.browserCrypto;\n }\n getPerformanceClient() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n getRedirectResponse() {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async clearCache(logoutRequest) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async hydrateCache(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n result, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n request) {\n throw NestedAppAuthError.createUnsupportedError();\n }\n}\n\nexport { NestedAppAuthController };\n//# sourceMappingURL=NestedAppAuthController.mjs.map\n","/*! @azure/msal-browser v3.14.0 2024-05-07 */\n'use strict';\nimport { AuthError } from '@azure/msal-common';\n\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\n/**\n * NestedAppAuthErrorMessage class containing string constants used by error codes and messages.\n */\nconst NestedAppAuthErrorMessage = {\n unsupportedMethod: {\n code: \"unsupported_method\",\n desc: \"The PKCE code challenge and verifier could not be generated.\",\n },\n};\nclass NestedAppAuthError extends AuthError {\n constructor(errorCode, errorMessage) {\n super(errorCode, errorMessage);\n Object.setPrototypeOf(this, NestedAppAuthError.prototype);\n this.name = \"NestedAppAuthError\";\n }\n static createUnsupportedError() {\n return new NestedAppAuthError(NestedAppAuthErrorMessage.unsupportedMethod.code, NestedAppAuthErrorMessage.unsupportedMethod.desc);\n }\n}\n\nexport { NestedAppAuthError, NestedAppAuthErrorMessage };\n//# sourceMappingURL=NestedAppAuthError.mjs.map\n","/*! @azure/msal-browser v3.14.0 2024-05-07 */\n'use strict';\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\nfunction isBridgeError(error) {\n return error.status !== undefined;\n}\n\nexport { isBridgeError };\n//# sourceMappingURL=BridgeError.mjs.map\n","/*! @azure/msal-browser v3.14.0 2024-05-07 */\n'use strict';\nimport { RequestParameterBuilder, StringUtils, AuthenticationScheme, createClientAuthError, ClientAuthErrorCodes, AuthToken, AuthError, InteractionRequiredAuthError, ServerError, ClientAuthError, OIDC_DEFAULT_SCOPES } from '@azure/msal-common';\nimport { isBridgeError } from '../BridgeError.mjs';\nimport { BridgeStatusCode } from '../BridgeStatusCode.mjs';\n\n/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License.\n */\nclass NestedAppAuthAdapter {\n constructor(clientId, clientCapabilities, crypto, logger) {\n this.clientId = clientId;\n this.clientCapabilities = clientCapabilities;\n this.crypto = crypto;\n this.logger = logger;\n }\n toNaaTokenRequest(request) {\n let extraParams;\n if (request.extraQueryParameters === undefined) {\n extraParams = new Map();\n }\n else {\n extraParams = new Map(Object.entries(request.extraQueryParameters));\n }\n const requestBuilder = new RequestParameterBuilder();\n const claims = requestBuilder.addClientCapabilitiesToClaims(request.claims, this.clientCapabilities);\n const scopes = request.scopes || OIDC_DEFAULT_SCOPES;\n const tokenRequest = {\n platformBrokerId: request.account?.homeAccountId,\n clientId: this.clientId,\n authority: request.authority,\n scope: scopes.join(\" \"),\n correlationId: request.correlationId !== undefined\n ? request.correlationId\n : this.crypto.createNewGuid(),\n claims: !StringUtils.isEmptyObj(claims) ? claims : undefined,\n state: request.state,\n authenticationScheme: request.authenticationScheme || AuthenticationScheme.BEARER,\n extraParameters: extraParams,\n };\n return tokenRequest;\n }\n fromNaaTokenResponse(request, response, reqTimestamp) {\n if (!response.token.id_token || !response.token.access_token) {\n throw createClientAuthError(ClientAuthErrorCodes.nullOrEmptyToken);\n }\n const expiresOn = new Date((reqTimestamp + (response.token.expires_in || 0)) * 1000);\n const idTokenClaims = AuthToken.extractTokenClaims(response.token.id_token, this.crypto.base64Decode);\n const account = this.fromNaaAccountInfo(response.account, idTokenClaims);\n const scopes = response.token.scope || request.scope;\n const authenticationResult = {\n authority: response.token.authority || account.environment,\n uniqueId: account.localAccountId,\n tenantId: account.tenantId,\n scopes: scopes.split(\" \"),\n account,\n idToken: response.token.id_token,\n idTokenClaims,\n accessToken: response.token.access_token,\n fromCache: true,\n expiresOn: expiresOn,\n tokenType: request.authenticationScheme || AuthenticationScheme.BEARER,\n correlationId: request.correlationId,\n extExpiresOn: expiresOn,\n state: request.state,\n };\n return authenticationResult;\n }\n /*\n * export type AccountInfo = {\n * homeAccountId: string;\n * environment: string;\n * tenantId: string;\n * username: string;\n * localAccountId: string;\n * name?: string;\n * idToken?: string;\n * idTokenClaims?: TokenClaims & {\n * [key: string]:\n * | string\n * | number\n * | string[]\n * | object\n * | undefined\n * | unknown;\n * };\n * nativeAccountId?: string;\n * authorityType?: string;\n * };\n */\n fromNaaAccountInfo(fromAccount, idTokenClaims) {\n const effectiveIdTokenClaims = idTokenClaims || fromAccount.idTokenClaims;\n const localAccountId = fromAccount.localAccountId ||\n effectiveIdTokenClaims?.oid ||\n effectiveIdTokenClaims?.sub ||\n \"\";\n const tenantId = fromAccount.tenantId || effectiveIdTokenClaims?.tid || \"\";\n const homeAccountId = fromAccount.homeAccountId || `${localAccountId}.${tenantId}`;\n const username = fromAccount.username ||\n effectiveIdTokenClaims?.preferred_username ||\n \"\";\n const name = fromAccount.name || effectiveIdTokenClaims?.name;\n const account = {\n homeAccountId,\n environment: fromAccount.environment,\n tenantId,\n username,\n localAccountId,\n name,\n idToken: fromAccount.idToken,\n idTokenClaims: effectiveIdTokenClaims,\n };\n return account;\n }\n /**\n *\n * @param error BridgeError\n * @returns AuthError, ClientAuthError, ClientConfigurationError, ServerError, InteractionRequiredError\n */\n fromBridgeError(error) {\n if (isBridgeError(error)) {\n switch (error.status) {\n case BridgeStatusCode.UserCancel:\n return new ClientAuthError(ClientAuthErrorCodes.userCanceled);\n case BridgeStatusCode.NoNetwork:\n return new ClientAuthError(ClientAuthErrorCodes.noNetworkConnectivity);\n case BridgeStatusCode.AccountUnavailable:\n return new ClientAuthError(ClientAuthErrorCodes.noAccountFound);\n case BridgeStatusCode.Disabled:\n return new ClientAuthError(ClientAuthErrorCodes.nestedAppAuthBridgeDisabled);\n case BridgeStatusCode.NestedAppAuthUnavailable:\n return new ClientAuthError(error.code ||\n ClientAuthErrorCodes.nestedAppAuthBridgeDisabled, error.description);\n case BridgeStatusCode.TransientError:\n case BridgeStatusCode.PersistentError:\n return new ServerError(error.code, error.description);\n case BridgeStatusCode.UserInteractionRequired:\n return new InteractionRequiredAuthError(error.code, error.description);\n default:\n return new AuthError(error.code, error.description);\n }\n }\n else {\n return new AuthError(\"unknown_error\", \"An unknown error occurred\");\n }\n }\n}\n\nexport { NestedAppAuthAdapter };\n//# sourceMappingURL=NestedAppAuthAdapter.mjs.map\n"],"names":["NestedAppAuthController","constructor","operatingContext","this","proxy","getBridgeProxy","undefined","Error","bridgeProxy","config","getConfig","logger","getLogger","performanceClient","telemetry","client","browserCrypto","isBrowserEnvironment","CryptoOps","DEFAULT_CRYPTO_IMPLEMENTATION","eventHandler","EventHandler","nestedAppAuthAdapter","NestedAppAuthAdapter","auth","clientId","clientCapabilities","getBrowserStorage","NestedAppAuthError","createUnsupportedError","getEventHandler","createController","controller","Promise","resolve","initialize","ensureValidRequest","request","correlationId","createNewGuid","acquireTokenInteractive","validRequest","emitEvent","EventType","ACQUIRE_TOKEN_START","InteractionType","Popup","atPopupMeasurement","startMeasurement","PerformanceEvents","AcquireTokenPopup","add","nestedAppAuthRequest","naaRequest","toNaaTokenRequest","reqTimestamp","response","getTokenInteractive","result","fromNaaTokenResponse","setActiveAccount","account","ACQUIRE_TOKEN_SUCCESS","accessTokenSize","accessToken","length","idTokenSize","idToken","end","success","requestId","e","error","fromBridgeError","ACQUIRE_TOKEN_FAILURE","acquireTokenSilentInternal","Silent","ssoSilentMeasurement","SsoSilent","increment","visibilityChangeCount","getTokenSilent","acquireTokenPopup","acquireTokenRedirect","acquireTokenSilent","silentRequest","acquireTokenByCode","acquireTokenNative","apiId","accountId","acquireTokenByRefreshToken","commonRequest","addEventCallback","callback","removeEventCallback","callbackId","addPerformanceCallback","removePerformanceCallback","enableAccountStorageEvents","disableAccountStorageEvents","getAccount","accountFilter","getAccountByHomeId","homeAccountId","currentAccount","getActiveAccount","fromNaaAccountInfo","getAccountByLocalId","localId","localAccountId","getAccountByUsername","userName","username","getAllAccounts","handleRedirectPromise","hash","loginPopup","DEFAULT_REQUEST","loginRedirect","logout","logoutRequest","logoutRedirect","logoutPopup","ssoSilent","getTokenCache","setLogger","warning","initializeWrapperLibrary","sku","version","setNavigationClient","navigationClient","getConfiguration","isBrowserEnv","getBrowserCrypto","getPerformanceClient","getRedirectResponse","clearCache","hydrateCache","NestedAppAuthErrorMessage","unsupportedMethod","code","desc","AuthError","errorCode","errorMessage","super","Object","setPrototypeOf","prototype","name","isBridgeError","status","crypto","extraParams","extraQueryParameters","Map","entries","claims","RequestParameterBuilder","addClientCapabilitiesToClaims","scopes","OIDC_DEFAULT_SCOPES","platformBrokerId","authority","scope","join","StringUtils","isEmptyObj","state","authenticationScheme","AuthenticationScheme","BEARER","extraParameters","token","id_token","access_token","createClientAuthError","expiresOn","Date","expires_in","idTokenClaims","base64Decode","environment","uniqueId","tenantId","split","fromCache","tokenType","extExpiresOn","fromAccount","effectiveIdTokenClaims","oid","sub","tid","preferred_username","BridgeStatusCode","UserCancel","ClientAuthError","NoNetwork","AccountUnavailable","Disabled","NestedAppAuthUnavailable","description","TransientError","PersistentError","ServerError","UserInteractionRequired","InteractionRequiredAuthError"],"sourceRoot":""}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window._env_={HTTPS:"true",GENERATE_SOURCEMAP:"true",INLINE_RUNTIME_CHUNK:"false",WEBSITE_HOSTNAME:"localhost:3000;",REACT_APP_DEFAULT_CACHE_LOCATION:"localstorage",REACT_APP_API_URL:"https://dt-echopedia-api-dev.azurewebsites.net",REACT_APP_WEB_URL:"https://dt-echopedia-web-dev.azurewebsites.net",REACT_APP_WEB_PROD_URL:"https://echo.equinor.com",REACT_APP_AZURE_AD_TENNANT:"StatoilSRM.onmicrosoft.com",REACT_APP_AZURE_AD_TENNANT_ID:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",REACT_APP_AZURE_AD_CLIENT_ID:"751d2504-0b66-4b78-9807-4b60525a14c6",REACT_APP_API_CLIENT_ID:"aef35d97-53d4-4fd0-adaf-c5a514b38436",REACT_APP_APPINSIGHTS_INSTRUMENTATIONKEY:"e5299075-a00d-4012-96f9-42861e8d8a9e",REACT_APP_APPINSIGHTS_CONNECTION_STRING:"InstrumentationKey=e5299075-a00d-4012-96f9-42861e8d8a9e;IngestionEndpoint=https://northeurope-3.in.applicationinsights.azure.com/;LiveEndpoint=https://northeurope.livediagnostics.monitor.azure.com/;ApplicationId=a9b64222-d4a9-42e6-a615-7428fe1a26af",REACT_APP_AZURE_BUILD_NUMBER:"0.8.dev.9",REACT_APP_LOGGER_ACTIVE:"false"};
|