@equinor/fusion-framework-cli 8.0.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,69 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1173](https://github.com/equinor/fusion-framework/pull/1173) [`571046fe`](https://github.com/equinor/fusion-framework/commit/571046fe1305c02eda0c2da46d33796f1cbcf5f1) Thanks [@odinr](https://github.com/odinr)! - Remove emotion decencies from CLI
8
+
9
+ align CLI with EDS and use style components instead of emotion 🥲
10
+ prevent conflict of react types dependent on both emotion and eds
11
+
12
+ - remove @emotion/\*
13
+ - convert emotion to styled-components
14
+ - fix styling of cli
15
+ - convert main placeholder to grid
16
+ - remove unnecessary styling from header
17
+ - set dynamic width of context selector (min 25rem)
18
+
19
+ ### Patch Changes
20
+
21
+ - [#1184](https://github.com/equinor/fusion-framework/pull/1184) [`59982e55`](https://github.com/equinor/fusion-framework/commit/59982e55e24a49f06d37334f1cefcc0048894fe7) Thanks [@odinr](https://github.com/odinr)! - fixed bin resolve for pnpm
22
+
23
+ - Updated dependencies []:
24
+ - @equinor/fusion-framework-app@7.1.2
25
+
26
+ ## 8.0.1
27
+
28
+ ### Patch Changes
29
+
30
+ - [#1109](https://github.com/equinor/fusion-framework/pull/1109) [`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862) Thanks [@odinr](https://github.com/odinr)! - Change packaged manager from yarn to pnpm
31
+
32
+ conflicts of `@types/react` made random outcomes when using `yarn`
33
+
34
+ this change should not affect consumer of the packages, but might conflict dependent on local package manager.
35
+
36
+ - [#1130](https://github.com/equinor/fusion-framework/pull/1130) [`542356ee`](https://github.com/equinor/fusion-framework/commit/542356eecfcc1bc8b896e71377308a1de29f4ab9) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @emotion/styled from 11.10.6 to 11.11.0
37
+
38
+ - [#1129](https://github.com/equinor/fusion-framework/pull/1129) [`f672d0bb`](https://github.com/equinor/fusion-framework/commit/f672d0bba71a7ea6cd08135778fda67ff38f3ac3) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @equinor/eds-core-react from 0.30.0 to 0.32.4
39
+
40
+ - [#1125](https://github.com/equinor/fusion-framework/pull/1125) [`2dccccd1`](https://github.com/equinor/fusion-framework/commit/2dccccd124fbe3cdde2132c29c27d3da9fc6f1f5) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump react and @types/react to react 18.2
41
+
42
+ only dev deps updated should not affect any consumers
43
+
44
+ see [react changelog](https://github.com/facebook/react/releases) for details
45
+
46
+ - [#1122](https://github.com/equinor/fusion-framework/pull/1122) [`1a055b21`](https://github.com/equinor/fusion-framework/commit/1a055b21e07f84bc5d35cc891586aa9aa0bdf661) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update styled-components to [^6.0.7](https://github.com/styled-components/styled-components/releases/tag/v6.0.7)
47
+
48
+ - upgraded dev deps of `@equinor/fusion-framework-react-components-bookmark` to react 18, see style-components [changelog](https://github.com/styled-components/styled-components/releases/tag/v6.0.0)
49
+ - removed `@types/style-components` from `@equinor/fusion-framework-react-components-bookmark`
50
+
51
+ see style-components [migration guide](https://styled-components.com/docs/faqs#what-do-i-need-to-do-to-migrate-to-v6)
52
+
53
+ - [#1148](https://github.com/equinor/fusion-framework/pull/1148) [`46201069`](https://github.com/equinor/fusion-framework/commit/46201069505f2526d1bdec05c134da17012b6d31) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump vite from 4.2.3 to 4.4.9
54
+
55
+ see [changelog](https://github.com/vitejs/vite/blob/create-vite@4.4.0/packages/create-vite/CHANGELOG.md)
56
+
57
+ - [#1145](https://github.com/equinor/fusion-framework/pull/1145) [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump rxjs from 7.5.7 to [7.8.1](https://github.com/ReactiveX/rxjs/blob/7.8.1/CHANGELOG.md)
58
+
59
+ - [#1156](https://github.com/equinor/fusion-framework/pull/1156) [`dfee1f79`](https://github.com/equinor/fusion-framework/commit/dfee1f79c9b70c2c2f27c12096000e6fc1e8ff7a) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump vite-tsconfig-paths from [4.0.7](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v4.0.7) to [4.2.0](https://github.com/aleclarson/vite-tsconfig-paths/releases/tag/v4.2.0)
60
+
61
+ - [#1087](https://github.com/equinor/fusion-framework/pull/1087) [`6887c016`](https://github.com/equinor/fusion-framework/commit/6887c0164102e17b4a6d6f16193d9e34a0f41149) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps): bump @vitejs/plugin-react from 3.1.0 to 4.0.4
62
+
63
+ - Updated dependencies [[`7ec195d4`](https://github.com/equinor/fusion-framework/commit/7ec195d42098fec8794db13e83b71ef7753ff862), [`8e7ae77c`](https://github.com/equinor/fusion-framework/commit/8e7ae77cfcadddc4b59e6bb57e620b84e5e1c647), [`8e7ae77c`](https://github.com/equinor/fusion-framework/commit/8e7ae77cfcadddc4b59e6bb57e620b84e5e1c647), [`8e7ae77c`](https://github.com/equinor/fusion-framework/commit/8e7ae77cfcadddc4b59e6bb57e620b84e5e1c647), [`2dccccd1`](https://github.com/equinor/fusion-framework/commit/2dccccd124fbe3cdde2132c29c27d3da9fc6f1f5), [`8e7ae77c`](https://github.com/equinor/fusion-framework/commit/8e7ae77cfcadddc4b59e6bb57e620b84e5e1c647), [`d276fc5d`](https://github.com/equinor/fusion-framework/commit/d276fc5d514566d05c64705076a1cb91c6a44272)]:
64
+ - @equinor/fusion-observable@8.1.0
65
+ - @equinor/fusion-framework-app@7.1.1
66
+
3
67
  ## 8.0.0
4
68
 
5
69
  ### Major Changes
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Equinor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/bin/cli.mjs ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ function start() {
3
+ return import('../dist/scripts/main.js');
4
+ }
5
+ start();
@@ -0,0 +1,4 @@
1
+ export declare const render: (el: HTMLElement, args: {
2
+ env: unknown;
3
+ }) => () => void;
4
+ export default render;
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { StrictMode } from 'react';
3
+ import * as ReactDOM from 'react-dom/client';
4
+ const Test = (args) => {
5
+ return (_jsxs("div", { children: [_jsx("p", { children: "Hello there this is all! good \uD83E\uDD19\uD83C\uDFFB" }), _jsx("pre", { children: JSON.stringify(args, undefined, 4) })] }));
6
+ };
7
+ export const render = (el, args) => {
8
+ const root = ReactDOM.createRoot(el);
9
+ root.render(_jsx(StrictMode, { children: _jsx(Test, { env: args.env }) }));
10
+ return () => root.unmount();
11
+ };
12
+ export default render;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAI7C,MAAM,IAAI,GAAG,CAAC,IAAsB,EAAE,EAAE;IACpC,OAAO,CACH,0BACI,iFAAyC,EACzC,wBAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,GAAO,IAC7C,CACT,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAe,EAAE,IAAsB,EAAE,EAAE;IAC9D,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IACrC,IAAI,CAAC,MAAM,CACP,KAAC,UAAU,cACP,KAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,GAAG,GAAI,GACd,CAChB,CAAC;IACF,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;AAChC,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,38 @@
1
+ declare const supportedTypes: readonly ["js", "json"];
2
+ type SupportedTyped = (typeof supportedTypes)[number];
3
+ type PackageInfo = {
4
+ version: string;
5
+ name: string;
6
+ main: string;
7
+ };
8
+ type AppConfig = {
9
+ manifest?: {
10
+ key?: string;
11
+ };
12
+ environment?: Record<string, unknown>;
13
+ endpoints?: Record<string, string>;
14
+ portalHost?: string;
15
+ };
16
+ type ConfigSource = {
17
+ type: SupportedTyped;
18
+ file: string;
19
+ };
20
+ type LocalConfig = AppConfig & {
21
+ configSource?: ConfigSource;
22
+ pkg: any;
23
+ root: any;
24
+ };
25
+ export declare const resolvePackageRoot: () => string;
26
+ export declare const resolvePackage: () => {
27
+ root: string;
28
+ pkg: PackageInfo;
29
+ };
30
+ export declare const getConfigType: (root: string) => {
31
+ type: SupportedTyped;
32
+ file: string;
33
+ } | undefined;
34
+ export declare const loadConfig: (path: string) => Promise<AppConfig & {
35
+ configSource?: ConfigSource | undefined;
36
+ }>;
37
+ export declare const resolveAppConfig: () => Promise<LocalConfig>;
38
+ export {};
@@ -70,3 +70,4 @@ export const resolveAppConfig = () => __awaiter(void 0, void 0, void 0, function
70
70
  validateConfig(manifest);
71
71
  return Object.assign(Object.assign({}, appConfig), { manifest, pkg, root });
72
72
  });
73
+ //# sourceMappingURL=app-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-config.js","sourceRoot":"","sources":["../../src/scripts/app-config.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,MAAM,CAAU,CAAC;AA+B/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,OAAO,EAAE;QACV,MAAM,KAAK,CAAC,2BAA2B,CAAC,CAAC;KAC5C;IACD,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAuC,EAAE;IACnE,MAAM,OAAO,GAAG,kBAAkB,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,CA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,IAAI,IAAG;AACjD,CAAC,CAAA,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type UserConfig } from 'vite';
2
+ type CreateConfigOptions = {
3
+ mode: 'production' | 'development';
4
+ };
5
+ export declare const loadCustomConfig: (file: string) => Promise<any>;
6
+ export declare const createConfig: (opt?: CreateConfigOptions) => UserConfig;
7
+ export default createConfig;
@@ -17,7 +17,6 @@ const createCustomLogger = () => {
17
17
  const logger = createLogger();
18
18
  const originalWarning = logger.warn;
19
19
  logger.warn = (msg, options) => {
20
- /** import of app file from framework */
21
20
  if (msg.includes('import(manifest.entry)') &&
22
21
  msg.includes('dynamic-import-vars#limitations'))
23
22
  return;
@@ -57,3 +56,4 @@ export const createConfig = (opt) => {
57
56
  });
58
57
  };
59
58
  export default createConfig;
59
+ //# sourceMappingURL=create-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-config.js","sourceRoot":"","sources":["../../src/scripts/create-config.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAmB,MAAM,MAAM,CAAC;AAEnE,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AAIxD,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC5B,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAC9B,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC;IACpC,MAAM,CAAC,IAAI,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QAE3B,IACI,GAAG,CAAC,QAAQ,CAAC,wBAAwB,CAAC;YACtC,GAAG,CAAC,QAAQ,CAAC,iCAAiC,CAAC;YAE/C,OAAO;QACX,eAAe,CAAC,GAAG,EAAE,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