@openshift-migration-advisor/shared-components 0.21.0-8e9be07f572f → 0.22.0-dd51551836b7
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/dist/charts/MigrationDonutChart.d.ts.map +1 -1
- package/dist/charts/MigrationDonutChart.js +7 -1
- package/dist/report/constants.d.ts.map +1 -1
- package/dist/report/constants.js +1 -2
- package/dist/report/osSupportTier.d.ts.map +1 -1
- package/dist/report/osSupportTier.js +1 -8
- package/package.json +3 -2
- package/src/charts/MigrationDonutChart.tsx +10 -1
- package/src/report/constants.ts +4 -2
- package/src/report/osSupportTier.ts +10 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MigrationDonutChart.d.ts","sourceRoot":"","sources":["../../src/charts/MigrationDonutChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MigrationDonutChart.d.ts","sourceRoot":"","sources":["../../src/charts/MigrationDonutChart.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,WAAW,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,wBAAwB,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC,M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ment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { css } from "@emotion/css";
|
|
3
|
-
|
|
3
|
+
// Workaround
|
|
4
|
+
// Shared-components ships as strict ESM ("type": "module"), so webpack
|
|
5
|
+
// enforces fully-specified imports in consuming apps. The documented
|
|
6
|
+
// "@patternfly/react-charts/victory" subpath has no exports map entry and
|
|
7
|
+
// resolves to a directory, which webpack refuses under fully-specified —
|
|
8
|
+
// breaking the ui-app federated build.
|
|
9
|
+
import { ChartDonut, ChartLabel, } from "@patternfly/react-charts/dist/esm/victory/index.js";
|
|
4
10
|
import { EmptyState, EmptyStateVariant, Flex, FlexItem, } from "@patternfly/react-core";
|
|
5
11
|
import { InboxIcon } from "@patternfly/react-icons";
|
|
6
12
|
import { useCallback, useMemo } from "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/report/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/report/constants.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,WAA6B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,WAA+B,CAAC;AAE9D,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;CAcjC,CAAC"}
|
package/dist/report/constants.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { chart_color_blue_300 } from "@patternfly/react-tokens
|
|
2
|
-
import { chart_color_yellow_300 } from "@patternfly/react-tokens/dist/esm/chart_color_yellow_300";
|
|
1
|
+
import { chart_color_blue_300, chart_color_yellow_300, } from "@patternfly/react-tokens";
|
|
3
2
|
/**
|
|
4
3
|
* PatternFly chart color semantics (https://www.patternfly.org/charts/colors-for-charts/design-guidelines/#best-practices):
|
|
5
4
|
* Blue → success / migratable / supported
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"osSupportTier.d.ts","sourceRoot":"","sources":["../../src/report/osSupportTier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"osSupportTier.d.ts","sourceRoot":"","sources":["../../src/report/osSupportTier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAYzD;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE,eAAO,MAAM,2BAA2B,+CACM,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AASD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAK3D,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAShE,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,WAAW,EAK9C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAC5C,WAAW,EACX,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAMjC,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,4FAA4F;AAC5F,eAAO,MAAM,gCAAgC,EAAE,MAAM,CACnD,WAAW,EACX,qBAAqB,CAkBtB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,WAAW,GAAG,SAAS,EACpC,SAAS,EAAE,OAAO,GACjB,WAAW,CAMb;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAC1C,OAAO,CAeT;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAEjE;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAEnE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,WAAW,GAChB,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAElC;AAED,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,WAAW,GAChB,qBAAqB,CAEvB"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { t_color_blue_20 } from "@patternfly/react-tokens
|
|
2
|
-
import { t_color_blue_60 } from "@patternfly/react-tokens/dist/esm/t_color_blue_60";
|
|
3
|
-
import { t_color_green_20 } from "@patternfly/react-tokens/dist/esm/t_color_green_20";
|
|
4
|
-
import { t_color_green_60 } from "@patternfly/react-tokens/dist/esm/t_color_green_60";
|
|
5
|
-
import { t_color_orange_20 } from "@patternfly/react-tokens/dist/esm/t_color_orange_20";
|
|
6
|
-
import { t_color_orange_60 } from "@patternfly/react-tokens/dist/esm/t_color_orange_60";
|
|
7
|
-
import { t_color_yellow_20 } from "@patternfly/react-tokens/dist/esm/t_color_yellow_20";
|
|
8
|
-
import { t_color_yellow_60 } from "@patternfly/react-tokens/dist/esm/t_color_yellow_60";
|
|
1
|
+
import { t_color_blue_20, t_color_blue_60, t_color_green_20, t_color_green_60, t_color_orange_20, t_color_orange_60, t_color_yellow_20, t_color_yellow_60, } from "@patternfly/react-tokens";
|
|
9
2
|
/**
|
|
10
3
|
* Guest OS support tiers (matches agent-sdk / planner-sdk `OsInfoSupportTierEnum` values).
|
|
11
4
|
* Defined locally so this package stays SDK-agnostic.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openshift-migration-advisor/shared-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0-dd51551836b7",
|
|
4
4
|
"description": "Shared React UI components for Migration Advisor apps (report charts, forms, OS support tiers)",
|
|
5
5
|
"author": "Montse Ortega <mortegag@redhat.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"clean": "rm -rf node_modules dist .tmp",
|
|
36
36
|
"check": "yarn run -T biome check .",
|
|
37
37
|
"check:fix": "yarn run -T biome check --write .",
|
|
38
|
-
"test": "
|
|
38
|
+
"test": "yarn run -T vitest run",
|
|
39
|
+
"test:watch": "yarn run -T vitest",
|
|
39
40
|
"typecheck": "yarn run -T tsc -b --noEmit"
|
|
40
41
|
},
|
|
41
42
|
"files": [
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { css } from "@emotion/css";
|
|
2
|
-
|
|
2
|
+
// Workaround
|
|
3
|
+
// Shared-components ships as strict ESM ("type": "module"), so webpack
|
|
4
|
+
// enforces fully-specified imports in consuming apps. The documented
|
|
5
|
+
// "@patternfly/react-charts/victory" subpath has no exports map entry and
|
|
6
|
+
// resolves to a directory, which webpack refuses under fully-specified —
|
|
7
|
+
// breaking the ui-app federated build.
|
|
8
|
+
import {
|
|
9
|
+
ChartDonut,
|
|
10
|
+
ChartLabel,
|
|
11
|
+
} from "@patternfly/react-charts/dist/esm/victory/index.js";
|
|
3
12
|
import {
|
|
4
13
|
EmptyState,
|
|
5
14
|
EmptyStateVariant,
|
package/src/report/constants.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
chart_color_blue_300,
|
|
3
|
+
chart_color_yellow_300,
|
|
4
|
+
} from "@patternfly/react-tokens";
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* PatternFly chart color semantics (https://www.patternfly.org/charts/colors-for-charts/design-guidelines/#best-practices):
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { LabelProps } from "@patternfly/react-core";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import {
|
|
3
|
+
t_color_blue_20,
|
|
4
|
+
t_color_blue_60,
|
|
5
|
+
t_color_green_20,
|
|
6
|
+
t_color_green_60,
|
|
7
|
+
t_color_orange_20,
|
|
8
|
+
t_color_orange_60,
|
|
9
|
+
t_color_yellow_20,
|
|
10
|
+
t_color_yellow_60,
|
|
11
|
+
} from "@patternfly/react-tokens";
|
|
10
12
|
|
|
11
13
|
/**
|
|
12
14
|
* Guest OS support tiers (matches agent-sdk / planner-sdk `OsInfoSupportTierEnum` values).
|